diff --git a/public/CHANGELOG.md b/public/CHANGELOG.md index e4631bd..0ff3eac 100644 --- a/public/CHANGELOG.md +++ b/public/CHANGELOG.md @@ -1,3 +1,6 @@ +# v4.5.1 (09.12.2024) +## Core +- bugfix for changing darkmode # v4.5.0 (08.12.2024) ## Core - new settings for parameter diff into replacer %d (nozero and numeric) diff --git a/src/stores/fhem.js b/src/stores/fhem.js index 07dc803..10826c6 100644 --- a/src/stores/fhem.js +++ b/src/stores/fhem.js @@ -484,7 +484,9 @@ export const useFhemStore = defineStore('fhem', () => { for(const path of stat.panelMap[idx].items) { doUpdate(app.panelList, path, evt.value) } - } else { + } + + if(stat.panelMap[idx].task) { handleInternalTask(stat.panelMap[idx].task, evt.value) } @@ -662,6 +664,7 @@ export const useFhemStore = defineStore('fhem', () => { panels = JSON.parse(JSON.stringify(app.config.panels)), templates = JSON.parse(JSON.stringify(app.config.templates)), templateIdx, + taskIdx, darkModeDef if(app.config.panels.length === 0) log(3, 'No Panels defined.', null, 'noPanels') @@ -708,10 +711,21 @@ export const useFhemStore = defineStore('fhem', () => { } //add watching for updates - stat.panelMap.push({ reading: app.fhemDevice + '-update_available', task: 'update' }) - if(app.header.darkModeOverFhem) { - darkModeDef = app.header.darkModeOverFhem.split(':') - if(darkModeDef.length === 2) stat.panelMap.push({ reading: darkModeDef[0], task: 'darkMode'}) + taskIdx = stat.panelMap.map((e) => e.reading).indexOf(app.fhemDevice + '-update_available') + if(taskIdx !== -1) { + stat.panelMap[taskIdx].task = 'update' + } else { + stat.panelMap.push({ reading: app.fhemDevice + '-update_available', task: 'update' }) + } + + darkModeDef = app.header.darkModeOverFhem.split(':') + if(darkModeDef.length === 2) { + taskIdx = stat.panelMap.map((e) => e.reading).indexOf(darkModeDef[0]) + if(taskIdx !== -1) { + stat.panelMap[taskIdx].task = 'darkMode' + } else { + stat.panelMap.push({ reading: darkModeDef[0], task: 'darkMode'}) + } } log(4, 'PanelList and PanelMapping created.', { panelList: app.panelList, panelMap: stat.panelMap }) @@ -772,7 +786,9 @@ export const useFhemStore = defineStore('fhem', () => { if(item.items) { for(const path of item.items) doUpdate(panelList, path, val) - } else { + } + + if(item.task) { handleInternalTask(item.task, val) } } diff --git a/www/fhemapp4/CHANGELOG.md b/www/fhemapp4/CHANGELOG.md index e4631bd..0ff3eac 100644 --- a/www/fhemapp4/CHANGELOG.md +++ b/www/fhemapp4/CHANGELOG.md @@ -1,3 +1,6 @@ +# v4.5.1 (09.12.2024) +## Core +- bugfix for changing darkmode # v4.5.0 (08.12.2024) ## Core - new settings for parameter diff into replacer %d (nozero and numeric) diff --git a/www/fhemapp4/assets/DevicesView-FJHLHjVE.js b/www/fhemapp4/assets/DevicesView-BXrZzncO.js similarity index 90% rename from www/fhemapp4/assets/DevicesView-FJHLHjVE.js rename to www/fhemapp4/assets/DevicesView-BXrZzncO.js index cafc0d9..edd7504 100644 --- a/www/fhemapp4/assets/DevicesView-FJHLHjVE.js +++ b/www/fhemapp4/assets/DevicesView-BXrZzncO.js @@ -1 +1 @@ -import{u as y,c as f,o as p,a as u,w as i,b as _,r as d,d as h,e as w,F as v}from"./index-BajJpuha.js";import{_ as k}from"./PanelCard-CL21y_Aa.js";const z={__name:"DevicesView",setup(C){const a=y(),x=f(()=>{let s=[],o={},t=1;if(a.app.panelMaximized)s.push(a.app.panelMaximized);else{for(const e of a.app.panelView)a.handleDefs(a.app.panelList[e].panel.show,["show"],[!0]).show&&s.push(a.app.panelList[e]);s.sort((e,n)=>l(e)>l(n)?1:l(n)>l(e)?-1:0)}for(const e of s)o[t]||(o[t]=[]),o[t].push(e),t=t===c.value?1:t+1;return o}),c=f(()=>m(a.app.currentView,a.app.navigation)||a.app.viewCols[a.app.display]);function m(s,o){if(/=maximized$/.test(s))return 1;let t=s.split("->"),e={name:t[0]},n=o.map(g=>g.name).indexOf(e.name),r;return n!==-1&&Object.assign(e,o[n]),t.length>1&&(r=m(t.slice(1).join("->"),e.group||[])),n!==-1&&!r&&(r=e[a.app.display]),parseInt(r)}function l(s){return a.handleDefs(s.panel.sortby,["sortby"],[null]).sortby||"999"}return(s,o)=>{const t=h("v-col"),e=h("v-row");return p(),u(e,{"no-gutters":""},{default:i(()=>[(p(!0),_(v,null,d(c.value,n=>(p(),u(t,{key:n},{default:i(()=>[w(e,{"no-gutters":""},{default:i(()=>[(p(!0),_(v,null,d(x.value[n],r=>(p(),u(t,{cols:"12",key:r.name,class:"pa-1"},{default:i(()=>[w(k,{panel:r},null,8,["panel"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1})}}};export{z as default}; +import{u as y,c as f,o as p,a as u,w as i,b as _,r as d,d as h,e as w,F as v}from"./index-DzyB4pDG.js";import{_ as k}from"./PanelCard-0KRtoqkb.js";const z={__name:"DevicesView",setup(C){const a=y(),x=f(()=>{let s=[],o={},t=1;if(a.app.panelMaximized)s.push(a.app.panelMaximized);else{for(const e of a.app.panelView)a.handleDefs(a.app.panelList[e].panel.show,["show"],[!0]).show&&s.push(a.app.panelList[e]);s.sort((e,n)=>l(e)>l(n)?1:l(n)>l(e)?-1:0)}for(const e of s)o[t]||(o[t]=[]),o[t].push(e),t=t===c.value?1:t+1;return o}),c=f(()=>m(a.app.currentView,a.app.navigation)||a.app.viewCols[a.app.display]);function m(s,o){if(/=maximized$/.test(s))return 1;let t=s.split("->"),e={name:t[0]},n=o.map(g=>g.name).indexOf(e.name),r;return n!==-1&&Object.assign(e,o[n]),t.length>1&&(r=m(t.slice(1).join("->"),e.group||[])),n!==-1&&!r&&(r=e[a.app.display]),parseInt(r)}function l(s){return a.handleDefs(s.panel.sortby,["sortby"],[null]).sortby||"999"}return(s,o)=>{const t=h("v-col"),e=h("v-row");return p(),u(e,{"no-gutters":""},{default:i(()=>[(p(!0),_(v,null,d(c.value,n=>(p(),u(t,{key:n},{default:i(()=>[w(e,{"no-gutters":""},{default:i(()=>[(p(!0),_(v,null,d(x.value[n],r=>(p(),u(t,{cols:"12",key:r.name,class:"pa-1"},{default:i(()=>[w(k,{panel:r},null,8,["panel"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1})}}};export{z as default}; diff --git a/www/fhemapp4/assets/InternalsView-DCrve5NC.js b/www/fhemapp4/assets/InternalsView-Btpm_Y2R.js similarity index 90% rename from www/fhemapp4/assets/InternalsView-DCrve5NC.js rename to www/fhemapp4/assets/InternalsView-Btpm_Y2R.js index 61e9713..f3bff68 100644 --- a/www/fhemapp4/assets/InternalsView-DCrve5NC.js +++ b/www/fhemapp4/assets/InternalsView-Btpm_Y2R.js @@ -1 +1 @@ -import{u as y,S as C}from"./index-Cyz760UL.js";import{aW as V,u as S,o as B,a as N,w as o,e as t,d as e,O as p,bb as i,aw as O,bk as c}from"./index-BajJpuha.js";const z={__name:"InternalsView",setup($){const n=V(!0),a=S(),{toClipboard:u}=y();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,r)=>{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"),w=e("v-row"),h=e("v-divider"),k=e("v-card-text"),x=e("v-card");return B(),N(x,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(k,null,{default:o(()=>[t(w,{"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":r[0]||(r[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,O(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(h,{class:"pb-3"}),t(c(C),{data:n.value?c(a).app.config:c(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{z as default}; +import{u as y,S as C}from"./index-CLpZ9nKM.js";import{aW as V,u as S,o as B,a as N,w as o,e as t,d as e,O as p,bb as i,aw as O,bk as c}from"./index-DzyB4pDG.js";const z={__name:"InternalsView",setup($){const n=V(!0),a=S(),{toClipboard:u}=y();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,r)=>{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"),w=e("v-row"),h=e("v-divider"),k=e("v-card-text"),x=e("v-card");return B(),N(x,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(k,null,{default:o(()=>[t(w,{"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":r[0]||(r[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,O(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(h,{class:"pb-3"}),t(c(C),{data:n.value?c(a).app.config:c(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{z as default}; diff --git a/www/fhemapp4/assets/PanelCard-CL21y_Aa.js b/www/fhemapp4/assets/PanelCard-0KRtoqkb.js similarity index 99% rename from www/fhemapp4/assets/PanelCard-CL21y_Aa.js rename to www/fhemapp4/assets/PanelCard-0KRtoqkb.js index b09922c..1d966b5 100644 --- a/www/fhemapp4/assets/PanelCard-CL21y_Aa.js +++ b/www/fhemapp4/assets/PanelCard-0KRtoqkb.js @@ -1,4 +1,4 @@ -import{u as q,c as C,o as p,b as P,ay as N,bb as j,A as O,a as L,w as y,O as J,d as h,G as Q,F as Y,e as z,bR as ne,aW as U,bn as je,bE as ae,r as he,aw as le,U as Fe,aa as Ce,b7 as de,bg as Ie,ap as Ue,bk as Z,ak as ve,a5 as He,bS as Ne,ax as $e,bF as Oe,bT as qe,aH as Me,aD as Ve,bU as We,bP as Be,bQ as Ke,aA as me,bd as Je,bL as Ge,a$ as Ze}from"./index-BajJpuha.js";const Qe={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=q(),l=C(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),s=C(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),r=C(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),u=C(()=>{let o=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return o.icon&&(o.icon=n.getIcon(o.icon,t.iconmap)),o}),i=C(()=>{let o=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return o.level=Math.round((o.level-o.min)/(o.max-o.min)*100),o.reverse=!!o.reverse,o});return(o,a)=>{const c=h("v-icon"),v=h("v-progress-circular"),m=h("v-progress-linear");return p(),P(Y,null,[e.el.text?(p(),P("div",{key:0,class:N(l.value.format)},j(l.value.text),3)):O("",!0),e.el.icon?(p(),L(c,{key:1,color:u.value.color,size:u.value.size},{default:y(()=>[J(j(u.value.icon),1)]),_:1},8,["color","size"])):O("",!0),e.el.status&&!i.value.linear?(p(),L(v,{key:2,width:"4",modelValue:i.value.level,"onUpdate:modelValue":a[0]||(a[0]=w=>i.value.level=w),color:i.value.color,reverse:i.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),e.el.status&&i.value.linear?(p(),L(m,{key:3,height:"7",rounded:"",modelValue:i.value.level,"onUpdate:modelValue":a[1]||(a[1]=w=>i.value.level=w),color:i.value.color,reverse:i.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),Q("div",{class:N(e.el.text2?s.value.format:r.value.format)},[e.el.text2?(p(),P("span",{key:0,class:N(s.value.format)},j(s.value.text),3)):O("",!0),e.el.text3?(p(),P("span",{key:1,class:N(r.value.format)},j(r.value.text),3)):O("",!0)],2)],64)}}},Ye={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=q(),l=C(()=>{let o=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return o.icon&&(o.icon=n.getIcon(o.icon,t.iconmap)),o}),s=C(()=>{let o=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return o.level=Math.round((o.level-o.min)/(o.max-o.min)*100),o.reverse=!!o.reverse,o}),r={timer:!1,long:!1};function u(o){let a=[];if(o.cmd){if(o.type==="cmd"){a=o.cmd.split(";");for(const[c]of Object.entries(a))for(const v of t.devices)a[c]=a[c].replace(" "+v.split(":")[0]+" "," "+v.split(":")[1]+" ");n.request("text",a.join(";"))}o.type==="route"&&ne.push({name:"devices",params:{view:o.cmd},query:ne.currentRoute.value.query}),o.type==="url"&&window.open(o.cmd,"_self")}}function i(o){let a=n.handleDefs(t.el.click,["cmd","type"],["","cmd"],!1,null,!0),c=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"],!1,null,!0),v=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"],!1,null,!0),m="ontouchstart"in document;(!m&&o==="mouseStart"||o==="touchStart")&&(r.timer=setTimeout(()=>{r.long=!0,c.cmd&&u(c)},1e3)),(!m&&o==="mouseEnd"||o==="touchEnd")&&(r.long?v.cmd&&u(v):a.cmd&&u(a),clearTimeout(r.timer),r.long=!1)}return(o,a)=>{const c=h("v-progress-linear"),v=h("v-icon"),m=h("v-btn");return p(),P(Y,null,[e.el.status?(p(),L(c,{key:0,height:"4",modelValue:s.value.level,"onUpdate:modelValue":a[0]||(a[0]=w=>s.value.level=w),color:s.value.color,reverse:s.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),z(m,{icon:"",variant:l.value.variant,disabled:l.value.disabled,color:l.value.color,onMousedown:a[1]||(a[1]=w=>i("mouseStart")),onTouchstart:a[2]||(a[2]=w=>i("touchStart")),onMouseup:a[3]||(a[3]=w=>i("mouseEnd")),onTouchend:a[4]||(a[4]=w=>i("touchEnd")),class:"my-2"},{default:y(()=>[z(v,{size:"large"},{default:y(()=>[J(j(l.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Xe={__name:"PanelMainInput",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=q(),l=U({value:null,changed:!1}),s=C(()=>{let u=n.handleDefs(t.el.textfield,["cmd","current","label","placeholder","type","icon","color"],["","","","","text","mdi-send","success"]);return l.value.value=u.current,u});function r(){let u=s.value.cmd;u=n.replacer(u,l.value.value),u=u.replace("%v",l.value.value);for(const i of t.devices)u=u.replace(" "+i.split(":")[0]+" "," "+i.split(":")[1]+" ");n.request("text",u),l.value.changed=!1}return(u,i)=>{const o=h("v-btn"),a=h("v-text-field");return p(),L(a,{modelValue:l.value.value,"onUpdate:modelValue":i[1]||(i[1]=c=>l.value.value=c),label:s.value.label,placeholder:s.value.placeholder,variant:"outlined",density:"compact",type:s.value.type,"hide-details":"",class:"mx-3",onInput:i[2]||(i[2]=c=>l.value.changed=!0)},{append:y(()=>[z(o,{icon:s.value.icon,color:l.value.changed?s.value.color:"",disabled:!l.value.changed,density:"compact",variant:"plain",onClick:i[0]||(i[0]=c=>r())},null,8,["icon","color","disabled"])]),_:1},8,["modelValue","label","placeholder","type"])}}},et={class:"text-white"},tt={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){je(a=>({"6b1f07f5":l.value}));const t=e,n=q(),l=U(t.height+(/px/.test(t.height)?"":"px"));console.log(t.height);const s=U();function r(a){s.value=a}const u=C(()=>{let a=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1],!1,null,!0);return/%v/.test(a.current)&&(a.current=a.current.replace("%v",s.value)),r(a.current),a});let i=null;function o(a){let c=u.value.cmd,v=/\./.exec(u.value.steps),m=0;v&&(m=u.value.steps.slice(v.index).length-1),c=c.replace("%v",a.toFixed(m));for(const w of t.devices)c=c.replace(" "+w.split(":")[0]+" "," "+w.split(":")[1]+" ");clearTimeout(i),i=setTimeout(()=>{n.request("text",c)},500)}return(a,c)=>{const v=h("v-slider");return p(),L(v,{modelValue:s.value,"onUpdate:modelValue":[c[0]||(c[0]=m=>s.value=m),c[1]||(c[1]=m=>o(m))],min:u.value.min,max:u.value.max,step:u.value.steps,reverse:u.value.reverse,direction:u.value.vertical?"vertical":"horizontal","track-size":u.value.size,color:u.value.color,"hide-details":"","thumb-label":"",class:"py-2"},{"thumb-label":y(({modelValue:m})=>[Q("div",et,j(m),1)]),_:1},8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},nt={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=q(),l=U(!1),s=C(()=>n.handleDefs(t.el.image,["source","height"],["","auto"])),r=C(()=>({height:/=maximized$/.test(n.app.currentView)?window.innerHeight-170:s.value.height||t.height}));return(u,i)=>{const o=h("v-skeleton-loader"),a=h("v-img");return p(),P(Y,null,[l.value?O("",!0):(p(),L(o,{key:0,type:"image"})),z(a,{src:s.value.source,height:r.value.height,onLoad:i[0]||(i[0]=c=>l.value=!0)},null,8,["src","height"])],64)}}},at=["src","width","height"],lt={__name:"PanelMainIframe",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=q(),l=U(),s=C(()=>({source:n.handleDefs(t.el.iframe,["source"],[""]).source,width:l.value&&l.value.scrollWidth?l.value.scrollWidth:0,height:/=maximized$/.test(n.app.currentView)?window.innerHeight-170:t.height}));return(r,u)=>(p(),P("div",{ref_key:"extContent",ref:l},[Q("iframe",{src:s.value.source,width:s.value.width,height:s.value.height,loading:"lazy",style:{border:"none"}},null,8,at)],512))}},it={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=q(),l=U([]);ae(t.el,i=>{r()});const s=C(()=>{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});async function r(){let i=n.handleDefs(t.el.menu,["name","cmd","convert"],["","",null],!0,","),o,a,c;l.value=[];for(const v of i){o=/^get/.test(v.name)?await u(v.name):v.name;for(const m of[",","|",` +import{u as q,c as C,o as p,b as P,ay as N,bb as j,A as O,a as L,w as y,O as J,d as h,G as Q,F as Y,e as z,bR as ne,aW as U,bn as je,bE as ae,r as he,aw as le,U as Fe,aa as Ce,b7 as de,bg as Ie,ap as Ue,bk as Z,ak as ve,a5 as He,bS as Ne,ax as $e,bF as Oe,bT as qe,aH as Me,aD as Ve,bU as We,bP as Be,bQ as Ke,aA as me,bd as Je,bL as Ge,a$ as Ze}from"./index-DzyB4pDG.js";const Qe={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=q(),l=C(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),s=C(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),r=C(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),u=C(()=>{let o=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return o.icon&&(o.icon=n.getIcon(o.icon,t.iconmap)),o}),i=C(()=>{let o=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return o.level=Math.round((o.level-o.min)/(o.max-o.min)*100),o.reverse=!!o.reverse,o});return(o,a)=>{const c=h("v-icon"),v=h("v-progress-circular"),m=h("v-progress-linear");return p(),P(Y,null,[e.el.text?(p(),P("div",{key:0,class:N(l.value.format)},j(l.value.text),3)):O("",!0),e.el.icon?(p(),L(c,{key:1,color:u.value.color,size:u.value.size},{default:y(()=>[J(j(u.value.icon),1)]),_:1},8,["color","size"])):O("",!0),e.el.status&&!i.value.linear?(p(),L(v,{key:2,width:"4",modelValue:i.value.level,"onUpdate:modelValue":a[0]||(a[0]=w=>i.value.level=w),color:i.value.color,reverse:i.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),e.el.status&&i.value.linear?(p(),L(m,{key:3,height:"7",rounded:"",modelValue:i.value.level,"onUpdate:modelValue":a[1]||(a[1]=w=>i.value.level=w),color:i.value.color,reverse:i.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),Q("div",{class:N(e.el.text2?s.value.format:r.value.format)},[e.el.text2?(p(),P("span",{key:0,class:N(s.value.format)},j(s.value.text),3)):O("",!0),e.el.text3?(p(),P("span",{key:1,class:N(r.value.format)},j(r.value.text),3)):O("",!0)],2)],64)}}},Ye={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=q(),l=C(()=>{let o=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return o.icon&&(o.icon=n.getIcon(o.icon,t.iconmap)),o}),s=C(()=>{let o=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return o.level=Math.round((o.level-o.min)/(o.max-o.min)*100),o.reverse=!!o.reverse,o}),r={timer:!1,long:!1};function u(o){let a=[];if(o.cmd){if(o.type==="cmd"){a=o.cmd.split(";");for(const[c]of Object.entries(a))for(const v of t.devices)a[c]=a[c].replace(" "+v.split(":")[0]+" "," "+v.split(":")[1]+" ");n.request("text",a.join(";"))}o.type==="route"&&ne.push({name:"devices",params:{view:o.cmd},query:ne.currentRoute.value.query}),o.type==="url"&&window.open(o.cmd,"_self")}}function i(o){let a=n.handleDefs(t.el.click,["cmd","type"],["","cmd"],!1,null,!0),c=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"],!1,null,!0),v=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"],!1,null,!0),m="ontouchstart"in document;(!m&&o==="mouseStart"||o==="touchStart")&&(r.timer=setTimeout(()=>{r.long=!0,c.cmd&&u(c)},1e3)),(!m&&o==="mouseEnd"||o==="touchEnd")&&(r.long?v.cmd&&u(v):a.cmd&&u(a),clearTimeout(r.timer),r.long=!1)}return(o,a)=>{const c=h("v-progress-linear"),v=h("v-icon"),m=h("v-btn");return p(),P(Y,null,[e.el.status?(p(),L(c,{key:0,height:"4",modelValue:s.value.level,"onUpdate:modelValue":a[0]||(a[0]=w=>s.value.level=w),color:s.value.color,reverse:s.value.reverse},null,8,["modelValue","color","reverse"])):O("",!0),z(m,{icon:"",variant:l.value.variant,disabled:l.value.disabled,color:l.value.color,onMousedown:a[1]||(a[1]=w=>i("mouseStart")),onTouchstart:a[2]||(a[2]=w=>i("touchStart")),onMouseup:a[3]||(a[3]=w=>i("mouseEnd")),onTouchend:a[4]||(a[4]=w=>i("touchEnd")),class:"my-2"},{default:y(()=>[z(v,{size:"large"},{default:y(()=>[J(j(l.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Xe={__name:"PanelMainInput",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=q(),l=U({value:null,changed:!1}),s=C(()=>{let u=n.handleDefs(t.el.textfield,["cmd","current","label","placeholder","type","icon","color"],["","","","","text","mdi-send","success"]);return l.value.value=u.current,u});function r(){let u=s.value.cmd;u=n.replacer(u,l.value.value),u=u.replace("%v",l.value.value);for(const i of t.devices)u=u.replace(" "+i.split(":")[0]+" "," "+i.split(":")[1]+" ");n.request("text",u),l.value.changed=!1}return(u,i)=>{const o=h("v-btn"),a=h("v-text-field");return p(),L(a,{modelValue:l.value.value,"onUpdate:modelValue":i[1]||(i[1]=c=>l.value.value=c),label:s.value.label,placeholder:s.value.placeholder,variant:"outlined",density:"compact",type:s.value.type,"hide-details":"",class:"mx-3",onInput:i[2]||(i[2]=c=>l.value.changed=!0)},{append:y(()=>[z(o,{icon:s.value.icon,color:l.value.changed?s.value.color:"",disabled:!l.value.changed,density:"compact",variant:"plain",onClick:i[0]||(i[0]=c=>r())},null,8,["icon","color","disabled"])]),_:1},8,["modelValue","label","placeholder","type"])}}},et={class:"text-white"},tt={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){je(a=>({"6b1f07f5":l.value}));const t=e,n=q(),l=U(t.height+(/px/.test(t.height)?"":"px"));console.log(t.height);const s=U();function r(a){s.value=a}const u=C(()=>{let a=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1],!1,null,!0);return/%v/.test(a.current)&&(a.current=a.current.replace("%v",s.value)),r(a.current),a});let i=null;function o(a){let c=u.value.cmd,v=/\./.exec(u.value.steps),m=0;v&&(m=u.value.steps.slice(v.index).length-1),c=c.replace("%v",a.toFixed(m));for(const w of t.devices)c=c.replace(" "+w.split(":")[0]+" "," "+w.split(":")[1]+" ");clearTimeout(i),i=setTimeout(()=>{n.request("text",c)},500)}return(a,c)=>{const v=h("v-slider");return p(),L(v,{modelValue:s.value,"onUpdate:modelValue":[c[0]||(c[0]=m=>s.value=m),c[1]||(c[1]=m=>o(m))],min:u.value.min,max:u.value.max,step:u.value.steps,reverse:u.value.reverse,direction:u.value.vertical?"vertical":"horizontal","track-size":u.value.size,color:u.value.color,"hide-details":"","thumb-label":"",class:"py-2"},{"thumb-label":y(({modelValue:m})=>[Q("div",et,j(m),1)]),_:1},8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},nt={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=q(),l=U(!1),s=C(()=>n.handleDefs(t.el.image,["source","height"],["","auto"])),r=C(()=>({height:/=maximized$/.test(n.app.currentView)?window.innerHeight-170:s.value.height||t.height}));return(u,i)=>{const o=h("v-skeleton-loader"),a=h("v-img");return p(),P(Y,null,[l.value?O("",!0):(p(),L(o,{key:0,type:"image"})),z(a,{src:s.value.source,height:r.value.height,onLoad:i[0]||(i[0]=c=>l.value=!0)},null,8,["src","height"])],64)}}},at=["src","width","height"],lt={__name:"PanelMainIframe",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=q(),l=U(),s=C(()=>({source:n.handleDefs(t.el.iframe,["source"],[""]).source,width:l.value&&l.value.scrollWidth?l.value.scrollWidth:0,height:/=maximized$/.test(n.app.currentView)?window.innerHeight-170:t.height}));return(r,u)=>(p(),P("div",{ref_key:"extContent",ref:l},[Q("iframe",{src:s.value.source,width:s.value.width,height:s.value.height,loading:"lazy",style:{border:"none"}},null,8,at)],512))}},it={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=q(),l=U([]);ae(t.el,i=>{r()});const s=C(()=>{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});async function r(){let i=n.handleDefs(t.el.menu,["name","cmd","convert"],["","",null],!0,","),o,a,c;l.value=[];for(const v of i){o=/^get/.test(v.name)?await u(v.name):v.name;for(const m of[",","|",` `])RegExp(m).test(o)&&(a=m);for(const m of o.split(a))m&&(c=m,/%v/.test(v.cmd)&&v.convert==="regExp"&&(c=RegExp(m.replace(/[^a-z,^A-Z]/g,"."))),l.value.push({name:m.replace("_"," "),cmd:v.cmd.replace(/%v/g,c)}))}}async function u(i){let o=[];o=i.split(";");for(const[a]of Object.entries(o))for(const c of t.devices)o[a]=o[a].replace(" "+c.split(":")[0]+" "," "+c.split(":")[1]+" ");return n.request("text",o.join(";"))}return r(),(i,o)=>{const a=h("v-icon"),c=h("v-btn"),v=h("v-list-item-title"),m=h("v-list-item"),w=h("v-list"),g=h("v-menu");return p(),L(g,null,{activator:y(({props:f})=>[z(c,le(f,{icon:"",variant:s.value.variant,disabled:s.value.disabled||l.value.length<1,color:s.value.color,class:"my-2"}),{default:y(()=>[z(a,{size:"large"},{default:y(()=>[J(j(s.value.icon),1)]),_:1})]),_:2},1040,["variant","disabled","color"])]),default:y(()=>[z(w,null,{default:y(()=>[(p(!0),P(Y,null,he(l.value,(f,_)=>(p(),L(m,{key:_,value:_,onClick:d=>u(f.cmd)},{default:y(()=>[z(v,null,{default:y(()=>[J(j(f.name),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}}};var xe=null;function ot(e){return xe||(xe=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),xe(e)}var be=null;function rt(e){be||(be=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),be(e)}function st(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 fe(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(l){n[l]=t[l]}),n}function Te(e,t,n){var l=window.getComputedStyle(e,null)||{display:"none"};return l[t]}function we(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Te(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var ut='.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%}',ze=0,_e=null;function ct(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=ft.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var l=e.offsetWidth,s=e.offsetHeight,r=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===l&&e.offsetHeight===s)||ge(e)}),u=we(e),i=u.detached,o=u.rendered;e.__resize_observer_triggered__=i===!1&&o===!1,e.__resize_observer__=r,r.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ge(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(ze||(_e=st(ut)),pt(e),e.__resize_rendered__=we(e).rendered,window.MutationObserver){var a=new MutationObserver(e.__resize_mutation_handler__);a.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=a}}e.__resize_listeners__.push(t),ze++}function dt(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",ke),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--ze&&_e&&_e.parentNode.removeChild(_e)}}function vt(e){var t=e.__resize_last__,n=t.width,l=t.height,s=e.offsetWidth,r=e.offsetHeight;return s!==n||r!==l?{width:s,height:r}:null}function ft(){var e=we(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(Se(this),this.addEventListener("scroll",ke,!0)),this.__resize_rendered__=t,ge(this))}function ke(){var e=this;Se(this),this.__resize_raf__&&rt(this.__resize_raf__),this.__resize_raf__=ot(function(){var t=vt(e);t&&(e.__resize_last__=t,ge(e))})}function ge(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function pt(e){var t=Te(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=fe("div",{className:"resize-triggers"}),l=fe("div",{className:"resize-expand-trigger"}),s=fe("div"),r=fe("div",{className:"resize-contract-trigger"});l.appendChild(s),n.appendChild(l),n.appendChild(r),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:l,expandChild:s,contract:r},Se(e),e.addEventListener("scroll",ke,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function Se(e){var t=e.__resize_triggers__,n=t.expand,l=t.expandChild,s=t.contract,r=s.scrollWidth,u=s.scrollHeight,i=n.offsetWidth,o=n.offsetHeight,a=n.scrollWidth,c=n.scrollHeight;s.scrollLeft=r,s.scrollTop=u,l.style.width=i+1+"px",l.style.height=o+1+"px",n.scrollLeft=a,n.scrollTop=c}var K=function(){return K=Object.assign||function(e){for(var t,n=1,l=arguments.length;n"u"||typeof customElements>"u")return oe=!1;try{new Function("tag",`class EChartsElement extends HTMLElement { diff --git a/www/fhemapp4/assets/SettingsView-QzGge9MQ.js b/www/fhemapp4/assets/SettingsView-D4z0eDmZ.js similarity index 99% rename from www/fhemapp4/assets/SettingsView-QzGge9MQ.js rename to www/fhemapp4/assets/SettingsView-D4z0eDmZ.js index d439ed9..a6966da 100644 --- a/www/fhemapp4/assets/SettingsView-QzGge9MQ.js +++ b/www/fhemapp4/assets/SettingsView-D4z0eDmZ.js @@ -1,4 +1,4 @@ -import{B as $a,f as Ra,C as Va,D as Fa,E as ja,g as Ma,h as Na,F as Le,K as La,R as Ua,S as Ka,i as Ga,T as Ba,j as Ha,k as ka,l as za,m as Wa,n as Ya,V as Xa,p as Ja,q as Za,s as Qa,t as qa,v as _a,x as er,y as tr,c as Ee,z as nr,a as z,A as Z,b as je,G as ua,H as ar,I as rr,J as or,L as lr,M as ir,N as sr,O as de,e as g,P as ur,Q as dr,U as da,W as pr,X as cr,Y as fr,Z as vr,_ as mr,$ as gr,a0 as hr,a1 as yr,a2 as br,a3 as xr,a4 as Sr,a5 as Er,a6 as Ir,a7 as Or,a8 as Cr,a9 as Tr,aa as pt,ab as wr,ac as Dr,ad as Ar,ae as Pr,af as $r,ag as Rr,ah as Vr,ai as Fr,aj as jr,ak as Mr,al as Nr,am as Lr,an as Ur,ao as Kr,ap as Gr,aq as Br,ar as Hr,as as kr,at as zr,au as Wr,av as Yr,aw as yn,ax as Xr,ay as Jr,az as Zr,aA as Qr,aB as qr,aC as _r,aD as eo,aE as to,aF as no,aG as ao,aH as ro,aI as oo,aJ as lo,aK as io,aL as so,aM as uo,aN as po,aO as co,o as B,aP as fo,aQ as vo,aR as mo,aS as go,aT as ho,aU as yo,aV as bo,aW as we,aX as xo,aY as So,r as Xe,aZ as Eo,d as R,a_ as Io,a$ as pa,b0 as Oo,b1 as Co,b2 as To,b3 as wo,b4 as Do,b5 as Ao,b6 as Po,b7 as $o,b8 as Ro,b9 as Vo,ba as Fo,bb as Te,bc as jo,bd as Mo,be as No,bf as Lo,bg as Uo,bh as Ko,bi as Go,bj as Bo,bk as M,bl as Ho,bm as ko,bn as zo,bo as Wo,bp as Yo,bq as Xo,br as Jo,bs as Zo,bt as Qo,bu as qo,bv as _o,bw as el,bx as tl,by as nl,bz as al,bA as rl,bB as ca,bC as ol,bD as ll,bE as pn,bF as il,bG as sl,bH as ul,bI as dl,w as b,bJ as pl,bK as fa,bL as cl,bM as fl,bN as vl,bO as ml,u as qe,bP as bn,bQ as va,bR as xt}from"./index-BajJpuha.js";import{g as ma,a as gl,c as Fn,u as hl,S as yl}from"./index-Cyz760UL.js";import{_ as bl}from"./PanelCard-CL21y_Aa.js";/** +import{B as $a,f as Ra,C as Va,D as Fa,E as ja,g as Ma,h as Na,F as Le,K as La,R as Ua,S as Ka,i as Ga,T as Ba,j as Ha,k as ka,l as za,m as Wa,n as Ya,V as Xa,p as Ja,q as Za,s as Qa,t as qa,v as _a,x as er,y as tr,c as Ee,z as nr,a as z,A as Z,b as je,G as ua,H as ar,I as rr,J as or,L as lr,M as ir,N as sr,O as de,e as g,P as ur,Q as dr,U as da,W as pr,X as cr,Y as fr,Z as vr,_ as mr,$ as gr,a0 as hr,a1 as yr,a2 as br,a3 as xr,a4 as Sr,a5 as Er,a6 as Ir,a7 as Or,a8 as Cr,a9 as Tr,aa as pt,ab as wr,ac as Dr,ad as Ar,ae as Pr,af as $r,ag as Rr,ah as Vr,ai as Fr,aj as jr,ak as Mr,al as Nr,am as Lr,an as Ur,ao as Kr,ap as Gr,aq as Br,ar as Hr,as as kr,at as zr,au as Wr,av as Yr,aw as yn,ax as Xr,ay as Jr,az as Zr,aA as Qr,aB as qr,aC as _r,aD as eo,aE as to,aF as no,aG as ao,aH as ro,aI as oo,aJ as lo,aK as io,aL as so,aM as uo,aN as po,aO as co,o as B,aP as fo,aQ as vo,aR as mo,aS as go,aT as ho,aU as yo,aV as bo,aW as we,aX as xo,aY as So,r as Xe,aZ as Eo,d as R,a_ as Io,a$ as pa,b0 as Oo,b1 as Co,b2 as To,b3 as wo,b4 as Do,b5 as Ao,b6 as Po,b7 as $o,b8 as Ro,b9 as Vo,ba as Fo,bb as Te,bc as jo,bd as Mo,be as No,bf as Lo,bg as Uo,bh as Ko,bi as Go,bj as Bo,bk as M,bl as Ho,bm as ko,bn as zo,bo as Wo,bp as Yo,bq as Xo,br as Jo,bs as Zo,bt as Qo,bu as qo,bv as _o,bw as el,bx as tl,by as nl,bz as al,bA as rl,bB as ca,bC as ol,bD as ll,bE as pn,bF as il,bG as sl,bH as ul,bI as dl,w as b,bJ as pl,bK as fa,bL as cl,bM as fl,bN as vl,bO as ml,u as qe,bP as bn,bQ as va,bR as xt}from"./index-DzyB4pDG.js";import{g as ma,a as gl,c as Fn,u as hl,S as yl}from"./index-CLpZ9nKM.js";import{_ as bl}from"./PanelCard-0KRtoqkb.js";/** * vue v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT diff --git a/www/fhemapp4/assets/index-Cyz760UL.js b/www/fhemapp4/assets/index-CLpZ9nKM.js similarity index 99% rename from www/fhemapp4/assets/index-Cyz760UL.js rename to www/fhemapp4/assets/index-CLpZ9nKM.js index 2e277f6..368fe72 100644 --- a/www/fhemapp4/assets/index-Cyz760UL.js +++ b/www/fhemapp4/assets/index-CLpZ9nKM.js @@ -1,4 +1,4 @@ -import{bF as fe,bE as pe,aW as he,aU as ye,U as ve,e as ge,O as me,c as be}from"./index-BajJpuha.js";var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ve(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var m=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,m.get?m:{enumerable:!0,get:function(){return e[a]}})}),r}var $={d:(e,t)=>{for(var r in t)$.o(t,r)&&!$.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ie={};function J(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r{for(var r in t)$.o(t,r)&&!$.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ie={};function J(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);rje});const u=(te={computed:()=>be,createTextVNode:()=>me,createVNode:()=>ge,defineComponent:()=>ve,reactive:()=>ye,ref:()=>he,watch:()=>pe,watchEffect:()=>fe},G={},$.d(G,te),G),Se=(0,u.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,u.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),ke=(0,u.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var r=t.emit;return{uiType:(0,u.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,u.computed)({get:function(){return e.checked},set:function(a){return r("update:modelValue",a)}})}},render:function(){var e=this.uiType,t=this.model,r=this.$emit;return(0,u.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(a){return a.stopPropagation()}},[(0,u.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,u.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return r("change",t)}},null)])}}),Ne=(0,u.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,r=e==="objectStart"||e==="arrayStart";return r||e==="objectCollapsed"||e==="arrayCollapsed"?(0,u.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(r?"open":"close"),onClick:t},[(0,u.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,u.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var te,G;function X(e){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X(e)}function le(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function I(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,m=a||{},s=m.key,d=m.index,n=m.type,p=n===void 0?"content":n,f=m.showComma,g=f!==void 0&&f,N=m.length,O=N===void 0?1:N,V=le(e);if(V==="array"){var w=ne(e.map(function(T,E,o){return I(T,"".concat(t,"[").concat(E,"]"),r+1,{index:E,showComma:E!==o.length-1,length:O,type:p})}));return[I("[",t,r,{showComma:!1,key:s,length:e.length,type:"arrayStart"})[0]].concat(w,I("]",t,r,{showComma:g,length:e.length,type:"arrayEnd"})[0])}if(V==="object"){var k=Object.keys(e),C=ne(k.map(function(T,E,o){return I(e[T],/^[a-zA-Z_]\w*$/.test(T)?"".concat(t,".").concat(T):"".concat(t,'["').concat(T,'"]'),r+1,{key:T,showComma:E!==o.length-1,length:O,type:p})}));return[I("{",t,r,{showComma:!1,key:s,index:d,length:k.length,type:"objectStart"})[0]].concat(C,I("}",t,r,{showComma:g,length:k.length,type:"objectEnd"})[0])}return[{content:e,level:r,key:s,index:d,path:t,showComma:g,length:O,type:p}]}function ne(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=W(e),r=[];t.length;){var a=t.shift();Array.isArray(a)?t.unshift.apply(t,W(a)):r.push(a)}return r}function ee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(X(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var r=e.map(function(s){return ee(s,t)});return t.set(e,r),r}var a={};for(var m in e)a[m]=ee(e[m],t);return t.set(e,a),a}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),r.push.apply(r,a)}return r}function oe(e){for(var t=1;t=o||j.length>=l,P=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,j);return j.type!=="objectStart"&&j.type!=="arrayStart"||!x&&!P?S:_(_({},S),{},Z({},j.path,1))},{})},n=(0,u.reactive)({translateY:0,visibleData:null,hiddenPaths:d(e.deep,e.collapsedNodeLength)}),p=(0,u.computed)(function(){for(var o=null,l=[],S=s.value.length,j=0;jo.length?o.length-S:A;x<0&&(x=0);var P=x+S;n.translateY=x*e.itemHeight,n.visibleData=o.filter(function(F,R){return R>=x&&Ri.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DevicesView-BXrZzncO.js","./PanelCard-0KRtoqkb.js","./PanelCard-B2FL1pdY.css","./SettingsView-D4z0eDmZ.js","./index-CLpZ9nKM.js","./index-Imkheof_.css","./SettingsView-D4qYkadJ.css","./InternalsView-Btpm_Y2R.js"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -12,7 +12,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DevicesView-FJHLHjVE * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const pN=[];function Y6(e){pN.push(e)}function X6(){pN.pop()}function rwe(e,t){}const awe={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},j6={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function lh(e,t,n,r){try{return r?e(...r):e()}catch(a){gf(a,t,n)}}function Ja(e,t,n,r){if(Je(e)){const a=lh(e,t,n,r);return a&&vC(a)&&a.catch(i=>{gf(i,t,n)}),a}if(Fe(e)){const a=[];for(let i=0;i>>1,a=wr[r],i=uv(a);i=uv(n)?wr.push(e):wr.splice(K6(t),0,e),e.flags|=1,yN()}}function yN(){Jp||(Jp=mN.then(_N))}function Qp(e){Fe(e)?Rc.push(...e):Jo&&e.id===-1?Jo.splice(hc+1,0,e):e.flags&1||(Rc.push(e),e.flags|=1),yN()}function tD(e,t,n=pi+1){for(;nuv(n)-uv(r));if(Rc.length=0,Jo){Jo.push(...t);return}for(Jo=t,hc=0;hce.id==null?e.flags&2?-1:1/0:e.id;function _N(e){try{for(pi=0;pigc.emit(a,...i)),Jh=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{bN(i,t)}),setTimeout(()=>{gc||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Jh=[])},3e3)):Jh=[]}let kn=null,ky=null;function cv(e){const t=kn;return kn=e,ky=e&&e.type.__scopeId||null,t}function iwe(e){ky=e}function owe(){ky=null}const swe=e=>Vt;function Vt(e,t=kn,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&gD(-1);const i=cv(t);let o;try{o=e(...a)}finally{cv(i),r._d&&gD(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Zt(e,t){if(kn===null)return e;const n=dh(kn),r=e.dirs||(e.dirs=[]);for(let a=0;ae.__isTeleport,Bd=e=>e&&(e.disabled||e.disabled===""),nD=e=>e&&(e.defer||e.defer===""),rD=e=>typeof SVGElement<"u"&&e instanceof SVGElement,aD=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,l1=(e,t)=>{const n=e&&e.to;return Wt(n)?t?t(n):null:n},wN={name:"Teleport",__isTeleport:!0,process(e,t,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:v,querySelector:h,createText:g,createComment:p}}=u,m=Bd(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const x=t.el=g(""),S=t.anchor=g("");v(x,n,r),v(S,n,r);const T=(w,A)=>{y&16&&(a&&a.isCE&&(a.ce._teleportTarget=w),c(_,w,A,a,i,o,s,l))},C=()=>{const w=t.target=l1(t.props,h),A=CN(w,t,g,v);w&&(o!=="svg"&&rD(w)?o="svg":o!=="mathml"&&aD(w)&&(o="mathml"),m||(T(w,A),yp(t,!1)))};m&&(T(n,S),yp(t,!0)),nD(t.props)?In(()=>{C(),t.el.__isMounted=!0},i):C()}else{if(nD(t.props)&&!e.el.__isMounted){In(()=>{wN.process(e,t,n,r,a,i,o,s,l,u),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const x=t.anchor=e.anchor,S=t.target=e.target,T=t.targetAnchor=e.targetAnchor,C=Bd(e.props),w=C?n:S,A=C?x:T;if(o==="svg"||rD(S)?o="svg":(o==="mathml"||aD(S))&&(o="mathml"),b?(d(e.dynamicChildren,b,w,a,i,o,s),PC(e,t,!0)):l||f(e,t,w,A,a,i,o,s,!1),m)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qh(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=l1(t.props,h);D&&Qh(t,D,null,u,0)}else C&&Qh(t,S,T,u,1);yp(t,m)}},remove(e,t,n,{um:r,o:{remove:a}},i){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(a(u),a(c)),i&&a(l),o&16){const v=i||!Bd(d);for(let h=0;h{e.isMounted=!0}),Cn(()=>{e.isUnmounting=!0}),e}const sa=[Function,Array],AN={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sa,onEnter:sa,onAfterEnter:sa,onEnterCancelled:sa,onBeforeLeave:sa,onLeave:sa,onAfterLeave:sa,onLeaveCancelled:sa,onBeforeAppear:sa,onAppear:sa,onAfterAppear:sa,onAppearCancelled:sa},IN=e=>{const t=e.subTree;return t.component?IN(t.component):t},Q6={name:"BaseTransition",props:AN,setup(e,{slots:t}){const n=Mr(),r=TN();return()=>{const a=t.default&&bC(t.default(),!0);if(!a||!a.length)return;const i=DN(a),o=Xe(e),{mode:s}=o;if(r.isLeaving)return c_(i);const l=iD(i);if(!l)return c_(i);let u=fv(l,o,r,n,f=>u=f);l.type!==_n&&Ss(l,u);let c=n.subTree&&iD(n.subTree);if(c&&c.type!==_n&&!Wa(l,c)&&IN(n).type!==_n){let f=fv(c,o,r,n);if(Ss(c,f),s==="out-in"&&l.type!==_n)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},c_(i);s==="in-out"&&l.type!==_n?f.delayLeave=(d,v,h)=>{const g=PN(r,c);g[String(c.key)]=c,d[Qo]=()=>{v(),d[Qo]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{h(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function DN(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==_n){t=n;break}}return t}const e8=Q6;function PN(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function fv(e,t,n,r,a){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:v,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:p,onAppear:m,onAfterAppear:y,onAppearCancelled:_}=t,b=String(e.key),x=PN(n,e),S=(w,A)=>{w&&Ja(w,r,9,A)},T=(w,A)=>{const D=A[1];S(w,A),Fe(w)?w.every(P=>P.length<=1)&&D():w.length<=1&&D()},C={mode:o,persisted:s,beforeEnter(w){let A=l;if(!n.isMounted)if(i)A=p||l;else return;w[Qo]&&w[Qo](!0);const D=x[b];D&&Wa(e,D)&&D.el[Qo]&&D.el[Qo](),S(A,[w])},enter(w){let A=u,D=c,P=f;if(!n.isMounted)if(i)A=m||u,D=y||c,P=_||f;else return;let k=!1;const L=w[eg]=V=>{k||(k=!0,V?S(P,[w]):S(D,[w]),C.delayedLeave&&C.delayedLeave(),w[eg]=void 0)};A?T(A,[w,L]):L()},leave(w,A){const D=String(e.key);if(w[eg]&&w[eg](!0),n.isUnmounting)return A();S(d,[w]);let P=!1;const k=w[Qo]=L=>{P||(P=!0,A(),L?S(g,[w]):S(h,[w]),w[Qo]=void 0,x[D]===e&&delete x[D])};x[D]=e,v?T(v,[w,k]):k()},clone(w){const A=fv(w,t,n,r,a);return a&&a(A),A}};return C}function c_(e){if(uh(e))return e=Pi(e),e.children=null,e}function iD(e){if(!uh(e))return xN(e.type)&&e.children?DN(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Je(n.default))return n.default()}}function Ss(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ss(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bC(e,t=!1,n){let r=[],a=0;for(let i=0;i1)for(let i=0;in.value,set:i=>n.value=i})}return n}function dv(e,t,n,r,a=!1){if(Fe(e)){e.forEach((h,g)=>dv(h,t&&(Fe(t)?t[g]:t),n,r,a));return}if(gs(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&dv(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?dh(r.component):r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===mt?s.refs={}:s.refs,f=s.setupState,d=Xe(f),v=f===mt?()=>!1:h=>Pt(d,h);if(u!=null&&u!==l&&(Wt(u)?(c[u]=null,v(u)&&(f[u]=null)):Bt(u)&&(u.value=null)),Je(l))lh(l,s,12,[o,c]);else{const h=Wt(l),g=Bt(l);if(h||g){const p=()=>{if(e.f){const m=h?v(l)?f[l]:c[l]:l.value;a?Fe(m)&&dC(m,i):Fe(m)?m.includes(i)||m.push(i):h?(c[l]=[i],v(l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else h?(c[l]=o,v(l)&&(f[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(p.id=-1,In(p,n)):p()}}}let oD=!1;const Hu=()=>{oD||(console.error("Hydration completed but contains mismatches."),oD=!0)},t8=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",n8=e=>e.namespaceURI.includes("MathML"),tg=e=>{if(e.nodeType===1){if(t8(e))return"svg";if(n8(e))return"mathml"}},wc=e=>e.nodeType===8;function r8(e){const{mt:t,p:n,o:{patchProp:r,createText:a,nextSibling:i,parentNode:o,remove:s,insert:l,createComment:u}}=e,c=(_,b)=>{if(!b.hasChildNodes()){n(null,_,b),em(),b._vnode=_;return}f(b.firstChild,_,null,null,null),em(),b._vnode=_},f=(_,b,x,S,T,C=!1)=>{C=C||!!b.dynamicChildren;const w=wc(_)&&_.data==="[",A=()=>g(_,b,x,S,T,w),{type:D,ref:P,shapeFlag:k,patchFlag:L}=b;let V=_.nodeType;b.el=_,L===-2&&(C=!1,b.dynamicChildren=null);let N=null;switch(D){case so:V!==3?b.children===""?(l(b.el=a(""),o(_),_),N=_):N=A():(_.data!==b.children&&(Hu(),_.data=b.children),N=i(_));break;case _n:y(_)?(N=i(_),m(b.el=_.content.firstChild,_,x)):V!==8||w?N=A():N=i(_);break;case Oc:if(w&&(_=i(_),V=_.nodeType),V===1||V===3){N=_;const $=!b.children.length;for(let z=0;z{C=C||!!b.dynamicChildren;const{type:w,props:A,patchFlag:D,shapeFlag:P,dirs:k,transition:L}=b,V=w==="input"||w==="option";if(V||D!==-1){k&&mi(b,null,x,"created");let N=!1;if(y(_)){N=YN(null,L)&&x&&x.vnode.props&&x.vnode.props.appear;const z=_.content.firstChild;N&&L.beforeEnter(z),m(z,_,x),b.el=_=z}if(P&16&&!(A&&(A.innerHTML||A.textContent))){let z=v(_.firstChild,b,_,x,S,T,C);for(;z;){ng(_,1)||Hu();const H=z;z=z.nextSibling,s(H)}}else if(P&8){let z=b.children;z[0]===` -`&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(z=z.slice(1)),_.textContent!==z&&(ng(_,0)||Hu(),_.textContent=b.children)}if(A){if(V||!C||D&48){const z=_.tagName.includes("-");for(const H in A)(V&&(H.endsWith("value")||H==="indeterminate")||ih(H)&&!Lc(H)||H[0]==="."||z)&&r(_,H,null,A[H],void 0,x)}else if(A.onClick)r(_,"onClick",null,A.onClick,void 0,x);else if(D&4&&oo(A.style))for(const z in A.style)A.style[z]}let $;($=A&&A.onVnodeBeforeMount)&&Or($,x,b),k&&mi(b,null,x,"beforeMount"),(($=A&&A.onVnodeMounted)||k||N)&&JN(()=>{$&&Or($,x,b),N&&L.enter(_),k&&mi(b,null,x,"mounted")},S)}return _.nextSibling},v=(_,b,x,S,T,C,w)=>{w=w||!!b.dynamicChildren;const A=b.children,D=A.length;for(let P=0;P{const{slotScopeIds:w}=b;w&&(T=T?T.concat(w):w);const A=o(_),D=v(i(_),b,A,x,S,T,C);return D&&wc(D)&&D.data==="]"?i(b.anchor=D):(Hu(),l(b.anchor=u("]"),A,D),D)},g=(_,b,x,S,T,C)=>{if(ng(_.parentElement,1)||Hu(),b.el=null,C){const D=p(_);for(;;){const P=i(_);if(P&&P!==D)s(P);else break}}const w=i(_),A=o(_);return s(_),n(null,b,A,w,x,S,tg(A),T),x&&(x.vnode.el=b.el,Vy(x,b.el)),w},p=(_,b="[",x="]")=>{let S=0;for(;_;)if(_=i(_),_&&wc(_)&&(_.data===b&&S++,_.data===x)){if(S===0)return i(_);S--}return _},m=(_,b,x)=>{const S=b.parentNode;S&&S.replaceChild(_,b);let T=x;for(;T;)T.vnode.el===b&&(T.vnode.el=T.subTree.el=_),T=T.parent},y=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[c,f]}const sD="data-allow-mismatch",a8={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ng(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(sD);)e=e.parentElement;const n=e&&e.getAttribute(sD);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(a8[t])}}const i8=xy().requestIdleCallback||(e=>setTimeout(e,1)),o8=xy().cancelIdleCallback||(e=>clearTimeout(e)),cwe=(e=1e4)=>t=>{const n=i8(t,{timeout:e});return()=>o8(n)};function s8(e){const{top:t,left:n,bottom:r,right:a}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&a(t,n)=>{const r=new IntersectionObserver(a=>{for(const i of a)if(i.isIntersecting){r.disconnect(),t();break}},e);return n(a=>{if(a instanceof Element){if(s8(a))return t(),r.disconnect(),!1;r.observe(a)}}),()=>r.disconnect()},dwe=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},vwe=(e=[])=>(t,n)=>{Wt(e)&&(e=[e]);let r=!1;const a=o=>{r||(r=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{n(o=>{for(const s of e)o.removeEventListener(s,a)})};return n(o=>{for(const s of e)o.addEventListener(s,a,{once:!0})}),i};function l8(e,t){if(wc(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wc(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const gs=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function hwe(e){Je(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:a=200,hydrate:i,timeout:o,suspensible:s=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,v()),v=()=>{let h;return u||(h=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((p,m)=>{l(g,()=>p(d()),()=>m(g),f+1)});throw g}).then(g=>h!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return Os({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(h,g,p){const m=i?()=>{const y=i(p,_=>l8(h,_));y&&(g.bum||(g.bum=[])).push(y)}:p;c?m():v().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const h=Pn;if(SC(h),c)return()=>f_(c,h);const g=_=>{u=null,gf(_,h,13,!r)};if(s&&h.suspense||$c)return v().then(_=>()=>f_(_,h)).catch(_=>(g(_),()=>r?I(r,{error:_}):null));const p=ye(!1),m=ye(),y=ye(!!a);return a&&setTimeout(()=>{y.value=!1},a),o!=null&&setTimeout(()=>{if(!p.value&&!m.value){const _=new Error(`Async component timed out after ${o}ms.`);g(_),m.value=_}},o),v().then(()=>{p.value=!0,h.parent&&uh(h.parent.vnode)&&h.parent.update()}).catch(_=>{g(_),m.value=_}),()=>{if(p.value&&c)return f_(c,h);if(m.value&&r)return I(r,{error:m.value});if(n&&!y.value)return I(n)}}})}function f_(e,t){const{ref:n,props:r,children:a,ce:i}=t.vnode,o=I(e,r,a);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const uh=e=>e.type.__isKeepAlive,u8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Mr(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const a=new Map,i=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(y,_,b,x,S)=>{const T=y.component;u(y,_,b,0,s),l(T.vnode,y,_,b,T,s,x,y.slotScopeIds,S),In(()=>{T.isDeactivated=!1,T.a&&Ec(T.a);const C=y.props&&y.props.onVnodeMounted;C&&Or(C,T.parent,y)},s)},r.deactivate=y=>{const _=y.component;nm(_.m),nm(_.a),u(y,d,null,1,s),In(()=>{_.da&&Ec(_.da);const b=y.props&&y.props.onVnodeUnmounted;b&&Or(b,_.parent,y),_.isDeactivated=!0},s)};function v(y){d_(y),c(y,n,s,!0)}function h(y){a.forEach((_,b)=>{const x=b1(_.type);x&&!y(x)&&g(b)})}function g(y){const _=a.get(y);_&&(!o||!Wa(_,o))?v(_):o&&d_(o),a.delete(y),i.delete(y)}Ce(()=>[e.include,e.exclude],([y,_])=>{y&&h(b=>Sd(y,b)),_&&h(b=>!Sd(_,b))},{flush:"post",deep:!0});let p=null;const m=()=>{p!=null&&(rm(n.subTree.type)?In(()=>{a.set(p,rg(n.subTree))},n.subTree.suspense):a.set(p,rg(n.subTree)))};return wn(m),Ey(m),Cn(()=>{a.forEach(y=>{const{subTree:_,suspense:b}=n,x=rg(_);if(y.type===x.type&&y.key===x.key){d_(x);const S=x.component.da;S&&In(S,b);return}v(y)})}),()=>{if(p=null,!t.default)return o=null;const y=t.default(),_=y[0];if(y.length>1)return o=null,y;if(!ho(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let b=rg(_);if(b.type===_n)return o=null,b;const x=b.type,S=b1(gs(b)?b.type.__asyncResolved||{}:x),{include:T,exclude:C,max:w}=e;if(T&&(!S||!Sd(T,S))||C&&S&&Sd(C,S))return b.shapeFlag&=-257,o=b,_;const A=b.key==null?x:b.key,D=a.get(A);return b.el&&(b=Pi(b),_.shapeFlag&128&&(_.ssContent=b)),p=A,D?(b.el=D.el,b.component=D.component,b.transition&&Ss(b,b.transition),b.shapeFlag|=512,i.delete(A),i.add(A)):(i.add(A),w&&i.size>parseInt(w,10)&&g(i.values().next().value)),b.shapeFlag|=256,o=b,rm(_.type)?_:b}}},gwe=u8;function Sd(e,t){return Fe(e)?e.some(n=>Sd(n,t)):Wt(e)?e.split(",").includes(t):a6(e)?(e.lastIndex=0,e.test(t)):!1}function kN(e,t){MN(e,"a",t)}function xC(e,t){MN(e,"da",t)}function MN(e,t,n=Pn){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(My(t,r,n),n){let a=n.parent;for(;a&&a.parent;)uh(a.parent.vnode)&&c8(r,t,n,a),a=a.parent}}function c8(e,t,n,r){const a=My(t,e,r,!0);ch(()=>{dC(r[t],a)},n)}function d_(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function rg(e){return e.shapeFlag&128?e.ssContent:e}function My(e,t,n=Pn,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Es();const s=au(n),l=Ja(t,n,e,o);return s(),Rs(),l});return r?a.unshift(i):a.push(i),i}}const Io=e=>(t,n=Pn)=>{(!$c||e==="sp")&&My(e,(...r)=>t(...r),n)},Ly=Io("bm"),wn=Io("m"),wC=Io("bu"),Ey=Io("u"),Cn=Io("bum"),ch=Io("um"),f8=Io("sp"),d8=Io("rtg"),v8=Io("rtc");function h8(e,t=Pn){My("ec",e,t)}const CC="components",g8="directives";function Dt(e,t){return TC(CC,e,!0,t)||e}const LN=Symbol.for("v-ndc");function p8(e){return Wt(e)?TC(CC,e,!1)||e:e||LN}function na(e){return TC(g8,e)}function TC(e,t,n=!0,r=!1){const a=kn||Pn;if(a){const i=a.type;if(e===CC){const s=b1(i,!1);if(s&&(s===t||s===Gn(t)||s===Oi(Gn(t))))return i}const o=lD(a[e]||i[e],t)||lD(a.appContext[e],t);return!o&&r?i:o}}function lD(e,t){return e&&(e[t]||e[Gn(t)]||e[Oi(Gn(t))])}function u1(e,t,n,r){let a;const i=n&&n[r],o=Fe(e);if(o||Wt(e)){const s=o&&oo(e);let l=!1;s&&(l=!Ta(e),e=Ay(e)),a=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);a=new Array(s.length);for(let l=0,u=s.length;l{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return e}function pwe(e,t,n={},r,a){if(kn.ce||kn.parent&&gs(kn.parent)&&kn.parent.ce)return t!=="default"&&(n.name=t),Xt(),jn(ke,null,[I("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),Xt();const o=i&&AC(i(n)),s=n.key||o&&o.key,l=jn(ke,{key:(s&&!qa(s)?s:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function AC(e){return e.some(t=>ho(t)?!(t.type===_n||t.type===ke&&!AC(t.children)):!0)?e:null}function mwe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:mp(r)]=e[r];return n}const c1=e=>e?aB(e)?dh(e):c1(e.parent):null,zd=Gt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>c1(e.parent),$root:e=>c1(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>IC(e),$forceUpdate:e=>e.f||(e.f=()=>{_C(e.update)}),$nextTick:e=>e.n||(e.n=ht.bind(e.proxy)),$watch:e=>z8.bind(e)}),v_=(e,t)=>e!==mt&&!e.__isScriptSetup&&Pt(e,t),f1={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(v_(r,t))return o[t]=1,r[t];if(a!==mt&&Pt(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&Pt(u,t))return o[t]=3,i[t];if(n!==mt&&Pt(n,t))return o[t]=4,n[t];d1&&(o[t]=0)}}const c=zd[t];let f,d;if(c)return t==="$attrs"&&ar(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==mt&&Pt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,Pt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return v_(a,t)?(a[t]=n,!0):r!==mt&&Pt(r,t)?(r[t]=n,!0):Pt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||e!==mt&&Pt(e,o)||v_(t,o)||(s=i[0])&&Pt(s,o)||Pt(r,o)||Pt(zd,o)||Pt(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},y8=Gt({},f1,{get(e,t){if(t!==Symbol.unscopables)return f1.get(e,t,e)},has(e,t){return t[0]!=="_"&&!u6(t)}});function ywe(){return null}function _we(){return null}function bwe(e){}function Swe(e){}function xwe(){return null}function wwe(){}function Cwe(e,t){return null}function Twe(){return EN().slots}function Awe(){return EN().attrs}function EN(){const e=Mr();return e.setupContext||(e.setupContext=sB(e))}function vv(e){return Fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Iwe(e,t){const n=vv(e);for(const r in t){if(r.startsWith("__skip"))continue;let a=n[r];a?Fe(a)||Je(a)?a=n[r]={type:a,default:t[r]}:a.default=t[r]:a===null&&(a=n[r]={default:t[r]}),a&&t[`__skip_${r}`]&&(a.skipFactory=!0)}return n}function Dwe(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):Gt({},vv(e),vv(t))}function Pwe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function kwe(e){const t=Mr();let n=e();return m1(),vC(n)&&(n=n.catch(r=>{throw au(t),r})),[n,()=>au(t)]}let d1=!0;function _8(e){const t=IC(e),n=e.proxy,r=e.ctx;d1=!1,t.beforeCreate&&uD(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:v,updated:h,activated:g,deactivated:p,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:S,renderTriggered:T,errorCaptured:C,serverPrefetch:w,expose:A,inheritAttrs:D,components:P,directives:k,filters:L}=t;if(u&&b8(u,r,null),o)for(const $ in o){const z=o[$];Je(z)&&(r[$]=z.bind(n))}if(a){const $=a.call(n,n);Ft($)&&(e.data=yn($))}if(d1=!0,i)for(const $ in i){const z=i[$],H=Je(z)?z.bind(n,n):Je(z.get)?z.get.bind(n,n):Ca,U=!Je(z)&&Je(z.set)?z.set.bind(n):Ca,Y=E({get:H,set:U});Object.defineProperty(r,$,{enumerable:!0,configurable:!0,get:()=>Y.value,set:J=>Y.value=J})}if(s)for(const $ in s)RN(s[$],r,n,$);if(l){const $=Je(l)?l.call(n):l;Reflect.ownKeys($).forEach(z=>{Lt(z,$[z])})}c&&uD(c,e,"c");function N($,z){Fe(z)?z.forEach(H=>$(H.bind(n))):z&&$(z.bind(n))}if(N(Ly,f),N(wn,d),N(wC,v),N(Ey,h),N(kN,g),N(xC,p),N(h8,C),N(v8,S),N(d8,T),N(Cn,y),N(ch,b),N(f8,w),Fe(A))if(A.length){const $=e.exposed||(e.exposed={});A.forEach(z=>{Object.defineProperty($,z,{get:()=>n[z],set:H=>n[z]=H})})}else e.exposed||(e.exposed={});x&&e.render===Ca&&(e.render=x),D!=null&&(e.inheritAttrs=D),P&&(e.components=P),k&&(e.directives=k),w&&SC(e)}function b8(e,t,n=Ca){Fe(e)&&(e=v1(e));for(const r in e){const a=e[r];let i;Ft(a)?"default"in a?i=rt(a.from||r,a.default,!0):i=rt(a.from||r):i=rt(a),Bt(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function uD(e,t,n){Ja(Fe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function RN(e,t,n,r){let a=r.includes(".")?jN(n,r):()=>n[r];if(Wt(e)){const i=t[e];Je(i)&&Ce(a,i)}else if(Je(e))Ce(a,e.bind(n));else if(Ft(e))if(Fe(e))e.forEach(i=>RN(i,t,n,r));else{const i=Je(e.handler)?e.handler.bind(n):t[e.handler];Je(i)&&Ce(a,i,e)}}function IC(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>tm(l,u,o,!0)),tm(l,t,o)),Ft(t)&&i.set(t,l),l}function tm(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&tm(e,i,n,!0),a&&a.forEach(o=>tm(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=S8[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const S8={data:cD,props:fD,emits:fD,methods:xd,computed:xd,beforeCreate:gr,created:gr,beforeMount:gr,mounted:gr,beforeUpdate:gr,updated:gr,beforeDestroy:gr,beforeUnmount:gr,destroyed:gr,unmounted:gr,activated:gr,deactivated:gr,errorCaptured:gr,serverPrefetch:gr,components:xd,directives:xd,watch:w8,provide:cD,inject:x8};function cD(e,t){return t?e?function(){return Gt(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function x8(e,t){return xd(v1(e),v1(t))}function v1(e){if(Fe(e)){const t={};for(let n=0;n1)return n&&Je(t)?t.call(r&&r.proxy):t}}function A8(){return!!(Pn||kn||Hl)}const ON={},NN=()=>Object.create(ON),BN=e=>Object.getPrototypeOf(e)===ON;function I8(e,t,n,r=!1){const a={},i=NN();e.propsDefaults=Object.create(null),zN(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:dN(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function D8(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=Xe(a),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,v]=FN(f,t,!0);Gt(o,d),v&&s.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Ft(e)&&r.set(e,kc),kc;if(Fe(i))for(let c=0;ce[0]==="_"||e==="$stable",DC=e=>Fe(e)?e.map(Nr):[Nr(e)],k8=(e,t,n)=>{if(t._n)return t;const r=Vt((...a)=>DC(t(...a)),n);return r._c=!1,r},GN=(e,t,n)=>{const r=e._ctx;for(const a in e){if(HN(a))continue;const i=e[a];if(Je(i))t[a]=k8(a,i,r);else if(i!=null){const o=DC(i);t[a]=()=>o}}},$N=(e,t)=>{const n=DC(t);e.slots.default=()=>n},WN=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},M8=(e,t,n)=>{const r=e.slots=NN();if(e.vnode.shapeFlag&32){const a=t._;a?(WN(r,t,n),n&&UO(r,"_",a,!0)):GN(t,r)}else t&&$N(e,t)},L8=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=mt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:WN(a,t,n):(i=!t.$stable,GN(t,a)),o=t}else t&&($N(e,t),o={default:1});if(i)for(const s in a)!HN(s)&&o[s]==null&&delete a[s]},In=JN;function E8(e){return UN(e)}function R8(e){return UN(e,r8)}function UN(e,t){const n=xy();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:v=Ca,insertStaticContent:h}=e,g=(M,O,X,K=null,q=null,re=null,me=void 0,F=null,W=!!O.dynamicChildren)=>{if(M===O)return;M&&!Wa(M,O)&&(K=Z(M),J(M,q,re,!0),M=null),O.patchFlag===-2&&(W=!1,O.dynamicChildren=null);const{type:Q,ref:_e,shapeFlag:xe}=O;switch(Q){case so:p(M,O,X,K);break;case _n:m(M,O,X,K);break;case Oc:M==null&&y(O,X,K,me);break;case ke:P(M,O,X,K,q,re,me,F,W);break;default:xe&1?x(M,O,X,K,q,re,me,F,W):xe&6?k(M,O,X,K,q,re,me,F,W):(xe&64||xe&128)&&Q.process(M,O,X,K,q,re,me,F,W,G)}_e!=null&&q&&dv(_e,M&&M.ref,re,O||M,!O)},p=(M,O,X,K)=>{if(M==null)r(O.el=s(O.children),X,K);else{const q=O.el=M.el;O.children!==M.children&&u(q,O.children)}},m=(M,O,X,K)=>{M==null?r(O.el=l(O.children||""),X,K):O.el=M.el},y=(M,O,X,K)=>{[M.el,M.anchor]=h(M.children,O,X,K,M.el,M.anchor)},_=({el:M,anchor:O},X,K)=>{let q;for(;M&&M!==O;)q=d(M),r(M,X,K),M=q;r(O,X,K)},b=({el:M,anchor:O})=>{let X;for(;M&&M!==O;)X=d(M),a(M),M=X;a(O)},x=(M,O,X,K,q,re,me,F,W)=>{O.type==="svg"?me="svg":O.type==="math"&&(me="mathml"),M==null?S(O,X,K,q,re,me,F,W):w(M,O,q,re,me,F,W)},S=(M,O,X,K,q,re,me,F)=>{let W,Q;const{props:_e,shapeFlag:xe,transition:Se,dirs:ie}=M;if(W=M.el=o(M.type,re,_e&&_e.is,_e),xe&8?c(W,M.children):xe&16&&C(M.children,W,null,K,q,h_(M,re),me,F),ie&&mi(M,null,K,"created"),T(W,M,M.scopeId,me,K),_e){for(const Ge in _e)Ge!=="value"&&!Lc(Ge)&&i(W,Ge,null,_e[Ge],re,K);"value"in _e&&i(W,"value",null,_e.value,re),(Q=_e.onVnodeBeforeMount)&&Or(Q,K,M)}ie&&mi(M,null,K,"beforeMount");const de=YN(q,Se);de&&Se.beforeEnter(W),r(W,O,X),((Q=_e&&_e.onVnodeMounted)||de||ie)&&In(()=>{Q&&Or(Q,K,M),de&&Se.enter(W),ie&&mi(M,null,K,"mounted")},q)},T=(M,O,X,K,q)=>{if(X&&v(M,X),K)for(let re=0;re{for(let Q=W;Q{const F=O.el=M.el;let{patchFlag:W,dynamicChildren:Q,dirs:_e}=O;W|=M.patchFlag&16;const xe=M.props||mt,Se=O.props||mt;let ie;if(X&&Ws(X,!1),(ie=Se.onVnodeBeforeUpdate)&&Or(ie,X,O,M),_e&&mi(O,M,X,"beforeUpdate"),X&&Ws(X,!0),(xe.innerHTML&&Se.innerHTML==null||xe.textContent&&Se.textContent==null)&&c(F,""),Q?A(M.dynamicChildren,Q,F,X,K,h_(O,q),re):me||z(M,O,F,null,X,K,h_(O,q),re,!1),W>0){if(W&16)D(F,xe,Se,X,q);else if(W&2&&xe.class!==Se.class&&i(F,"class",null,Se.class,q),W&4&&i(F,"style",xe.style,Se.style,q),W&8){const de=O.dynamicProps;for(let Ge=0;Ge{ie&&Or(ie,X,O,M),_e&&mi(O,M,X,"updated")},K)},A=(M,O,X,K,q,re,me)=>{for(let F=0;F{if(O!==X){if(O!==mt)for(const re in O)!Lc(re)&&!(re in X)&&i(M,re,O[re],null,q,K);for(const re in X){if(Lc(re))continue;const me=X[re],F=O[re];me!==F&&re!=="value"&&i(M,re,F,me,q,K)}"value"in X&&i(M,"value",O.value,X.value,q)}},P=(M,O,X,K,q,re,me,F,W)=>{const Q=O.el=M?M.el:s(""),_e=O.anchor=M?M.anchor:s("");let{patchFlag:xe,dynamicChildren:Se,slotScopeIds:ie}=O;ie&&(F=F?F.concat(ie):ie),M==null?(r(Q,X,K),r(_e,X,K),C(O.children||[],X,_e,q,re,me,F,W)):xe>0&&xe&64&&Se&&M.dynamicChildren?(A(M.dynamicChildren,Se,X,q,re,me,F),(O.key!=null||q&&O===q.subTree)&&PC(M,O,!0)):z(M,O,X,_e,q,re,me,F,W)},k=(M,O,X,K,q,re,me,F,W)=>{O.slotScopeIds=F,M==null?O.shapeFlag&512?q.ctx.activate(O,X,K,me,W):L(O,X,K,q,re,me,W):V(M,O,W)},L=(M,O,X,K,q,re,me)=>{const F=M.component=rB(M,K,q);if(uh(M)&&(F.ctx.renderer=G),iB(F,!1,me),F.asyncDep){if(q&&q.registerDep(F,N,me),!M.el){const W=F.subTree=I(_n);m(null,W,O,X)}}else N(F,M,O,X,q,re,me)},V=(M,O,X)=>{const K=O.component=M.component;if(W8(M,O,X))if(K.asyncDep&&!K.asyncResolved){$(K,O,X);return}else K.next=O,K.update();else O.el=M.el,K.vnode=O},N=(M,O,X,K,q,re,me)=>{const F=()=>{if(M.isMounted){let{next:xe,bu:Se,u:ie,parent:de,vnode:Ge}=M;{const vr=XN(M);if(vr){xe&&(xe.el=Ge.el,$(M,xe,me)),vr.asyncDep.then(()=>{M.isUnmounted||F()});return}}let qe=xe,rn;Ws(M,!1),xe?(xe.el=Ge.el,$(M,xe,me)):xe=Ge,Se&&Ec(Se),(rn=xe.props&&xe.props.onVnodeBeforeUpdate)&&Or(rn,de,xe,Ge),Ws(M,!0);const cn=_p(M),Bn=M.subTree;M.subTree=cn,g(Bn,cn,f(Bn.el),Z(Bn),M,q,re),xe.el=cn.el,qe===null&&Vy(M,cn.el),ie&&In(ie,q),(rn=xe.props&&xe.props.onVnodeUpdated)&&In(()=>Or(rn,de,xe,Ge),q)}else{let xe;const{el:Se,props:ie}=O,{bm:de,m:Ge,parent:qe,root:rn,type:cn}=M,Bn=gs(O);if(Ws(M,!1),de&&Ec(de),!Bn&&(xe=ie&&ie.onVnodeBeforeMount)&&Or(xe,qe,O),Ws(M,!0),Se&&j){const vr=()=>{M.subTree=_p(M),j(Se,M.subTree,M,q,null)};Bn&&cn.__asyncHydrate?cn.__asyncHydrate(Se,M,vr):vr()}else{rn.ce&&rn.ce._injectChildStyle(cn);const vr=M.subTree=_p(M);g(null,vr,X,K,M,q,re),O.el=vr.el}if(Ge&&In(Ge,q),!Bn&&(xe=ie&&ie.onVnodeMounted)){const vr=O;In(()=>Or(xe,qe,vr),q)}(O.shapeFlag&256||qe&&gs(qe.vnode)&&qe.vnode.shapeFlag&256)&&M.a&&In(M.a,q),M.isMounted=!0,O=X=K=null}};M.scope.on();const W=M.effect=new Zp(F);M.scope.off();const Q=M.update=W.run.bind(W),_e=M.job=W.runIfDirty.bind(W);_e.i=M,_e.id=M.uid,W.scheduler=()=>_C(_e),Ws(M,!0),Q()},$=(M,O,X)=>{O.component=M;const K=M.vnode.props;M.vnode=O,M.next=null,D8(M,O.props,K,X),L8(M,O.children,X),Es(),tD(M),Rs()},z=(M,O,X,K,q,re,me,F,W=!1)=>{const Q=M&&M.children,_e=M?M.shapeFlag:0,xe=O.children,{patchFlag:Se,shapeFlag:ie}=O;if(Se>0){if(Se&128){U(Q,xe,X,K,q,re,me,F,W);return}else if(Se&256){H(Q,xe,X,K,q,re,me,F,W);return}}ie&8?(_e&16&&ae(Q,q,re),xe!==Q&&c(X,xe)):_e&16?ie&16?U(Q,xe,X,K,q,re,me,F,W):ae(Q,q,re,!0):(_e&8&&c(X,""),ie&16&&C(xe,X,K,q,re,me,F,W))},H=(M,O,X,K,q,re,me,F,W)=>{M=M||kc,O=O||kc;const Q=M.length,_e=O.length,xe=Math.min(Q,_e);let Se;for(Se=0;Se_e?ae(M,q,re,!0,!1,xe):C(O,X,K,q,re,me,F,W,xe)},U=(M,O,X,K,q,re,me,F,W)=>{let Q=0;const _e=O.length;let xe=M.length-1,Se=_e-1;for(;Q<=xe&&Q<=Se;){const ie=M[Q],de=O[Q]=W?es(O[Q]):Nr(O[Q]);if(Wa(ie,de))g(ie,de,X,null,q,re,me,F,W);else break;Q++}for(;Q<=xe&&Q<=Se;){const ie=M[xe],de=O[Se]=W?es(O[Se]):Nr(O[Se]);if(Wa(ie,de))g(ie,de,X,null,q,re,me,F,W);else break;xe--,Se--}if(Q>xe){if(Q<=Se){const ie=Se+1,de=ie<_e?O[ie].el:K;for(;Q<=Se;)g(null,O[Q]=W?es(O[Q]):Nr(O[Q]),X,de,q,re,me,F,W),Q++}}else if(Q>Se)for(;Q<=xe;)J(M[Q],q,re,!0),Q++;else{const ie=Q,de=Q,Ge=new Map;for(Q=de;Q<=Se;Q++){const Yr=O[Q]=W?es(O[Q]):Nr(O[Q]);Yr.key!=null&&Ge.set(Yr.key,Q)}let qe,rn=0;const cn=Se-de+1;let Bn=!1,vr=0;const zu=new Array(cn);for(Q=0;Q=cn){J(Yr,q,re,!0);continue}let si;if(Yr.key!=null)si=Ge.get(Yr.key);else for(qe=de;qe<=Se;qe++)if(zu[qe-de]===0&&Wa(Yr,O[qe])){si=qe;break}si===void 0?J(Yr,q,re,!0):(zu[si-de]=Q+1,si>=vr?vr=si:Bn=!0,g(Yr,O[si],X,null,q,re,me,F,W),rn++)}const ZI=Bn?V8(zu):kc;for(qe=ZI.length-1,Q=cn-1;Q>=0;Q--){const Yr=de+Q,si=O[Yr],KI=Yr+1<_e?O[Yr+1].el:K;zu[Q]===0?g(null,si,X,KI,q,re,me,F,W):Bn&&(qe<0||Q!==ZI[qe]?Y(si,X,KI,2):qe--)}}},Y=(M,O,X,K,q=null)=>{const{el:re,type:me,transition:F,children:W,shapeFlag:Q}=M;if(Q&6){Y(M.component.subTree,O,X,K);return}if(Q&128){M.suspense.move(O,X,K);return}if(Q&64){me.move(M,O,X,G);return}if(me===ke){r(re,O,X);for(let xe=0;xeF.enter(re),q);else{const{leave:xe,delayLeave:Se,afterLeave:ie}=F,de=()=>r(re,O,X),Ge=()=>{xe(re,()=>{de(),ie&&ie()})};Se?Se(re,de,Ge):Ge()}else r(re,O,X)},J=(M,O,X,K=!1,q=!1)=>{const{type:re,props:me,ref:F,children:W,dynamicChildren:Q,shapeFlag:_e,patchFlag:xe,dirs:Se,cacheIndex:ie}=M;if(xe===-2&&(q=!1),F!=null&&dv(F,null,X,M,!0),ie!=null&&(O.renderCache[ie]=void 0),_e&256){O.ctx.deactivate(M);return}const de=_e&1&&Se,Ge=!gs(M);let qe;if(Ge&&(qe=me&&me.onVnodeBeforeUnmount)&&Or(qe,O,M),_e&6)be(M.component,X,K);else{if(_e&128){M.suspense.unmount(X,K);return}de&&mi(M,null,O,"beforeUnmount"),_e&64?M.type.remove(M,O,X,G,K):Q&&!Q.hasOnce&&(re!==ke||xe>0&&xe&64)?ae(Q,O,X,!1,!0):(re===ke&&xe&384||!q&&_e&16)&&ae(W,O,X),K&&ue(M)}(Ge&&(qe=me&&me.onVnodeUnmounted)||de)&&In(()=>{qe&&Or(qe,O,M),de&&mi(M,null,O,"unmounted")},X)},ue=M=>{const{type:O,el:X,anchor:K,transition:q}=M;if(O===ke){le(X,K);return}if(O===Oc){b(M);return}const re=()=>{a(X),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(M.shapeFlag&1&&q&&!q.persisted){const{leave:me,delayLeave:F}=q,W=()=>me(X,re);F?F(M.el,re,W):W()}else re()},le=(M,O)=>{let X;for(;M!==O;)X=d(M),a(M),M=X;a(O)},be=(M,O,X)=>{const{bum:K,scope:q,job:re,subTree:me,um:F,m:W,a:Q}=M;nm(W),nm(Q),K&&Ec(K),q.stop(),re&&(re.flags|=8,J(me,M,O,X)),F&&In(F,O),In(()=>{M.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},ae=(M,O,X,K=!1,q=!1,re=0)=>{for(let me=re;me{if(M.shapeFlag&6)return Z(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const O=d(M.anchor||M.el),X=O&&O[SN];return X?d(X):O};let te=!1;const se=(M,O,X)=>{M==null?O._vnode&&J(O._vnode,null,null,!0):g(O._vnode||null,M,O,null,null,null,X),O._vnode=M,te||(te=!0,tD(),em(),te=!1)},G={p:g,um:J,m:Y,r:ue,mt:L,mc:C,pc:z,pbc:A,n:Z,o:e};let B,j;return t&&([B,j]=t(G)),{render:se,hydrate:B,createApp:T8(se,B)}}function h_({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ws({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function YN(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function PC(e,t,n=!1){const r=e.children,a=t.children;if(Fe(r)&&Fe(a))for(let i=0;i>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function XN(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:XN(t)}function nm(e){if(e)for(let t=0;trt(O8);function un(e,t){return fh(e,null,t)}function Mwe(e,t){return fh(e,null,{flush:"post"})}function B8(e,t){return fh(e,null,{flush:"sync"})}function Ce(e,t,n){return fh(e,t,n)}function fh(e,t,n=mt){const{immediate:r,deep:a,flush:i,once:o}=n,s=Gt({},n),l=t&&r||!t&&i!=="post";let u;if($c){if(i==="sync"){const v=N8();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=Ca,v.resume=Ca,v.pause=Ca,v}}const c=Pn;s.call=(v,h,g)=>Ja(v,c,h,g);let f=!1;i==="post"?s.scheduler=v=>{In(v,c&&c.suspense)}:i!=="sync"&&(f=!0,s.scheduler=(v,h)=>{h?v():_C(v)}),s.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const d=U6(e,t,s);return $c&&(u?u.push(d):l&&d()),d}function z8(e,t,n){const r=this.proxy,a=Wt(e)?e.includes(".")?jN(r,e):()=>r[e]:e.bind(r,r);let i;Je(t)?i=t:(i=t.handler,n=t);const o=au(this),s=fh(a,i.bind(r),n);return o(),s}function jN(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a{let c,f=mt,d;return B8(()=>{const v=e[a];xr(c,v)&&(c=v,u())}),{get(){return l(),n.get?n.get(c):c},set(v){const h=n.set?n.set(v):v;if(!xr(h,c)&&!(f!==mt&&xr(v,f)))return;const g=r.vnode.props;g&&(t in g||a in g||i in g)&&(`onUpdate:${t}`in g||`onUpdate:${a}`in g||`onUpdate:${i}`in g)||(c=v,u()),r.emit(`update:${t}`,h),xr(v,h)&&xr(v,f)&&!xr(h,d)&&u(),f=v,d=h}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||mt:s,done:!1}:{done:!0}}}},s}const ZN=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Gn(t)}Modifiers`]||e[`${Hr(t)}Modifiers`];function F8(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||mt;let a=n;const i=t.startsWith("update:"),o=i&&ZN(r,t.slice(7));o&&(o.trim&&(a=n.map(c=>Wt(c)?c.trim():c)),o.number&&(a=n.map(Xp)));let s,l=r[s=mp(t)]||r[s=mp(Gn(t))];!l&&i&&(l=r[s=mp(Hr(t))]),l&&Ja(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ja(u,e,6,a)}}function KN(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!Je(e)){const l=u=>{const c=KN(u,t,!0);c&&(s=!0,Gt(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Ft(e)&&r.set(e,null),null):(Fe(i)?i.forEach(l=>o[l]=null):Gt(o,i),Ft(e)&&r.set(e,o),o)}function Ry(e,t){return!e||!ih(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pt(e,t[0].toLowerCase()+t.slice(1))||Pt(e,Hr(t))||Pt(e,t))}function _p(e){const{type:t,vnode:n,proxy:r,withProxy:a,propsOptions:[i],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:f,data:d,setupState:v,ctx:h,inheritAttrs:g}=e,p=cv(e);let m,y;try{if(n.shapeFlag&4){const b=a||r,x=b;m=Nr(u.call(x,b,c,f,v,d,h)),y=s}else{const b=t;m=Nr(b.length>1?b(f,{attrs:s,slots:o,emit:l}):b(f,null)),y=t.props?s:G8(s)}}catch(b){Fd.length=0,gf(b,e,1),m=I(_n)}let _=m;if(y&&g!==!1){const b=Object.keys(y),{shapeFlag:x}=_;b.length&&x&7&&(i&&b.some(fC)&&(y=$8(y,i)),_=Pi(_,y,!1,!0))}return n.dirs&&(_=Pi(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Ss(_,n.transition),m=_,cv(p),m}function H8(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||ih(n))&&((t||(t={}))[n]=e[n]);return t},$8=(e,t)=>{const n={};for(const r in e)(!fC(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function W8(e,t,n){const{props:r,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?vD(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let g1=0;const U8={name:"Suspense",__isSuspense:!0,process(e,t,n,r,a,i,o,s,l,u){if(e==null)Y8(t,n,r,a,i,o,s,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}X8(e,t,n,r,a,o,s,l,u)}},hydrate:j8,normalize:Z8},Ewe=U8;function hv(e,t){const n=e.props&&e.props[t];Je(n)&&n()}function Y8(e,t,n,r,a,i,o,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=qN(e,a,r,t,f,n,i,o,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,i,o),d.deps>0?(hv(e,"onPending"),hv(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),Vc(d,e.ssFallback)):d.resolve(!1,!0)}function X8(e,t,n,r,a,i,o,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,v=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:p,isHydrating:m}=f;if(g)f.pendingBranch=d,Wa(d,g)?(l(g,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():p&&(m||(l(h,v,n,r,a,null,i,o,s),Vc(f,v)))):(f.pendingId=g1++,m?(f.isHydrating=!1,f.activeBranch=g):u(g,a,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),p?(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():(l(h,v,n,r,a,null,i,o,s),Vc(f,v))):h&&Wa(d,h)?(l(h,d,n,r,a,f,i,o,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0&&f.resolve()));else if(h&&Wa(d,h))l(h,d,n,r,a,f,i,o,s),Vc(f,d);else if(hv(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=g1++,l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:_}=f;y>0?setTimeout(()=>{f.pendingId===_&&f.fallback(v)},y):y===0&&f.fallback(v)}}function qN(e,t,n,r,a,i,o,s,l,u,c=!1){const{p:f,m:d,um:v,n:h,o:{parentNode:g,remove:p}}=u;let m;const y=K8(e);y&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const _=e.props?jp(e.props.timeout):void 0,b=i,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:a,deps:0,pendingId:g1++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,T=!1){const{vnode:C,activeBranch:w,pendingBranch:A,pendingId:D,effects:P,parentComponent:k,container:L}=x;let V=!1;x.isHydrating?x.isHydrating=!1:S||(V=w&&A.transition&&A.transition.mode==="out-in",V&&(w.transition.afterLeave=()=>{D===x.pendingId&&(d(A,L,i===b?h(w):i,0),Qp(P))}),w&&(g(w.el)===L&&(i=h(w)),v(w,k,x,!0)),V||d(A,L,i,0)),Vc(x,A),x.pendingBranch=null,x.isInFallback=!1;let N=x.parent,$=!1;for(;N;){if(N.pendingBranch){N.effects.push(...P),$=!0;break}N=N.parent}!$&&!V&&Qp(P),x.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),hv(C,"onResolve")},fallback(S){if(!x.pendingBranch)return;const{vnode:T,activeBranch:C,parentComponent:w,container:A,namespace:D}=x;hv(T,"onFallback");const P=h(C),k=()=>{x.isInFallback&&(f(null,S,A,P,w,null,D,s,l),Vc(x,S))},L=S.transition&&S.transition.mode==="out-in";L&&(C.transition.afterLeave=k),x.isInFallback=!0,v(C,w,null,!0),L||k()},move(S,T,C){x.activeBranch&&d(x.activeBranch,S,T,C),x.container=S},next(){return x.activeBranch&&h(x.activeBranch)},registerDep(S,T,C){const w=!!x.pendingBranch;w&&x.deps++;const A=S.vnode.el;S.asyncDep.catch(D=>{gf(D,S,0)}).then(D=>{if(S.isUnmounted||x.isUnmounted||x.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:P}=S;y1(S,D,!1),A&&(P.el=A);const k=!A&&S.subTree.el;T(S,P,g(A||S.subTree.el),A?null:h(S.subTree),x,o,C),k&&p(k),Vy(S,P.el),w&&--x.deps===0&&x.resolve()})},unmount(S,T){x.isUnmounted=!0,x.activeBranch&&v(x.activeBranch,n,S,T),x.pendingBranch&&v(x.pendingBranch,n,S,T)}};return x}function j8(e,t,n,r,a,i,o,s,l){const u=t.suspense=qN(t,r,n,e.parentNode,document.createElement("div"),null,a,i,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function Z8(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=hD(r?n.default:n),e.ssFallback=r?hD(n.fallback):I(_n)}function hD(e){let t;if(Je(e)){const n=ru&&e._c;n&&(e._d=!1,Xt()),e=e(),n&&(e._d=!0,t=or,QN())}return Fe(e)&&(e=H8(e)),e=Nr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function JN(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):Qp(e)}function Vc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;n.el=a,r&&r.subTree===n&&(r.vnode.el=a,Vy(r,a))}function K8(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ke=Symbol.for("v-fgt"),so=Symbol.for("v-txt"),_n=Symbol.for("v-cmt"),Oc=Symbol.for("v-stc"),Fd=[];let or=null;function Xt(e=!1){Fd.push(or=e?null:[])}function QN(){Fd.pop(),or=Fd[Fd.length-1]||null}let ru=1;function gD(e,t=!1){ru+=e,e<0&&or&&t&&(or.hasOnce=!0)}function eB(e){return e.dynamicChildren=ru>0?or||kc:null,QN(),ru>0&&or&&or.push(e),e}function Gl(e,t,n,r,a,i){return eB(nB(e,t,n,r,a,i,!0))}function jn(e,t,n,r,a){return eB(I(e,t,n,r,a,!0))}function ho(e){return e?e.__v_isVNode===!0:!1}function Wa(e,t){return e.type===t.type&&e.key===t.key}function Rwe(e){}const tB=({key:e})=>e??null,bp=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Wt(e)||Bt(e)||Je(e)?{i:kn,r:e,k:t,f:!!n}:e:null);function nB(e,t=null,n=null,r=0,a=null,i=e===ke?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tB(t),ref:t&&bp(t),scopeId:ky,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:kn};return s?(kC(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Wt(n)?8:16),ru>0&&!o&&or&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&or.push(l),l}const I=q8;function q8(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===LN)&&(e=_n),ho(e)){const s=Pi(e,t,!0);return n&&kC(s,n),ru>0&&!i&&or&&(s.shapeFlag&6?or[or.indexOf(e)]=s:or.push(s)),s.patchFlag=-2,s}if(rY(e)&&(e=e.__vccOpts),t){t=J8(t);let{class:s,style:l}=t;s&&!Wt(s)&&(t.class=oh(s)),Ft(l)&&(yC(l)&&!Fe(l)&&(l=Gt({},l)),t.style=wy(l))}const o=Wt(e)?1:rm(e)?128:xN(e)?64:Ft(e)?4:Je(e)?2:0;return nB(e,t,n,r,a,o,i,!0)}function J8(e){return e?yC(e)||BN(e)?Gt({},e):e:null}function Pi(e,t,n=!1,r=!1){const{props:a,ref:i,patchFlag:o,children:s,transition:l}=e,u=t?ve(a||{},t):a,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&tB(u),ref:t&&t.ref?n&&i?Fe(i)?i.concat(bp(t)):[i,bp(t)]:bp(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pi(e.ssContent),ssFallback:e.ssFallback&&Pi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ss(c,l.clone(c)),c}function ta(e=" ",t=0){return I(so,null,e,t)}function Vwe(e,t){const n=I(Oc,null,e);return n.staticCount=t,n}function jr(e="",t=!1){return t?(Xt(),jn(_n,null,e)):I(_n,null,e)}function Nr(e){return e==null||typeof e=="boolean"?I(_n):Fe(e)?I(ke,null,e.slice()):ho(e)?es(e):I(so,null,String(e))}function es(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Pi(e)}function kC(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Fe(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),kC(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!BN(t)?t._ctx=kn:a===3&&kn&&(kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:kn},n=32):(t=String(t),r&64?(n=16,t=[ta(t)]):n=8);e.children=t,e.shapeFlag|=n}function ve(...e){const t={};for(let n=0;nPn||kn;let am,p1;{const e=xy(),t=(n,r)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(r),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};am=t("__VUE_INSTANCE_SETTERS__",n=>Pn=n),p1=t("__VUE_SSR_SETTERS__",n=>$c=n)}const au=e=>{const t=Pn;return am(e),e.scope.on(),()=>{e.scope.off(),am(t)}},m1=()=>{Pn&&Pn.scope.off(),am(null)};function aB(e){return e.vnode.shapeFlag&4}let $c=!1;function iB(e,t=!1,n=!1){t&&p1(t);const{props:r,children:a}=e.vnode,i=aB(e);I8(e,r,i,t),M8(e,a,n);const o=i?tY(e,t):void 0;return t&&p1(!1),o}function tY(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,f1);const{setup:r}=n;if(r){Es();const a=e.setupContext=r.length>1?sB(e):null,i=au(e),o=lh(r,e,0,[e.props,a]),s=vC(o);if(Rs(),i(),(s||e.sp)&&!gs(e)&&SC(e),s){if(o.then(m1,m1),t)return o.then(l=>{y1(e,l,t)}).catch(l=>{gf(l,e,0)});e.asyncDep=o}else y1(e,o,t)}else oB(e,t)}function y1(e,t,n){Je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ft(t)&&(e.setupState=hN(t)),oB(e,n)}let im,_1;function Owe(e){im=e,_1=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,y8))}}const Nwe=()=>!im;function oB(e,t,n){const r=e.type;if(!e.render){if(!t&&im&&!r.render){const a=r.template||IC(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Gt(Gt({isCustomElement:i,delimiters:s},o),l);r.render=im(a,u)}}e.render=r.render||Ca,_1&&_1(e)}{const a=au(e);Es();try{_8(e)}finally{Rs(),a()}}}const nY={get(e,t){return ar(e,"get",""),e[t]}};function sB(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,nY),slots:e.slots,emit:e.emit,expose:t}}function dh(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hN(Py(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zd)return zd[n](e)},has(t,n){return n in t||n in zd}})):e.proxy}function b1(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function rY(e){return Je(e)&&"__vccOpts"in e}const E=(e,t)=>$6(e,t,$c);function ra(e,t,n){const r=arguments.length;return r===2?Ft(t)&&!Fe(t)?ho(t)?I(e,null,[t]):I(e,t):I(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ho(n)&&(n=[n]),I(e,t,n))}function Bwe(){}function zwe(e,t,n,r){const a=n[r];if(a&&aY(a,e))return a;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function aY(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&or&&or.push(e),!0}const iY="3.5.13",Fwe=Ca,Hwe=j6,Gwe=gc,$we=bN,oY={createComponentInstance:rB,setupComponent:iB,renderComponentRoot:_p,setCurrentRenderingInstance:cv,isVNode:ho,normalizeVNode:Nr,getComponentPublicInstance:dh,ensureValidVNode:AC,pushWarningContext:Y6,popWarningContext:X6},Wwe=oY,Uwe=null,Ywe=null,Xwe=null;/** +`&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&(z=z.slice(1)),_.textContent!==z&&(ng(_,0)||Hu(),_.textContent=b.children)}if(A){if(V||!C||D&48){const z=_.tagName.includes("-");for(const H in A)(V&&(H.endsWith("value")||H==="indeterminate")||ih(H)&&!Lc(H)||H[0]==="."||z)&&r(_,H,null,A[H],void 0,x)}else if(A.onClick)r(_,"onClick",null,A.onClick,void 0,x);else if(D&4&&oo(A.style))for(const z in A.style)A.style[z]}let $;($=A&&A.onVnodeBeforeMount)&&Or($,x,b),k&&mi(b,null,x,"beforeMount"),(($=A&&A.onVnodeMounted)||k||N)&&JN(()=>{$&&Or($,x,b),N&&L.enter(_),k&&mi(b,null,x,"mounted")},S)}return _.nextSibling},v=(_,b,x,S,T,C,w)=>{w=w||!!b.dynamicChildren;const A=b.children,D=A.length;for(let P=0;P{const{slotScopeIds:w}=b;w&&(T=T?T.concat(w):w);const A=o(_),D=v(i(_),b,A,x,S,T,C);return D&&wc(D)&&D.data==="]"?i(b.anchor=D):(Hu(),l(b.anchor=u("]"),A,D),D)},g=(_,b,x,S,T,C)=>{if(ng(_.parentElement,1)||Hu(),b.el=null,C){const D=p(_);for(;;){const P=i(_);if(P&&P!==D)s(P);else break}}const w=i(_),A=o(_);return s(_),n(null,b,A,w,x,S,tg(A),T),x&&(x.vnode.el=b.el,Vy(x,b.el)),w},p=(_,b="[",x="]")=>{let S=0;for(;_;)if(_=i(_),_&&wc(_)&&(_.data===b&&S++,_.data===x)){if(S===0)return i(_);S--}return _},m=(_,b,x)=>{const S=b.parentNode;S&&S.replaceChild(_,b);let T=x;for(;T;)T.vnode.el===b&&(T.vnode.el=T.subTree.el=_),T=T.parent},y=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[c,f]}const sD="data-allow-mismatch",a8={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ng(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(sD);)e=e.parentElement;const n=e&&e.getAttribute(sD);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(a8[t])}}const i8=xy().requestIdleCallback||(e=>setTimeout(e,1)),o8=xy().cancelIdleCallback||(e=>clearTimeout(e)),cwe=(e=1e4)=>t=>{const n=i8(t,{timeout:e});return()=>o8(n)};function s8(e){const{top:t,left:n,bottom:r,right:a}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&a(t,n)=>{const r=new IntersectionObserver(a=>{for(const i of a)if(i.isIntersecting){r.disconnect(),t();break}},e);return n(a=>{if(a instanceof Element){if(s8(a))return t(),r.disconnect(),!1;r.observe(a)}}),()=>r.disconnect()},dwe=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},vwe=(e=[])=>(t,n)=>{Wt(e)&&(e=[e]);let r=!1;const a=o=>{r||(r=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{n(o=>{for(const s of e)o.removeEventListener(s,a)})};return n(o=>{for(const s of e)o.addEventListener(s,a,{once:!0})}),i};function l8(e,t){if(wc(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wc(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const gs=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function hwe(e){Je(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:a=200,hydrate:i,timeout:o,suspensible:s=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,v()),v=()=>{let h;return u||(h=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((p,m)=>{l(g,()=>p(d()),()=>m(g),f+1)});throw g}).then(g=>h!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return Os({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(h,g,p){const m=i?()=>{const y=i(p,_=>l8(h,_));y&&(g.bum||(g.bum=[])).push(y)}:p;c?m():v().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const h=Pn;if(SC(h),c)return()=>f_(c,h);const g=_=>{u=null,gf(_,h,13,!r)};if(s&&h.suspense||$c)return v().then(_=>()=>f_(_,h)).catch(_=>(g(_),()=>r?I(r,{error:_}):null));const p=ye(!1),m=ye(),y=ye(!!a);return a&&setTimeout(()=>{y.value=!1},a),o!=null&&setTimeout(()=>{if(!p.value&&!m.value){const _=new Error(`Async component timed out after ${o}ms.`);g(_),m.value=_}},o),v().then(()=>{p.value=!0,h.parent&&uh(h.parent.vnode)&&h.parent.update()}).catch(_=>{g(_),m.value=_}),()=>{if(p.value&&c)return f_(c,h);if(m.value&&r)return I(r,{error:m.value});if(n&&!y.value)return I(n)}}})}function f_(e,t){const{ref:n,props:r,children:a,ce:i}=t.vnode,o=I(e,r,a);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const uh=e=>e.type.__isKeepAlive,u8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Mr(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const a=new Map,i=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(y,_,b,x,S)=>{const T=y.component;u(y,_,b,0,s),l(T.vnode,y,_,b,T,s,x,y.slotScopeIds,S),In(()=>{T.isDeactivated=!1,T.a&&Ec(T.a);const C=y.props&&y.props.onVnodeMounted;C&&Or(C,T.parent,y)},s)},r.deactivate=y=>{const _=y.component;nm(_.m),nm(_.a),u(y,d,null,1,s),In(()=>{_.da&&Ec(_.da);const b=y.props&&y.props.onVnodeUnmounted;b&&Or(b,_.parent,y),_.isDeactivated=!0},s)};function v(y){d_(y),c(y,n,s,!0)}function h(y){a.forEach((_,b)=>{const x=b1(_.type);x&&!y(x)&&g(b)})}function g(y){const _=a.get(y);_&&(!o||!Wa(_,o))?v(_):o&&d_(o),a.delete(y),i.delete(y)}Ce(()=>[e.include,e.exclude],([y,_])=>{y&&h(b=>Sd(y,b)),_&&h(b=>!Sd(_,b))},{flush:"post",deep:!0});let p=null;const m=()=>{p!=null&&(rm(n.subTree.type)?In(()=>{a.set(p,rg(n.subTree))},n.subTree.suspense):a.set(p,rg(n.subTree)))};return wn(m),Ey(m),Cn(()=>{a.forEach(y=>{const{subTree:_,suspense:b}=n,x=rg(_);if(y.type===x.type&&y.key===x.key){d_(x);const S=x.component.da;S&&In(S,b);return}v(y)})}),()=>{if(p=null,!t.default)return o=null;const y=t.default(),_=y[0];if(y.length>1)return o=null,y;if(!ho(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return o=null,_;let b=rg(_);if(b.type===_n)return o=null,b;const x=b.type,S=b1(gs(b)?b.type.__asyncResolved||{}:x),{include:T,exclude:C,max:w}=e;if(T&&(!S||!Sd(T,S))||C&&S&&Sd(C,S))return b.shapeFlag&=-257,o=b,_;const A=b.key==null?x:b.key,D=a.get(A);return b.el&&(b=Pi(b),_.shapeFlag&128&&(_.ssContent=b)),p=A,D?(b.el=D.el,b.component=D.component,b.transition&&Ss(b,b.transition),b.shapeFlag|=512,i.delete(A),i.add(A)):(i.add(A),w&&i.size>parseInt(w,10)&&g(i.values().next().value)),b.shapeFlag|=256,o=b,rm(_.type)?_:b}}},gwe=u8;function Sd(e,t){return Fe(e)?e.some(n=>Sd(n,t)):Wt(e)?e.split(",").includes(t):a6(e)?(e.lastIndex=0,e.test(t)):!1}function kN(e,t){MN(e,"a",t)}function xC(e,t){MN(e,"da",t)}function MN(e,t,n=Pn){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(My(t,r,n),n){let a=n.parent;for(;a&&a.parent;)uh(a.parent.vnode)&&c8(r,t,n,a),a=a.parent}}function c8(e,t,n,r){const a=My(t,e,r,!0);ch(()=>{dC(r[t],a)},n)}function d_(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function rg(e){return e.shapeFlag&128?e.ssContent:e}function My(e,t,n=Pn,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Es();const s=au(n),l=Ja(t,n,e,o);return s(),Rs(),l});return r?a.unshift(i):a.push(i),i}}const Io=e=>(t,n=Pn)=>{(!$c||e==="sp")&&My(e,(...r)=>t(...r),n)},Ly=Io("bm"),wn=Io("m"),wC=Io("bu"),Ey=Io("u"),Cn=Io("bum"),ch=Io("um"),f8=Io("sp"),d8=Io("rtg"),v8=Io("rtc");function h8(e,t=Pn){My("ec",e,t)}const CC="components",g8="directives";function Dt(e,t){return TC(CC,e,!0,t)||e}const LN=Symbol.for("v-ndc");function p8(e){return Wt(e)?TC(CC,e,!1)||e:e||LN}function na(e){return TC(g8,e)}function TC(e,t,n=!0,r=!1){const a=kn||Pn;if(a){const i=a.type;if(e===CC){const s=b1(i,!1);if(s&&(s===t||s===Gn(t)||s===Oi(Gn(t))))return i}const o=lD(a[e]||i[e],t)||lD(a.appContext[e],t);return!o&&r?i:o}}function lD(e,t){return e&&(e[t]||e[Gn(t)]||e[Oi(Gn(t))])}function u1(e,t,n,r){let a;const i=n&&n[r],o=Fe(e);if(o||Wt(e)){const s=o&&oo(e);let l=!1;s&&(l=!Ta(e),e=Ay(e)),a=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);a=new Array(s.length);for(let l=0,u=s.length;l{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return e}function pwe(e,t,n={},r,a){if(kn.ce||kn.parent&&gs(kn.parent)&&kn.parent.ce)return t!=="default"&&(n.name=t),Xt(),jn(ke,null,[I("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),Xt();const o=i&&AC(i(n)),s=n.key||o&&o.key,l=jn(ke,{key:(s&&!qa(s)?s:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!a&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function AC(e){return e.some(t=>ho(t)?!(t.type===_n||t.type===ke&&!AC(t.children)):!0)?e:null}function mwe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:mp(r)]=e[r];return n}const c1=e=>e?aB(e)?dh(e):c1(e.parent):null,zd=Gt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>c1(e.parent),$root:e=>c1(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>IC(e),$forceUpdate:e=>e.f||(e.f=()=>{_C(e.update)}),$nextTick:e=>e.n||(e.n=ht.bind(e.proxy)),$watch:e=>z8.bind(e)}),v_=(e,t)=>e!==mt&&!e.__isScriptSetup&&Pt(e,t),f1={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(v_(r,t))return o[t]=1,r[t];if(a!==mt&&Pt(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&Pt(u,t))return o[t]=3,i[t];if(n!==mt&&Pt(n,t))return o[t]=4,n[t];d1&&(o[t]=0)}}const c=zd[t];let f,d;if(c)return t==="$attrs"&&ar(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==mt&&Pt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,Pt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return v_(a,t)?(a[t]=n,!0):r!==mt&&Pt(r,t)?(r[t]=n,!0):Pt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||e!==mt&&Pt(e,o)||v_(t,o)||(s=i[0])&&Pt(s,o)||Pt(r,o)||Pt(zd,o)||Pt(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},y8=Gt({},f1,{get(e,t){if(t!==Symbol.unscopables)return f1.get(e,t,e)},has(e,t){return t[0]!=="_"&&!u6(t)}});function ywe(){return null}function _we(){return null}function bwe(e){}function Swe(e){}function xwe(){return null}function wwe(){}function Cwe(e,t){return null}function Twe(){return EN().slots}function Awe(){return EN().attrs}function EN(){const e=Mr();return e.setupContext||(e.setupContext=sB(e))}function vv(e){return Fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Iwe(e,t){const n=vv(e);for(const r in t){if(r.startsWith("__skip"))continue;let a=n[r];a?Fe(a)||Je(a)?a=n[r]={type:a,default:t[r]}:a.default=t[r]:a===null&&(a=n[r]={default:t[r]}),a&&t[`__skip_${r}`]&&(a.skipFactory=!0)}return n}function Dwe(e,t){return!e||!t?e||t:Fe(e)&&Fe(t)?e.concat(t):Gt({},vv(e),vv(t))}function Pwe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function kwe(e){const t=Mr();let n=e();return m1(),vC(n)&&(n=n.catch(r=>{throw au(t),r})),[n,()=>au(t)]}let d1=!0;function _8(e){const t=IC(e),n=e.proxy,r=e.ctx;d1=!1,t.beforeCreate&&uD(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:v,updated:h,activated:g,deactivated:p,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:S,renderTriggered:T,errorCaptured:C,serverPrefetch:w,expose:A,inheritAttrs:D,components:P,directives:k,filters:L}=t;if(u&&b8(u,r,null),o)for(const $ in o){const z=o[$];Je(z)&&(r[$]=z.bind(n))}if(a){const $=a.call(n,n);Ft($)&&(e.data=yn($))}if(d1=!0,i)for(const $ in i){const z=i[$],H=Je(z)?z.bind(n,n):Je(z.get)?z.get.bind(n,n):Ca,U=!Je(z)&&Je(z.set)?z.set.bind(n):Ca,Y=E({get:H,set:U});Object.defineProperty(r,$,{enumerable:!0,configurable:!0,get:()=>Y.value,set:J=>Y.value=J})}if(s)for(const $ in s)RN(s[$],r,n,$);if(l){const $=Je(l)?l.call(n):l;Reflect.ownKeys($).forEach(z=>{Lt(z,$[z])})}c&&uD(c,e,"c");function N($,z){Fe(z)?z.forEach(H=>$(H.bind(n))):z&&$(z.bind(n))}if(N(Ly,f),N(wn,d),N(wC,v),N(Ey,h),N(kN,g),N(xC,p),N(h8,C),N(v8,S),N(d8,T),N(Cn,y),N(ch,b),N(f8,w),Fe(A))if(A.length){const $=e.exposed||(e.exposed={});A.forEach(z=>{Object.defineProperty($,z,{get:()=>n[z],set:H=>n[z]=H})})}else e.exposed||(e.exposed={});x&&e.render===Ca&&(e.render=x),D!=null&&(e.inheritAttrs=D),P&&(e.components=P),k&&(e.directives=k),w&&SC(e)}function b8(e,t,n=Ca){Fe(e)&&(e=v1(e));for(const r in e){const a=e[r];let i;Ft(a)?"default"in a?i=rt(a.from||r,a.default,!0):i=rt(a.from||r):i=rt(a),Bt(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function uD(e,t,n){Ja(Fe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function RN(e,t,n,r){let a=r.includes(".")?jN(n,r):()=>n[r];if(Wt(e)){const i=t[e];Je(i)&&Ce(a,i)}else if(Je(e))Ce(a,e.bind(n));else if(Ft(e))if(Fe(e))e.forEach(i=>RN(i,t,n,r));else{const i=Je(e.handler)?e.handler.bind(n):t[e.handler];Je(i)&&Ce(a,i,e)}}function IC(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>tm(l,u,o,!0)),tm(l,t,o)),Ft(t)&&i.set(t,l),l}function tm(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&tm(e,i,n,!0),a&&a.forEach(o=>tm(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=S8[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const S8={data:cD,props:fD,emits:fD,methods:xd,computed:xd,beforeCreate:gr,created:gr,beforeMount:gr,mounted:gr,beforeUpdate:gr,updated:gr,beforeDestroy:gr,beforeUnmount:gr,destroyed:gr,unmounted:gr,activated:gr,deactivated:gr,errorCaptured:gr,serverPrefetch:gr,components:xd,directives:xd,watch:w8,provide:cD,inject:x8};function cD(e,t){return t?e?function(){return Gt(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function x8(e,t){return xd(v1(e),v1(t))}function v1(e){if(Fe(e)){const t={};for(let n=0;n1)return n&&Je(t)?t.call(r&&r.proxy):t}}function A8(){return!!(Pn||kn||Hl)}const ON={},NN=()=>Object.create(ON),BN=e=>Object.getPrototypeOf(e)===ON;function I8(e,t,n,r=!1){const a={},i=NN();e.propsDefaults=Object.create(null),zN(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:dN(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function D8(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=Xe(a),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,v]=FN(f,t,!0);Gt(o,d),v&&s.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Ft(e)&&r.set(e,kc),kc;if(Fe(i))for(let c=0;ce[0]==="_"||e==="$stable",DC=e=>Fe(e)?e.map(Nr):[Nr(e)],k8=(e,t,n)=>{if(t._n)return t;const r=Vt((...a)=>DC(t(...a)),n);return r._c=!1,r},GN=(e,t,n)=>{const r=e._ctx;for(const a in e){if(HN(a))continue;const i=e[a];if(Je(i))t[a]=k8(a,i,r);else if(i!=null){const o=DC(i);t[a]=()=>o}}},$N=(e,t)=>{const n=DC(t);e.slots.default=()=>n},WN=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},M8=(e,t,n)=>{const r=e.slots=NN();if(e.vnode.shapeFlag&32){const a=t._;a?(WN(r,t,n),n&&UO(r,"_",a,!0)):GN(t,r)}else t&&$N(e,t)},L8=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=mt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:WN(a,t,n):(i=!t.$stable,GN(t,a)),o=t}else t&&($N(e,t),o={default:1});if(i)for(const s in a)!HN(s)&&o[s]==null&&delete a[s]},In=JN;function E8(e){return UN(e)}function R8(e){return UN(e,r8)}function UN(e,t){const n=xy();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:v=Ca,insertStaticContent:h}=e,g=(M,O,X,K=null,q=null,re=null,pe=void 0,F=null,W=!!O.dynamicChildren)=>{if(M===O)return;M&&!Wa(M,O)&&(K=Z(M),J(M,q,re,!0),M=null),O.patchFlag===-2&&(W=!1,O.dynamicChildren=null);const{type:Q,ref:_e,shapeFlag:xe}=O;switch(Q){case so:p(M,O,X,K);break;case _n:m(M,O,X,K);break;case Oc:M==null&&y(O,X,K,pe);break;case ke:P(M,O,X,K,q,re,pe,F,W);break;default:xe&1?x(M,O,X,K,q,re,pe,F,W):xe&6?k(M,O,X,K,q,re,pe,F,W):(xe&64||xe&128)&&Q.process(M,O,X,K,q,re,pe,F,W,G)}_e!=null&&q&&dv(_e,M&&M.ref,re,O||M,!O)},p=(M,O,X,K)=>{if(M==null)r(O.el=s(O.children),X,K);else{const q=O.el=M.el;O.children!==M.children&&u(q,O.children)}},m=(M,O,X,K)=>{M==null?r(O.el=l(O.children||""),X,K):O.el=M.el},y=(M,O,X,K)=>{[M.el,M.anchor]=h(M.children,O,X,K,M.el,M.anchor)},_=({el:M,anchor:O},X,K)=>{let q;for(;M&&M!==O;)q=d(M),r(M,X,K),M=q;r(O,X,K)},b=({el:M,anchor:O})=>{let X;for(;M&&M!==O;)X=d(M),a(M),M=X;a(O)},x=(M,O,X,K,q,re,pe,F,W)=>{O.type==="svg"?pe="svg":O.type==="math"&&(pe="mathml"),M==null?S(O,X,K,q,re,pe,F,W):w(M,O,q,re,pe,F,W)},S=(M,O,X,K,q,re,pe,F)=>{let W,Q;const{props:_e,shapeFlag:xe,transition:Se,dirs:ie}=M;if(W=M.el=o(M.type,re,_e&&_e.is,_e),xe&8?c(W,M.children):xe&16&&C(M.children,W,null,K,q,h_(M,re),pe,F),ie&&mi(M,null,K,"created"),T(W,M,M.scopeId,pe,K),_e){for(const Ge in _e)Ge!=="value"&&!Lc(Ge)&&i(W,Ge,null,_e[Ge],re,K);"value"in _e&&i(W,"value",null,_e.value,re),(Q=_e.onVnodeBeforeMount)&&Or(Q,K,M)}ie&&mi(M,null,K,"beforeMount");const de=YN(q,Se);de&&Se.beforeEnter(W),r(W,O,X),((Q=_e&&_e.onVnodeMounted)||de||ie)&&In(()=>{Q&&Or(Q,K,M),de&&Se.enter(W),ie&&mi(M,null,K,"mounted")},q)},T=(M,O,X,K,q)=>{if(X&&v(M,X),K)for(let re=0;re{for(let Q=W;Q{const F=O.el=M.el;let{patchFlag:W,dynamicChildren:Q,dirs:_e}=O;W|=M.patchFlag&16;const xe=M.props||mt,Se=O.props||mt;let ie;if(X&&Ws(X,!1),(ie=Se.onVnodeBeforeUpdate)&&Or(ie,X,O,M),_e&&mi(O,M,X,"beforeUpdate"),X&&Ws(X,!0),(xe.innerHTML&&Se.innerHTML==null||xe.textContent&&Se.textContent==null)&&c(F,""),Q?A(M.dynamicChildren,Q,F,X,K,h_(O,q),re):pe||z(M,O,F,null,X,K,h_(O,q),re,!1),W>0){if(W&16)D(F,xe,Se,X,q);else if(W&2&&xe.class!==Se.class&&i(F,"class",null,Se.class,q),W&4&&i(F,"style",xe.style,Se.style,q),W&8){const de=O.dynamicProps;for(let Ge=0;Ge{ie&&Or(ie,X,O,M),_e&&mi(O,M,X,"updated")},K)},A=(M,O,X,K,q,re,pe)=>{for(let F=0;F{if(O!==X){if(O!==mt)for(const re in O)!Lc(re)&&!(re in X)&&i(M,re,O[re],null,q,K);for(const re in X){if(Lc(re))continue;const pe=X[re],F=O[re];pe!==F&&re!=="value"&&i(M,re,F,pe,q,K)}"value"in X&&i(M,"value",O.value,X.value,q)}},P=(M,O,X,K,q,re,pe,F,W)=>{const Q=O.el=M?M.el:s(""),_e=O.anchor=M?M.anchor:s("");let{patchFlag:xe,dynamicChildren:Se,slotScopeIds:ie}=O;ie&&(F=F?F.concat(ie):ie),M==null?(r(Q,X,K),r(_e,X,K),C(O.children||[],X,_e,q,re,pe,F,W)):xe>0&&xe&64&&Se&&M.dynamicChildren?(A(M.dynamicChildren,Se,X,q,re,pe,F),(O.key!=null||q&&O===q.subTree)&&PC(M,O,!0)):z(M,O,X,_e,q,re,pe,F,W)},k=(M,O,X,K,q,re,pe,F,W)=>{O.slotScopeIds=F,M==null?O.shapeFlag&512?q.ctx.activate(O,X,K,pe,W):L(O,X,K,q,re,pe,W):V(M,O,W)},L=(M,O,X,K,q,re,pe)=>{const F=M.component=rB(M,K,q);if(uh(M)&&(F.ctx.renderer=G),iB(F,!1,pe),F.asyncDep){if(q&&q.registerDep(F,N,pe),!M.el){const W=F.subTree=I(_n);m(null,W,O,X)}}else N(F,M,O,X,q,re,pe)},V=(M,O,X)=>{const K=O.component=M.component;if(W8(M,O,X))if(K.asyncDep&&!K.asyncResolved){$(K,O,X);return}else K.next=O,K.update();else O.el=M.el,K.vnode=O},N=(M,O,X,K,q,re,pe)=>{const F=()=>{if(M.isMounted){let{next:xe,bu:Se,u:ie,parent:de,vnode:Ge}=M;{const vr=XN(M);if(vr){xe&&(xe.el=Ge.el,$(M,xe,pe)),vr.asyncDep.then(()=>{M.isUnmounted||F()});return}}let qe=xe,rn;Ws(M,!1),xe?(xe.el=Ge.el,$(M,xe,pe)):xe=Ge,Se&&Ec(Se),(rn=xe.props&&xe.props.onVnodeBeforeUpdate)&&Or(rn,de,xe,Ge),Ws(M,!0);const cn=_p(M),Bn=M.subTree;M.subTree=cn,g(Bn,cn,f(Bn.el),Z(Bn),M,q,re),xe.el=cn.el,qe===null&&Vy(M,cn.el),ie&&In(ie,q),(rn=xe.props&&xe.props.onVnodeUpdated)&&In(()=>Or(rn,de,xe,Ge),q)}else{let xe;const{el:Se,props:ie}=O,{bm:de,m:Ge,parent:qe,root:rn,type:cn}=M,Bn=gs(O);if(Ws(M,!1),de&&Ec(de),!Bn&&(xe=ie&&ie.onVnodeBeforeMount)&&Or(xe,qe,O),Ws(M,!0),Se&&j){const vr=()=>{M.subTree=_p(M),j(Se,M.subTree,M,q,null)};Bn&&cn.__asyncHydrate?cn.__asyncHydrate(Se,M,vr):vr()}else{rn.ce&&rn.ce._injectChildStyle(cn);const vr=M.subTree=_p(M);g(null,vr,X,K,M,q,re),O.el=vr.el}if(Ge&&In(Ge,q),!Bn&&(xe=ie&&ie.onVnodeMounted)){const vr=O;In(()=>Or(xe,qe,vr),q)}(O.shapeFlag&256||qe&&gs(qe.vnode)&&qe.vnode.shapeFlag&256)&&M.a&&In(M.a,q),M.isMounted=!0,O=X=K=null}};M.scope.on();const W=M.effect=new Zp(F);M.scope.off();const Q=M.update=W.run.bind(W),_e=M.job=W.runIfDirty.bind(W);_e.i=M,_e.id=M.uid,W.scheduler=()=>_C(_e),Ws(M,!0),Q()},$=(M,O,X)=>{O.component=M;const K=M.vnode.props;M.vnode=O,M.next=null,D8(M,O.props,K,X),L8(M,O.children,X),Es(),tD(M),Rs()},z=(M,O,X,K,q,re,pe,F,W=!1)=>{const Q=M&&M.children,_e=M?M.shapeFlag:0,xe=O.children,{patchFlag:Se,shapeFlag:ie}=O;if(Se>0){if(Se&128){U(Q,xe,X,K,q,re,pe,F,W);return}else if(Se&256){H(Q,xe,X,K,q,re,pe,F,W);return}}ie&8?(_e&16&&ae(Q,q,re),xe!==Q&&c(X,xe)):_e&16?ie&16?U(Q,xe,X,K,q,re,pe,F,W):ae(Q,q,re,!0):(_e&8&&c(X,""),ie&16&&C(xe,X,K,q,re,pe,F,W))},H=(M,O,X,K,q,re,pe,F,W)=>{M=M||kc,O=O||kc;const Q=M.length,_e=O.length,xe=Math.min(Q,_e);let Se;for(Se=0;Se_e?ae(M,q,re,!0,!1,xe):C(O,X,K,q,re,pe,F,W,xe)},U=(M,O,X,K,q,re,pe,F,W)=>{let Q=0;const _e=O.length;let xe=M.length-1,Se=_e-1;for(;Q<=xe&&Q<=Se;){const ie=M[Q],de=O[Q]=W?es(O[Q]):Nr(O[Q]);if(Wa(ie,de))g(ie,de,X,null,q,re,pe,F,W);else break;Q++}for(;Q<=xe&&Q<=Se;){const ie=M[xe],de=O[Se]=W?es(O[Se]):Nr(O[Se]);if(Wa(ie,de))g(ie,de,X,null,q,re,pe,F,W);else break;xe--,Se--}if(Q>xe){if(Q<=Se){const ie=Se+1,de=ie<_e?O[ie].el:K;for(;Q<=Se;)g(null,O[Q]=W?es(O[Q]):Nr(O[Q]),X,de,q,re,pe,F,W),Q++}}else if(Q>Se)for(;Q<=xe;)J(M[Q],q,re,!0),Q++;else{const ie=Q,de=Q,Ge=new Map;for(Q=de;Q<=Se;Q++){const Yr=O[Q]=W?es(O[Q]):Nr(O[Q]);Yr.key!=null&&Ge.set(Yr.key,Q)}let qe,rn=0;const cn=Se-de+1;let Bn=!1,vr=0;const zu=new Array(cn);for(Q=0;Q=cn){J(Yr,q,re,!0);continue}let si;if(Yr.key!=null)si=Ge.get(Yr.key);else for(qe=de;qe<=Se;qe++)if(zu[qe-de]===0&&Wa(Yr,O[qe])){si=qe;break}si===void 0?J(Yr,q,re,!0):(zu[si-de]=Q+1,si>=vr?vr=si:Bn=!0,g(Yr,O[si],X,null,q,re,pe,F,W),rn++)}const ZI=Bn?V8(zu):kc;for(qe=ZI.length-1,Q=cn-1;Q>=0;Q--){const Yr=de+Q,si=O[Yr],KI=Yr+1<_e?O[Yr+1].el:K;zu[Q]===0?g(null,si,X,KI,q,re,pe,F,W):Bn&&(qe<0||Q!==ZI[qe]?Y(si,X,KI,2):qe--)}}},Y=(M,O,X,K,q=null)=>{const{el:re,type:pe,transition:F,children:W,shapeFlag:Q}=M;if(Q&6){Y(M.component.subTree,O,X,K);return}if(Q&128){M.suspense.move(O,X,K);return}if(Q&64){pe.move(M,O,X,G);return}if(pe===ke){r(re,O,X);for(let xe=0;xeF.enter(re),q);else{const{leave:xe,delayLeave:Se,afterLeave:ie}=F,de=()=>r(re,O,X),Ge=()=>{xe(re,()=>{de(),ie&&ie()})};Se?Se(re,de,Ge):Ge()}else r(re,O,X)},J=(M,O,X,K=!1,q=!1)=>{const{type:re,props:pe,ref:F,children:W,dynamicChildren:Q,shapeFlag:_e,patchFlag:xe,dirs:Se,cacheIndex:ie}=M;if(xe===-2&&(q=!1),F!=null&&dv(F,null,X,M,!0),ie!=null&&(O.renderCache[ie]=void 0),_e&256){O.ctx.deactivate(M);return}const de=_e&1&&Se,Ge=!gs(M);let qe;if(Ge&&(qe=pe&&pe.onVnodeBeforeUnmount)&&Or(qe,O,M),_e&6)be(M.component,X,K);else{if(_e&128){M.suspense.unmount(X,K);return}de&&mi(M,null,O,"beforeUnmount"),_e&64?M.type.remove(M,O,X,G,K):Q&&!Q.hasOnce&&(re!==ke||xe>0&&xe&64)?ae(Q,O,X,!1,!0):(re===ke&&xe&384||!q&&_e&16)&&ae(W,O,X),K&&ue(M)}(Ge&&(qe=pe&&pe.onVnodeUnmounted)||de)&&In(()=>{qe&&Or(qe,O,M),de&&mi(M,null,O,"unmounted")},X)},ue=M=>{const{type:O,el:X,anchor:K,transition:q}=M;if(O===ke){le(X,K);return}if(O===Oc){b(M);return}const re=()=>{a(X),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(M.shapeFlag&1&&q&&!q.persisted){const{leave:pe,delayLeave:F}=q,W=()=>pe(X,re);F?F(M.el,re,W):W()}else re()},le=(M,O)=>{let X;for(;M!==O;)X=d(M),a(M),M=X;a(O)},be=(M,O,X)=>{const{bum:K,scope:q,job:re,subTree:pe,um:F,m:W,a:Q}=M;nm(W),nm(Q),K&&Ec(K),q.stop(),re&&(re.flags|=8,J(pe,M,O,X)),F&&In(F,O),In(()=>{M.isUnmounted=!0},O),O&&O.pendingBranch&&!O.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===O.pendingId&&(O.deps--,O.deps===0&&O.resolve())},ae=(M,O,X,K=!1,q=!1,re=0)=>{for(let pe=re;pe{if(M.shapeFlag&6)return Z(M.component.subTree);if(M.shapeFlag&128)return M.suspense.next();const O=d(M.anchor||M.el),X=O&&O[SN];return X?d(X):O};let te=!1;const se=(M,O,X)=>{M==null?O._vnode&&J(O._vnode,null,null,!0):g(O._vnode||null,M,O,null,null,null,X),O._vnode=M,te||(te=!0,tD(),em(),te=!1)},G={p:g,um:J,m:Y,r:ue,mt:L,mc:C,pc:z,pbc:A,n:Z,o:e};let B,j;return t&&([B,j]=t(G)),{render:se,hydrate:B,createApp:T8(se,B)}}function h_({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ws({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function YN(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function PC(e,t,n=!1){const r=e.children,a=t.children;if(Fe(r)&&Fe(a))for(let i=0;i>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function XN(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:XN(t)}function nm(e){if(e)for(let t=0;trt(O8);function un(e,t){return fh(e,null,t)}function Mwe(e,t){return fh(e,null,{flush:"post"})}function B8(e,t){return fh(e,null,{flush:"sync"})}function Ce(e,t,n){return fh(e,t,n)}function fh(e,t,n=mt){const{immediate:r,deep:a,flush:i,once:o}=n,s=Gt({},n),l=t&&r||!t&&i!=="post";let u;if($c){if(i==="sync"){const v=N8();u=v.__watcherHandles||(v.__watcherHandles=[])}else if(!l){const v=()=>{};return v.stop=Ca,v.resume=Ca,v.pause=Ca,v}}const c=Pn;s.call=(v,h,g)=>Ja(v,c,h,g);let f=!1;i==="post"?s.scheduler=v=>{In(v,c&&c.suspense)}:i!=="sync"&&(f=!0,s.scheduler=(v,h)=>{h?v():_C(v)}),s.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const d=U6(e,t,s);return $c&&(u?u.push(d):l&&d()),d}function z8(e,t,n){const r=this.proxy,a=Wt(e)?e.includes(".")?jN(r,e):()=>r[e]:e.bind(r,r);let i;Je(t)?i=t:(i=t.handler,n=t);const o=au(this),s=fh(a,i.bind(r),n);return o(),s}function jN(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a{let c,f=mt,d;return B8(()=>{const v=e[a];xr(c,v)&&(c=v,u())}),{get(){return l(),n.get?n.get(c):c},set(v){const h=n.set?n.set(v):v;if(!xr(h,c)&&!(f!==mt&&xr(v,f)))return;const g=r.vnode.props;g&&(t in g||a in g||i in g)&&(`onUpdate:${t}`in g||`onUpdate:${a}`in g||`onUpdate:${i}`in g)||(c=v,u()),r.emit(`update:${t}`,h),xr(v,h)&&xr(v,f)&&!xr(h,d)&&u(),f=v,d=h}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||mt:s,done:!1}:{done:!0}}}},s}const ZN=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Gn(t)}Modifiers`]||e[`${Hr(t)}Modifiers`];function F8(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||mt;let a=n;const i=t.startsWith("update:"),o=i&&ZN(r,t.slice(7));o&&(o.trim&&(a=n.map(c=>Wt(c)?c.trim():c)),o.number&&(a=n.map(Xp)));let s,l=r[s=mp(t)]||r[s=mp(Gn(t))];!l&&i&&(l=r[s=mp(Hr(t))]),l&&Ja(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ja(u,e,6,a)}}function KN(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!Je(e)){const l=u=>{const c=KN(u,t,!0);c&&(s=!0,Gt(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Ft(e)&&r.set(e,null),null):(Fe(i)?i.forEach(l=>o[l]=null):Gt(o,i),Ft(e)&&r.set(e,o),o)}function Ry(e,t){return!e||!ih(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pt(e,t[0].toLowerCase()+t.slice(1))||Pt(e,Hr(t))||Pt(e,t))}function _p(e){const{type:t,vnode:n,proxy:r,withProxy:a,propsOptions:[i],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:f,data:d,setupState:v,ctx:h,inheritAttrs:g}=e,p=cv(e);let m,y;try{if(n.shapeFlag&4){const b=a||r,x=b;m=Nr(u.call(x,b,c,f,v,d,h)),y=s}else{const b=t;m=Nr(b.length>1?b(f,{attrs:s,slots:o,emit:l}):b(f,null)),y=t.props?s:G8(s)}}catch(b){Fd.length=0,gf(b,e,1),m=I(_n)}let _=m;if(y&&g!==!1){const b=Object.keys(y),{shapeFlag:x}=_;b.length&&x&7&&(i&&b.some(fC)&&(y=$8(y,i)),_=Pi(_,y,!1,!0))}return n.dirs&&(_=Pi(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Ss(_,n.transition),m=_,cv(p),m}function H8(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||ih(n))&&((t||(t={}))[n]=e[n]);return t},$8=(e,t)=>{const n={};for(const r in e)(!fC(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function W8(e,t,n){const{props:r,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?vD(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let g1=0;const U8={name:"Suspense",__isSuspense:!0,process(e,t,n,r,a,i,o,s,l,u){if(e==null)Y8(t,n,r,a,i,o,s,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}X8(e,t,n,r,a,o,s,l,u)}},hydrate:j8,normalize:Z8},Ewe=U8;function hv(e,t){const n=e.props&&e.props[t];Je(n)&&n()}function Y8(e,t,n,r,a,i,o,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=qN(e,a,r,t,f,n,i,o,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,i,o),d.deps>0?(hv(e,"onPending"),hv(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),Vc(d,e.ssFallback)):d.resolve(!1,!0)}function X8(e,t,n,r,a,i,o,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,v=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:p,isHydrating:m}=f;if(g)f.pendingBranch=d,Wa(d,g)?(l(g,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():p&&(m||(l(h,v,n,r,a,null,i,o,s),Vc(f,v)))):(f.pendingId=g1++,m?(f.isHydrating=!1,f.activeBranch=g):u(g,a,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),p?(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0?f.resolve():(l(h,v,n,r,a,null,i,o,s),Vc(f,v))):h&&Wa(d,h)?(l(h,d,n,r,a,f,i,o,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0&&f.resolve()));else if(h&&Wa(d,h))l(h,d,n,r,a,f,i,o,s),Vc(f,d);else if(hv(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=g1++,l(null,d,f.hiddenContainer,null,a,f,i,o,s),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:_}=f;y>0?setTimeout(()=>{f.pendingId===_&&f.fallback(v)},y):y===0&&f.fallback(v)}}function qN(e,t,n,r,a,i,o,s,l,u,c=!1){const{p:f,m:d,um:v,n:h,o:{parentNode:g,remove:p}}=u;let m;const y=K8(e);y&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const _=e.props?jp(e.props.timeout):void 0,b=i,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:a,deps:0,pendingId:g1++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,T=!1){const{vnode:C,activeBranch:w,pendingBranch:A,pendingId:D,effects:P,parentComponent:k,container:L}=x;let V=!1;x.isHydrating?x.isHydrating=!1:S||(V=w&&A.transition&&A.transition.mode==="out-in",V&&(w.transition.afterLeave=()=>{D===x.pendingId&&(d(A,L,i===b?h(w):i,0),Qp(P))}),w&&(g(w.el)===L&&(i=h(w)),v(w,k,x,!0)),V||d(A,L,i,0)),Vc(x,A),x.pendingBranch=null,x.isInFallback=!1;let N=x.parent,$=!1;for(;N;){if(N.pendingBranch){N.effects.push(...P),$=!0;break}N=N.parent}!$&&!V&&Qp(P),x.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!T&&t.resolve()),hv(C,"onResolve")},fallback(S){if(!x.pendingBranch)return;const{vnode:T,activeBranch:C,parentComponent:w,container:A,namespace:D}=x;hv(T,"onFallback");const P=h(C),k=()=>{x.isInFallback&&(f(null,S,A,P,w,null,D,s,l),Vc(x,S))},L=S.transition&&S.transition.mode==="out-in";L&&(C.transition.afterLeave=k),x.isInFallback=!0,v(C,w,null,!0),L||k()},move(S,T,C){x.activeBranch&&d(x.activeBranch,S,T,C),x.container=S},next(){return x.activeBranch&&h(x.activeBranch)},registerDep(S,T,C){const w=!!x.pendingBranch;w&&x.deps++;const A=S.vnode.el;S.asyncDep.catch(D=>{gf(D,S,0)}).then(D=>{if(S.isUnmounted||x.isUnmounted||x.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:P}=S;y1(S,D,!1),A&&(P.el=A);const k=!A&&S.subTree.el;T(S,P,g(A||S.subTree.el),A?null:h(S.subTree),x,o,C),k&&p(k),Vy(S,P.el),w&&--x.deps===0&&x.resolve()})},unmount(S,T){x.isUnmounted=!0,x.activeBranch&&v(x.activeBranch,n,S,T),x.pendingBranch&&v(x.pendingBranch,n,S,T)}};return x}function j8(e,t,n,r,a,i,o,s,l){const u=t.suspense=qN(t,r,n,e.parentNode,document.createElement("div"),null,a,i,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function Z8(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=hD(r?n.default:n),e.ssFallback=r?hD(n.fallback):I(_n)}function hD(e){let t;if(Je(e)){const n=ru&&e._c;n&&(e._d=!1,Xt()),e=e(),n&&(e._d=!0,t=or,QN())}return Fe(e)&&(e=H8(e)),e=Nr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function JN(e,t){t&&t.pendingBranch?Fe(e)?t.effects.push(...e):t.effects.push(e):Qp(e)}function Vc(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;n.el=a,r&&r.subTree===n&&(r.vnode.el=a,Vy(r,a))}function K8(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ke=Symbol.for("v-fgt"),so=Symbol.for("v-txt"),_n=Symbol.for("v-cmt"),Oc=Symbol.for("v-stc"),Fd=[];let or=null;function Xt(e=!1){Fd.push(or=e?null:[])}function QN(){Fd.pop(),or=Fd[Fd.length-1]||null}let ru=1;function gD(e,t=!1){ru+=e,e<0&&or&&t&&(or.hasOnce=!0)}function eB(e){return e.dynamicChildren=ru>0?or||kc:null,QN(),ru>0&&or&&or.push(e),e}function Gl(e,t,n,r,a,i){return eB(nB(e,t,n,r,a,i,!0))}function jn(e,t,n,r,a){return eB(I(e,t,n,r,a,!0))}function ho(e){return e?e.__v_isVNode===!0:!1}function Wa(e,t){return e.type===t.type&&e.key===t.key}function Rwe(e){}const tB=({key:e})=>e??null,bp=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Wt(e)||Bt(e)||Je(e)?{i:kn,r:e,k:t,f:!!n}:e:null);function nB(e,t=null,n=null,r=0,a=null,i=e===ke?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tB(t),ref:t&&bp(t),scopeId:ky,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:kn};return s?(kC(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Wt(n)?8:16),ru>0&&!o&&or&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&or.push(l),l}const I=q8;function q8(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===LN)&&(e=_n),ho(e)){const s=Pi(e,t,!0);return n&&kC(s,n),ru>0&&!i&&or&&(s.shapeFlag&6?or[or.indexOf(e)]=s:or.push(s)),s.patchFlag=-2,s}if(rY(e)&&(e=e.__vccOpts),t){t=J8(t);let{class:s,style:l}=t;s&&!Wt(s)&&(t.class=oh(s)),Ft(l)&&(yC(l)&&!Fe(l)&&(l=Gt({},l)),t.style=wy(l))}const o=Wt(e)?1:rm(e)?128:xN(e)?64:Ft(e)?4:Je(e)?2:0;return nB(e,t,n,r,a,o,i,!0)}function J8(e){return e?yC(e)||BN(e)?Gt({},e):e:null}function Pi(e,t,n=!1,r=!1){const{props:a,ref:i,patchFlag:o,children:s,transition:l}=e,u=t?ve(a||{},t):a,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&tB(u),ref:t&&t.ref?n&&i?Fe(i)?i.concat(bp(t)):[i,bp(t)]:bp(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pi(e.ssContent),ssFallback:e.ssFallback&&Pi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ss(c,l.clone(c)),c}function ta(e=" ",t=0){return I(so,null,e,t)}function Vwe(e,t){const n=I(Oc,null,e);return n.staticCount=t,n}function jr(e="",t=!1){return t?(Xt(),jn(_n,null,e)):I(_n,null,e)}function Nr(e){return e==null||typeof e=="boolean"?I(_n):Fe(e)?I(ke,null,e.slice()):ho(e)?es(e):I(so,null,String(e))}function es(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Pi(e)}function kC(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Fe(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),kC(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!BN(t)?t._ctx=kn:a===3&&kn&&(kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:kn},n=32):(t=String(t),r&64?(n=16,t=[ta(t)]):n=8);e.children=t,e.shapeFlag|=n}function ve(...e){const t={};for(let n=0;nPn||kn;let am,p1;{const e=xy(),t=(n,r)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(r),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};am=t("__VUE_INSTANCE_SETTERS__",n=>Pn=n),p1=t("__VUE_SSR_SETTERS__",n=>$c=n)}const au=e=>{const t=Pn;return am(e),e.scope.on(),()=>{e.scope.off(),am(t)}},m1=()=>{Pn&&Pn.scope.off(),am(null)};function aB(e){return e.vnode.shapeFlag&4}let $c=!1;function iB(e,t=!1,n=!1){t&&p1(t);const{props:r,children:a}=e.vnode,i=aB(e);I8(e,r,i,t),M8(e,a,n);const o=i?tY(e,t):void 0;return t&&p1(!1),o}function tY(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,f1);const{setup:r}=n;if(r){Es();const a=e.setupContext=r.length>1?sB(e):null,i=au(e),o=lh(r,e,0,[e.props,a]),s=vC(o);if(Rs(),i(),(s||e.sp)&&!gs(e)&&SC(e),s){if(o.then(m1,m1),t)return o.then(l=>{y1(e,l,t)}).catch(l=>{gf(l,e,0)});e.asyncDep=o}else y1(e,o,t)}else oB(e,t)}function y1(e,t,n){Je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ft(t)&&(e.setupState=hN(t)),oB(e,n)}let im,_1;function Owe(e){im=e,_1=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,y8))}}const Nwe=()=>!im;function oB(e,t,n){const r=e.type;if(!e.render){if(!t&&im&&!r.render){const a=r.template||IC(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Gt(Gt({isCustomElement:i,delimiters:s},o),l);r.render=im(a,u)}}e.render=r.render||Ca,_1&&_1(e)}{const a=au(e);Es();try{_8(e)}finally{Rs(),a()}}}const nY={get(e,t){return ar(e,"get",""),e[t]}};function sB(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,nY),slots:e.slots,emit:e.emit,expose:t}}function dh(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hN(Py(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zd)return zd[n](e)},has(t,n){return n in t||n in zd}})):e.proxy}function b1(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function rY(e){return Je(e)&&"__vccOpts"in e}const E=(e,t)=>$6(e,t,$c);function ra(e,t,n){const r=arguments.length;return r===2?Ft(t)&&!Fe(t)?ho(t)?I(e,null,[t]):I(e,t):I(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ho(n)&&(n=[n]),I(e,t,n))}function Bwe(){}function zwe(e,t,n,r){const a=n[r];if(a&&aY(a,e))return a;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function aY(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&or&&or.push(e),!0}const iY="3.5.13",Fwe=Ca,Hwe=j6,Gwe=gc,$we=bN,oY={createComponentInstance:rB,setupComponent:iB,renderComponentRoot:_p,setCurrentRenderingInstance:cv,isVNode:ho,normalizeVNode:Nr,getComponentPublicInstance:dh,ensureValidVNode:AC,pushWarningContext:Y6,popWarningContext:X6},Wwe=oY,Uwe=null,Ywe=null,Xwe=null;/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT @@ -24,7 +24,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DevicesView-FJHLHjVE * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const pc=typeof document<"u";function kB(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function e7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&kB(e.default)}const Rt=Object.assign;function __(e,t){const n={};for(const r in t){const a=t[r];n[r]=Qa(a)?a.map(e):e(a)}return n}const $d=()=>{},Qa=Array.isArray,MB=/#/g,t7=/&/g,n7=/\//g,r7=/=/g,a7=/\?/g,LB=/\+/g,i7=/%5B/g,o7=/%5D/g,EB=/%5E/g,s7=/%60/g,RB=/%7B/g,l7=/%7C/g,VB=/%7D/g,u7=/%20/g;function RC(e){return encodeURI(""+e).replace(l7,"|").replace(i7,"[").replace(o7,"]")}function c7(e){return RC(e).replace(RB,"{").replace(VB,"}").replace(EB,"^")}function D1(e){return RC(e).replace(LB,"%2B").replace(u7,"+").replace(MB,"%23").replace(t7,"%26").replace(s7,"`").replace(RB,"{").replace(VB,"}").replace(EB,"^")}function f7(e){return D1(e).replace(r7,"%3D")}function d7(e){return RC(e).replace(MB,"%23").replace(a7,"%3F")}function v7(e){return e==null?"":d7(e).replace(n7,"%2F")}function gv(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const h7=/\/$/,g7=e=>e.replace(h7,"");function b_(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=e(i)),s>-1&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=_7(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:gv(o)}}function p7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function HD(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function m7(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&Yc(t.matched[r],n.matched[a])&&OB(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function OB(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!y7(e[n],t[n]))return!1;return!0}function y7(e,t){return Qa(e)?GD(e,t):Qa(t)?GD(t,e):e===t}function GD(e,t){return Qa(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let i=n.length-1,o,s;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const Oo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var pv;(function(e){e.pop="pop",e.push="push"})(pv||(pv={}));var Wd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wd||(Wd={}));function b7(e){if(!e)if(pc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),g7(e)}const S7=/^[^#]+#/;function x7(e,t){return e.replace(S7,"#")+t}function w7(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Ny=()=>({left:window.scrollX,top:window.scrollY});function C7(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=w7(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $D(e,t){return(history.state?history.state.position-t:-1)+e}const P1=new Map;function T7(e,t){P1.set(e,t)}function A7(e){const t=P1.get(e);return P1.delete(e),t}let I7=()=>location.protocol+"//"+location.host;function NB(e,t){const{pathname:n,search:r,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),HD(l,"")}return HD(n,e)+r+a}function D7(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const v=NB(e,location),h=n.value,g=t.value;let p=0;if(d){if(n.value=v,t.value=d,o&&o===h){o=null;return}p=g?d.position-g.position:0}else r(v);a.forEach(m=>{m(n.value,h,{delta:p,type:pv.pop,direction:p?p>0?Wd.forward:Wd.back:Wd.unknown})})};function l(){o=n.value}function u(d){a.push(d);const v=()=>{const h=a.indexOf(d);h>-1&&a.splice(h,1)};return i.push(v),v}function c(){const{history:d}=window;d.state&&d.replaceState(Rt({},d.state,{scroll:Ny()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function WD(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?Ny():null}}function P7(e){const{history:t,location:n}=window,r={value:NB(e,n)},a={value:t.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:I7()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(v){console.error(v),n[c?"replace":"assign"](d)}}function o(l,u){const c=Rt({},t.state,WD(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=Rt({},a.value,t.state,{forward:l,scroll:Ny()});i(c.current,c,!0);const f=Rt({},WD(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function k7(e){e=b7(e);const t=P7(e),n=D7(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=Rt({location:"",base:e,go:r,createHref:x7.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function M7(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),k7(e)}function L7(e){return typeof e=="string"||e&&typeof e=="object"}function BB(e){return typeof e=="string"||typeof e=="symbol"}const zB=Symbol("");var UD;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(UD||(UD={}));function Xc(e,t){return Rt(new Error,{type:e,[zB]:!0},t)}function Ui(e,t){return e instanceof Error&&zB in e&&(t==null||!!(e.type&t))}const YD="[^/]+?",E7={sensitive:!1,strict:!1,start:!0,end:!0},R7=/[.+*?^${}()[\]/\\]/g;function V7(e,t){const n=Rt({},E7,t),r=[];let a=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function FB(e,t){let n=0;const r=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const N7={type:0,value:""},B7=/[a-zA-Z0-9_]/;function z7(e){if(!e)return[[]];if(e==="/")return[[N7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${u}": ${v}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s{o(_)}:$d}function o(f){if(BB(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return n}function l(f){const d=W7(f,n);n.splice(d,0,f),f.record.name&&!KD(f)&&r.set(f.record.name,f)}function u(f,d){let v,h={},g,p;if("name"in f&&f.name){if(v=r.get(f.name),!v)throw Xc(1,{location:f});p=v.record.name,h=Rt(jD(d.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&jD(f.params,v.keys.map(_=>_.name))),g=v.stringify(h)}else if(f.path!=null)g=f.path,v=n.find(_=>_.re.test(g)),v&&(h=v.parse(g),p=v.record.name);else{if(v=d.name?r.get(d.name):n.find(_=>_.re.test(d.path)),!v)throw Xc(1,{location:f,currentLocation:d});p=v.record.name,h=Rt({},d.params,f.params),g=v.stringify(h)}const m=[];let y=v;for(;y;)m.unshift(y.record),y=y.parent;return{name:p,path:g,params:h,matched:m,meta:$7(m)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:a}}function jD(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ZD(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:G7(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function G7(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function KD(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $7(e){return e.reduce((t,n)=>Rt(t,n.meta),{})}function qD(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function W7(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;FB(e,t[i])<0?r=i:n=i+1}const a=U7(e);return a&&(r=t.lastIndexOf(a,r-1)),r}function U7(e){let t=e;for(;t=t.parent;)if(HB(t)&&FB(e,t)===0)return t}function HB({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Y7(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ai&&D1(i)):[r&&D1(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function X7(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Qa(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const j7=Symbol(""),QD=Symbol(""),VC=Symbol(""),GB=Symbol(""),k1=Symbol("");function $f(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ts(e,t,n,r,a,i=o=>o()){const o=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const u=d=>{d===!1?l(Xc(4,{from:n,to:t})):d instanceof Error?l(d):L7(d)?l(Xc(2,{from:t,to:d})):(o&&r.enterCallbacks[a]===o&&typeof d=="function"&&o.push(d),s())},c=i(()=>e.call(r&&r.instances[a],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function S_(e,t,n,r,a=i=>i()){const i=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(kB(l)){const c=(l.__vccOpts||l)[t];c&&i.push(ts(c,n,r,o,s,a))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const f=e7(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const v=(f.__vccOpts||f)[t];return v&&ts(v,n,r,o,s,a)()}))}}return i}function eP(e){const t=rt(VC),n=rt(GB),r=E(()=>{const l=Be(e.to);return t.resolve(l)}),a=E(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Yc.bind(null,c));if(d>-1)return d;const v=tP(l[u-2]);return u>1&&tP(c)===v&&f[f.length-1].path!==v?f.findIndex(Yc.bind(null,l[u-2])):d}),i=E(()=>a.value>-1&&J7(n.params,r.value.params)),o=E(()=>a.value>-1&&a.value===n.matched.length-1&&OB(n.params,r.value.params));function s(l={}){return q7(l)?t[Be(e.replace)?"replace":"push"](Be(e.to)).catch($d):Promise.resolve()}return{route:r,href:E(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const Z7=Os({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:eP,setup(e,{slots:t}){const n=yn(eP(e)),{options:r}=rt(VC),a=E(()=>({[nP(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[nP(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:ra("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),K7=Z7;function q7(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function J7(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Qa(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function tP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nP=(e,t,n)=>e??t??n,Q7=Os({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(k1),a=E(()=>e.route||r.value),i=rt(QD,0),o=E(()=>{let u=Be(i);const{matched:c}=a.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=E(()=>a.value.matched[o.value]);Lt(QD,E(()=>o.value+1)),Lt(j7,s),Lt(k1,a);const l=ye();return Ce(()=>[l.value,s.value,e.name],([u,c,f],[d,v,h])=>{c&&(c.instances[f]=u,v&&v!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=v.leaveGuards),c.updateGuards.size||(c.updateGuards=v.updateGuards))),u&&c&&(!v||!Yc(c,v)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return rP(n.default,{Component:d,route:u});const v=f.props[c],h=v?v===!0?u.params:typeof v=="function"?v(u):v:null,p=ra(d,Rt({},h,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return rP(n.default,{Component:p,route:u})||p}}});function rP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const e9=Q7;function t9(e){const t=H7(e.routes,e),n=e.parseQuery||Y7,r=e.stringifyQuery||JD,a=e.history,i=$f(),o=$f(),s=$f(),l=Te(Oo);let u=Oo;pc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=__.bind(null,Z=>""+Z),f=__.bind(null,v7),d=__.bind(null,gv);function v(Z,te){let se,G;return BB(Z)?(se=t.getRecordMatcher(Z),G=te):G=Z,t.addRoute(G,se)}function h(Z){const te=t.getRecordMatcher(Z);te&&t.removeRoute(te)}function g(){return t.getRoutes().map(Z=>Z.record)}function p(Z){return!!t.getRecordMatcher(Z)}function m(Z,te){if(te=Rt({},te||l.value),typeof Z=="string"){const O=b_(n,Z,te.path),X=t.resolve({path:O.path},te),K=a.createHref(O.fullPath);return Rt(O,X,{params:d(X.params),hash:gv(O.hash),redirectedFrom:void 0,href:K})}let se;if(Z.path!=null)se=Rt({},Z,{path:b_(n,Z.path,te.path).path});else{const O=Rt({},Z.params);for(const X in O)O[X]==null&&delete O[X];se=Rt({},Z,{params:f(O)}),te.params=f(te.params)}const G=t.resolve(se,te),B=Z.hash||"";G.params=c(d(G.params));const j=p7(r,Rt({},Z,{hash:c7(B),path:G.path})),M=a.createHref(j);return Rt({fullPath:j,hash:B,query:r===JD?X7(Z.query):Z.query||{}},G,{redirectedFrom:void 0,href:M})}function y(Z){return typeof Z=="string"?b_(n,Z,l.value.path):Rt({},Z)}function _(Z,te){if(u!==Z)return Xc(8,{from:te,to:Z})}function b(Z){return T(Z)}function x(Z){return b(Rt(y(Z),{replace:!0}))}function S(Z){const te=Z.matched[Z.matched.length-1];if(te&&te.redirect){const{redirect:se}=te;let G=typeof se=="function"?se(Z):se;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=y(G):{path:G},G.params={}),Rt({query:Z.query,hash:Z.hash,params:G.path!=null?{}:Z.params},G)}}function T(Z,te){const se=u=m(Z),G=l.value,B=Z.state,j=Z.force,M=Z.replace===!0,O=S(se);if(O)return T(Rt(y(O),{state:typeof O=="object"?Rt({},B,O.state):B,force:j,replace:M}),te||se);const X=se;X.redirectedFrom=te;let K;return!j&&m7(r,G,se)&&(K=Xc(16,{to:X,from:G}),Y(G,G,!0,!1)),(K?Promise.resolve(K):A(X,G)).catch(q=>Ui(q)?Ui(q,2)?q:U(q):z(q,X,G)).then(q=>{if(q){if(Ui(q,2))return T(Rt({replace:M},y(q.to),{state:typeof q.to=="object"?Rt({},B,q.to.state):B,force:j}),te||X)}else q=P(X,G,!0,M,B);return D(X,G,q),q})}function C(Z,te){const se=_(Z,te);return se?Promise.reject(se):Promise.resolve()}function w(Z){const te=le.values().next().value;return te&&typeof te.runWithContext=="function"?te.runWithContext(Z):Z()}function A(Z,te){let se;const[G,B,j]=n9(Z,te);se=S_(G.reverse(),"beforeRouteLeave",Z,te);for(const O of G)O.leaveGuards.forEach(X=>{se.push(ts(X,Z,te))});const M=C.bind(null,Z,te);return se.push(M),ae(se).then(()=>{se=[];for(const O of i.list())se.push(ts(O,Z,te));return se.push(M),ae(se)}).then(()=>{se=S_(B,"beforeRouteUpdate",Z,te);for(const O of B)O.updateGuards.forEach(X=>{se.push(ts(X,Z,te))});return se.push(M),ae(se)}).then(()=>{se=[];for(const O of j)if(O.beforeEnter)if(Qa(O.beforeEnter))for(const X of O.beforeEnter)se.push(ts(X,Z,te));else se.push(ts(O.beforeEnter,Z,te));return se.push(M),ae(se)}).then(()=>(Z.matched.forEach(O=>O.enterCallbacks={}),se=S_(j,"beforeRouteEnter",Z,te,w),se.push(M),ae(se))).then(()=>{se=[];for(const O of o.list())se.push(ts(O,Z,te));return se.push(M),ae(se)}).catch(O=>Ui(O,8)?O:Promise.reject(O))}function D(Z,te,se){s.list().forEach(G=>w(()=>G(Z,te,se)))}function P(Z,te,se,G,B){const j=_(Z,te);if(j)return j;const M=te===Oo,O=pc?history.state:{};se&&(G||M?a.replace(Z.fullPath,Rt({scroll:M&&O&&O.scroll},B)):a.push(Z.fullPath,B)),l.value=Z,Y(Z,te,se,M),U()}let k;function L(){k||(k=a.listen((Z,te,se)=>{if(!be.listening)return;const G=m(Z),B=S(G);if(B){T(Rt(B,{replace:!0}),G).catch($d);return}u=G;const j=l.value;pc&&T7($D(j.fullPath,se.delta),Ny()),A(G,j).catch(M=>Ui(M,12)?M:Ui(M,2)?(T(M.to,G).then(O=>{Ui(O,20)&&!se.delta&&se.type===pv.pop&&a.go(-1,!1)}).catch($d),Promise.reject()):(se.delta&&a.go(-se.delta,!1),z(M,G,j))).then(M=>{M=M||P(G,j,!1),M&&(se.delta&&!Ui(M,8)?a.go(-se.delta,!1):se.type===pv.pop&&Ui(M,20)&&a.go(-1,!1)),D(G,j,M)}).catch($d)}))}let V=$f(),N=$f(),$;function z(Z,te,se){U(Z);const G=N.list();return G.length?G.forEach(B=>B(Z,te,se)):console.error(Z),Promise.reject(Z)}function H(){return $&&l.value!==Oo?Promise.resolve():new Promise((Z,te)=>{V.add([Z,te])})}function U(Z){return $||($=!Z,L(),V.list().forEach(([te,se])=>Z?se(Z):te()),V.reset()),Z}function Y(Z,te,se,G){const{scrollBehavior:B}=e;if(!pc||!B)return Promise.resolve();const j=!se&&A7($D(Z.fullPath,0))||(G||!se)&&history.state&&history.state.scroll||null;return ht().then(()=>B(Z,te,j)).then(M=>M&&C7(M)).catch(M=>z(M,Z,te))}const J=Z=>a.go(Z);let ue;const le=new Set,be={currentRoute:l,listening:!0,addRoute:v,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:g,resolve:m,options:e,push:b,replace:x,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:N.add,isReady:H,install(Z){const te=this;Z.component("RouterLink",K7),Z.component("RouterView",e9),Z.config.globalProperties.$router=te,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>Be(l)}),pc&&!ue&&l.value===Oo&&(ue=!0,b(a.location).catch(B=>{}));const se={};for(const B in Oo)Object.defineProperty(se,B,{get:()=>l.value[B],enumerable:!0});Z.provide(VC,te),Z.provide(GB,dN(se)),Z.provide(k1,l);const G=Z.unmount;le.add(Z),Z.unmount=function(){le.delete(Z),le.size<1&&(u=Oo,k&&k(),k=null,l.value=Oo,ue=!1,$=!1),G()}}};function ae(Z){return Z.reduce((te,se)=>te.then(()=>w(se)),Promise.resolve())}return be}function n9(e,t){const n=[],r=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oYc(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Yc(u,l))||a.push(l))}return[n,r,a]}const Ua=t9({history:M7("./"),routes:[{path:"/:config",name:"home",component:()=>ig(()=>import("./DevicesView-FJHLHjVE.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{path:"/:config/devices/:view?",name:"devices",component:()=>ig(()=>import("./DevicesView-FJHLHjVE.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{path:"/:config/settings/:tab?/:item?",name:"settings",component:()=>ig(()=>import("./SettingsView-QzGge9MQ.js"),__vite__mapDeps([3,4,5,1,2,6]),import.meta.url)},{path:"/:config/internals",name:"internals",component:()=>ig(()=>import("./InternalsView-DCrve5NC.js"),__vite__mapDeps([7,4,5]),import.meta.url)}]});/*! + */const pc=typeof document<"u";function kB(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function e7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&kB(e.default)}const Rt=Object.assign;function __(e,t){const n={};for(const r in t){const a=t[r];n[r]=Qa(a)?a.map(e):e(a)}return n}const $d=()=>{},Qa=Array.isArray,MB=/#/g,t7=/&/g,n7=/\//g,r7=/=/g,a7=/\?/g,LB=/\+/g,i7=/%5B/g,o7=/%5D/g,EB=/%5E/g,s7=/%60/g,RB=/%7B/g,l7=/%7C/g,VB=/%7D/g,u7=/%20/g;function RC(e){return encodeURI(""+e).replace(l7,"|").replace(i7,"[").replace(o7,"]")}function c7(e){return RC(e).replace(RB,"{").replace(VB,"}").replace(EB,"^")}function D1(e){return RC(e).replace(LB,"%2B").replace(u7,"+").replace(MB,"%23").replace(t7,"%26").replace(s7,"`").replace(RB,"{").replace(VB,"}").replace(EB,"^")}function f7(e){return D1(e).replace(r7,"%3D")}function d7(e){return RC(e).replace(MB,"%23").replace(a7,"%3F")}function v7(e){return e==null?"":d7(e).replace(n7,"%2F")}function gv(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const h7=/\/$/,g7=e=>e.replace(h7,"");function b_(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=e(i)),s>-1&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=_7(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:gv(o)}}function p7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function HD(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function m7(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&Yc(t.matched[r],n.matched[a])&&OB(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function OB(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!y7(e[n],t[n]))return!1;return!0}function y7(e,t){return Qa(e)?GD(e,t):Qa(t)?GD(t,e):e===t}function GD(e,t){return Qa(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let i=n.length-1,o,s;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const Oo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var pv;(function(e){e.pop="pop",e.push="push"})(pv||(pv={}));var Wd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wd||(Wd={}));function b7(e){if(!e)if(pc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),g7(e)}const S7=/^[^#]+#/;function x7(e,t){return e.replace(S7,"#")+t}function w7(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Ny=()=>({left:window.scrollX,top:window.scrollY});function C7(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=w7(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $D(e,t){return(history.state?history.state.position-t:-1)+e}const P1=new Map;function T7(e,t){P1.set(e,t)}function A7(e){const t=P1.get(e);return P1.delete(e),t}let I7=()=>location.protocol+"//"+location.host;function NB(e,t){const{pathname:n,search:r,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),HD(l,"")}return HD(n,e)+r+a}function D7(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const v=NB(e,location),h=n.value,g=t.value;let p=0;if(d){if(n.value=v,t.value=d,o&&o===h){o=null;return}p=g?d.position-g.position:0}else r(v);a.forEach(m=>{m(n.value,h,{delta:p,type:pv.pop,direction:p?p>0?Wd.forward:Wd.back:Wd.unknown})})};function l(){o=n.value}function u(d){a.push(d);const v=()=>{const h=a.indexOf(d);h>-1&&a.splice(h,1)};return i.push(v),v}function c(){const{history:d}=window;d.state&&d.replaceState(Rt({},d.state,{scroll:Ny()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function WD(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?Ny():null}}function P7(e){const{history:t,location:n}=window,r={value:NB(e,n)},a={value:t.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:I7()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(v){console.error(v),n[c?"replace":"assign"](d)}}function o(l,u){const c=Rt({},t.state,WD(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=Rt({},a.value,t.state,{forward:l,scroll:Ny()});i(c.current,c,!0);const f=Rt({},WD(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function k7(e){e=b7(e);const t=P7(e),n=D7(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=Rt({location:"",base:e,go:r,createHref:x7.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function M7(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),k7(e)}function L7(e){return typeof e=="string"||e&&typeof e=="object"}function BB(e){return typeof e=="string"||typeof e=="symbol"}const zB=Symbol("");var UD;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(UD||(UD={}));function Xc(e,t){return Rt(new Error,{type:e,[zB]:!0},t)}function Ui(e,t){return e instanceof Error&&zB in e&&(t==null||!!(e.type&t))}const YD="[^/]+?",E7={sensitive:!1,strict:!1,start:!0,end:!0},R7=/[.+*?^${}()[\]/\\]/g;function V7(e,t){const n=Rt({},E7,t),r=[];let a=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function FB(e,t){let n=0;const r=e.score,a=t.score;for(;n0&&t[t.length-1]<0}const N7={type:0,value:""},B7=/[a-zA-Z0-9_]/;function z7(e){if(!e)return[[]];if(e==="/")return[[N7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${u}": ${v}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s{o(_)}:$d}function o(f){if(BB(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return n}function l(f){const d=W7(f,n);n.splice(d,0,f),f.record.name&&!KD(f)&&r.set(f.record.name,f)}function u(f,d){let v,h={},g,p;if("name"in f&&f.name){if(v=r.get(f.name),!v)throw Xc(1,{location:f});p=v.record.name,h=Rt(jD(d.params,v.keys.filter(_=>!_.optional).concat(v.parent?v.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&jD(f.params,v.keys.map(_=>_.name))),g=v.stringify(h)}else if(f.path!=null)g=f.path,v=n.find(_=>_.re.test(g)),v&&(h=v.parse(g),p=v.record.name);else{if(v=d.name?r.get(d.name):n.find(_=>_.re.test(d.path)),!v)throw Xc(1,{location:f,currentLocation:d});p=v.record.name,h=Rt({},d.params,f.params),g=v.stringify(h)}const m=[];let y=v;for(;y;)m.unshift(y.record),y=y.parent;return{name:p,path:g,params:h,matched:m,meta:$7(m)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:a}}function jD(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ZD(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:G7(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function G7(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function KD(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $7(e){return e.reduce((t,n)=>Rt(t,n.meta),{})}function qD(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function W7(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;FB(e,t[i])<0?r=i:n=i+1}const a=U7(e);return a&&(r=t.lastIndexOf(a,r-1)),r}function U7(e){let t=e;for(;t=t.parent;)if(HB(t)&&FB(e,t)===0)return t}function HB({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Y7(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ai&&D1(i)):[r&&D1(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function X7(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Qa(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const j7=Symbol(""),QD=Symbol(""),VC=Symbol(""),GB=Symbol(""),k1=Symbol("");function $f(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ts(e,t,n,r,a,i=o=>o()){const o=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((s,l)=>{const u=d=>{d===!1?l(Xc(4,{from:n,to:t})):d instanceof Error?l(d):L7(d)?l(Xc(2,{from:t,to:d})):(o&&r.enterCallbacks[a]===o&&typeof d=="function"&&o.push(d),s())},c=i(()=>e.call(r&&r.instances[a],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function S_(e,t,n,r,a=i=>i()){const i=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(kB(l)){const c=(l.__vccOpts||l)[t];c&&i.push(ts(c,n,r,o,s,a))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const f=e7(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const v=(f.__vccOpts||f)[t];return v&&ts(v,n,r,o,s,a)()}))}}return i}function eP(e){const t=rt(VC),n=rt(GB),r=E(()=>{const l=Be(e.to);return t.resolve(l)}),a=E(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Yc.bind(null,c));if(d>-1)return d;const v=tP(l[u-2]);return u>1&&tP(c)===v&&f[f.length-1].path!==v?f.findIndex(Yc.bind(null,l[u-2])):d}),i=E(()=>a.value>-1&&J7(n.params,r.value.params)),o=E(()=>a.value>-1&&a.value===n.matched.length-1&&OB(n.params,r.value.params));function s(l={}){return q7(l)?t[Be(e.replace)?"replace":"push"](Be(e.to)).catch($d):Promise.resolve()}return{route:r,href:E(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const Z7=Os({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:eP,setup(e,{slots:t}){const n=yn(eP(e)),{options:r}=rt(VC),a=E(()=>({[nP(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[nP(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:ra("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),K7=Z7;function q7(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function J7(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Qa(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function tP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nP=(e,t,n)=>e??t??n,Q7=Os({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(k1),a=E(()=>e.route||r.value),i=rt(QD,0),o=E(()=>{let u=Be(i);const{matched:c}=a.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=E(()=>a.value.matched[o.value]);Lt(QD,E(()=>o.value+1)),Lt(j7,s),Lt(k1,a);const l=ye();return Ce(()=>[l.value,s.value,e.name],([u,c,f],[d,v,h])=>{c&&(c.instances[f]=u,v&&v!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=v.leaveGuards),c.updateGuards.size||(c.updateGuards=v.updateGuards))),u&&c&&(!v||!Yc(c,v)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return rP(n.default,{Component:d,route:u});const v=f.props[c],h=v?v===!0?u.params:typeof v=="function"?v(u):v:null,p=ra(d,Rt({},h,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return rP(n.default,{Component:p,route:u})||p}}});function rP(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const e9=Q7;function t9(e){const t=H7(e.routes,e),n=e.parseQuery||Y7,r=e.stringifyQuery||JD,a=e.history,i=$f(),o=$f(),s=$f(),l=Te(Oo);let u=Oo;pc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=__.bind(null,Z=>""+Z),f=__.bind(null,v7),d=__.bind(null,gv);function v(Z,te){let se,G;return BB(Z)?(se=t.getRecordMatcher(Z),G=te):G=Z,t.addRoute(G,se)}function h(Z){const te=t.getRecordMatcher(Z);te&&t.removeRoute(te)}function g(){return t.getRoutes().map(Z=>Z.record)}function p(Z){return!!t.getRecordMatcher(Z)}function m(Z,te){if(te=Rt({},te||l.value),typeof Z=="string"){const O=b_(n,Z,te.path),X=t.resolve({path:O.path},te),K=a.createHref(O.fullPath);return Rt(O,X,{params:d(X.params),hash:gv(O.hash),redirectedFrom:void 0,href:K})}let se;if(Z.path!=null)se=Rt({},Z,{path:b_(n,Z.path,te.path).path});else{const O=Rt({},Z.params);for(const X in O)O[X]==null&&delete O[X];se=Rt({},Z,{params:f(O)}),te.params=f(te.params)}const G=t.resolve(se,te),B=Z.hash||"";G.params=c(d(G.params));const j=p7(r,Rt({},Z,{hash:c7(B),path:G.path})),M=a.createHref(j);return Rt({fullPath:j,hash:B,query:r===JD?X7(Z.query):Z.query||{}},G,{redirectedFrom:void 0,href:M})}function y(Z){return typeof Z=="string"?b_(n,Z,l.value.path):Rt({},Z)}function _(Z,te){if(u!==Z)return Xc(8,{from:te,to:Z})}function b(Z){return T(Z)}function x(Z){return b(Rt(y(Z),{replace:!0}))}function S(Z){const te=Z.matched[Z.matched.length-1];if(te&&te.redirect){const{redirect:se}=te;let G=typeof se=="function"?se(Z):se;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=y(G):{path:G},G.params={}),Rt({query:Z.query,hash:Z.hash,params:G.path!=null?{}:Z.params},G)}}function T(Z,te){const se=u=m(Z),G=l.value,B=Z.state,j=Z.force,M=Z.replace===!0,O=S(se);if(O)return T(Rt(y(O),{state:typeof O=="object"?Rt({},B,O.state):B,force:j,replace:M}),te||se);const X=se;X.redirectedFrom=te;let K;return!j&&m7(r,G,se)&&(K=Xc(16,{to:X,from:G}),Y(G,G,!0,!1)),(K?Promise.resolve(K):A(X,G)).catch(q=>Ui(q)?Ui(q,2)?q:U(q):z(q,X,G)).then(q=>{if(q){if(Ui(q,2))return T(Rt({replace:M},y(q.to),{state:typeof q.to=="object"?Rt({},B,q.to.state):B,force:j}),te||X)}else q=P(X,G,!0,M,B);return D(X,G,q),q})}function C(Z,te){const se=_(Z,te);return se?Promise.reject(se):Promise.resolve()}function w(Z){const te=le.values().next().value;return te&&typeof te.runWithContext=="function"?te.runWithContext(Z):Z()}function A(Z,te){let se;const[G,B,j]=n9(Z,te);se=S_(G.reverse(),"beforeRouteLeave",Z,te);for(const O of G)O.leaveGuards.forEach(X=>{se.push(ts(X,Z,te))});const M=C.bind(null,Z,te);return se.push(M),ae(se).then(()=>{se=[];for(const O of i.list())se.push(ts(O,Z,te));return se.push(M),ae(se)}).then(()=>{se=S_(B,"beforeRouteUpdate",Z,te);for(const O of B)O.updateGuards.forEach(X=>{se.push(ts(X,Z,te))});return se.push(M),ae(se)}).then(()=>{se=[];for(const O of j)if(O.beforeEnter)if(Qa(O.beforeEnter))for(const X of O.beforeEnter)se.push(ts(X,Z,te));else se.push(ts(O.beforeEnter,Z,te));return se.push(M),ae(se)}).then(()=>(Z.matched.forEach(O=>O.enterCallbacks={}),se=S_(j,"beforeRouteEnter",Z,te,w),se.push(M),ae(se))).then(()=>{se=[];for(const O of o.list())se.push(ts(O,Z,te));return se.push(M),ae(se)}).catch(O=>Ui(O,8)?O:Promise.reject(O))}function D(Z,te,se){s.list().forEach(G=>w(()=>G(Z,te,se)))}function P(Z,te,se,G,B){const j=_(Z,te);if(j)return j;const M=te===Oo,O=pc?history.state:{};se&&(G||M?a.replace(Z.fullPath,Rt({scroll:M&&O&&O.scroll},B)):a.push(Z.fullPath,B)),l.value=Z,Y(Z,te,se,M),U()}let k;function L(){k||(k=a.listen((Z,te,se)=>{if(!be.listening)return;const G=m(Z),B=S(G);if(B){T(Rt(B,{replace:!0}),G).catch($d);return}u=G;const j=l.value;pc&&T7($D(j.fullPath,se.delta),Ny()),A(G,j).catch(M=>Ui(M,12)?M:Ui(M,2)?(T(M.to,G).then(O=>{Ui(O,20)&&!se.delta&&se.type===pv.pop&&a.go(-1,!1)}).catch($d),Promise.reject()):(se.delta&&a.go(-se.delta,!1),z(M,G,j))).then(M=>{M=M||P(G,j,!1),M&&(se.delta&&!Ui(M,8)?a.go(-se.delta,!1):se.type===pv.pop&&Ui(M,20)&&a.go(-1,!1)),D(G,j,M)}).catch($d)}))}let V=$f(),N=$f(),$;function z(Z,te,se){U(Z);const G=N.list();return G.length?G.forEach(B=>B(Z,te,se)):console.error(Z),Promise.reject(Z)}function H(){return $&&l.value!==Oo?Promise.resolve():new Promise((Z,te)=>{V.add([Z,te])})}function U(Z){return $||($=!Z,L(),V.list().forEach(([te,se])=>Z?se(Z):te()),V.reset()),Z}function Y(Z,te,se,G){const{scrollBehavior:B}=e;if(!pc||!B)return Promise.resolve();const j=!se&&A7($D(Z.fullPath,0))||(G||!se)&&history.state&&history.state.scroll||null;return ht().then(()=>B(Z,te,j)).then(M=>M&&C7(M)).catch(M=>z(M,Z,te))}const J=Z=>a.go(Z);let ue;const le=new Set,be={currentRoute:l,listening:!0,addRoute:v,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:p,getRoutes:g,resolve:m,options:e,push:b,replace:x,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:N.add,isReady:H,install(Z){const te=this;Z.component("RouterLink",K7),Z.component("RouterView",e9),Z.config.globalProperties.$router=te,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>Be(l)}),pc&&!ue&&l.value===Oo&&(ue=!0,b(a.location).catch(B=>{}));const se={};for(const B in Oo)Object.defineProperty(se,B,{get:()=>l.value[B],enumerable:!0});Z.provide(VC,te),Z.provide(GB,dN(se)),Z.provide(k1,l);const G=Z.unmount;le.add(Z),Z.unmount=function(){le.delete(Z),le.size<1&&(u=Oo,k&&k(),k=null,l.value=Oo,ue=!1,$=!1),G()}}};function ae(Z){return Z.reduce((te,se)=>te.then(()=>w(se)),Promise.resolve())}return be}function n9(e,t){const n=[],r=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oYc(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Yc(u,l))||a.push(l))}return[n,r,a]}const Ua=t9({history:M7("./"),routes:[{path:"/:config",name:"home",component:()=>ig(()=>import("./DevicesView-BXrZzncO.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{path:"/:config/devices/:view?",name:"devices",component:()=>ig(()=>import("./DevicesView-BXrZzncO.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{path:"/:config/settings/:tab?/:item?",name:"settings",component:()=>ig(()=>import("./SettingsView-D4z0eDmZ.js"),__vite__mapDeps([3,4,5,1,2,6]),import.meta.url)},{path:"/:config/internals",name:"internals",component:()=>ig(()=>import("./InternalsView-Btpm_Y2R.js"),__vite__mapDeps([7,4,5]),import.meta.url)}]});/*! * shared v9.14.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. @@ -33,7 +33,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DevicesView-FJHLHjVE * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function f9(e,t,n){return{line:e,column:t,offset:n}}function vm(e,t,n){return{start:e,end:t}}const d9=/\{([0-9a-zA-Z]+)\}/g;function UB(e,...t){return t.length===1&&v9(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(d9,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const YB=Object.assign,oP=e=>typeof e=="string",v9=e=>e!==null&&typeof e=="object";function XB(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const NC={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},h9={[NC.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function g9(e,t,...n){const r=UB(h9[e],...n||[]),a={message:String(r),code:e};return t&&(a.location=t),a}const et={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},p9={[et.EXPECTED_TOKEN]:"Expected token: '{0}'",[et.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[et.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[et.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[et.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[et.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[et.EMPTY_PLACEHOLDER]:"Empty placeholder",[et.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[et.INVALID_LINKED_FORMAT]:"Invalid linked format",[et.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[et.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[et.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[et.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[et.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[et.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function pf(e,t,n={}){const{domain:r,messages:a,args:i}=n,o=UB((a||p9)[e]||"",...i||[]),s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function m9(e){throw e}const Yi=" ",y9="\r",mr=` -`,_9="\u2028",b9="\u2029";function S9(e){const t=e;let n=0,r=1,a=1,i=0;const o=T=>t[T]===y9&&t[T+1]===mr,s=T=>t[T]===mr,l=T=>t[T]===b9,u=T=>t[T]===_9,c=T=>o(T)||s(T)||l(T)||u(T),f=()=>n,d=()=>r,v=()=>a,h=()=>i,g=T=>o(T)||l(T)||u(T)?mr:t[T],p=()=>g(n),m=()=>g(n+i);function y(){return i=0,c(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}function _(){return o(n+i)&&i++,i++,t[n+i]}function b(){n=0,r=1,a=1,i=0}function x(T=0){i=T}function S(){const T=n+i;for(;T!==n;)y();i=0}return{index:f,line:d,column:v,peekOffset:h,charAt:g,currentChar:p,currentPeek:m,next:y,peek:_,reset:b,resetPeek:x,skipToPeek:S}}const No=void 0,x9=".",sP="'",w9="tokenizer";function C9(e,t={}){const n=t.location!==!1,r=S9(e),a=()=>r.index(),i=()=>f9(r.line(),r.column(),r.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(F,W,Q,..._e){const xe=u();if(W.column+=Q,W.offset+=Q,c){const Se=n?vm(xe.startLoc,W):null,ie=pf(F,Se,{domain:w9,args:_e});c(ie)}}function d(F,W,Q){F.endLoc=i(),F.currentType=W;const _e={type:W};return n&&(_e.loc=vm(F.startLoc,F.endLoc)),Q!=null&&(_e.value=Q),_e}const v=F=>d(F,14);function h(F,W){return F.currentChar()===W?(F.next(),W):(f(et.EXPECTED_TOKEN,i(),0,W),"")}function g(F){let W="";for(;F.currentPeek()===Yi||F.currentPeek()===mr;)W+=F.currentPeek(),F.peek();return W}function p(F){const W=g(F);return F.skipToPeek(),W}function m(F){if(F===No)return!1;const W=F.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W===95}function y(F){if(F===No)return!1;const W=F.charCodeAt(0);return W>=48&&W<=57}function _(F,W){const{currentType:Q}=W;if(Q!==2)return!1;g(F);const _e=m(F.currentPeek());return F.resetPeek(),_e}function b(F,W){const{currentType:Q}=W;if(Q!==2)return!1;g(F);const _e=F.currentPeek()==="-"?F.peek():F.currentPeek(),xe=y(_e);return F.resetPeek(),xe}function x(F,W){const{currentType:Q}=W;if(Q!==2)return!1;g(F);const _e=F.currentPeek()===sP;return F.resetPeek(),_e}function S(F,W){const{currentType:Q}=W;if(Q!==8)return!1;g(F);const _e=F.currentPeek()===".";return F.resetPeek(),_e}function T(F,W){const{currentType:Q}=W;if(Q!==9)return!1;g(F);const _e=m(F.currentPeek());return F.resetPeek(),_e}function C(F,W){const{currentType:Q}=W;if(!(Q===8||Q===12))return!1;g(F);const _e=F.currentPeek()===":";return F.resetPeek(),_e}function w(F,W){const{currentType:Q}=W;if(Q!==10)return!1;const _e=()=>{const Se=F.currentPeek();return Se==="{"?m(F.peek()):Se==="@"||Se==="%"||Se==="|"||Se===":"||Se==="."||Se===Yi||!Se?!1:Se===mr?(F.peek(),_e()):P(F,!1)},xe=_e();return F.resetPeek(),xe}function A(F){g(F);const W=F.currentPeek()==="|";return F.resetPeek(),W}function D(F){const W=g(F),Q=F.currentPeek()==="%"&&F.peek()==="{";return F.resetPeek(),{isModulo:Q,hasSpace:W.length>0}}function P(F,W=!0){const Q=(xe=!1,Se="",ie=!1)=>{const de=F.currentPeek();return de==="{"?Se==="%"?!1:xe:de==="@"||!de?Se==="%"?!0:xe:de==="%"?(F.peek(),Q(xe,"%",!0)):de==="|"?Se==="%"||ie?!0:!(Se===Yi||Se===mr):de===Yi?(F.peek(),Q(!0,Yi,ie)):de===mr?(F.peek(),Q(!0,mr,ie)):!0},_e=Q();return W&&F.resetPeek(),_e}function k(F,W){const Q=F.currentChar();return Q===No?No:W(Q)?(F.next(),Q):null}function L(F){const W=F.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36}function V(F){return k(F,L)}function N(F){const W=F.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36||W===45}function $(F){return k(F,N)}function z(F){const W=F.charCodeAt(0);return W>=48&&W<=57}function H(F){return k(F,z)}function U(F){const W=F.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102}function Y(F){return k(F,U)}function J(F){let W="",Q="";for(;W=H(F);)Q+=W;return Q}function ue(F){p(F);const W=F.currentChar();return W!=="%"&&f(et.EXPECTED_TOKEN,i(),0,W),F.next(),"%"}function le(F){let W="";for(;;){const Q=F.currentChar();if(Q==="{"||Q==="}"||Q==="@"||Q==="|"||!Q)break;if(Q==="%")if(P(F))W+=Q,F.next();else break;else if(Q===Yi||Q===mr)if(P(F))W+=Q,F.next();else{if(A(F))break;W+=Q,F.next()}else W+=Q,F.next()}return W}function be(F){p(F);let W="",Q="";for(;W=$(F);)Q+=W;return F.currentChar()===No&&f(et.UNTERMINATED_CLOSING_BRACE,i(),0),Q}function ae(F){p(F);let W="";return F.currentChar()==="-"?(F.next(),W+=`-${J(F)}`):W+=J(F),F.currentChar()===No&&f(et.UNTERMINATED_CLOSING_BRACE,i(),0),W}function Z(F){return F!==sP&&F!==mr}function te(F){p(F),h(F,"'");let W="",Q="";for(;W=k(F,Z);)W==="\\"?Q+=se(F):Q+=W;const _e=F.currentChar();return _e===mr||_e===No?(f(et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),_e===mr&&(F.next(),h(F,"'")),Q):(h(F,"'"),Q)}function se(F){const W=F.currentChar();switch(W){case"\\":case"'":return F.next(),`\\${W}`;case"u":return G(F,W,4);case"U":return G(F,W,6);default:return f(et.UNKNOWN_ESCAPE_SEQUENCE,i(),0,W),""}}function G(F,W,Q){h(F,W);let _e="";for(let xe=0;xe{const _e=F.currentChar();return _e==="{"||_e==="%"||_e==="@"||_e==="|"||_e==="("||_e===")"||!_e||_e===Yi?Q:(Q+=_e,F.next(),W(Q))};return W("")}function X(F){p(F);const W=h(F,"|");return p(F),W}function K(F,W){let Q=null;switch(F.currentChar()){case"{":return W.braceNest>=1&&f(et.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),F.next(),Q=d(W,2,"{"),p(F),W.braceNest++,Q;case"}":return W.braceNest>0&&W.currentType===2&&f(et.EMPTY_PLACEHOLDER,i(),0),F.next(),Q=d(W,3,"}"),W.braceNest--,W.braceNest>0&&p(F),W.inLinked&&W.braceNest===0&&(W.inLinked=!1),Q;case"@":return W.braceNest>0&&f(et.UNTERMINATED_CLOSING_BRACE,i(),0),Q=q(F,W)||v(W),W.braceNest=0,Q;default:{let xe=!0,Se=!0,ie=!0;if(A(F))return W.braceNest>0&&f(et.UNTERMINATED_CLOSING_BRACE,i(),0),Q=d(W,1,X(F)),W.braceNest=0,W.inLinked=!1,Q;if(W.braceNest>0&&(W.currentType===5||W.currentType===6||W.currentType===7))return f(et.UNTERMINATED_CLOSING_BRACE,i(),0),W.braceNest=0,re(F,W);if(xe=_(F,W))return Q=d(W,5,be(F)),p(F),Q;if(Se=b(F,W))return Q=d(W,6,ae(F)),p(F),Q;if(ie=x(F,W))return Q=d(W,7,te(F)),p(F),Q;if(!xe&&!Se&&!ie)return Q=d(W,13,j(F)),f(et.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,Q.value),p(F),Q;break}}return Q}function q(F,W){const{currentType:Q}=W;let _e=null;const xe=F.currentChar();switch((Q===8||Q===9||Q===12||Q===10)&&(xe===mr||xe===Yi)&&f(et.INVALID_LINKED_FORMAT,i(),0),xe){case"@":return F.next(),_e=d(W,8,"@"),W.inLinked=!0,_e;case".":return p(F),F.next(),d(W,9,".");case":":return p(F),F.next(),d(W,10,":");default:return A(F)?(_e=d(W,1,X(F)),W.braceNest=0,W.inLinked=!1,_e):S(F,W)||C(F,W)?(p(F),q(F,W)):T(F,W)?(p(F),d(W,12,M(F))):w(F,W)?(p(F),xe==="{"?K(F,W)||_e:d(W,11,O(F))):(Q===8&&f(et.INVALID_LINKED_FORMAT,i(),0),W.braceNest=0,W.inLinked=!1,re(F,W))}}function re(F,W){let Q={type:14};if(W.braceNest>0)return K(F,W)||v(W);if(W.inLinked)return q(F,W)||v(W);switch(F.currentChar()){case"{":return K(F,W)||v(W);case"}":return f(et.UNBALANCED_CLOSING_BRACE,i(),0),F.next(),d(W,3,"}");case"@":return q(F,W)||v(W);default:{if(A(F))return Q=d(W,1,X(F)),W.braceNest=0,W.inLinked=!1,Q;const{isModulo:xe,hasSpace:Se}=D(F);if(xe)return Se?d(W,0,le(F)):d(W,4,ue(F));if(P(F))return d(W,0,le(F));break}}return Q}function me(){const{currentType:F,offset:W,startLoc:Q,endLoc:_e}=l;return l.lastType=F,l.lastOffset=W,l.lastStartLoc=Q,l.lastEndLoc=_e,l.offset=a(),l.startLoc=i(),r.currentChar()===No?d(l,14):re(r,l)}return{nextToken:me,currentOffset:a,currentPosition:i,context:u}}const T9="parser",A9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function I9(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function D9(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function a(_,b,x,S,...T){const C=_.currentPosition();if(C.offset+=S,C.column+=S,n){const w=t?vm(x,C):null,A=pf(b,w,{domain:T9,args:T});n(A)}}function i(_,b,x,S,...T){const C=_.currentPosition();if(C.offset+=S,C.column+=S,r){const w=t?vm(x,C):null;r(g9(b,w,T))}}function o(_,b,x){const S={type:_};return t&&(S.start=b,S.end=b,S.loc={start:x,end:x}),S}function s(_,b,x,S){t&&(_.end=b,_.loc&&(_.loc.end=x))}function l(_,b){const x=_.context(),S=o(3,x.offset,x.startLoc);return S.value=b,s(S,_.currentOffset(),_.currentPosition()),S}function u(_,b){const x=_.context(),{lastOffset:S,lastStartLoc:T}=x,C=o(5,S,T);return C.index=parseInt(b,10),_.nextToken(),s(C,_.currentOffset(),_.currentPosition()),C}function c(_,b,x){const S=_.context(),{lastOffset:T,lastStartLoc:C}=S,w=o(4,T,C);return w.key=b,x===!0&&(w.modulo=!0),_.nextToken(),s(w,_.currentOffset(),_.currentPosition()),w}function f(_,b){const x=_.context(),{lastOffset:S,lastStartLoc:T}=x,C=o(9,S,T);return C.value=b.replace(A9,I9),_.nextToken(),s(C,_.currentOffset(),_.currentPosition()),C}function d(_){const b=_.nextToken(),x=_.context(),{lastOffset:S,lastStartLoc:T}=x,C=o(8,S,T);return b.type!==12?(a(_,et.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),C.value="",s(C,S,T),{nextConsumeToken:b,node:C}):(b.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Na(b)),C.value=b.value||"",s(C,_.currentOffset(),_.currentPosition()),{node:C})}function v(_,b){const x=_.context(),S=o(7,x.offset,x.startLoc);return S.value=b,s(S,_.currentOffset(),_.currentPosition()),S}function h(_){const b=_.context(),x=o(6,b.offset,b.startLoc);let S=_.nextToken();if(S.type===9){const T=d(_);x.modifier=T.node,S=T.nextConsumeToken||_.nextToken()}switch(S.type!==10&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),S=_.nextToken(),S.type===2&&(S=_.nextToken()),S.type){case 11:S.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),x.key=v(_,S.value||"");break;case 5:S.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),x.key=c(_,S.value||"");break;case 6:S.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),x.key=u(_,S.value||"");break;case 7:S.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),x.key=f(_,S.value||"");break;default:{a(_,et.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const T=_.context(),C=o(7,T.offset,T.startLoc);return C.value="",s(C,T.offset,T.startLoc),x.key=C,s(x,T.offset,T.startLoc),{nextConsumeToken:S,node:x}}}return s(x,_.currentOffset(),_.currentPosition()),{node:x}}function g(_){const b=_.context(),x=b.currentType===1?_.currentOffset():b.offset,S=b.currentType===1?b.endLoc:b.startLoc,T=o(2,x,S);T.items=[];let C=null,w=null;do{const P=C||_.nextToken();switch(C=null,P.type){case 0:P.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(P)),T.items.push(l(_,P.value||""));break;case 6:P.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(P)),T.items.push(u(_,P.value||""));break;case 4:w=!0;break;case 5:P.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(P)),T.items.push(c(_,P.value||"",!!w)),w&&(i(_,NC.USE_MODULO_SYNTAX,b.lastStartLoc,0,Na(P)),w=null);break;case 7:P.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(P)),T.items.push(f(_,P.value||""));break;case 8:{const k=h(_);T.items.push(k.node),C=k.nextConsumeToken||null;break}}}while(b.currentType!==14&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:_.currentOffset(),D=b.currentType===1?b.lastEndLoc:_.currentPosition();return s(T,A,D),T}function p(_,b,x,S){const T=_.context();let C=S.items.length===0;const w=o(1,b,x);w.cases=[],w.cases.push(S);do{const A=g(_);C||(C=A.items.length===0),w.cases.push(A)}while(T.currentType!==14);return C&&a(_,et.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),s(w,_.currentOffset(),_.currentPosition()),w}function m(_){const b=_.context(),{offset:x,startLoc:S}=b,T=g(_);return b.currentType===14?T:p(_,x,S,T)}function y(_){const b=C9(_,YB({},e)),x=b.context(),S=o(0,x.offset,x.startLoc);return t&&S.loc&&(S.loc.source=_),S.body=m(b),e.onCacheKey&&(S.cacheKey=e.onCacheKey(_)),x.currentType!==14&&a(b,et.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,_[x.offset]||""),s(S,b.currentOffset(),b.currentPosition()),S}return{parse:y}}function Na(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function P9(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function lP(e,t){for(let n=0;nuP(n)),e}function uP(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;no;function l(g,p){o.code+=g}function u(g,p=!0){const m=p?r:"";l(a?m+" ".repeat(g):m)}function c(g=!0){const p=++o.indentLevel;g&&u(p)}function f(g=!0){const p=--o.indentLevel;g&&u(p)}function d(){u(o.indentLevel)}return{context:s,push:l,indent:c,deindent:f,newline:d,helper:g=>`_${g}`,needIndent:()=>o.needIndent}}function V9(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),jc(e,t.key),t.modifier?(e.push(", "),jc(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function O9(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let i=0;i1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let i=0;i{const n=oP(t.mode)?t.mode:"normal",r=oP(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` +`,_9="\u2028",b9="\u2029";function S9(e){const t=e;let n=0,r=1,a=1,i=0;const o=T=>t[T]===y9&&t[T+1]===mr,s=T=>t[T]===mr,l=T=>t[T]===b9,u=T=>t[T]===_9,c=T=>o(T)||s(T)||l(T)||u(T),f=()=>n,d=()=>r,v=()=>a,h=()=>i,g=T=>o(T)||l(T)||u(T)?mr:t[T],p=()=>g(n),m=()=>g(n+i);function y(){return i=0,c(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}function _(){return o(n+i)&&i++,i++,t[n+i]}function b(){n=0,r=1,a=1,i=0}function x(T=0){i=T}function S(){const T=n+i;for(;T!==n;)y();i=0}return{index:f,line:d,column:v,peekOffset:h,charAt:g,currentChar:p,currentPeek:m,next:y,peek:_,reset:b,resetPeek:x,skipToPeek:S}}const No=void 0,x9=".",sP="'",w9="tokenizer";function C9(e,t={}){const n=t.location!==!1,r=S9(e),a=()=>r.index(),i=()=>f9(r.line(),r.column(),r.index()),o=i(),s=a(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(F,W,Q,..._e){const xe=u();if(W.column+=Q,W.offset+=Q,c){const Se=n?vm(xe.startLoc,W):null,ie=pf(F,Se,{domain:w9,args:_e});c(ie)}}function d(F,W,Q){F.endLoc=i(),F.currentType=W;const _e={type:W};return n&&(_e.loc=vm(F.startLoc,F.endLoc)),Q!=null&&(_e.value=Q),_e}const v=F=>d(F,14);function h(F,W){return F.currentChar()===W?(F.next(),W):(f(et.EXPECTED_TOKEN,i(),0,W),"")}function g(F){let W="";for(;F.currentPeek()===Yi||F.currentPeek()===mr;)W+=F.currentPeek(),F.peek();return W}function p(F){const W=g(F);return F.skipToPeek(),W}function m(F){if(F===No)return!1;const W=F.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W===95}function y(F){if(F===No)return!1;const W=F.charCodeAt(0);return W>=48&&W<=57}function _(F,W){const{currentType:Q}=W;if(Q!==2)return!1;g(F);const _e=m(F.currentPeek());return F.resetPeek(),_e}function b(F,W){const{currentType:Q}=W;if(Q!==2)return!1;g(F);const _e=F.currentPeek()==="-"?F.peek():F.currentPeek(),xe=y(_e);return F.resetPeek(),xe}function x(F,W){const{currentType:Q}=W;if(Q!==2)return!1;g(F);const _e=F.currentPeek()===sP;return F.resetPeek(),_e}function S(F,W){const{currentType:Q}=W;if(Q!==8)return!1;g(F);const _e=F.currentPeek()===".";return F.resetPeek(),_e}function T(F,W){const{currentType:Q}=W;if(Q!==9)return!1;g(F);const _e=m(F.currentPeek());return F.resetPeek(),_e}function C(F,W){const{currentType:Q}=W;if(!(Q===8||Q===12))return!1;g(F);const _e=F.currentPeek()===":";return F.resetPeek(),_e}function w(F,W){const{currentType:Q}=W;if(Q!==10)return!1;const _e=()=>{const Se=F.currentPeek();return Se==="{"?m(F.peek()):Se==="@"||Se==="%"||Se==="|"||Se===":"||Se==="."||Se===Yi||!Se?!1:Se===mr?(F.peek(),_e()):P(F,!1)},xe=_e();return F.resetPeek(),xe}function A(F){g(F);const W=F.currentPeek()==="|";return F.resetPeek(),W}function D(F){const W=g(F),Q=F.currentPeek()==="%"&&F.peek()==="{";return F.resetPeek(),{isModulo:Q,hasSpace:W.length>0}}function P(F,W=!0){const Q=(xe=!1,Se="",ie=!1)=>{const de=F.currentPeek();return de==="{"?Se==="%"?!1:xe:de==="@"||!de?Se==="%"?!0:xe:de==="%"?(F.peek(),Q(xe,"%",!0)):de==="|"?Se==="%"||ie?!0:!(Se===Yi||Se===mr):de===Yi?(F.peek(),Q(!0,Yi,ie)):de===mr?(F.peek(),Q(!0,mr,ie)):!0},_e=Q();return W&&F.resetPeek(),_e}function k(F,W){const Q=F.currentChar();return Q===No?No:W(Q)?(F.next(),Q):null}function L(F){const W=F.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36}function V(F){return k(F,L)}function N(F){const W=F.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36||W===45}function $(F){return k(F,N)}function z(F){const W=F.charCodeAt(0);return W>=48&&W<=57}function H(F){return k(F,z)}function U(F){const W=F.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102}function Y(F){return k(F,U)}function J(F){let W="",Q="";for(;W=H(F);)Q+=W;return Q}function ue(F){p(F);const W=F.currentChar();return W!=="%"&&f(et.EXPECTED_TOKEN,i(),0,W),F.next(),"%"}function le(F){let W="";for(;;){const Q=F.currentChar();if(Q==="{"||Q==="}"||Q==="@"||Q==="|"||!Q)break;if(Q==="%")if(P(F))W+=Q,F.next();else break;else if(Q===Yi||Q===mr)if(P(F))W+=Q,F.next();else{if(A(F))break;W+=Q,F.next()}else W+=Q,F.next()}return W}function be(F){p(F);let W="",Q="";for(;W=$(F);)Q+=W;return F.currentChar()===No&&f(et.UNTERMINATED_CLOSING_BRACE,i(),0),Q}function ae(F){p(F);let W="";return F.currentChar()==="-"?(F.next(),W+=`-${J(F)}`):W+=J(F),F.currentChar()===No&&f(et.UNTERMINATED_CLOSING_BRACE,i(),0),W}function Z(F){return F!==sP&&F!==mr}function te(F){p(F),h(F,"'");let W="",Q="";for(;W=k(F,Z);)W==="\\"?Q+=se(F):Q+=W;const _e=F.currentChar();return _e===mr||_e===No?(f(et.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),_e===mr&&(F.next(),h(F,"'")),Q):(h(F,"'"),Q)}function se(F){const W=F.currentChar();switch(W){case"\\":case"'":return F.next(),`\\${W}`;case"u":return G(F,W,4);case"U":return G(F,W,6);default:return f(et.UNKNOWN_ESCAPE_SEQUENCE,i(),0,W),""}}function G(F,W,Q){h(F,W);let _e="";for(let xe=0;xe{const _e=F.currentChar();return _e==="{"||_e==="%"||_e==="@"||_e==="|"||_e==="("||_e===")"||!_e||_e===Yi?Q:(Q+=_e,F.next(),W(Q))};return W("")}function X(F){p(F);const W=h(F,"|");return p(F),W}function K(F,W){let Q=null;switch(F.currentChar()){case"{":return W.braceNest>=1&&f(et.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),F.next(),Q=d(W,2,"{"),p(F),W.braceNest++,Q;case"}":return W.braceNest>0&&W.currentType===2&&f(et.EMPTY_PLACEHOLDER,i(),0),F.next(),Q=d(W,3,"}"),W.braceNest--,W.braceNest>0&&p(F),W.inLinked&&W.braceNest===0&&(W.inLinked=!1),Q;case"@":return W.braceNest>0&&f(et.UNTERMINATED_CLOSING_BRACE,i(),0),Q=q(F,W)||v(W),W.braceNest=0,Q;default:{let xe=!0,Se=!0,ie=!0;if(A(F))return W.braceNest>0&&f(et.UNTERMINATED_CLOSING_BRACE,i(),0),Q=d(W,1,X(F)),W.braceNest=0,W.inLinked=!1,Q;if(W.braceNest>0&&(W.currentType===5||W.currentType===6||W.currentType===7))return f(et.UNTERMINATED_CLOSING_BRACE,i(),0),W.braceNest=0,re(F,W);if(xe=_(F,W))return Q=d(W,5,be(F)),p(F),Q;if(Se=b(F,W))return Q=d(W,6,ae(F)),p(F),Q;if(ie=x(F,W))return Q=d(W,7,te(F)),p(F),Q;if(!xe&&!Se&&!ie)return Q=d(W,13,j(F)),f(et.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,Q.value),p(F),Q;break}}return Q}function q(F,W){const{currentType:Q}=W;let _e=null;const xe=F.currentChar();switch((Q===8||Q===9||Q===12||Q===10)&&(xe===mr||xe===Yi)&&f(et.INVALID_LINKED_FORMAT,i(),0),xe){case"@":return F.next(),_e=d(W,8,"@"),W.inLinked=!0,_e;case".":return p(F),F.next(),d(W,9,".");case":":return p(F),F.next(),d(W,10,":");default:return A(F)?(_e=d(W,1,X(F)),W.braceNest=0,W.inLinked=!1,_e):S(F,W)||C(F,W)?(p(F),q(F,W)):T(F,W)?(p(F),d(W,12,M(F))):w(F,W)?(p(F),xe==="{"?K(F,W)||_e:d(W,11,O(F))):(Q===8&&f(et.INVALID_LINKED_FORMAT,i(),0),W.braceNest=0,W.inLinked=!1,re(F,W))}}function re(F,W){let Q={type:14};if(W.braceNest>0)return K(F,W)||v(W);if(W.inLinked)return q(F,W)||v(W);switch(F.currentChar()){case"{":return K(F,W)||v(W);case"}":return f(et.UNBALANCED_CLOSING_BRACE,i(),0),F.next(),d(W,3,"}");case"@":return q(F,W)||v(W);default:{if(A(F))return Q=d(W,1,X(F)),W.braceNest=0,W.inLinked=!1,Q;const{isModulo:xe,hasSpace:Se}=D(F);if(xe)return Se?d(W,0,le(F)):d(W,4,ue(F));if(P(F))return d(W,0,le(F));break}}return Q}function pe(){const{currentType:F,offset:W,startLoc:Q,endLoc:_e}=l;return l.lastType=F,l.lastOffset=W,l.lastStartLoc=Q,l.lastEndLoc=_e,l.offset=a(),l.startLoc=i(),r.currentChar()===No?d(l,14):re(r,l)}return{nextToken:pe,currentOffset:a,currentPosition:i,context:u}}const T9="parser",A9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function I9(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function D9(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function a(_,b,x,S,...T){const C=_.currentPosition();if(C.offset+=S,C.column+=S,n){const w=t?vm(x,C):null,A=pf(b,w,{domain:T9,args:T});n(A)}}function i(_,b,x,S,...T){const C=_.currentPosition();if(C.offset+=S,C.column+=S,r){const w=t?vm(x,C):null;r(g9(b,w,T))}}function o(_,b,x){const S={type:_};return t&&(S.start=b,S.end=b,S.loc={start:x,end:x}),S}function s(_,b,x,S){t&&(_.end=b,_.loc&&(_.loc.end=x))}function l(_,b){const x=_.context(),S=o(3,x.offset,x.startLoc);return S.value=b,s(S,_.currentOffset(),_.currentPosition()),S}function u(_,b){const x=_.context(),{lastOffset:S,lastStartLoc:T}=x,C=o(5,S,T);return C.index=parseInt(b,10),_.nextToken(),s(C,_.currentOffset(),_.currentPosition()),C}function c(_,b,x){const S=_.context(),{lastOffset:T,lastStartLoc:C}=S,w=o(4,T,C);return w.key=b,x===!0&&(w.modulo=!0),_.nextToken(),s(w,_.currentOffset(),_.currentPosition()),w}function f(_,b){const x=_.context(),{lastOffset:S,lastStartLoc:T}=x,C=o(9,S,T);return C.value=b.replace(A9,I9),_.nextToken(),s(C,_.currentOffset(),_.currentPosition()),C}function d(_){const b=_.nextToken(),x=_.context(),{lastOffset:S,lastStartLoc:T}=x,C=o(8,S,T);return b.type!==12?(a(_,et.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),C.value="",s(C,S,T),{nextConsumeToken:b,node:C}):(b.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Na(b)),C.value=b.value||"",s(C,_.currentOffset(),_.currentPosition()),{node:C})}function v(_,b){const x=_.context(),S=o(7,x.offset,x.startLoc);return S.value=b,s(S,_.currentOffset(),_.currentPosition()),S}function h(_){const b=_.context(),x=o(6,b.offset,b.startLoc);let S=_.nextToken();if(S.type===9){const T=d(_);x.modifier=T.node,S=T.nextConsumeToken||_.nextToken()}switch(S.type!==10&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),S=_.nextToken(),S.type===2&&(S=_.nextToken()),S.type){case 11:S.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),x.key=v(_,S.value||"");break;case 5:S.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),x.key=c(_,S.value||"");break;case 6:S.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),x.key=u(_,S.value||"");break;case 7:S.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(S)),x.key=f(_,S.value||"");break;default:{a(_,et.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const T=_.context(),C=o(7,T.offset,T.startLoc);return C.value="",s(C,T.offset,T.startLoc),x.key=C,s(x,T.offset,T.startLoc),{nextConsumeToken:S,node:x}}}return s(x,_.currentOffset(),_.currentPosition()),{node:x}}function g(_){const b=_.context(),x=b.currentType===1?_.currentOffset():b.offset,S=b.currentType===1?b.endLoc:b.startLoc,T=o(2,x,S);T.items=[];let C=null,w=null;do{const P=C||_.nextToken();switch(C=null,P.type){case 0:P.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(P)),T.items.push(l(_,P.value||""));break;case 6:P.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(P)),T.items.push(u(_,P.value||""));break;case 4:w=!0;break;case 5:P.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(P)),T.items.push(c(_,P.value||"",!!w)),w&&(i(_,NC.USE_MODULO_SYNTAX,b.lastStartLoc,0,Na(P)),w=null);break;case 7:P.value==null&&a(_,et.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Na(P)),T.items.push(f(_,P.value||""));break;case 8:{const k=h(_);T.items.push(k.node),C=k.nextConsumeToken||null;break}}}while(b.currentType!==14&&b.currentType!==1);const A=b.currentType===1?b.lastOffset:_.currentOffset(),D=b.currentType===1?b.lastEndLoc:_.currentPosition();return s(T,A,D),T}function p(_,b,x,S){const T=_.context();let C=S.items.length===0;const w=o(1,b,x);w.cases=[],w.cases.push(S);do{const A=g(_);C||(C=A.items.length===0),w.cases.push(A)}while(T.currentType!==14);return C&&a(_,et.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),s(w,_.currentOffset(),_.currentPosition()),w}function m(_){const b=_.context(),{offset:x,startLoc:S}=b,T=g(_);return b.currentType===14?T:p(_,x,S,T)}function y(_){const b=C9(_,YB({},e)),x=b.context(),S=o(0,x.offset,x.startLoc);return t&&S.loc&&(S.loc.source=_),S.body=m(b),e.onCacheKey&&(S.cacheKey=e.onCacheKey(_)),x.currentType!==14&&a(b,et.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,_[x.offset]||""),s(S,b.currentOffset(),b.currentPosition()),S}return{parse:y}}function Na(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function P9(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function lP(e,t){for(let n=0;nuP(n)),e}function uP(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;no;function l(g,p){o.code+=g}function u(g,p=!0){const m=p?r:"";l(a?m+" ".repeat(g):m)}function c(g=!0){const p=++o.indentLevel;g&&u(p)}function f(g=!0){const p=--o.indentLevel;g&&u(p)}function d(){u(o.indentLevel)}return{context:s,push:l,indent:c,deindent:f,newline:d,helper:g=>`_${g}`,needIndent:()=>o.needIndent}}function V9(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),jc(e,t.key),t.modifier?(e.push(", "),jc(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function O9(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let i=0;i1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let i=0;i{const n=oP(t.mode)?t.mode:"normal",r=oP(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],s=R9(e,{filename:r,breakLineCode:a,needIndent:i});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(i),o.length>0&&(s.push(`const { ${XB(o.map(c=>`${c}: _${c}`),", ")} } = ctx`),s.newline()),s.push("return "),jc(s,e),s.deindent(i),s.push("}"),delete e.helpers;const{code:l,map:u}=s.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function F9(e,t={}){const n=YB({},t),r=!!n.jit,a=!!n.minify,i=n.optimize==null?!0:n.optimize,s=D9(n).parse(e);return r?(i&&M9(s),a&&mc(s),{ast:s,code:""}):(k9(s,n),z9(s,n))}/*! * core-base v9.14.1 * (c) 2024 kazuya kawaguchi @@ -42,14 +42,14 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DevicesView-FJHLHjVE * vue-i18n v9.14.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. - */const LX="9.14.1";function EX(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(OC().__INTLIFY_PROD_DEVTOOLS__=!1)}const RX=uX.__EXTEND_POINT__,Xi=zy(RX);Xi(),Xi(),Xi(),Xi(),Xi(),Xi(),Xi(),Xi(),Xi();const iz=Si.__EXTEND_POINT__,Er=zy(iz),Da={UNEXPECTED_RETURN_TYPE:iz,INVALID_ARGUMENT:Er(),MUST_BE_CALL_SETUP_TOP:Er(),NOT_INSTALLED:Er(),NOT_AVAILABLE_IN_LEGACY_MODE:Er(),REQUIRED_VALUE:Er(),INVALID_VALUE:Er(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Er(),NOT_INSTALLED_WITH_PROVIDE:Er(),UNEXPECTED_ERROR:Er(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Er(),BRIDGE_SUPPORT_VUE_2_ONLY:Er(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Er(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Er(),__EXTEND_POINT__:Er()};function ei(e,...t){return pf(e,null,void 0)}const V1=Ns("__translateVNode"),O1=Ns("__datetimeParts"),N1=Ns("__numberParts"),VX=Ns("__setPluralRules"),OX=Ns("__injectWithOption"),B1=Ns("__dispose");function yv(e){if(!At(e))return e;for(const t in e)if(dm(e,t))if(!t.includes("."))At(e[t])&&yv(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,i=!1;for(let o=0;o{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},xp(u,o[l])):xp(u,o)}else $e(s)&&xp(JSON.parse(s),o)}),a==null&&i)for(const s in o)dm(o,s)&&yv(o[s]);return o}function sz(e){return e.type}function NX(e,t,n){let r=At(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=oz(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(At(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(At(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function TP(e){return I(so,null,e,0)}const AP="__INTLIFY_META__",IP=()=>[],BX=()=>!1;let DP=0;function PP(e){return(t,n,r,a)=>e(n,r,Mr()||void 0,a)}const zX=()=>{const e=Mr();let t=null;return e&&(t=sz(e)[AP])?{[AP]:t}:null};function lz(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,i=e.flatJson,o=cm?ye:Te,s=!!e.translateExistCompatible;let l=en(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&l?n.locale.value:$e(e.locale)?e.locale:hm),c=o(n&&l?n.fallbackLocale.value:$e(e.fallbackLocale)||Mn(e.fallbackLocale)||St(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),f=o(oz(u.value,e)),d=o(St(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),v=o(St(e.numberFormats)?e.numberFormats:{[u.value]:{}});let h=n?n.missingWarn:en(e.missingWarn)||fm(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:en(e.fallbackWarn)||fm(e.fallbackWarn)?e.fallbackWarn:!0,p=n?n.fallbackRoot:en(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,y=on(e.missing)?e.missing:null,_=on(e.missing)?PP(e.missing):null,b=on(e.postTranslation)?e.postTranslation:null,x=n?n.warnHtmlMessage:en(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const T=n?n.modifiers:St(e.modifiers)?e.modifiers:{};let C=e.pluralRules||n&&n.pluralRules,w;w=(()=>{a&&pP(null);const ie={version:LX,locale:u.value,fallbackLocale:c.value,messages:f.value,modifiers:T,pluralRules:C,missing:_===null?void 0:_,missingWarn:h,fallbackWarn:g,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:x,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ie.datetimeFormats=d.value,ie.numberFormats=v.value,ie.__datetimeFormatters=St(w)?w.__datetimeFormatters:void 0,ie.__numberFormatters=St(w)?w.__numberFormatters:void 0;const de=SX(ie);return a&&pP(de),de})(),Wf(w,u.value,c.value);function D(){return[u.value,c.value,f.value,d.value,v.value]}const P=E({get:()=>u.value,set:ie=>{u.value=ie,w.locale=u.value}}),k=E({get:()=>c.value,set:ie=>{c.value=ie,w.fallbackLocale=c.value,Wf(w,u.value,ie)}}),L=E(()=>f.value),V=E(()=>d.value),N=E(()=>v.value);function $(){return on(b)?b:null}function z(ie){b=ie,w.postTranslation=ie}function H(){return y}function U(ie){ie!==null&&(_=PP(ie)),y=ie,w.missing=_}const Y=(ie,de,Ge,qe,rn,cn)=>{D();let Bn;try{__INTLIFY_PROD_DEVTOOLS__,a||(w.fallbackContext=n?bX():void 0),Bn=ie(w)}finally{__INTLIFY_PROD_DEVTOOLS__,a||(w.fallbackContext=void 0)}if(Ge!=="translate exists"&&Fn(Bn)&&Bn===Fy||Ge==="translate exists"&&!Bn){const[vr,zu]=de();return n&&p?qe(n):rn(vr)}else{if(cn(Bn))return Bn;throw ei(Da.UNEXPECTED_RETURN_TYPE)}};function J(...ie){return Y(de=>Reflect.apply(bP,null,[de,...ie]),()=>L1(...ie),"translate",de=>Reflect.apply(de.t,de,[...ie]),de=>de,de=>$e(de))}function ue(...ie){const[de,Ge,qe]=ie;if(qe&&!At(qe))throw ei(Da.INVALID_ARGUMENT);return J(de,Ge,ur({resolvedMessage:!0},qe||{}))}function le(...ie){return Y(de=>Reflect.apply(SP,null,[de,...ie]),()=>E1(...ie),"datetime format",de=>Reflect.apply(de.d,de,[...ie]),()=>hP,de=>$e(de))}function be(...ie){return Y(de=>Reflect.apply(wP,null,[de,...ie]),()=>R1(...ie),"number format",de=>Reflect.apply(de.n,de,[...ie]),()=>hP,de=>$e(de))}function ae(ie){return ie.map(de=>$e(de)||Fn(de)||en(de)?TP(String(de)):de)}const te={normalize:ae,interpolate:ie=>ie,type:"vnode"};function se(...ie){return Y(de=>{let Ge;const qe=de;try{qe.processor=te,Ge=Reflect.apply(bP,null,[qe,...ie])}finally{qe.processor=null}return Ge},()=>L1(...ie),"translate",de=>de[V1](...ie),de=>[TP(de)],de=>Mn(de))}function G(...ie){return Y(de=>Reflect.apply(wP,null,[de,...ie]),()=>R1(...ie),"number format",de=>de[N1](...ie),IP,de=>$e(de)||Mn(de))}function B(...ie){return Y(de=>Reflect.apply(SP,null,[de,...ie]),()=>E1(...ie),"datetime format",de=>de[O1](...ie),IP,de=>$e(de)||Mn(de))}function j(ie){C=ie,w.pluralRules=C}function M(ie,de){return Y(()=>{if(!ie)return!1;const Ge=$e(de)?de:u.value,qe=K(Ge),rn=w.messageResolver(qe,ie);return s?rn!=null:Zc(rn)||ma(rn)||$e(rn)},()=>[ie],"translate exists",Ge=>Reflect.apply(Ge.te,Ge,[ie,de]),BX,Ge=>en(Ge))}function O(ie){let de=null;const Ge=ZB(w,c.value,u.value);for(let qe=0;qe{l&&(u.value=ie,w.locale=ie,Wf(w,u.value,c.value))}),Ce(n.fallbackLocale,ie=>{l&&(c.value=ie,w.fallbackLocale=ie,Wf(w,u.value,c.value))}));const Se={id:DP,locale:P,fallbackLocale:k,get inheritLocale(){return l},set inheritLocale(ie){l=ie,ie&&n&&(u.value=n.locale.value,c.value=n.fallbackLocale.value,Wf(w,u.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:L,get modifiers(){return T},get pluralRules(){return C||{}},get isGlobal(){return a},get missingWarn(){return h},set missingWarn(ie){h=ie,w.missingWarn=h},get fallbackWarn(){return g},set fallbackWarn(ie){g=ie,w.fallbackWarn=g},get fallbackRoot(){return p},set fallbackRoot(ie){p=ie},get fallbackFormat(){return m},set fallbackFormat(ie){m=ie,w.fallbackFormat=m},get warnHtmlMessage(){return x},set warnHtmlMessage(ie){x=ie,w.warnHtmlMessage=ie},get escapeParameter(){return S},set escapeParameter(ie){S=ie,w.escapeParameter=ie},t:J,getLocaleMessage:K,setLocaleMessage:q,mergeLocaleMessage:re,getPostTranslationHandler:$,setPostTranslationHandler:z,getMissingHandler:H,setMissingHandler:U,[VX]:j};return Se.datetimeFormats=V,Se.numberFormats=N,Se.rt=ue,Se.te=M,Se.tm=X,Se.d=le,Se.n=be,Se.getDateTimeFormat=me,Se.setDateTimeFormat=F,Se.mergeDateTimeFormat=W,Se.getNumberFormat=Q,Se.setNumberFormat=_e,Se.mergeNumberFormat=xe,Se[OX]=r,Se[V1]=se,Se[O1]=B,Se[N1]=G,Se}const HC={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function FX({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===ke?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function uz(e){return ke}const HX=Os({name:"i18n-t",props:ur({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Fn(e)||!isNaN(e)}},HC),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||vh({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=$e(e.plural)?+e.plural:e.plural);const s=FX(t,i),l=a[V1](e.keypath,s,o),u=ur({},r),c=$e(e.tag)||At(e.tag)?e.tag:uz();return ra(c,u,l)}}}),kP=HX;function GX(e){return Mn(e)&&!$e(e[0])}function cz(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),$e(e.format)?o.key=e.format:At(e.format)&&($e(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((d,v)=>n.includes(v)?ur({},d,{[v]:e.format[v]}):d,{}));const l=r(e.value,o,s);let u=[o.key];Mn(l)?u=l.map((d,v)=>{const h=a[d.type],g=h?h({[d.type]:d.value,index:v,parts:l}):[d.value];return GX(g)&&(g[0].key=`${d.type}-${v}`),g}):$e(l)&&(u=[l]);const c=ur({},i),f=$e(e.tag)||At(e.tag)?e.tag:uz();return ra(f,c,u)}}const $X=Os({name:"i18n-n",props:ur({value:{type:Number,required:!0},format:{type:[String,Object]}},HC),setup(e,t){const n=e.i18n||vh({useScope:e.scope,__useComponent:!0});return cz(e,t,az,(...r)=>n[N1](...r))}}),MP=$X,WX=Os({name:"i18n-d",props:ur({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},HC),setup(e,t){const n=e.i18n||vh({useScope:e.scope,__useComponent:!0});return cz(e,t,rz,(...r)=>n[O1](...r))}}),LP=WX;function UX(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function YX(e){const t=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw ei(Da.UNEXPECTED_ERROR);const c=UX(e,s.$),f=EP(u);return[Reflect.apply(c.t,c,[...RP(f)]),c]};return{created:(o,s)=>{const[l,u]=t(s);cm&&e.global===u&&(o.__i18nWatcher=Ce(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{cm&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=EP(s);o.textContent=Reflect.apply(l.t,l,[...RP(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function EP(e){if($e(e))return{path:e};if(St(e)){if(!("path"in e))throw ei(Da.REQUIRED_VALUE,"path");return e}else throw ei(Da.INVALID_VALUE)}function RP(e){const{path:t,locale:n,args:r,choice:a,plural:i}=e,o={},s=r||{};return $e(n)&&(o.locale=n),Fn(a)&&(o.plural=a),Fn(i)&&(o.plural=i),[t,s,o]}function XX(e,t,...n){const r=St(n[0])?n[0]:{},a=!!r.useI18nComponentName;(en(r.globalInstall)?r.globalInstall:!0)&&([a?"i18n":kP.name,"I18nT"].forEach(o=>e.component(o,kP)),[MP.name,"I18nN"].forEach(o=>e.component(o,MP)),[LP.name,"I18nD"].forEach(o=>e.component(o,LP))),e.directive("t",YX(t))}const jX=Ns("global-vue-i18n");function ZX(e={},t){const n=en(e.globalInjection)?e.globalInjection:!0,r=!0,a=new Map,[i,o]=KX(e),s=Ns("");function l(f){return a.get(f)||null}function u(f,d){a.set(f,d)}function c(f){a.delete(f)}{const f={get mode(){return"composition"},get allowComposition(){return r},async install(d,...v){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,f),St(v[0])){const p=v[0];f.__composerExtend=p.__composerExtend,f.__vueI18nExtend=p.__vueI18nExtend}let h=null;n&&(h=aj(d,f.global)),XX(d,f,...v);const g=d.unmount;d.unmount=()=>{h&&h(),f.dispose(),g()}},get global(){return o},dispose(){i.stop()},__instances:a,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}}function vh(e={}){const t=Mr();if(t==null)throw ei(Da.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ei(Da.NOT_INSTALLED);const n=qX(t),r=QX(n),a=sz(t),i=JX(e,a);if(i==="global")return NX(r,e,a),r;if(i==="parent"){let l=ej(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(t);if(s==null){const l=ur({},e);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=lz(l),o.__composerExtend&&(s[B1]=o.__composerExtend(s)),nj(o,t,s),o.__setInstance(t,s)}return s}function KX(e,t,n){const r=hf();{const a=r.run(()=>lz(e));if(a==null)throw ei(Da.UNEXPECTED_ERROR);return[r,a]}}function qX(e){{const t=rt(e.isCE?jX:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ei(e.isCE?Da.NOT_INSTALLED_WITH_PROVIDE:Da.UNEXPECTED_ERROR);return t}}function JX(e,t){return By(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function QX(e){return e.mode==="composition"?e.global:e.global.__composer}function ej(e,t,n=!1){let r=null;const a=t.root;let i=tj(t,n);for(;i!=null;){const o=e;if(e.mode==="composition"&&(r=o.__getInstance(i)),r!=null||a===i)break;i=i.parent}return r}function tj(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function nj(e,t,n){wn(()=>{},t),ch(()=>{const r=n;e.__deleteInstance(t);const a=r[B1];a&&(a(),delete r[B1])},t)}const rj=["locale","fallbackLocale","availableLocales"],VP=["t","rt","d","n","tm","te"];function aj(e,t){const n=Object.create(null);return rj.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw ei(Da.UNEXPECTED_ERROR);const o=Bt(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,VP.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw ei(Da.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,VP.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}EX();gX(IX);pX(Z9);mX(ZB);if(__INTLIFY_PROD_DEVTOOLS__){const e=OC();e.__INTLIFY__=!0,aX(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Cr(e,t){let n;function r(){n=hf(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}Ce(e,a=>{a&&!n?r():a||(n==null||n.stop(),n=void 0)},{immediate:!0}),er(()=>{n==null||n.stop()})}const yt=typeof window<"u",GC=yt&&"IntersectionObserver"in window,ij=yt&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),OP=yt&&"EyeDropper"in window;function NP(e,t,n){oj(e,t),t.set(e,n)}function oj(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function sj(e,t,n){return e.set(fz(e,t),n),n}function js(e,t){return e.get(fz(e,t))}function fz(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function dz(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let a=0;aNi(e[r],t[r]))}function iu(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),dz(e,t.split("."),n))}function bn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const a=t(e,n);return typeof a>"u"?n:a}if(typeof t=="string")return iu(e,t,n);if(Array.isArray(t))return dz(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function xi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function De(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function $C(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function BP(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function WC(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const zP=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),z1=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function vz(e){return Object.keys(e)}function kl(e,t){return t.every(n=>e.hasOwnProperty(n))}function UC(e,t){const n={},r=new Set(Object.keys(e));for(const a of t)r.has(a)&&(n[a]=e[a]);return n}function F1(e,t,n){const r=Object.create(null),a=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(n!=null&&n.some(o=>o===i))?r[i]=e[i]:a[i]=e[i];return[r,a]}function vn(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function Hy(e,t){const n={};return t.forEach(r=>n[r]=e[r]),n}const hz=/^on[^a-z]/,Gy=e=>hz.test(e),lj=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],uj=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function cj(e){return e.isComposing&&uj.includes(e.key)}function zs(e){const[t,n]=F1(e,[hz]),r=vn(t,lj),[a,i]=F1(n,["class","style","id",/^data-/]);return Object.assign(a,t),Object.assign(i,r),[a,i]}function jt(e){return e==null?[]:Array.isArray(e)?e:[e]}function fj(e,t){let n=0;const r=function(){for(var a=arguments.length,i=new Array(a),o=0;oe(...i),Be(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function sn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function FP(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function HP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function GP(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function dj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const a in e)r[a]=e[a];for(const a in t){const i=e[a],o=t[a];if(BP(i)&&BP(o)){r[a]=sr(i,o,n);continue}if(n&&Array.isArray(i)&&Array.isArray(o)){r[a]=n(i,o);continue}r[a]=o}return r}function gz(e){return e.map(t=>t.type===ke?gz(t.children):t).flat()}function $l(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if($l.cache.has(e))return $l.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return $l.cache.set(e,t),t}$l.cache=new Map;function Cc(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Cc(e,n)).flat(1);if(t.suspense)return Cc(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Cc(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Cc(e,t.component.subTree).flat(1)}return[]}var lg=new WeakMap,$u=new WeakMap;class vj{constructor(t){NP(this,lg,[]),NP(this,$u,0),this.size=t}push(t){js(lg,this)[js($u,this)]=t,sj($u,this,(js($u,this)+1)%this.size)}values(){return js(lg,this).slice(js($u,this)).concat(js(lg,this).slice(0,js($u,this)))}}function hj(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function YC(e){const t=yn({}),n=E(e);return un(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),Vs(t)}function gm(e,t){return e.includes(t)}function pz(e){return e[2].toLowerCase()+e.slice(3)}const $n=()=>[Function,Array];function WP(e,t){return t="on"+Oi(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function XC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(r=>`${r}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function mz(e,t,n){let r,a=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do a+=i,r=e[a];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&a=0);return r}function Wl(e,t){var r,a,i,o;const n=_v(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(a=n[0])==null||a.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const s=mz(n,t);s?s.focus():Wl(e,t==="next"?"first":"last")}}function ug(e){return e==null||typeof e=="string"&&e.trim()===""}function yz(){}function Kc(e,t){if(!(yt&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function $y(e){return e.some(t=>ho(t)?t.type===_n?!1:t.type!==ke||$y(t.children):!0)?e:null}function gj(e,t){if(!yt||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function pj(e,t){const n=e.clientX,r=e.clientY,a=t.getBoundingClientRect(),i=a.left,o=a.top,s=a.right,l=a.bottom;return n>=i&&n<=s&&r>=o&&r<=l}function pm(){const e=Te(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>WC(e.value)}),t}function mm(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}const _z=["top","bottom"],mj=["start","end","left","right"];function H1(e,t){let[n,r]=e.split(" ");return r||(r=gm(_z,n)?"start":gm(mj,n)?"top":"center"),{side:G1(n,t),align:G1(r,t)}}function G1(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function C_(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function T_(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function UP(e){return{side:e.align,align:e.side}}function YP(e){return gm(_z,e.side)?"y":"x"}class Ul{constructor(t){let{x:n,y:r,width:a,height:i}=t;this.x=n,this.y=r,this.width=a,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function XP(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function bz(e){return Array.isArray(e)?new Ul({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function jC(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let a,i,o,s,l;if(r.startsWith("matrix3d("))a=r.slice(9,-1).split(/, /),i=+a[0],o=+a[5],s=+a[12],l=+a[13];else if(r.startsWith("matrix("))a=r.slice(7,-1).split(/, /),i=+a[0],o=+a[3],s=+a[4],l=+a[5];else return new Ul(t);const u=n.transformOrigin,c=t.x-s-(1-i)*parseFloat(u),f=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),d=i?t.width/i:e.offsetWidth+1,v=o?t.height/o:e.offsetHeight+1;return new Ul({x:c,y:f,width:d,height:v})}else return new Ul(t)}function Ml(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(a=>{r.onfinish=()=>{a(r)}})),r}const wp=new WeakMap;function yj(e,t){Object.keys(t).forEach(n=>{if(Gy(n)){const r=pz(n),a=wp.get(e);if(t[n]==null)a==null||a.forEach(i=>{const[o,s]=i;o===r&&(e.removeEventListener(r,s),a.delete(i))});else if(!a||![...a].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=a||new Set;i.add([r,t[n]]),wp.has(e)||wp.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function _j(e,t){Object.keys(t).forEach(n=>{if(Gy(n)){const r=pz(n),a=wp.get(e);a==null||a.forEach(i=>{const[o,s]=i;o===r&&(e.removeEventListener(r,s),a.delete(i))})}else e.removeAttribute(n)})}const Wu=2.4,jP=.2126729,ZP=.7151522,KP=.072175,bj=.55,Sj=.58,xj=.57,wj=.62,cg=.03,qP=1.45,Cj=5e-4,Tj=1.25,Aj=1.25,JP=.078,QP=12.82051282051282,fg=.06,ek=.001;function tk(e,t){const n=(e.r/255)**Wu,r=(e.g/255)**Wu,a=(e.b/255)**Wu,i=(t.r/255)**Wu,o=(t.g/255)**Wu,s=(t.b/255)**Wu;let l=n*jP+r*ZP+a*KP,u=i*jP+o*ZP+s*KP;if(l<=cg&&(l+=(cg-l)**qP),u<=cg&&(u+=(cg-u)**qP),Math.abs(u-l)l){const f=(u**bj-l**Sj)*Tj;c=f-ek?0:f>-JP?f-f*QP*fg:f+fg}return c*100}function Ij(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const ym=.20689655172413793,Dj=e=>e>ym**3?Math.cbrt(e):e/(3*ym**2)+4/29,Pj=e=>e>ym?e**3:3*ym**2*(e-4/29);function Sz(e){const t=Dj,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function xz(e){const t=Pj,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const kj=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Mj=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Lj=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Ej=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function wz(e){const t=Array(3),n=Mj,r=kj;for(let a=0;a<3;++a)t[a]=Math.round(sn(n(r[a][0]*e[0]+r[a][1]*e[1]+r[a][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function ZC(e){let{r:t,g:n,b:r}=e;const a=[0,0,0],i=Ej,o=Lj;t=i(t/255),n=i(n/255),r=i(r/255);for(let s=0;s<3;++s)a[s]=o[s][0]*t+o[s][1]*n+o[s][2]*r;return a}function $1(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function Rj(e){return $1(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const nk=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Vj={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>rk({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>rk({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>go({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>go({h:e,s:t,v:n,a:r})};function xa(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&nk.test(e)){const{groups:t}=e.match(nk),{fn:n,values:r}=t,a=r.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return Vj[n](...a)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),Dz(t)}else if(typeof e=="object"){if(kl(e,["r","g","b"]))return e;if(kl(e,["h","s","l"]))return go(KC(e));if(kl(e,["h","s","v"]))return go(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} + */const LX="9.14.1";function EX(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(OC().__INTLIFY_PROD_DEVTOOLS__=!1)}const RX=uX.__EXTEND_POINT__,Xi=zy(RX);Xi(),Xi(),Xi(),Xi(),Xi(),Xi(),Xi(),Xi(),Xi();const iz=Si.__EXTEND_POINT__,Er=zy(iz),Da={UNEXPECTED_RETURN_TYPE:iz,INVALID_ARGUMENT:Er(),MUST_BE_CALL_SETUP_TOP:Er(),NOT_INSTALLED:Er(),NOT_AVAILABLE_IN_LEGACY_MODE:Er(),REQUIRED_VALUE:Er(),INVALID_VALUE:Er(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Er(),NOT_INSTALLED_WITH_PROVIDE:Er(),UNEXPECTED_ERROR:Er(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Er(),BRIDGE_SUPPORT_VUE_2_ONLY:Er(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Er(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Er(),__EXTEND_POINT__:Er()};function ei(e,...t){return pf(e,null,void 0)}const V1=Ns("__translateVNode"),O1=Ns("__datetimeParts"),N1=Ns("__numberParts"),VX=Ns("__setPluralRules"),OX=Ns("__injectWithOption"),B1=Ns("__dispose");function yv(e){if(!At(e))return e;for(const t in e)if(dm(e,t))if(!t.includes("."))At(e[t])&&yv(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,i=!1;for(let o=0;o{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||{},xp(u,o[l])):xp(u,o)}else $e(s)&&xp(JSON.parse(s),o)}),a==null&&i)for(const s in o)dm(o,s)&&yv(o[s]);return o}function sz(e){return e.type}function NX(e,t,n){let r=At(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=oz(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(At(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(At(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function TP(e){return I(so,null,e,0)}const AP="__INTLIFY_META__",IP=()=>[],BX=()=>!1;let DP=0;function PP(e){return(t,n,r,a)=>e(n,r,Mr()||void 0,a)}const zX=()=>{const e=Mr();let t=null;return e&&(t=sz(e)[AP])?{[AP]:t}:null};function lz(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,i=e.flatJson,o=cm?ye:Te,s=!!e.translateExistCompatible;let l=en(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&l?n.locale.value:$e(e.locale)?e.locale:hm),c=o(n&&l?n.fallbackLocale.value:$e(e.fallbackLocale)||Mn(e.fallbackLocale)||St(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),f=o(oz(u.value,e)),d=o(St(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),v=o(St(e.numberFormats)?e.numberFormats:{[u.value]:{}});let h=n?n.missingWarn:en(e.missingWarn)||fm(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:en(e.fallbackWarn)||fm(e.fallbackWarn)?e.fallbackWarn:!0,p=n?n.fallbackRoot:en(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,y=on(e.missing)?e.missing:null,_=on(e.missing)?PP(e.missing):null,b=on(e.postTranslation)?e.postTranslation:null,x=n?n.warnHtmlMessage:en(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const T=n?n.modifiers:St(e.modifiers)?e.modifiers:{};let C=e.pluralRules||n&&n.pluralRules,w;w=(()=>{a&&pP(null);const ie={version:LX,locale:u.value,fallbackLocale:c.value,messages:f.value,modifiers:T,pluralRules:C,missing:_===null?void 0:_,missingWarn:h,fallbackWarn:g,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:x,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ie.datetimeFormats=d.value,ie.numberFormats=v.value,ie.__datetimeFormatters=St(w)?w.__datetimeFormatters:void 0,ie.__numberFormatters=St(w)?w.__numberFormatters:void 0;const de=SX(ie);return a&&pP(de),de})(),Wf(w,u.value,c.value);function D(){return[u.value,c.value,f.value,d.value,v.value]}const P=E({get:()=>u.value,set:ie=>{u.value=ie,w.locale=u.value}}),k=E({get:()=>c.value,set:ie=>{c.value=ie,w.fallbackLocale=c.value,Wf(w,u.value,ie)}}),L=E(()=>f.value),V=E(()=>d.value),N=E(()=>v.value);function $(){return on(b)?b:null}function z(ie){b=ie,w.postTranslation=ie}function H(){return y}function U(ie){ie!==null&&(_=PP(ie)),y=ie,w.missing=_}const Y=(ie,de,Ge,qe,rn,cn)=>{D();let Bn;try{__INTLIFY_PROD_DEVTOOLS__,a||(w.fallbackContext=n?bX():void 0),Bn=ie(w)}finally{__INTLIFY_PROD_DEVTOOLS__,a||(w.fallbackContext=void 0)}if(Ge!=="translate exists"&&Fn(Bn)&&Bn===Fy||Ge==="translate exists"&&!Bn){const[vr,zu]=de();return n&&p?qe(n):rn(vr)}else{if(cn(Bn))return Bn;throw ei(Da.UNEXPECTED_RETURN_TYPE)}};function J(...ie){return Y(de=>Reflect.apply(bP,null,[de,...ie]),()=>L1(...ie),"translate",de=>Reflect.apply(de.t,de,[...ie]),de=>de,de=>$e(de))}function ue(...ie){const[de,Ge,qe]=ie;if(qe&&!At(qe))throw ei(Da.INVALID_ARGUMENT);return J(de,Ge,ur({resolvedMessage:!0},qe||{}))}function le(...ie){return Y(de=>Reflect.apply(SP,null,[de,...ie]),()=>E1(...ie),"datetime format",de=>Reflect.apply(de.d,de,[...ie]),()=>hP,de=>$e(de))}function be(...ie){return Y(de=>Reflect.apply(wP,null,[de,...ie]),()=>R1(...ie),"number format",de=>Reflect.apply(de.n,de,[...ie]),()=>hP,de=>$e(de))}function ae(ie){return ie.map(de=>$e(de)||Fn(de)||en(de)?TP(String(de)):de)}const te={normalize:ae,interpolate:ie=>ie,type:"vnode"};function se(...ie){return Y(de=>{let Ge;const qe=de;try{qe.processor=te,Ge=Reflect.apply(bP,null,[qe,...ie])}finally{qe.processor=null}return Ge},()=>L1(...ie),"translate",de=>de[V1](...ie),de=>[TP(de)],de=>Mn(de))}function G(...ie){return Y(de=>Reflect.apply(wP,null,[de,...ie]),()=>R1(...ie),"number format",de=>de[N1](...ie),IP,de=>$e(de)||Mn(de))}function B(...ie){return Y(de=>Reflect.apply(SP,null,[de,...ie]),()=>E1(...ie),"datetime format",de=>de[O1](...ie),IP,de=>$e(de)||Mn(de))}function j(ie){C=ie,w.pluralRules=C}function M(ie,de){return Y(()=>{if(!ie)return!1;const Ge=$e(de)?de:u.value,qe=K(Ge),rn=w.messageResolver(qe,ie);return s?rn!=null:Zc(rn)||ma(rn)||$e(rn)},()=>[ie],"translate exists",Ge=>Reflect.apply(Ge.te,Ge,[ie,de]),BX,Ge=>en(Ge))}function O(ie){let de=null;const Ge=ZB(w,c.value,u.value);for(let qe=0;qe{l&&(u.value=ie,w.locale=ie,Wf(w,u.value,c.value))}),Ce(n.fallbackLocale,ie=>{l&&(c.value=ie,w.fallbackLocale=ie,Wf(w,u.value,c.value))}));const Se={id:DP,locale:P,fallbackLocale:k,get inheritLocale(){return l},set inheritLocale(ie){l=ie,ie&&n&&(u.value=n.locale.value,c.value=n.fallbackLocale.value,Wf(w,u.value,c.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:L,get modifiers(){return T},get pluralRules(){return C||{}},get isGlobal(){return a},get missingWarn(){return h},set missingWarn(ie){h=ie,w.missingWarn=h},get fallbackWarn(){return g},set fallbackWarn(ie){g=ie,w.fallbackWarn=g},get fallbackRoot(){return p},set fallbackRoot(ie){p=ie},get fallbackFormat(){return m},set fallbackFormat(ie){m=ie,w.fallbackFormat=m},get warnHtmlMessage(){return x},set warnHtmlMessage(ie){x=ie,w.warnHtmlMessage=ie},get escapeParameter(){return S},set escapeParameter(ie){S=ie,w.escapeParameter=ie},t:J,getLocaleMessage:K,setLocaleMessage:q,mergeLocaleMessage:re,getPostTranslationHandler:$,setPostTranslationHandler:z,getMissingHandler:H,setMissingHandler:U,[VX]:j};return Se.datetimeFormats=V,Se.numberFormats=N,Se.rt=ue,Se.te=M,Se.tm=X,Se.d=le,Se.n=be,Se.getDateTimeFormat=pe,Se.setDateTimeFormat=F,Se.mergeDateTimeFormat=W,Se.getNumberFormat=Q,Se.setNumberFormat=_e,Se.mergeNumberFormat=xe,Se[OX]=r,Se[V1]=se,Se[O1]=B,Se[N1]=G,Se}const HC={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function FX({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===ke?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},{})}function uz(e){return ke}const HX=Os({name:"i18n-t",props:ur({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Fn(e)||!isNaN(e)}},HC),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||vh({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=$e(e.plural)?+e.plural:e.plural);const s=FX(t,i),l=a[V1](e.keypath,s,o),u=ur({},r),c=$e(e.tag)||At(e.tag)?e.tag:uz();return ra(c,u,l)}}}),kP=HX;function GX(e){return Mn(e)&&!$e(e[0])}function cz(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const o={part:!0};let s={};e.locale&&(o.locale=e.locale),$e(e.format)?o.key=e.format:At(e.format)&&($e(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((d,v)=>n.includes(v)?ur({},d,{[v]:e.format[v]}):d,{}));const l=r(e.value,o,s);let u=[o.key];Mn(l)?u=l.map((d,v)=>{const h=a[d.type],g=h?h({[d.type]:d.value,index:v,parts:l}):[d.value];return GX(g)&&(g[0].key=`${d.type}-${v}`),g}):$e(l)&&(u=[l]);const c=ur({},i),f=$e(e.tag)||At(e.tag)?e.tag:uz();return ra(f,c,u)}}const $X=Os({name:"i18n-n",props:ur({value:{type:Number,required:!0},format:{type:[String,Object]}},HC),setup(e,t){const n=e.i18n||vh({useScope:e.scope,__useComponent:!0});return cz(e,t,az,(...r)=>n[N1](...r))}}),MP=$X,WX=Os({name:"i18n-d",props:ur({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},HC),setup(e,t){const n=e.i18n||vh({useScope:e.scope,__useComponent:!0});return cz(e,t,rz,(...r)=>n[O1](...r))}}),LP=WX;function UX(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function YX(e){const t=o=>{const{instance:s,modifiers:l,value:u}=o;if(!s||!s.$)throw ei(Da.UNEXPECTED_ERROR);const c=UX(e,s.$),f=EP(u);return[Reflect.apply(c.t,c,[...RP(f)]),c]};return{created:(o,s)=>{const[l,u]=t(s);cm&&e.global===u&&(o.__i18nWatcher=Ce(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{cm&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=EP(s);o.textContent=Reflect.apply(l.t,l,[...RP(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function EP(e){if($e(e))return{path:e};if(St(e)){if(!("path"in e))throw ei(Da.REQUIRED_VALUE,"path");return e}else throw ei(Da.INVALID_VALUE)}function RP(e){const{path:t,locale:n,args:r,choice:a,plural:i}=e,o={},s=r||{};return $e(n)&&(o.locale=n),Fn(a)&&(o.plural=a),Fn(i)&&(o.plural=i),[t,s,o]}function XX(e,t,...n){const r=St(n[0])?n[0]:{},a=!!r.useI18nComponentName;(en(r.globalInstall)?r.globalInstall:!0)&&([a?"i18n":kP.name,"I18nT"].forEach(o=>e.component(o,kP)),[MP.name,"I18nN"].forEach(o=>e.component(o,MP)),[LP.name,"I18nD"].forEach(o=>e.component(o,LP))),e.directive("t",YX(t))}const jX=Ns("global-vue-i18n");function ZX(e={},t){const n=en(e.globalInjection)?e.globalInjection:!0,r=!0,a=new Map,[i,o]=KX(e),s=Ns("");function l(f){return a.get(f)||null}function u(f,d){a.set(f,d)}function c(f){a.delete(f)}{const f={get mode(){return"composition"},get allowComposition(){return r},async install(d,...v){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,f),St(v[0])){const p=v[0];f.__composerExtend=p.__composerExtend,f.__vueI18nExtend=p.__vueI18nExtend}let h=null;n&&(h=aj(d,f.global)),XX(d,f,...v);const g=d.unmount;d.unmount=()=>{h&&h(),f.dispose(),g()}},get global(){return o},dispose(){i.stop()},__instances:a,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}}function vh(e={}){const t=Mr();if(t==null)throw ei(Da.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ei(Da.NOT_INSTALLED);const n=qX(t),r=QX(n),a=sz(t),i=JX(e,a);if(i==="global")return NX(r,e,a),r;if(i==="parent"){let l=ej(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(t);if(s==null){const l=ur({},e);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=lz(l),o.__composerExtend&&(s[B1]=o.__composerExtend(s)),nj(o,t,s),o.__setInstance(t,s)}return s}function KX(e,t,n){const r=hf();{const a=r.run(()=>lz(e));if(a==null)throw ei(Da.UNEXPECTED_ERROR);return[r,a]}}function qX(e){{const t=rt(e.isCE?jX:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ei(e.isCE?Da.NOT_INSTALLED_WITH_PROVIDE:Da.UNEXPECTED_ERROR);return t}}function JX(e,t){return By(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function QX(e){return e.mode==="composition"?e.global:e.global.__composer}function ej(e,t,n=!1){let r=null;const a=t.root;let i=tj(t,n);for(;i!=null;){const o=e;if(e.mode==="composition"&&(r=o.__getInstance(i)),r!=null||a===i)break;i=i.parent}return r}function tj(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function nj(e,t,n){wn(()=>{},t),ch(()=>{const r=n;e.__deleteInstance(t);const a=r[B1];a&&(a(),delete r[B1])},t)}const rj=["locale","fallbackLocale","availableLocales"],VP=["t","rt","d","n","tm","te"];function aj(e,t){const n=Object.create(null);return rj.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw ei(Da.UNEXPECTED_ERROR);const o=Bt(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,VP.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw ei(Da.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,VP.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}EX();gX(IX);pX(Z9);mX(ZB);if(__INTLIFY_PROD_DEVTOOLS__){const e=OC();e.__INTLIFY__=!0,aX(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Cr(e,t){let n;function r(){n=hf(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}Ce(e,a=>{a&&!n?r():a||(n==null||n.stop(),n=void 0)},{immediate:!0}),er(()=>{n==null||n.stop()})}const yt=typeof window<"u",GC=yt&&"IntersectionObserver"in window,ij=yt&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),OP=yt&&"EyeDropper"in window;function NP(e,t,n){oj(e,t),t.set(e,n)}function oj(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function sj(e,t,n){return e.set(fz(e,t),n),n}function js(e,t){return e.get(fz(e,t))}function fz(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function dz(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let a=0;aNi(e[r],t[r]))}function iu(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),dz(e,t.split("."),n))}function bn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const a=t(e,n);return typeof a>"u"?n:a}if(typeof t=="string")return iu(e,t,n);if(Array.isArray(t))return dz(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function xi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function De(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function $C(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function BP(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function WC(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const zP=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),z1=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function vz(e){return Object.keys(e)}function kl(e,t){return t.every(n=>e.hasOwnProperty(n))}function UC(e,t){const n={},r=new Set(Object.keys(e));for(const a of t)r.has(a)&&(n[a]=e[a]);return n}function F1(e,t,n){const r=Object.create(null),a=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(n!=null&&n.some(o=>o===i))?r[i]=e[i]:a[i]=e[i];return[r,a]}function vn(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function Hy(e,t){const n={};return t.forEach(r=>n[r]=e[r]),n}const hz=/^on[^a-z]/,Gy=e=>hz.test(e),lj=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],uj=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function cj(e){return e.isComposing&&uj.includes(e.key)}function zs(e){const[t,n]=F1(e,[hz]),r=vn(t,lj),[a,i]=F1(n,["class","style","id",/^data-/]);return Object.assign(a,t),Object.assign(i,r),[a,i]}function jt(e){return e==null?[]:Array.isArray(e)?e:[e]}function fj(e,t){let n=0;const r=function(){for(var a=arguments.length,i=new Array(a),o=0;oe(...i),Be(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function sn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function FP(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function HP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function GP(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function dj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const a in e)r[a]=e[a];for(const a in t){const i=e[a],o=t[a];if(BP(i)&&BP(o)){r[a]=sr(i,o,n);continue}if(n&&Array.isArray(i)&&Array.isArray(o)){r[a]=n(i,o);continue}r[a]=o}return r}function gz(e){return e.map(t=>t.type===ke?gz(t.children):t).flat()}function $l(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if($l.cache.has(e))return $l.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return $l.cache.set(e,t),t}$l.cache=new Map;function Cc(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Cc(e,n)).flat(1);if(t.suspense)return Cc(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Cc(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Cc(e,t.component.subTree).flat(1)}return[]}var lg=new WeakMap,$u=new WeakMap;class vj{constructor(t){NP(this,lg,[]),NP(this,$u,0),this.size=t}push(t){js(lg,this)[js($u,this)]=t,sj($u,this,(js($u,this)+1)%this.size)}values(){return js(lg,this).slice(js($u,this)).concat(js(lg,this).slice(0,js($u,this)))}}function hj(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function YC(e){const t=yn({}),n=E(e);return un(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),Vs(t)}function gm(e,t){return e.includes(t)}function pz(e){return e[2].toLowerCase()+e.slice(3)}const $n=()=>[Function,Array];function WP(e,t){return t="on"+Oi(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function XC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(r=>`${r}${t?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function mz(e,t,n){let r,a=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do a+=i,r=e[a];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&a=0);return r}function Wl(e,t){var r,a,i,o;const n=_v(e);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(a=n[0])==null||a.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const s=mz(n,t);s?s.focus():Wl(e,t==="next"?"first":"last")}}function ug(e){return e==null||typeof e=="string"&&e.trim()===""}function yz(){}function Kc(e,t){if(!(yt&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function $y(e){return e.some(t=>ho(t)?t.type===_n?!1:t.type!==ke||$y(t.children):!0)?e:null}function gj(e,t){if(!yt||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function pj(e,t){const n=e.clientX,r=e.clientY,a=t.getBoundingClientRect(),i=a.left,o=a.top,s=a.right,l=a.bottom;return n>=i&&n<=s&&r>=o&&r<=l}function pm(){const e=Te(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>WC(e.value)}),t}function mm(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}const _z=["top","bottom"],mj=["start","end","left","right"];function H1(e,t){let[n,r]=e.split(" ");return r||(r=gm(_z,n)?"start":gm(mj,n)?"top":"center"),{side:G1(n,t),align:G1(r,t)}}function G1(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function C_(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function T_(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function UP(e){return{side:e.align,align:e.side}}function YP(e){return gm(_z,e.side)?"y":"x"}class Ul{constructor(t){let{x:n,y:r,width:a,height:i}=t;this.x=n,this.y=r,this.width=a,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function XP(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function bz(e){return Array.isArray(e)?new Ul({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function jC(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let a,i,o,s,l;if(r.startsWith("matrix3d("))a=r.slice(9,-1).split(/, /),i=+a[0],o=+a[5],s=+a[12],l=+a[13];else if(r.startsWith("matrix("))a=r.slice(7,-1).split(/, /),i=+a[0],o=+a[3],s=+a[4],l=+a[5];else return new Ul(t);const u=n.transformOrigin,c=t.x-s-(1-i)*parseFloat(u),f=t.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),d=i?t.width/i:e.offsetWidth+1,v=o?t.height/o:e.offsetHeight+1;return new Ul({x:c,y:f,width:d,height:v})}else return new Ul(t)}function Ml(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(a=>{r.onfinish=()=>{a(r)}})),r}const wp=new WeakMap;function yj(e,t){Object.keys(t).forEach(n=>{if(Gy(n)){const r=pz(n),a=wp.get(e);if(t[n]==null)a==null||a.forEach(i=>{const[o,s]=i;o===r&&(e.removeEventListener(r,s),a.delete(i))});else if(!a||![...a].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=a||new Set;i.add([r,t[n]]),wp.has(e)||wp.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function _j(e,t){Object.keys(t).forEach(n=>{if(Gy(n)){const r=pz(n),a=wp.get(e);a==null||a.forEach(i=>{const[o,s]=i;o===r&&(e.removeEventListener(r,s),a.delete(i))})}else e.removeAttribute(n)})}const Wu=2.4,jP=.2126729,ZP=.7151522,KP=.072175,bj=.55,Sj=.58,xj=.57,wj=.62,cg=.03,qP=1.45,Cj=5e-4,Tj=1.25,Aj=1.25,JP=.078,QP=12.82051282051282,fg=.06,ek=.001;function tk(e,t){const n=(e.r/255)**Wu,r=(e.g/255)**Wu,a=(e.b/255)**Wu,i=(t.r/255)**Wu,o=(t.g/255)**Wu,s=(t.b/255)**Wu;let l=n*jP+r*ZP+a*KP,u=i*jP+o*ZP+s*KP;if(l<=cg&&(l+=(cg-l)**qP),u<=cg&&(u+=(cg-u)**qP),Math.abs(u-l)l){const f=(u**bj-l**Sj)*Tj;c=f-ek?0:f>-JP?f-f*QP*fg:f+fg}return c*100}function Ij(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const ym=.20689655172413793,Dj=e=>e>ym**3?Math.cbrt(e):e/(3*ym**2)+4/29,Pj=e=>e>ym?e**3:3*ym**2*(e-4/29);function Sz(e){const t=Dj,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function xz(e){const t=Pj,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const kj=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Mj=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Lj=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Ej=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function wz(e){const t=Array(3),n=Mj,r=kj;for(let a=0;a<3;++a)t[a]=Math.round(sn(n(r[a][0]*e[0]+r[a][1]*e[1]+r[a][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function ZC(e){let{r:t,g:n,b:r}=e;const a=[0,0,0],i=Ej,o=Lj;t=i(t/255),n=i(n/255),r=i(r/255);for(let s=0;s<3;++s)a[s]=o[s][0]*t+o[s][1]*n+o[s][2]*r;return a}function $1(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function Rj(e){return $1(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const nk=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Vj={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>rk({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>rk({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>go({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>go({h:e,s:t,v:n,a:r})};function xa(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&nk.test(e)){const{groups:t}=e.match(nk),{fn:n,values:r}=t,a=r.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return Vj[n](...a)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),Dz(t)}else if(typeof e=="object"){if(kl(e,["r","g","b"]))return e;if(kl(e,["h","s","l"]))return go(KC(e));if(kl(e,["h","s","v"]))return go(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function go(e){const{h:t,s:n,v:r,a}=e,i=s=>{const l=(s+t/60)%6;return r-r*n*Math.max(Math.min(l,4-l,1),0)},o=[i(5),i(3),i(1)].map(s=>Math.round(s*255));return{r:o[0],g:o[1],b:o[2],a}}function rk(e){return go(KC(e))}function Wy(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,r=e.b/255,a=Math.max(t,n,r),i=Math.min(t,n,r);let o=0;a!==i&&(a===t?o=60*(0+(n-r)/(a-i)):a===n?o=60*(2+(r-t)/(a-i)):a===r&&(o=60*(4+(t-n)/(a-i)))),o<0&&(o=o+360);const s=a===0?0:(a-i)/a,l=[o,s,a];return{h:l[0],s:l[1],v:l[2],a:e.a}}function Cz(e){const{h:t,s:n,v:r,a}=e,i=r-r*n/2,o=i===1||i===0?0:(r-i)/Math.min(i,1-i);return{h:t,s:o,l:i,a}}function KC(e){const{h:t,s:n,l:r,a}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a}}function Tz(e){let{r:t,g:n,b:r,a}=e;return a===void 0?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${a})`}function Az(e){return Tz(go(e))}function dg(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function Iz(e){let{r:t,g:n,b:r,a}=e;return`#${[dg(t),dg(n),dg(r),a!==void 0?dg(Math.round(a*255)):""].join("")}`}function Dz(e){e=Oj(e);let[t,n,r,a]=dj(e,2).map(i=>parseInt(i,16));return a=a===void 0?a:a/255,{r:t,g:n,b:r,a}}function Pz(e){const t=Dz(e);return Wy(t)}function kz(e){return Iz(go(e))}function Oj(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=HP(HP(e,6),8,"F")),e}function Nj(e,t){const n=Sz(ZC(e));return n[0]=n[0]+t*10,wz(xz(n))}function Bj(e,t){const n=Sz(ZC(e));return n[0]=n[0]-t*10,wz(xz(n))}function W1(e){const t=xa(e);return ZC(t)[1]}function zj(e,t){const n=W1(e),r=W1(t),a=Math.max(n,r),i=Math.min(n,r);return(a+.05)/(i+.05)}function Mz(e){const t=Math.abs(tk(xa(0),xa(e)));return Math.abs(tk(xa(16777215),xa(e)))>Math.min(t,50)?"#fff":"#000"}function ne(e,t){return n=>Object.keys(e).reduce((r,a)=>{const o=typeof e[a]=="object"&&e[a]!=null&&!Array.isArray(e[a])?e[a]:{type:e[a]};return n&&a in n?r[a]={...o,default:n[a]}:r[a]=o,t&&!r[a].source&&(r[a].source=t),r},{})}const Me=ne({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function Jt(e,t){const n=Mr();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Bi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Jt(e).type;return $l((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let Lz=0,Cp=new WeakMap;function Wn(){const e=Jt("getUid");if(Cp.has(e))return Cp.get(e);{const t=Lz++;return Cp.set(e,t),t}}Wn.reset=()=>{Lz=0,Cp=new WeakMap};function Fj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jt("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const qc=Symbol.for("vuetify:defaults");function Hj(e){return ye(e)}function qC(){const e=rt(qc);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Kt(e,t){const n=qC(),r=ye(e),a=E(()=>{if(Be(t==null?void 0:t.disabled))return n.value;const o=Be(t==null?void 0:t.scoped),s=Be(t==null?void 0:t.reset),l=Be(t==null?void 0:t.root);if(r.value==null&&!(o||s||l))return n.value;let u=sr(r.value,{prev:n.value});if(o)return u;if(s||l){const c=Number(s||1/0);for(let f=0;f<=c&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=sr(sr(u,{prev:u}),u[l])),u}return u.prev?sr(u.prev,u):u});return Lt(qc,a),a}function Gj(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[$l(t)])<"u"}function $j(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qC();const r=Jt("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const a=E(()=>{var l;return(l=n.value)==null?void 0:l[e._as??t]}),i=new Proxy(e,{get(l,u){var f,d,v,h,g,p,m;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(f=a.value)==null?void 0:f[u],c].filter(y=>y!=null):typeof u=="string"&&!Gj(r.vnode,u)?((d=a.value)==null?void 0:d[u])!==void 0?(v=a.value)==null?void 0:v[u]:((g=(h=n.value)==null?void 0:h.global)==null?void 0:g[u])!==void 0?(m=(p=n.value)==null?void 0:p.global)==null?void 0:m[u]:c:c}}),o=Te();un(()=>{if(a.value){const l=Object.entries(a.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function s(){const l=Fj(qc,r);Lt(qc,E(()=>o.value?sr((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:i,provideSubDefaults:s}}function aa(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=ne(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return UC(r,t)},e.props._as=String,e.setup=function(r,a){const i=qC();if(!i.value)return e._setup(r,a);const{props:o,provideSubDefaults:s}=$j(r,r._as??e.name,i),l=e._setup(o,a);return s(),l}}return e}function fe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?aa:Os)(t)}function Wj(e,t){return t.props=e,t}function zi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return fe()({name:n??Oi(Gn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Me()},setup(r,a){let{slots:i}=a;return()=>{var o;return ra(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function Ez(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const bv="cubic-bezier(0.4, 0, 0.2, 1)",Uj="cubic-bezier(0.0, 0, 0.2, 1)",Yj="cubic-bezier(0.4, 0, 1, 1)";function ak(e,t,n){return Object.keys(e).filter(r=>Gy(r)&&r.endsWith(t)).reduce((r,a)=>(r[a.slice(0,-t.length)]=i=>e[a](i,n(i)),r),{})}function JC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?Xj(e):QC(e))return e;e=e.parentElement}return document.scrollingElement}function _m(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(QC(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function QC(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function Xj(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function jj(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function ge(e){const t=Jt("useRender");t.render=e}function Ve(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const i=Jt("useProxiedModel"),o=ye(e[t]!==void 0?e[t]:n),s=$l(t),u=E(s!==t?()=>{var f,d,v,h;return e[t],!!(((f=i.vnode.props)!=null&&f.hasOwnProperty(t)||(d=i.vnode.props)!=null&&d.hasOwnProperty(s))&&((v=i.vnode.props)!=null&&v.hasOwnProperty(`onUpdate:${t}`)||(h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${s}`)))}:()=>{var f,d;return e[t],!!((f=i.vnode.props)!=null&&f.hasOwnProperty(t)&&((d=i.vnode.props)!=null&&d.hasOwnProperty(`onUpdate:${t}`)))});Cr(()=>!u.value,()=>{Ce(()=>e[t],f=>{o.value=f})});const c=E({get(){const f=e[t];return r(u.value?f:o.value)},set(f){const d=a(f),v=Xe(u.value?e[t]:o.value);v===d||r(v)===f||(o.value=d,i==null||i.emit(`update:${t}`,d))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:o.value}),c}const Rz={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},ik="$vuetify.",ok=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),Vz=(e,t,n)=>function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;onew Intl.NumberFormat([e.value,t.value],r).format(n)}function A_(e,t,n){const r=Ve(e,t,e[t]??n.value);return r.value=e[t]??n.value,Ce(n,a=>{e[t]==null&&(r.value=n.value)}),r}function Nz(e){return t=>{const n=A_(t,"locale",e.current),r=A_(t,"fallback",e.fallback),a=A_(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:a,t:Vz(n,r,a),n:Oz(n,r),provide:Nz({current:n,fallback:r,messages:a})}}}function Zj(e){const t=Te((e==null?void 0:e.locale)??"en"),n=Te((e==null?void 0:e.fallback)??"en"),r=ye({en:Rz,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:Vz(t,n,r),n:Oz(t,n),provide:Nz({current:t,fallback:n,messages:r})}}const Jc=Symbol.for("vuetify:locale");function Kj(e){return e.name!=null}function qj(e){const t=e!=null&&e.adapter&&Kj(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:Zj(e),n=eZ(t,e);return{...t,...n}}function nn(){const e=rt(Jc);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function Jj(e){const t=rt(Jc);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),r=tZ(n,t.rtl,e),a={...n,...r};return Lt(Jc,a),a}function Qj(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function eZ(e,t){const n=ye((t==null?void 0:t.rtl)??Qj()),r=E(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:E(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function tZ(e,t,n){const r=E(()=>n.rtl??t.value[e.current.value]??!1);return{isRtl:r,rtl:t,rtlClasses:E(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Tn(){const e=rt(Jc);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const Uy={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function nZ(e,t,n){const r=[];let a=[];const i=Bz(e),o=zz(e),s=n??Uy[t.slice(-2).toUpperCase()]??0,l=(i.getDay()-s+7)%7,u=(o.getDay()-s+7)%7;for(let c=0;c0&&r.push(a),r}function rZ(e,t,n){const r=n??Uy[t.slice(-2).toUpperCase()]??0,a=new Date(e);for(;a.getDay()!==r;)a.setDate(a.getDate()-1);return a}function aZ(e,t){const n=new Date(e),r=((Uy[t.slice(-2).toUpperCase()]??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function Bz(e){return new Date(e.getFullYear(),e.getMonth(),1)}function zz(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function iZ(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const oZ=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function Fz(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(oZ.test(e))return iZ(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const sk=new Date(2e3,0,2);function sZ(e,t){const n=t??Uy[e.slice(-2).toUpperCase()]??0;return xi(7).map(r=>{const a=new Date(sk);return a.setDate(sk.getDate()+n+r),new Intl.DateTimeFormat(e,{weekday:"narrow"}).format(a)})}function lZ(e,t,n,r){const a=Fz(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(a,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"long",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const s=a.getDate(),l=new Intl.DateTimeFormat(n,{month:"long"}).format(a);return`${s} ${l}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(a.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime12h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;case"keyboardDateTime12h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0};break;case"keyboardDateTime24h":o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1};break;default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(a)}function uZ(e,t){const n=e.toJsDate(t),r=n.getFullYear(),a=GP(String(n.getMonth()+1),2,"0"),i=GP(String(n.getDate()),2,"0");return`${r}-${a}-${i}`}function cZ(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function fZ(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function dZ(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function vZ(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function hZ(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function gZ(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function pZ(e){return e.getFullYear()}function mZ(e){return e.getMonth()}function yZ(e){return e.getDate()}function _Z(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function bZ(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function SZ(e){return e.getHours()}function xZ(e){return e.getMinutes()}function wZ(e){return new Date(e.getFullYear(),0,1)}function CZ(e){return new Date(e.getFullYear(),11,31)}function TZ(e,t){return bm(e,t[0])&&DZ(e,t[1])}function AZ(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function bm(e,t){return e.getTime()>t.getTime()}function IZ(e,t){return bm(U1(e),U1(t))}function DZ(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}function hh(){const e=rt(Hz);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=nn();return Gz(e,t)}function HZ(e,t){const n=e.toJsDate(t);let r=n.getFullYear(),a=new Date(r,0,1);if(n=s&&(r=r+1,a=s)}const i=Math.abs(n.getTime()-a.getTime()),o=Math.ceil(i/(1e3*60*60*24));return Math.floor(o/7)+1}const Yy=["sm","md","lg","xl","xxl"],Y1=Symbol.for("vuetify:display"),ck={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},GZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ck;return sr(ck,e)};function fk(e){return yt&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function dk(e){return yt&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function vk(e){const t=yt&&!e?window.navigator.userAgent:"ssr";function n(h){return!!t.match(h)}const r=n(/android/i),a=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),s=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),f=n(/win/i),d=n(/mac/i),v=n(/linux/i);return{android:r,ios:a,cordova:i,electron:o,chrome:s,edge:l,firefox:u,opera:c,win:f,mac:d,linux:v,touch:ij,ssr:t==="ssr"}}function $Z(e,t){const{thresholds:n,mobileBreakpoint:r}=GZ(e),a=Te(dk(t)),i=Te(vk(t)),o=yn({}),s=Te(fk(t));function l(){a.value=dk(),s.value=fk()}function u(){l(),i.value=vk()}return un(()=>{const c=s.value=n.xxl,p=c?"xs":f?"sm":d?"md":v?"lg":h?"xl":"xxl",m=typeof r=="number"?r:n[r],y=s.value0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();const n=rt(Y1);if(!n)throw new Error("Could not find Vuetify display injection");const r=E(()=>{if(e.mobile!=null)return e.mobile;if(!e.mobileBreakpoint)return n.mobile.value;const i=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:a,mobile:r}}const $z=Symbol.for("vuetify:goto");function Wz(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5}}}function WZ(e){return eT(e)??(document.scrollingElement||document.body)}function eT(e){return typeof e=="string"?document.querySelector(e):WC(e)}function I_(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=eT(e),a=0;for(;r;)a+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return a}function UZ(e,t){return{rtl:t.isRtl,options:sr(Wz(),e)}}async function hk(e,t,n,r){const a=n?"scrollLeft":"scrollTop",i=sr((r==null?void 0:r.options)??Wz(),t),o=r==null?void 0:r.rtl.value,s=(typeof e=="number"?e:eT(e))??0,l=i.container==="parent"&&s instanceof HTMLElement?s.parentElement:WZ(i.container),u=typeof i.easing=="function"?i.easing:i.patterns[i.easing];if(!u)throw new TypeError(`Easing function "${i.easing}" not found.`);let c;if(typeof s=="number")c=I_(s,n,o);else if(c=I_(s,n,o)-I_(l,n,o),i.layout){const h=window.getComputedStyle(s).getPropertyValue("--v-layout-top");h&&(c-=parseInt(h,10))}c+=i.offset,c=XZ(l,c,!!o,!!n);const f=l[a]??0;if(c===f)return Promise.resolve(c);const d=performance.now();return new Promise(v=>requestAnimationFrame(function h(g){const m=(g-d)/i.duration,y=Math.floor(f+(c-f)*u(sn(m,0,1)));if(l[a]=y,m>=1&&Math.abs(y-l[a])<10)return v(c);if(m>2)return v(l[a]);requestAnimationFrame(h)}))}function YZ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=rt($z),{isRtl:n}=Tn();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:E(()=>t.rtl.value||n.value)};async function a(i,o){return hk(i,sr(e,o),!1,r)}return a.horizontal=async(i,o)=>hk(i,sr(e,o),!0,r),a}function XZ(e,t,n,r){const{scrollWidth:a,scrollHeight:i}=e,[o,s]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let l,u;return r?n?(l=-(a-o),u=0):(l=0,u=a-o):(l=0,u=i+-s),Math.max(Math.min(t,u),l)}const jZ={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},ZZ={component:e=>ra(nT,{...e,class:"mdi"})},Ye=[String,Function,Object,Array],X1=Symbol.for("vuetify:icons"),Xy=ne({icon:{type:Ye},tag:{type:String,required:!0}},"icon"),j1=fe()({name:"VComponentIcon",props:Xy(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return I(e.tag,null,{default:()=>{var a;return[e.icon?I(r,null,null):(a=n.default)==null?void 0:a.call(n)]}})}}}),tT=aa({name:"VSvgIcon",inheritAttrs:!1,props:Xy(),setup(e,t){let{attrs:n}=t;return()=>I(e.tag,ve(n,{style:null}),{default:()=>[I("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?I("path",{d:r[0],"fill-opacity":r[1]},null):I("path",{d:r},null)):I("path",{d:e.icon},null)])]})}}),KZ=aa({name:"VLigatureIcon",props:Xy(),setup(e){return()=>I(e.tag,null,{default:()=>[e.icon]})}}),nT=aa({name:"VClassIcon",props:Xy(),setup(e){return()=>I(e.tag,{class:e.icon},null)}});function qZ(){return{svg:{component:tT},class:{component:nT}}}function JZ(e){const t=qZ(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=ZZ),sr({defaultSet:n,sets:t,aliases:{...jZ,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}const QZ=e=>{const t=rt(X1);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:E(()=>{var l;const r=Be(e);if(!r)return{component:j1};let a=r;if(typeof a=="string"&&(a=a.trim(),a.startsWith("$")&&(a=(l=t.aliases)==null?void 0:l[a.slice(1)])),Array.isArray(a))return{component:tT,icon:a};if(typeof a!="string")return{component:j1,icon:a};const i=Object.keys(t.sets).find(u=>typeof a=="string"&&a.startsWith(`${u}:`)),o=i?a.slice(i.length+1):a;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},Sv=Symbol.for("vuetify:theme"),gt=ne({theme:String},"theme");function gk(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function eK(){var r,a;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gk();const t=gk();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const s=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(a=t.themes)==null?void 0:a.light;n[i]=sr(s,o)}return sr(t,{...e,themes:n})}function tK(e){const t=eK(e),n=ye(t.defaultTheme),r=ye(t.themes),a=E(()=>{const c={};for(const[f,d]of Object.entries(r.value)){const v=c[f]={...d,colors:{...d.colors}};if(t.variations)for(const h of t.variations.colors){const g=v.colors[h];if(g)for(const p of["lighten","darken"]){const m=p==="lighten"?Nj:Bj;for(const y of xi(t.variations[p],1))v.colors[`${h}-${p}-${y}`]=Iz(m(xa(g),y))}}for(const h of Object.keys(v.colors)){if(/^on-[a-z]/.test(h)||v.colors[`on-${h}`])continue;const g=`on-${h}`,p=xa(v.colors[h]);v.colors[g]=Mz(p)}}return c}),i=E(()=>a.value[n.value]),o=E(()=>{var h;const c=[];(h=i.value)!=null&&h.dark&&Zs(c,":root",["color-scheme: dark"]),Zs(c,":root",pk(i.value));for(const[g,p]of Object.entries(a.value))Zs(c,`.v-theme--${g}`,[`color-scheme: ${p.dark?"dark":"normal"}`,...pk(p)]);const f=[],d=[],v=new Set(Object.values(a.value).flatMap(g=>Object.keys(g.colors)));for(const g of v)/^on-[a-z]/.test(g)?Zs(d,`.${g}`,[`color: rgb(var(--v-theme-${g})) !important`]):(Zs(f,`.bg-${g}`,[`--v-theme-overlay-multiplier: var(--v-theme-${g}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${g})) !important`,`color: rgb(var(--v-theme-on-${g})) !important`]),Zs(d,`.text-${g}`,[`color: rgb(var(--v-theme-${g})) !important`]),Zs(d,`.border-${g}`,[`--v-border-color: var(--v-theme-${g})`]));return c.push(...f,...d),c.map((g,p)=>p===0?g:` ${g}`).join("")});function s(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function l(c){if(t.isDisabled)return;const f=c._context.provides.usehead;if(f)if(f.push){const d=f.push(s);yt&&Ce(o,()=>{d.patch(s)})}else yt?(f.addHeadObjs(E(s)),un(()=>f.updateDOM())):f.addHeadObjs(s());else{let v=function(){if(typeof document<"u"&&!d){const h=document.createElement("style");h.type="text/css",h.id="vuetify-theme-stylesheet",t.cspNonce&&h.setAttribute("nonce",t.cspNonce),d=h,document.head.appendChild(d)}d&&(d.innerHTML=o.value)},d=yt?document.getElementById("vuetify-theme-stylesheet"):null;yt?Ce(o,v,{immediate:!0}):v()}}const u=E(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:t.isDisabled,name:n,themes:r,current:i,computedThemes:a,themeClasses:u,styles:o,global:{name:n,current:i}}}function Ct(e){Jt("provideTheme");const t=rt(Sv,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=E(()=>e.theme??t.name.value),r=E(()=>t.themes.value[n.value]),a=E(()=>t.isDisabled?void 0:`v-theme--${n.value}`),i={...t,name:n,current:r,themeClasses:a};return Lt(Sv,i),i}function rT(){Jt("useTheme");const e=rt(Sv,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function Zs(e,t,n){e.push(`${t} { `,...n.map(r=>` ${r}; `),`} `)}function pk(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[a,i]of Object.entries(e.colors)){const o=xa(i);r.push(`--v-theme-${a}: ${o.r},${o.g},${o.b}`),a.startsWith("on-")||r.push(`--v-theme-${a}-overlay-multiplier: ${W1(i)>.18?t:n}`)}for(const[a,i]of Object.entries(e.variables)){const o=typeof i=="string"&&i.startsWith("#")?xa(i):void 0,s=o?`${o.r}, ${o.g}, ${o.b}`:void 0;r.push(`--v-${a}: ${s??i}`)}return r}function ti(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=pm(),r=ye();if(yt){const a=new ResizeObserver(i=>{e==null||e(i,a),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});Cn(()=>{a.disconnect()}),Ce(()=>n.el,(i,o)=>{o&&(a.unobserve(o),r.value=void 0),i&&a.observe(i)},{flush:"post"})}return{resizeRef:n,contentRect:sh(r)}}const xv=Symbol.for("vuetify:layout"),Uz=Symbol.for("vuetify:layout-item"),mk=1e3,Yz=ne({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),xu=ne({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Xz(){const e=rt(xv);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function wu(e){const t=rt(xv);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Wn()}`,r=Jt("useLayoutItem");Lt(Uz,{id:n});const a=Te(!1);xC(()=>a.value=!0),kN(()=>a.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=t.register(r,{...e,active:E(()=>a.value?!1:e.active.value),id:n});return Cn(()=>t.unregister(n)),{layoutItemStyles:i,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const nK=(e,t,n,r)=>{let a={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...a}}];for(const o of e){const s=t.get(o),l=n.get(o),u=r.get(o);if(!s||!l||!u)continue;const c={...a,[s.value]:parseInt(a[s.value],10)+(u.value?parseInt(l.value,10):0)};i.push({id:o,layer:c}),a=c}return i};function jz(e){const t=rt(xv,null),n=E(()=>t?t.rootZIndex.value-100:mk),r=ye([]),a=yn(new Map),i=yn(new Map),o=yn(new Map),s=yn(new Map),l=yn(new Map),{resizeRef:u,contentRect:c}=ti(),f=E(()=>{const S=new Map,T=e.overlaps??[];for(const C of T.filter(w=>w.includes(":"))){const[w,A]=C.split(":");if(!r.value.includes(w)||!r.value.includes(A))continue;const D=a.get(w),P=a.get(A),k=i.get(w),L=i.get(A);!D||!P||!k||!L||(S.set(A,{position:D.value,amount:parseInt(k.value,10)}),S.set(w,{position:P.value,amount:-parseInt(L.value,10)}))}return S}),d=E(()=>{const S=[...new Set([...o.values()].map(C=>C.value))].sort((C,w)=>C-w),T=[];for(const C of S){const w=r.value.filter(A=>{var D;return((D=o.get(A))==null?void 0:D.value)===C});T.push(...w)}return nK(T,a,i,s)}),v=E(()=>!Array.from(l.values()).some(S=>S.value)),h=E(()=>d.value[d.value.length-1].layer),g=E(()=>({"--v-layout-left":De(h.value.left),"--v-layout-right":De(h.value.right),"--v-layout-top":De(h.value.top),"--v-layout-bottom":De(h.value.bottom),...v.value?void 0:{transition:"none"}})),p=E(()=>d.value.slice(1).map((S,T)=>{let{id:C}=S;const{layer:w}=d.value[T],A=i.get(C),D=a.get(C);return{id:C,...w,size:Number(A.value),position:D.value}})),m=S=>p.value.find(T=>T.id===S),y=Jt("createLayout"),_=Te(!1);wn(()=>{_.value=!0}),Lt(xv,{register:(S,T)=>{let{id:C,order:w,position:A,layoutSize:D,elementSize:P,active:k,disableTransitions:L,absolute:V}=T;o.set(C,w),a.set(C,A),i.set(C,D),s.set(C,k),L&&l.set(C,L);const $=Cc(Uz,y==null?void 0:y.vnode).indexOf(S);$>-1?r.value.splice($,0,C):r.value.push(C);const z=E(()=>p.value.findIndex(J=>J.id===C)),H=E(()=>n.value+d.value.length*2-z.value*2),U=E(()=>{const J=A.value==="left"||A.value==="right",ue=A.value==="right",le=A.value==="bottom",be=P.value??D.value,ae=be===0?"%":"px",Z={[A.value]:0,zIndex:H.value,transform:`translate${J?"X":"Y"}(${(k.value?0:-(be===0?100:be))*(ue||le?-1:1)}${ae})`,position:V.value||n.value!==mk?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!_.value)return Z;const te=p.value[z.value];if(!te)throw new Error(`[Vuetify] Could not find layout item "${C}"`);const se=f.value.get(C);return se&&(te[se.position]+=se.amount),{...Z,height:J?`calc(100% - ${te.top}px - ${te.bottom}px)`:P.value?`${P.value}px`:void 0,left:ue?void 0:`${te.left}px`,right:ue?`${te.right}px`:void 0,top:A.value!=="bottom"?`${te.top}px`:void 0,bottom:A.value!=="top"?`${te.bottom}px`:void 0,width:J?P.value?`${P.value}px`:void 0:`calc(100% - ${te.left}px - ${te.right}px)`}}),Y=E(()=>({zIndex:H.value-1}));return{layoutItemStyles:U,layoutItemScrimStyles:Y,zIndex:H}},unregister:S=>{o.delete(S),a.delete(S),i.delete(S),s.delete(S),l.delete(S),r.value=r.value.filter(T=>T!==S)},mainRect:h,mainStyles:g,getLayoutItem:m,items:p,layoutRect:c,rootZIndex:n});const b=E(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),x=E(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:b,layoutStyles:x,getLayoutItem:m,items:p,layoutRect:c,layoutRef:u}}function Zz(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=sr(t,n),{aliases:a={},components:i={},directives:o={}}=r,s=Hj(r.defaults),l=$Z(r.display,r.ssr),u=tK(r.theme),c=JZ(r.icons),f=qj(r.locale),d=FZ(r.date,f),v=UZ(r.goTo,f);return{install:g=>{for(const p in o)g.directive(p,o[p]);for(const p in i)g.component(p,i[p]);for(const p in a)g.component(p,aa({...a[p],name:p,aliasName:a[p].name}));if(u.install(g),g.provide(qc,s),g.provide(Y1,l),g.provide(Sv,u),g.provide(X1,c),g.provide(Jc,f),g.provide(Hz,d.options),g.provide(uk,d.instance),g.provide($z,v),yt&&r.ssr)if(g.$nuxt)g.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:p}=g;g.mount=function(){const m=p(...arguments);return ht(()=>l.update()),g.mount=p,m}}Wn.reset(),g.mixin({computed:{$vuetify(){return yn({defaults:Uu.call(this,qc),display:Uu.call(this,Y1),theme:Uu.call(this,Sv),icons:Uu.call(this,X1),locale:Uu.call(this,Jc),date:Uu.call(this,uk)})}}})},defaults:s,display:l,theme:u,icons:c,locale:f,date:d,goTo:v}}const rK="3.7.4";Zz.version=rK;function Uu(e){var r,a;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((a=t.vnode.appContext)==null?void 0:a.provides);if(n&&e in n)return n[e]}const aT=qY("fhem",()=>{const e=vh(),t=rT(),n=Wr(),r=yn({settings:{protocol:window.location.protocol.replace(":",""),server:window.location.hostname,port:window.location.port,path:window.location.pathname.replace("/","").split("/")[0],xhr:!1,lang:e.locale.value,dark:!1,loglevel:1},config:{header:{},navigation:[],panels:[],templates:[],content:{},colors:{}},header:{time:new Date,timeFormat:{hour:"2-digit",minute:"2-digit"},dateFormat:{weekday:"long",year:"numeric",month:"long",day:"numeric"},showTime:!1,showDate:!1,showTitle:!0,hideNavigation:!1,imageUrl:null,imageGradient:null,showDarkMode:!1,showReloadPage:!1,showUpdate:!1,showSettings:!1,commands:[],darkModeOverFhem:null,defaultRoute:null},fhemDevice:null,panelView:[],panelList:[],navigation:[],threads:[],distTemplates:["blind","chart","contact","dimmer","light","lightscene","motiondetector","proplanta","smokedetector","sonosplayer","switch","temperatur","thermostat"],noConfig:!1,isLoaded:!1,isReady:!1,display:n.name,viewCols:{xxl:4,xl:3,lg:3,md:2,sm:2,xs:1},message:!1,currentView:null,settingsTab:null,settingsItem:null,version:null,updateAvailable:!1,updateProgress:!1,helpURL:"https://github.com/jemu75/fhemApp/tree/master?tab=readme-ov-file#"}),a={csrf:null,conn:null,xhrOffset:0,xhrBuffer:"",evtBuffer:[],panelMap:[],timeOffset:0};function i(G,B,j,M){let O={lang:window.navigator.language||"en-EN",format:{hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3}},X={ts:new Date().toLocaleString(O.lang,O.format),text:B,details:r.settings.loglevel<7?"":j||""};M&&!r.message&&(r.message={type:G===2?"error":G===3?"warning":"info",title:"_app.messages."+M+".title",text:"_app.messages."+M+".text"}),G<=r.settings.loglevel&&(G===2?console.error(X.ts,X.text,X.details):G===3?console.warn(X.ts,X.text,X.details):console.info(X.ts,X.text,X.details))}function o(){setInterval(()=>{r.header.time=new Date(new Date().getTime()+a.timeOffset)},1e3)}async function s(){let G=new Headers;G.append("pragma","no-cache"),G.append("cache-control","no-cache");let j=await fetch("CHANGELOG.md",{method:"GET",headers:G}).then(M=>M.text());r.version=j.split(` -`)[0].split(" ")[1].trim()}function l(G){return G?r.threads.splice(r.threads.indexOf(G),1):r.threads.push((r.threads.slice(-1)[0]||0)+1),r.threads.slice(-1)[0]}function u(G){window.open(r.helpURL+G,"_blank")}function c(G){let B;G!==t.global.name.value&&(t.global.name.value=t.global.name.value==="dark"?"light":"dark"),r.config.header.imageGradient||(B=t.global.current.value.colors.primary,r.header.imageGradient="to top ,"+_(B,.6)+", "+_(B,.6))}function f(){let G=window.matchMedia("(prefers-color-scheme: dark");c(G.matches?"dark":"light"),G.addEventListener("change",B=>{r.settings.dark||c(B.matches?"dark":"light")})}function d(G){let B={connChanged:!1,routeChanged:!1,configChanged:!1,langChanged:!1,darkChanged:!1};if(G.query)for(const j of Object.keys(r.settings))G.query[j]&&G.query[j]!==r.settings[j]&&(r.settings[j]=G.query[j],["protocol","server","port","path"].indexOf(j)!==-1&&(B.connChanged=!0),j==="lang"&&(B.langChanged=!0),j==="dark"&&(B.darkChanged=!0));return G.params&&(G.params.config&&G.params.config!==r.fhemDevice&&(r.fhemDevice=G.params.config,B.configChanged=!0),G.params.view&&G.params.view!==r.currentView&&(r.currentView=G.params.view,B.routeChanged=!0),G.name==="settings"&&(r.settingsTab=G.params.tab||"general",r.settingsItem=G.params.item)),i(4,"URL processed.",G),B}function v(G){let B=r.settings,j=B.protocol+"://"+B.server+":"+B.port+(B.path?"/"+B.path:"");return j+=G||"",j}async function h(G,B){let j="?XHR=1",M={method:"POST"},O=[],X;return G!=="token"&&a.csrf&&(j+="&fwcsrf="+a.csrf),B&&(M.body="cmd="+B),/^set.*/.test(B)&&(O=B.split(" "),O.length>2&&(a.evtBuffer.push({reading:O.slice(1,3).join("-"),value:O.slice(-1)}),A(!0))),i(4,"Request send to FHEM.",{url:v(j),options:M}),await fetch(v(j),M).then(K=>(G==="token"&&(X={token:K.headers.get("x-fhem-csrftoken")}),G==="json"&&(X=K.json()),G==="text"&&(X=K.text()),X)).catch(K=>(i(2,"Connection to FHEM failed.",K,"request"),!1))}async function g(){let G=await h("token",null);return G?(a.csrf=G.token,!0):!1}async function p(){let G=await h("text","{ localtime() }");return G?(a.timeOffset=new Date(G)-new Date,!0):!1}function m(G,B){try{const j=JSON.parse(G);if(j&&typeof j=="object")return B?{result:j,error:!1}:j}catch(j){return B||i(2,"JSON parsing failed.",{input:G,error:j.message},"jsonParse"),B?{result:null,error:j.message}:!1}return i(3,"Unhandled state during JSON parsing.",null,"jsonParse"),!1}function y(G){try{const B=atob(G);if(B&&typeof B=="string")return new TextDecoder().decode(Uint8Array.from(B,j=>j.codePointAt(0)))}catch{return i(2,"Base64 decode failed.",G,"base64"),!1}return i(3,"Unhandled state during Base64 Decoding.",null,"base64"),!1}function _(G,B){let j;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(G))return j=G.substring(1).split(""),j.length===3&&(j=[j[0],j[0],j[1],j[1],j[2],j[2]]),j="0x"+j.join(""),"rgba("+[j>>16&255,j>>8&255,j&255].join(",")+","+B+")"}async function b(G){let B=new Headers;B.append("pragma","no-cache"),B.append("cache-control","no-cache");let M=await fetch(G,{method:"GET",headers:B}).then(O=>O.json()).catch(O=>i(2,"Loading JSON-File "+G+" failed.",{file:G,err:O}));return M&&i(4,"JSON-File "+G+" was successful loaded.",{file:G,result:M}),await M}async function x(){let G=await h("text","get "+r.fhemDevice+" config"),B,j;if(RegExp("Please define "+r.fhemDevice+" first").test(G))return i(2,"Wrong FHEM Config-Device in URL.",{fhemResult:G},"wrongDevice"),!1;if(B=y(G),j=typeof B=="string"?m(B):!1,r.noConfig=!1,!j)return i(2,"Loading the Configuration of FHEM failed.",G,"config"),!1;j.error&&(j.error==="No config found!"&&(r.noConfig=!0),i(3,j.error));for(const M of Object.keys(r.config))j[M]&&j[M]!==r.config[M]&&(r.config[M].length>0&&r.config[M].splice(0),Object.assign(r.config[M],j[M]));for(const[M,O]of Object.entries(r.config.content))e.messages.value[M]||(e.messages.value[M]={}),Object.assign(e.messages.value[M],O);return r.config.colors.light&&Object.assign(t.themes.value.light.colors,r.config.colors.light),r.config.colors.dark&&Object.assign(t.themes.value.dark.colors,r.config.colors.dark),Object.assign(r.header,JSON.parse(JSON.stringify(r.config.header))),r.config.header.defaultRoute&&!r.currentView&&(r.currentView=r.config.header.defaultRoute),c(t.global.name.value),r.noConfig||(i(4,"Config loaded.",j),r.isLoaded=!0),!0}async function S(){let G=[],B,j=l();for(const M of r.config.panels)M.template&&r.config.templates.map(O=>O.name).indexOf(M.template)===-1&&r.distTemplates.indexOf(M.template)!==-1&&G.indexOf(M.template)===-1&&G.push(M.template);for(const M of G)B=await b("./templates/"+M+".json"),B&&(B.dist=!0,r.config.templates.push(B));return l(j),!0}function T(){l(),r.updateProgress=!0,h("text","set "+r.fhemDevice+" update")}function C(G,B){G==="update"&&B==="1"&&(r.updateAvailable=!0),G==="update"&&B==="0"&&r.updateProgress&&location.reload(),G==="darkMode"&&c(ue([[r.header.darkModeOverFhem.split(":")[1],B,"true"].join(":")],["dark"],[!1]).dark?"dark":"light")}function w(G,B,j){let M;B.length>1?w(G[B[0]],B.slice(1),j):(M=G[B].split(":"),M[0]=/:/.test(j)?j.replace(/:/g,":"):j,G[B]=M.join(":"))}function A(G){let B,j=a.evtBuffer.length;if(!(!r.isReady||j===0)){for(const M of a.evtBuffer)if(B=a.panelMap.map(O=>O.reading).indexOf(M.reading),B!==-1){if(a.panelMap[B].items)for(const O of a.panelMap[B].items)w(r.panelList,O,M.value);else C(a.panelMap[B].task,M.value);G||i(6,"Data from FHEM handled.",M)}else G||i(8,"Data from FHEM received.",M);a.evtBuffer.splice(0,j)}}function D(G){let B=[],j;r.settings.xhr?(a.xhrBuffer+=G.substr(a.xhrOffset,G.length-a.xhrOffset),a.xhrBuffer.slice(-2).match("]")&&(B=a.xhrBuffer.split(` +`)[0].split(" ")[1].trim()}function l(G){return G?r.threads.splice(r.threads.indexOf(G),1):r.threads.push((r.threads.slice(-1)[0]||0)+1),r.threads.slice(-1)[0]}function u(G){window.open(r.helpURL+G,"_blank")}function c(G){let B;G!==t.global.name.value&&(t.global.name.value=t.global.name.value==="dark"?"light":"dark"),r.config.header.imageGradient||(B=t.global.current.value.colors.primary,r.header.imageGradient="to top ,"+_(B,.6)+", "+_(B,.6))}function f(){let G=window.matchMedia("(prefers-color-scheme: dark");c(G.matches?"dark":"light"),G.addEventListener("change",B=>{r.settings.dark||c(B.matches?"dark":"light")})}function d(G){let B={connChanged:!1,routeChanged:!1,configChanged:!1,langChanged:!1,darkChanged:!1};if(G.query)for(const j of Object.keys(r.settings))G.query[j]&&G.query[j]!==r.settings[j]&&(r.settings[j]=G.query[j],["protocol","server","port","path"].indexOf(j)!==-1&&(B.connChanged=!0),j==="lang"&&(B.langChanged=!0),j==="dark"&&(B.darkChanged=!0));return G.params&&(G.params.config&&G.params.config!==r.fhemDevice&&(r.fhemDevice=G.params.config,B.configChanged=!0),G.params.view&&G.params.view!==r.currentView&&(r.currentView=G.params.view,B.routeChanged=!0),G.name==="settings"&&(r.settingsTab=G.params.tab||"general",r.settingsItem=G.params.item)),i(4,"URL processed.",G),B}function v(G){let B=r.settings,j=B.protocol+"://"+B.server+":"+B.port+(B.path?"/"+B.path:"");return j+=G||"",j}async function h(G,B){let j="?XHR=1",M={method:"POST"},O=[],X;return G!=="token"&&a.csrf&&(j+="&fwcsrf="+a.csrf),B&&(M.body="cmd="+B),/^set.*/.test(B)&&(O=B.split(" "),O.length>2&&(a.evtBuffer.push({reading:O.slice(1,3).join("-"),value:O.slice(-1)}),A(!0))),i(4,"Request send to FHEM.",{url:v(j),options:M}),await fetch(v(j),M).then(K=>(G==="token"&&(X={token:K.headers.get("x-fhem-csrftoken")}),G==="json"&&(X=K.json()),G==="text"&&(X=K.text()),X)).catch(K=>(i(2,"Connection to FHEM failed.",K,"request"),!1))}async function g(){let G=await h("token",null);return G?(a.csrf=G.token,!0):!1}async function p(){let G=await h("text","{ localtime() }");return G?(a.timeOffset=new Date(G)-new Date,!0):!1}function m(G,B){try{const j=JSON.parse(G);if(j&&typeof j=="object")return B?{result:j,error:!1}:j}catch(j){return B||i(2,"JSON parsing failed.",{input:G,error:j.message},"jsonParse"),B?{result:null,error:j.message}:!1}return i(3,"Unhandled state during JSON parsing.",null,"jsonParse"),!1}function y(G){try{const B=atob(G);if(B&&typeof B=="string")return new TextDecoder().decode(Uint8Array.from(B,j=>j.codePointAt(0)))}catch{return i(2,"Base64 decode failed.",G,"base64"),!1}return i(3,"Unhandled state during Base64 Decoding.",null,"base64"),!1}function _(G,B){let j;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(G))return j=G.substring(1).split(""),j.length===3&&(j=[j[0],j[0],j[1],j[1],j[2],j[2]]),j="0x"+j.join(""),"rgba("+[j>>16&255,j>>8&255,j&255].join(",")+","+B+")"}async function b(G){let B=new Headers;B.append("pragma","no-cache"),B.append("cache-control","no-cache");let M=await fetch(G,{method:"GET",headers:B}).then(O=>O.json()).catch(O=>i(2,"Loading JSON-File "+G+" failed.",{file:G,err:O}));return M&&i(4,"JSON-File "+G+" was successful loaded.",{file:G,result:M}),await M}async function x(){let G=await h("text","get "+r.fhemDevice+" config"),B,j;if(RegExp("Please define "+r.fhemDevice+" first").test(G))return i(2,"Wrong FHEM Config-Device in URL.",{fhemResult:G},"wrongDevice"),!1;if(B=y(G),j=typeof B=="string"?m(B):!1,r.noConfig=!1,!j)return i(2,"Loading the Configuration of FHEM failed.",G,"config"),!1;j.error&&(j.error==="No config found!"&&(r.noConfig=!0),i(3,j.error));for(const M of Object.keys(r.config))j[M]&&j[M]!==r.config[M]&&(r.config[M].length>0&&r.config[M].splice(0),Object.assign(r.config[M],j[M]));for(const[M,O]of Object.entries(r.config.content))e.messages.value[M]||(e.messages.value[M]={}),Object.assign(e.messages.value[M],O);return r.config.colors.light&&Object.assign(t.themes.value.light.colors,r.config.colors.light),r.config.colors.dark&&Object.assign(t.themes.value.dark.colors,r.config.colors.dark),Object.assign(r.header,JSON.parse(JSON.stringify(r.config.header))),r.config.header.defaultRoute&&!r.currentView&&(r.currentView=r.config.header.defaultRoute),c(t.global.name.value),r.noConfig||(i(4,"Config loaded.",j),r.isLoaded=!0),!0}async function S(){let G=[],B,j=l();for(const M of r.config.panels)M.template&&r.config.templates.map(O=>O.name).indexOf(M.template)===-1&&r.distTemplates.indexOf(M.template)!==-1&&G.indexOf(M.template)===-1&&G.push(M.template);for(const M of G)B=await b("./templates/"+M+".json"),B&&(B.dist=!0,r.config.templates.push(B));return l(j),!0}function T(){l(),r.updateProgress=!0,h("text","set "+r.fhemDevice+" update")}function C(G,B){G==="update"&&B==="1"&&(r.updateAvailable=!0),G==="update"&&B==="0"&&r.updateProgress&&location.reload(),G==="darkMode"&&c(ue([[r.header.darkModeOverFhem.split(":")[1],B,"true"].join(":")],["dark"],[!1]).dark?"dark":"light")}function w(G,B,j){let M;B.length>1?w(G[B[0]],B.slice(1),j):(M=G[B].split(":"),M[0]=/:/.test(j)?j.replace(/:/g,":"):j,G[B]=M.join(":"))}function A(G){let B,j=a.evtBuffer.length;if(!(!r.isReady||j===0)){for(const M of a.evtBuffer)if(B=a.panelMap.map(O=>O.reading).indexOf(M.reading),B!==-1){if(a.panelMap[B].items)for(const O of a.panelMap[B].items)w(r.panelList,O,M.value);a.panelMap[B].task&&C(a.panelMap[B].task,M.value),G||i(6,"Data from FHEM handled.",M)}else G||i(8,"Data from FHEM received.",M);a.evtBuffer.splice(0,j)}}function D(G){let B=[],j;r.settings.xhr?(a.xhrBuffer+=G.substr(a.xhrOffset,G.length-a.xhrOffset),a.xhrBuffer.slice(-2).match("]")&&(B=a.xhrBuffer.split(` `),a.xhrBuffer=""),a.xhrOffset=G.length):B=G.data.split(` -`);for(const M of B)M.length>0&&(j=m(M),/-/.test(j[0])&&a.evtBuffer.push({reading:j[0],value:j[1]}));A()}function P(){let G=v("?inform=type=status;filter=.*;fmt=JSON&XHR=1");return a.evtBuffer=[],!r.settings.xhr&&typeof WebSocket=="function"?(a.conn=new WebSocket(G.replace(/^http/i,"ws")),a.conn.onopen=()=>{i(4,"Websocket Connection opened.")},a.conn.onmessage=B=>D(B),a.conn.onerror=()=>k(0),a.conn.onclose=()=>k(0)):(a.conn=new XMLHttpRequest,a.conn.open("GET",G,!0),a.conn.onloadstart=()=>{r.settings.xhr||(r.settings.xhr=!0,i(3,"Websocket is not supported by the browser. Fallback to longpoll connection.",null,"websocket")),i(4,"Longpoll Connection opened.")},a.conn.onerror=()=>k(0),a.conn.onloadend=()=>k(0),a.conn.onreadystatechange=()=>{a.conn.status===200&&a.conn.readyState===3&&D(a.conn.responseText)},a.conn.send()),!0}function k(G){let B;G<3e3&&(r.message={}),setTimeout(async()=>{B=await te(!0),B||(G<3e3?G+=500:(r.message=!1,i(3,"Connection to FHEM was interrupted. Try to reconnect in 3 seconds.",null,"reconnect")),k(G))},G)}function L(G,B){let j=B.trim().split("-"),M=G.map(O=>O.key).indexOf(j[0]);return M!==-1?j[0]=G[M].name:j.unshift(G[0].name),j.join("-")}function V(G,B,j){let M,O,X;if(B)for(const[K,q]of Object.entries(B))typeof B[K]=="object"?V(G,B[K],[...j,K]):typeof q=="string"&&(M=q.replace(/\\:/g,":"),!/^::/.test(M)&&/.*:.*:.*/.test(M)&&(O=L(G,M.split(":")[0]),X=a.panelMap.map(re=>re.reading).indexOf(O),X===-1?a.panelMap.push({reading:O,items:[[...j,K]]}):a.panelMap[X].items.push([...j,K]),/%d\(.*{.*"diff".*/.test(M)&&setInterval(()=>{let re=z(r.panelList,j);re[0]=re[0]+" ",re[0]=re[0].substr(0,re[0].length-1)},1e3)))}function N(G){let B=[],j;if(!Array.isArray(G)||Array.isArray(G)&&G.length===0)return!1;for(const M of G)j=M.split(":"),B.push({key:j[0],name:j[1]||j[0]});return B}function $(){let G,B,j=JSON.parse(JSON.stringify(r.config.panels)),M=JSON.parse(JSON.stringify(r.config.templates)),O,X;r.config.panels.length===0&&i(3,"No Panels defined.",null,"noPanels"),a.panelMap=[],r.panelList=[];for(const[K,q]of Object.entries(j)){if(G={},O=q.template?M.map(re=>re.name).indexOf(q.template):-1,O!==-1){G=JSON.parse(JSON.stringify(M[O]));for(const re of Object.keys(q))if(re==="main"){for(const[me,F]of Object.entries(q.main))if(F.level){for(const W of Object.keys(F.level))if(F.level[W]){G.main[me]=F;break}}}else typeof q[re]=="object"&&G[re]&&Object.assign(G[re],q[re]);G.name=q.name}else G=q;B=N(G.panel?G.panel.devices:[]),B?(V(B,G,[K]),r.panelList.push(G)):i(3,"No Devices defined in Panel "+G.name)}return a.panelMap.push({reading:r.fhemDevice+"-update_available",task:"update"}),r.header.darkModeOverFhem&&(X=r.header.darkModeOverFhem.split(":"),X.length===2&&a.panelMap.push({reading:X[0],task:"darkMode"})),i(4,"PanelList and PanelMapping created.",{panelList:r.panelList,panelMap:a.panelMap}),!0}function z(G,B){return B.reduce((j,M)=>j&&j[M],G)}async function H(){let G=[],B=JSON.parse(JSON.stringify(r.panelList)),j,M,O,X,K,q;for(const re of a.panelMap)j=re.reading.split("-")[0],G.indexOf(j)===-1&&G.push(j);if(G.length===0)return i(3,"No Devices in Panels defined.",null,"noPanels"),!0;if(M=await h("json","jsonlist2 "+G.join(",")),!!M){for(const re of a.panelMap)if(O=re.reading.split("-"),X=M.Results.map(me=>me.Name).indexOf(O[0]),K=[],q=null,O[1]==="i"?K=["Internals",O[2]]:O[1]==="a"?K=["Attributes",O[2]]:O[O.length-1]==="ts"?(O.pop(),O.shift(),K=["Readings",O.join("-"),"Time"]):(O.shift(),K=["Readings",O.join("-"),"Value"]),q=z(M.Results[X],K),re.items)for(const me of re.items)w(B,me,q);else C(re.task,q);return r.panelList=B,i(4,"Devices from FHEM loaded.",M),!0}}function U(G,B){let j=null;if(!B||!Array.isArray(B)||B.length<1)return G;for(const M of B)if(/.*:.*/.test(M)&&(j=M.split(":"),RegExp(j[0]).test(G)))return j[1];return G}function Y(G,B){let j,M=[],O=new Date(new Date().getTime()+a.timeOffset)-new Date(G),X=B.days?Math.floor(O/(1e3*60*60*24)):0,K=B.hours?Math.floor(O/(1e3*60*60))-X*24:0,q=B.minutes?Math.floor(O/(1e3*60))-X*24*60-K*60:0,re=B.seconds?Math.floor(O/1e3)-X*24*60*60-K*60*60-q*60:0,me=!/nozero/.test(B.days),F=!/nozero/.test(B.hours),W=!/nozero/.test(B.minutes),Q=!/nozero/.test(B.seconds);return/%t\(.*\)/.test(B.daysSuffix)&&(j=/%t\(.*\)/.exec(B.daysSuffix),B.daysSuffix.replace(j[0],e.t(j[0].slice(3,-1)))),/%t\(.*\)/.test(B.hoursSuffix)&&(j=/%t\(.*\)/.exec(B.hoursSuffix),B.hoursSuffix.replace(j[0],e.t(j[0].slice(3,-1)))),/%t\(.*\)/.test(B.minutesSuffix)&&(j=/%t\(.*\)/.exec(B.minutesSuffix),B.minutesSuffix.replace(j[0],e.t(j[0].slice(3,-1)))),/%t\(.*\)/.test(B.secondsSuffix)&&(j=/%t\(.*\)/.exec(B.secondsSuffix),B.secondsSuffix.replace(j[0],e.t(j[0].slice(3,-1)))),/numeric/.test(B.hours)||(K=(K<10?"0":"")+K),/numeric/.test(B.minutes)||(q=(B.hoursSuffix===":"&&q<10?"0":"")+q),/numeric/.test(B.seconds)||(re=(B.minutesSuffix===":"&&re<10?"0":"")+re),B.days&&me&&M.push(X,B.daysSuffix||" Tag(e) "),B.hours&&F&&M.push(K,B.hoursSuffix||" Stunde(n) "),B.minutes&&W&&M.push(q,B.minutesSuffix||" Minute(n) "),B.seconds&&Q&&M.push(re,B.secondsSuffix||" Sekunde(n) "),M.join("").trim()}function J(G,B,j){let M=G;if(typeof G!="string")return G;if(/:/.test(B)&&(B=B.replace(/:/g,":")),/:/.test(M)&&(M=M.replace(/:/g,":")),/%s/.test(M)&&(M=M.replace(/%s/g,B)),/%n\(.*\)/.test(M)){M=M.replace("%n()","%n(0)");let O=/%n\(.*\)/.exec(M),X=/-?[0-9]/.exec(B);if(!X)return null;let K=O[0].slice(3,-1).split(","),q=parseFloat(K[1]||0),re=parseFloat(K[0]||0),me=parseFloat(B.slice(X.index))+q;M=O.input.replace(O[0],j?me.toFixed(re):e.n(me,{minimumFractionDigits:re,maximumFractionDigits:re}))}if(/%d\(.*\)/.test(M)&&B){let O=/%d\(.*\)/.exec(M),X=O[0].slice(3,-1),K={dateStyle:"short",timeStyle:"medium"},q=B.replace(" ","T"),re=/^(\d{1,2})\.(\d{1,2})\.(\d{2,4})/.exec(q);X==="time"&&(K={hour:"numeric",minute:"numeric",second:"numeric"}),X==="date"&&(K={dateStyle:"short"}),/{.*}/.test(X)&&(K=m(X)),re&&(q=q.replace(re[0],[re[3],re[2],re[1]].join("-"))),/(T|Z)/.test(q)||(q+="T00:00:00"),/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/.test(q)?M=O.input.replace(O[0],K.diff?Y(q,K.diff):e.d(q,K).replace(", "," ")):M=O.input.replace(O[0],q+" -> no ISO-Date")}if(/%t\(.*\)/.test(M)){let O=/%t\(.*\)/.exec(M);M=O.input.replace(O[0],e.t(O[0].slice(3,-1)))}if(/%r\(.*\,.*\,.*\)/.test(M)){let X=/%r\(.*\)/.exec(M)[0].slice(3,-1).split(","),K=X[X.length-1],q=X[X.length-2];X.splice(-2,2),M=X.join(",").replace(new RegExp(q,"g"),K)}return M}function ue(G,B,j,M,O,X){let K=M?[]:{},q,re,me,F,W,Q={},_e=B&&Array.isArray(B),xe=j&&Array.isArray(j),Se;if(_e)for(const[ie,de]of Object.entries(B))Q[de]=xe?j[ie]:null;if(M||(K=Object.assign({},Q)),!G)return K;q=JSON.parse(JSON.stringify(G));for(let ie of q){if(ie=ie.replace(/\\:/g,":"),/.*:.*:.*/.test(ie)||(ie="::"+ie),re=ie.split(":"),me=!0,O&&re[0].split(O).length>1){for(const de of re[0].split(O))q.push([de,...re.slice(1)].join(":"));continue}if(re[1]&&(me=!1,F=parseFloat(re[1]),isNaN(F)?RegExp(re[1]?re[1]:".").test(re[0])&&(me=!0):(W=/-?[0-9]/.exec(re[0]),W&&W.index!==-1&&parseFloat(re[0].slice(W.index))>=F&&(me=!0))),me){Se=Object.assign({},Q);for(let[de,Ge]of Object.entries(re.slice(2)))Ge==="true"&&(Ge=!0),Ge==="false"&&(Ge=!1),Ge!==""&&(Se[_e&&B[de]?B[de]:[de]]=J(Ge,re[0],X));if(M)K.push(Se);else{K=Se;break}}}return K}function le(G,B){let j=G.split("->"),M={name:j[0],title:j[0]},O=B.map(X=>X.name).indexOf(M.name);return O!==-1&&Object.assign(M,B[O]),j.length>1&&(M.group=le(j.slice(1).join("->"),M.group||[])),O!==-1?B[O]=M:M.name&&B.push(M),B}function be(G){for(const B of G)B.sort&&B.group&&B.group.length>1&&B.group.sort((j,M)=>j.title.toUpperCase()>M.title.toUpperCase()?1:M.title.toUpperCase()>j.title.toUpperCase()?-1:0),B.group&&be(B.group)}function ae(){let G=[];r.navigation=JSON.parse(JSON.stringify(r.config.navigation));for(const B of r.panelList)if(B.panel.navigation&&(G=ue(B.panel.navigation,["route"],[""],!0,","),ue(B.panel.show,["show"],[!0]).show))for(const j of G)le(j.route,r.navigation);return be(r.navigation),i(4,"Navigation loaded.",r.navigation),!0}function Z(){let G,B,j=l();if(r.panelView=[],/^panel=.*/.test(r.currentView))B=r.panelList.map(M=>M.name).indexOf(r.currentView.split("=")[1]),B!==-1&&r.panelView.push(B);else for(const[M,O]of Object.entries(r.panelList))O.panel.navigation&&(G=ue(O.panel.navigation,["route"],[""],!0,","),G.map(X=>X.route).indexOf(r.currentView)!==-1&&r.panelView.push(M));return A(),i("4","PanelView loaded.",{view:r.currentView}),l(j),!0}async function te(G){let B=!0,j=l();return i(4,G?"Create Session...":"Refresh Session..."),r.isReady=!1,G&&(a.conn=null),B&&G&&(B=await g()),B&&G&&(B=P()),B&&(B=await p()),B&&(B=await x()),B&&(B=await S()),B&&(B=$()),B&&(B=await H()),B&&(B=ae()),B&&(B=Z()),B?(r.message=!1,r.isReady=!0,i(1,G?"FHEMApp launched.":"Session refreshed."),G&&r.noConfig&&(await Ua.push({name:"settings",query:Ua.currentRoute.value.query}),i(3,"No Config handling",null,"noConfig"))):i(3,"FHEMApp launching failed."),l(j),B}function se(){i(1,"FHEMApp launching..."),f(),s(),o(),Ua.afterEach(G=>{let B=d(G);if(B.langChanged&&(e.locale.value=r.settings.lang),B.darkChanged&&c(r.settings.dark==="0"?"light":"dark"),B.connChanged||!r.isReady)return te(!0);if(B.configChanged)return location.reload();B.routeChanged&&Z()})}return Ua.isReady().then(se()),{app:r,getEl:z,handleDefs:ue,getIcon:U,replacer:J,createSession:te,request:h,thread:l,stringToJson:m,log:i,help:u,changeDarkMode:c,appUpdate:T,loadTemplates:S,createURL:v}}),Kz={__name:"AppNavigation",props:{items:Array,path:String,isChip:Boolean},setup(e){const t=e,n=aT(),r=i=>t.path?t.path+"->"+i:i,a=i=>{Ua.push({name:"devices",params:{view:r(t.items[i].name)},query:Ua.currentRoute.value.query})};return(i,o)=>{const s=Dt("v-list-item"),l=Dt("v-chip"),u=Dt("v-list-group"),c=Dt("v-divider");return Xt(!0),Gl(ke,null,u1(e.items,(f,d)=>(Xt(),Gl(ke,null,[(!f.group||f.group.length<1)&&!e.isChip?(Xt(),jn(s,{key:0,title:Be(n).replacer(f.title,"")||f.name,"prepend-icon":f.icon,rounded:"pill",onClick:v=>a(d)},null,8,["title","prepend-icon","onClick"])):jr("",!0),(!f.group||f.group.length<1)&&e.isChip?(Xt(),jn(l,{key:1,class:"my-1 ml-2","prepend-icon":f.icon,onClick:v=>a(d)},{default:Vt(()=>[ta(is(Be(n).replacer(f.title,"")||f.name),1)]),_:2},1032,["prepend-icon","onClick"])):jr("",!0),f.group&&f.group.length>0?(Xt(),jn(u,{key:2},{activator:Vt(({props:v})=>[(Xt(),jn(s,ve({ref_for:!0},v,{title:Be(n).replacer(f.title,"")||f.name,"prepend-icon":f.icon,rounded:"pill",key:d}),null,16,["title","prepend-icon"]))]),default:Vt(()=>[I(Kz,{items:f.group,isChip:f.groupAsChips,path:r(f.name)},null,8,["items","isChip","path"])]),_:2},1024)):jr("",!0),f.divider?(Xt(),jn(c,{key:3})):jr("",!0)],64))),256)}}},aK={__name:"OptionsMenu",setup(e){const t=aT(),n=vh(),r=E(()=>{let o=[],s=t.app.header,l={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"},update:{name:"update",title:"%t(_app.options.update)",icon:"mdi-cloud-download-outline"}};return s.showDarkMode&&o.push(l.darkMode),s.showReloadPage&&o.push(l.reloadPage),s.showSettings&&o.push(l.settings),s.showUpdate&&t.app.updateAvailable&&o.push(l.update),o.push(...s.commands),o}),a=E(()=>Object.keys(n.messages.value));function i(o){let s=r.value[o];s.name==="reloadPage"&&location.reload(),s.name==="settings"&&Ua.push({name:"settings",query:Ua.currentRoute.value.query}),s.name==="darkMode"&&t.changeDarkMode(),s.name==="update"&&t.appUpdate(),s.cmd&&t.request("text",s.cmd)}return(o,s)=>{const l=Dt("v-btn"),u=Dt("v-badge"),c=Dt("v-icon"),f=Dt("v-list-item"),d=Dt("v-divider"),v=Dt("v-btn-toggle"),h=Dt("v-list"),g=Dt("v-menu");return r.value.length>0?(Xt(),jn(g,{key:0},{activator:Vt(({props:p})=>[I(u,{"model-value":Be(t).app.updateAvailable&&Be(t).app.header.showUpdate,color:"error",dot:"",class:"mr-2"},{default:Vt(()=>[I(l,ve({icon:"mdi-dots-vertical",density:"compact"},p),null,16)]),_:2},1032,["model-value"])]),default:Vt(()=>[I(h,null,{default:Vt(()=>[(Xt(!0),Gl(ke,null,u1(r.value,(p,m)=>(Xt(),jn(f,{rounded:"pill",key:m,title:Be(t).replacer(p.title,""),onClick:y=>i(m)},{prepend:Vt(()=>[I(u,{"model-value":Be(t).app.updateAvailable&&p.name==="update",color:"error",dot:""},{default:Vt(()=>[I(c,{icon:p.icon,density:"compact"},null,8,["icon"])]),_:2},1032,["model-value"])]),_:2},1032,["title","onClick"]))),128)),r.value.length>0&&Be(t).app.header.showLanguages?(Xt(),jn(d,{key:0,class:"pb-2"})):jr("",!0),Be(t).app.header.showLanguages?(Xt(),jn(f,{key:1,class:"text-center"},{default:Vt(()=>[I(v,{modelValue:Be(n).locale.value,"onUpdate:modelValue":s[0]||(s[0]=p=>Be(n).locale.value=p),divided:"",density:"compact"},{default:Vt(()=>[(Xt(!0),Gl(ke,null,u1(a.value,p=>(Xt(),jn(l,{value:p,size:"small",key:p},{default:Vt(()=>[ta(is(p),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})):jr("",!0)]),_:1})]),_:1})):jr("",!0)}}},iK=""+new URL("logo_v4-DcYcUQwu.png",import.meta.url).href,oK={key:0,class:"text-h5"},sK={key:0,class:"text-h5"},lK={key:1,class:"text-h5"},uK={__name:"App",setup(e){const t=aT(),{mobile:n}=Wr(),r=ye(!t.app.header.hideNavigation.value),a=E(()=>{let o=[],s,l;if(t.app.currentView&&!/^panel=/.test(t.app.currentView)){o.push(...t.app.navigation);for(const u of t.app.currentView.split("->"))s=o.map(c=>c.name).indexOf(u),s!==-1?(l=t.replacer(o[s].title,""),o[s].group&&o[s].group.length>0&&(o=o[s].group)):l=u}return l});function i(){Ua.push({name:"internals",query:Ua.currentRoute.value.query})}return(o,s)=>{const l=Dt("v-progress-circular"),u=Dt("v-overlay"),c=Dt("v-img"),f=Dt("v-divider"),d=Dt("v-list"),v=Dt("v-col"),h=Dt("v-icon"),g=Dt("v-row"),p=Dt("v-navigation-drawer"),m=Dt("v-app-bar-nav-icon"),y=Dt("v-btn"),_=Dt("v-app-bar"),b=Dt("v-alert"),x=Dt("RouterView"),S=Dt("v-container"),T=Dt("v-main"),C=Dt("v-layout"),w=Dt("v-app");return Xt(),jn(w,{class:"noselect"},{default:Vt(()=>[I(C,null,{default:Vt(()=>[I(u,{"model-value":Be(t).app.threads.length>0,class:"align-center justify-center"},{default:Vt(()=>[I(l,{indeterminate:"",size:"64"})]),_:1},8,["model-value"]),I(p,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=A=>r.value=A),color:"secondary",temporary:Be(t).app.header.hideNavigation},{prepend:Vt(()=>[I(c,{src:Be(iK)},null,8,["src"]),I(f)]),default:Vt(()=>[I(d,null,{default:Vt(()=>[I(Kz,{items:Be(t).app.navigation},null,8,["items"])]),_:1}),I(f),I(g,{"no-gutters":"",class:"mx-2 my-1"},{default:Vt(()=>[I(v,null,{default:Vt(()=>[ta(is(Be(t).app.version),1)]),_:1}),I(v,{cols:"2",class:"text-right"},{default:Vt(()=>[I(h,{icon:Be(t).app.isReady?"mdi-sync":"mdi-alert",size:"small"},null,8,["icon"])]),_:1})]),_:1}),I(f)]),_:1},8,["modelValue","temporary"]),Be(t).app.isLoaded?(Xt(),jn(_,{key:0,order:Be(n)?0:-1,color:Be(t).app.settings.loglevel>6?"error":"primary"},m8({prepend:Vt(()=>[I(m,{class:oh(Be(t).app.header.hideNavigation?"":"d-lg-none"),onClick:s[1]||(s[1]=C1(A=>r.value=!r.value,["stop"]))},null,8,["class"]),!Be(n)&&Be(t).app.header.showTime?(Xt(),Gl("div",oK,is(o.$d(Be(t).app.header.time,Be(t).app.header.timeFormat)),1)):jr("",!0)]),append:Vt(()=>[Be(t).app.settings.loglevel>6?(Xt(),jn(y,{key:0,icon:"mdi-information",onClick:s[2]||(s[2]=A=>i())})):jr("",!0),I(aK)]),default:Vt(()=>[!Be(n)&&Be(t).app.header.showDate?(Xt(),Gl("div",sK,is(o.$d(Be(t).app.header.time,Be(t).app.header.dateFormat)),1)):jr("",!0),Be(n)&&Be(t).app.header.showTitle?(Xt(),Gl("div",lK,is(a.value),1)):jr("",!0)]),_:2},[Be(t).app.header.imageUrl&&Be(t).app.settings.loglevel<7?{name:"image",fn:Vt(()=>[I(c,{src:Be(t).app.header.imageUrl,cover:"",gradient:Be(t).app.header.imageGradient},null,8,["src","gradient"])]),key:"0"}:void 0]),1032,["order","color"])):jr("",!0),I(T,null,{default:Vt(()=>[I(S,{fluid:"",class:"pa-2"},{default:Vt(()=>[Be(t).app.message&&Be(t).app.message.type?(Xt(),jn(b,{key:0,closable:"",type:Be(t).app.message.type,title:o.$t(Be(t).app.message.title),text:o.$t(Be(t).app.message.text),class:"mb-2 mx-1","onClick:close":s[3]||(s[3]=A=>Be(t).app.message=!1)},null,8,["type","title","text"])):jr("",!0),I(x)]),_:1})]),_:1})]),_:1})]),_:1})}}},cK={badge:"Abzeichen",open:"Öffnen",close:"Schließen",dismiss:"Verwerfen",confirmEdit:{ok:"OK",cancel:"Abbrechen"},dataIterator:{noResultsText:"Keine Elemente gefunden",loadingText:"Lade Elemente..."},dataTable:{itemsPerPageText:"Zeilen pro Seite:",ariaLabel:{sortDescending:"Absteigend sortiert.",sortAscending:"Aufsteigend sortiert.",sortNone:"Nicht sortiert.",activateNone:"Aktivieren um Sortierung zu entfernen.",activateDescending:"Aktivieren um absteigend zu sortieren.",activateAscending:"Aktivieren um aufsteigend zu sortieren."},sortBy:"Sortiere nach"},dataFooter:{itemsPerPageText:"Elemente pro Seite:",itemsPerPageAll:"Alle",nextPage:"Nächste Seite",prevPage:"Vorherige Seite",firstPage:"Erste Seite",lastPage:"Letzte Seite",pageText:"{0}-{1} von {2}"},dateRangeInput:{divider:"bis"},datePicker:{itemsSelected:"{0} ausgewählt",range:{title:"Daten auswählen",header:"Daten eingeben"},title:"Datum auswählen",header:"Datum eingeben",input:{placeholder:"Datum eingeben"}},noDataText:"Keine Daten vorhanden",carousel:{prev:"Vorheriges Bild",next:"Nächstes Bild",ariaLabel:{delimiter:"Element {0} von {1}"}},calendar:{moreEvents:"{0} mehr",today:"Heute"},input:{clear:"{0} leeren",prependAction:"{0} vorangestellte Aktion",appendAction:"{0} angehängte Aktion",otp:"Bitte OTP-Zeichen {0} eingeben"},fileInput:{counter:"{0} Dateien",counterSize:"{0} Dateien ({1} gesamt)"},timePicker:{am:"AM",pm:"PM",title:"Uhrzeit auswählen"},pagination:{ariaLabel:{root:"Seitennavigation",next:"Nächste Seite",previous:"Vorherige Seite",page:"Gehe zu Seite {0}",currentPage:"Aktuelle Seite, Seite {0}",first:"Erste Seite",last:"Letzte Seite"}},stepper:{next:"Weiter",prev:"Zurück"},rating:{ariaLabel:{item:"Bewertung {0} von {1}"}},loading:"Laden...",infiniteScroll:{loadMore:"Mehr laden",empty:"Nichts weiteres"}},fK={badge:"Placa",open:"Open",close:"Cerrar",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"Ningún elemento coincide con la búsqueda",loadingText:"Cargando..."},dataTable:{itemsPerPageText:"Filas por página:",ariaLabel:{sortDescending:"Orden descendente.",sortAscending:"Orden ascendente.",sortNone:"Sin ordenar.",activateNone:"Pulse para quitar orden.",activateDescending:"Pulse para ordenar de forma descendente.",activateAscending:"Pulse para ordenar de forma ascendente."},sortBy:"Ordenado por"},dataFooter:{itemsPerPageText:"Elementos por página:",itemsPerPageAll:"Todos",nextPage:"Página siguiente",prevPage:"Página anterior",firstPage:"Primera página",lastPage:"Última página",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No hay datos disponibles",carousel:{prev:"Visual anterior",next:"Visual siguiente",ariaLabel:{delimiter:"Visual {0} de {1}"}},calendar:{moreEvents:"{0} más",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} archivos",counterSize:"{0} archivos ({1} en total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Navegación de paginación",next:"Página siguiente",previous:"Página anterior",page:"Ir a la página {0}",currentPage:"Página actual, página {0}",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Puntuación {0} de {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},dK={badge:"Badge",open:"Ouvrir",close:"Fermer",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Annuler"},dataIterator:{noResultsText:"Aucun enregistrement correspondant trouvé",loadingText:"Chargement de l'élément..."},dataTable:{itemsPerPageText:"Lignes par page :",ariaLabel:{sortDescending:"Tri décroissant.",sortAscending:"Tri croissant.",sortNone:"Non trié.",activateNone:"Activer pour supprimer le tri.",activateDescending:"Activer pour trier par ordre décroissant.",activateAscending:"Activer pour trier par ordre croissant."},sortBy:"Trier par"},dataFooter:{itemsPerPageText:"Éléments par page :",itemsPerPageAll:"Tous",nextPage:"Page suivante",prevPage:"Page précédente",firstPage:"Première page",lastPage:"Dernière page",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"à"},datePicker:{itemsSelected:"{0} selected",range:{title:"Sélectionner des dates",header:"Entrer des dates"},title:"Sélectionner une date",header:"Entrer une date",input:{placeholder:"Entrer une date"}},noDataText:"Aucune donnée disponible",carousel:{prev:"Visuel précédent",next:"Visuel suivant",ariaLabel:{delimiter:"Diapositive {0} de {1}"}},calendar:{moreEvents:"{0} de plus",today:"Today"},input:{clear:"Vider {0}",prependAction:"{0} action avant",appendAction:"{0} action après",otp:"Caractère {0} du mot de passe à usage unique"},fileInput:{counter:"{0} fichier(s)",counterSize:"{0} fichier(s) ({1} au total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Navigation de pagination",next:"Page suivante",previous:"Page précédente",page:"Aller à la page {0}",currentPage:"Page actuelle, Page {0}",first:"Première page",last:"Dernière page"}},stepper:{next:"Suivant",prev:"Précédent"},rating:{ariaLabel:{item:"Note de {0} sur {1}"}},loading:"Chargement...",infiniteScroll:{loadMore:"Charger plus",empty:"Aucune donnée supplémentaire"}},vK=ne({...Me(),...Yz({fullHeight:!0}),...gt()},"VApp"),hK=fe()({name:"VApp",props:vK(),setup(e,t){let{slots:n}=t;const r=Ct(e),{layoutClasses:a,getLayoutItem:i,items:o,layoutRef:s}=jz(e),{rtlClasses:l}=Tn();return ge(()=>{var u;return I("div",{ref:s,class:["v-application",r.themeClasses.value,a.value,l.value,e.class],style:[e.style]},[I("div",{class:"v-application__wrap"},[(u=n.default)==null?void 0:u.call(n)])])}),{getLayoutItem:i,items:o,theme:r}}}),nt=ne({tag:{type:String,default:"div"}},"tag"),qz=ne({text:String,...Me(),...nt()},"VToolbarTitle"),iT=fe()({name:"VToolbarTitle",props:qz(),setup(e,t){let{slots:n}=t;return ge(()=>{const r=!!(n.default||n.text||e.text);return I(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var a;return[r&&I("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(a=n.default)==null?void 0:a.call(n)])]}})}),{}}}),gK=ne({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function ia(e,t,n){return fe()({name:e,props:gK({mode:n,origin:t}),setup(r,a){let{slots:i}=a;const o={onBeforeEnter(s){r.origin&&(s.style.transformOrigin=r.origin)},onLeave(s){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:f}=s;s._transitionInitialStyles={position:s.style.position,top:s.style.top,left:s.style.left,width:s.style.width,height:s.style.height},s.style.position="absolute",s.style.top=`${l}px`,s.style.left=`${u}px`,s.style.width=`${c}px`,s.style.height=`${f}px`}r.hideOnLeave&&s.style.setProperty("display","none","important")},onAfterLeave(s){if(r.leaveAbsolute&&(s!=null&&s._transitionInitialStyles)){const{position:l,top:u,left:c,width:f,height:d}=s._transitionInitialStyles;delete s._transitionInitialStyles,s.style.position=l||"",s.style.top=u||"",s.style.left=c||"",s.style.width=f||"",s.style.height=d||""}}};return()=>{const s=r.group?LC:xs;return ra(s,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function Jz(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return fe()({name:e,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,a){let{slots:i}=a;const o=r.group?LC:xs;return()=>ra(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function Qz(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=Gn(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const s=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=s.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:a,onLeaveCancelled:a};function a(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){const s=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,s!=null&&(o.style[n]=s),delete o._initialStyle}}const pK=ne({target:[Object,Array]},"v-dialog-transition"),jy=fe()({name:"VDialogTransition",props:pK(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(a){a.style.pointerEvents="none",a.style.visibility="hidden"},async onEnter(a,i){var d;await new Promise(v=>requestAnimationFrame(v)),await new Promise(v=>requestAnimationFrame(v)),a.style.visibility="";const{x:o,y:s,sx:l,sy:u,speed:c}=_k(e.target,a),f=Ml(a,[{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:Uj});(d=yk(a))==null||d.forEach(v=>{Ml(v,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:bv})}),f.finished.then(()=>i())},onAfterEnter(a){a.style.removeProperty("pointer-events")},onBeforeLeave(a){a.style.pointerEvents="none"},async onLeave(a,i){var d;await new Promise(v=>requestAnimationFrame(v));const{x:o,y:s,sx:l,sy:u,speed:c}=_k(e.target,a);Ml(a,[{},{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:Yj}).finished.then(()=>i()),(d=yk(a))==null||d.forEach(v=>{Ml(v,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:bv})})},onAfterLeave(a){a.style.removeProperty("pointer-events")}};return()=>e.target?I(xs,ve({name:"dialog-transition"},r,{css:!1}),n):I(xs,{name:"dialog-transition"},n)}});function yk(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function _k(e,t){const n=bz(e),r=jC(t),[a,i]=getComputedStyle(t).transformOrigin.split(" ").map(m=>parseFloat(m)),[o,s]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||s==="left"?l-=n.width/2:(o==="right"||s==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||s==="top"?u-=n.height/2:(o==="bottom"||s==="bottom")&&(u+=n.height/2);const c=n.width/r.width,f=n.height/r.height,d=Math.max(1,c,f),v=c/d||0,h=f/d||0,g=r.width*r.height/(window.innerWidth*window.innerHeight),p=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:l-(a+r.left),y:u-(i+r.top),sx:v,sy:h,speed:p}}const mK=ia("fab-transition","center center","out-in"),yK=ia("dialog-bottom-transition"),_K=ia("dialog-top-transition"),wv=ia("fade-transition"),oT=ia("scale-transition"),bK=ia("scroll-x-transition"),SK=ia("scroll-x-reverse-transition"),xK=ia("scroll-y-transition"),wK=ia("scroll-y-reverse-transition"),CK=ia("slide-x-transition"),TK=ia("slide-x-reverse-transition"),sT=ia("slide-y-transition"),AK=ia("slide-y-reverse-transition"),Zy=Jz("expand-transition",Qz()),lT=Jz("expand-x-transition",Qz("",!0)),IK=ne({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),lt=fe(!1)({name:"VDefaultsProvider",props:IK(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:a,reset:i,root:o,scoped:s}=Vs(e);return Kt(r,{reset:i,root:o,scoped:s,disabled:a}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),gn=ne({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function pn(e){return{dimensionStyles:E(()=>{const n={},r=De(e.height),a=De(e.maxHeight),i=De(e.maxWidth),o=De(e.minHeight),s=De(e.minWidth),l=De(e.width);return r!=null&&(n.height=r),a!=null&&(n.maxHeight=a),i!=null&&(n.maxWidth=i),o!=null&&(n.minHeight=o),s!=null&&(n.minWidth=s),l!=null&&(n.width=l),n})}}function DK(e){return{aspectStyles:E(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const eF=ne({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Me(),...gn()},"VResponsive"),Z1=fe()({name:"VResponsive",props:eF(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=DK(e),{dimensionStyles:a}=pn(e);return ge(()=>{var i;return I("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[a.value,e.style]},[I("div",{class:"v-responsive__sizer",style:r.value},null),(i=n.additional)==null?void 0:i.call(n),n.default&&I("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});function uT(e){return YC(()=>{const t=[],n={};if(e.value.background)if($1(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&Rj(e.value.background)){const r=xa(e.value.background);if(r.a==null||r.a===1){const a=Mz(r);n.color=a,n.caretColor=a}}}else t.push(`bg-${e.value.background}`);return e.value.text&&($1(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Kn(e,t){const n=E(()=>({text:Bt(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:a}=uT(n);return{textColorClasses:r,textColorStyles:a}}function Et(e,t){const n=E(()=>({background:Bt(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:a}=uT(n);return{backgroundColorClasses:r,backgroundColorStyles:a}}const Yt=ne({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Qt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{roundedClasses:E(()=>{const r=Bt(e)?e.value:e.rounded,a=Bt(e)?e.value:e.tile,i=[];if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);else(a||r===!1)&&i.push("rounded-0");return i})}}const ai=ne({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),lr=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:a,group:i,...o}=e,{component:s=i?LC:xs,...l}=typeof r=="object"?r:{};return ra(s,ve(typeof r=="string"?{name:a?"":r}:l,typeof r=="string"?{}:Object.fromEntries(Object.entries({disabled:a,group:i}).filter(u=>{let[c,f]=u;return f!==void 0})),o),n)};function PK(e,t){if(!GC)return;const n=t.modifiers||{},r=t.value,{handler:a,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var f;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const c=s.some(d=>d.isIntersecting);a&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&a(c,s,l),c&&n.once?tF(e,t):u.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function tF(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const gh={mounted:PK,unmounted:tF},nF=ne({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...eF(),...Me(),...Yt(),...ai()},"VImg"),po=fe()({name:"VImg",directives:{intersect:gh},props:nF(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=Et(oe(e,"color")),{roundedClasses:o}=Qt(e),s=Jt("VImg"),l=Te(""),u=ye(),c=Te(e.eager?"loading":"idle"),f=Te(),d=Te(),v=E(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),h=E(()=>v.value.aspect||f.value/d.value||0);Ce(()=>e.src,()=>{g(c.value!=="idle")}),Ce(h,(P,k)=>{!P&&k&&u.value&&b(u.value)}),Ly(()=>g());function g(P){if(!(e.eager&&P)&&!(GC&&!P&&!e.eager)){if(c.value="loading",v.value.lazySrc){const k=new Image;k.src=v.value.lazySrc,b(k,null)}v.value.src&&ht(()=>{var k;n("loadstart",((k=u.value)==null?void 0:k.currentSrc)||v.value.src),setTimeout(()=>{var L;if(!s.isUnmounted)if((L=u.value)!=null&&L.complete){if(u.value.naturalWidth||m(),c.value==="error")return;h.value||b(u.value,null),c.value==="loading"&&p()}else h.value||b(u.value),y()})})}}function p(){var P;s.isUnmounted||(y(),b(u.value),c.value="loaded",n("load",((P=u.value)==null?void 0:P.currentSrc)||v.value.src))}function m(){var P;s.isUnmounted||(c.value="error",n("error",((P=u.value)==null?void 0:P.currentSrc)||v.value.src))}function y(){const P=u.value;P&&(l.value=P.currentSrc||P.src)}let _=-1;Cn(()=>{clearTimeout(_)});function b(P){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const L=()=>{if(clearTimeout(_),s.isUnmounted)return;const{naturalHeight:V,naturalWidth:N}=P;V||N?(f.value=N,d.value=V):!P.complete&&c.value==="loading"&&k!=null?_=window.setTimeout(L,k):(P.currentSrc.endsWith(".svg")||P.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,d.value=1)};L()}const x=E(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),S=()=>{var L;if(!v.value.src||c.value==="idle")return null;const P=I("img",{class:["v-img__img",x.value],style:{objectPosition:e.position},src:v.value.src,srcset:v.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:p,onError:m},null),k=(L=r.sources)==null?void 0:L.call(r);return I(lr,{transition:e.transition,appear:!0},{default:()=>[Zt(k?I("picture",{class:"v-img__picture"},[k,P]):P,[[Ma,c.value==="loaded"]])]})},T=()=>I(lr,{transition:e.transition},{default:()=>[v.value.lazySrc&&c.value!=="loaded"&&I("img",{class:["v-img__img","v-img__img--preload",x.value],style:{objectPosition:e.position},src:v.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),C=()=>r.placeholder?I(lr,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&I("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,w=()=>r.error?I(lr,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&I("div",{class:"v-img__error"},[r.error()])]}):null,A=()=>e.gradient?I("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,D=Te(!1);{const P=Ce(h,k=>{k&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{D.value=!0})}),P())})}return ge(()=>{const P=Z1.filterProps(e);return Zt(I(Z1,ve({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!D.value},a.value,o.value,e.class],style:[{width:De(e.width==="auto"?f.value:e.width)},i.value,e.style]},P,{aspectRatio:h.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>I(ke,null,[I(S,null,null),I(T,null,null),I(A,null,null),I(C,null,null),I(w,null,null)]),default:r.default}),[[na("intersect"),{handler:g,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:f,naturalHeight:d}}}),Ur=ne({border:[Boolean,Number,String]},"border");function oa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{borderClasses:E(()=>{const r=Bt(e)?e.value:e.border,a=[];if(r===!0||r==="")a.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))a.push(`border-${i}`);return a})}}const An=ne({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Un(e){return{elevationClasses:E(()=>{const n=Bt(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const kK=[null,"prominent","default","comfortable","compact"],rF=ne({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>kK.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Ur(),...Me(),...An(),...Yt(),...nt({tag:"header"}),...gt()},"VToolbar"),K1=fe()({name:"VToolbar",props:rF(),setup(e,t){var v;let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(oe(e,"color")),{borderClasses:i}=oa(e),{elevationClasses:o}=Un(e),{roundedClasses:s}=Qt(e),{themeClasses:l}=Ct(e),{rtlClasses:u}=Tn(),c=Te(!!(e.extended||(v=n.extension)!=null&&v.call(n))),f=E(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),d=E(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Kt({VBtn:{variant:"text"}}),ge(()=>{var m;const h=!!(e.title||n.title),g=!!(n.image||e.image),p=(m=n.extension)==null?void 0:m.call(n);return c.value=!!(e.extended||p),I(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,i.value,o.value,s.value,l.value,u.value,e.class],style:[a.value,e.style]},{default:()=>[g&&I("div",{key:"image",class:"v-toolbar__image"},[n.image?I(lt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):I(po,{key:"image-img",cover:!0,src:e.image},null)]),I(lt,{defaults:{VTabs:{height:De(f.value)}}},{default:()=>{var y,_,b;return[I("div",{class:"v-toolbar__content",style:{height:De(f.value)}},[n.prepend&&I("div",{class:"v-toolbar__prepend"},[(y=n.prepend)==null?void 0:y.call(n)]),h&&I(iT,{key:"title",text:e.title},{text:n.title}),(_=n.default)==null?void 0:_.call(n),n.append&&I("div",{class:"v-toolbar__append"},[(b=n.append)==null?void 0:b.call(n)])])]}}),I(lt,{defaults:{VTabs:{height:De(d.value)}}},{default:()=>[I(Zy,null,{default:()=>[c.value&&I("div",{class:"v-toolbar__extension",style:{height:De(d.value)}},[p])]})]})]})}),{contentHeight:f,extensionHeight:d}}}),MK=ne({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function LK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let r=0,a=0;const i=ye(null),o=Te(0),s=Te(0),l=Te(0),u=Te(!1),c=Te(!1),f=E(()=>Number(e.scrollThreshold)),d=E(()=>sn((f.value-o.value)/f.value||0)),v=()=>{const h=i.value;if(!h||n&&!n.value)return;r=o.value,o.value="window"in h?h.pageYOffset:h.scrollTop;const g=h instanceof Window?document.documentElement.scrollHeight:h.scrollHeight;if(a!==g){a=g;return}c.value=o.value{s.value=s.value||o.value}),Ce(u,()=>{s.value=0}),wn(()=>{Ce(()=>e.scrollTarget,h=>{var p;const g=h?document.querySelector(h):window;g&&g!==i.value&&((p=i.value)==null||p.removeEventListener("scroll",v),i.value=g,i.value.addEventListener("scroll",v,{passive:!0}))},{immediate:!0})}),Cn(()=>{var h;(h=i.value)==null||h.removeEventListener("scroll",v)}),n&&Ce(n,v,{immediate:!0}),{scrollThreshold:f,currentScroll:o,currentThreshold:l,isScrollActive:u,scrollRatio:d,isScrollingUp:c,savedScroll:s}}function Cu(){const e=Te(!1);return wn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:E(()=>e.value?void 0:{transition:"none !important"}),isBooted:sh(e)}}const EK=ne({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...rF(),...xu(),...MK(),height:{type:[Number,String],default:64}},"VAppBar"),RK=fe()({name:"VAppBar",props:EK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ye(),a=Ve(e,"modelValue"),i=E(()=>{var _;const y=new Set(((_=e.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:y.has("hide"),fullyHide:y.has("fully-hide"),inverted:y.has("inverted"),collapse:y.has("collapse"),elevate:y.has("elevate"),fadeImage:y.has("fade-image")}}),o=E(()=>{const y=i.value;return y.hide||y.fullyHide||y.inverted||y.collapse||y.elevate||y.fadeImage||!a.value}),{currentScroll:s,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=LK(e,{canScroll:o}),f=E(()=>i.value.hide||i.value.fullyHide),d=E(()=>e.collapse||i.value.collapse&&(i.value.inverted?c.value>0:c.value===0)),v=E(()=>e.flat||i.value.fullyHide&&!a.value||i.value.elevate&&(i.value.inverted?s.value>0:s.value===0)),h=E(()=>i.value.fadeImage?i.value.inverted?1-c.value:c.value:void 0),g=E(()=>{var b,x;if(i.value.hide&&i.value.inverted)return 0;const y=((b=r.value)==null?void 0:b.contentHeight)??0,_=((x=r.value)==null?void 0:x.extensionHeight)??0;return f.value?s.value!!e.scrollBehavior),()=>{un(()=>{f.value?i.value.inverted?a.value=s.value>l.value:a.value=u.value||s.valueparseInt(e.order,10)),position:oe(e,"location"),layoutSize:g,elementSize:Te(void 0),active:a,absolute:oe(e,"absolute")});return ge(()=>{const y=K1.filterProps(e);return I(K1,ve({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...m.value,"--v-toolbar-image-opacity":h.value,height:void 0,...p.value},e.style]},y,{collapse:d.value,flat:v.value}),n)}),{}}}),VK=[null,"default","comfortable","compact"],Nn=ne({density:{type:String,default:"default",validator:e=>VK.includes(e)}},"density");function dr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{densityClasses:E(()=>`${t}--density-${e.density}`)}}const OK=["elevated","flat","tonal","outlined","text","plain"];function Fs(e,t){return I(ke,null,[e&&I("span",{key:"overlay",class:`${t}__overlay`},null),I("span",{key:"underlay",class:`${t}__underlay`},null)])}const La=ne({color:String,variant:{type:String,default:"elevated",validator:e=>OK.includes(e)}},"variant");function Tu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();const n=E(()=>{const{variant:i}=Be(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:a}=uT(E(()=>{const{variant:i,color:o}=Be(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}}));return{colorClasses:r,colorStyles:a,variantClasses:n}}const aF=ne({baseColor:String,divided:Boolean,...Ur(),...Me(),...Nn(),...An(),...Yt(),...nt(),...gt(),...La()},"VBtnGroup"),q1=fe()({name:"VBtnGroup",props:aF(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{densityClasses:a}=dr(e),{borderClasses:i}=oa(e),{elevationClasses:o}=Un(e),{roundedClasses:s}=Qt(e);Kt({VBtn:{height:"auto",baseColor:oe(e,"baseColor"),color:oe(e,"color"),density:oe(e,"density"),flat:!0,variant:oe(e,"variant")}}),ge(()=>I(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,i.value,a.value,o.value,s.value,e.class],style:e.style},n))}}),Au=ne({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Iu=ne({value:null,disabled:Boolean,selectedClass:String},"group-item");function Du(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=Jt("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const a=Wn();Lt(Symbol.for(`${t.description}:id`),a);const i=rt(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=oe(e,"value"),s=E(()=>!!(i.disabled.value||e.disabled));i.register({id:a,value:o,disabled:s},r),Cn(()=>{i.unregister(a)});const l=E(()=>i.isSelected(a)),u=E(()=>i.items.value[0].id===a),c=E(()=>i.items.value[i.items.value.length-1].id===a),f=E(()=>l.value&&[i.selectedClass.value,e.selectedClass]);return Ce(l,d=>{r.emit("group:selected",{value:d})},{flush:"sync"}),{id:a,isSelected:l,isFirst:u,isLast:c,toggle:()=>i.select(a,!l.value),select:d=>i.select(a,d),selectedClass:f,value:o,disabled:s,group:i}}function Hs(e,t){let n=!1;const r=yn([]),a=Ve(e,"modelValue",[],d=>d==null?[]:iF(r,jt(d)),d=>{const v=BK(r,d);return e.multiple?v:v[0]}),i=Jt("useGroup");function o(d,v){const h=d,g=Symbol.for(`${t.description}:id`),m=Cc(g,i==null?void 0:i.vnode).indexOf(v);Be(h.value)==null&&(h.value=m,h.useIndexAsValue=!0),m>-1?r.splice(m,0,h):r.push(h)}function s(d){if(n)return;l();const v=r.findIndex(h=>h.id===d);r.splice(v,1)}function l(){const d=r.find(v=>!v.disabled);d&&e.mandatory==="force"&&!a.value.length&&(a.value=[d.id])}wn(()=>{l()}),Cn(()=>{n=!0}),Ey(()=>{for(let d=0;dg.id===d);if(!(v&&(h!=null&&h.disabled)))if(e.multiple){const g=a.value.slice(),p=g.findIndex(y=>y===d),m=~p;if(v=v??!m,m&&e.mandatory&&g.length<=1||!m&&e.max!=null&&g.length+1>e.max)return;p<0&&v?g.push(d):p>=0&&!v&&g.splice(p,1),a.value=g}else{const g=a.value.includes(d);if(e.mandatory&&g)return;a.value=v??!g?[d]:[]}}function c(d){if(e.multiple,a.value.length){const v=a.value[0],h=r.findIndex(m=>m.id===v);let g=(h+d)%r.length,p=r[g];for(;p.disabled&&g!==h;)g=(g+d)%r.length,p=r[g];if(p.disabled)return;a.value=[r[g].id]}else{const v=r.find(h=>!h.disabled);v&&(a.value=[v.id])}}const f={register:o,unregister:s,selected:a,select:u,disabled:oe(e,"disabled"),prev:()=>c(r.length-1),next:()=>c(1),isSelected:d=>a.value.includes(d),selectedClass:E(()=>e.selectedClass),items:E(()=>r),getItemIndex:d=>NK(r,d)};return Lt(t,f),f}function NK(e,t){const n=iF(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function iF(e,t){const n=[];return t.forEach(r=>{const a=e.find(o=>Ni(r,o.value)),i=e[r];(a==null?void 0:a.value)!=null?n.push(a.id):i!=null&&n.push(i.id)}),n}function BK(e,t){const n=[];return t.forEach(r=>{const a=e.findIndex(i=>i.id===r);if(~a){const i=e[a];n.push(i.value!=null?i.value:a)}}),n}const cT=Symbol.for("vuetify:v-btn-toggle"),zK=ne({...aF(),...Au()},"VBtnToggle"),FK=fe()({name:"VBtnToggle",props:zK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:a,prev:i,select:o,selected:s}=Hs(e,cT);return ge(()=>{const l=q1.filterProps(e);return I(q1,ve({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:a,prev:i,select:o,selected:s})]}})}),{next:a,prev:i,select:o}}}),HK=["x-small","small","default","large","x-large"],Fi=ne({size:{type:[String,Number],default:"default"}},"size");function mf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return YC(()=>{let n,r;return gm(HK,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:De(e.size),height:De(e.size)}),{sizeClasses:n,sizeStyles:r}})}const GK=ne({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Ye,...Me(),...Fi(),...nt({tag:"i"}),...gt()},"VIcon"),wt=fe()({name:"VIcon",props:GK(),setup(e,t){let{attrs:n,slots:r}=t;const a=ye(),{themeClasses:i}=Ct(e),{iconData:o}=QZ(E(()=>a.value||e.icon)),{sizeClasses:s}=mf(e),{textColorClasses:l,textColorStyles:u}=Kn(oe(e,"color"));return ge(()=>{var d,v;const c=(d=r.default)==null?void 0:d.call(r);c&&(a.value=(v=gz(c).filter(h=>h.type===so&&h.children&&typeof h.children=="string")[0])==null?void 0:v.children);const f=!!(n.onClick||n.onClickOnce);return I(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",i.value,s.value,l.value,{"v-icon--clickable":f,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[s.value?void 0:{fontSize:De(e.size),height:De(e.size),width:De(e.size)},u.value,e.style],role:f?"button":void 0,"aria-hidden":!f,tabindex:f?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function Ky(e,t){const n=ye(),r=Te(!1);if(GC){const a=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);Cn(()=>{a.disconnect()}),Ce(n,(i,o)=>{o&&(a.unobserve(o),r.value=!1),i&&a.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const $K=ne({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Me(),...Fi(),...nt({tag:"div"}),...gt()},"VProgressCircular"),Qc=fe()({name:"VProgressCircular",props:$K(),setup(e,t){let{slots:n}=t;const r=20,a=2*Math.PI*r,i=ye(),{themeClasses:o}=Ct(e),{sizeClasses:s,sizeStyles:l}=mf(e),{textColorClasses:u,textColorStyles:c}=Kn(oe(e,"color")),{textColorClasses:f,textColorStyles:d}=Kn(oe(e,"bgColor")),{intersectionRef:v,isIntersecting:h}=Ky(),{resizeRef:g,contentRect:p}=ti(),m=E(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),y=E(()=>Number(e.width)),_=E(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(y.value,32)),b=E(()=>r/(1-y.value/_.value)*2),x=E(()=>y.value/_.value*b.value),S=E(()=>De((100-m.value)/100*a));return un(()=>{v.value=i.value,g.value=i.value}),ge(()=>I(e.tag,{ref:i,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":h.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},o.value,s.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:m.value},{default:()=>[I("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${b.value} ${b.value}`},[I("circle",{class:["v-progress-circular__underlay",f.value],style:d.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":a,"stroke-dashoffset":0},null),I("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":a,"stroke-dashoffset":S.value},null)]),n.default&&I("div",{class:"v-progress-circular__content"},[n.default({value:m.value})])]})),{}}}),bk={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Do=ne({location:String},"location");function Pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Tn();return{locationStyles:E(()=>{if(!e.location)return{};const{side:i,align:o}=H1(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function s(u){return n?n(u):0}const l={};return i!=="center"&&(t?l[bk[i]]=`calc(100% - ${s(i)}px)`:l[i]=0),o!=="center"?t?l[bk[o]]=`calc(100% - ${s(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const WK=ne({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Me(),...Do({location:"top"}),...Yt(),...nt(),...gt()},"VProgressLinear"),qy=fe()({name:"VProgressLinear",props:WK(),emits:{"update:modelValue":e=>!0},setup(e,t){var D;let{slots:n}=t;const r=Ve(e,"modelValue"),{isRtl:a,rtlClasses:i}=Tn(),{themeClasses:o}=Ct(e),{locationStyles:s}=Pu(e),{textColorClasses:l,textColorStyles:u}=Kn(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:f}=Et(E(()=>e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:v}=Et(E(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:h,backgroundColorStyles:g}=Et(e,"color"),{roundedClasses:p}=Qt(e),{intersectionRef:m,isIntersecting:y}=Ky(),_=E(()=>parseFloat(e.max)),b=E(()=>parseFloat(e.height)),x=E(()=>sn(parseFloat(e.bufferValue)/_.value*100,0,100)),S=E(()=>sn(parseFloat(r.value)/_.value*100,0,100)),T=E(()=>a.value!==e.reverse),C=E(()=>e.indeterminate?"fade-transition":"slide-x-transition"),w=yt&&((D=window.matchMedia)==null?void 0:D.call(window,"(forced-colors: active)").matches);function A(P){if(!m.value)return;const{left:k,right:L,width:V}=m.value.getBoundingClientRect(),N=T.value?V-P.clientX+(L-V):P.clientX-k;r.value=Math.round(N/V*_.value)}return ge(()=>I(e.tag,{ref:m,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&y.value,"v-progress-linear--reverse":T.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},p.value,o.value,i.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?De(b.value):0,"--v-progress-linear-height":De(b.value),...e.absolute?s.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:S.value,onClick:e.clickable&&A},{default:()=>[e.stream&&I("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[T.value?"left":"right"]:De(-b.value),borderTop:`${De(b.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${De(b.value/4)})`,width:De(100-x.value,"%"),"--v-progress-linear-stream-to":De(b.value*(T.value?1:-1))}},null),I("div",{class:["v-progress-linear__background",w?void 0:c.value],style:[f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),I("div",{class:["v-progress-linear__buffer",w?void 0:d.value],style:[v.value,{opacity:parseFloat(e.bufferOpacity),width:De(x.value,"%")}]},null),I(xs,{name:C.value},{default:()=>[e.indeterminate?I("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(P=>I("div",{key:P,class:["v-progress-linear__indeterminate",P,w?void 0:h.value],style:g.value},null))]):I("div",{class:["v-progress-linear__determinate",w?void 0:h.value],style:[g.value,{width:De(S.value,"%")}]},null)]}),n.default&&I("div",{class:"v-progress-linear__content"},[n.default({value:S.value,buffer:x.value})])]})),{}}}),Jy=ne({loading:[Boolean,String]},"loader");function ph(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{loaderClasses:E(()=>({[`${t}--loading`]:e.loading}))}}function mh(e,t){var r;let{slots:n}=t;return I("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||I(qy,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const UK=["static","relative","fixed","absolute","sticky"],yf=ne({position:{type:String,validator:e=>UK.includes(e)}},"position");function _f(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{positionClasses:E(()=>e.position?`${t}--${e.position}`:void 0)}}function YK(){const e=Jt("useRoute");return E(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function oF(){var e,t;return(t=(e=Jt("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function yh(e,t){var f,d;const n=p8("RouterLink"),r=E(()=>!!(e.href||e.to)),a=E(()=>(r==null?void 0:r.value)||WP(t,"click")||WP(e,"click"));if(typeof n=="string"||!("useLink"in n)){const v=oe(e,"href");return{isLink:r,isClickable:a,href:v,linkProps:yn({href:v})}}const i=E(()=>({...e,to:oe(()=>e.to||"")})),o=n.useLink(i.value),s=E(()=>e.to?o:void 0),l=YK(),u=E(()=>{var v,h,g;return s.value?e.exact?l.value?((g=s.value.isExactActive)==null?void 0:g.value)&&Ni(s.value.route.value.query,l.value.query):((h=s.value.isExactActive)==null?void 0:h.value)??!1:((v=s.value.isActive)==null?void 0:v.value)??!1:!1}),c=E(()=>{var v;return e.to?(v=s.value)==null?void 0:v.route.value.href:e.href});return{isLink:r,isClickable:a,isActive:u,route:(f=s.value)==null?void 0:f.route,navigate:(d=s.value)==null?void 0:d.navigate,href:c,linkProps:yn({href:c,"aria-current":E(()=>u.value?"page":void 0)})}}const _h=ne({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let D_=!1;function XK(e,t){let n=!1,r,a;yt&&(ht(()=>{window.addEventListener("popstate",i),r=e==null?void 0:e.beforeEach((o,s,l)=>{D_?n?t(l):l():setTimeout(()=>n?t(l):l()),D_=!0}),a=e==null?void 0:e.afterEach(()=>{D_=!1})}),er(()=>{window.removeEventListener("popstate",i),r==null||r(),a==null||a()}));function i(o){var s;(s=o.state)!=null&&s.replaced||(n=!0,setTimeout(()=>n=!1))}}function jK(e,t){Ce(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&ht(()=>{t(!0)})},{immediate:!0})}const J1=Symbol("rippleStop"),ZK=80;function Sk(e,t){e.style.transform=t,e.style.webkitTransform=t}function Q1(e){return e.constructor.name==="TouchEvent"}function sF(e){return e.constructor.name==="KeyboardEvent"}const KK=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,a=0;if(!sF(e)){const d=t.getBoundingClientRect(),v=Q1(e)?e.touches[e.touches.length-1]:e;r=v.clientX-d.left,a=v.clientY-d.top}let i=0,o=.3;(f=t._ripple)!=null&&f.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(a-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-i*2)/2}px`,l=`${(t.clientHeight-i*2)/2}px`,u=n.center?s:`${r-i}px`,c=n.center?l:`${a-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:s,centerY:l}},Sm={show(e,t){var v;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((v=t==null?void 0:t._ripple)!=null&&v.enabled))return;const r=document.createElement("span"),a=document.createElement("span");r.appendChild(a),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:s,y:l,centerX:u,centerY:c}=KK(e,t,n),f=`${i*2}px`;a.className="v-ripple__animation",a.style.width=f,a.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),a.classList.add("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--visible"),Sk(a,`translate(${s}, ${l}) scale3d(${o},${o},${o})`),a.dataset.activated=String(performance.now()),setTimeout(()=>{a.classList.remove("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--in"),Sk(a,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),a=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var s;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=n.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(n.parentNode)},300)},a)}};function lF(e){return typeof e>"u"||!!e}function Cv(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[J1])){if(e[J1]=!0,Q1(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||sF(e),n._ripple.class&&(t.class=n._ripple.class),Q1(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Sm.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},ZK)}else Sm.show(e,n,t)}}function xk(e){e[J1]=!0}function Zr(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Zr(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Sm.hide(t)}}function uF(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Tv=!1;function cF(e){!Tv&&(e.keyCode===zP.enter||e.keyCode===zP.space)&&(Tv=!0,Cv(e))}function fF(e){Tv=!1,Zr(e)}function dF(e){Tv&&(Tv=!1,Zr(e))}function vF(e,t,n){const{value:r,modifiers:a}=t,i=lF(r);if(i||Sm.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=a.center,e._ripple.circle=a.circle,$C(r)&&r.class&&(e._ripple.class=r.class),i&&!n){if(a.stop){e.addEventListener("touchstart",xk,{passive:!0}),e.addEventListener("mousedown",xk);return}e.addEventListener("touchstart",Cv,{passive:!0}),e.addEventListener("touchend",Zr,{passive:!0}),e.addEventListener("touchmove",uF,{passive:!0}),e.addEventListener("touchcancel",Zr),e.addEventListener("mousedown",Cv),e.addEventListener("mouseup",Zr),e.addEventListener("mouseleave",Zr),e.addEventListener("keydown",cF),e.addEventListener("keyup",fF),e.addEventListener("blur",dF),e.addEventListener("dragstart",Zr,{passive:!0})}else!i&&n&&hF(e)}function hF(e){e.removeEventListener("mousedown",Cv),e.removeEventListener("touchstart",Cv),e.removeEventListener("touchend",Zr),e.removeEventListener("touchmove",uF),e.removeEventListener("touchcancel",Zr),e.removeEventListener("mouseup",Zr),e.removeEventListener("mouseleave",Zr),e.removeEventListener("keydown",cF),e.removeEventListener("keyup",fF),e.removeEventListener("dragstart",Zr),e.removeEventListener("blur",dF)}function qK(e,t){vF(e,t,!1)}function JK(e){delete e._ripple,hF(e)}function QK(e,t){if(t.value===t.oldValue)return;const n=lF(t.oldValue);vF(e,t,n)}const Po={mounted:qK,unmounted:JK,updated:QK},Qy=ne({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:cT},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Ye,appendIcon:Ye,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Ur(),...Me(),...Nn(),...gn(),...An(),...Iu(),...Jy(),...Do(),...yf(),...Yt(),..._h(),...Fi(),...nt({tag:"button"}),...gt(),...La({variant:"elevated"})},"VBtn"),xt=fe()({name:"VBtn",props:Qy(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=Ct(e),{borderClasses:i}=oa(e),{densityClasses:o}=dr(e),{dimensionStyles:s}=pn(e),{elevationClasses:l}=Un(e),{loaderClasses:u}=ph(e),{locationStyles:c}=Pu(e),{positionClasses:f}=_f(e),{roundedClasses:d}=Qt(e),{sizeClasses:v,sizeStyles:h}=mf(e),g=Du(e,e.symbol,!1),p=yh(e,n),m=E(()=>{var D;return e.active!==void 0?e.active:p.isLink.value?(D=p.isActive)==null?void 0:D.value:g==null?void 0:g.isSelected.value}),y=E(()=>m.value?e.activeColor??e.color:e.color),_=E(()=>{var P,k;return{color:(g==null?void 0:g.isSelected.value)&&(!p.isLink.value||((P=p.isActive)==null?void 0:P.value))||!g||((k=p.isActive)==null?void 0:k.value)?y.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:b,colorStyles:x,variantClasses:S}=Tu(_),T=E(()=>(g==null?void 0:g.disabled.value)||e.disabled),C=E(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),w=E(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function A(D){var P;T.value||p.isLink.value&&(D.metaKey||D.ctrlKey||D.shiftKey||D.button!==0||n.target==="_blank")||((P=p.navigate)==null||P.call(p,D),g==null||g.toggle())}return jK(p,g==null?void 0:g.select),ge(()=>{const D=p.isLink.value?"a":e.tag,P=!!(e.prependIcon||r.prepend),k=!!(e.appendIcon||r.append),L=!!(e.icon&&e.icon!==!0);return Zt(I(D,ve({type:D==="a"?void 0:"button",class:["v-btn",g==null?void 0:g.selectedClass.value,{"v-btn--active":m.value,"v-btn--block":e.block,"v-btn--disabled":T.value,"v-btn--elevated":C.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},a.value,i.value,b.value,o.value,l.value,u.value,f.value,d.value,v.value,S.value,e.class],style:[x.value,s.value,c.value,h.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:T.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:A,value:w.value},p.linkProps),{default:()=>{var V;return[Fs(!0,"v-btn"),!e.icon&&P&&I("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?I(lt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):I(wt,{key:"prepend-icon",icon:e.prependIcon},null)]),I("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&L?I(wt,{key:"content-icon",icon:e.icon},null):I(lt,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var N;return[((N=r.default)==null?void 0:N.call(r))??e.text]}})]),!e.icon&&k&&I("span",{key:"append",class:"v-btn__append"},[r.append?I(lt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):I(wt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&I("span",{key:"loader",class:"v-btn__loader"},[((V=r.loader)==null?void 0:V.call(r))??I(Qc,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[Po,!T.value&&e.ripple,"",{center:!!e.icon}]])}),{group:g}}}),eq=ne({...Qy({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),tq=fe()({name:"VAppBarNavIcon",props:eq(),setup(e,t){let{slots:n}=t;return ge(()=>I(xt,ve(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),nq=fe()({name:"VAppBarTitle",props:qz(),setup(e,t){let{slots:n}=t;return ge(()=>I(iT,ve(e,{class:"v-app-bar-title"}),n)),{}}}),gF=zi("v-alert-title"),rq=["success","info","warning","error"],aq=ne({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:Ye,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>rq.includes(e)},...Me(),...Nn(),...gn(),...An(),...Do(),...yf(),...Yt(),...nt(),...gt(),...La({variant:"flat"})},"VAlert"),iq=fe()({name:"VAlert",props:aq(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Ve(e,"modelValue"),i=E(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=E(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:s}=Ct(e),{colorClasses:l,colorStyles:u,variantClasses:c}=Tu(o),{densityClasses:f}=dr(e),{dimensionStyles:d}=pn(e),{elevationClasses:v}=Un(e),{locationStyles:h}=Pu(e),{positionClasses:g}=_f(e),{roundedClasses:p}=Qt(e),{textColorClasses:m,textColorStyles:y}=Kn(oe(e,"borderColor")),{t:_}=nn(),b=E(()=>({"aria-label":_(e.closeLabel),onClick(x){a.value=!1,n("click:close",x)}}));return()=>{const x=!!(r.prepend||i.value),S=!!(r.title||e.title),T=!!(r.close||e.closable);return a.value&&I(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},s.value,l.value,f.value,v.value,g.value,p.value,c.value,e.class],style:[u.value,d.value,h.value,e.style],role:"alert"},{default:()=>{var C,w;return[Fs(!1,"v-alert"),e.border&&I("div",{key:"border",class:["v-alert__border",m.value],style:y.value},null),x&&I("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?I(lt,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{density:e.density,icon:i.value,size:e.prominent?44:28}}},r.prepend):I(wt,{key:"prepend-icon",density:e.density,icon:i.value,size:e.prominent?44:28},null)]),I("div",{class:"v-alert__content"},[S&&I(gF,{key:"title"},{default:()=>{var A;return[((A=r.title)==null?void 0:A.call(r))??e.title]}}),((C=r.text)==null?void 0:C.call(r))??e.text,(w=r.default)==null?void 0:w.call(r)]),r.append&&I("div",{key:"append",class:"v-alert__append"},[r.append()]),T&&I("div",{key:"close",class:"v-alert__close"},[r.close?I(lt,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var A;return[(A=r.close)==null?void 0:A.call(r,{props:b.value})]}}):I(xt,ve({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},b.value),null)])]}})}}}),oq=ne({start:Boolean,end:Boolean,icon:Ye,image:String,text:String,...Ur(),...Me(),...Nn(),...Yt(),...Fi(),...nt(),...gt(),...La({variant:"flat"})},"VAvatar"),Pa=fe()({name:"VAvatar",props:oq(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{borderClasses:a}=oa(e),{colorClasses:i,colorStyles:o,variantClasses:s}=Tu(e),{densityClasses:l}=dr(e),{roundedClasses:u}=Qt(e),{sizeClasses:c,sizeStyles:f}=mf(e);return ge(()=>I(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,a.value,i.value,l.value,u.value,c.value,s.value,e.class],style:[o.value,f.value,e.style]},{default:()=>[n.default?I(lt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?I(po,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?I(wt,{key:"icon",icon:e.icon},null):e.text,Fs(!1,"v-avatar")]})),{}}}),sq=ne({text:String,onClick:$n(),...Me(),...gt()},"VLabel"),bf=fe()({name:"VLabel",props:sq(),setup(e,t){let{slots:n}=t;return ge(()=>{var r;return I("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(r=n.default)==null?void 0:r.call(n)])}),{}}}),pF=Symbol.for("vuetify:selection-control-group"),fT=ne({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Ye,trueIcon:Ye,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Ni},...Me(),...Nn(),...gt()},"SelectionControlGroup"),lq=ne({...fT({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),mF=fe()({name:"VSelectionControlGroup",props:lq(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),a=Wn(),i=E(()=>e.id||`v-selection-control-group-${a}`),o=E(()=>e.name||i.value),s=new Set;return Lt(pF,{modelValue:r,forceUpdate:()=>{s.forEach(l=>l())},onForceUpdate:l=>{s.add(l),er(()=>{s.delete(l)})}}),Kt({[e.defaultsTarget]:{color:oe(e,"color"),disabled:oe(e,"disabled"),density:oe(e,"density"),error:oe(e,"error"),inline:oe(e,"inline"),modelValue:r,multiple:E(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:o,falseIcon:oe(e,"falseIcon"),trueIcon:oe(e,"trueIcon"),readonly:oe(e,"readonly"),ripple:oe(e,"ripple"),type:oe(e,"type"),valueComparator:oe(e,"valueComparator")}}),ge(()=>{var l;return I("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}}),e0=ne({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Me(),...fT()},"VSelectionControl");function uq(e){const t=rt(pF,void 0),{densityClasses:n}=dr(e),r=Ve(e,"modelValue"),a=E(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),i=E(()=>e.falseValue!==void 0?e.falseValue:!1),o=E(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),s=E({get(){const v=t?t.modelValue.value:r.value;return o.value?jt(v).some(h=>e.valueComparator(h,a.value)):e.valueComparator(v,a.value)},set(v){if(e.readonly)return;const h=v?a.value:i.value;let g=h;o.value&&(g=v?[...jt(r.value),h]:jt(r.value).filter(p=>!e.valueComparator(p,a.value))),t?t.modelValue.value=g:r.value=g}}),{textColorClasses:l,textColorStyles:u}=Kn(E(()=>{if(!(e.error||e.disabled))return s.value?e.color:e.baseColor})),{backgroundColorClasses:c,backgroundColorStyles:f}=Et(E(()=>s.value&&!e.error&&!e.disabled?e.color:e.baseColor)),d=E(()=>s.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:a,falseValue:i,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,icon:d}}const Cs=fe()({name:"VSelectionControl",directives:{Ripple:Po},inheritAttrs:!1,props:e0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:a,densityClasses:i,icon:o,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,trueValue:d}=uq(e),v=Wn(),h=Te(!1),g=Te(!1),p=ye(),m=E(()=>e.id||`input-${v}`),y=E(()=>!e.disabled&&!e.readonly);a==null||a.onForceUpdate(()=>{p.value&&(p.value.checked=s.value)});function _(T){y.value&&(h.value=!0,Kc(T.target,":focus-visible")!==!1&&(g.value=!0))}function b(){h.value=!1,g.value=!1}function x(T){T.stopPropagation()}function S(T){if(!y.value){p.value&&(p.value.checked=s.value);return}e.readonly&&a&&ht(()=>a.forceUpdate()),s.value=T.target.checked}return ge(()=>{var D,P;const T=r.label?r.label({label:e.label,props:{for:m.value}}):e.label,[C,w]=zs(n),A=I("input",ve({ref:p,checked:s.value,disabled:!!e.disabled,id:m.value,onBlur:b,onFocus:_,onInput:S,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:d.value,name:e.name,"aria-checked":e.type==="checkbox"?s.value:void 0},w),null);return I("div",ve({class:["v-selection-control",{"v-selection-control--dirty":s.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":h.value,"v-selection-control--focus-visible":g.value,"v-selection-control--inline":e.inline},i.value,e.class]},C,{style:e.style}),[I("div",{class:["v-selection-control__wrapper",l.value],style:u.value},[(D=r.default)==null?void 0:D.call(r,{backgroundColorClasses:c,backgroundColorStyles:f}),Zt(I("div",{class:["v-selection-control__input"]},[((P=r.input)==null?void 0:P.call(r,{model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,inputNode:A,icon:o.value,props:{onFocus:_,onBlur:b,id:m.value}}))??I(ke,null,[o.value&&I(wt,{key:"icon",icon:o.value},null),A])]),[[na("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),T&&I(bf,{for:m.value,onClick:x},{default:()=>[T]})])}),{isFocused:h,input:p}}}),yF=ne({indeterminate:Boolean,indeterminateIcon:{type:Ye,default:"$checkboxIndeterminate"},...e0({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),mo=fe()({name:"VCheckboxBtn",props:yF(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"indeterminate"),a=Ve(e,"modelValue");function i(l){r.value&&(r.value=!1)}const o=E(()=>r.value?e.indeterminateIcon:e.falseIcon),s=E(()=>r.value?e.indeterminateIcon:e.trueIcon);return ge(()=>{const l=vn(Cs.filterProps(e),["modelValue"]);return I(Cs,ve(l,{modelValue:a.value,"onUpdate:modelValue":[u=>a.value=u,i],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:s.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}});function _F(e){const{t}=nn();function n(r){let{name:a}=r;const i={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[a],o=e[`onClick:${a}`],s=o&&i?t(`$vuetify.input.${i}`,e.label??""):void 0;return I(wt,{icon:e[`${a}Icon`],"aria-label":s,onClick:o},null)}return{InputIcon:n}}const cq=ne({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Me(),...ai({transition:{component:sT,leaveAbsolute:!0,group:!0}})},"VMessages"),bF=fe()({name:"VMessages",props:cq(),setup(e,t){let{slots:n}=t;const r=E(()=>jt(e.messages)),{textColorClasses:a,textColorStyles:i}=Kn(E(()=>e.color));return ge(()=>I(lr,{transition:e.transition,tag:"div",class:["v-messages",a.value,e.class],style:[i.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&r.value.map((o,s)=>I("div",{class:"v-messages__message",key:`${s}-${r.value}`},[n.message?n.message({message:o}):o]))]})),{}}}),bh=ne({focused:Boolean,"onUpdate:focused":$n()},"focus");function ko(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();const n=Ve(e,"focused"),r=E(()=>({[`${t}--focused`]:n.value}));function a(){n.value=!0}function i(){n.value=!1}return{focusClasses:r,isFocused:n,focus:a,blur:i}}const SF=Symbol.for("vuetify:form"),fq=ne({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function dq(e){const t=Ve(e,"modelValue"),n=E(()=>e.disabled),r=E(()=>e.readonly),a=Te(!1),i=ye([]),o=ye([]);async function s(){const c=[];let f=!0;o.value=[],a.value=!0;for(const d of i.value){const v=await d.validate();if(v.length>0&&(f=!1,c.push({id:d.id,errorMessages:v})),!f&&e.fastFail)break}return o.value=c,a.value=!1,{valid:f,errors:o.value}}function l(){i.value.forEach(c=>c.reset())}function u(){i.value.forEach(c=>c.resetValidation())}return Ce(i,()=>{let c=0,f=0;const d=[];for(const v of i.value)v.isValid===!1?(f++,d.push({id:v.id,errorMessages:v.errorMessages})):v.isValid===!0&&c++;o.value=d,t.value=f>0?!1:c===i.value.length?!0:null},{deep:!0,flush:"post"}),Lt(SF,{register:c=>{let{id:f,vm:d,validate:v,reset:h,resetValidation:g}=c;i.value.some(p=>p.id===f),i.value.push({id:f,validate:v,reset:h,resetValidation:g,vm:Py(d),isValid:null,errorMessages:[]})},unregister:c=>{i.value=i.value.filter(f=>f.id!==c)},update:(c,f,d)=>{const v=i.value.find(h=>h.id===c);v&&(v.isValid=f,v.errorMessages=d)},isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:i,validateOn:oe(e,"validateOn")}),{errors:o,isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:i,validate:s,reset:l,resetValidation:u}}function t0(){return rt(SF,null)}const xF=ne({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...bh()},"validation");function wF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wn();const r=Ve(e,"modelValue"),a=E(()=>e.validationValue===void 0?r.value:e.validationValue),i=t0(),o=ye([]),s=Te(!0),l=E(()=>!!(jt(r.value===""?null:r.value).length||jt(a.value===""?null:a.value).length)),u=E(()=>!!(e.disabled??(i==null?void 0:i.isDisabled.value))),c=E(()=>!!(e.readonly??(i==null?void 0:i.isReadonly.value))),f=E(()=>{var x;return(x=e.errorMessages)!=null&&x.length?jt(e.errorMessages).concat(o.value).slice(0,Math.max(0,+e.maxErrors)):o.value}),d=E(()=>{let x=(e.validateOn??(i==null?void 0:i.validateOn.value))||"input";x==="lazy"&&(x="input lazy"),x==="eager"&&(x="input eager");const S=new Set((x==null?void 0:x.split(" "))??[]);return{input:S.has("input"),blur:S.has("blur")||S.has("input")||S.has("invalid-input"),invalidInput:S.has("invalid-input"),lazy:S.has("lazy"),eager:S.has("eager")}}),v=E(()=>{var x;return e.error||(x=e.errorMessages)!=null&&x.length?!1:e.rules.length?s.value?o.value.length||d.value.lazy?null:!0:!o.value.length:!0}),h=Te(!1),g=E(()=>({[`${t}--error`]:v.value===!1,[`${t}--dirty`]:l.value,[`${t}--disabled`]:u.value,[`${t}--readonly`]:c.value})),p=Jt("validation"),m=E(()=>e.name??Be(n));Ly(()=>{i==null||i.register({id:m.value,vm:p,validate:b,reset:y,resetValidation:_})}),Cn(()=>{i==null||i.unregister(m.value)}),wn(async()=>{d.value.lazy||await b(!d.value.eager),i==null||i.update(m.value,v.value,f.value)}),Cr(()=>d.value.input||d.value.invalidInput&&v.value===!1,()=>{Ce(a,()=>{if(a.value!=null)b();else if(e.focused){const x=Ce(()=>e.focused,S=>{S||b(),x()})}})}),Cr(()=>d.value.blur,()=>{Ce(()=>e.focused,x=>{x||b()})}),Ce([v,f],()=>{i==null||i.update(m.value,v.value,f.value)});async function y(){r.value=null,await ht(),await _()}async function _(){s.value=!0,d.value.lazy?o.value=[]:await b(!d.value.eager)}async function b(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const S=[];h.value=!0;for(const T of e.rules){if(S.length>=+(e.maxErrors??1))break;const w=await(typeof T=="function"?T:()=>T)(a.value);if(w!==!0){if(w!==!1&&typeof w!="string"){console.warn(`${w} is not a valid value. Rule functions must return boolean true or a string.`);continue}S.push(w||"")}}return o.value=S,h.value=!1,s.value=x,o.value}return{errorMessages:f,isDirty:l,isDisabled:u,isReadonly:c,isPristine:s,isValid:v,isValidating:h,reset:y,resetValidation:_,validate:b,validationClasses:g}}const Mo=ne({id:String,appendIcon:Ye,centerAffix:{type:Boolean,default:!0},prependIcon:Ye,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":$n(),"onClick:append":$n(),...Me(),...Nn(),...Hy(gn(),["maxWidth","minWidth","width"]),...gt(),...xF()},"VInput"),qn=fe()({name:"VInput",props:{...Mo()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const{densityClasses:i}=dr(e),{dimensionStyles:o}=pn(e),{themeClasses:s}=Ct(e),{rtlClasses:l}=Tn(),{InputIcon:u}=_F(e),c=Wn(),f=E(()=>e.id||`input-${c}`),d=E(()=>`${f.value}-messages`),{errorMessages:v,isDirty:h,isDisabled:g,isReadonly:p,isPristine:m,isValid:y,isValidating:_,reset:b,resetValidation:x,validate:S,validationClasses:T}=wF(e,"v-input",f),C=E(()=>({id:f,messagesId:d,isDirty:h,isDisabled:g,isReadonly:p,isPristine:m,isValid:y,isValidating:_,reset:b,resetValidation:x,validate:S})),w=E(()=>{var A;return(A=e.errorMessages)!=null&&A.length||!m.value&&v.value.length?v.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return ge(()=>{var L,V,N,$;const A=!!(r.prepend||e.prependIcon),D=!!(r.append||e.appendIcon),P=w.value.length>0,k=!e.hideDetails||e.hideDetails==="auto"&&(P||!!r.details);return I("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},i.value,s.value,l.value,T.value,e.class],style:[o.value,e.style]},[A&&I("div",{key:"prepend",class:"v-input__prepend"},[(L=r.prepend)==null?void 0:L.call(r,C.value),e.prependIcon&&I(u,{key:"prepend-icon",name:"prepend"},null)]),r.default&&I("div",{class:"v-input__control"},[(V=r.default)==null?void 0:V.call(r,C.value)]),D&&I("div",{key:"append",class:"v-input__append"},[e.appendIcon&&I(u,{key:"append-icon",name:"append"},null),(N=r.append)==null?void 0:N.call(r,C.value)]),k&&I("div",{class:"v-input__details"},[I(bF,{id:d.value,active:P,messages:w.value},{message:r.message}),($=r.details)==null?void 0:$.call(r,C.value)])])}),{reset:b,resetValidation:x,validate:S,isValid:y,errorMessages:v}}}),vq=ne({...Mo(),...vn(yF(),["inline"])},"VCheckbox"),hq=fe()({name:"VCheckbox",inheritAttrs:!1,props:vq(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=Ve(e,"modelValue"),{isFocused:i,focus:o,blur:s}=ko(e),l=Wn(),u=E(()=>e.id||`checkbox-${l}`);return ge(()=>{const[c,f]=zs(n),d=qn.filterProps(e),v=mo.filterProps(e);return I(qn,ve({class:["v-checkbox",e.class]},c,d,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,id:u.value,focused:i.value,style:e.style}),{...r,default:h=>{let{id:g,messagesId:p,isDisabled:m,isReadonly:y,isValid:_}=h;return I(mo,ve(v,{id:g.value,"aria-describedby":p.value,disabled:m.value,readonly:y.value},f,{error:_.value===!1,modelValue:a.value,"onUpdate:modelValue":b=>a.value=b,onFocus:o,onBlur:s}),r)}})}),{}}});function gq(e){let{selectedElement:t,containerElement:n,isRtl:r,isHorizontal:a}=e;const i=Av(a,n),o=CF(a,r,n),s=Av(a,t),l=TF(a,t),u=s*.4;return o>l?l-u:o+itypeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Me(),...Su({mobile:null}),...nt(),...Au({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Iv=fe()({name:"VSlideGroup",props:dT(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Tn(),{displayClasses:a,mobile:i}=Wr(e),o=Hs(e,e.symbol),s=Te(!1),l=Te(0),u=Te(0),c=Te(0),f=E(()=>e.direction==="horizontal"),{resizeRef:d,contentRect:v}=ti(),{resizeRef:h,contentRect:g}=ti(),p=YZ(),m=E(()=>({container:d.el,duration:200,easing:"easeOutQuart"})),y=E(()=>o.selected.value.length?o.items.value.findIndex(U=>U.id===o.selected.value[0]):-1),_=E(()=>o.selected.value.length?o.items.value.findIndex(U=>U.id===o.selected.value[o.selected.value.length-1]):-1);if(yt){let U=-1;Ce(()=>[o.selected.value,v.value,g.value,f.value],()=>{cancelAnimationFrame(U),U=requestAnimationFrame(()=>{if(v.value&&g.value){const Y=f.value?"width":"height";u.value=v.value[Y],c.value=g.value[Y],s.value=u.value+1=0&&h.el){const Y=h.el.children[_.value];x(Y,e.centerActive)}})})}const b=Te(!1);function x(U,Y){let J=0;Y?J=pq({containerElement:d.el,isHorizontal:f.value,selectedElement:U}):J=gq({containerElement:d.el,isHorizontal:f.value,isRtl:r.value,selectedElement:U}),S(J)}function S(U){if(!yt||!d.el)return;const Y=Av(f.value,d.el),J=CF(f.value,r.value,d.el);if(!(wk(f.value,d.el)<=Y||Math.abs(U-J)<16)){if(f.value&&r.value&&d.el){const{scrollWidth:le,offsetWidth:be}=d.el;U=le-be-U}f.value?p.horizontal(U,m.value):p(U,m.value)}}function T(U){const{scrollTop:Y,scrollLeft:J}=U.target;l.value=f.value?J:Y}function C(U){if(b.value=!0,!(!s.value||!h.el)){for(const Y of U.composedPath())for(const J of h.el.children)if(J===Y){x(J);return}}}function w(U){b.value=!1}let A=!1;function D(U){var Y;!A&&!b.value&&!(U.relatedTarget&&((Y=h.el)!=null&&Y.contains(U.relatedTarget)))&&L(),A=!1}function P(){A=!0}function k(U){if(!h.el)return;function Y(J){U.preventDefault(),L(J)}f.value?U.key==="ArrowRight"?Y(r.value?"prev":"next"):U.key==="ArrowLeft"&&Y(r.value?"next":"prev"):U.key==="ArrowDown"?Y("next"):U.key==="ArrowUp"&&Y("prev"),U.key==="Home"?Y("first"):U.key==="End"&&Y("last")}function L(U){var J,ue;if(!h.el)return;let Y;if(!U)Y=_v(h.el)[0];else if(U==="next"){if(Y=(J=h.el.querySelector(":focus"))==null?void 0:J.nextElementSibling,!Y)return L("first")}else if(U==="prev"){if(Y=(ue=h.el.querySelector(":focus"))==null?void 0:ue.previousElementSibling,!Y)return L("last")}else U==="first"?Y=h.el.firstElementChild:U==="last"&&(Y=h.el.lastElementChild);Y&&Y.focus({preventScroll:!0})}function V(U){const Y=f.value&&r.value?-1:1,J=(U==="prev"?-Y:Y)*u.value;let ue=l.value+J;if(f.value&&r.value&&d.el){const{scrollWidth:le,offsetWidth:be}=d.el;ue+=le-be}S(ue)}const N=E(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),$=E(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!i.value;case!0:return s.value||Math.abs(l.value)>0;case"mobile":return i.value||s.value||Math.abs(l.value)>0;default:return!i.value&&(s.value||Math.abs(l.value)>0)}}),z=E(()=>Math.abs(l.value)>1),H=E(()=>{if(!d.value)return!1;const U=wk(f.value,d.el),Y=mq(f.value,d.el);return U-Y-Math.abs(l.value)>1});return ge(()=>I(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!f.value,"v-slide-group--has-affixes":$.value,"v-slide-group--is-overflowing":s.value},a.value,e.class],style:e.style,tabindex:b.value||o.selected.value.length?-1:0,onFocus:D},{default:()=>{var U,Y,J;return[$.value&&I("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!z.value}],onMousedown:P,onClick:()=>z.value&&V("prev")},[((U=n.prev)==null?void 0:U.call(n,N.value))??I(wv,null,{default:()=>[I(wt,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),I("div",{key:"container",ref:d,class:"v-slide-group__container",onScroll:T},[I("div",{ref:h,class:"v-slide-group__content",onFocusin:C,onFocusout:w,onKeydown:k},[(Y=n.default)==null?void 0:Y.call(n,N.value)])]),$.value&&I("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!H.value}],onMousedown:P,onClick:()=>H.value&&V("next")},[((J=n.next)==null?void 0:J.call(n,N.value))??I(wv,null,{default:()=>[I(wt,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:V,scrollOffset:l,focus:L,hasPrev:z,hasNext:H}}}),IF=Symbol.for("vuetify:v-chip-group"),yq=ne({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Ni},...dT(),...Me(),...Au({selectedClass:"v-chip--selected"}),...nt(),...gt(),...La({variant:"tonal"})},"VChipGroup"),_q=fe()({name:"VChipGroup",props:yq(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{isSelected:a,select:i,next:o,prev:s,selected:l}=Hs(e,IF);return Kt({VChip:{color:oe(e,"color"),disabled:oe(e,"disabled"),filter:oe(e,"filter"),variant:oe(e,"variant")}}),ge(()=>{const u=Iv.filterProps(e);return I(Iv,ve(u,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:a,select:i,next:o,prev:s,selected:l.value})]}})}),{}}}),bq=ne({activeClass:String,appendAvatar:String,appendIcon:Ye,closable:Boolean,closeIcon:{type:Ye,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Ye,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:$n(),onClickOnce:$n(),...Ur(),...Me(),...Nn(),...An(),...Iu(),...Yt(),..._h(),...Fi(),...nt({tag:"span"}),...gt(),...La({variant:"tonal"})},"VChip"),Sf=fe()({name:"VChip",directives:{Ripple:Po},props:bq(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:i}=nn(),{borderClasses:o}=oa(e),{colorClasses:s,colorStyles:l,variantClasses:u}=Tu(e),{densityClasses:c}=dr(e),{elevationClasses:f}=Un(e),{roundedClasses:d}=Qt(e),{sizeClasses:v}=mf(e),{themeClasses:h}=Ct(e),g=Ve(e,"modelValue"),p=Du(e,IF,!1),m=yh(e,n),y=E(()=>e.link!==!1&&m.isLink.value),_=E(()=>!e.disabled&&e.link!==!1&&(!!p||e.link||m.isClickable.value)),b=E(()=>({"aria-label":i(e.closeLabel),onClick(T){T.preventDefault(),T.stopPropagation(),g.value=!1,r("click:close",T)}}));function x(T){var C;r("click",T),_.value&&((C=m.navigate)==null||C.call(m,T),p==null||p.toggle())}function S(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),x(T))}return()=>{const T=m.isLink.value?"a":e.tag,C=!!(e.appendIcon||e.appendAvatar),w=!!(C||a.append),A=!!(a.close||e.closable),D=!!(a.filter||e.filter)&&p,P=!!(e.prependIcon||e.prependAvatar),k=!!(P||a.prepend),L=!p||p.isSelected.value;return g.value&&Zt(I(T,ve({class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":_.value,"v-chip--filter":D,"v-chip--pill":e.pill},h.value,o.value,L?s.value:void 0,c.value,f.value,d.value,v.value,u.value,p==null?void 0:p.selectedClass.value,e.class],style:[L?l.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:_.value?0:void 0,onClick:x,onKeydown:_.value&&!y.value&&S},m.linkProps),{default:()=>{var V;return[Fs(_.value,"v-chip"),D&&I(lT,{key:"filter"},{default:()=>[Zt(I("div",{class:"v-chip__filter"},[a.filter?I(lt,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},a.filter):I(wt,{key:"filter-icon",icon:e.filterIcon},null)]),[[Ma,p.isSelected.value]])]}),k&&I("div",{key:"prepend",class:"v-chip__prepend"},[a.prepend?I(lt,{key:"prepend-defaults",disabled:!P,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},a.prepend):I(ke,null,[e.prependIcon&&I(wt,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&I(Pa,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),I("div",{class:"v-chip__content","data-no-activator":""},[((V=a.default)==null?void 0:V.call(a,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:e.disabled}))??e.text]),w&&I("div",{key:"append",class:"v-chip__append"},[a.append?I(lt,{key:"append-defaults",disabled:!C,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},a.append):I(ke,null,[e.appendIcon&&I(wt,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&I(Pa,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),A&&I("button",ve({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},b.value),[a.close?I(lt,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},a.close):I(wt,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[na("ripple"),_.value&&e.ripple,null]])}}}),ex=Symbol.for("vuetify:list");function DF(){const e=rt(ex,{hasPrepend:Te(!1),updateHasPrepend:()=>null}),t={hasPrepend:Te(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return Lt(ex,t),e}function PF(){return rt(ex,null)}const vT=e=>{const t={activate:n=>{let{id:r,value:a,activated:i}=n;return r=Xe(r),e&&!a&&i.size===1&&i.has(r)||(a?i.add(r):i.delete(r)),i},in:(n,r,a)=>{let i=new Set;if(n!=null)for(const o of jt(n))i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:a});return i},out:n=>Array.from(n)};return t},kF=e=>{const t=vT(e);return{activate:r=>{let{activated:a,id:i,...o}=r;i=Xe(i);const s=a.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:s})},in:(r,a,i)=>{let o=new Set;if(r!=null){const s=jt(r);s.length&&(o=t.in(s.slice(0,1),a,i))}return o},out:(r,a,i)=>t.out(r,a,i)}},Sq=e=>{const t=vT(e);return{activate:r=>{let{id:a,activated:i,children:o,...s}=r;return a=Xe(a),o.has(a)?i:t.activate({id:a,activated:i,children:o,...s})},in:t.in,out:t.out}},xq=e=>{const t=kF(e);return{activate:r=>{let{id:a,activated:i,children:o,...s}=r;return a=Xe(a),o.has(a)?i:t.activate({id:a,activated:i,children:o,...s})},in:t.in,out:t.out}},wq={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){const i=new Set;i.add(t);let o=a.get(t);for(;o!=null;)i.add(o),o=a.get(o);return i}else return r.delete(t),r},select:()=>null},MF={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){let i=a.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=a.get(i);return r}else r.delete(t);return r},select:()=>null},Cq={open:MF.open,select:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(!n)return r;const i=[];let o=a.get(t);for(;o!=null;)i.push(o),o=a.get(o);return new Set(i)}},hT=e=>{const t={select:n=>{let{id:r,value:a,selected:i}=n;if(r=Xe(r),e&&!a){const o=Array.from(i.entries()).reduce((s,l)=>{let[u,c]=l;return c==="on"&&s.push(u),s},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,a?"on":"off"),i},in:(n,r,a)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:a});return i},out:n=>{const r=[];for(const[a,i]of n.entries())i==="on"&&r.push(a);return r}};return t},LF=e=>{const t=hT(e);return{select:r=>{let{selected:a,id:i,...o}=r;i=Xe(i);const s=a.has(i)?new Map([[i,a.get(i)]]):new Map;return t.select({...o,id:i,selected:s})},in:(r,a,i)=>{let o=new Map;return r!=null&&r.length&&(o=t.in(r.slice(0,1),a,i)),o},out:(r,a,i)=>t.out(r,a,i)}},Tq=e=>{const t=hT(e);return{select:r=>{let{id:a,selected:i,children:o,...s}=r;return a=Xe(a),o.has(a)?i:t.select({id:a,selected:i,children:o,...s})},in:t.in,out:t.out}},Aq=e=>{const t=LF(e);return{select:r=>{let{id:a,selected:i,children:o,...s}=r;return a=Xe(a),o.has(a)?i:t.select({id:a,selected:i,children:o,...s})},in:t.in,out:t.out}},Iq=e=>{const t={select:n=>{let{id:r,value:a,selected:i,children:o,parents:s}=n;r=Xe(r);const l=new Map(i),u=[r];for(;u.length;){const f=u.shift();i.set(Xe(f),a?"on":"off"),o.has(f)&&u.push(...o.get(f))}let c=Xe(s.get(r));for(;c;){const f=o.get(c),d=f.every(h=>i.get(Xe(h))==="on"),v=f.every(h=>!i.has(Xe(h))||i.get(Xe(h))==="off");i.set(c,d?"on":v?"off":"indeterminate"),c=Xe(s.get(c))}return e&&!a&&Array.from(i.entries()).reduce((d,v)=>{let[h,g]=v;return g==="on"&&d.push(h),d},[]).length===0?l:i},in:(n,r,a)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:a});return i},out:(n,r)=>{const a=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&a.push(i);return a}};return t},Dv=Symbol.for("vuetify:nested"),EF={id:Te(),root:{register:()=>null,unregister:()=>null,parents:ye(new Map),children:ye(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ye(!1),selectable:ye(!1),opened:ye(new Set),activated:ye(new Set),selected:ye(new Map),selectedValues:ye([]),getPath:()=>[]}},Dq=ne({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),Pq=e=>{let t=!1;const n=ye(new Map),r=ye(new Map),a=Ve(e,"opened",e.opened,h=>new Set(h),h=>[...h.values()]),i=E(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return Sq(e.mandatory);case"single-leaf":return xq(e.mandatory);case"independent":return vT(e.mandatory);case"single-independent":default:return kF(e.mandatory)}}),o=E(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return Aq(e.mandatory);case"leaf":return Tq(e.mandatory);case"independent":return hT(e.mandatory);case"single-independent":return LF(e.mandatory);case"classic":default:return Iq(e.mandatory)}}),s=E(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Cq;case"single":return wq;case"multiple":default:return MF}}),l=Ve(e,"activated",e.activated,h=>i.value.in(h,n.value,r.value),h=>i.value.out(h,n.value,r.value)),u=Ve(e,"selected",e.selected,h=>o.value.in(h,n.value,r.value),h=>o.value.out(h,n.value,r.value));Cn(()=>{t=!0});function c(h){const g=[];let p=h;for(;p!=null;)g.unshift(p),p=r.value.get(p);return g}const f=Jt("nested"),d=new Set,v={id:Te(),root:{opened:a,activatable:oe(e,"activatable"),selectable:oe(e,"selectable"),activated:l,selected:u,selectedValues:E(()=>{const h=[];for(const[g,p]of u.value.entries())p==="on"&&h.push(g);return h}),register:(h,g,p)=>{if(d.has(h)){c(h).map(String).join(" -> "),c(g).concat(h).map(String).join(" -> ");return}else d.add(h);g&&h!==g&&r.value.set(h,g),p&&n.value.set(h,[]),g!=null&&n.value.set(g,[...n.value.get(g)||[],h])},unregister:h=>{if(t)return;d.delete(h),n.value.delete(h);const g=r.value.get(h);if(g){const p=n.value.get(g)??[];n.value.set(g,p.filter(m=>m!==h))}r.value.delete(h)},open:(h,g,p)=>{f.emit("click:open",{id:h,value:g,path:c(h),event:p});const m=s.value.open({id:h,value:g,opened:new Set(a.value),children:n.value,parents:r.value,event:p});m&&(a.value=m)},openOnSelect:(h,g,p)=>{const m=s.value.select({id:h,value:g,selected:new Map(u.value),opened:new Set(a.value),children:n.value,parents:r.value,event:p});m&&(a.value=m)},select:(h,g,p)=>{f.emit("click:select",{id:h,value:g,path:c(h),event:p});const m=o.value.select({id:h,value:g,selected:new Map(u.value),children:n.value,parents:r.value,event:p});m&&(u.value=m),v.root.openOnSelect(h,g,p)},activate:(h,g,p)=>{if(!e.activatable)return v.root.select(h,!0,p);f.emit("click:activate",{id:h,value:g,path:c(h),event:p});const m=i.value.activate({id:h,value:g,activated:new Set(l.value),children:n.value,parents:r.value,event:p});m&&(l.value=m)},children:n,parents:r,getPath:c}};return Lt(Dv,v),v.root},RF=(e,t)=>{const n=rt(Dv,EF),r=Symbol(Wn()),a=E(()=>e.value!==void 0?e.value:r),i={...n,id:a,open:(o,s)=>n.root.open(a.value,o,s),openOnSelect:(o,s)=>n.root.openOnSelect(a.value,o,s),isOpen:E(()=>n.root.opened.value.has(a.value)),parent:E(()=>n.root.parents.value.get(a.value)),activate:(o,s)=>n.root.activate(a.value,o,s),isActivated:E(()=>n.root.activated.value.has(Xe(a.value))),select:(o,s)=>n.root.select(a.value,o,s),isSelected:E(()=>n.root.selected.value.get(Xe(a.value))==="on"),isIndeterminate:E(()=>n.root.selected.value.get(a.value)==="indeterminate"),isLeaf:E(()=>!n.root.children.value.get(a.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(a.value,n.id.value,t),Cn(()=>{!n.isGroupActivator&&n.root.unregister(a.value)}),t&&Lt(Dv,i),i},kq=()=>{const e=rt(Dv,EF);Lt(Dv,{...e,isGroupActivator:!0})},Mq=aa({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return kq(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),Lq=ne({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Ye,default:"$collapse"},expandIcon:{type:Ye,default:"$expand"},prependIcon:Ye,appendIcon:Ye,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Me(),...nt()},"VListGroup"),tx=fe()({name:"VListGroup",props:Lq(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:a,id:i}=RF(oe(e,"value"),!0),o=E(()=>`v-list-group--id-${String(i.value)}`),s=PF(),{isBooted:l}=Cu();function u(v){v.stopPropagation(),a(!r.value,v)}const c=E(()=>({onClick:u,class:"v-list-group__header",id:o.value})),f=E(()=>r.value?e.collapseIcon:e.expandIcon),d=E(()=>({VListItem:{active:r.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&f.value,appendIcon:e.appendIcon||!e.subgroup&&f.value,title:e.title,value:e.value}}));return ge(()=>I(e.tag,{class:["v-list-group",{"v-list-group--prepend":s==null?void 0:s.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class],style:e.style},{default:()=>[n.activator&&I(lt,{defaults:d.value},{default:()=>[I(Mq,null,{default:()=>[n.activator({props:c.value,isOpen:r.value})]})]}),I(lr,{transition:{component:Zy},disabled:!l.value},{default:()=>{var v;return[Zt(I("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(v=n.default)==null?void 0:v.call(n)]),[[Ma,r.value]])]}})]})),{isOpen:r}}}),Eq=ne({opacity:[Number,String],...Me(),...nt()},"VListItemSubtitle"),VF=fe()({name:"VListItemSubtitle",props:Eq(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-list-item-subtitle",e.class],style:[{"--v-list-item-subtitle-opacity":e.opacity},e.style]},n)),{}}}),OF=zi("v-list-item-title"),Rq=ne({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Ye,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Ye,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:$n(),onClickOnce:$n(),...Ur(),...Me(),...Nn(),...gn(),...An(),...Yt(),..._h(),...nt(),...gt(),...La({variant:"text"})},"VListItem"),yo=fe()({name:"VListItem",directives:{Ripple:Po},props:Rq(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const i=yh(e,n),o=E(()=>e.value===void 0?i.href.value:e.value),{activate:s,isActivated:l,select:u,isOpen:c,isSelected:f,isIndeterminate:d,isGroupActivator:v,root:h,parent:g,openOnSelect:p,id:m}=RF(o,!1),y=PF(),_=E(()=>{var J;return e.active!==!1&&(e.active||((J=i.isActive)==null?void 0:J.value)||(h.activatable.value?l.value:f.value))}),b=E(()=>e.link!==!1&&i.isLink.value),x=E(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||!!y&&(h.selectable.value||h.activatable.value||e.value!=null))),S=E(()=>e.rounded||e.nav),T=E(()=>e.color??e.activeColor),C=E(()=>({color:_.value?T.value??e.baseColor:e.baseColor,variant:e.variant}));Ce(()=>{var J;return(J=i.isActive)==null?void 0:J.value},J=>{J&&g.value!=null&&h.open(g.value,!0),J&&p(J)},{immediate:!0});const{themeClasses:w}=Ct(e),{borderClasses:A}=oa(e),{colorClasses:D,colorStyles:P,variantClasses:k}=Tu(C),{densityClasses:L}=dr(e),{dimensionStyles:V}=pn(e),{elevationClasses:N}=Un(e),{roundedClasses:$}=Qt(S),z=E(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),H=E(()=>({isActive:_.value,select:u,isOpen:c.value,isSelected:f.value,isIndeterminate:d.value}));function U(J){var ue;a("click",J),x.value&&((ue=i.navigate)==null||ue.call(i,J),!v&&(h.activatable.value?s(!l.value,J):(h.selectable.value||e.value!=null)&&u(!f.value,J)))}function Y(J){(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),J.target.dispatchEvent(new MouseEvent("click",J)))}return ge(()=>{const J=b.value?"a":e.tag,ue=r.title||e.title!=null,le=r.subtitle||e.subtitle!=null,be=!!(e.appendAvatar||e.appendIcon),ae=!!(be||r.append),Z=!!(e.prependAvatar||e.prependIcon),te=!!(Z||r.prepend);return y==null||y.updateHasPrepend(te),e.activeColor&&Ij("active-color",["color","base-color"]),Zt(I(J,ve({class:["v-list-item",{"v-list-item--active":_.value,"v-list-item--disabled":e.disabled,"v-list-item--link":x.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!te&&(y==null?void 0:y.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&_.value},w.value,A.value,D.value,L.value,N.value,z.value,$.value,k.value,e.class],style:[P.value,V.value,e.style],tabindex:x.value?y?-2:0:void 0,"aria-selected":h.activatable.value?l.value:f.value,onClick:U,onKeydown:x.value&&!b.value&&Y},i.linkProps),{default:()=>{var se;return[Fs(x.value||_.value,"v-list-item"),te&&I("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?I(lt,{key:"prepend-defaults",disabled:!Z,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var G;return[(G=r.prepend)==null?void 0:G.call(r,H.value)]}}):I(ke,null,[e.prependAvatar&&I(Pa,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(wt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),I("div",{class:"v-list-item__spacer"},null)]),I("div",{class:"v-list-item__content","data-no-activator":""},[ue&&I(OF,{key:"title"},{default:()=>{var G;return[((G=r.title)==null?void 0:G.call(r,{title:e.title}))??e.title]}}),le&&I(VF,{key:"subtitle"},{default:()=>{var G;return[((G=r.subtitle)==null?void 0:G.call(r,{subtitle:e.subtitle}))??e.subtitle]}}),(se=r.default)==null?void 0:se.call(r,H.value)]),ae&&I("div",{key:"append",class:"v-list-item__append"},[r.append?I(lt,{key:"append-defaults",disabled:!be,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var G;return[(G=r.append)==null?void 0:G.call(r,H.value)]}}):I(ke,null,[e.appendIcon&&I(wt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(Pa,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),I("div",{class:"v-list-item__spacer"},null)])]}}),[[na("ripple"),x.value&&e.ripple]])}),{activate:s,isActivated:l,isGroupActivator:v,isSelected:f,list:y,select:u,root:h,id:m}}}),Vq=ne({color:String,inset:Boolean,sticky:Boolean,title:String,...Me(),...nt()},"VListSubheader"),NF=fe()({name:"VListSubheader",props:Vq(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=Kn(oe(e,"color"));return ge(()=>{const i=!!(n.default||e.title);return I(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class],style:[{textColorStyles:a},e.style]},{default:()=>{var o;return[i&&I("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),Oq=ne({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Me(),...gt()},"VDivider"),Sh=fe()({name:"VDivider",props:Oq(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=Ct(e),{textColorClasses:i,textColorStyles:o}=Kn(oe(e,"color")),s=E(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=De(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=De(e.thickness)),l});return ge(()=>{const l=I("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},a.value,i.value,e.class],style:[s.value,o.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?I("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[l,I("div",{class:"v-divider__content"},[r.default()]),l]):l}),{}}}),Nq=ne({items:Array,returnObject:Boolean},"VListChildren"),BF=fe()({name:"VListChildren",props:Nq(),setup(e,t){let{slots:n}=t;return DF(),()=>{var r,a;return((r=n.default)==null?void 0:r.call(n))??((a=e.items)==null?void 0:a.map(i=>{var d,v;let{children:o,props:s,type:l,raw:u}=i;if(l==="divider")return((d=n.divider)==null?void 0:d.call(n,{props:s}))??I(Sh,s,null);if(l==="subheader")return((v=n.subheader)==null?void 0:v.call(n,{props:s}))??I(NF,s,null);const c={subtitle:n.subtitle?h=>{var g;return(g=n.subtitle)==null?void 0:g.call(n,{...h,item:u})}:void 0,prepend:n.prepend?h=>{var g;return(g=n.prepend)==null?void 0:g.call(n,{...h,item:u})}:void 0,append:n.append?h=>{var g;return(g=n.append)==null?void 0:g.call(n,{...h,item:u})}:void 0,title:n.title?h=>{var g;return(g=n.title)==null?void 0:g.call(n,{...h,item:u})}:void 0},f=tx.filterProps(s);return o?I(tx,ve({value:s==null?void 0:s.value},f),{activator:h=>{let{props:g}=h;const p={...s,...g,value:e.returnObject?u:s.value};return n.header?n.header({props:p}):I(yo,p,c)},default:()=>I(BF,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:s}):I(yo,ve(s,{value:e.returnObject?u:s.value}),c)}))}}}),zF=ne({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:Ni}},"list-items");function as(e,t){const n=bn(t,e.itemTitle,t),r=bn(t,e.itemValue,n),a=bn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?vn(t,["children"]):t:void 0:bn(t,e.itemProps),o={title:n,value:r,...i};return{title:String(o.title??""),value:o.value,props:o,children:Array.isArray(a)?FF(e,a):void 0,raw:t}}function FF(e,t){const n=[];for(const r of t)n.push(as(e,r));return n}function gT(e){const t=E(()=>FF(e,e.items)),n=E(()=>t.value.some(i=>i.value===null));function r(i){return n.value||(i=i.filter(o=>o!==null)),i.map(o=>e.returnObject&&typeof o=="string"?as(e,o):t.value.find(s=>e.valueComparator(o,s.value))||as(e,o))}function a(i){return e.returnObject?i.map(o=>{let{raw:s}=o;return s}):i.map(o=>{let{value:s}=o;return s})}return{items:t,transformIn:r,transformOut:a}}function Bq(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function zq(e,t){const n=bn(t,e.itemType,"item"),r=Bq(t)?t:bn(t,e.itemTitle),a=bn(t,e.itemValue,void 0),i=bn(t,e.itemChildren),o=e.itemProps===!0?vn(t,["children"]):bn(t,e.itemProps),s={title:r,value:a,...o};return{type:n,title:s.title,value:s.value,props:s,children:n==="item"&&i?HF(e,i):void 0,raw:t}}function HF(e,t){const n=[];for(const r of t)n.push(zq(e,r));return n}function Fq(e){return{items:E(()=>HF(e,e.items))}}const Hq=ne({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":$n(),"onClick:select":$n(),"onUpdate:opened":$n(),...Dq({selectStrategy:"single-leaf",openStrategy:"list"}),...Ur(),...Me(),...Nn(),...gn(),...An(),itemType:{type:String,default:"type"},...zF(),...Yt(),...nt(),...gt(),...La({variant:"text"})},"VList"),n0=fe()({name:"VList",props:Hq(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=Fq(e),{themeClasses:a}=Ct(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Et(oe(e,"bgColor")),{borderClasses:s}=oa(e),{densityClasses:l}=dr(e),{dimensionStyles:u}=pn(e),{elevationClasses:c}=Un(e),{roundedClasses:f}=Qt(e),{children:d,open:v,parents:h,select:g,getPath:p}=Pq(e),m=E(()=>e.lines?`v-list--${e.lines}-line`:void 0),y=oe(e,"activeColor"),_=oe(e,"baseColor"),b=oe(e,"color");DF(),Kt({VListGroup:{activeColor:y,baseColor:_,color:b,expandIcon:oe(e,"expandIcon"),collapseIcon:oe(e,"collapseIcon")},VListItem:{activeClass:oe(e,"activeClass"),activeColor:y,baseColor:_,color:b,density:oe(e,"density"),disabled:oe(e,"disabled"),lines:oe(e,"lines"),nav:oe(e,"nav"),slim:oe(e,"slim"),variant:oe(e,"variant")}});const x=Te(!1),S=ye();function T(k){x.value=!0}function C(k){x.value=!1}function w(k){var L;!x.value&&!(k.relatedTarget&&((L=S.value)!=null&&L.contains(k.relatedTarget)))&&P()}function A(k){const L=k.target;if(!(!S.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(k.key==="ArrowDown")P("next");else if(k.key==="ArrowUp")P("prev");else if(k.key==="Home")P("first");else if(k.key==="End")P("last");else return;k.preventDefault()}}function D(k){x.value=!0}function P(k){if(S.value)return Wl(S.value,k)}return ge(()=>I(e.tag,{ref:S,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},a.value,i.value,s.value,l.value,c.value,m.value,f.value,e.class],style:[o.value,u.value,e.style],tabindex:e.disabled||x.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:T,onFocusout:C,onFocus:w,onKeydown:A,onMousedown:D},{default:()=>[I(BF,{items:r.value,returnObject:e.returnObject},n)]})),{open:v,select:g,focus:P,children:d,parents:h,getPath:p}}}),Gq=zi("v-list-img"),$q=ne({start:Boolean,end:Boolean,...Me(),...nt()},"VListItemAction"),Wq=fe()({name:"VListItemAction",props:$q(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}}),Uq=ne({start:Boolean,end:Boolean,...Me(),...nt()},"VListItemMedia"),Yq=fe()({name:"VListItemMedia",props:Uq(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class],style:e.style},n)),{}}});function P_(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Xq(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ck(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,a=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return P_({x:a,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,a=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return P_({x:a,y:i},t)}return P_({x:t.width/2,y:t.height/2},t)}const GF={static:Kq,connected:Jq},jq=ne({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in GF},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Zq(e,t){const n=ye({}),r=ye();yt&&Cr(()=>!!(t.isActive.value&&e.locationStrategy),i=>{var o,s;Ce(()=>e.locationStrategy,i),er(()=>{window.removeEventListener("resize",a),r.value=void 0}),window.addEventListener("resize",a,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(o=e.locationStrategy(t,e,n))==null?void 0:o.updateLocation:r.value=(s=GF[e.locationStrategy](t,e,n))==null?void 0:s.updateLocation});function a(i){var o;(o=r.value)==null||o.call(r,i)}return{contentStyles:n,updateLocation:r}}function Kq(){}function qq(e,t){const n=jC(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function Jq(e,t,n){(Array.isArray(e.target.value)||jj(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:i}=YC(()=>{const h=H1(t.location,e.isRtl.value),g=t.origin==="overlap"?h:t.origin==="auto"?C_(h):H1(t.origin,e.isRtl.value);return h.side===g.side&&h.align===T_(g).align?{preferredAnchor:UP(h),preferredOrigin:UP(g)}:{preferredAnchor:h,preferredOrigin:g}}),[o,s,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(h=>E(()=>{const g=parseFloat(t[h]);return isNaN(g)?1/0:g})),c=E(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const h=t.offset.split(" ").map(parseFloat);return h.length<2&&h.push(0),h}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let f=!1;const d=new ResizeObserver(()=>{f&&v()});Ce([e.target,e.contentEl],(h,g)=>{let[p,m]=h,[y,_]=g;y&&!Array.isArray(y)&&d.unobserve(y),p&&!Array.isArray(p)&&d.observe(p),_&&d.unobserve(_),m&&d.observe(m)},{immediate:!0}),er(()=>{d.disconnect()});function v(){if(f=!1,requestAnimationFrame(()=>f=!0),!e.target.value||!e.contentEl.value)return;const h=bz(e.target.value),g=qq(e.contentEl.value,e.isRtl.value),p=_m(e.contentEl.value),m=12;p.length||(p.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const y=p.reduce((D,P)=>{const k=P.getBoundingClientRect(),L=new Ul({x:P===document.documentElement?0:k.x,y:P===document.documentElement?0:k.y,width:P.clientWidth,height:P.clientHeight});return D?new Ul({x:Math.max(D.left,L.left),y:Math.max(D.top,L.top),width:Math.min(D.right,L.right)-Math.max(D.left,L.left),height:Math.min(D.bottom,L.bottom)-Math.max(D.top,L.top)}):L},void 0);y.x+=m,y.y+=m,y.width-=m*2,y.height-=m*2;let _={anchor:a.value,origin:i.value};function b(D){const P=new Ul(g),k=Ck(D.anchor,h),L=Ck(D.origin,P);let{x:V,y:N}=Xq(k,L);switch(D.anchor.side){case"top":N-=c.value[0];break;case"bottom":N+=c.value[0];break;case"left":V-=c.value[0];break;case"right":V+=c.value[0];break}switch(D.anchor.align){case"top":N-=c.value[1];break;case"bottom":N+=c.value[1];break;case"left":V-=c.value[1];break;case"right":V+=c.value[1];break}return P.x+=V,P.y+=N,P.width=Math.min(P.width,l.value),P.height=Math.min(P.height,u.value),{overflows:XP(P,y),x:V,y:N}}let x=0,S=0;const T={x:0,y:0},C={x:!1,y:!1};let w=-1;for(;!(w++>10);){const{x:D,y:P,overflows:k}=b(_);x+=D,S+=P,g.x+=D,g.y+=P;{const L=YP(_.anchor),V=k.x.before||k.x.after,N=k.y.before||k.y.after;let $=!1;if(["x","y"].forEach(z=>{if(z==="x"&&V&&!C.x||z==="y"&&N&&!C.y){const H={anchor:{..._.anchor},origin:{..._.origin}},U=z==="x"?L==="y"?T_:C_:L==="y"?C_:T_;H.anchor=U(H.anchor),H.origin=U(H.origin);const{overflows:Y}=b(H);(Y[z].before<=k[z].before&&Y[z].after<=k[z].after||Y[z].before+Y[z].after<(k[z].before+k[z].after)/2)&&(_=H,$=C[z]=!0)}}),$)continue}k.x.before&&(x+=k.x.before,g.x+=k.x.before),k.x.after&&(x-=k.x.after,g.x-=k.x.after),k.y.before&&(S+=k.y.before,g.y+=k.y.before),k.y.after&&(S-=k.y.after,g.y-=k.y.after);{const L=XP(g,y);T.x=y.width-L.x.before-L.x.after,T.y=y.height-L.y.before-L.y.after,x+=L.x.before,g.x+=L.x.before,S+=L.y.before,g.y+=L.y.before}break}const A=YP(_.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${_.anchor.side} ${_.anchor.align}`,transformOrigin:`${_.origin.side} ${_.origin.align}`,top:De(k_(S)),left:e.isRtl.value?void 0:De(k_(x)),right:e.isRtl.value?De(k_(-x)):void 0,minWidth:De(A==="y"?Math.min(o.value,h.width):o.value),maxWidth:De(Tk(sn(T.x,o.value===1/0?0:o.value,l.value))),maxHeight:De(Tk(sn(T.y,s.value===1/0?0:s.value,u.value)))}),{available:T,contentBox:g}}return Ce(()=>[a.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>v()),ht(()=>{const h=v();if(!h)return;const{available:g,contentBox:p}=h;p.height>g.y&&requestAnimationFrame(()=>{v(),requestAnimationFrame(()=>{v()})})}),{updateLocation:v}}function k_(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Tk(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let nx=!0;const xm=[];function Qq(e){!nx||xm.length?(xm.push(e),rx()):(nx=!1,e(),rx())}let Ak=-1;function rx(){cancelAnimationFrame(Ak),Ak=requestAnimationFrame(()=>{const e=xm.shift();e&&e(),xm.length?rx():nx=!0})}const Tp={none:null,close:nJ,block:rJ,reposition:aJ},eJ=ne({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Tp}},"VOverlay-scroll-strategies");function tJ(e,t){if(!yt)return;let n;un(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=hf(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=Tp[e.scrollStrategy])==null||r.call(Tp,t,e,n)}))}),er(()=>{n==null||n.stop()})}function nJ(e){function t(n){e.isActive.value=!1}$F(e.targetEl.value??e.contentEl.value,t)}function rJ(e,t){var o;const n=(o=e.root.value)==null?void 0:o.offsetParent,r=[...new Set([..._m(e.targetEl.value,t.contained?n:void 0),..._m(e.contentEl.value,t.contained?n:void 0)])].filter(s=>!s.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,i=(s=>QC(s)&&s)(n||document.documentElement);i&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((s,l)=>{s.style.setProperty("--v-body-scroll-x",De(-s.scrollLeft)),s.style.setProperty("--v-body-scroll-y",De(-s.scrollTop)),s!==document.documentElement&&s.style.setProperty("--v-scrollbar-offset",De(a)),s.classList.add("v-overlay-scroll-blocked")}),er(()=>{r.forEach((s,l)=>{const u=parseFloat(s.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(s.style.getPropertyValue("--v-body-scroll-y")),f=s.style.scrollBehavior;s.style.scrollBehavior="auto",s.style.removeProperty("--v-body-scroll-x"),s.style.removeProperty("--v-body-scroll-y"),s.style.removeProperty("--v-scrollbar-offset"),s.classList.remove("v-overlay-scroll-blocked"),s.scrollLeft=-u,s.scrollTop=-c,s.style.scrollBehavior=f}),i&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function aJ(e,t,n){let r=!1,a=-1,i=-1;function o(s){Qq(()=>{var c,f;const l=performance.now();(f=(c=e.updateLocation).value)==null||f.call(c,s),r=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?s=>s():requestIdleCallback)(()=>{n.run(()=>{$F(e.targetEl.value??e.contentEl.value,s=>{r?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{o(s)})})):o(s)})})}),er(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(a)})}function $F(e,t){const n=[document,..._m(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),er(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const ax=Symbol.for("vuetify:v-menu"),pT=ne({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function mT(e,t){let n=()=>{};function r(o){n==null||n();const s=Number(o?e.openDelay:e.closeDelay);return new Promise(l=>{n=gj(s,()=>{t==null||t(o),l(o)})})}function a(){return r(!0)}function i(){return r(!1)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:i}}const iJ=ne({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...pT()},"VOverlay-activator");function oJ(e,t){let{isActive:n,isTop:r,contentEl:a}=t;const i=Jt("useActivator"),o=ye();let s=!1,l=!1,u=!0;const c=E(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),f=E(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:d,runCloseDelay:v}=mT(e,C=>{C===(e.openOnHover&&s||c.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(u=!0),n.value=C)}),h=ye(),g={onClick:C=>{C.stopPropagation(),o.value=C.currentTarget||C.target,n.value||(h.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{var w;(w=C.sourceCapabilities)!=null&&w.firesTouchEvents||(s=!0,o.value=C.currentTarget||C.target,d())},onMouseleave:C=>{s=!1,v()},onFocus:C=>{Kc(C.target,":focus-visible")!==!1&&(l=!0,C.stopPropagation(),o.value=C.currentTarget||C.target,d())},onBlur:C=>{l=!1,C.stopPropagation(),v()}},p=E(()=>{const C={};return f.value&&(C.onClick=g.onClick),e.openOnHover&&(C.onMouseenter=g.onMouseenter,C.onMouseleave=g.onMouseleave),c.value&&(C.onFocus=g.onFocus,C.onBlur=g.onBlur),C}),m=E(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{s=!0,d()},C.onMouseleave=()=>{s=!1,v()}),c.value&&(C.onFocusin=()=>{l=!0,d()},C.onFocusout=()=>{l=!1,v()}),e.closeOnContentClick){const w=rt(ax,null);C.onClick=()=>{n.value=!1,w==null||w.closeParents()}}return C}),y=E(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{u&&(s=!0,u=!1,d())},C.onMouseleave=()=>{s=!1,v()}),C});Ce(r,C=>{var w;C&&(e.openOnHover&&!s&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!s))&&!((w=a.value)!=null&&w.contains(document.activeElement))&&(n.value=!1)}),Ce(n,C=>{C||setTimeout(()=>{h.value=void 0})},{flush:"post"});const _=pm();un(()=>{_.value&&ht(()=>{o.value=_.el})});const b=pm(),x=E(()=>e.target==="cursor"&&h.value?h.value:b.value?b.el:WF(e.target,i)||o.value),S=E(()=>Array.isArray(x.value)?void 0:x.value);let T;return Ce(()=>!!e.activator,C=>{C&&yt?(T=hf(),T.run(()=>{sJ(e,i,{activatorEl:o,activatorEvents:p})})):T&&T.stop()},{flush:"post",immediate:!0}),er(()=>{T==null||T.stop()}),{activatorEl:o,activatorRef:_,target:x,targetEl:S,targetRef:b,activatorEvents:p,contentEvents:m,scrimEvents:y}}function sJ(e,t,n){let{activatorEl:r,activatorEvents:a}=n;Ce(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=s(u);c&&o(c)}l&&ht(()=>i())},{immediate:!0}),Ce(()=>e.activatorProps,()=>{i()}),er(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&yj(l,ve(a.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&_j(l,ve(a.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=WF(l,t);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function WF(e,t){var r,a;if(!e)return;let n;if(e==="parent"){let i=(a=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:a.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function UF(){if(!yt)return Te(!1);const{ssr:e}=Wr();if(e){const t=Te(!1);return wn(()=>{t.value=!0}),t}else return Te(!0)}const yT=ne({eager:Boolean},"lazy");function _T(e,t){const n=Te(!1),r=E(()=>n.value||e.eager||t.value);Ce(t,()=>n.value=!0);function a(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:a}}function ku(){const t=Jt("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Ik=Symbol.for("vuetify:stack"),Uf=yn([]);function lJ(e,t,n){const r=Jt("useStack"),a=!n,i=rt(Ik,void 0),o=yn({activeChildren:new Set});Lt(Ik,o);const s=Te(+t.value);Cr(e,()=>{var f;const c=(f=Uf.at(-1))==null?void 0:f[1];s.value=c?c+10:+t.value,a&&Uf.push([r.uid,s.value]),i==null||i.activeChildren.add(r.uid),er(()=>{if(a){const d=Xe(Uf).findIndex(v=>v[0]===r.uid);Uf.splice(d,1)}i==null||i.activeChildren.delete(r.uid)})});const l=Te(!0);a&&un(()=>{var f;const c=((f=Uf.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>l.value=c)});const u=E(()=>!o.activeChildren.size);return{globalTop:sh(l),localTop:u,stackStyles:E(()=>({zIndex:s.value}))}}function uJ(e){return{teleportTarget:E(()=>{const n=e();if(n===!0||!yt)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let a=[...r.children].find(i=>i.matches(".v-overlay-container"));return a||(a=document.createElement("div"),a.className="v-overlay-container",r.appendChild(a)),a})}}function cJ(){return!0}function YF(e,t,n){if(!e||XF(e,n)===!1)return!1;const r=Ez(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const a=(typeof n.value=="object"&&n.value.include||(()=>[]))();return a.push(t),!a.some(i=>i==null?void 0:i.contains(e.target))}function XF(e,t){return(typeof t.value=="object"&&t.value.closeConditional||cJ)(e)}function fJ(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&YF(e,t,n)&&setTimeout(()=>{XF(e,n)&&r&&r(e)},0)}function Dk(e,t){const n=Ez(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const jF={mounted(e,t){const n=a=>fJ(a,e,t),r=a=>{e._clickOutside.lastMousedownWasOutside=YF(a,e,t)};Dk(e,a=>{a.addEventListener("click",n,!0),a.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(Dk(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:a}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[t.instance.$.uid])}};function dJ(e){const{modelValue:t,color:n,...r}=e;return I(xs,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&I("div",ve({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const xh=ne({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...iJ(),...Me(),...gn(),...yT(),...jq(),...eJ(),...gt(),...ai()},"VOverlay"),ki=fe()({name:"VOverlay",directives:{ClickOutside:jF},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...xh()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:a}=t;const i=Jt("VOverlay"),o=ye(),s=ye(),l=ye(),u=Ve(e,"modelValue"),c=E({get:()=>u.value,set:ae=>{ae&&e.disabled||(u.value=ae)}}),{themeClasses:f}=Ct(e),{rtlClasses:d,isRtl:v}=Tn(),{hasContent:h,onAfterLeave:g}=_T(e,c),p=Et(E(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:m,localTop:y,stackStyles:_}=lJ(c,oe(e,"zIndex"),e._disableGlobalStack),{activatorEl:b,activatorRef:x,target:S,targetEl:T,targetRef:C,activatorEvents:w,contentEvents:A,scrimEvents:D}=oJ(e,{isActive:c,isTop:y,contentEl:l}),{teleportTarget:P}=uJ(()=>{var te,se,G;const ae=e.attach||e.contained;if(ae)return ae;const Z=((te=b==null?void 0:b.value)==null?void 0:te.getRootNode())||((G=(se=i.proxy)==null?void 0:se.$el)==null?void 0:G.getRootNode());return Z instanceof ShadowRoot?Z:!1}),{dimensionStyles:k}=pn(e),L=UF(),{scopeId:V}=ku();Ce(()=>e.disabled,ae=>{ae&&(c.value=!1)});const{contentStyles:N,updateLocation:$}=Zq(e,{isRtl:v,contentEl:l,target:S,isActive:c});tJ(e,{root:o,contentEl:l,targetEl:T,isActive:c,updateLocation:$});function z(ae){a("click:outside",ae),e.persistent?ue():c.value=!1}function H(ae){return c.value&&m.value&&(!e.scrim||ae.target===s.value||ae instanceof MouseEvent&&ae.shadowTarget===s.value)}yt&&Ce(c,ae=>{ae?window.addEventListener("keydown",U):window.removeEventListener("keydown",U)},{immediate:!0}),Cn(()=>{yt&&window.removeEventListener("keydown",U)});function U(ae){var Z,te;ae.key==="Escape"&&m.value&&(e.persistent?ue():(c.value=!1,(Z=l.value)!=null&&Z.contains(document.activeElement)&&((te=b.value)==null||te.focus())))}const Y=oF();Cr(()=>e.closeOnBack,()=>{XK(Y,ae=>{m.value&&c.value?(ae(!1),e.persistent?ue():c.value=!1):ae()})});const J=ye();Ce(()=>c.value&&(e.absolute||e.contained)&&P.value==null,ae=>{if(ae){const Z=JC(o.value);Z&&Z!==document.scrollingElement&&(J.value=Z.scrollTop)}});function ue(){e.noClickAnimation||l.value&&Ml(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:bv})}function le(){a("afterEnter")}function be(){g(),a("afterLeave")}return ge(()=>{var ae;return I(ke,null,[(ae=n.activator)==null?void 0:ae.call(n,{isActive:c.value,targetRef:C,props:ve({ref:x},w.value,e.activatorProps)}),L.value&&h.value&&I(J6,{disabled:!P.value,to:P.value},{default:()=>[I("div",ve({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},f.value,d.value,e.class],style:[_.value,{"--v-overlay-opacity":e.opacity,top:De(J.value)},e.style],ref:o},V,r),[I(dJ,ve({color:p,modelValue:c.value&&!!e.scrim,ref:s},D.value),null),I(lr,{appear:!0,persisted:!0,transition:e.transition,target:S.value,onAfterEnter:le,onAfterLeave:be},{default:()=>{var Z;return[Zt(I("div",ve({ref:l,class:["v-overlay__content",e.contentClass],style:[k.value,N.value]},A.value,e.contentProps),[(Z=n.default)==null?void 0:Z.call(n,{isActive:c})]),[[Ma,c.value],[na("click-outside"),{handler:z,closeConditional:H,include:()=>[b.value]}]])]}})])]})])}),{activatorEl:b,scrimEl:s,target:S,animateClick:ue,contentEl:l,globalTop:m,localTop:y,updateLocation:$}}}),M_=Symbol("Forwarded refs");function L_(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ea(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{scopeId:a}=ku(),{isRtl:i}=Tn(),o=Wn(),s=E(()=>e.id||`v-menu-${o}`),l=ye(),u=rt(ax,null),c=Te(new Set);Lt(ax,{register(){c.value.add(o)},unregister(){c.value.delete(o)},closeParents(p){setTimeout(()=>{var m;!c.value.size&&!e.persistent&&(p==null||(m=l.value)!=null&&m.contentEl&&!pj(p,l.value.contentEl))&&(r.value=!1,u==null||u.closeParents())},40)}}),Cn(()=>{u==null||u.unregister(),document.removeEventListener("focusin",f)}),xC(()=>r.value=!1);async function f(p){var _,b,x;const m=p.relatedTarget,y=p.target;await ht(),r.value&&m!==y&&((_=l.value)!=null&&_.contentEl)&&((b=l.value)!=null&&b.globalTop)&&![document,l.value.contentEl].includes(y)&&!l.value.contentEl.contains(y)&&((x=_v(l.value.contentEl)[0])==null||x.focus())}Ce(r,p=>{p?(u==null||u.register(),yt&&document.addEventListener("focusin",f,{once:!0})):(u==null||u.unregister(),yt&&document.removeEventListener("focusin",f))},{immediate:!0});function d(p){u==null||u.closeParents(p)}function v(p){var m,y,_,b,x;if(!e.disabled)if(p.key==="Tab"||p.key==="Enter"&&!e.closeOnContentClick){if(p.key==="Enter"&&(p.target instanceof HTMLTextAreaElement||p.target instanceof HTMLInputElement&&p.target.closest("form")))return;p.key==="Enter"&&p.preventDefault(),mz(_v((m=l.value)==null?void 0:m.contentEl,!1),p.shiftKey?"prev":"next",T=>T.tabIndex>=0)||(r.value=!1,(_=(y=l.value)==null?void 0:y.activatorEl)==null||_.focus())}else e.submenu&&p.key===(i.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,(x=(b=l.value)==null?void 0:b.activatorEl)==null||x.focus())}function h(p){var y;if(e.disabled)return;const m=(y=l.value)==null?void 0:y.contentEl;m&&r.value?p.key==="ArrowDown"?(p.preventDefault(),p.stopImmediatePropagation(),Wl(m,"next")):p.key==="ArrowUp"?(p.preventDefault(),p.stopImmediatePropagation(),Wl(m,"prev")):e.submenu&&(p.key===(i.value?"ArrowRight":"ArrowLeft")?r.value=!1:p.key===(i.value?"ArrowLeft":"ArrowRight")&&(p.preventDefault(),Wl(m,"first"))):(e.submenu?p.key===(i.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(p.key))&&(r.value=!0,p.preventDefault(),setTimeout(()=>setTimeout(()=>h(p))))}const g=E(()=>ve({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":s.value,onKeydown:h},e.activatorProps));return ge(()=>{const p=ki.filterProps(e);return I(ki,ve({ref:l,id:s.value,class:["v-menu",e.class],style:e.style},p,{modelValue:r.value,"onUpdate:modelValue":m=>r.value=m,absolute:!0,activatorProps:g.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":d,onKeydown:v},a),{activator:n.activator,default:function(){for(var m=arguments.length,y=new Array(m),_=0;_{var b;return[(b=n.default)==null?void 0:b.call(n,...y)]}})}})}),Ea({id:s,ΨopenChildren:c},l)}}),vJ=ne({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Me(),...ai({transition:{component:sT}})},"VCounter"),r0=fe()({name:"VCounter",functional:!0,props:vJ(),setup(e,t){let{slots:n}=t;const r=E(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return ge(()=>I(lr,{transition:e.transition},{default:()=>[Zt(I("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[Ma,e.active]])]})),{}}}),hJ=ne({floating:Boolean,...Me()},"VFieldLabel"),wd=fe()({name:"VFieldLabel",props:hJ(),setup(e,t){let{slots:n}=t;return ge(()=>I(bf,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}}),gJ=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],wh=ne({appendInnerIcon:Ye,bgColor:String,clearable:Boolean,clearIcon:{type:Ye,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Ye,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>gJ.includes(e)},"onClick:clear":$n(),"onClick:appendInner":$n(),"onClick:prependInner":$n(),...Me(),...Jy(),...Yt(),...gt()},"VField"),xf=fe()({name:"VField",inheritAttrs:!1,props:{id:String,...bh(),...wh()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{themeClasses:i}=Ct(e),{loaderClasses:o}=ph(e),{focusClasses:s,isFocused:l,focus:u,blur:c}=ko(e),{InputIcon:f}=_F(e),{roundedClasses:d}=Qt(e),{rtlClasses:v}=Tn(),h=E(()=>e.dirty||e.active),g=E(()=>!e.singleLine&&!!(e.label||a.label)),p=Wn(),m=E(()=>e.id||`input-${p}`),y=E(()=>`${m.value}-messages`),_=ye(),b=ye(),x=ye(),S=E(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:T,backgroundColorStyles:C}=Et(oe(e,"bgColor")),{textColorClasses:w,textColorStyles:A}=Kn(E(()=>e.error||e.disabled?void 0:h.value&&l.value?e.color:e.baseColor));Ce(h,L=>{if(g.value){const V=_.value.$el,N=b.value.$el;requestAnimationFrame(()=>{const $=jC(V),z=N.getBoundingClientRect(),H=z.x-$.x,U=z.y-$.y-($.height/2-z.height/2),Y=z.width/.75,J=Math.abs(Y-$.width)>1?{maxWidth:De(Y)}:void 0,ue=getComputedStyle(V),le=getComputedStyle(N),be=parseFloat(ue.transitionDuration)*1e3||150,ae=parseFloat(le.getPropertyValue("--v-field-label-scale")),Z=le.getPropertyValue("color");V.style.visibility="visible",N.style.visibility="hidden",Ml(V,{transform:`translate(${H}px, ${U}px) scale(${ae})`,color:Z,...J},{duration:be,easing:bv,direction:L?"normal":"reverse"}).finished.then(()=>{V.style.removeProperty("visibility"),N.style.removeProperty("visibility")})})}},{flush:"post"});const D=E(()=>({isActive:h,isFocused:l,controlRef:x,blur:c,focus:u}));function P(L){L.target!==document.activeElement&&L.preventDefault()}function k(L){var V;L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),L.stopPropagation(),(V=e["onClick:clear"])==null||V.call(e,new MouseEvent("click")))}return ge(()=>{var H,U,Y;const L=e.variant==="outlined",V=!!(a["prepend-inner"]||e.prependInnerIcon),N=!!(e.clearable||a.clear),$=!!(a["append-inner"]||e.appendInnerIcon||N),z=()=>a.label?a.label({...D.value,label:e.label,props:{for:m.value}}):e.label;return I("div",ve({class:["v-field",{"v-field--active":h.value,"v-field--appended":$,"v-field--center-affix":e.centerAffix??!S.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":V,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!z(),[`v-field--variant-${e.variant}`]:!0},i.value,T.value,s.value,o.value,d.value,v.value,e.class],style:[C.value,e.style],onClick:P},n),[I("div",{class:"v-field__overlay"},null),I(mh,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:a.loader}),V&&I("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&I(f,{key:"prepend-icon",name:"prependInner"},null),(H=a["prepend-inner"])==null?void 0:H.call(a,D.value)]),I("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&I(wd,{key:"floating-label",ref:b,class:[w.value],floating:!0,for:m.value,style:A.value},{default:()=>[z()]}),I(wd,{ref:_,for:m.value},{default:()=>[z()]}),(U=a.default)==null?void 0:U.call(a,{...D.value,props:{id:m.value,class:"v-field__input","aria-describedby":y.value},focus:u,blur:c})]),N&&I(lT,{key:"clear"},{default:()=>[Zt(I("div",{class:"v-field__clearable",onMousedown:J=>{J.preventDefault(),J.stopPropagation()}},[I(lt,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[a.clear?a.clear({...D.value,props:{onKeydown:k,onFocus:u,onBlur:c,onClick:e["onClick:clear"]}}):I(f,{name:"clear",onKeydown:k,onFocus:u,onBlur:c},null)]})]),[[Ma,e.dirty]])]}),$&&I("div",{key:"append",class:"v-field__append-inner"},[(Y=a["append-inner"])==null?void 0:Y.call(a,D.value),e.appendInnerIcon&&I(f,{key:"append-icon",name:"appendInner"},null)]),I("div",{class:["v-field__outline",w.value],style:A.value},[L&&I(ke,null,[I("div",{class:"v-field__outline__start"},null),g.value&&I("div",{class:"v-field__outline__notch"},[I(wd,{ref:b,floating:!0,for:m.value},{default:()=>[z()]})]),I("div",{class:"v-field__outline__end"},null)]),S.value&&g.value&&I(wd,{ref:b,floating:!0,for:m.value},{default:()=>[z()]})])])}),{controlRef:x}}});function bT(e){const t=Object.keys(xf.props).filter(n=>!Gy(n)&&n!=="class"&&n!=="style");return UC(e,t)}const pJ=["color","file","time","date","datetime-local","week","month"],a0=ne({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Mo(),...wh()},"VTextField"),ou=fe()({name:"VTextField",directives:{Intersect:gh},inheritAttrs:!1,props:a0(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const i=Ve(e,"modelValue"),{isFocused:o,focus:s,blur:l}=ko(e),u=E(()=>typeof e.counterValue=="function"?e.counterValue(i.value):typeof e.counterValue=="number"?e.counterValue:(i.value??"").toString().length),c=E(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),f=E(()=>["plain","underlined"].includes(e.variant));function d(S,T){var C,w;!e.autofocus||!S||(w=(C=T[0].target)==null?void 0:C.focus)==null||w.call(C)}const v=ye(),h=ye(),g=ye(),p=E(()=>pJ.includes(e.type)||e.persistentPlaceholder||o.value||e.active);function m(){var S;g.value!==document.activeElement&&((S=g.value)==null||S.focus()),o.value||s()}function y(S){r("mousedown:control",S),S.target!==g.value&&(m(),S.preventDefault())}function _(S){m(),r("click:control",S)}function b(S){S.stopPropagation(),m(),ht(()=>{i.value=null,XC(e["onClick:clear"],S)})}function x(S){var C;const T=S.target;if(i.value=T.value,(C=e.modelModifiers)!=null&&C.trim&&["text","search","password","tel","url"].includes(e.type)){const w=[T.selectionStart,T.selectionEnd];ht(()=>{T.selectionStart=w[0],T.selectionEnd=w[1]})}}return ge(()=>{const S=!!(a.counter||e.counter!==!1&&e.counter!=null),T=!!(S||a.details),[C,w]=zs(n),{modelValue:A,...D}=qn.filterProps(e),P=bT(e);return I(qn,ve({ref:v,modelValue:i.value,"onUpdate:modelValue":k=>i.value=k,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":f.value},e.class],style:e.style},C,D,{centerAffix:!f.value,focused:o.value}),{...a,default:k=>{let{id:L,isDisabled:V,isDirty:N,isReadonly:$,isValid:z}=k;return I(xf,ve({ref:h,onMousedown:y,onClick:_,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},P,{id:L.value,active:p.value||N.value,dirty:N.value||e.dirty,disabled:V.value,focused:o.value,error:z.value===!1}),{...a,default:H=>{let{props:{class:U,...Y}}=H;const J=Zt(I("input",ve({ref:g,value:i.value,onInput:x,autofocus:e.autofocus,readonly:$.value,disabled:V.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:m,onBlur:l},Y,w),null),[[na("intersect"),{handler:d},null,{once:!0}]]);return I(ke,null,[e.prefix&&I("span",{class:"v-text-field__prefix"},[I("span",{class:"v-text-field__prefix__text"},[e.prefix])]),a.default?I("div",{class:U,"data-no-activator":""},[a.default(),J]):Pi(J,{class:U}),e.suffix&&I("span",{class:"v-text-field__suffix"},[I("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:T?k=>{var L;return I(ke,null,[(L=a.details)==null?void 0:L.call(a,k),S&&I(ke,null,[I("span",null,null),I(r0,{active:e.persistentCounter||o.value,value:u.value,max:c.value,disabled:e.disabled},a.counter)])])}:void 0})}),Ea({},v,h,g)}}),mJ=ne({renderless:Boolean,...Me()},"VVirtualScrollItem"),KF=fe()({name:"VVirtualScrollItem",inheritAttrs:!1,props:mJ(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{resizeRef:i,contentRect:o}=ti(void 0,"border");Ce(()=>{var s;return(s=o.value)==null?void 0:s.height},s=>{s!=null&&r("update:height",s)}),ge(()=>{var s,l;return e.renderless?I(ke,null,[(s=a.default)==null?void 0:s.call(a,{itemRef:i})]):I("div",ve({ref:i,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=a.default)==null?void 0:l.call(a)])})}}),yJ=-1,_J=1,E_=100,qF=ne({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function JF(e,t){const n=Wr(),r=Te(0);un(()=>{r.value=parseFloat(e.itemHeight||0)});const a=Te(0),i=Te(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),o=Te(0),s=Te(0),l=ye(),u=ye();let c=0;const{resizeRef:f,contentRect:d}=ti();un(()=>{f.value=l.value});const v=E(()=>{var H;return l.value===document.documentElement?n.height.value:((H=d.value)==null?void 0:H.height)||parseInt(e.height)||0}),h=E(()=>!!(l.value&&u.value&&v.value&&r.value));let g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length});const m=Te(0);let y=-1;function _(H){return g[H]||r.value}const b=fj(()=>{const H=performance.now();p[0]=0;const U=t.value.length;for(let Y=1;Y<=U-1;Y++)p[Y]=(p[Y-1]||0)+_(Y-1);m.value=Math.max(m.value,performance.now()-H)},m),x=Ce(h,H=>{H&&(x(),c=u.value.offsetTop,b.immediate(),V(),~y&&ht(()=>{yt&&window.requestAnimationFrame(()=>{$(y),y=-1})}))});er(()=>{b.clear()});function S(H,U){const Y=g[H],J=r.value;r.value=J?Math.min(r.value,U):U,(Y!==U||J!==r.value)&&(g[H]=U,b())}function T(H){return H=sn(H,0,t.value.length-1),p[H]||0}function C(H){return bJ(p,H)}let w=0,A=0,D=0;Ce(v,(H,U)=>{U&&(V(),H{A=0,V()}))});function P(){if(!l.value||!u.value)return;const H=l.value.scrollTop,U=performance.now();U-D>500?(A=Math.sign(H-w),c=u.value.offsetTop):A=H-w,w=H,D=U,V()}function k(){!l.value||!u.value||(A=0,D=0,V())}let L=-1;function V(){cancelAnimationFrame(L),L=requestAnimationFrame(N)}function N(){if(!l.value||!v.value)return;const H=w-c,U=Math.sign(A),Y=Math.max(0,H-E_),J=sn(C(Y),0,t.value.length),ue=H+v.value+E_,le=sn(C(ue)+1,J+1,t.value.length);if((U!==yJ||Ji.value)){const be=T(a.value)-T(J),ae=T(le)-T(i.value);Math.max(be,ae)>E_?(a.value=J,i.value=le):(J<=0&&(a.value=J),le>=t.value.length&&(i.value=le))}o.value=T(a.value),s.value=T(t.value.length)-T(i.value)}function $(H){const U=T(H);!l.value||H&&!U?y=H:l.value.scrollTop=U}const z=E(()=>t.value.slice(a.value,i.value).map((H,U)=>({raw:H,index:U+a.value})));return Ce(t,()=>{g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length}),b.immediate(),V()},{deep:!0}),{calculateVisibleItems:V,containerRef:l,markerRef:u,computedItems:z,paddingTop:o,paddingBottom:s,scrollToIndex:$,handleScroll:P,handleScrollend:k,handleItemResize:S}}function bJ(e,t){let n=e.length-1,r=0,a=0,i=null,o=-1;if(e[n]>1,i=e[a],i>t)n=a-1;else if(i[]},renderless:Boolean,...qF(),...Me(),...gn()},"VVirtualScroll"),i0=fe()({name:"VVirtualScroll",props:SJ(),setup(e,t){let{slots:n}=t;const r=Jt("VVirtualScroll"),{dimensionStyles:a}=pn(e),{calculateVisibleItems:i,containerRef:o,markerRef:s,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:f,paddingTop:d,paddingBottom:v,computedItems:h}=JF(e,oe(e,"items"));return Cr(()=>e.renderless,()=>{function g(){var y,_;const m=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[m]("scroll",l,{passive:!0}),document[m]("scrollend",u)):((y=o.value)==null||y[m]("scroll",l,{passive:!0}),(_=o.value)==null||_[m]("scrollend",u))}wn(()=>{o.value=JC(r.vnode.el,!0),g(!0)}),er(g)}),ge(()=>{const g=h.value.map(p=>I(KF,{key:p.index,renderless:e.renderless,"onUpdate:height":m=>c(p.index,m)},{default:m=>{var y;return(y=n.default)==null?void 0:y.call(n,{item:p.raw,index:p.index,...m})}}));return e.renderless?I(ke,null,[I("div",{ref:s,class:"v-virtual-scroll__spacer",style:{paddingTop:De(d.value)}},null),g,I("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:De(v.value)}},null)]):I("div",{ref:o,class:["v-virtual-scroll",e.class],onScrollPassive:l,onScrollend:u,style:[a.value,e.style]},[I("div",{ref:s,class:"v-virtual-scroll__container",style:{paddingTop:De(d.value),paddingBottom:De(v.value)}},[g])])}),{calculateVisibleItems:i,scrollToIndex:f}}});function ST(e,t){const n=Te(!1);let r;function a(s){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function i(){await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>{if(n.value){const l=Ce(n,()=>{l(),s()})}else s()})}async function o(s){var c,f;if(s.key==="Tab"&&((c=t.value)==null||c.focus()),!["PageDown","PageUp","Home","End"].includes(s.key))return;const l=(f=e.value)==null?void 0:f.$el;if(!l)return;(s.key==="Home"||s.key==="End")&&l.scrollTo({top:s.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await i();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(s.key==="PageDown"||s.key==="Home"){const d=l.getBoundingClientRect().top;for(const v of u)if(v.getBoundingClientRect().top>=d){v.focus();break}}else{const d=l.getBoundingClientRect().bottom;for(const v of[...u].reverse())if(v.getBoundingClientRect().bottom<=d){v.focus();break}}}return{onScrollPassive:a,onKeydown:o}}const xT=ne({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Ye,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...zF({itemChildren:!1})},"Select"),xJ=ne({...xT(),...vn(a0({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ai({transition:{component:jy}})},"VSelect"),wT=fe()({name:"VSelect",props:xJ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=nn(),a=ye(),i=ye(),o=ye(),s=Ve(e,"menu"),l=E({get:()=>s.value,set:H=>{var U;s.value&&!H&&((U=i.value)!=null&&U.ΨopenChildren.size)||(s.value=H)}}),{items:u,transformIn:c,transformOut:f}=gT(e),d=Ve(e,"modelValue",[],H=>c(H===null?[null]:jt(H)),H=>{const U=f(H);return e.multiple?U:U[0]??null}),v=E(()=>typeof e.counterValue=="function"?e.counterValue(d.value):typeof e.counterValue=="number"?e.counterValue:d.value.length),h=t0(),g=E(()=>d.value.map(H=>H.value)),p=Te(!1),m=E(()=>l.value?e.closeText:e.openText);let y="",_;const b=E(()=>e.hideSelected?u.value.filter(H=>!d.value.some(U=>e.valueComparator(U,H))):u.value),x=E(()=>e.hideNoData&&!b.value.length||e.readonly||(h==null?void 0:h.isReadonly.value)),S=E(()=>{var H;return{...e.menuProps,activatorProps:{...((H=e.menuProps)==null?void 0:H.activatorProps)||{},"aria-haspopup":"listbox"}}}),T=ye(),C=ST(T,a);function w(H){e.openOnClear&&(l.value=!0)}function A(){x.value||(l.value=!l.value)}function D(H){mm(H)&&P(H)}function P(H){var ue,le;if(!H.key||e.readonly||h!=null&&h.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(H.key)&&H.preventDefault(),["Enter","ArrowDown"," "].includes(H.key)&&(l.value=!0),["Escape","Tab"].includes(H.key)&&(l.value=!1),H.key==="Home"?(ue=T.value)==null||ue.focus("first"):H.key==="End"&&((le=T.value)==null||le.focus("last"));const U=1e3;if(e.multiple||!mm(H))return;const Y=performance.now();Y-_>U&&(y=""),y+=H.key.toLowerCase(),_=Y;const J=u.value.find(be=>be.title.toLowerCase().startsWith(y));if(J!==void 0){d.value=[J];const be=b.value.indexOf(J);yt&&window.requestAnimationFrame(()=>{var ae;be>=0&&((ae=o.value)==null||ae.scrollToIndex(be))})}}function k(H){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!H.props.disabled)if(e.multiple){const Y=d.value.findIndex(ue=>e.valueComparator(ue.value,H.value)),J=U??!~Y;if(~Y){const ue=J?[...d.value,H]:[...d.value];ue.splice(Y,1),d.value=ue}else J&&(d.value=[...d.value,H])}else{const Y=U!==!1;d.value=Y?[H]:[],ht(()=>{l.value=!1})}}function L(H){var U;(U=T.value)!=null&&U.$el.contains(H.relatedTarget)||(l.value=!1)}function V(){var H;e.eager&&((H=o.value)==null||H.calculateVisibleItems())}function N(){var H;p.value&&((H=a.value)==null||H.focus())}function $(H){p.value=!0}function z(H){if(H==null)d.value=[];else if(Kc(a.value,":autofill")||Kc(a.value,":-webkit-autofill")){const U=u.value.find(Y=>Y.title===H);U&&k(U)}else a.value&&(a.value.value="")}return Ce(l,()=>{if(!e.hideSelected&&l.value&&d.value.length){const H=b.value.findIndex(U=>d.value.some(Y=>e.valueComparator(Y.value,U.value)));yt&&window.requestAnimationFrame(()=>{var U;H>=0&&((U=o.value)==null||U.scrollToIndex(H))})}}),Ce(()=>e.items,(H,U)=>{l.value||p.value&&!U.length&&H.length&&(l.value=!0)}),ge(()=>{const H=!!(e.chips||n.chip),U=!!(!e.hideNoData||b.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Y=d.value.length>0,J=ou.filterProps(e),ue=Y||!p.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return I(ou,ve({ref:a},J,{modelValue:d.value.map(le=>le.props.value).join(", "),"onUpdate:modelValue":z,focused:p.value,"onUpdate:focused":le=>p.value=le,validationValue:d.externalValue,counterValue:v.value,dirty:Y,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":d.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:ue,"onClick:clear":w,"onMousedown:control":A,onBlur:L,onKeydown:P,"aria-label":r(m.value),title:r(m.value)}),{...n,default:()=>I(ke,null,[I(ef,ve({ref:i,modelValue:l.value,"onUpdate:modelValue":le=>l.value=le,activator:"parent",contentClass:"v-select__content",disabled:x.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:V,onAfterLeave:N},S.value),{default:()=>[U&&I(n0,ve({ref:T,selected:g.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:le=>le.preventDefault(),onKeydown:D,onFocusin:$,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},C,e.listProps),{default:()=>{var le,be,ae;return[(le=n["prepend-item"])==null?void 0:le.call(n),!b.value.length&&!e.hideNoData&&(((be=n["no-data"])==null?void 0:be.call(n))??I(yo,{title:r(e.noDataText)},null)),I(i0,{ref:o,renderless:!0,items:b.value},{default:Z=>{var j;let{item:te,index:se,itemRef:G}=Z;const B=ve(te.props,{ref:G,key:se,onClick:()=>k(te,null)});return((j=n.item)==null?void 0:j.call(n,{item:te,index:se,props:B}))??I(yo,ve(B,{role:"option"}),{prepend:M=>{let{isSelected:O}=M;return I(ke,null,[e.multiple&&!e.hideSelected?I(mo,{key:te.value,modelValue:O,ripple:!1,tabindex:"-1"},null):void 0,te.props.prependAvatar&&I(Pa,{image:te.props.prependAvatar},null),te.props.prependIcon&&I(wt,{icon:te.props.prependIcon},null)])}})}}),(ae=n["append-item"])==null?void 0:ae.call(n)]}})]}),d.value.map((le,be)=>{function ae(G){G.stopPropagation(),G.preventDefault(),k(le,!1)}const Z={"onClick:close":ae,onKeydown(G){G.key!=="Enter"&&G.key!==" "||(G.preventDefault(),G.stopPropagation(),ae(G))},onMousedown(G){G.preventDefault(),G.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},te=H?!!n.chip:!!n.selection,se=te?$y(H?n.chip({item:le,index:be,props:Z}):n.selection({item:le,index:be})):void 0;if(!(te&&!se))return I("div",{key:le.value,class:"v-select__selection"},[H?n.chip?I(lt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:le.title}}},{default:()=>[se]}):I(Sf,ve({key:"chip",closable:e.closableChips,size:"small",text:le.title,disabled:le.props.disabled},Z),null):se??I("span",{class:"v-select__selection-text"},[le.title,e.multiple&&bee==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),Ch=ne({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function CJ(e,t,n){var s;const r=[],a=(n==null?void 0:n.default)??wJ,i=n!=null&&n.filterKeys?jt(n.filterKeys):!1,o=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return r;e:for(let l=0;l0)&&!(n!=null&&n.noFilter)){if(typeof u=="object"){const p=i||Object.keys(c);for(const m of p){const y=bn(c,m),_=(s=n==null?void 0:n.customKeyFilter)==null?void 0:s[m];if(v=_?_(y,t,u):a(y,t,u),v!==-1&&v!==!1)_?f[m]=v:d[m]=v;else if((n==null?void 0:n.filterMode)==="every")continue e}}else v=a(u,t,u),v!==-1&&v!==!1&&(d.title=v);const h=Object.keys(d).length,g=Object.keys(f).length;if(!h&&!g||(n==null?void 0:n.filterMode)==="union"&&g!==o&&!h||(n==null?void 0:n.filterMode)==="intersection"&&(g!==o||!h))continue}r.push({index:l,matches:{...d,...f}})}return r}function Th(e,t,n,r){const a=ye([]),i=ye(new Map),o=E(()=>r!=null&&r.transform?Be(t).map(l=>[l,r.transform(l)]):Be(t));un(()=>{const l=typeof n=="function"?n():Be(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=CJ(o.value,u,{customKeyFilter:{...e.customKeyFilter,...Be(r==null?void 0:r.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),f=Be(t),d=[],v=new Map;c.forEach(h=>{let{index:g,matches:p}=h;const m=f[g];d.push(m),v.set(m.value,p)}),a.value=d,i.value=v});function s(l){return i.value.get(l.value)}return{filteredItems:a,filteredMatches:i,getMatches:s}}function TJ(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?I(ke,null,[I("span",{class:"v-autocomplete__unmask"},[e.substr(0,t)]),I("span",{class:"v-autocomplete__mask"},[e.substr(t,n)]),I("span",{class:"v-autocomplete__unmask"},[e.substr(t+n)])]):e}const AJ=ne({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Ch({filterKeys:["title"]}),...xT(),...vn(a0({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ai({transition:!1})},"VAutocomplete"),IJ=fe()({name:"VAutocomplete",props:AJ(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=nn(),a=ye(),i=Te(!1),o=Te(!0),s=Te(!1),l=ye(),u=ye(),c=Ve(e,"menu"),f=E({get:()=>c.value,set:B=>{var j;c.value&&!B&&((j=l.value)!=null&&j.ΨopenChildren.size)||(c.value=B)}}),d=Te(-1),v=E(()=>{var B;return(B=a.value)==null?void 0:B.color}),h=E(()=>f.value?e.closeText:e.openText),{items:g,transformIn:p,transformOut:m}=gT(e),{textColorClasses:y,textColorStyles:_}=Kn(v),b=Ve(e,"search",""),x=Ve(e,"modelValue",[],B=>p(B===null?[null]:jt(B)),B=>{const j=m(B);return e.multiple?j:j[0]??null}),S=E(()=>typeof e.counterValue=="function"?e.counterValue(x.value):typeof e.counterValue=="number"?e.counterValue:x.value.length),T=t0(),{filteredItems:C,getMatches:w}=Th(e,g,()=>o.value?"":b.value),A=E(()=>e.hideSelected?C.value.filter(B=>!x.value.some(j=>j.value===B.value)):C.value),D=E(()=>!!(e.chips||n.chip)),P=E(()=>D.value||!!n.selection),k=E(()=>x.value.map(B=>B.props.value)),L=E(()=>{var j;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&b.value===((j=A.value[0])==null?void 0:j.title))&&A.value.length>0&&!o.value&&!s.value}),V=E(()=>e.hideNoData&&!A.value.length||e.readonly||(T==null?void 0:T.isReadonly.value)),N=ye(),$=ST(N,a);function z(B){e.openOnClear&&(f.value=!0),b.value=""}function H(){V.value||(f.value=!0)}function U(B){V.value||(i.value&&(B.preventDefault(),B.stopPropagation()),f.value=!f.value)}function Y(B){var j;mm(B)&&((j=a.value)==null||j.focus())}function J(B){var O,X,K;if(e.readonly||T!=null&&T.isReadonly.value)return;const j=a.value.selectionStart,M=x.value.length;if((d.value>-1||["Enter","ArrowDown","ArrowUp"].includes(B.key))&&B.preventDefault(),["Enter","ArrowDown"].includes(B.key)&&(f.value=!0),["Escape"].includes(B.key)&&(f.value=!1),L.value&&["Enter","Tab"].includes(B.key)&&!x.value.some(q=>{let{value:re}=q;return re===A.value[0].value})&&G(A.value[0]),B.key==="ArrowDown"&&L.value&&((O=N.value)==null||O.focus("next")),["Backspace","Delete"].includes(B.key)){if(!e.multiple&&P.value&&x.value.length>0&&!b.value)return G(x.value[0],!1);if(~d.value){const q=d.value;G(x.value[d.value],!1),d.value=q>=M-1?M-2:q}else B.key==="Backspace"&&!b.value&&(d.value=M-1)}if(e.multiple){if(B.key==="ArrowLeft"){if(d.value<0&&j>0)return;const q=d.value>-1?d.value-1:M-1;x.value[q]?d.value=q:(d.value=-1,a.value.setSelectionRange((X=b.value)==null?void 0:X.length,(K=b.value)==null?void 0:K.length))}if(B.key==="ArrowRight"){if(d.value<0)return;const q=d.value+1;x.value[q]?d.value=q:(d.value=-1,a.value.setSelectionRange(0,0))}}}function ue(B){if(Kc(a.value,":autofill")||Kc(a.value,":-webkit-autofill")){const j=g.value.find(M=>M.title===B.target.value);j&&G(j)}}function le(){var B;e.eager&&((B=u.value)==null||B.calculateVisibleItems())}function be(){var B;i.value&&(o.value=!0,(B=a.value)==null||B.focus())}function ae(B){i.value=!0,setTimeout(()=>{s.value=!0})}function Z(B){s.value=!1}function te(B){(B==null||B===""&&!e.multiple&&!P.value)&&(x.value=[])}const se=Te(!1);function G(B){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!B||B.props.disabled))if(e.multiple){const M=x.value.findIndex(X=>e.valueComparator(X.value,B.value)),O=j??!~M;if(~M){const X=O?[...x.value,B]:[...x.value];X.splice(M,1),x.value=X}else O&&(x.value=[...x.value,B]);e.clearOnSelect&&(b.value="")}else{const M=j!==!1;x.value=M?[B]:[],b.value=M&&!P.value?B.title:"",ht(()=>{f.value=!1,o.value=!0})}}return Ce(i,(B,j)=>{var M;B!==j&&(B?(se.value=!0,b.value=e.multiple||P.value?"":String(((M=x.value.at(-1))==null?void 0:M.props.title)??""),o.value=!0,ht(()=>se.value=!1)):(!e.multiple&&b.value==null&&(x.value=[]),f.value=!1,x.value.some(O=>{let{title:X}=O;return X===b.value})||(b.value=""),d.value=-1))}),Ce(b,B=>{!i.value||se.value||(B&&(f.value=!0),o.value=!B)}),Ce(f,()=>{if(!e.hideSelected&&f.value&&x.value.length){const B=A.value.findIndex(j=>x.value.some(M=>j.value===M.value));yt&&window.requestAnimationFrame(()=>{var j;B>=0&&((j=u.value)==null||j.scrollToIndex(B))})}}),Ce(()=>e.items,(B,j)=>{f.value||i.value&&!j.length&&B.length&&(f.value=!0)}),ge(()=>{const B=!!(!e.hideNoData||A.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),j=x.value.length>0,M=ou.filterProps(e);return I(ou,ve({ref:a},M,{modelValue:b.value,"onUpdate:modelValue":[O=>b.value=O,te],focused:i.value,"onUpdate:focused":O=>i.value=O,validationValue:x.externalValue,counterValue:S.value,dirty:j,onChange:ue,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":f.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!P.value,"v-autocomplete--selecting-index":d.value>-1},e.class],style:e.style,readonly:e.readonly,placeholder:j?void 0:e.placeholder,"onClick:clear":z,"onMousedown:control":H,onKeydown:J}),{...n,default:()=>I(ke,null,[I(ef,ve({ref:l,modelValue:f.value,"onUpdate:modelValue":O=>f.value=O,activator:"parent",contentClass:"v-autocomplete__content",disabled:V.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:le,onAfterLeave:be},e.menuProps),{default:()=>[B&&I(n0,ve({ref:N,selected:k.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:O=>O.preventDefault(),onKeydown:Y,onFocusin:ae,onFocusout:Z,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},$,e.listProps),{default:()=>{var O,X,K;return[(O=n["prepend-item"])==null?void 0:O.call(n),!A.value.length&&!e.hideNoData&&(((X=n["no-data"])==null?void 0:X.call(n))??I(yo,{title:r(e.noDataText)},null)),I(i0,{ref:u,renderless:!0,items:A.value},{default:q=>{var Q;let{item:re,index:me,itemRef:F}=q;const W=ve(re.props,{ref:F,key:me,active:L.value&&me===0?!0:void 0,onClick:()=>G(re,null)});return((Q=n.item)==null?void 0:Q.call(n,{item:re,index:me,props:W}))??I(yo,ve(W,{role:"option"}),{prepend:_e=>{let{isSelected:xe}=_e;return I(ke,null,[e.multiple&&!e.hideSelected?I(mo,{key:re.value,modelValue:xe,ripple:!1,tabindex:"-1"},null):void 0,re.props.prependAvatar&&I(Pa,{image:re.props.prependAvatar},null),re.props.prependIcon&&I(wt,{icon:re.props.prependIcon},null)])},title:()=>{var _e,xe;return o.value?re.title:TJ(re.title,(_e=w(re))==null?void 0:_e.title,((xe=b.value)==null?void 0:xe.length)??0)}})}}),(K=n["append-item"])==null?void 0:K.call(n)]}})]}),x.value.map((O,X)=>{function K(F){F.stopPropagation(),F.preventDefault(),G(O,!1)}const q={"onClick:close":K,onKeydown(F){F.key!=="Enter"&&F.key!==" "||(F.preventDefault(),F.stopPropagation(),K(F))},onMousedown(F){F.preventDefault(),F.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},re=D.value?!!n.chip:!!n.selection,me=re?$y(D.value?n.chip({item:O,index:X,props:q}):n.selection({item:O,index:X})):void 0;if(!(re&&!me))return I("div",{key:O.value,class:["v-autocomplete__selection",X===d.value&&["v-autocomplete__selection--selected",y.value]],style:X===d.value?_.value:{}},[D.value?n.chip?I(lt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:O.title}}},{default:()=>[me]}):I(Sf,ve({key:"chip",closable:e.closableChips,size:"small",text:O.title,disabled:O.props.disabled},q),null):me??I("span",{class:"v-autocomplete__selection-text"},[O.title,e.multiple&&X(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(c)?+(e.offsetY??0):["left","right"].includes(c)?+(e.offsetX??0):0));return ge(()=>{const c=Number(e.content),f=!e.max||isNaN(c)?e.content:c<=+e.max?c:`${e.max}+`,[d,v]=F1(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return I(e.tag,ve({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},v,{style:e.style}),{default:()=>{var h,g;return[I("div",{class:"v-badge__wrapper"},[(g=(h=t.slots).default)==null?void 0:g.call(h),I(lr,{transition:e.transition},{default:()=>{var p,m;return[Zt(I("span",ve({class:["v-badge__badge",l.value,n.value,a.value,o.value],style:[r.value,s.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":i(e.label,c),"aria-live":"polite",role:"status"},d),[e.dot?void 0:t.slots.badge?(m=(p=t.slots).badge)==null?void 0:m.call(p):e.icon?I(wt,{icon:e.icon},null):f]),[[Ma,e.modelValue]])]}})])]}})}),{}}}),kJ=ne({color:String,density:String,...Me()},"VBannerActions"),QF=fe()({name:"VBannerActions",props:kJ(),setup(e,t){let{slots:n}=t;return Kt({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),ge(()=>{var r;return I("div",{class:["v-banner-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),e5=zi("v-banner-text"),MJ=ne({avatar:String,bgColor:String,color:String,icon:Ye,lines:String,stacked:Boolean,sticky:Boolean,text:String,...Ur(),...Me(),...Nn(),...gn(),...Su({mobile:null}),...An(),...Do(),...yf(),...Yt(),...nt(),...gt()},"VBanner"),LJ=fe()({name:"VBanner",props:MJ(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(e,"bgColor"),{borderClasses:i}=oa(e),{densityClasses:o}=dr(e),{displayClasses:s,mobile:l}=Wr(e),{dimensionStyles:u}=pn(e),{elevationClasses:c}=Un(e),{locationStyles:f}=Pu(e),{positionClasses:d}=_f(e),{roundedClasses:v}=Qt(e),{themeClasses:h}=Ct(e),g=oe(e,"color"),p=oe(e,"density");Kt({VBannerActions:{color:g,density:p}}),ge(()=>{const m=!!(e.text||n.text),y=!!(e.avatar||e.icon),_=!!(y||n.prepend);return I(e.tag,{class:["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},h.value,r.value,i.value,o.value,s.value,c.value,d.value,v.value,e.class],style:[a.value,u.value,f.value,e.style],role:"banner"},{default:()=>{var b;return[_&&I("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?I(lt,{key:"prepend-defaults",disabled:!y,defaults:{VAvatar:{color:g.value,density:p.value,icon:e.icon,image:e.avatar}}},n.prepend):I(Pa,{key:"prepend-avatar",color:g.value,density:p.value,icon:e.icon,image:e.avatar},null)]),I("div",{class:"v-banner__content"},[m&&I(e5,{key:"text"},{default:()=>{var x;return[((x=n.text)==null?void 0:x.call(n))??e.text]}}),(b=n.default)==null?void 0:b.call(n)]),n.actions&&I(QF,{key:"actions"},n.actions)]}})})}}),EJ=ne({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...Ur(),...Me(),...Nn(),...An(),...Yt(),...xu({name:"bottom-navigation"}),...nt({tag:"header"}),...Au({selectedClass:"v-btn--selected"}),...gt()},"VBottomNavigation"),RJ=fe()({name:"VBottomNavigation",props:EJ(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=rT(),{borderClasses:a}=oa(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Et(oe(e,"bgColor")),{densityClasses:s}=dr(e),{elevationClasses:l}=Un(e),{roundedClasses:u}=Qt(e),{ssrBootStyles:c}=Cu(),f=E(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),d=Ve(e,"active",e.active),{layoutItemStyles:v}=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:E(()=>"bottom"),layoutSize:E(()=>d.value?f.value:0),elementSize:f,active:d,absolute:oe(e,"absolute")});return Hs(e,cT),Kt({VBtn:{baseColor:oe(e,"baseColor"),color:oe(e,"color"),density:oe(e,"density"),stacked:E(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),ge(()=>I(e.tag,{class:["v-bottom-navigation",{"v-bottom-navigation--active":d.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},r.value,i.value,a.value,s.value,l.value,u.value,e.class],style:[o.value,v.value,{height:De(f.value)},c.value,e.style]},{default:()=>[n.default&&I("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}}),t5=ne({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...xh({origin:"center center",scrollStrategy:"block",transition:{component:jy},zIndex:2400})},"VDialog"),ix=fe()({name:"VDialog",props:t5(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Ve(e,"modelValue"),{scopeId:i}=ku(),o=ye();function s(c){var v,h;const f=c.relatedTarget,d=c.target;if(f!==d&&((v=o.value)!=null&&v.contentEl)&&((h=o.value)!=null&&h.globalTop)&&![document,o.value.contentEl].includes(d)&&!o.value.contentEl.contains(d)){const g=_v(o.value.contentEl);if(!g.length)return;const p=g[0],m=g[g.length-1];f===p?m.focus():p.focus()}}Cn(()=>{document.removeEventListener("focusin",s)}),yt&&Ce(()=>a.value&&e.retainFocus,c=>{c?document.addEventListener("focusin",s):document.removeEventListener("focusin",s)},{immediate:!0});function l(){var c;n("afterEnter"),(c=o.value)!=null&&c.contentEl&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function u(){n("afterLeave")}return Ce(a,async c=>{var f;c||(await ht(),(f=o.value.activatorEl)==null||f.focus({preventScroll:!0}))}),ge(()=>{const c=ki.filterProps(e),f=ve({"aria-haspopup":"dialog"},e.activatorProps),d=ve({tabindex:-1},e.contentProps);return I(ki,ve({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:a.value,"onUpdate:modelValue":v=>a.value=v,"aria-modal":"true",activatorProps:f,contentProps:d,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:l,onAfterLeave:u},i),{activator:r.activator,default:function(){for(var v=arguments.length,h=new Array(v),g=0;g{var p;return[(p=r.default)==null?void 0:p.call(r,...h)]}})}})}),Ea({},o)}}),VJ=ne({inset:Boolean,...t5({transition:"bottom-sheet-transition"})},"VBottomSheet"),OJ=fe()({name:"VBottomSheet",props:VJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue");return ge(()=>{const a=ix.filterProps(e);return I(ix,ve(a,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:r.value,"onUpdate:modelValue":i=>r.value=i,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}}),NJ=ne({divider:[Number,String],...Me()},"VBreadcrumbsDivider"),n5=fe()({name:"VBreadcrumbsDivider",props:NJ(),setup(e,t){let{slots:n}=t;return ge(()=>{var r;return I("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((r=n==null?void 0:n.default)==null?void 0:r.call(n))??e.divider])}),{}}}),BJ=ne({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...Me(),..._h(),...nt({tag:"li"})},"VBreadcrumbsItem"),r5=fe()({name:"VBreadcrumbsItem",props:BJ(),setup(e,t){let{slots:n,attrs:r}=t;const a=yh(e,r),i=E(()=>{var u;return e.active||((u=a.isActive)==null?void 0:u.value)}),o=E(()=>i.value?e.activeColor:e.color),{textColorClasses:s,textColorStyles:l}=Kn(o);return ge(()=>I(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":i.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:i.value&&e.activeClass},s.value,e.class],style:[l.value,e.style],"aria-current":i.value?"page":void 0},{default:()=>{var u,c;return[a.isLink.value?I("a",ve({class:"v-breadcrumbs-item--link",onClick:a.navigate},a.linkProps),[((c=n.default)==null?void 0:c.call(n))??e.title]):((u=n.default)==null?void 0:u.call(n))??e.title]}})),{}}}),zJ=ne({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:Ye,items:{type:Array,default:()=>[]},...Me(),...Nn(),...Yt(),...nt({tag:"ul"})},"VBreadcrumbs"),FJ=fe()({name:"VBreadcrumbs",props:zJ(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(oe(e,"bgColor")),{densityClasses:i}=dr(e),{roundedClasses:o}=Qt(e);Kt({VBreadcrumbsDivider:{divider:oe(e,"divider")},VBreadcrumbsItem:{activeClass:oe(e,"activeClass"),activeColor:oe(e,"activeColor"),color:oe(e,"color"),disabled:oe(e,"disabled")}});const s=E(()=>e.items.map(l=>typeof l=="string"?{item:{title:l},raw:l}:{item:l,raw:l}));return ge(()=>{const l=!!(n.prepend||e.icon);return I(e.tag,{class:["v-breadcrumbs",r.value,i.value,o.value,e.class],style:[a.value,e.style]},{default:()=>{var u;return[l&&I("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?I(lt,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):I(wt,{key:"prepend-icon",start:!0,icon:e.icon},null)]),s.value.map((c,f,d)=>{var g;let{item:v,raw:h}=c;return I(ke,null,[((g=n.item)==null?void 0:g.call(n,{item:v,index:f}))??I(r5,ve({key:f,disabled:f>=d.length-1},typeof v=="string"?{title:v}:v),{default:n.title?()=>{var p;return(p=n.title)==null?void 0:p.call(n,{item:v,index:f})}:void 0}),f{var p;return(p=n.divider)==null?void 0:p.call(n,{item:h,index:f})}:void 0})])}),(u=n.default)==null?void 0:u.call(n)]}})}),{}}}),a5=fe()({name:"VCardActions",props:Me(),setup(e,t){let{slots:n}=t;return Kt({VBtn:{slim:!0,variant:"text"}}),ge(()=>{var r;return I("div",{class:["v-card-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),HJ=ne({opacity:[Number,String],...Me(),...nt()},"VCardSubtitle"),i5=fe()({name:"VCardSubtitle",props:HJ(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-card-subtitle",e.class],style:[{"--v-card-subtitle-opacity":e.opacity},e.style]},n)),{}}}),o5=zi("v-card-title"),GJ=ne({appendAvatar:String,appendIcon:Ye,prependAvatar:String,prependIcon:Ye,subtitle:[String,Number],title:[String,Number],...Me(),...Nn()},"VCardItem"),s5=fe()({name:"VCardItem",props:GJ(),setup(e,t){let{slots:n}=t;return ge(()=>{var u;const r=!!(e.prependAvatar||e.prependIcon),a=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),s=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return I("div",{class:["v-card-item",e.class],style:e.style},[a&&I("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?I(lt,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):I(ke,null,[e.prependAvatar&&I(Pa,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(wt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),I("div",{class:"v-card-item__content"},[s&&I(o5,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&I(i5,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),o&&I("div",{key:"append",class:"v-card-item__append"},[n.append?I(lt,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):I(ke,null,[e.appendIcon&&I(wt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(Pa,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])])}),{}}}),$J=ne({opacity:[Number,String],...Me(),...nt()},"VCardText"),l5=fe()({name:"VCardText",props:$J(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-card-text",e.class],style:[{"--v-card-text-opacity":e.opacity},e.style]},n)),{}}}),WJ=ne({appendAvatar:String,appendIcon:Ye,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Ye,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...Ur(),...Me(),...Nn(),...gn(),...An(),...Jy(),...Do(),...yf(),...Yt(),..._h(),...nt(),...gt(),...La({variant:"elevated"})},"VCard"),UJ=fe()({name:"VCard",directives:{Ripple:Po},props:WJ(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=Ct(e),{borderClasses:i}=oa(e),{colorClasses:o,colorStyles:s,variantClasses:l}=Tu(e),{densityClasses:u}=dr(e),{dimensionStyles:c}=pn(e),{elevationClasses:f}=Un(e),{loaderClasses:d}=ph(e),{locationStyles:v}=Pu(e),{positionClasses:h}=_f(e),{roundedClasses:g}=Qt(e),p=yh(e,n),m=E(()=>e.link!==!1&&p.isLink.value),y=E(()=>!e.disabled&&e.link!==!1&&(e.link||p.isClickable.value));return ge(()=>{const _=m.value?"a":e.tag,b=!!(r.title||e.title!=null),x=!!(r.subtitle||e.subtitle!=null),S=b||x,T=!!(r.append||e.appendAvatar||e.appendIcon),C=!!(r.prepend||e.prependAvatar||e.prependIcon),w=!!(r.image||e.image),A=S||C||T,D=!!(r.text||e.text!=null);return Zt(I(_,ve({class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":y.value},a.value,i.value,o.value,u.value,f.value,d.value,h.value,g.value,l.value,e.class],style:[s.value,c.value,v.value,e.style],onClick:y.value&&p.navigate,tabindex:e.disabled?-1:void 0},p.linkProps),{default:()=>{var P;return[w&&I("div",{key:"image",class:"v-card__image"},[r.image?I(lt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):I(po,{key:"image-img",cover:!0,src:e.image},null)]),I(mh,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),A&&I(s5,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),D&&I(l5,{key:"text"},{default:()=>{var k;return[((k=r.text)==null?void 0:k.call(r))??e.text]}}),(P=r.default)==null?void 0:P.call(r),r.actions&&I(a5,null,{default:r.actions}),Fs(y.value,"v-card")]}}),[[na("ripple"),y.value&&e.ripple]])}),{}}}),YJ=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:a}=e,i=.5,o=16;e.offsetX=n-t,e.offsetY=a-r,Math.abs(e.offsetY)t+o&&e.right(e)),Math.abs(e.offsetX)r+o&&e.down(e))};function XJ(e,t){var r;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(r=t.start)==null||r.call(t,{originalEvent:e,...t})}function jJ(e,t){var r;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(r=t.end)==null||r.call(t,{originalEvent:e,...t}),YJ(t)}function ZJ(e,t){var r;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(r=t.move)==null||r.call(t,{originalEvent:e,...t})}function KJ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>XJ(n,t),touchend:n=>jJ(n,t),touchmove:n=>ZJ(n,t)}}function qJ(e,t){var s;const n=t.value,r=n!=null&&n.parent?e.parentElement:e,a=(n==null?void 0:n.options)??{passive:!0},i=(s=t.instance)==null?void 0:s.$.uid;if(!r||!i)return;const o=KJ(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[i]=o,vz(o).forEach(l=>{r.addEventListener(l,o[l],a)})}function JJ(e,t){var i,o;const n=(i=t.value)!=null&&i.parent?e.parentElement:e,r=(o=t.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const a=n._touchHandlers[r];vz(a).forEach(s=>{n.removeEventListener(s,a[s])}),delete n._touchHandlers[r]}const CT={mounted:qJ,unmounted:JJ},u5=Symbol.for("vuetify:v-window"),c5=Symbol.for("vuetify:v-window-group"),o0=ne({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...Me(),...nt(),...gt()},"VWindow"),su=fe()({name:"VWindow",directives:{Touch:CT},props:o0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{isRtl:a}=Tn(),{t:i}=nn(),o=Hs(e,c5),s=ye(),l=E(()=>a.value?!e.reverse:e.reverse),u=Te(!1),c=E(()=>{const b=e.direction==="vertical"?"y":"x",S=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${b}${S}-transition`}),f=Te(0),d=ye(void 0),v=E(()=>o.items.value.findIndex(b=>o.selected.value.includes(b.id)));Ce(v,(b,x)=>{const S=o.items.value.length,T=S-1;S<=2?u.value=be.continuous||v.value!==0),g=E(()=>e.continuous||v.value!==o.items.value.length-1);function p(){h.value&&o.prev()}function m(){g.value&&o.next()}const y=E(()=>{const b=[],x={icon:a.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:o.prev,"aria-label":i("$vuetify.carousel.prev")};b.push(h.value?n.prev?n.prev({props:x}):I(xt,x,null):I("div",null,null));const S={icon:a.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:o.next,"aria-label":i("$vuetify.carousel.next")};return b.push(g.value?n.next?n.next({props:S}):I(xt,S,null):I("div",null,null)),b}),_=E(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?p():m()},right:()=>{l.value?m():p()},start:x=>{let{originalEvent:S}=x;S.stopPropagation()}},...e.touch===!0?{}:e.touch});return ge(()=>Zt(I(e.tag,{ref:s,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},r.value,e.class],style:e.style},{default:()=>{var b,x;return[I("div",{class:"v-window__container",style:{height:d.value}},[(b=n.default)==null?void 0:b.call(n,{group:o}),e.showArrows!==!1&&I("div",{class:"v-window__controls"},[y.value])]),(x=n.additional)==null?void 0:x.call(n,{group:o})]}}),[[na("touch"),_.value]])),{group:o}}}),QJ=ne({color:String,cycle:Boolean,delimiterIcon:{type:Ye,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...o0({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),eQ=fe()({name:"VCarousel",props:QJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{t:a}=nn(),i=ye();let o=-1;Ce(r,l),Ce(()=>e.interval,l),Ce(()=>e.cycle,u=>{u?l():window.clearTimeout(o)}),wn(s);function s(){!e.cycle||!i.value||(o=window.setTimeout(i.value.group.next,+e.interval>0?+e.interval:6e3))}function l(){window.clearTimeout(o),window.requestAnimationFrame(s)}return ge(()=>{const u=su.filterProps(e);return I(su,ve({ref:i},u,{modelValue:r.value,"onUpdate:modelValue":c=>r.value=c,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:De(e.height)},e.style]}),{default:n.default,additional:c=>{let{group:f}=c;return I(ke,null,[!e.hideDelimiters&&I("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[f.items.value.length>0&&I(lt,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[f.items.value.map((d,v)=>{const h={id:`carousel-item-${d.id}`,"aria-label":a("$vuetify.carousel.ariaLabel.delimiter",v+1,f.items.value.length),class:["v-carousel__controls__item",f.isSelected(d.id)&&"v-btn--active"],onClick:()=>f.select(d.id,!0)};return n.item?n.item({props:h,item:d}):I(xt,ve(d,h),null)})]})]),e.progress&&I(qy,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(f.getItemIndex(r.value)+1)/f.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),s0=ne({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Me(),...Iu(),...yT()},"VWindowItem"),lu=fe()({name:"VWindowItem",directives:{Touch:CT},props:s0(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=rt(u5),a=Du(e,c5),{isBooted:i}=Cu();if(!r||!a)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=Te(!1),s=E(()=>i.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!o.value||!r||(o.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){var h;o.value||!r||(o.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=De((h=r.rootRef.value)==null?void 0:h.clientHeight)),r.transitionCount.value+=1)}function c(){l()}function f(h){o.value&&ht(()=>{!s.value||!o.value||!r||(r.transitionHeight.value=De(h.clientHeight))})}const d=E(()=>{const h=r.isReversed.value?e.reverseTransition:e.transition;return s.value?{name:typeof h!="string"?r.transition.value:h,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:f}:!1}),{hasContent:v}=_T(e,a.isSelected);return ge(()=>I(lr,{transition:d.value,disabled:!i.value},{default:()=>{var h;return[Zt(I("div",{class:["v-window-item",a.selectedClass.value,e.class],style:e.style},[v.value&&((h=n.default)==null?void 0:h.call(n))]),[[Ma,a.isSelected.value]])]}})),{groupItem:a}}}),tQ=ne({...nF(),...s0()},"VCarouselItem"),nQ=fe()({name:"VCarouselItem",inheritAttrs:!1,props:tQ(),setup(e,t){let{slots:n,attrs:r}=t;ge(()=>{const a=po.filterProps(e),i=lu.filterProps(e);return I(lu,ve({class:["v-carousel-item",e.class]},i),{default:()=>[I(po,ve(r,a),n)]})})}}),rQ=zi("v-code","code"),aQ=ne({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...Me()},"VColorPickerCanvas"),iQ=aa({name:"VColorPickerCanvas",props:aQ(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const r=Te(!1),a=ye(),i=Te(parseFloat(e.width)),o=Te(parseFloat(e.height)),s=ye({x:0,y:0}),l=E({get:()=>s.value,set(p){var _,b;if(!a.value)return;const{x:m,y}=p;s.value=p,n("update:color",{h:((_=e.color)==null?void 0:_.h)??0,s:sn(m,0,i.value)/i.value,v:1-sn(y,0,o.value)/o.value,a:((b=e.color)==null?void 0:b.a)??1})}}),u=E(()=>{const{x:p,y:m}=l.value,y=parseInt(e.dotSize,10)/2;return{width:De(e.dotSize),height:De(e.dotSize),transform:`translate(${De(p-y)}, ${De(m-y)})`}}),{resizeRef:c}=ti(p=>{var _;if(!((_=c.el)!=null&&_.offsetParent))return;const{width:m,height:y}=p[0].contentRect;i.value=m,o.value=y});function f(p,m,y){const{left:_,top:b,width:x,height:S}=y;l.value={x:sn(p-_,0,x),y:sn(m-b,0,S)}}function d(p){p.type==="mousedown"&&p.preventDefault(),!e.disabled&&(v(p),window.addEventListener("mousemove",v),window.addEventListener("mouseup",h),window.addEventListener("touchmove",v),window.addEventListener("touchend",h))}function v(p){if(e.disabled||!a.value)return;r.value=!0;const m=hj(p);f(m.clientX,m.clientY,a.value.getBoundingClientRect())}function h(){window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",h),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",h)}function g(){var b;if(!a.value)return;const p=a.value,m=p.getContext("2d");if(!m)return;const y=m.createLinearGradient(0,0,p.width,0);y.addColorStop(0,"hsla(0, 0%, 100%, 1)"),y.addColorStop(1,`hsla(${((b=e.color)==null?void 0:b.h)??0}, 100%, 50%, 1)`),m.fillStyle=y,m.fillRect(0,0,p.width,p.height);const _=m.createLinearGradient(0,0,0,p.height);_.addColorStop(0,"hsla(0, 0%, 0%, 0)"),_.addColorStop(1,"hsla(0, 0%, 0%, 1)"),m.fillStyle=_,m.fillRect(0,0,p.width,p.height)}return Ce(()=>{var p;return(p=e.color)==null?void 0:p.h},g,{immediate:!0}),Ce(()=>[i.value,o.value],(p,m)=>{g(),s.value={x:l.value.x*p[0]/m[0],y:l.value.y*p[1]/m[1]}},{flush:"post"}),Ce(()=>e.color,()=>{if(r.value){r.value=!1;return}s.value=e.color?{x:e.color.s*i.value,y:(1-e.color.v)*o.value}:{x:0,y:0}},{deep:!0,immediate:!0}),wn(()=>g()),ge(()=>I("div",{ref:c,class:["v-color-picker-canvas",e.class],style:e.style,onMousedown:d,onTouchstartPassive:d},[I("canvas",{ref:a,width:i.value,height:o.value},null),e.color&&I("div",{class:["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}],style:u.value},null)])),{}}});function oQ(e,t){if(t){const{a:n,...r}=e;return r}return e}function sQ(e,t){if(t==null||typeof t=="string"){const n=kz(e);return e.a===1?n.slice(0,7):n}if(typeof t=="object"){let n;return kl(t,["r","g","b"])?n=go(e):kl(t,["h","s","l"])?n=Cz(e):kl(t,["h","s","v"])&&(n=e),oQ(n,!kl(t,["a"])&&e.a===1)}return e}const Tc={h:0,s:0,v:0,a:1},ox={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)})},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)})},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:go,from:Wy};var $O;const lQ={...ox,inputs:($O=ox.inputs)==null?void 0:$O.slice(0,3)},sx={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)})},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)})},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:Cz,from:KC},uQ={...sx,inputs:sx.inputs.slice(0,3)},f5={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t}],to:kz,from:Pz},cQ={...f5,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t}]},Yl={rgb:lQ,rgba:ox,hsl:uQ,hsla:sx,hex:cQ,hexa:f5},fQ=e=>{let{label:t,...n}=e;return I("div",{class:"v-color-picker-edit__input"},[I("input",n,null),I("span",null,[t])])},dQ=ne({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Yl).includes(e)},modes:{type:Array,default:()=>Object.keys(Yl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Yl).includes(t))},...Me()},"VColorPickerEdit"),vQ=aa({name:"VColorPickerEdit",props:dQ(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const r=E(()=>e.modes.map(i=>({...Yl[i],name:i}))),a=E(()=>{var s;const i=r.value.find(l=>l.name===e.mode);if(!i)return[];const o=e.color?i.to(e.color):null;return(s=i.inputs)==null?void 0:s.map(l=>{let{getValue:u,getColor:c,...f}=l;return{...i.inputProps,...f,disabled:e.disabled,value:o&&u(o),onChange:d=>{const v=d.target;v&&n("update:color",i.from(c(o??i.to(Tc),v.value)))}}})});return ge(()=>{var i;return I("div",{class:["v-color-picker-edit",e.class],style:e.style},[(i=a.value)==null?void 0:i.map(o=>I(fQ,o,null)),r.value.length>1&&I(xt,{icon:"$unfold",size:"x-small",variant:"plain",onClick:()=>{const o=r.value.findIndex(s=>s.name===e.mode);n("update:mode",r.value[(o+1)%r.value.length].name)}},null)])}),{}}}),TT=Symbol.for("vuetify:v-slider");function lx(e,t,n){const r=n==="vertical",a=t.getBoundingClientRect(),i="touches"in e?e.touches[0]:e;return r?i.clientY-(a.top+a.height/2):i.clientX-(a.left+a.width/2)}function hQ(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const d5=ne({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...Yt(),...An({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),v5=e=>{const t=E(()=>parseFloat(e.min)),n=E(()=>parseFloat(e.max)),r=E(()=>+e.step>0?parseFloat(e.step):0),a=E(()=>Math.max(FP(r.value),FP(t.value)));function i(o){if(o=parseFloat(o),r.value<=0)return o;const s=sn(o,t.value,n.value),l=t.value%r.value,u=Math.round((s-l)/r.value)*r.value+l;return parseFloat(Math.min(u,n.value).toFixed(a.value))}return{min:t,max:n,step:r,decimals:a,roundValue:i}},h5=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:a,onSliderEnd:i,getActiveThumb:o}=e;const{isRtl:s}=Tn(),l=oe(t,"reverse"),u=E(()=>t.direction==="vertical"),c=E(()=>u.value!==l.value),{min:f,max:d,step:v,decimals:h,roundValue:g}=n,p=E(()=>parseInt(t.thumbSize,10)),m=E(()=>parseInt(t.tickSize,10)),y=E(()=>parseInt(t.trackSize,10)),_=E(()=>(d.value-f.value)/v.value),b=oe(t,"disabled"),x=E(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),S=E(()=>t.error||t.disabled?void 0:t.trackColor??t.color),T=E(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),C=Te(!1),w=Te(0),A=ye(),D=ye();function P(ae){var X;const Z=t.direction==="vertical",te=Z?"top":"left",se=Z?"height":"width",G=Z?"clientY":"clientX",{[te]:B,[se]:j}=(X=A.value)==null?void 0:X.$el.getBoundingClientRect(),M=hQ(ae,G);let O=Math.min(Math.max((M-B-w.value)/j,0),1)||0;return(Z?c.value:c.value!==s.value)&&(O=1-O),g(f.value+O*(d.value-f.value))}const k=ae=>{i({value:P(ae)}),C.value=!1,w.value=0},L=ae=>{D.value=o(ae),D.value&&(D.value.focus(),C.value=!0,D.value.contains(ae.target)?w.value=lx(ae,D.value,t.direction):(w.value=0,a({value:P(ae)})),r({value:P(ae)}))},V={passive:!0,capture:!0};function N(ae){a({value:P(ae)})}function $(ae){ae.stopPropagation(),ae.preventDefault(),k(ae),window.removeEventListener("mousemove",N,V),window.removeEventListener("mouseup",$)}function z(ae){var Z;k(ae),window.removeEventListener("touchmove",N,V),(Z=ae.target)==null||Z.removeEventListener("touchend",z)}function H(ae){var Z;L(ae),window.addEventListener("touchmove",N,V),(Z=ae.target)==null||Z.addEventListener("touchend",z,{passive:!1})}function U(ae){ae.preventDefault(),L(ae),window.addEventListener("mousemove",N,V),window.addEventListener("mouseup",$,{passive:!1})}const Y=ae=>{const Z=(ae-f.value)/(d.value-f.value)*100;return sn(isNaN(Z)?0:Z,0,100)},J=oe(t,"showTicks"),ue=E(()=>J.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(ae=>({value:ae,position:Y(ae),label:ae.toString()})):Object.keys(t.ticks).map(ae=>({value:parseFloat(ae),position:Y(parseFloat(ae)),label:t.ticks[ae]})):_.value!==1/0?xi(_.value+1).map(ae=>{const Z=f.value+ae*v.value;return{value:Z,position:Y(Z)}}):[]:[]),le=E(()=>ue.value.some(ae=>{let{label:Z}=ae;return!!Z})),be={activeThumbRef:D,color:oe(t,"color"),decimals:h,disabled:b,direction:oe(t,"direction"),elevation:oe(t,"elevation"),hasLabels:le,isReversed:l,indexFromEnd:c,min:f,max:d,mousePressed:C,numTicks:_,onSliderMousedown:U,onSliderTouchstart:H,parsedTicks:ue,parseMouseMove:P,position:Y,readonly:oe(t,"readonly"),rounded:oe(t,"rounded"),roundValue:g,showTicks:J,startOffset:w,step:v,thumbSize:p,thumbColor:x,thumbLabel:oe(t,"thumbLabel"),ticks:oe(t,"ticks"),tickSize:m,trackColor:S,trackContainerRef:A,trackFillColor:T,trackSize:y,vertical:u};return Lt(TT,be),be},gQ=ne({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...Me()},"VSliderThumb"),ux=fe()({name:"VSliderThumb",directives:{Ripple:Po},props:gQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=rt(TT),{isRtl:i,rtlClasses:o}=Tn();if(!a)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:s,step:l,disabled:u,thumbSize:c,thumbLabel:f,direction:d,isReversed:v,vertical:h,readonly:g,elevation:p,mousePressed:m,decimals:y,indexFromEnd:_}=a,b=E(()=>u.value?void 0:p.value),{elevationClasses:x}=Un(b),{textColorClasses:S,textColorStyles:T}=Kn(s),{pageup:C,pagedown:w,end:A,home:D,left:P,right:k,down:L,up:V}=z1,N=[C,w,A,D,P,k,L,V],$=E(()=>l.value?[1,2,3]:[1,5,10]);function z(U,Y){if(!N.includes(U.key))return;U.preventDefault();const J=l.value||.1,ue=(e.max-e.min)/J;if([P,k,L,V].includes(U.key)){const be=(h.value?[i.value?P:k,v.value?L:V]:_.value!==i.value?[P,V]:[k,V]).includes(U.key)?1:-1,ae=U.shiftKey?2:U.ctrlKey?1:0;Y=Y+be*J*$.value[ae]}else if(U.key===D)Y=e.min;else if(U.key===A)Y=e.max;else{const le=U.key===w?1:-1;Y=Y-le*J*(ue>100?ue/10:10)}return Math.max(e.min,Math.min(e.max,Y))}function H(U){const Y=z(U,e.modelValue);Y!=null&&r("update:modelValue",Y)}return ge(()=>{const U=De(_.value?100-e.position:e.position,"%");return I("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&m.value},e.class,o.value],style:[{"--v-slider-thumb-position":U,"--v-slider-thumb-size":De(c.value)},e.style],role:"slider",tabindex:u.value?-1:0,"aria-label":e.name,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!g.value,"aria-orientation":d.value,onKeydown:g.value?void 0:H},[I("div",{class:["v-slider-thumb__surface",S.value,x.value],style:{...T.value}},null),Zt(I("div",{class:["v-slider-thumb__ripple",S.value],style:T.value},null),[[na("ripple"),e.ripple,null,{circle:!0,center:!0}]]),I(oT,{origin:"bottom center"},{default:()=>{var Y;return[Zt(I("div",{class:"v-slider-thumb__label-container"},[I("div",{class:["v-slider-thumb__label"]},[I("div",null,[((Y=n["thumb-label"])==null?void 0:Y.call(n,{modelValue:e.modelValue}))??e.modelValue.toFixed(l.value?y.value:1)])])]),[[Ma,f.value&&e.focused||f.value==="always"]])]}})])}),{}}}),pQ=ne({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Me()},"VSliderTrack"),g5=fe()({name:"VSliderTrack",props:pQ(),emits:{},setup(e,t){let{slots:n}=t;const r=rt(TT);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:a,parsedTicks:i,rounded:o,showTicks:s,tickSize:l,trackColor:u,trackFillColor:c,trackSize:f,vertical:d,min:v,max:h,indexFromEnd:g}=r,{roundedClasses:p}=Qt(o),{backgroundColorClasses:m,backgroundColorStyles:y}=Et(c),{backgroundColorClasses:_,backgroundColorStyles:b}=Et(u),x=E(()=>`inset-${d.value?"block":"inline"}-${g.value?"end":"start"}`),S=E(()=>d.value?"height":"width"),T=E(()=>({[x.value]:"0%",[S.value]:"100%"})),C=E(()=>e.stop-e.start),w=E(()=>({[x.value]:De(e.start,"%"),[S.value]:De(C.value,"%")})),A=E(()=>s.value?(d.value?i.value.slice().reverse():i.value).map((P,k)=>{var V;const L=P.value!==v.value&&P.value!==h.value?De(P.position,"%"):void 0;return I("div",{key:P.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":P.position>=e.start&&P.position<=e.stop,"v-slider-track__tick--first":P.value===v.value,"v-slider-track__tick--last":P.value===h.value}],style:{[x.value]:L}},[(P.label||n["tick-label"])&&I("div",{class:"v-slider-track__tick-label"},[((V=n["tick-label"])==null?void 0:V.call(n,{tick:P,index:k}))??P.label])])}):[]);return ge(()=>I("div",{class:["v-slider-track",p.value,e.class],style:[{"--v-slider-track-size":De(f.value),"--v-slider-tick-size":De(l.value)},e.style]},[I("div",{class:["v-slider-track__background",_.value,{"v-slider-track__background--opacity":!!a.value||!c.value}],style:{...T.value,...b.value}},null),I("div",{class:["v-slider-track__fill",m.value],style:{...w.value,...y.value}},null),s.value&&I("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":s.value==="always"}]},[A.value])])),{}}}),mQ=ne({...bh(),...d5(),...Mo(),modelValue:{type:[Number,String],default:0}},"VSlider"),cx=fe()({name:"VSlider",props:mQ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ye(),{rtlClasses:i}=Tn(),o=v5(e),s=Ve(e,"modelValue",void 0,S=>o.roundValue(S??o.min.value)),{min:l,max:u,mousePressed:c,roundValue:f,onSliderMousedown:d,onSliderTouchstart:v,trackContainerRef:h,position:g,hasLabels:p,readonly:m}=h5({props:e,steps:o,onSliderStart:()=>{r("start",s.value)},onSliderEnd:S=>{let{value:T}=S;const C=f(T);s.value=C,r("end",C)},onSliderMove:S=>{let{value:T}=S;return s.value=f(T)},getActiveThumb:()=>{var S;return(S=a.value)==null?void 0:S.$el}}),{isFocused:y,focus:_,blur:b}=ko(e),x=E(()=>g(s.value));return ge(()=>{const S=qn.filterProps(e),T=!!(e.label||n.label||n.prepend);return I(qn,ve({class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||p.value,"v-slider--focused":y.value,"v-slider--pressed":c.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},S,{focused:y.value}),{...n,prepend:T?C=>{var w,A;return I(ke,null,[((w=n.label)==null?void 0:w.call(n,C))??(e.label?I(bf,{id:C.id.value,class:"v-slider__label",text:e.label},null):void 0),(A=n.prepend)==null?void 0:A.call(n,C)])}:void 0,default:C=>{let{id:w,messagesId:A}=C;return I("div",{class:"v-slider__container",onMousedown:m.value?void 0:d,onTouchstartPassive:m.value?void 0:v},[I("input",{id:w.value,name:e.name||w.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:s.value},null),I(g5,{ref:h,start:0,stop:x.value},{"tick-label":n["tick-label"]}),I(ux,{ref:a,"aria-describedby":A.value,focused:y.value,min:l.value,max:u.value,modelValue:s.value,"onUpdate:modelValue":D=>s.value=D,position:x.value,elevation:e.elevation,onFocus:_,onBlur:b,ripple:e.ripple,name:e.name},{"thumb-label":n["thumb-label"]})])}})}),{}}}),yQ=ne({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,...Me()},"VColorPickerPreview"),_Q=aa({name:"VColorPickerPreview",props:yQ(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const r=new AbortController;ch(()=>r.abort());async function a(){if(!OP)return;const i=new window.EyeDropper;try{const o=await i.open({signal:r.signal}),s=Pz(o.sRGBHex);n("update:color",{...e.color??Tc,...s})}catch{}}return ge(()=>{var i,o;return I("div",{class:["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class],style:e.style},[OP&&I("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[I(xt,{onClick:a,icon:"$eyeDropper",variant:"plain",density:"comfortable"},null)]),I("div",{class:"v-color-picker-preview__dot"},[I("div",{style:{background:Az(e.color??Tc)}},null)]),I("div",{class:"v-color-picker-preview__sliders"},[I(cx,{class:"v-color-picker-preview__track v-color-picker-preview__hue",modelValue:(i=e.color)==null?void 0:i.h,"onUpdate:modelValue":s=>n("update:color",{...e.color??Tc,h:s}),step:0,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&I(cx,{class:"v-color-picker-preview__track v-color-picker-preview__alpha",modelValue:((o=e.color)==null?void 0:o.a)??1,"onUpdate:modelValue":s=>n("update:color",{...e.color??Tc,a:s}),step:1/256,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])}),{}}}),bQ={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},SQ={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},xQ={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},wQ={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},CQ={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},TQ={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},AQ={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},IQ={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},DQ={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},PQ={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},kQ={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},MQ={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},LQ={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},EQ={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},RQ={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},VQ={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},OQ={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},NQ={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},BQ={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},zQ={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},FQ={red:bQ,pink:SQ,purple:xQ,deepPurple:wQ,indigo:CQ,blue:TQ,lightBlue:AQ,cyan:IQ,teal:DQ,green:PQ,lightGreen:kQ,lime:MQ,yellow:LQ,amber:EQ,orange:RQ,deepOrange:VQ,brown:OQ,blueGrey:NQ,grey:BQ,shades:zQ},HQ=ne({swatches:{type:Array,default:()=>GQ(FQ)},disabled:Boolean,color:Object,maxHeight:[Number,String],...Me()},"VColorPickerSwatches");function GQ(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const $Q=aa({name:"VColorPickerSwatches",props:HQ(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;return ge(()=>I("div",{class:["v-color-picker-swatches",e.class],style:[{maxHeight:De(e.maxHeight)},e.style]},[I("div",null,[e.swatches.map(r=>I("div",{class:"v-color-picker-swatches__swatch"},[r.map(a=>{const i=xa(a),o=Wy(i),s=Tz(i);return I("div",{class:"v-color-picker-swatches__color",onClick:()=>o&&n("update:color",o)},[I("div",{style:{background:s}},[e.color&&Ni(e.color,o)?I(wt,{size:"x-small",icon:"$success",color:zj(a,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),l0=ne({color:String,...Ur(),...Me(),...gn(),...An(),...Do(),...yf(),...Yt(),...nt(),...gt()},"VSheet"),uu=fe()({name:"VSheet",props:l0(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Et(oe(e,"color")),{borderClasses:o}=oa(e),{dimensionStyles:s}=pn(e),{elevationClasses:l}=Un(e),{locationStyles:u}=Pu(e),{positionClasses:c}=_f(e),{roundedClasses:f}=Qt(e);return ge(()=>I(e.tag,{class:["v-sheet",r.value,a.value,o.value,l.value,c.value,f.value,e.class],style:[i.value,s.value,u.value,e.style]},n)),{}}}),WQ=ne({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Yl).includes(e)},modes:{type:Array,default:()=>Object.keys(Yl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Yl).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...vn(l0({width:300}),["height","location","minHeight","maxHeight","minWidth","maxWidth"])},"VColorPicker"),UQ=aa({name:"VColorPicker",props:WQ(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e){const t=Ve(e,"mode"),n=ye(null),r=Ve(e,"modelValue",void 0,l=>{if(l==null||l==="")return null;let u;try{u=Wy(xa(l))}catch{return null}return u},l=>l?sQ(l,e.modelValue):null),a=E(()=>r.value?{...r.value,h:n.value??r.value.h}:null),{rtlClasses:i}=Tn();let o=!0;Ce(r,l=>{if(!o){o=!0;return}l&&(n.value=l.h)},{immediate:!0});const s=l=>{o=!1,n.value=l.h,r.value=l};return Ly(()=>{e.modes.includes(t.value)||(t.value=e.modes[0])}),Kt({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),ge(()=>{const l=uu.filterProps(e);return I(uu,ve({rounded:e.rounded,elevation:e.elevation,theme:e.theme,class:["v-color-picker",i.value,e.class],style:[{"--v-color-picker-color-hsv":Az({...a.value??Tc,a:1})},e.style]},l,{maxWidth:e.width}),{default:()=>[!e.hideCanvas&&I(iQ,{key:"canvas",color:a.value,"onUpdate:color":s,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&I("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&I(_Q,{key:"preview",color:a.value,"onUpdate:color":s,hideAlpha:!t.value.endsWith("a"),disabled:e.disabled},null),!e.hideInputs&&I(vQ,{key:"edit",modes:e.modes,mode:t.value,"onUpdate:mode":u=>t.value=u,color:a.value,"onUpdate:color":s,disabled:e.disabled},null)]),e.showSwatches&&I($Q,{key:"swatches",color:a.value,"onUpdate:color":s,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)]})}),{}}});function YQ(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?I(ke,null,[I("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),I("span",{class:"v-combobox__mask"},[e.substr(t,n)]),I("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const XQ=ne({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Ch({filterKeys:["title"]}),...xT({hideNoData:!0,returnObject:!0}),...vn(a0({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ai({transition:!1})},"VCombobox"),jQ=fe()({name:"VCombobox",props:XQ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var j;let{emit:n,slots:r}=t;const{t:a}=nn(),i=ye(),o=Te(!1),s=Te(!0),l=Te(!1),u=ye(),c=ye(),f=Ve(e,"menu"),d=E({get:()=>f.value,set:M=>{var O;f.value&&!M&&((O=u.value)!=null&&O.ΨopenChildren.size)||(f.value=M)}}),v=Te(-1);let h=!1;const g=E(()=>{var M;return(M=i.value)==null?void 0:M.color}),p=E(()=>d.value?e.closeText:e.openText),{items:m,transformIn:y,transformOut:_}=gT(e),{textColorClasses:b,textColorStyles:x}=Kn(g),S=Ve(e,"modelValue",[],M=>y(jt(M)),M=>{const O=_(M);return e.multiple?O:O[0]??null}),T=t0(),C=E(()=>!!(e.chips||r.chip)),w=E(()=>C.value||!!r.selection),A=Te(!e.multiple&&!w.value?((j=S.value[0])==null?void 0:j.title)??"":""),D=E({get:()=>A.value,set:M=>{var O;if(A.value=M??"",!e.multiple&&!w.value&&(S.value=[as(e,M)]),M&&e.multiple&&((O=e.delimiters)!=null&&O.length)){const X=M.split(new RegExp(`(?:${e.delimiters.join("|")})+`));X.length>1&&(X.forEach(K=>{K=K.trim(),K&&te(as(e,K))}),A.value="")}M||(v.value=-1),s.value=!M}}),P=E(()=>typeof e.counterValue=="function"?e.counterValue(S.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?S.value.length:D.value.length);Ce(A,M=>{h?ht(()=>h=!1):o.value&&!d.value&&(d.value=!0),n("update:search",M)}),Ce(S,M=>{var O;!e.multiple&&!w.value&&(A.value=((O=M[0])==null?void 0:O.title)??"")});const{filteredItems:k,getMatches:L}=Th(e,m,()=>s.value?"":D.value),V=E(()=>e.hideSelected?k.value.filter(M=>!S.value.some(O=>O.value===M.value)):k.value),N=E(()=>S.value.map(M=>M.value)),$=E(()=>{var O;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&D.value===((O=V.value[0])==null?void 0:O.title))&&V.value.length>0&&!s.value&&!l.value}),z=E(()=>e.hideNoData&&!V.value.length||e.readonly||(T==null?void 0:T.isReadonly.value)),H=ye(),U=ST(H,i);function Y(M){h=!0,e.openOnClear&&(d.value=!0)}function J(){z.value||(d.value=!0)}function ue(M){z.value||(o.value&&(M.preventDefault(),M.stopPropagation()),d.value=!d.value)}function le(M){var O;mm(M)&&((O=i.value)==null||O.focus())}function be(M){var K;if(cj(M)||e.readonly||T!=null&&T.isReadonly.value)return;const O=i.value.selectionStart,X=S.value.length;if((v.value>-1||["Enter","ArrowDown","ArrowUp"].includes(M.key))&&M.preventDefault(),["Enter","ArrowDown"].includes(M.key)&&(d.value=!0),["Escape"].includes(M.key)&&(d.value=!1),["Enter","Escape","Tab"].includes(M.key)&&($.value&&["Enter","Tab"].includes(M.key)&&!S.value.some(q=>{let{value:re}=q;return re===V.value[0].value})&&te(k.value[0]),s.value=!0),M.key==="ArrowDown"&&$.value&&((K=H.value)==null||K.focus("next")),M.key==="Enter"&&D.value&&(te(as(e,D.value)),w.value&&(A.value="")),["Backspace","Delete"].includes(M.key)){if(!e.multiple&&w.value&&S.value.length>0&&!D.value)return te(S.value[0],!1);if(~v.value){const q=v.value;te(S.value[v.value],!1),v.value=q>=X-1?X-2:q}else M.key==="Backspace"&&!D.value&&(v.value=X-1)}if(e.multiple){if(M.key==="ArrowLeft"){if(v.value<0&&O>0)return;const q=v.value>-1?v.value-1:X-1;S.value[q]?v.value=q:(v.value=-1,i.value.setSelectionRange(D.value.length,D.value.length))}if(M.key==="ArrowRight"){if(v.value<0)return;const q=v.value+1;S.value[q]?v.value=q:(v.value=-1,i.value.setSelectionRange(0,0))}}}function ae(){var M;e.eager&&((M=c.value)==null||M.calculateVisibleItems())}function Z(){var M;o.value&&(s.value=!0,(M=i.value)==null||M.focus())}function te(M){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!M||M.props.disabled))if(e.multiple){const X=S.value.findIndex(q=>e.valueComparator(q.value,M.value)),K=O??!~X;if(~X){const q=K?[...S.value,M]:[...S.value];q.splice(X,1),S.value=q}else K&&(S.value=[...S.value,M]);e.clearOnSelect&&(D.value="")}else{const X=O!==!1;S.value=X?[M]:[],A.value=X&&!w.value?M.title:"",ht(()=>{d.value=!1,s.value=!0})}}function se(M){o.value=!0,setTimeout(()=>{l.value=!0})}function G(M){l.value=!1}function B(M){(M==null||M===""&&!e.multiple&&!w.value)&&(S.value=[])}return Ce(o,(M,O)=>{if(!(M||M===O)&&(v.value=-1,d.value=!1,D.value)){if(e.multiple){te(as(e,D.value));return}if(!w.value)return;S.value.some(X=>{let{title:K}=X;return K===D.value})?A.value="":te(as(e,D.value))}}),Ce(d,()=>{if(!e.hideSelected&&d.value&&S.value.length){const M=V.value.findIndex(O=>S.value.some(X=>e.valueComparator(X.value,O.value)));yt&&window.requestAnimationFrame(()=>{var O;M>=0&&((O=c.value)==null||O.scrollToIndex(M))})}}),Ce(()=>e.items,(M,O)=>{d.value||o.value&&!O.length&&M.length&&(d.value=!0)}),ge(()=>{const M=!!(!e.hideNoData||V.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),O=S.value.length>0,X=ou.filterProps(e);return I(ou,ve({ref:i},X,{modelValue:D.value,"onUpdate:modelValue":[K=>D.value=K,B],focused:o.value,"onUpdate:focused":K=>o.value=K,validationValue:S.externalValue,counterValue:P.value,dirty:O,class:["v-combobox",{"v-combobox--active-menu":d.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!w.value,"v-combobox--selecting-index":v.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:O?void 0:e.placeholder,"onClick:clear":Y,"onMousedown:control":J,onKeydown:be}),{...r,default:()=>I(ke,null,[I(ef,ve({ref:u,modelValue:d.value,"onUpdate:modelValue":K=>d.value=K,activator:"parent",contentClass:"v-combobox__content",disabled:z.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:ae,onAfterLeave:Z},e.menuProps),{default:()=>[M&&I(n0,ve({ref:H,selected:N.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:K=>K.preventDefault(),onKeydown:le,onFocusin:se,onFocusout:G,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},U,e.listProps),{default:()=>{var K,q,re;return[(K=r["prepend-item"])==null?void 0:K.call(r),!V.value.length&&!e.hideNoData&&(((q=r["no-data"])==null?void 0:q.call(r))??I(yo,{title:a(e.noDataText)},null)),I(i0,{ref:c,renderless:!0,items:V.value},{default:me=>{var xe;let{item:F,index:W,itemRef:Q}=me;const _e=ve(F.props,{ref:Q,key:W,active:$.value&&W===0?!0:void 0,onClick:()=>te(F,null)});return((xe=r.item)==null?void 0:xe.call(r,{item:F,index:W,props:_e}))??I(yo,ve(_e,{role:"option"}),{prepend:Se=>{let{isSelected:ie}=Se;return I(ke,null,[e.multiple&&!e.hideSelected?I(mo,{key:F.value,modelValue:ie,ripple:!1,tabindex:"-1"},null):void 0,F.props.prependAvatar&&I(Pa,{image:F.props.prependAvatar},null),F.props.prependIcon&&I(wt,{icon:F.props.prependIcon},null)])},title:()=>{var Se,ie;return s.value?F.title:YQ(F.title,(Se=L(F))==null?void 0:Se.title,((ie=D.value)==null?void 0:ie.length)??0)}})}}),(re=r["append-item"])==null?void 0:re.call(r)]}})]}),S.value.map((K,q)=>{function re(Q){Q.stopPropagation(),Q.preventDefault(),te(K,!1)}const me={"onClick:close":re,onKeydown(Q){Q.key!=="Enter"&&Q.key!==" "||(Q.preventDefault(),Q.stopPropagation(),re(Q))},onMousedown(Q){Q.preventDefault(),Q.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},F=C.value?!!r.chip:!!r.selection,W=F?$y(C.value?r.chip({item:K,index:q,props:me}):r.selection({item:K,index:q})):void 0;if(!(F&&!W))return I("div",{key:K.value,class:["v-combobox__selection",q===v.value&&["v-combobox__selection--selected",b.value]],style:q===v.value?x.value:{}},[C.value?r.chip?I(lt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:K.title}}},{default:()=>[W]}):I(Sf,ve({key:"chip",closable:e.closableChips,size:"small",text:K.title,disabled:K.props.disabled},me),null):W??I("span",{class:"v-combobox__selection-text"},[K.title,e.multiple&&q!0,save:e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Ve(e,"modelValue"),i=ye();un(()=>{i.value=structuredClone(Xe(a.value))});const{t:o}=nn(),s=E(()=>Ni(a.value,i.value));function l(){a.value=i.value,n("save",i.value)}function u(){i.value=structuredClone(Xe(a.value)),n("cancel")}let c=!1;return ge(()=>{var d;const f=I(ke,null,[I(xt,{disabled:s.value,variant:"text",color:e.color,onClick:u,text:o(e.cancelText)},null),I(xt,{disabled:s.value,variant:"text",color:e.color,onClick:l,text:o(e.okText)},null)]);return I(ke,null,[(d=r.default)==null?void 0:d.call(r,{model:i,save:l,cancel:u,isPristine:s.value,get actions(){return c=!0,f}}),!c&&f])}),{save:l,cancel:u,isPristine:s}}}),p5=ne({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),m5=Symbol.for("vuetify:datatable:expanded");function u0(e){const t=oe(e,"expandOnClick"),n=Ve(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function r(s,l){const u=new Set(n.value);l?u.add(s.value):u.delete(s.value),n.value=u}function a(s){return n.value.has(s.value)}function i(s){r(s,!a(s))}const o={expand:r,expanded:n,expandOnClick:t,isExpanded:a,toggleExpand:i};return Lt(m5,o),o}function y5(){const e=rt(m5);if(!e)throw new Error("foo");return e}const AT=ne({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),_5=Symbol.for("vuetify:data-table-group");function IT(e){return{groupBy:Ve(e,"groupBy")}}function c0(e){const{disableSort:t,groupBy:n,sortBy:r}=e,a=ye(new Set),i=E(()=>n.value.map(c=>({...c,order:c.order??!1})).concat(t!=null&&t.value?[]:r.value));function o(c){return a.value.has(c.id)}function s(c){const f=new Set(a.value);o(c)?f.delete(c.id):f.add(c.id),a.value=f}function l(c){function f(d){const v=[];for(const h of d.items)"type"in h&&h.type==="group"?v.push(...f(h)):v.push(h);return v}return f({items:c})}const u={sortByWithGroups:i,toggleGroup:s,opened:a,groupBy:n,extractRows:l,isGroupOpen:o};return Lt(_5,u),u}function b5(){const e=rt(_5);if(!e)throw new Error("Missing group!");return e}function qQ(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const a=iu(r.raw,t);n.has(a)||n.set(a,[]),n.get(a).push(r)}return n}function S5(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const a=qQ(e,t[0]),i=[],o=t.slice(1);return a.forEach((s,l)=>{const u=t[0],c=`${r}_${u}_${l}`;i.push({depth:n,id:c,key:u,value:l,items:o.length?S5(s,o,n+1,c):s,type:"group"})}),i}function x5(e,t){const n=[];for(const r of e)"type"in r&&r.type==="group"?(r.value!=null&&n.push(r),(t.has(r.id)||r.value==null)&&n.push(...x5(r.items,t))):n.push(r);return n}function f0(e,t,n){return{flatItems:E(()=>{if(!t.value.length)return e.value;const a=S5(e.value,t.value.map(i=>i.key));return x5(a,n.value)})}}function d0(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:a,search:i}=e;const o=Jt("VDataTable"),s=E(()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:a.value,search:i.value}));let l=null;Ce(s,()=>{Ni(l,s.value)||(l&&l.search!==s.value.search&&(t.value=1),o.emit("update:options",s.value),l=s.value)},{deep:!0,immediate:!0})}const DT=ne({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),w5=Symbol.for("vuetify:data-table-pagination");function PT(e){const t=Ve(e,"page",void 0,r=>+(r??1)),n=Ve(e,"itemsPerPage",void 0,r=>+(r??10));return{page:t,itemsPerPage:n}}function kT(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,a=E(()=>n.value===-1?0:n.value*(t.value-1)),i=E(()=>n.value===-1?r.value:Math.min(r.value,a.value+n.value)),o=E(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));Ce([t,o],()=>{t.value>o.value&&(t.value=o.value)});function s(d){n.value=d,t.value=1}function l(){t.value=sn(t.value+1,1,o.value)}function u(){t.value=sn(t.value-1,1,o.value)}function c(d){t.value=sn(d,1,o.value)}const f={page:t,itemsPerPage:n,startIndex:a,stopIndex:i,pageCount:o,itemsLength:r,nextPage:l,prevPage:u,setPage:c,setItemsPerPage:s};return Lt(w5,f),f}function JQ(){const e=rt(w5);if(!e)throw new Error("Missing pagination!");return e}function C5(e){const t=Jt("usePaginatedItems"),{items:n,startIndex:r,stopIndex:a,itemsPerPage:i}=e,o=E(()=>i.value<=0?n.value:n.value.slice(r.value,a.value));return Ce(o,s=>{t.emit("update:currentItems",s)}),{paginatedItems:o}}const QQ={showSelectAll:!1,allSelected:()=>[],select:e=>{var r;let{items:t,value:n}=e;return new Set(n?[(r=t[0])==null?void 0:r.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},T5={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return T5.select({items:n,value:t,selected:r})}},A5={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,allItems:n,selected:r}=e;return A5.select({items:n,value:t,selected:r})}},I5=ne({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:Ni}},"DataTable-select"),D5=Symbol.for("vuetify:data-table-selection");function v0(e,t){let{allItems:n,currentPage:r}=t;const a=Ve(e,"modelValue",e.modelValue,m=>new Set(jt(m).map(y=>{var _;return((_=n.value.find(b=>e.valueComparator(y,b.value)))==null?void 0:_.value)??y})),m=>[...m.values()]),i=E(()=>n.value.filter(m=>m.selectable)),o=E(()=>r.value.filter(m=>m.selectable)),s=E(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return QQ;case"all":return A5;case"page":default:return T5}});function l(m){return jt(m).every(y=>a.value.has(y.value))}function u(m){return jt(m).some(y=>a.value.has(y.value))}function c(m,y){const _=s.value.select({items:m,value:y,selected:new Set(a.value)});a.value=_}function f(m){c([m],!l([m]))}function d(m){const y=s.value.selectAll({value:m,allItems:i.value,currentPage:o.value,selected:new Set(a.value)});a.value=y}const v=E(()=>a.value.size>0),h=E(()=>{const m=s.value.allSelected({allItems:i.value,currentPage:o.value});return!!m.length&&l(m)}),g=E(()=>s.value.showSelectAll),p={toggleSelect:f,select:c,selectAll:d,isSelected:l,isSomeSelected:u,someSelected:v,allSelected:h,showSelectAll:g};return Lt(D5,p),p}function h0(){const e=rt(D5);if(!e)throw new Error("Missing selection!");return e}const P5=ne({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),k5=Symbol.for("vuetify:data-table-sort");function g0(e){const t=Ve(e,"sortBy"),n=oe(e,"mustSort"),r=oe(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:r}}function p0(e){const{sortBy:t,mustSort:n,multiSort:r,page:a}=e,i=l=>{if(l.key==null)return;let u=t.value.map(f=>({...f}))??[];const c=u.find(f=>f.key===l.key);c?c.order==="desc"?n.value?c.order="asc":u=u.filter(f=>f.key!==l.key):c.order="desc":r.value?u=[...u,{key:l.key,order:"asc"}]:u=[{key:l.key,order:"asc"}],t.value=u,a&&(a.value=1)};function o(l){return!!t.value.find(u=>u.key===l.key)}const s={sortBy:t,toggleSort:i,isSorted:o};return Lt(k5,s),s}function M5(){const e=rt(k5);if(!e)throw new Error("Missing sort!");return e}function MT(e,t,n,r){const a=nn();return{sortedItems:E(()=>{var o,s;return n.value.length?eee(t.value,n.value,a.current.value,{transform:r==null?void 0:r.transform,sortFunctions:{...e.customKeySort,...(o=r==null?void 0:r.sortFunctions)==null?void 0:o.value},sortRawFunctions:(s=r==null?void 0:r.sortRawFunctions)==null?void 0:s.value}):t.value})}}function eee(e,t,n,r){const a=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.map(o=>[o,r!=null&&r.transform?r.transform(o):o]).sort((o,s)=>{var l,u;for(let c=0;cy!=null?y.toString().toLocaleLowerCase():y),h!==g)return ug(h)&&ug(g)?0:ug(h)?-1:ug(g)?1:!isNaN(h)&&!isNaN(g)?Number(h)-Number(g):a.compare(h,g)}}return 0}).map(o=>{let[s]=o;return s})}const tee=ne({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function nee(e,t){const n=e.returnObject?t:bn(t,e.itemValue),r=bn(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:r,raw:t}}function ree(e,t){const n=[];for(const r of t)n.push(nee(e,r));return n}function aee(e){return{items:E(()=>ree(e,e.items))}}const iee=ne({search:String,loading:Boolean,...Me(),...tee(),...I5(),...P5(),...DT({itemsPerPage:5}),...p5(),...AT(),...Ch(),...nt(),...ai({transition:{component:wv,hideOnLeave:!0}})},"VDataIterator"),oee=fe()({name:"VDataIterator",props:iee(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"groupBy"),a=oe(e,"search"),{items:i}=aee(e),{filteredItems:o}=Th(e,i,a,{transform:Y=>Y.raw}),{sortBy:s,multiSort:l,mustSort:u}=g0(e),{page:c,itemsPerPage:f}=PT(e),{toggleSort:d}=p0({sortBy:s,multiSort:l,mustSort:u,page:c}),{sortByWithGroups:v,opened:h,extractRows:g,isGroupOpen:p,toggleGroup:m}=c0({groupBy:r,sortBy:s}),{sortedItems:y}=MT(e,o,v,{transform:Y=>Y.raw}),{flatItems:_}=f0(y,r,h),b=E(()=>_.value.length),{startIndex:x,stopIndex:S,pageCount:T,prevPage:C,nextPage:w,setItemsPerPage:A,setPage:D}=kT({page:c,itemsPerPage:f,itemsLength:b}),{paginatedItems:P}=C5({items:_,startIndex:x,stopIndex:S,itemsPerPage:f}),k=E(()=>g(P.value)),{isSelected:L,select:V,selectAll:N,toggleSelect:$}=v0(e,{allItems:i,currentPage:k}),{isExpanded:z,toggleExpand:H}=u0(e);d0({page:c,itemsPerPage:f,sortBy:s,groupBy:r,search:a});const U=E(()=>({page:c.value,itemsPerPage:f.value,sortBy:s.value,pageCount:T.value,toggleSort:d,prevPage:C,nextPage:w,setPage:D,setItemsPerPage:A,isSelected:L,select:V,selectAll:N,toggleSelect:$,isExpanded:z,toggleExpand:H,isGroupOpen:p,toggleGroup:m,items:k.value,groupedItems:P.value}));return ge(()=>I(e.tag,{class:["v-data-iterator",{"v-data-iterator--loading":e.loading},e.class],style:e.style},{default:()=>{var Y,J;return[(Y=n.header)==null?void 0:Y.call(n,U.value),I(lr,{transition:e.transition},{default:()=>{var ue,le;return[e.loading?I(mh,{key:"loader",name:"v-data-iterator",active:!0},{default:be=>{var ae;return(ae=n.loader)==null?void 0:ae.call(n,be)}}):I("div",{key:"items"},[P.value.length?(le=n.default)==null?void 0:le.call(n,U.value):(ue=n["no-data"])==null?void 0:ue.call(n)])]}}),(J=n.footer)==null?void 0:J.call(n,U.value)]}})),{}}});function see(){const e=ye([]);wC(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const lee=ne({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:Ye,default:"$first"},prevIcon:{type:Ye,default:"$prev"},nextIcon:{type:Ye,default:"$next"},lastIcon:{type:Ye,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...Ur(),...Me(),...Nn(),...An(),...Yt(),...Fi(),...nt({tag:"nav"}),...gt(),...La({variant:"text"})},"VPagination"),fx=fe()({name:"VPagination",props:lee(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=Ve(e,"modelValue"),{t:i,n:o}=nn(),{isRtl:s}=Tn(),{themeClasses:l}=Ct(e),{width:u}=Wr(),c=Te(-1);Kt(void 0,{scoped:!0});const{resizeRef:f}=ti(C=>{if(!C.length)return;const{target:w,contentRect:A}=C[0],D=w.querySelector(".v-pagination__list > *");if(!D)return;const P=A.width,k=D.offsetWidth+parseFloat(getComputedStyle(D).marginRight)*2;c.value=g(P,k)}),d=E(()=>parseInt(e.length,10)),v=E(()=>parseInt(e.start,10)),h=E(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:g(u.value,58));function g(C,w){const A=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((C-w*A)/w).toFixed(2)))}const p=E(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[a.value];if(d.value<=h.value)return xi(d.value,v.value);const C=h.value%2===0,w=C?h.value/2:Math.floor(h.value/2),A=C?w:w+1,D=d.value-w;if(A-a.value>=0)return[...xi(Math.max(1,h.value-1),v.value),e.ellipsis,d.value];if(a.value-D>=(C?1:0)){const P=h.value-1,k=d.value-P+v.value;return[v.value,e.ellipsis,...xi(P,k)]}else{const P=Math.max(1,h.value-3),k=P===1?a.value:a.value-Math.ceil(P/2)+v.value;return[v.value,e.ellipsis,...xi(P,k),e.ellipsis,d.value]}});function m(C,w,A){C.preventDefault(),a.value=w,A&&r(A,w)}const{refs:y,updateRef:_}=see();Kt({VPaginationBtn:{color:oe(e,"color"),border:oe(e,"border"),density:oe(e,"density"),size:oe(e,"size"),variant:oe(e,"variant"),rounded:oe(e,"rounded"),elevation:oe(e,"elevation")}});const b=E(()=>p.value.map((C,w)=>{const A=D=>_(D,w);if(typeof C=="string")return{isActive:!1,key:`ellipsis-${w}`,page:C,props:{ref:A,ellipsis:!0,icon:!0,disabled:!0}};{const D=C===a.value;return{isActive:D,key:C,page:o(C),props:{ref:A,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:D?e.activeColor:e.color,"aria-current":D,"aria-label":i(D?e.currentPageAriaLabel:e.pageAriaLabel,C),onClick:P=>m(P,C)}}}})),x=E(()=>{const C=!!e.disabled||a.value<=v.value,w=!!e.disabled||a.value>=v.value+d.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:A=>m(A,v.value,"first"),disabled:C,"aria-label":i(e.firstAriaLabel),"aria-disabled":C}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:A=>m(A,a.value-1,"prev"),disabled:C,"aria-label":i(e.previousAriaLabel),"aria-disabled":C},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:A=>m(A,a.value+1,"next"),disabled:w,"aria-label":i(e.nextAriaLabel),"aria-disabled":w},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:A=>m(A,v.value+d.value-1,"last"),disabled:w,"aria-label":i(e.lastAriaLabel),"aria-disabled":w}:void 0}});function S(){var w;const C=a.value-v.value;(w=y.value[C])==null||w.$el.focus()}function T(C){C.key===z1.left&&!e.disabled&&a.value>+e.start?(a.value=a.value-1,ht(S)):C.key===z1.right&&!e.disabled&&a.valueI(e.tag,{ref:f,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":i(e.ariaLabel),onKeydown:T,"data-test":"v-pagination-root"},{default:()=>[I("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&I("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(x.value.first):I(xt,ve({_as:"VPaginationBtn"},x.value.first),null)]),I("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(x.value.prev):I(xt,ve({_as:"VPaginationBtn"},x.value.prev),null)]),b.value.map((C,w)=>I("li",{key:C.key,class:["v-pagination__item",{"v-pagination__item--is-active":C.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(C):I(xt,ve({_as:"VPaginationBtn"},C.props),{default:()=>[C.page]})])),I("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(x.value.next):I(xt,ve({_as:"VPaginationBtn"},x.value.next),null)]),e.showFirstLastPage&&I("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(x.value.last):I(xt,ve({_as:"VPaginationBtn"},x.value.last),null)])])]})),{}}}),LT=ne({prevIcon:{type:Ye,default:"$prev"},nextIcon:{type:Ye,default:"$next"},firstIcon:{type:Ye,default:"$first"},lastIcon:{type:Ye,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Pv=fe()({name:"VDataTableFooter",props:LT(),setup(e,t){let{slots:n}=t;const{t:r}=nn(),{page:a,pageCount:i,startIndex:o,stopIndex:s,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=JQ(),f=E(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?r("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:isNaN(Number(d.title))?r(d.title):d.title}));return ge(()=>{var v;const d=fx.filterProps(e);return I("div",{class:"v-data-table-footer"},[(v=n.prepend)==null?void 0:v.call(n),I("div",{class:"v-data-table-footer__items-per-page"},[I("span",null,[r(e.itemsPerPageText)]),I(wT,{items:f.value,modelValue:u.value,"onUpdate:modelValue":h=>c(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),I("div",{class:"v-data-table-footer__info"},[I("div",null,[r(e.pageText,l.value?o.value+1:0,s.value,l.value)])]),I("div",{class:"v-data-table-footer__pagination"},[I(fx,ve({modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:i.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},d),null)])])}),{}}}),wm=Wj({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:n}=t;const r=e.tag??"td";return I(r,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:De(e.height),width:De(e.width),maxWidth:De(e.maxWidth),left:De(e.fixedOffset||null)}},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})}),uee=ne({headers:Array},"DataTable-header"),L5=Symbol.for("vuetify:data-table-headers"),E5={title:"",sortable:!1},cee={...E5,width:48};function fee(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,r)=>{let a=!1;for(let i=0;ir){t.splice(i,0,{element:n,priority:r}),a=!0;break}a||t.push({element:n,priority:r})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const r=Math.floor(t[0].priority);for(let a=0;at.shift()}}function dx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)dx(n,t);return t}function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&R5(n.children,t);return t}function dee(e){if(e.key){if(e.key==="data-table-group")return E5;if(["data-table-expand","data-table-select"].includes(e.key))return cee}}function ET(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>ET(n,t+1))):t}function vee(e){let t=!1;function n(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i)if(o&&(i.fixed=!0),i.fixed)if(i.children)for(let s=i.children.length-1;s>=0;s--)n(i.children[s],!0);else t?isNaN(+i.width)&&(`${i.key}`,void 0):i.lastFixed=!0,t=!0;else if(i.children)for(let s=i.children.length-1;s>=0;s--)n(i.children[s]);else t=!1}for(let i=e.length-1;i>=0;i--)n(e[i]);function r(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!i)return o;if(i.children){i.fixedOffset=o;for(const s of i.children)o=r(s,o)}else i.fixed&&(i.fixedOffset=o,o+=parseFloat(i.width||"0")||0);return o}let a=0;for(const i of e)a=r(i,a)}function hee(e,t){const n=[];let r=0;const a=fee(e);for(;a.size()>0;){let o=a.count();const s=[];let l=1;for(;o>0;){const{element:u,priority:c}=a.dequeue(),f=t-r-ET(u);if(s.push({...u,rowspan:f??1,colspan:u.children?dx(u).length:1}),u.children)for(const d of u.children){const v=c%1+l/Math.pow(10,r+2);a.enqueue(d,r+f+v)}l+=1,o-=1}r+=1,n.push(s)}return{columns:e.map(o=>dx(o)).flat(),headers:n}}function V5(e){const t=[];for(const n of e){const r={...dee(n),...n},a=r.key??(typeof r.value=="string"?r.value:null),i=r.value??a??null,o={...r,key:a,value:i,sortable:r.sortable??(r.key!=null||!!r.sort),children:r.children?V5(r.children):void 0};t.push(o)}return t}function RT(e,t){const n=ye([]),r=ye([]),a=ye({}),i=ye({}),o=ye({});un(()=>{var g,p,m;const u=(e.headers||Object.keys(e.items[0]??{}).map(y=>({key:y,title:Oi(y)}))).slice(),c=R5(u);(g=t==null?void 0:t.groupBy)!=null&&g.value.length&&!c.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),(p=t==null?void 0:t.showSelect)!=null&&p.value&&!c.has("data-table-select")&&u.unshift({key:"data-table-select"}),(m=t==null?void 0:t.showExpand)!=null&&m.value&&!c.has("data-table-expand")&&u.push({key:"data-table-expand"});const f=V5(u);vee(f);const d=Math.max(...f.map(y=>ET(y)))+1,v=hee(f,d);n.value=v.headers,r.value=v.columns;const h=v.headers.flat(1);for(const y of h)y.key&&(y.sortable&&(y.sort&&(a.value[y.key]=y.sort),y.sortRaw&&(i.value[y.key]=y.sortRaw)),y.filter&&(o.value[y.key]=y.filter))});const s={headers:n,columns:r,sortFunctions:a,sortRawFunctions:i,filterFunctions:o};return Lt(L5,s),s}function m0(){const e=rt(L5);if(!e)throw new Error("Missing headers!");return e}const O5=ne({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:Ye,default:"$sortAsc"},sortDescIcon:{type:Ye,default:"$sortDesc"},headerProps:{type:Object},...Su(),...Jy()},"VDataTableHeaders"),cu=fe()({name:"VDataTableHeaders",props:O5(),setup(e,t){let{slots:n}=t;const{t:r}=nn(),{toggleSort:a,sortBy:i,isSorted:o}=M5(),{someSelected:s,allSelected:l,selectAll:u,showSelectAll:c}=h0(),{columns:f,headers:d}=m0(),{loaderClasses:v}=ph(e);function h(C,w){if(!(!e.sticky&&!C.fixed))return{position:"sticky",left:C.fixed?De(C.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${w})`:void 0}}function g(C){const w=i.value.find(A=>A.key===C.key);return w?w.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:p,backgroundColorStyles:m}=Et(e,"color"),{displayClasses:y,mobile:_}=Wr(e),b=E(()=>({headers:d.value,columns:f.value,toggleSort:a,isSorted:o,sortBy:i.value,someSelected:s.value,allSelected:l.value,selectAll:u,getSortIcon:g})),x=E(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},y.value,v.value]),S=C=>{let{column:w,x:A,y:D}=C;const P=w.key==="data-table-select"||w.key==="data-table-expand",k=ve(e.headerProps??{},w.headerProps??{});return I(wm,ve({tag:"th",align:w.align,class:[{"v-data-table__th--sortable":w.sortable&&!e.disableSort,"v-data-table__th--sorted":o(w),"v-data-table__th--fixed":w.fixed},...x.value],style:{width:De(w.width),minWidth:De(w.minWidth),maxWidth:De(w.maxWidth),...h(w,D)},colspan:w.colspan,rowspan:w.rowspan,onClick:w.sortable?()=>a(w):void 0,fixed:w.fixed,nowrap:w.nowrap,lastFixed:w.lastFixed,noPadding:P},k),{default:()=>{var N;const L=`header.${w.key}`,V={column:w,selectAll:u,isSorted:o,toggleSort:a,sortBy:i.value,someSelected:s.value,allSelected:l.value,getSortIcon:g};return n[L]?n[L](V):w.key==="data-table-select"?((N=n["header.data-table-select"])==null?void 0:N.call(n,V))??(c.value&&I(mo,{modelValue:l.value,indeterminate:s.value&&!l.value,"onUpdate:modelValue":u},null)):I("div",{class:"v-data-table-header__content"},[I("span",null,[w.title]),w.sortable&&!e.disableSort&&I(wt,{key:"icon",class:"v-data-table-header__sort-icon",icon:g(w)},null),e.multiSort&&o(w)&&I("div",{key:"badge",class:["v-data-table-header__sort-badge",...p.value],style:m.value},[i.value.findIndex($=>$.key===w.key)+1])])}})},T=()=>{const C=ve(e.headerProps??{}??{}),w=E(()=>f.value.filter(D=>(D==null?void 0:D.sortable)&&!e.disableSort)),A=E(()=>{if(f.value.find(P=>P.key==="data-table-select")!=null)return l.value?"$checkboxOn":s.value?"$checkboxIndeterminate":"$checkboxOff"});return I(wm,ve({tag:"th",class:[...x.value],colspan:d.value.length+1},C),{default:()=>[I("div",{class:"v-data-table-header__content"},[I(wT,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:w.value,label:r("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>i.value=[],appendIcon:A.value,"onClick:append":()=>u(!l.value)},{...n,chip:D=>{var P;return I(Sf,{onClick:(P=D.item.raw)!=null&&P.sortable?()=>a(D.item.raw):void 0,onMousedown:k=>{k.preventDefault(),k.stopPropagation()}},{default:()=>[D.item.title,I(wt,{class:["v-data-table__td-sort-icon",o(D.item.raw)&&"v-data-table__td-sort-icon-active"],icon:g(D.item.raw),size:"small"},null)]})}})])]})};ge(()=>_.value?I("tr",null,[I(T,null,null)]):I(ke,null,[n.headers?n.headers(b.value):d.value.map((C,w)=>I("tr",null,[C.map((A,D)=>I(S,{column:A,x:D,y:w},null))])),e.loading&&I("tr",{class:"v-data-table-progress"},[I("th",{colspan:f.value.length},[I(mh,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),gee=ne({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),pee=fe()({name:"VDataTableGroupHeaderRow",props:gee(),setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:a,extractRows:i}=b5(),{isSelected:o,isSomeSelected:s,select:l}=h0(),{columns:u}=m0(),c=E(()=>i([e.item]));return()=>I("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(f=>{var d,v;if(f.key==="data-table-group"){const h=r(e.item)?"$expand":"$next",g=()=>a(e.item);return((d=n["data-table-group"])==null?void 0:d.call(n,{item:e.item,count:c.value.length,props:{icon:h,onClick:g}}))??I(wm,{class:"v-data-table-group-header-row__column"},{default:()=>[I(xt,{size:"small",variant:"text",icon:h,onClick:g},null),I("span",null,[e.item.value]),I("span",null,[ta("("),c.value.length,ta(")")])]})}if(f.key==="data-table-select"){const h=o(c.value),g=s(c.value)&&!h,p=m=>l(c.value,m);return((v=n["data-table-select"])==null?void 0:v.call(n,{props:{modelValue:h,indeterminate:g,"onUpdate:modelValue":p}}))??I("td",null,[I(mo,{modelValue:h,indeterminate:g,"onUpdate:modelValue":p},null)])}return I("td",null,null)})])}}),mee=ne({index:Number,item:Object,cellProps:[Object,Function],onClick:$n(),onContextmenu:$n(),onDblclick:$n(),...Su()},"VDataTableRow"),VT=fe()({name:"VDataTableRow",props:mee(),setup(e,t){let{slots:n}=t;const{displayClasses:r,mobile:a}=Wr(e,"v-data-table__tr"),{isSelected:i,toggleSelect:o,someSelected:s,allSelected:l,selectAll:u}=h0(),{isExpanded:c,toggleExpand:f}=y5(),{toggleSort:d,sortBy:v,isSorted:h}=M5(),{columns:g}=m0();ge(()=>I("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},r.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&g.value.map((p,m)=>{const y=e.item,_=`item.${p.key}`,b=`header.${p.key}`,x={index:e.index,item:y.raw,internalItem:y,value:iu(y.columns,p.key),column:p,isSelected:i,toggleSelect:o,isExpanded:c,toggleExpand:f},S={column:p,selectAll:u,isSorted:h,toggleSort:d,sortBy:v.value,someSelected:s.value,allSelected:l.value,getSortIcon:()=>""},T=typeof e.cellProps=="function"?e.cellProps({index:x.index,item:x.item,internalItem:x.internalItem,value:x.value,column:p}):e.cellProps,C=typeof p.cellProps=="function"?p.cellProps({index:x.index,item:x.item,internalItem:x.internalItem,value:x.value}):p.cellProps;return I(wm,ve({align:p.align,class:{"v-data-table__td--expanded-row":p.key==="data-table-expand","v-data-table__td--select-row":p.key==="data-table-select"},fixed:p.fixed,fixedOffset:p.fixedOffset,lastFixed:p.lastFixed,maxWidth:a.value?void 0:p.maxWidth,noPadding:p.key==="data-table-select"||p.key==="data-table-expand",nowrap:p.nowrap,width:a.value?void 0:p.width},T,C),{default:()=>{var A,D,P,k,L;if(n[_]&&!a.value)return(A=n[_])==null?void 0:A.call(n,x);if(p.key==="data-table-select")return((D=n["item.data-table-select"])==null?void 0:D.call(n,x))??I(mo,{disabled:!y.selectable,modelValue:i([y]),onClick:C1(()=>o(y),["stop"])},null);if(p.key==="data-table-expand")return((P=n["item.data-table-expand"])==null?void 0:P.call(n,x))??I(xt,{icon:c(y)?"$collapse":"$expand",size:"small",variant:"text",onClick:C1(()=>f(y),["stop"])},null);const w=is(x.value);return a.value?I(ke,null,[I("div",{class:"v-data-table__td-title"},[((k=n[b])==null?void 0:k.call(n,S))??p.title]),I("div",{class:"v-data-table__td-value"},[((L=n[_])==null?void 0:L.call(n,x))??w])]):w}})})]))}}),N5=ne({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Su()},"VDataTableRows"),fu=fe()({name:"VDataTableRows",inheritAttrs:!1,props:N5(),setup(e,t){let{attrs:n,slots:r}=t;const{columns:a}=m0(),{expandOnClick:i,toggleExpand:o,isExpanded:s}=y5(),{isSelected:l,toggleSelect:u}=h0(),{toggleGroup:c,isGroupOpen:f}=b5(),{t:d}=nn(),{mobile:v}=Wr(e);return ge(()=>{var h,g;return e.loading&&(!e.items.length||r.loading)?I("tr",{class:"v-data-table-rows-loading",key:"loading"},[I("td",{colspan:a.value.length},[((h=r.loading)==null?void 0:h.call(r))??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?I("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[I("td",{colspan:a.value.length},[((g=r["no-data"])==null?void 0:g.call(r))??d(e.noDataText)])]):I(ke,null,[e.items.map((p,m)=>{var b;if(p.type==="group"){const x={index:m,item:p,columns:a.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:f};return r["group-header"]?r["group-header"](x):I(pee,ve({key:`group-header_${p.id}`,item:p},ak(n,":group-header",()=>x)),r)}const y={index:m,item:p.raw,internalItem:p,columns:a.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u},_={...y,props:ve({key:`item_${p.key??p.index}`,onClick:i.value?()=>{o(p)}:void 0,index:m,item:p,cellProps:e.cellProps,mobile:v.value},ak(n,":row",()=>y),typeof e.rowProps=="function"?e.rowProps({item:y.item,index:y.index,internalItem:y.internalItem}):e.rowProps)};return I(ke,{key:_.props.key},[r.item?r.item(_):I(VT,_.props,r),s(p)&&((b=r["expanded-row"])==null?void 0:b.call(r,y))])})])}),{}}}),B5=ne({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Me(),...Nn(),...nt(),...gt()},"VTable"),du=fe()({name:"VTable",props:B5(),setup(e,t){let{slots:n,emit:r}=t;const{themeClasses:a}=Ct(e),{densityClasses:i}=dr(e);return ge(()=>I(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},a.value,i.value,e.class],style:e.style},{default:()=>{var o,s,l;return[(o=n.top)==null?void 0:o.call(n),n.default?I("div",{class:"v-table__wrapper",style:{height:De(e.height)}},[I("table",null,[n.default()])]):(s=n.wrapper)==null?void 0:s.call(n),(l=n.bottom)==null?void 0:l.call(n)]}})),{}}}),yee=ne({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function _ee(e,t,n,r){const a=e.returnObject?t:bn(t,e.itemValue),i=bn(t,e.itemSelectable,!0),o=r.reduce((s,l)=>(l.key!=null&&(s[l.key]=bn(t,l.value)),s),{});return{type:"item",key:e.returnObject?bn(t,e.itemValue):a,index:n,value:a,selectable:i,columns:o,raw:t}}function bee(e,t,n){return t.map((r,a)=>_ee(e,r,a,n))}function OT(e,t){return{items:E(()=>bee(e,e.items,t.value))}}const NT=ne({...N5(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...p5(),...AT(),...uee(),...yee(),...I5(),...P5(),...O5(),...B5()},"DataTable"),See=ne({...DT(),...NT(),...Ch(),...LT()},"VDataTable"),xee=fe()({name:"VDataTable",props:See(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IT(e),{sortBy:i,multiSort:o,mustSort:s}=g0(e),{page:l,itemsPerPage:u}=PT(e),{disableSort:c}=Vs(e),{columns:f,headers:d,sortFunctions:v,sortRawFunctions:h,filterFunctions:g}=RT(e,{groupBy:a,showSelect:oe(e,"showSelect"),showExpand:oe(e,"showExpand")}),{items:p}=OT(e,f),m=oe(e,"search"),{filteredItems:y}=Th(e,p,m,{transform:Z=>Z.columns,customKeyFilter:g}),{toggleSort:_}=p0({sortBy:i,multiSort:o,mustSort:s,page:l}),{sortByWithGroups:b,opened:x,extractRows:S,isGroupOpen:T,toggleGroup:C}=c0({groupBy:a,sortBy:i,disableSort:c}),{sortedItems:w}=MT(e,y,b,{transform:Z=>({...Z.raw,...Z.columns}),sortFunctions:v,sortRawFunctions:h}),{flatItems:A}=f0(w,a,x),D=E(()=>A.value.length),{startIndex:P,stopIndex:k,pageCount:L,setItemsPerPage:V}=kT({page:l,itemsPerPage:u,itemsLength:D}),{paginatedItems:N}=C5({items:A,startIndex:P,stopIndex:k,itemsPerPage:u}),$=E(()=>S(N.value)),{isSelected:z,select:H,selectAll:U,toggleSelect:Y,someSelected:J,allSelected:ue}=v0(e,{allItems:p,currentPage:$}),{isExpanded:le,toggleExpand:be}=u0(e);d0({page:l,itemsPerPage:u,sortBy:i,groupBy:a,search:m}),Kt({VDataTableRows:{hideNoData:oe(e,"hideNoData"),noDataText:oe(e,"noDataText"),loading:oe(e,"loading"),loadingText:oe(e,"loadingText")}});const ae=E(()=>({page:l.value,itemsPerPage:u.value,sortBy:i.value,pageCount:L.value,toggleSort:_,setItemsPerPage:V,someSelected:J.value,allSelected:ue.value,isSelected:z,select:H,selectAll:U,toggleSelect:Y,isExpanded:le,toggleExpand:be,isGroupOpen:T,toggleGroup:C,items:$.value.map(Z=>Z.raw),internalItems:$.value,groupedItems:N.value,columns:f.value,headers:d.value}));return ge(()=>{const Z=Pv.filterProps(e),te=cu.filterProps(e),se=fu.filterProps(e),G=du.filterProps(e);return I(du,ve({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},G),{top:()=>{var B;return(B=r.top)==null?void 0:B.call(r,ae.value)},default:()=>{var B,j,M,O,X,K;return r.default?r.default(ae.value):I(ke,null,[(B=r.colgroup)==null?void 0:B.call(r,ae.value),!e.hideDefaultHeader&&I("thead",{key:"thead"},[I(cu,te,r)]),(j=r.thead)==null?void 0:j.call(r,ae.value),!e.hideDefaultBody&&I("tbody",null,[(M=r["body.prepend"])==null?void 0:M.call(r,ae.value),r.body?r.body(ae.value):I(fu,ve(n,se,{items:N.value}),r),(O=r["body.append"])==null?void 0:O.call(r,ae.value)]),(X=r.tbody)==null?void 0:X.call(r,ae.value),(K=r.tfoot)==null?void 0:K.call(r,ae.value)])},bottom:()=>r.bottom?r.bottom(ae.value):!e.hideDefaultFooter&&I(ke,null,[I(Sh,null,null),I(Pv,Z,{prepend:r["footer.prepend"]})])})}),{}}}),wee=ne({...NT(),...AT(),...qF(),...Ch()},"VDataTableVirtual"),Cee=fe()({name:"VDataTableVirtual",props:wee(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IT(e),{sortBy:i,multiSort:o,mustSort:s}=g0(e),{disableSort:l}=Vs(e),{columns:u,headers:c,filterFunctions:f,sortFunctions:d,sortRawFunctions:v}=RT(e,{groupBy:a,showSelect:oe(e,"showSelect"),showExpand:oe(e,"showExpand")}),{items:h}=OT(e,u),g=oe(e,"search"),{filteredItems:p}=Th(e,h,g,{transform:te=>te.columns,customKeyFilter:f}),{toggleSort:m}=p0({sortBy:i,multiSort:o,mustSort:s}),{sortByWithGroups:y,opened:_,extractRows:b,isGroupOpen:x,toggleGroup:S}=c0({groupBy:a,sortBy:i,disableSort:l}),{sortedItems:T}=MT(e,p,y,{transform:te=>({...te.raw,...te.columns}),sortFunctions:d,sortRawFunctions:v}),{flatItems:C}=f0(T,a,_),w=E(()=>b(C.value)),{isSelected:A,select:D,selectAll:P,toggleSelect:k,someSelected:L,allSelected:V}=v0(e,{allItems:w,currentPage:w}),{isExpanded:N,toggleExpand:$}=u0(e),{containerRef:z,markerRef:H,paddingTop:U,paddingBottom:Y,computedItems:J,handleItemResize:ue,handleScroll:le,handleScrollend:be}=JF(e,C),ae=E(()=>J.value.map(te=>te.raw));d0({sortBy:i,page:Te(1),itemsPerPage:Te(-1),groupBy:a,search:g}),Kt({VDataTableRows:{hideNoData:oe(e,"hideNoData"),noDataText:oe(e,"noDataText"),loading:oe(e,"loading"),loadingText:oe(e,"loadingText")}});const Z=E(()=>({sortBy:i.value,toggleSort:m,someSelected:L.value,allSelected:V.value,isSelected:A,select:D,selectAll:P,toggleSelect:k,isExpanded:N,toggleExpand:$,isGroupOpen:x,toggleGroup:S,items:w.value.map(te=>te.raw),internalItems:w.value,groupedItems:C.value,columns:u.value,headers:c.value}));ge(()=>{const te=cu.filterProps(e),se=fu.filterProps(e),G=du.filterProps(e);return I(du,ve({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},G),{top:()=>{var B;return(B=r.top)==null?void 0:B.call(r,Z.value)},wrapper:()=>{var B,j,M;return I("div",{ref:z,onScrollPassive:le,onScrollend:be,class:"v-table__wrapper",style:{height:De(e.height)}},[I("table",null,[(B=r.colgroup)==null?void 0:B.call(r,Z.value),!e.hideDefaultHeader&&I("thead",{key:"thead"},[I(cu,ve(te,{sticky:e.fixedHeader}),r)]),!e.hideDefaultBody&&I("tbody",null,[I("tr",{ref:H,style:{height:De(U.value),border:0}},[I("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),(j=r["body.prepend"])==null?void 0:j.call(r,Z.value),I(fu,ve(n,se,{items:ae.value}),{...r,item:O=>I(KF,{key:O.internalItem.index,renderless:!0,"onUpdate:height":X=>ue(O.internalItem.index,X)},{default:X=>{var q;let{itemRef:K}=X;return((q=r.item)==null?void 0:q.call(r,{...O,itemRef:K}))??I(VT,ve(O.props,{ref:K,key:O.internalItem.index,index:O.internalItem.index}),r)}})}),(M=r["body.append"])==null?void 0:M.call(r,Z.value),I("tr",{style:{height:De(Y.value),border:0}},[I("td",{colspan:u.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var B;return(B=r.bottom)==null?void 0:B.call(r,Z.value)}})})}}),Tee=ne({itemsLength:{type:[Number,String],required:!0},...DT(),...NT(),...LT()},"VDataTableServer"),Aee=fe()({name:"VDataTableServer",props:Tee(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IT(e),{sortBy:i,multiSort:o,mustSort:s}=g0(e),{page:l,itemsPerPage:u}=PT(e),{disableSort:c}=Vs(e),f=E(()=>parseInt(e.itemsLength,10)),{columns:d,headers:v}=RT(e,{groupBy:a,showSelect:oe(e,"showSelect"),showExpand:oe(e,"showExpand")}),{items:h}=OT(e,d),{toggleSort:g}=p0({sortBy:i,multiSort:o,mustSort:s,page:l}),{opened:p,isGroupOpen:m,toggleGroup:y,extractRows:_}=c0({groupBy:a,sortBy:i,disableSort:c}),{pageCount:b,setItemsPerPage:x}=kT({page:l,itemsPerPage:u,itemsLength:f}),{flatItems:S}=f0(h,a,p),{isSelected:T,select:C,selectAll:w,toggleSelect:A,someSelected:D,allSelected:P}=v0(e,{allItems:h,currentPage:h}),{isExpanded:k,toggleExpand:L}=u0(e),V=E(()=>_(h.value));d0({page:l,itemsPerPage:u,sortBy:i,groupBy:a,search:oe(e,"search")}),Lt("v-data-table",{toggleSort:g,sortBy:i}),Kt({VDataTableRows:{hideNoData:oe(e,"hideNoData"),noDataText:oe(e,"noDataText"),loading:oe(e,"loading"),loadingText:oe(e,"loadingText")}});const N=E(()=>({page:l.value,itemsPerPage:u.value,sortBy:i.value,pageCount:b.value,toggleSort:g,setItemsPerPage:x,someSelected:D.value,allSelected:P.value,isSelected:T,select:C,selectAll:w,toggleSelect:A,isExpanded:k,toggleExpand:L,isGroupOpen:m,toggleGroup:y,items:V.value.map($=>$.raw),internalItems:V.value,groupedItems:S.value,columns:d.value,headers:v.value}));ge(()=>{const $=Pv.filterProps(e),z=cu.filterProps(e),H=fu.filterProps(e),U=du.filterProps(e);return I(du,ve({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},U),{top:()=>{var Y;return(Y=r.top)==null?void 0:Y.call(r,N.value)},default:()=>{var Y,J,ue,le,be,ae;return r.default?r.default(N.value):I(ke,null,[(Y=r.colgroup)==null?void 0:Y.call(r,N.value),!e.hideDefaultHeader&&I("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[I(cu,ve(z,{sticky:e.fixedHeader}),r)]),(J=r.thead)==null?void 0:J.call(r,N.value),!e.hideDefaultBody&&I("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[(ue=r["body.prepend"])==null?void 0:ue.call(r,N.value),r.body?r.body(N.value):I(fu,ve(n,H,{items:S.value}),r),(le=r["body.append"])==null?void 0:le.call(r,N.value)]),(be=r.tbody)==null?void 0:be.call(r,N.value),(ae=r.tfoot)==null?void 0:ae.call(r,N.value)])},bottom:()=>r.bottom?r.bottom(N.value):!e.hideDefaultFooter&&I(ke,null,[I(Sh,null,null),I(Pv,$,{prepend:r["footer.prepend"]})])})})}}),Iee=ne({fluid:{type:Boolean,default:!1},...Me(),...gn(),...nt()},"VContainer"),Dee=fe()({name:"VContainer",props:Iee(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Tn(),{dimensionStyles:a}=pn(e);return ge(()=>I(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},r.value,e.class],style:[a.value,e.style]},n)),{}}}),z5=Yy.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),F5=Yy.reduce((e,t)=>{const n="offset"+Oi(t);return e[n]={type:[String,Number],default:null},e},{}),H5=Yy.reduce((e,t)=>{const n="order"+Oi(t);return e[n]={type:[String,Number],default:null},e},{}),Pk={col:Object.keys(z5),offset:Object.keys(F5),order:Object.keys(H5)};function Pee(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const a=t.replace(e,"");r+=`-${a}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const kee=["auto","start","end","center","baseline","stretch"],Mee=ne({cols:{type:[Boolean,String,Number],default:!1},...z5,offset:{type:[String,Number],default:null},...F5,order:{type:[String,Number],default:null},...H5,alignSelf:{type:String,default:null,validator:e=>kee.includes(e)},...Me(),...nt()},"VCol"),Lee=fe()({name:"VCol",props:Mee(),setup(e,t){let{slots:n}=t;const r=E(()=>{const a=[];let i;for(i in Pk)Pk[i].forEach(s=>{const l=e[s],u=Pee(i,s,l);u&&a.push(u)});const o=a.some(s=>s.startsWith("v-col-"));return a.push({"v-col":!o||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),a});return()=>{var a;return ra(e.tag,{class:[r.value,e.class],style:e.style},(a=n.default)==null?void 0:a.call(n))}}}),BT=["start","end","center"],G5=["space-between","space-around","space-evenly"];function zT(e,t){return Yy.reduce((n,r)=>{const a=e+Oi(r);return n[a]=t(),n},{})}const Eee=[...BT,"baseline","stretch"],$5=e=>Eee.includes(e),W5=zT("align",()=>({type:String,default:null,validator:$5})),Ree=[...BT,...G5],U5=e=>Ree.includes(e),Y5=zT("justify",()=>({type:String,default:null,validator:U5})),Vee=[...BT,...G5,"stretch"],X5=e=>Vee.includes(e),j5=zT("alignContent",()=>({type:String,default:null,validator:X5})),kk={align:Object.keys(W5),justify:Object.keys(Y5),alignContent:Object.keys(j5)},Oee={align:"align",justify:"justify",alignContent:"align-content"};function Nee(e,t,n){let r=Oee[e];if(n!=null){if(t){const a=t.replace(e,"");r+=`-${a}`}return r+=`-${n}`,r.toLowerCase()}}const Bee=ne({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:$5},...W5,justify:{type:String,default:null,validator:U5},...Y5,alignContent:{type:String,default:null,validator:X5},...j5,...Me(),...nt()},"VRow"),zee=fe()({name:"VRow",props:Bee(),setup(e,t){let{slots:n}=t;const r=E(()=>{const a=[];let i;for(i in kk)kk[i].forEach(o=>{const s=e[o],l=Nee(i,o,s);l&&a.push(l)});return a.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),a});return()=>{var a;return ra(e.tag,{class:["v-row",r.value,e.class],style:e.style},(a=n.default)==null?void 0:a.call(n))}}}),Z5=zi("v-spacer","div","VSpacer"),K5=ne({active:{type:[String,Array],default:void 0},disabled:{type:[Boolean,String,Array],default:!1},nextIcon:{type:Ye,default:"$next"},prevIcon:{type:Ye,default:"$prev"},modeIcon:{type:Ye,default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),vx=fe()({name:"VDatePickerControls",props:K5(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,t){let{emit:n}=t;const r=E(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),a=E(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),i=E(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),o=E(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function s(){n("click:prev")}function l(){n("click:next")}function u(){n("click:year")}function c(){n("click:month")}return ge(()=>I("div",{class:["v-date-picker-controls"]},[I(xt,{class:"v-date-picker-controls__month-btn",disabled:r.value,text:e.text,variant:"text",rounded:!0,onClick:c},null),I(xt,{key:"mode-btn",class:"v-date-picker-controls__mode-btn",disabled:a.value,density:"comfortable",icon:e.modeIcon,variant:"text",onClick:u},null),I(Z5,{key:"mode-spacer"},null),I("div",{key:"month-buttons",class:"v-date-picker-controls__month"},[I(xt,{disabled:i.value,icon:e.prevIcon,variant:"text",onClick:s},null),I(xt,{disabled:o.value,icon:e.nextIcon,variant:"text",onClick:l},null)])])),{}}}),Fee=ne({appendIcon:String,color:String,header:String,transition:String,onClick:$n()},"VDatePickerHeader"),hx=fe()({name:"VDatePickerHeader",props:Fee(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=Et(e,"color");function o(){n("click")}function s(){n("click:append")}return ge(()=>{const l=!!(r.default||e.header),u=!!(r.append||e.appendIcon);return I("div",{class:["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},a.value],style:i.value,onClick:o},[r.prepend&&I("div",{key:"prepend",class:"v-date-picker-header__prepend"},[r.prepend()]),l&&I(lr,{key:"content",name:e.transition},{default:()=>{var c;return[I("div",{key:e.header,class:"v-date-picker-header__content"},[((c=r.default)==null?void 0:c.call(r))??e.header])]}}),u&&I("div",{class:"v-date-picker-header__append"},[r.append?I(lt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var c;return[(c=r.append)==null?void 0:c.call(r)]}}):I(xt,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:s},null)])])}),{}}}),Hee=ne({allowedDates:[Array,Function],disabled:Boolean,displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:[Number,String]},"calendar");function Gee(e){const t=hh(),n=Ve(e,"modelValue",[],v=>jt(v)),r=E(()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),a=Ve(e,"year",void 0,v=>{const h=v!=null?Number(v):t.getYear(r.value);return t.startOfYear(t.setYear(t.date(),h))},v=>t.getYear(v)),i=Ve(e,"month",void 0,v=>{const h=v!=null?Number(v):t.getMonth(r.value),g=t.setYear(t.startOfMonth(t.date()),t.getYear(a.value));return t.setMonth(g,h)},v=>t.getMonth(v)),o=E(()=>{const v=Number(e.firstDayOfWeek??0);return e.weekdays.map(h=>(h+v)%7)}),s=E(()=>{const v=t.getWeekArray(i.value,e.firstDayOfWeek),h=v.flat(),g=6*7;if(e.weeksInMonth==="static"&&h.lengtho.value.includes(t.toJsDate(g).getDay())).map((g,p)=>{const m=t.toISO(g),y=!t.isSameMonth(g,i.value),_=t.isSameDay(g,t.startOfMonth(i.value)),b=t.isSameDay(g,t.endOfMonth(i.value)),x=t.isSameDay(g,i.value);return{date:g,isoDate:m,formatted:t.format(g,"keyboardDate"),year:t.getYear(g),month:t.getMonth(g),isDisabled:d(g),isWeekStart:p%7===0,isWeekEnd:p%7===6,isToday:t.isSameDay(g,h),isAdjacent:y,isHidden:y&&!e.showAdjacentMonths,isStart:_,isSelected:n.value.some(S=>t.isSameDay(g,S)),isEnd:b,isSame:x,localized:t.format(g,"dayOfMonth")}})}const u=E(()=>{const v=t.startOfWeek(r.value,e.firstDayOfWeek),h=[];for(let p=0;p<=6;p++)h.push(t.addDays(v,p));const g=t.date();return l(h,g)}),c=E(()=>{const v=s.value.flat(),h=t.date();return l(v,h)}),f=E(()=>s.value.map(v=>v.length?HZ(t,v[0]):null));function d(v){if(e.disabled)return!0;const h=t.date(v);return e.min&&t.isAfter(t.date(e.min),h)||e.max&&t.isAfter(h,t.date(e.max))?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(g=>t.isSameDay(t.date(g),h)):typeof e.allowedDates=="function"?!e.allowedDates(h):!1}return{displayValue:r,daysInMonth:c,daysInWeek:u,genDays:l,model:n,weeksInMonth:s,weekDays:o,weekNumbers:f}}const q5=ne({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},...Hee()},"VDatePickerMonth"),gx=fe()({name:"VDatePickerMonth",props:q5(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ye(),{daysInMonth:i,model:o,weekNumbers:s}=Gee(e),l=hh(),u=Te(),c=Te(),f=Te(!1),d=E(()=>f.value?e.reverseTransition:e.transition);e.multiple==="range"&&o.value.length>0&&(u.value=o.value[0],o.value.length>1&&(c.value=o.value[o.value.length-1]));const v=E(()=>{const m=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return o.value.length>=m});Ce(i,(m,y)=>{y&&(f.value=l.isBefore(m[0].date,y[0].date))});function h(m){const y=l.startOfDay(m);if(o.value.length===0?u.value=void 0:o.value.length===1&&(u.value=o.value[0],c.value=void 0),!u.value)u.value=y,o.value=[u.value];else if(c.value)u.value=m,c.value=void 0,o.value=[u.value];else{if(l.isSameDay(y,u.value)){u.value=void 0,o.value=[];return}else l.isBefore(y,u.value)?(c.value=l.endOfDay(u.value),u.value=y):c.value=l.endOfDay(y);const _=l.getDiff(c.value,u.value,"days"),b=[u.value];for(let x=1;x<_;x++){const S=l.addDays(u.value,x);b.push(S)}b.push(c.value),o.value=b}}function g(m){const y=o.value.findIndex(_=>l.isSameDay(_,m));if(y===-1)o.value=[...o.value,m];else{const _=[...o.value];_.splice(y,1),o.value=_}}function p(m){e.multiple==="range"?h(m):e.multiple?g(m):o.value=[m]}return()=>I("div",{class:"v-date-picker-month"},[e.showWeek&&I("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&I("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[ta(" ")]),s.value.map(m=>I("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[m]))]),I(lr,{name:d.value},{default:()=>{var m;return[I("div",{ref:a,key:(m=i.value[0].date)==null?void 0:m.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&l.getWeekdays(e.firstDayOfWeek).map(y=>I("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[y])),i.value.map((y,_)=>{const b={props:{onClick:()=>p(y.date)},item:y,i:_};return v.value&&!y.isSelected&&(y.isDisabled=!0),I("div",{class:["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":y.isAdjacent,"v-date-picker-month__day--hide-adjacent":y.isHidden,"v-date-picker-month__day--selected":y.isSelected,"v-date-picker-month__day--week-end":y.isWeekEnd,"v-date-picker-month__day--week-start":y.isWeekStart}],"data-v-date":y.isDisabled?void 0:y.isoDate},[(e.showAdjacentMonths||!y.isAdjacent)&&I(lt,{defaults:{VBtn:{class:"v-date-picker-month__day-btn",color:(y.isSelected||y.isToday)&&!y.isDisabled?e.color:void 0,disabled:y.isDisabled,icon:!0,ripple:!1,text:y.localized,variant:y.isDisabled?y.isToday?"outlined":"text":y.isToday&&!y.isSelected?"outlined":"flat",onClick:()=>p(y.date)}}},{default:()=>{var x;return[((x=r.day)==null?void 0:x.call(r,b))??I(xt,b.props,null)]}})])})])]}})])}}),J5=ne({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number},"VDatePickerMonths"),px=fe()({name:"VDatePickerMonths",props:J5(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=hh(),i=Ve(e,"modelValue"),o=E(()=>{let s=a.startOfYear(a.date());return e.year&&(s=a.setYear(s,e.year)),xi(12).map(l=>{const u=a.format(s,"monthShort"),c=!!(e.min&&a.isAfter(a.startOfMonth(a.date(e.min)),s)||e.max&&a.isAfter(s,a.startOfMonth(a.date(e.max))));return s=a.getNextMonth(s),{isDisabled:c,text:u,value:l}})});return un(()=>{i.value=i.value??a.getMonth(a.date())}),ge(()=>I("div",{class:"v-date-picker-months",style:{height:De(e.height)}},[I("div",{class:"v-date-picker-months__content"},[o.value.map((s,l)=>{var f;const u={active:i.value===l,color:i.value===l?e.color:void 0,disabled:s.isDisabled,rounded:!0,text:s.text,variant:i.value===s.value?"flat":"text",onClick:()=>c(l)};function c(d){if(i.value===d){n("update:modelValue",i.value);return}i.value=d}return((f=r.month)==null?void 0:f.call(r,{month:s,i:l,props:u}))??I(xt,ve({key:"month"},u),null)})])])),{}}}),Q5=ne({color:String,height:[String,Number],min:null,max:null,modelValue:Number},"VDatePickerYears"),mx=fe()({name:"VDatePickerYears",props:Q5(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=hh(),i=Ve(e,"modelValue"),o=E(()=>{const l=a.getYear(a.date());let u=l-100,c=l+52;e.min&&(u=a.getYear(a.date(e.min))),e.max&&(c=a.getYear(a.date(e.max)));let f=a.startOfYear(a.date());return f=a.setYear(f,u),xi(c-u+1,u).map(d=>{const v=a.format(f,"year");return f=a.setYear(f,a.getYear(f)+1),{text:v,value:d}})});un(()=>{i.value=i.value??a.getYear(a.date())});const s=pm();return wn(async()=>{var l;await ht(),(l=s.el)==null||l.scrollIntoView({block:"center"})}),ge(()=>I("div",{class:"v-date-picker-years",style:{height:De(e.height)}},[I("div",{class:"v-date-picker-years__content"},[o.value.map((l,u)=>{var f;const c={ref:i.value===l.value?s:void 0,active:i.value===l.value,color:i.value===l.value?e.color:void 0,rounded:!0,text:l.text,variant:i.value===l.value?"flat":"text",onClick:()=>{if(i.value===l.value){n("update:modelValue",i.value);return}i.value=l.value}};return((f=r.year)==null?void 0:f.call(r,{year:l,i:u,props:c}))??I(xt,ve({key:"month"},c),null)})])])),{}}}),$ee=zi("v-picker-title"),e3=ne({bgColor:String,landscape:Boolean,title:String,hideHeader:Boolean,...l0()},"VPicker"),Mk=fe()({name:"VPicker",props:e3(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(oe(e,"color"));return ge(()=>{const i=uu.filterProps(e),o=!!(e.title||n.title);return I(uu,ve(i,{color:e.bgColor,class:["v-picker",{"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>{var s;return[!e.hideHeader&&I("div",{key:"header",class:[r.value],style:[a.value]},[o&&I($ee,{key:"picker-title"},{default:()=>{var l;return[((l=n.title)==null?void 0:l.call(n))??e.title]}}),n.header&&I("div",{class:"v-picker__header"},[n.header()])]),I("div",{class:"v-picker__body"},[(s=n.default)==null?void 0:s.call(n)]),n.actions&&I(lt,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[I("div",{class:"v-picker__actions"},[n.actions()])]})]}})}),{}}}),Wee=ne({header:{type:String,default:"$vuetify.datePicker.header"},...K5(),...q5({weeksInMonth:"static"}),...vn(J5(),["modelValue"]),...vn(Q5(),["modelValue"]),...e3({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),Uee=fe()({name:"VDatePicker",props:Wee(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=hh(),{t:i}=nn(),o=Ve(e,"modelValue",void 0,w=>jt(w),w=>e.multiple?w:w[0]),s=Ve(e,"viewMode"),l=E(()=>{var A;const w=a.date((A=o.value)==null?void 0:A[0]);return w&&a.isValid(w)?w:a.date()}),u=ye(Number(e.month??a.getMonth(a.startOfMonth(l.value)))),c=ye(Number(e.year??a.getYear(a.startOfYear(a.setMonth(l.value,u.value))))),f=Te(!1),d=E(()=>e.multiple&&o.value.length>1?i("$vuetify.datePicker.itemsSelected",o.value.length):o.value[0]&&a.isValid(o.value[0])?a.format(a.date(o.value[0]),"normalDateWithWeekday"):i(e.header)),v=E(()=>{let w=a.date();return w=a.setDate(w,1),w=a.setMonth(w,u.value),w=a.setYear(w,c.value),a.format(w,"monthAndYear")}),h=E(()=>`date-picker-header${f.value?"-reverse":""}-transition`),g=E(()=>{const w=a.date(e.min);return e.min&&a.isValid(w)?w:null}),p=E(()=>{const w=a.date(e.max);return e.max&&a.isValid(w)?w:null}),m=E(()=>{if(e.disabled)return!0;const w=[];if(s.value!=="month")w.push("prev","next");else{let A=a.date();if(A=a.setYear(A,c.value),A=a.setMonth(A,u.value),g.value){const D=a.addDays(a.startOfMonth(A),-1);a.isAfter(g.value,D)&&w.push("prev")}if(p.value){const D=a.addDays(a.endOfMonth(A),1);a.isAfter(D,p.value)&&w.push("next")}}return w});function y(){u.value<11?u.value++:(c.value++,u.value=0,C(c.value)),T(u.value)}function _(){u.value>0?u.value--:(c.value--,u.value=11,C(c.value)),T(u.value)}function b(){s.value="month"}function x(){s.value=s.value==="months"?"month":"months"}function S(){s.value=s.value==="year"?"month":"year"}function T(w){s.value==="months"&&x(),n("update:month",w)}function C(w){s.value==="year"&&S(),n("update:year",w)}return Ce(o,(w,A)=>{const D=jt(A),P=jt(w);if(!P.length)return;const k=a.date(D[D.length-1]),L=a.date(P[P.length-1]),V=a.getMonth(L),N=a.getYear(L);V!==u.value&&(u.value=V,T(u.value)),N!==c.value&&(c.value=N,C(c.value)),f.value=a.isBefore(k,L)}),ge(()=>{const w=Mk.filterProps(e),A=vx.filterProps(e),D=hx.filterProps(e),P=gx.filterProps(e),k=vn(px.filterProps(e),["modelValue"]),L=vn(mx.filterProps(e),["modelValue"]),V={header:d.value,transition:h.value};return I(Mk,ve(w,{class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},e.class],style:e.style}),{title:()=>{var N;return((N=r.title)==null?void 0:N.call(r))??I("div",{class:"v-date-picker__title"},[i(e.title)])},header:()=>r.header?I(lt,{defaults:{VDatePickerHeader:{...V}}},{default:()=>{var N;return[(N=r.header)==null?void 0:N.call(r,V)]}}):I(hx,ve({key:"header"},D,V,{onClick:s.value!=="month"?b:void 0}),{...r,default:void 0}),default:()=>I(ke,null,[I(vx,ve(A,{disabled:m.value,text:v.value,"onClick:next":y,"onClick:prev":_,"onClick:month":x,"onClick:year":S}),null),I(wv,{hideOnLeave:!0},{default:()=>[s.value==="months"?I(px,ve({key:"date-picker-months"},k,{modelValue:u.value,"onUpdate:modelValue":[N=>u.value=N,T],min:g.value,max:p.value,year:c.value}),null):s.value==="year"?I(mx,ve({key:"date-picker-years"},L,{modelValue:c.value,"onUpdate:modelValue":[N=>c.value=N,C],min:g.value,max:p.value}),null):I(gx,ve({key:"date-picker-month"},P,{modelValue:o.value,"onUpdate:modelValue":N=>o.value=N,month:u.value,"onUpdate:month":[N=>u.value=N,T],year:c.value,"onUpdate:year":[N=>c.value=N,C],min:g.value,max:p.value}),null)]})]),actions:r.actions})}),{}}}),Yee=ne({actionText:String,bgColor:String,color:String,icon:Ye,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...Me(),...gn(),...Fi({size:void 0}),...gt()},"VEmptyState"),Xee=fe()({name:"VEmptyState",props:Yee(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{themeClasses:a}=Ct(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Et(oe(e,"bgColor")),{dimensionStyles:s}=pn(e),{displayClasses:l}=Wr();function u(c){n("click:action",c)}return ge(()=>{var p,m,y;const c=!!(r.actions||e.actionText),f=!!(r.headline||e.headline),d=!!(r.title||e.title),v=!!(r.text||e.text),h=!!(r.media||e.image||e.icon),g=e.size||(e.image?200:96);return I("div",{class:["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},a.value,i.value,l.value,e.class],style:[o.value,s.value,e.style]},[h&&I("div",{key:"media",class:"v-empty-state__media"},[r.media?I(lt,{key:"media-defaults",defaults:{VImg:{src:e.image,height:g},VIcon:{size:g,icon:e.icon}}},{default:()=>[r.media()]}):I(ke,null,[e.image?I(po,{key:"image",src:e.image,height:g},null):e.icon?I(wt,{key:"icon",color:e.color,size:g,icon:e.icon},null):void 0])]),f&&I("div",{key:"headline",class:"v-empty-state__headline"},[((p=r.headline)==null?void 0:p.call(r))??e.headline]),d&&I("div",{key:"title",class:"v-empty-state__title"},[((m=r.title)==null?void 0:m.call(r))??e.title]),v&&I("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:De(e.textWidth)}},[((y=r.text)==null?void 0:y.call(r))??e.text]),r.default&&I("div",{key:"content",class:"v-empty-state__content"},[r.default()]),c&&I("div",{key:"actions",class:"v-empty-state__actions"},[I(lt,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",text:e.actionText}}},{default:()=>{var _;return[((_=r.actions)==null?void 0:_.call(r,{props:{onClick:u}}))??I(xt,{onClick:u},null)]}})])])}),{}}}),kv=Symbol.for("vuetify:v-expansion-panel"),t3=ne({...Me(),...yT()},"VExpansionPanelText"),yx=fe()({name:"VExpansionPanelText",props:t3(),setup(e,t){let{slots:n}=t;const r=rt(kv);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:a,onAfterLeave:i}=_T(e,r.isSelected);return ge(()=>I(Zy,{onAfterLeave:i},{default:()=>{var o;return[Zt(I("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&a.value&&I("div",{class:"v-expansion-panel-text__wrapper"},[(o=n.default)==null?void 0:o.call(n)])]),[[Ma,r.isSelected.value]])]}})),{}}}),n3=ne({color:String,expandIcon:{type:Ye,default:"$expand"},collapseIcon:{type:Ye,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Me(),...gn()},"VExpansionPanelTitle"),_x=fe()({name:"VExpansionPanelTitle",directives:{Ripple:Po},props:n3(),setup(e,t){let{slots:n}=t;const r=rt(kv);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:a,backgroundColorStyles:i}=Et(e,"color"),{dimensionStyles:o}=pn(e),s=E(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),l=E(()=>r.isSelected.value?e.collapseIcon:e.expandIcon);return ge(()=>{var u;return Zt(I("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},a.value,e.class],style:[i.value,o.value,e.style],type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[I("span",{class:"v-expansion-panel-title__overlay"},null),(u=n.default)==null?void 0:u.call(n,s.value),!e.hideActions&&I(lt,{defaults:{VIcon:{icon:l.value}}},{default:()=>{var c;return[I("span",{class:"v-expansion-panel-title__icon"},[((c=n.actions)==null?void 0:c.call(n,s.value))??I(wt,null,null)])]}})]),[[na("ripple"),e.ripple]])}),{}}}),r3=ne({title:String,text:String,bgColor:String,...An(),...Iu(),...Yt(),...nt(),...n3(),...t3()},"VExpansionPanel"),jee=fe()({name:"VExpansionPanel",props:r3(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Du(e,kv),{backgroundColorClasses:a,backgroundColorStyles:i}=Et(e,"bgColor"),{elevationClasses:o}=Un(e),{roundedClasses:s}=Qt(e),l=E(()=>(r==null?void 0:r.disabled.value)||e.disabled),u=E(()=>r.group.items.value.reduce((d,v,h)=>(r.group.selected.value.includes(v.id)&&d.push(h),d),[])),c=E(()=>{const d=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-d===1)}),f=E(()=>{const d=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-d===-1)});return Lt(kv,r),ge(()=>{const d=!!(n.text||e.text),v=!!(n.title||e.title),h=_x.filterProps(e),g=yx.filterProps(e);return I(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":f.value,"v-expansion-panel--disabled":l.value},s.value,a.value,e.class],style:[i.value,e.style]},{default:()=>[I("div",{class:["v-expansion-panel__shadow",...o.value]},null),I(lt,{defaults:{VExpansionPanelTitle:{...h},VExpansionPanelText:{...g}}},{default:()=>{var p;return[v&&I(_x,{key:"title"},{default:()=>[n.title?n.title():e.title]}),d&&I(yx,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(p=n.default)==null?void 0:p.call(n)]}})]})}),{groupItem:r}}}),Zee=["default","accordion","inset","popout"],Kee=ne({flat:Boolean,...Au(),...UC(r3(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...gt(),...Me(),...nt(),variant:{type:String,default:"default",validator:e=>Zee.includes(e)}},"VExpansionPanels"),qee=fe()({name:"VExpansionPanels",props:Kee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:r,prev:a}=Hs(e,kv),{themeClasses:i}=Ct(e),o=E(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Kt({VExpansionPanel:{bgColor:oe(e,"bgColor"),collapseIcon:oe(e,"collapseIcon"),color:oe(e,"color"),eager:oe(e,"eager"),elevation:oe(e,"elevation"),expandIcon:oe(e,"expandIcon"),focusable:oe(e,"focusable"),hideActions:oe(e,"hideActions"),readonly:oe(e,"readonly"),ripple:oe(e,"ripple"),rounded:oe(e,"rounded"),static:oe(e,"static")}}),ge(()=>I(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},i.value,o.value,e.class],style:e.style},{default:()=>{var s;return[(s=n.default)==null?void 0:s.call(n,{prev:a,next:r})]}})),{next:r,prev:a}}}),Jee=ne({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...vn(Qy({active:!0}),["location"]),...xu(),...Do(),...ai({transition:"fab-transition"})},"VFab"),Qee=fe()({name:"VFab",props:Jee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),a=Te(56),i=ye(),{resizeRef:o}=ti(f=>{f.length&&(a.value=f[0].target.clientHeight)}),s=E(()=>e.app||e.absolute),l=E(()=>{var f;return s.value?((f=e.location)==null?void 0:f.split(" ").shift())??"bottom":!1}),u=E(()=>{var f;return s.value?((f=e.location)==null?void 0:f.split(" ")[1])??"end":!1});Cr(()=>e.app,()=>{const f=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:l,layoutSize:E(()=>e.layout?a.value+24:0),elementSize:E(()=>a.value+24),active:E(()=>e.app&&r.value),absolute:oe(e,"absolute")});un(()=>{i.value=f.layoutItemStyles.value})});const c=ye();return ge(()=>{const f=xt.filterProps(e);return I("div",{ref:c,class:["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${l.value}`]:s.value,[`v-fab--${u.value}`]:s.value},e.class],style:[e.app?{...i.value}:{height:"inherit",width:void 0},e.style]},[I("div",{class:"v-fab__container"},[I(lr,{appear:e.appear,transition:e.transition},{default:()=>[Zt(I(xt,ve({ref:o},f,{active:void 0,location:void 0}),n),[[Ma,e.active]])]})])])}),{}}}),ete=ne({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},...Mo({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>jt(e).every(t=>t!=null&&typeof t=="object")},...wh({clearable:!0})},"VFileInput"),tte=fe()({name:"VFileInput",inheritAttrs:!1,props:ete(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:i}=nn(),o=Ve(e,"modelValue",e.modelValue,w=>jt(w),w=>!e.multiple&&Array.isArray(w)?w[0]:w),{isFocused:s,focus:l,blur:u}=ko(e),c=E(()=>typeof e.showSize!="boolean"?e.showSize:void 0),f=E(()=>(o.value??[]).reduce((w,A)=>{let{size:D=0}=A;return w+D},0)),d=E(()=>$P(f.value,c.value)),v=E(()=>(o.value??[]).map(w=>{const{name:A="",size:D=0}=w;return e.showSize?`${A} (${$P(D,c.value)})`:A})),h=E(()=>{var A;const w=((A=o.value)==null?void 0:A.length)??0;return e.showSize?i(e.counterSizeString,w,d.value):i(e.counterString,w)}),g=ye(),p=ye(),m=ye(),y=E(()=>s.value||e.active),_=E(()=>["plain","underlined"].includes(e.variant));function b(){var w;m.value!==document.activeElement&&((w=m.value)==null||w.focus()),s.value||l()}function x(w){var A;(A=m.value)==null||A.click()}function S(w){r("mousedown:control",w)}function T(w){var A;(A=m.value)==null||A.click(),r("click:control",w)}function C(w){w.stopPropagation(),b(),ht(()=>{o.value=[],XC(e["onClick:clear"],w)})}return Ce(o,w=>{(!Array.isArray(w)||!w.length)&&m.value&&(m.value.value="")}),ge(()=>{const w=!!(a.counter||e.counter),A=!!(w||a.details),[D,P]=zs(n),{modelValue:k,...L}=qn.filterProps(e),V=bT(e);return I(qn,ve({ref:g,modelValue:o.value,"onUpdate:modelValue":N=>o.value=N,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":_.value},e.class],style:e.style,"onClick:prepend":x},D,L,{centerAffix:!_.value,focused:s.value}),{...a,default:N=>{let{id:$,isDisabled:z,isDirty:H,isReadonly:U,isValid:Y}=N;return I(xf,ve({ref:p,"prepend-icon":e.prependIcon,onMousedown:S,onClick:T,"onClick:clear":C,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},V,{id:$.value,active:y.value||H.value,dirty:H.value||e.dirty,disabled:z.value,focused:s.value,error:Y.value===!1}),{...a,default:J=>{var be;let{props:{class:ue,...le}}=J;return I(ke,null,[I("input",ve({ref:m,type:"file",readonly:U.value,disabled:z.value,multiple:e.multiple,name:e.name,onClick:ae=>{ae.stopPropagation(),U.value&&ae.preventDefault(),b()},onChange:ae=>{if(!ae.target)return;const Z=ae.target;o.value=[...Z.files??[]]},onFocus:b,onBlur:u},le,P),null),I("div",{class:ue},[!!((be=o.value)!=null&&be.length)&&!e.hideInput&&(a.selection?a.selection({fileNames:v.value,totalBytes:f.value,totalBytesReadable:d.value}):e.chips?v.value.map(ae=>I(Sf,{key:ae,size:"small",text:ae},null)):v.value.join(", "))])])}})},details:A?N=>{var $,z;return I(ke,null,[($=a.details)==null?void 0:$.call(a,N),w&&I(ke,null,[I("span",null,null),I(r0,{active:!!((z=o.value)!=null&&z.length),value:h.value,disabled:e.disabled},a.counter)])])}:void 0})}),Ea({},g,p,m)}}),nte=ne({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Ur(),...Me(),...An(),...xu(),...Yt(),...nt({tag:"footer"}),...gt()},"VFooter"),rte=fe()({name:"VFooter",props:nte(),setup(e,t){let{slots:n}=t;const r=ye(),{themeClasses:a}=Ct(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Et(oe(e,"color")),{borderClasses:s}=oa(e),{elevationClasses:l}=Un(e),{roundedClasses:u}=Qt(e),c=Te(32),{resizeRef:f}=ti(v=>{v.length&&(c.value=v[0].target.clientHeight)}),d=E(()=>e.height==="auto"?c.value:parseInt(e.height,10));return Cr(()=>e.app,()=>{const v=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:E(()=>"bottom"),layoutSize:d,elementSize:E(()=>e.height==="auto"?void 0:d.value),active:E(()=>e.app),absolute:oe(e,"absolute")});un(()=>{r.value=v.layoutItemStyles.value})}),ge(()=>I(e.tag,{ref:f,class:["v-footer",a.value,i.value,s.value,l.value,u.value,e.class],style:[o.value,e.app?r.value:{height:De(e.height)},e.style]},n)),{}}}),ate=ne({...Me(),...fq()},"VForm"),ite=fe()({name:"VForm",props:ate(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=dq(e),i=ye();function o(l){l.preventDefault(),a.reset()}function s(l){const u=l,c=a.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(f=>{var v;let{valid:d}=f;d&&((v=i.value)==null||v.submit())}),u.preventDefault()}return ge(()=>{var l;return I("form",{ref:i,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:o,onSubmit:s},[(l=n.default)==null?void 0:l.call(n,a)])}),Ea(a,i)}}),ote=ne({disabled:Boolean,modelValue:{type:Boolean,default:null},...pT()},"VHover"),ste=fe()({name:"VHover",props:ote(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{runOpenDelay:a,runCloseDelay:i}=mT(e,o=>!e.disabled&&(r.value=o));return()=>{var o;return(o=n.default)==null?void 0:o.call(n,{isHovering:r.value,props:{onMouseenter:a,onMouseleave:i}})}}}),lte=ne({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...gn(),...nt()},"VInfiniteScroll"),Lk=aa({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:r,isIntersecting:a}=Ky();return Ce(a,async i=>{n("intersect",e.side,i)}),ge(()=>I("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:r},[ta(" ")])),{}}}),ute=fe()({name:"VInfiniteScroll",props:lte(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ye(),i=Te("ok"),o=Te("ok"),s=E(()=>De(e.margin)),l=Te(!1);function u(x){if(!a.value)return;const S=e.direction==="vertical"?"scrollTop":"scrollLeft";a.value[S]=x}function c(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";return a.value[x]}function f(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollHeight":"scrollWidth";return a.value[x]}function d(){if(!a.value)return 0;const x=e.direction==="vertical"?"clientHeight":"clientWidth";return a.value[x]}wn(()=>{a.value&&(e.side==="start"?u(f()):e.side==="both"&&u(f()/2-d()/2))});function v(x,S){x==="start"?i.value=S:x==="end"&&(o.value=S)}function h(x){return x==="start"?i.value:o.value}let g=0;function p(x,S){l.value=S,l.value&&m(x)}function m(x){if(e.mode!=="manual"&&!l.value)return;const S=h(x);if(!a.value||["empty","loading"].includes(S))return;g=f(),v(x,"loading");function T(C){v(x,C),ht(()=>{C==="empty"||C==="error"||(C==="ok"&&x==="start"&&u(f()-g+c()),e.mode!=="manual"&&ht(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{m(x)})})})}))})}r("load",{side:x,done:T})}const{t:y}=nn();function _(x,S){var w,A,D,P,k;if(e.side!==x&&e.side!=="both")return;const T=()=>m(x),C={side:x,props:{onClick:T,color:e.color}};return S==="error"?(w=n.error)==null?void 0:w.call(n,C):S==="empty"?((A=n.empty)==null?void 0:A.call(n,C))??I("div",null,[y(e.emptyText)]):e.mode==="manual"?S==="loading"?((D=n.loading)==null?void 0:D.call(n,C))??I(Qc,{indeterminate:!0,color:e.color},null):((P=n["load-more"])==null?void 0:P.call(n,C))??I(xt,{variant:"outlined",color:e.color,onClick:T},{default:()=>[y(e.loadMoreText)]}):((k=n.loading)==null?void 0:k.call(n,C))??I(Qc,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:b}=pn(e);ge(()=>{const x=e.tag,S=e.side==="start"||e.side==="both",T=e.side==="end"||e.side==="both",C=e.mode==="intersect";return I(x,{ref:a,class:["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":S,"v-infinite-scroll--end":T}],style:b.value},{default:()=>{var w;return[I("div",{class:"v-infinite-scroll__side"},[_("start",i.value)]),S&&C&&I(Lk,{key:"start",side:"start",onIntersect:p,rootMargin:s.value},null),(w=n.default)==null?void 0:w.call(n),T&&C&&I(Lk,{key:"end",side:"end",onIntersect:p,rootMargin:s.value},null),I("div",{class:"v-infinite-scroll__side"},[_("end",o.value)])]}})})}}),a3=Symbol.for("vuetify:v-item-group"),cte=ne({...Me(),...Au({selectedClass:"v-item--selected"}),...nt(),...gt()},"VItemGroup"),fte=fe()({name:"VItemGroup",props:cte(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{isSelected:a,select:i,next:o,prev:s,selected:l}=Hs(e,a3);return()=>I(e.tag,{class:["v-item-group",r.value,e.class],style:e.style},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:a,select:i,next:o,prev:s,selected:l.value})]}})}}),dte=fe()({name:"VItem",props:Iu(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,select:a,toggle:i,selectedClass:o,value:s,disabled:l}=Du(e,a3);return()=>{var u;return(u=n.default)==null?void 0:u.call(n,{isSelected:r.value,selectedClass:o.value,select:a,toggle:i,value:s.value,disabled:l.value})}}}),vte=zi("v-kbd","kbd"),hte=ne({...Me(),...gn(),...Yz()},"VLayout"),gte=fe()({name:"VLayout",props:hte(),setup(e,t){let{slots:n}=t;const{layoutClasses:r,layoutStyles:a,getLayoutItem:i,items:o,layoutRef:s}=jz(e),{dimensionStyles:l}=pn(e);return ge(()=>{var u;return I("div",{ref:s,class:[r.value,e.class],style:[l.value,a.value,e.style]},[(u=n.default)==null?void 0:u.call(n)])}),{getLayoutItem:i,items:o}}}),pte=ne({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...Me(),...xu()},"VLayoutItem"),mte=fe()({name:"VLayoutItem",props:pte(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:r}=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:oe(e,"position"),elementSize:oe(e,"size"),layoutSize:oe(e,"size"),active:oe(e,"modelValue"),absolute:oe(e,"absolute")});return()=>{var a;return I("div",{class:["v-layout-item",e.class],style:[r.value,e.style]},[(a=n.default)==null?void 0:a.call(n)])}}}),yte=ne({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...Me(),...gn(),...nt(),...ai({transition:"fade-transition"})},"VLazy"),_te=fe()({name:"VLazy",directives:{intersect:gh},props:yte(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=pn(e),a=Ve(e,"modelValue");function i(o){a.value||(a.value=o)}return ge(()=>Zt(I(e.tag,{class:["v-lazy",e.class],style:[r.value,e.style]},{default:()=>[a.value&&I(lr,{transition:e.transition,appear:!0},{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n)]}})]}),[[na("intersect"),{handler:i,options:e.options},null]])),{}}}),bte=ne({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...Me()},"VLocaleProvider"),Ste=fe()({name:"VLocaleProvider",props:bte(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Jj(e);return ge(()=>{var a;return I("div",{class:["v-locale-provider",r.value,e.class],style:e.style},[(a=n.default)==null?void 0:a.call(n)])}),{}}}),xte=ne({scrollable:Boolean,...Me(),...gn(),...nt({tag:"main"})},"VMain"),wte=fe()({name:"VMain",props:xte(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=pn(e),{mainStyles:a}=Xz(),{ssrBootStyles:i}=Cu();return ge(()=>I(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[a.value,i.value,r.value,e.style]},{default:()=>{var o,s;return[e.scrollable?I("div",{class:"v-main__scroller"},[(o=n.default)==null?void 0:o.call(n)]):(s=n.default)==null?void 0:s.call(n)]}})),{}}});function Cte(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const a=Te(!1),i=Te(0),o=E(()=>{const u=typeof a.value=="boolean"?"top":a.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,a.value?{[u]:De(i.value)}:{top:r.value.top}]});wn(()=>{Ce(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),Cn(()=>{window.removeEventListener("scroll",l)});let s=0;function l(){const u=s>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),f=parseFloat(r.value.top??0),d=window.scrollY-Math.max(0,i.value-f),v=c.height+Math.max(i.value,f)-window.scrollY-window.innerHeight,h=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;n--){if(e[n].t===e[n-1].t)continue;const r=Ek(t),a=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(a-r)*Math.abs(a),n===e.length-1&&(t*=.5)}return Ek(t)*1e3}function Ite(){const e={};function t(a){Array.from(a.changedTouches).forEach(i=>{(e[i.identifier]??(e[i.identifier]=new vj(Ate))).push([a.timeStamp,i])})}function n(a){Array.from(a.changedTouches).forEach(i=>{delete e[i.identifier]})}function r(a){var u;const i=(u=e[a])==null?void 0:u.values().reverse();if(!i)throw new Error(`No samples for touch id ${a}`);const o=i[0],s=[],l=[];for(const c of i){if(o[0]-c[0]>Tte)break;s.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:Rk(s),y:Rk(l),get direction(){const{x:c,y:f}=this,[d,v]=[Math.abs(c),Math.abs(f)];return d>v&&c>=0?"right":d>v&&c<=0?"left":v>d&&f>=0?"down":v>d&&f<=0?"up":Dte()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function Dte(){throw new Error}function Pte(e){let{el:t,isActive:n,isTemporary:r,width:a,touchless:i,position:o}=e;wn(()=>{window.addEventListener("touchstart",y,{passive:!0}),window.addEventListener("touchmove",_,{passive:!1}),window.addEventListener("touchend",b,{passive:!0})}),Cn(()=>{window.removeEventListener("touchstart",y),window.removeEventListener("touchmove",_),window.removeEventListener("touchend",b)});const s=E(()=>["left","right"].includes(o.value)),{addMovement:l,endTouch:u,getVelocity:c}=Ite();let f=!1;const d=Te(!1),v=Te(0),h=Te(0);let g;function p(S,T){return(o.value==="left"?S:o.value==="right"?document.documentElement.clientWidth-S:o.value==="top"?S:o.value==="bottom"?document.documentElement.clientHeight-S:Yu())-(T?a.value:0)}function m(S){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const C=o.value==="left"?(S-h.value)/a.value:o.value==="right"?(document.documentElement.clientWidth-S-h.value)/a.value:o.value==="top"?(S-h.value)/a.value:o.value==="bottom"?(document.documentElement.clientHeight-S-h.value)/a.value:Yu();return T?Math.max(0,Math.min(1,C)):C}function y(S){if(i.value)return;const T=S.changedTouches[0].clientX,C=S.changedTouches[0].clientY,w=25,A=o.value==="left"?Tdocument.documentElement.clientWidth-w:o.value==="top"?Cdocument.documentElement.clientHeight-w:Yu(),D=n.value&&(o.value==="left"?Tdocument.documentElement.clientWidth-a.value:o.value==="top"?Cdocument.documentElement.clientHeight-a.value:Yu());(A||D||n.value&&r.value)&&(g=[T,C],h.value=p(s.value?T:C,n.value),v.value=m(s.value?T:C),f=h.value>-20&&h.value<80,u(S),l(S))}function _(S){const T=S.changedTouches[0].clientX,C=S.changedTouches[0].clientY;if(f){if(!S.cancelable){f=!1;return}const A=Math.abs(T-g[0]),D=Math.abs(C-g[1]);(s.value?A>D&&A>3:D>A&&D>3)?(d.value=!0,f=!1):(s.value?D:A)>3&&(f=!1)}if(!d.value)return;S.preventDefault(),l(S);const w=m(s.value?T:C,!1);v.value=Math.max(0,Math.min(1,w)),w>1?h.value=p(s.value?T:C,!0):w<0&&(h.value=p(s.value?T:C,!1))}function b(S){if(f=!1,!d.value)return;l(S),d.value=!1;const T=c(S.changedTouches[0].identifier),C=Math.abs(T.x),w=Math.abs(T.y);(s.value?C>w&&C>400:w>C&&w>3)?n.value=T.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||Yu()):n.value=v.value>.5}const x=E(()=>d.value?{transform:o.value==="left"?`translateX(calc(-100% + ${v.value*a.value}px))`:o.value==="right"?`translateX(calc(100% - ${v.value*a.value}px))`:o.value==="top"?`translateY(calc(-100% + ${v.value*a.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${v.value*a.value}px))`:Yu(),transition:"none"}:void 0);return Cr(d,()=>{var C,w;const S=((C=t.value)==null?void 0:C.style.transform)??null,T=((w=t.value)==null?void 0:w.style.transition)??null;un(()=>{var A,D,P,k;(D=t.value)==null||D.style.setProperty("transform",((A=x.value)==null?void 0:A.transform)||"none"),(k=t.value)==null||k.style.setProperty("transition",((P=x.value)==null?void 0:P.transition)||null)}),er(()=>{var A,D;(A=t.value)==null||A.style.setProperty("transform",S),(D=t.value)==null||D.style.setProperty("transition",T)})}),{isDragging:d,dragProgress:v,dragStyles:x}}function Yu(){throw new Error}const kte=["start","end","left","right","top","bottom"],Mte=ne({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>kte.includes(e)},sticky:Boolean,...Ur(),...Me(),...pT(),...Su({mobile:null}),...An(),...xu(),...Yt(),...nt({tag:"nav"}),...gt()},"VNavigationDrawer"),Lte=fe()({name:"VNavigationDrawer",props:Mte(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{isRtl:i}=Tn(),{themeClasses:o}=Ct(e),{borderClasses:s}=oa(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Et(oe(e,"color")),{elevationClasses:c}=Un(e),{displayClasses:f,mobile:d}=Wr(e),{roundedClasses:v}=Qt(e),h=oF(),g=Ve(e,"modelValue",null,Y=>!!Y),{ssrBootStyles:p}=Cu(),{scopeId:m}=ku(),y=ye(),_=Te(!1),{runOpenDelay:b,runCloseDelay:x}=mT(e,Y=>{_.value=Y}),S=E(()=>e.rail&&e.expandOnHover&&_.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),T=E(()=>G1(e.location,i.value)),C=E(()=>e.persistent),w=E(()=>!e.permanent&&(d.value||e.temporary)),A=E(()=>e.sticky&&!w.value&&T.value!=="bottom");Cr(()=>e.expandOnHover&&e.rail!=null,()=>{Ce(_,Y=>r("update:rail",!Y))}),Cr(()=>!e.disableResizeWatcher,()=>{Ce(w,Y=>!e.permanent&&ht(()=>g.value=!Y))}),Cr(()=>!e.disableRouteWatcher&&!!h,()=>{Ce(h.currentRoute,()=>w.value&&(g.value=!1))}),Ce(()=>e.permanent,Y=>{Y&&(g.value=!0)}),e.modelValue==null&&!w.value&&(g.value=e.permanent||!d.value);const{isDragging:D,dragProgress:P}=Pte({el:y,isActive:g,isTemporary:w,width:S,touchless:oe(e,"touchless"),position:T}),k=E(()=>{const Y=w.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):S.value;return D.value?Y*P.value:Y}),L=E(()=>["top","bottom"].includes(e.location)?0:S.value),{layoutItemStyles:V,layoutItemScrimStyles:N}=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:T,layoutSize:k,elementSize:L,active:E(()=>g.value||D.value),disableTransitions:E(()=>D.value),absolute:E(()=>e.absolute||A.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:z}=Cte({rootEl:y,isSticky:A,layoutItemStyles:V}),H=Et(E(()=>typeof e.scrim=="string"?e.scrim:null)),U=E(()=>({...D.value?{opacity:P.value*.2,transition:"none"}:void 0,...N.value}));return Kt({VList:{bgColor:"transparent"}}),ge(()=>{const Y=a.image||e.image;return I(ke,null,[I(e.tag,ve({ref:y,onMouseenter:b,onMouseleave:x,class:["v-navigation-drawer",`v-navigation-drawer--${T.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":_.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":w.value,"v-navigation-drawer--persistent":C.value,"v-navigation-drawer--active":g.value,"v-navigation-drawer--sticky":A.value},o.value,l.value,s.value,f.value,c.value,v.value,e.class],style:[u.value,V.value,p.value,z.value,e.style,["top","bottom"].includes(T.value)?{height:"auto"}:{}]},m,n),{default:()=>{var J,ue,le;return[Y&&I("div",{key:"image",class:"v-navigation-drawer__img"},[a.image?I(lt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},a.image):I(po,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),a.prepend&&I("div",{class:"v-navigation-drawer__prepend"},[(J=a.prepend)==null?void 0:J.call(a)]),I("div",{class:"v-navigation-drawer__content"},[(ue=a.default)==null?void 0:ue.call(a)]),a.append&&I("div",{class:"v-navigation-drawer__append"},[(le=a.append)==null?void 0:le.call(a)])]}}),I(xs,{name:"fade-transition"},{default:()=>[w.value&&(D.value||g.value)&&!!e.scrim&&I("div",ve({class:["v-navigation-drawer__scrim",H.backgroundColorClasses.value],style:[U.value,H.backgroundColorStyles.value],onClick:()=>{C.value||(g.value=!1)}},m),null)]})])}),{isStuck:$}}}),Ete=aa({name:"VNoSsr",setup(e,t){let{slots:n}=t;const r=UF();return()=>{var a;return r.value&&((a=n.default)==null?void 0:a.call(n))}}}),Rte=ne({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...gn(),...bh(),...Hy(wh({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),Vte=fe()({name:"VOtpInput",props:Rte(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{dimensionStyles:i}=pn(e),{isFocused:o,focus:s,blur:l}=ko(e),u=Ve(e,"modelValue","",C=>C==null?[]:String(C).split(""),C=>C.join("")),{t:c}=nn(),f=E(()=>Number(e.length)),d=E(()=>Array(f.value).fill(0)),v=ye(-1),h=ye(),g=ye([]),p=E(()=>g.value[v.value]);function m(){if(T(p.value.value)){p.value.value="";return}const C=u.value.slice(),w=p.value.value;C[v.value]=w;let A=null;v.value>u.value.length?A=u.value.length+1:v.value+1!==f.value&&(A="next"),u.value=C,A&&Wl(h.value,A)}function y(C){const w=u.value.slice(),A=v.value;let D=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(C.key)&&(C.preventDefault(),C.key==="ArrowLeft"?D="prev":C.key==="ArrowRight"?D="next":["Backspace","Delete"].includes(C.key)&&(w[v.value]="",u.value=w,v.value>0&&C.key==="Backspace"?D="prev":requestAnimationFrame(()=>{var P;(P=g.value[A])==null||P.select()})),requestAnimationFrame(()=>{D!=null&&Wl(h.value,D)}))}function _(C,w){var D,P;w.preventDefault(),w.stopPropagation();const A=((D=w==null?void 0:w.clipboardData)==null?void 0:D.getData("Text").slice(0,f.value))??"";T(A)||(u.value=A.split(""),(P=g.value)==null||P[C].blur())}function b(){u.value=[]}function x(C,w){s(),v.value=w}function S(){l(),v.value=-1}function T(C){return e.type==="number"&&/[^0-9]/g.test(C)}return Kt({VField:{color:E(()=>e.color),bgColor:E(()=>e.color),baseColor:E(()=>e.baseColor),disabled:E(()=>e.disabled),error:E(()=>e.error),variant:E(()=>e.variant)}},{scoped:!0}),Ce(u,C=>{C.length===f.value&&r("finish",C.join(""))},{deep:!0}),Ce(v,C=>{C<0||ht(()=>{var w;(w=g.value[C])==null||w.select()})}),ge(()=>{var A;const[C,w]=zs(n);return I("div",ve({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},C),[I("div",{ref:h,class:"v-otp-input__content",style:[i.value]},[d.value.map((D,P)=>I(ke,null,[e.divider&&P!==0&&I("span",{class:"v-otp-input__divider"},[e.divider]),I(xf,{focused:o.value&&e.focusAll||v.value===P,key:P},{...a,loader:void 0,default:()=>I("input",{ref:k=>g.value[P]=k,"aria-label":c(e.label,P+1),autofocus:P===0&&e.autofocus,autocomplete:"one-time-code",class:["v-otp-input__field"],disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:"1",placeholder:e.placeholder,type:e.type==="number"?"text":e.type,value:u.value[P],onInput:m,onFocus:k=>x(k,P),onBlur:S,onKeydown:y,onPaste:k=>_(P,k)},null)})])),I("input",ve({class:"v-otp-input-input",type:"hidden"},w,{value:u.value.join("")}),null),I(ki,{contained:!0,"content-class":"v-otp-input__loader","model-value":!!e.loading,persistent:!0},{default:()=>{var D;return[((D=a.loader)==null?void 0:D.call(a))??I(Qc,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}}),(A=a.default)==null?void 0:A.call(a)])])}),{blur:()=>{var C;(C=g.value)==null||C.some(w=>w.blur())},focus:()=>{var C;(C=g.value)==null||C[0].focus()},reset:b,isFocused:o}}});function Ote(e){return Math.floor(Math.abs(e))*Math.sign(e)}const Nte=ne({scale:{type:[Number,String],default:.5},...Me()},"VParallax"),Bte=fe()({name:"VParallax",props:Nte(),setup(e,t){let{slots:n}=t;const{intersectionRef:r,isIntersecting:a}=Ky(),{resizeRef:i,contentRect:o}=ti(),{height:s}=Wr(),l=ye();un(()=>{var v;r.value=i.value=(v=l.value)==null?void 0:v.$el});let u;Ce(a,v=>{v?(u=JC(r.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",d,{passive:!0}),d()):u.removeEventListener("scroll",d)}),Cn(()=>{u==null||u.removeEventListener("scroll",d)}),Ce(s,d),Ce(()=>{var v;return(v=o.value)==null?void 0:v.height},d);const c=E(()=>1-sn(+e.scale));let f=-1;function d(){a.value&&(cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;const v=((x=l.value)==null?void 0:x.$el).querySelector(".v-img__img");if(!v)return;const h=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,g=u instanceof Document?window.scrollY:u.scrollTop,p=r.value.getBoundingClientRect().top+g,m=o.value.height,y=p+(m-h)/2,_=Ote((g-y)*c.value),b=Math.max(1,(c.value*(h-m)+m)/m);v.style.setProperty("transform",`translateY(${_}px) scale(${b})`)}))}return ge(()=>I(po,{class:["v-parallax",{"v-parallax--active":a.value},e.class],style:e.style,ref:l,cover:!0,onLoadstart:d,onLoad:d},n)),{}}}),zte=ne({...e0({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),Fte=fe()({name:"VRadio",props:zte(),setup(e,t){let{slots:n}=t;return ge(()=>{const r=Cs.filterProps(e);return I(Cs,ve(r,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),Hte=ne({height:{type:[Number,String],default:"auto"},...Mo(),...vn(fT(),["multiple"]),trueIcon:{type:Ye,default:"$radioOn"},falseIcon:{type:Ye,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),Gte=fe()({name:"VRadioGroup",inheritAttrs:!1,props:Hte(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=Wn(),i=E(()=>e.id||`radio-group-${a}`),o=Ve(e,"modelValue");return ge(()=>{const[s,l]=zs(n),u=qn.filterProps(e),c=Cs.filterProps(e),f=r.label?r.label({label:e.label,props:{for:i.value}}):e.label;return I(qn,ve({class:["v-radio-group",e.class],style:e.style},s,u,{modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,id:i.value}),{...r,default:d=>{let{id:v,messagesId:h,isDisabled:g,isReadonly:p}=d;return I(ke,null,[f&&I(bf,{id:v.value},{default:()=>[f]}),I(mF,ve(c,{id:v.value,"aria-describedby":h.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:g.value,readonly:p.value,"aria-labelledby":f?v.value:void 0,multiple:!1},l,{modelValue:o.value,"onUpdate:modelValue":m=>o.value=m}),r)])}})}),{}}}),$te=ne({...bh(),...Mo(),...d5(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),Wte=fe()({name:"VRangeSlider",props:$te(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ye(),i=ye(),o=ye(),{rtlClasses:s}=Tn();function l(A){if(!a.value||!i.value)return;const D=lx(A,a.value.$el,e.direction),P=lx(A,i.value.$el,e.direction),k=Math.abs(D),L=Math.abs(P);return kA!=null&&A.length?A.map(D=>u.roundValue(D)):[0,0]),{activeThumbRef:f,hasLabels:d,max:v,min:h,mousePressed:g,onSliderMousedown:p,onSliderTouchstart:m,position:y,trackContainerRef:_,readonly:b}=h5({props:e,steps:u,onSliderStart:()=>{r("start",c.value)},onSliderEnd:A=>{var k;let{value:D}=A;const P=f.value===((k=a.value)==null?void 0:k.$el)?[D,c.value[1]]:[c.value[0],D];!e.strict&&P[0]{var L,V,N,$;let{value:D}=A;const[P,k]=c.value;!e.strict&&P===k&&P!==h.value&&(f.value=D>P?(L=i.value)==null?void 0:L.$el:(V=a.value)==null?void 0:V.$el,(N=f.value)==null||N.focus()),f.value===(($=a.value)==null?void 0:$.$el)?c.value=[Math.min(D,k),k]:c.value=[P,Math.max(P,D)]},getActiveThumb:l}),{isFocused:x,focus:S,blur:T}=ko(e),C=E(()=>y(c.value[0])),w=E(()=>y(c.value[1]));return ge(()=>{const A=qn.filterProps(e),D=!!(e.label||n.label||n.prepend);return I(qn,ve({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||d.value,"v-slider--focused":x.value,"v-slider--pressed":g.value,"v-slider--disabled":e.disabled},s.value,e.class],style:e.style,ref:o},A,{focused:x.value}),{...n,prepend:D?P=>{var k,L;return I(ke,null,[((k=n.label)==null?void 0:k.call(n,P))??(e.label?I(bf,{class:"v-slider__label",text:e.label},null):void 0),(L=n.prepend)==null?void 0:L.call(n,P)])}:void 0,default:P=>{var V,N;let{id:k,messagesId:L}=P;return I("div",{class:"v-slider__container",onMousedown:b.value?void 0:p,onTouchstartPassive:b.value?void 0:m},[I("input",{id:`${k.value}_start`,name:e.name||k.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[0]},null),I("input",{id:`${k.value}_stop`,name:e.name||k.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[1]},null),I(g5,{ref:_,start:C.value,stop:w.value},{"tick-label":n["tick-label"]}),I(ux,{ref:a,"aria-describedby":L.value,focused:x&&f.value===((V=a.value)==null?void 0:V.$el),modelValue:c.value[0],"onUpdate:modelValue":$=>c.value=[$,c.value[1]],onFocus:$=>{var z,H,U,Y;S(),f.value=(z=a.value)==null?void 0:z.$el,c.value[0]===c.value[1]&&c.value[1]===h.value&&$.relatedTarget!==((H=i.value)==null?void 0:H.$el)&&((U=a.value)==null||U.$el.blur(),(Y=i.value)==null||Y.$el.focus())},onBlur:()=>{T(),f.value=void 0},min:h.value,max:c.value[1],position:C.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]}),I(ux,{ref:i,"aria-describedby":L.value,focused:x&&f.value===((N=i.value)==null?void 0:N.$el),modelValue:c.value[1],"onUpdate:modelValue":$=>c.value=[c.value[0],$],onFocus:$=>{var z,H,U,Y;S(),f.value=(z=i.value)==null?void 0:z.$el,c.value[0]===c.value[1]&&c.value[0]===v.value&&$.relatedTarget!==((H=a.value)==null?void 0:H.$el)&&((U=i.value)==null||U.$el.blur(),(Y=a.value)==null||Y.$el.focus())},onBlur:()=>{T(),f.value=void 0},min:c.value[0],max:v.value,position:w.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}}),Ute=ne({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Ye,default:"$ratingEmpty"},fullIcon:{type:Ye,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...Me(),...Nn(),...Fi(),...nt(),...gt()},"VRating"),Yte=fe()({name:"VRating",props:Ute(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=nn(),{themeClasses:a}=Ct(e),i=Ve(e,"modelValue"),o=E(()=>sn(parseFloat(i.value),0,+e.length)),s=E(()=>xi(Number(e.length),1)),l=E(()=>s.value.flatMap(g=>e.halfIncrements?[g-.5,g]:[g])),u=Te(-1),c=E(()=>l.value.map(g=>{const p=e.hover&&u.value>-1,m=o.value>=g,y=u.value>=g,b=(p?y:m)?e.fullIcon:e.emptyIcon,x=e.activeColor??e.color,S=m||y?x:e.color;return{isFilled:m,isHovered:y,icon:b,color:S}})),f=E(()=>[0,...l.value].map(g=>{function p(){u.value=g}function m(){u.value=-1}function y(){e.disabled||e.readonly||(i.value=o.value===g&&e.clearable?0:g)}return{onMouseenter:e.hover?p:void 0,onMouseleave:e.hover?m:void 0,onClick:y}})),d=E(()=>e.name??`v-rating-${Wn()}`);function v(g){var C,w;let{value:p,index:m,showStar:y=!0}=g;const{onMouseenter:_,onMouseleave:b,onClick:x}=f.value[m+1],S=`${d.value}-${String(p).replace(".","-")}`,T={color:(C=c.value[m])==null?void 0:C.color,density:e.density,disabled:e.disabled,icon:(w=c.value[m])==null?void 0:w.icon,ripple:e.ripple,size:e.size,variant:"plain"};return I(ke,null,[I("label",{for:S,class:{"v-rating__item--half":e.halfIncrements&&p%1>0,"v-rating__item--full":e.halfIncrements&&p%1===0},onMouseenter:_,onMouseleave:b,onClick:x},[I("span",{class:"v-rating__hidden"},[r(e.itemAriaLabel,p,e.length)]),y?n.item?n.item({...c.value[m],props:T,value:p,index:m,rating:o.value}):I(xt,ve({"aria-label":r(e.itemAriaLabel,p,e.length)},T),null):void 0]),I("input",{class:"v-rating__hidden",name:d.value,id:S,type:"radio",value:p,checked:o.value===p,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function h(g){return n["item-label"]?n["item-label"](g):g.label?I("span",null,[g.label]):I("span",null,[ta(" ")])}return ge(()=>{var p;const g=!!((p=e.itemLabels)!=null&&p.length)||n["item-label"];return I(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},a.value,e.class],style:e.style},{default:()=>[I(v,{value:0,index:-1,showStar:!1},null),s.value.map((m,y)=>{var _,b;return I("div",{class:"v-rating__wrapper"},[g&&e.itemLabelPosition==="top"?h({value:m,index:y,label:(_=e.itemLabels)==null?void 0:_[y]}):void 0,I("div",{class:"v-rating__item"},[e.halfIncrements?I(ke,null,[I(v,{value:m-.5,index:y*2},null),I(v,{value:m,index:y*2+1},null)]):I(v,{value:m,index:y},null)]),g&&e.itemLabelPosition==="bottom"?h({value:m,index:y,label:(b=e.itemLabels)==null?void 0:b[y]}):void 0])})]})}),{}}}),Xte={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function jte(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return I("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${e}`]},[t])}function Vk(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>y0(t))}function y0(e){let t=[];if(!e)return t;const n=Xte[e];if(e!==n){if(e.includes(","))return Ok(e);if(e.includes("@"))return Vk(e);n.includes(",")?t=Ok(n):n.includes("@")?t=Vk(n):n&&t.push(y0(n))}return[jte(e,t)]}function Ok(e){return e.replace(/\s/g,"").split(",").map(y0)}const Zte=ne({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...gn(),...An(),...gt()},"VSkeletonLoader"),Kte=fe()({name:"VSkeletonLoader",props:Zte(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(oe(e,"color")),{dimensionStyles:i}=pn(e),{elevationClasses:o}=Un(e),{themeClasses:s}=Ct(e),{t:l}=nn(),u=E(()=>y0(jt(e.type).join(",")));return ge(()=>{var d;const c=!n.default||e.loading,f=e.boilerplate||!c?{}:{ariaLive:"polite",ariaLabel:l(e.loadingText),role:"alert"};return I("div",ve({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},s.value,r.value,o.value],style:[a.value,c?i.value:{}]},f),[c?u.value:(d=n.default)==null?void 0:d.call(n)])}),{}}}),qte=fe()({name:"VSlideGroupItem",props:Iu(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Du(e,AF);return()=>{var a;return(a=n.default)==null?void 0:a.call(n,{isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}}});function Jte(e){const t=Te(e());let n=-1;function r(){clearInterval(n)}function a(){r(),ht(()=>t.value=e())}function i(o){const s=o?getComputedStyle(o):{transitionDuration:.2},l=parseFloat(s.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e()-c,0),t.value<=0&&r()},l)}return er(r),{clear:r,time:t,start:i,reset:a}}const Qte=ne({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Do({location:"bottom"}),...yf(),...Yt(),...La(),...gt(),...vn(xh({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),ene=fe()({name:"VSnackbar",props:Qte(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{positionClasses:a}=_f(e),{scopeId:i}=ku(),{themeClasses:o}=Ct(e),{colorClasses:s,colorStyles:l,variantClasses:u}=Tu(e),{roundedClasses:c}=Qt(e),f=Jte(()=>Number(e.timeout)),d=ye(),v=ye(),h=Te(!1),g=Te(0),p=ye(),m=rt(xv,void 0);Cr(()=>!!m,()=>{const D=Xz();un(()=>{p.value=D.mainStyles.value})}),Ce(r,_),Ce(()=>e.timeout,_),wn(()=>{r.value&&_()});let y=-1;function _(){f.reset(),window.clearTimeout(y);const D=Number(e.timeout);if(!r.value||D===-1)return;const P=WC(v.value);f.start(P),y=window.setTimeout(()=>{r.value=!1},D)}function b(){f.reset(),window.clearTimeout(y)}function x(){h.value=!0,b()}function S(){h.value=!1,_()}function T(D){g.value=D.touches[0].clientY}function C(D){Math.abs(g.value-D.changedTouches[0].clientY)>50&&(r.value=!1)}function w(){h.value&&S()}const A=E(()=>e.location.split(" ").reduce((D,P)=>(D[`v-snackbar--${P}`]=!0,D),{}));return ge(()=>{const D=ki.filterProps(e),P=!!(n.default||n.text||e.text);return I(ki,ve({ref:d,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},A.value,a.value,e.class],style:[p.value,e.style]},D,{modelValue:r.value,"onUpdate:modelValue":k=>r.value=k,contentProps:ve({class:["v-snackbar__wrapper",o.value,s.value,c.value,u.value],style:[l.value],onPointerenter:x,onPointerleave:S},D.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:T,onTouchend:C,onAfterLeave:w},i),{default:()=>{var k,L;return[Fs(!1,"v-snackbar"),e.timer&&!h.value&&I("div",{key:"timer",class:"v-snackbar__timer"},[I(qy,{ref:v,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,"model-value":f.time.value},null)]),P&&I("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((k=n.text)==null?void 0:k.call(n))??e.text,(L=n.default)==null?void 0:L.call(n)]),n.actions&&I(lt,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[I("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})]},activator:n.activator})}),Ea({},d)}}),i3=ne({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:Boolean,width:{type:[Number,String],default:300}},"Line"),o3=ne({autoLineWidth:Boolean,...i3()},"VBarline"),Nk=fe()({name:"VBarline",props:o3(),setup(e,t){let{slots:n}=t;const r=Wn(),a=E(()=>e.id||`barline-${r}`),i=E(()=>Number(e.autoDrawDuration)||500),o=E(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),s=E(()=>parseFloat(e.lineWidth)||4),l=E(()=>Math.max(e.modelValue.length*s.value,Number(e.width))),u=E(()=>({minX:0,maxX:l.value,minY:0,maxY:parseInt(e.height,10)})),c=E(()=>e.modelValue.map(g=>bn(g,e.itemValue,g)));function f(g,p){const{minX:m,maxX:y,minY:_,maxY:b}=p,x=g.length;let S=e.max!=null?Number(e.max):Math.max(...g),T=e.min!=null?Number(e.min):Math.min(...g);T>0&&e.min==null&&(T=0),S<0&&e.max==null&&(S=0);const C=y/x,w=(b-_)/(S-T||1),A=b-Math.abs(T*w);return g.map((D,P)=>{const k=Math.abs(w*D);return{x:m+P*C,y:A-k+ +(D<0)*k,height:k,value:D}})}const d=E(()=>{const g=[],p=f(c.value,u.value),m=p.length;for(let y=0;g.lengthf(c.value,u.value)),h=E(()=>(Math.abs(v.value[0].x-v.value[1].x)-s.value)/2);ge(()=>{const g=e.gradient.slice().length?e.gradient.slice().reverse():[""];return I("svg",{display:"block"},[I("defs",null,[I("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[g.map((p,m)=>I("stop",{offset:m/Math.max(g.length-1,1),"stop-color":p||"currentColor"},null))])]),I("clipPath",{id:`${a.value}-clip`},[v.value.map(p=>I("rect",{x:p.x+h.value,y:p.y,width:s.value,height:p.height,rx:typeof e.smooth=="number"?e.smooth:e.smooth?2:0,ry:typeof e.smooth=="number"?e.smooth:e.smooth?2:0},[e.autoDraw&&I(ke,null,[I("animate",{attributeName:"y",from:p.y+p.height,to:p.y,dur:`${i.value}ms`,fill:"freeze"},null),I("animate",{attributeName:"height",from:"0",to:p.height,dur:`${i.value}ms`,fill:"freeze"},null)])]))]),o.value&&I("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[d.value.map((p,m)=>{var y;return I("text",{x:p.x+h.value+s.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[((y=n.label)==null?void 0:y.call(n,{index:m,value:p.value}))??p.value])})]),I("g",{"clip-path":`url(#${a.value}-clip)`,fill:`url(#${a.value})`},[I("rect",{x:0,y:0,width:Math.max(e.modelValue.length*s.value,Number(e.width)),height:e.height},null)])])})}});function tne(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:75;if(e.length===0)return"";const a=e.shift(),i=e[e.length-1];return(n?`M${a.x} ${r-a.x+2} L${a.x} ${a.y}`:`M${a.x} ${a.y}`)+e.map((o,s)=>{const l=e[s+1],u=e[s-1]||a,c=l&&nne(l,o,u);if(!l||c)return`L${o.x} ${o.y}`;const f=Math.min(Bk(u,o),Bk(l,o)),v=f/2e.id||`trendline-${r}`),i=E(()=>Number(e.autoDrawDuration)||(e.fill?500:2e3)),o=ye(0),s=ye(null);function l(p,m){const{minX:y,maxX:_,minY:b,maxY:x}=m,S=p.length,T=e.max!=null?Number(e.max):Math.max(...p),C=e.min!=null?Number(e.min):Math.min(...p),w=(_-y)/(S-1),A=(x-b)/(T-C||1);return p.map((D,P)=>({x:y+P*w,y:x-(D-C)*A,value:D}))}const u=E(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),c=E(()=>parseFloat(e.lineWidth)||4),f=E(()=>Number(e.width)),d=E(()=>{const p=Number(e.padding);return{minX:p,maxX:f.value-p,minY:p,maxY:parseInt(e.height,10)-p}}),v=E(()=>e.modelValue.map(p=>bn(p,e.itemValue,p))),h=E(()=>{const p=[],m=l(v.value,d.value),y=m.length;for(let _=0;p.lengthe.modelValue,async()=>{if(await ht(),!e.autoDraw||!s.value)return;const p=s.value,m=p.getTotalLength();e.fill?(p.style.transformOrigin="bottom center",p.style.transition="none",p.style.transform="scaleY(0)",p.getBoundingClientRect(),p.style.transition=`transform ${i.value}ms ${e.autoDrawEasing}`,p.style.transform="scaleY(1)"):(p.style.strokeDasharray=`${m}`,p.style.strokeDashoffset=`${m}`,p.getBoundingClientRect(),p.style.transition=`stroke-dashoffset ${i.value}ms ${e.autoDrawEasing}`,p.style.strokeDashoffset="0"),o.value=m},{immediate:!0});function g(p){return tne(l(v.value,d.value),e.smooth?8:Number(e.smooth),p,parseInt(e.height,10))}ge(()=>{var m;const p=e.gradient.slice().length?e.gradient.slice().reverse():[""];return I("svg",{display:"block","stroke-width":parseFloat(e.lineWidth)??4},[I("defs",null,[I("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[p.map((y,_)=>I("stop",{offset:_/Math.max(p.length-1,1),"stop-color":y||"currentColor"},null))])]),u.value&&I("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[h.value.map((y,_)=>{var b;return I("text",{x:y.x+c.value/2+c.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[((b=n.label)==null?void 0:b.call(n,{index:_,value:y.value}))??y.value])})]),I("path",{ref:s,d:g(e.fill),fill:e.fill?`url(#${a.value})`:"none",stroke:e.fill?"none":`url(#${a.value})`},null),e.fill&&I("path",{d:g(!1),fill:"none",stroke:e.color??((m=e.gradient)==null?void 0:m[0])},null)])})}}),rne=ne({type:{type:String,default:"trend"},...o3(),...s3()},"VSparkline"),ane=fe()({name:"VSparkline",props:rne(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=Kn(oe(e,"color")),i=E(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),o=E(()=>{let s=parseInt(e.height,10);return i.value&&(s+=parseInt(e.labelSize,10)*1.5),s});ge(()=>{const s=e.type==="trend"?Fk:Nk,l=e.type==="trend"?Fk.filterProps(e):Nk.filterProps(e);return I(s,ve({key:e.type,class:r.value,style:a.value,viewBox:`0 0 ${e.width} ${parseInt(o.value,10)}`},l),n)})}}),ine=ne({...Me(),...ZF({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),one=fe()({name:"VSpeedDial",props:ine(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),a=ye(),i=E(()=>{var u;const[s,l="center"]=((u=e.location)==null?void 0:u.split(" "))??[];return`${s} ${l}`}),o=E(()=>({[`v-speed-dial__content--${i.value.replace(" ","-")}`]:!0}));return ge(()=>{const s=ef.filterProps(e);return I(ef,ve(s,{modelValue:r.value,"onUpdate:modelValue":l=>r.value=l,class:e.class,style:e.style,contentClass:["v-speed-dial__content",o.value,e.contentClass],location:i.value,ref:a,transition:"fade-transition"}),{...n,default:l=>I(lt,{defaults:{VBtn:{size:"small"}}},{default:()=>[I(lr,{appear:!0,group:!0,transition:e.transition},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,l)]}})]})})}),{}}}),FT=Symbol.for("vuetify:v-stepper"),l3=ne({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),u3=fe()({name:"VStepperActions",props:l3(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=nn();function i(){n("click:prev")}function o(){n("click:next")}return ge(()=>{const s={onClick:i},l={onClick:o};return I("div",{class:"v-stepper-actions"},[I(lt,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:a(e.prevText),variant:"text"}}},{default:()=>{var u;return[((u=r.prev)==null?void 0:u.call(r,{props:s}))??I(xt,s,null)]}}),I(lt,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:a(e.nextText),variant:"tonal"}}},{default:()=>{var u;return[((u=r.next)==null?void 0:u.call(r,{props:l}))??I(xt,l,null)]}})])}),{}}}),c3=zi("v-stepper-header"),sne=ne({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:String,default:"$complete"},editable:Boolean,editIcon:{type:String,default:"$edit"},error:Boolean,errorIcon:{type:String,default:"$error"},icon:String,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),lne=ne({...sne(),...Iu()},"VStepperItem"),f3=fe()({name:"VStepperItem",directives:{Ripple:Po},props:lne(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Du(e,FT,!0),a=E(()=>(r==null?void 0:r.value.value)??e.value),i=E(()=>e.rules.every(d=>d()===!0)),o=E(()=>!e.disabled&&e.editable),s=E(()=>!e.disabled&&e.editable),l=E(()=>e.error||!i.value),u=E(()=>e.complete||e.rules.length>0&&i.value),c=E(()=>l.value?e.errorIcon:u.value?e.completeIcon:r.isSelected.value&&e.editable?e.editIcon:e.icon),f=E(()=>({canEdit:s.value,hasError:l.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:a.value,value:e.value}));return ge(()=>{var p,m,y;const d=(!r||r.isSelected.value||u.value||s.value)&&!l.value&&!e.disabled,v=!!(e.title!=null||n.title),h=!!(e.subtitle!=null||n.subtitle);function g(){r==null||r.toggle()}return Zt(I("button",{class:["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":l.value},r==null?void 0:r.selectedClass.value],disabled:!e.editable,onClick:g},[o.value&&Fs(!0,"v-stepper-item"),I(Pa,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:d?e.color:void 0,size:24},{default:()=>{var _;return[((_=n.icon)==null?void 0:_.call(n,f.value))??(c.value?I(wt,{icon:c.value},null):a.value)]}}),I("div",{class:"v-stepper-item__content"},[v&&I("div",{key:"title",class:"v-stepper-item__title"},[((p=n.title)==null?void 0:p.call(n,f.value))??e.title]),h&&I("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[((m=n.subtitle)==null?void 0:m.call(n,f.value))??e.subtitle]),(y=n.default)==null?void 0:y.call(n,f.value)])]),[[na("ripple"),e.ripple&&e.editable,null]])}),{}}}),une=ne({...vn(o0(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),d3=fe()({name:"VStepperWindow",props:une(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=rt(FT,null),a=Ve(e,"modelValue"),i=E({get(){var o;return a.value!=null||!r?a.value:(o=r.items.value.find(s=>r.selected.value.includes(s.id)))==null?void 0:o.value},set(o){a.value=o}});return ge(()=>{const o=su.filterProps(e);return I(su,ve({_as:"VStepperWindow"},o,{modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),cne=ne({...s0()},"VStepperWindowItem"),v3=fe()({name:"VStepperWindowItem",props:cne(),setup(e,t){let{slots:n}=t;return ge(()=>{const r=lu.filterProps(e);return I(lu,ve({_as:"VStepperWindowItem"},r,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),fne=ne({altLabels:Boolean,bgColor:String,completeIcon:String,editIcon:String,editable:Boolean,errorIcon:String,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:String,default:"title"},itemValue:{type:String,default:"value"},nonLinear:Boolean,flat:Boolean,...Su()},"Stepper"),dne=ne({...fne(),...Au({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...l0(),...Hy(l3(),["prevText","nextText"])},"VStepper"),vne=fe()({name:"VStepper",props:dne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:r,next:a,prev:i,selected:o}=Hs(e,FT),{displayClasses:s,mobile:l}=Wr(e),{completeIcon:u,editIcon:c,errorIcon:f,color:d,editable:v,prevText:h,nextText:g}=Vs(e),p=E(()=>e.items.map((_,b)=>{const x=bn(_,e.itemTitle,_),S=bn(_,e.itemValue,b+1);return{title:x,value:S,raw:_}})),m=E(()=>r.value.findIndex(_=>o.value.includes(_.id))),y=E(()=>e.disabled?e.disabled:m.value===0?"prev":m.value===r.value.length-1?"next":!1);return Kt({VStepperItem:{editable:v,errorIcon:f,completeIcon:u,editIcon:c,prevText:h,nextText:g},VStepperActions:{color:d,disabled:y,prevText:h,nextText:g}}),ge(()=>{const _=uu.filterProps(e),b=!!(n.header||e.items.length),x=e.items.length>0,S=!e.hideActions&&!!(x||n.actions);return I(uu,ve(_,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":l.value},s.value,e.class],style:e.style}),{default:()=>{var T,C;return[b&&I(c3,{key:"stepper-header"},{default:()=>[p.value.map((w,A)=>{let{raw:D,...P}=w;return I(ke,null,[!!A&&I(Sh,null,null),I(f3,P,{default:n[`header-item.${P.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),x&&I(d3,{key:"stepper-window"},{default:()=>[p.value.map(w=>I(v3,{value:w.value},{default:()=>{var A,D;return((A=n[`item.${w.value}`])==null?void 0:A.call(n,w))??((D=n.item)==null?void 0:D.call(n,w))}}))]}),(T=n.default)==null?void 0:T.call(n,{prev:i,next:a}),S&&(((C=n.actions)==null?void 0:C.call(n,{next:a,prev:i}))??I(u3,{key:"stepper-actions","onClick:prev":i,"onClick:next":a},n))]}})}),{prev:i,next:a}}}),hne=ne({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Mo(),...e0()},"VSwitch"),gne=fe()({name:"VSwitch",inheritAttrs:!1,props:hne(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=Ve(e,"indeterminate"),i=Ve(e,"modelValue"),{loaderClasses:o}=ph(e),{isFocused:s,focus:l,blur:u}=ko(e),c=ye(),f=yt&&window.matchMedia("(forced-colors: active)").matches,d=E(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),v=Wn(),h=E(()=>e.id||`switch-${v}`);function g(){a.value&&(a.value=!1)}function p(m){var y,_;m.stopPropagation(),m.preventDefault(),(_=(y=c.value)==null?void 0:y.input)==null||_.click()}return ge(()=>{const[m,y]=zs(n),_=qn.filterProps(e),b=Cs.filterProps(e);return I(qn,ve({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},o.value,e.class]},m,_,{modelValue:i.value,"onUpdate:modelValue":x=>i.value=x,id:h.value,focused:s.value,style:e.style}),{...r,default:x=>{let{id:S,messagesId:T,isDisabled:C,isReadonly:w,isValid:A}=x;const D={model:i,isValid:A};return I(Cs,ve({ref:c},b,{modelValue:i.value,"onUpdate:modelValue":[P=>i.value=P,g],id:S.value,"aria-describedby":T.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:C.value,readonly:w.value,onFocus:l,onBlur:u},y),{...r,default:P=>{let{backgroundColorClasses:k,backgroundColorStyles:L}=P;return I("div",{class:["v-switch__track",f?void 0:k.value],style:L.value,onClick:p},[r["track-true"]&&I("div",{key:"prepend",class:"v-switch__track-true"},[r["track-true"](D)]),r["track-false"]&&I("div",{key:"append",class:"v-switch__track-false"},[r["track-false"](D)])])},input:P=>{let{inputNode:k,icon:L,backgroundColorClasses:V,backgroundColorStyles:N}=P;return I(ke,null,[k,I("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":L||e.loading},e.inset||f?void 0:V.value],style:e.inset?void 0:N.value},[r.thumb?I(lt,{defaults:{VIcon:{icon:L,size:"x-small"}}},{default:()=>[r.thumb({...D,icon:L})]}):I(oT,null,{default:()=>[e.loading?I(mh,{name:"v-switch",active:!0,color:A.value===!1?void 0:d.value},{default:$=>r.loader?r.loader($):I(Qc,{active:$.isActive,color:$.color,indeterminate:!0,size:"16",width:"2"},null)}):L&&I(wt,{key:String(L),icon:L,size:"x-small"},null)]})])])}})}})}),{}}}),pne=ne({color:String,height:[Number,String],window:Boolean,...Me(),...An(),...xu(),...Yt(),...nt(),...gt()},"VSystemBar"),mne=fe()({name:"VSystemBar",props:pne(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Et(oe(e,"color")),{elevationClasses:o}=Un(e),{roundedClasses:s}=Qt(e),{ssrBootStyles:l}=Cu(),u=E(()=>e.height??(e.window?32:24)),{layoutItemStyles:c}=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:Te("top"),layoutSize:u,elementSize:u,active:E(()=>!0),absolute:oe(e,"absolute")});return ge(()=>I(e.tag,{class:["v-system-bar",{"v-system-bar--window":e.window},r.value,a.value,o.value,s.value,e.class],style:[i.value,c.value,l.value,e.style]},n)),{}}}),HT=Symbol.for("vuetify:v-tabs"),yne=ne({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...vn(Qy({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),h3=fe()({name:"VTab",props:yne(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:a,textColorStyles:i}=Kn(e,"sliderColor"),o=ye(),s=ye(),l=E(()=>e.direction==="horizontal"),u=E(()=>{var f,d;return((d=(f=o.value)==null?void 0:f.group)==null?void 0:d.isSelected.value)??!1});function c(f){var v,h;let{value:d}=f;if(d){const g=(h=(v=o.value)==null?void 0:v.$el.parentElement)==null?void 0:h.querySelector(".v-tab--selected .v-tab__slider"),p=s.value;if(!g||!p)return;const m=getComputedStyle(g).color,y=g.getBoundingClientRect(),_=p.getBoundingClientRect(),b=l.value?"x":"y",x=l.value?"X":"Y",S=l.value?"right":"bottom",T=l.value?"width":"height",C=y[b],w=_[b],A=C>w?y[S]-_[S]:y[b]-_[b],D=Math.sign(A)>0?l.value?"right":"bottom":Math.sign(A)<0?l.value?"left":"top":"center",k=(Math.abs(A)+(Math.sign(A)<0?y[T]:_[T]))/Math.max(y[T],_[T])||0,L=y[T]/_[T]||0,V=1.5;Ml(p,{backgroundColor:[m,"currentcolor"],transform:[`translate${x}(${A}px) scale${x}(${L})`,`translate${x}(${A/V}px) scale${x}(${(k-1)/V+1})`,"none"],transformOrigin:Array(3).fill(D)},{duration:225,easing:bv})}}return ge(()=>{const f=xt.filterProps(e);return I(xt,ve({symbol:HT,ref:o,class:["v-tab",e.class],style:e.style,tabindex:u.value?0:-1,role:"tab","aria-selected":String(u.value),active:!1},f,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":c}),{...n,default:()=>{var d;return I(ke,null,[((d=n.default)==null?void 0:d.call(n))??e.text,!e.hideSlider&&I("div",{ref:s,class:["v-tab__slider",a.value],style:i.value},null)])}})}),Ea({},o)}}),_ne=ne({...vn(o0(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),g3=fe()({name:"VTabsWindow",props:_ne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=rt(HT,null),a=Ve(e,"modelValue"),i=E({get(){var o;return a.value!=null||!r?a.value:(o=r.items.value.find(s=>r.selected.value.includes(s.id)))==null?void 0:o.value},set(o){a.value=o}});return ge(()=>{const o=su.filterProps(e);return I(su,ve({_as:"VTabsWindow"},o,{modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),bne=ne({...s0()},"VTabsWindowItem"),p3=fe()({name:"VTabsWindowItem",props:bne(),setup(e,t){let{slots:n}=t;return ge(()=>{const r=lu.filterProps(e);return I(lu,ve({_as:"VTabsWindowItem"},r,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function Sne(e){return e?e.map(t=>$C(t)?t:{text:t,value:t}):[]}const xne=ne({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...dT({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Nn(),...nt()},"VTabs"),wne=fe()({name:"VTabs",props:xne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=Ve(e,"modelValue"),i=E(()=>Sne(e.items)),{densityClasses:o}=dr(e),{backgroundColorClasses:s,backgroundColorStyles:l}=Et(oe(e,"bgColor")),{scopeId:u}=ku();return Kt({VTab:{color:oe(e,"color"),direction:oe(e,"direction"),stacked:oe(e,"stacked"),fixed:oe(e,"fixedTabs"),sliderColor:oe(e,"sliderColor"),hideSlider:oe(e,"hideSlider")}}),ge(()=>{const c=Iv.filterProps(e),f=!!(r.window||e.items.length>0);return I(ke,null,[I(Iv,ve(c,{modelValue:a.value,"onUpdate:modelValue":d=>a.value=d,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},o.value,s.value,e.class],style:[{"--v-tabs-height":De(e.height)},l.value,e.style],role:"tablist",symbol:HT},u,n),{default:()=>{var d;return[((d=r.default)==null?void 0:d.call(r))??i.value.map(v=>{var h;return((h=r.tab)==null?void 0:h.call(r,{item:v}))??I(h3,ve(v,{key:v.text,value:v.value}),{default:r[`tab.${v.value}`]?()=>{var g;return(g=r[`tab.${v.value}`])==null?void 0:g.call(r,{item:v})}:void 0})})]}}),f&&I(g3,ve({modelValue:a.value,"onUpdate:modelValue":d=>a.value=d,key:"tabs-window"},u),{default:()=>{var d;return[i.value.map(v=>{var h;return((h=r.item)==null?void 0:h.call(r,{item:v}))??I(p3,{value:v.value},{default:()=>{var g;return(g=r[`item.${v.value}`])==null?void 0:g.call(r,{item:v})}})}),(d=r.window)==null?void 0:d.call(r)]}})])}),{}}}),Cne=ne({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Mo(),...wh()},"VTextarea"),Tne=fe()({name:"VTextarea",directives:{Intersect:gh},inheritAttrs:!1,props:Cne(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const i=Ve(e,"modelValue"),{isFocused:o,focus:s,blur:l}=ko(e),u=E(()=>typeof e.counterValue=="function"?e.counterValue(i.value):(i.value||"").toString().length),c=E(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function f(D,P){var k,L;!e.autofocus||!D||(L=(k=P[0].target)==null?void 0:k.focus)==null||L.call(k)}const d=ye(),v=ye(),h=Te(""),g=ye(),p=E(()=>e.persistentPlaceholder||o.value||e.active);function m(){var D;g.value!==document.activeElement&&((D=g.value)==null||D.focus()),o.value||s()}function y(D){m(),r("click:control",D)}function _(D){r("mousedown:control",D)}function b(D){D.stopPropagation(),m(),ht(()=>{i.value="",XC(e["onClick:clear"],D)})}function x(D){var k;const P=D.target;if(i.value=P.value,(k=e.modelModifiers)!=null&&k.trim){const L=[P.selectionStart,P.selectionEnd];ht(()=>{P.selectionStart=L[0],P.selectionEnd=L[1]})}}const S=ye(),T=ye(+e.rows),C=E(()=>["plain","underlined"].includes(e.variant));un(()=>{e.autoGrow||(T.value=+e.rows)});function w(){e.autoGrow&&ht(()=>{if(!S.value||!v.value)return;const D=getComputedStyle(S.value),P=getComputedStyle(v.value.$el),k=parseFloat(D.getPropertyValue("--v-field-padding-top"))+parseFloat(D.getPropertyValue("--v-input-padding-top"))+parseFloat(D.getPropertyValue("--v-field-padding-bottom")),L=S.value.scrollHeight,V=parseFloat(D.lineHeight),N=Math.max(parseFloat(e.rows)*V+k,parseFloat(P.getPropertyValue("--v-input-control-height"))),$=parseFloat(e.maxRows)*V+k||1/0,z=sn(L??0,N,$);T.value=Math.floor((z-k)/V),h.value=De(z)})}wn(w),Ce(i,w),Ce(()=>e.rows,w),Ce(()=>e.maxRows,w),Ce(()=>e.density,w);let A;return Ce(S,D=>{D?(A=new ResizeObserver(w),A.observe(S.value)):A==null||A.disconnect()}),Cn(()=>{A==null||A.disconnect()}),ge(()=>{const D=!!(a.counter||e.counter||e.counterValue),P=!!(D||a.details),[k,L]=zs(n),{modelValue:V,...N}=qn.filterProps(e),$=bT(e);return I(qn,ve({ref:d,modelValue:i.value,"onUpdate:modelValue":z=>i.value=z,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":C.value},e.class],style:e.style},k,N,{centerAffix:T.value===1&&!C.value,focused:o.value}),{...a,default:z=>{let{id:H,isDisabled:U,isDirty:Y,isReadonly:J,isValid:ue}=z;return I(xf,ve({ref:v,style:{"--v-textarea-control-height":h.value},onClick:y,onMousedown:_,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},$,{id:H.value,active:p.value||Y.value,centerAffix:T.value===1&&!C.value,dirty:Y.value||e.dirty,disabled:U.value,focused:o.value,error:ue.value===!1}),{...a,default:le=>{let{props:{class:be,...ae}}=le;return I(ke,null,[e.prefix&&I("span",{class:"v-text-field__prefix"},[e.prefix]),Zt(I("textarea",ve({ref:g,class:be,value:i.value,onInput:x,autofocus:e.autofocus,readonly:J.value,disabled:U.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:m,onBlur:l},ae,L),null),[[na("intersect"),{handler:f},null,{once:!0}]]),e.autoGrow&&Zt(I("textarea",{class:[be,"v-textarea__sizer"],id:`${ae.id}-sizer`,"onUpdate:modelValue":Z=>i.value=Z,ref:S,readonly:!0,"aria-hidden":"true"},null),[[um,i.value]]),e.suffix&&I("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:P?z=>{var H;return I(ke,null,[(H=a.details)==null?void 0:H.call(a,z),D&&I(ke,null,[I("span",null,null),I(r0,{active:e.persistentCounter||o.value,value:u.value,max:c.value,disabled:e.disabled},a.counter)])])}:void 0})}),Ea({},d,v,g)}}),Ane=ne({withBackground:Boolean,...Me(),...gt(),...nt()},"VThemeProvider"),Ine=fe()({name:"VThemeProvider",props:Ane(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e);return()=>{var a;return e.withBackground?I(e.tag,{class:["v-theme-provider",r.value,e.class],style:e.style},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}}):(a=n.default)==null?void 0:a.call(n)}}}),Dne=ne({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:Ye,iconColor:String,lineColor:String,...Me(),...Yt(),...Fi(),...An()},"VTimelineDivider"),Pne=fe()({name:"VTimelineDivider",props:Dne(),setup(e,t){let{slots:n}=t;const{sizeClasses:r,sizeStyles:a}=mf(e,"v-timeline-divider__dot"),{backgroundColorStyles:i,backgroundColorClasses:o}=Et(oe(e,"dotColor")),{roundedClasses:s}=Qt(e,"v-timeline-divider__dot"),{elevationClasses:l}=Un(e),{backgroundColorClasses:u,backgroundColorStyles:c}=Et(oe(e,"lineColor"));return ge(()=>I("div",{class:["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class],style:e.style},[I("div",{class:["v-timeline-divider__before",u.value],style:c.value},null),!e.hideDot&&I("div",{key:"dot",class:["v-timeline-divider__dot",l.value,s.value,r.value],style:a.value},[I("div",{class:["v-timeline-divider__inner-dot",o.value,s.value],style:i.value},[n.default?I(lt,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):I(wt,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),I("div",{class:["v-timeline-divider__after",u.value],style:c.value},null)])),{}}}),m3=ne({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:Ye,iconColor:String,lineInset:[Number,String],...Me(),...gn(),...An(),...Yt(),...Fi(),...nt()},"VTimelineItem"),kne=fe()({name:"VTimelineItem",props:m3(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=pn(e),a=Te(0),i=ye();return Ce(i,o=>{var s;o&&(a.value=((s=o.$el.querySelector(".v-timeline-divider__dot"))==null?void 0:s.getBoundingClientRect().width)??0)},{flush:"post"}),ge(()=>{var o,s;return I("div",{class:["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot},e.class],style:[{"--v-timeline-dot-size":De(a.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${De(e.lineInset)})`:De(0)},e.style]},[I("div",{class:"v-timeline-item__body",style:r.value},[(o=n.default)==null?void 0:o.call(n)]),I(Pne,{ref:i,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&I("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&((s=n.opposite)==null?void 0:s.call(n))])])}),{}}}),Mne=ne({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...Hy(m3({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...Me(),...Nn(),...nt(),...gt()},"VTimeline"),Lne=fe()({name:"VTimeline",props:Mne(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{densityClasses:a}=dr(e),{rtlClasses:i}=Tn();Kt({VTimelineDivider:{lineColor:oe(e,"lineColor")},VTimelineItem:{density:oe(e,"density"),dotColor:oe(e,"dotColor"),fillDot:oe(e,"fillDot"),hideOpposite:oe(e,"hideOpposite"),iconColor:oe(e,"iconColor"),lineColor:oe(e,"lineColor"),lineInset:oe(e,"lineInset"),size:oe(e,"size")}});const o=E(()=>{const l=e.side?e.side:e.density!=="default"?"end":null;return l&&`v-timeline--side-${l}`}),s=E(()=>{const l=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return l;case"start":return l[0];case"end":return l[1];default:return null}});return ge(()=>I(e.tag,{class:["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,s.value,{"v-timeline--inset-line":!!e.lineInset},r.value,a.value,o.value,i.value,e.class],style:[{"--v-timeline-line-thickness":De(e.lineThickness)},e.style]},n)),{}}}),Ene=ne({...Me(),...La({variant:"text"})},"VToolbarItems"),Rne=fe()({name:"VToolbarItems",props:Ene(),setup(e,t){let{slots:n}=t;return Kt({VBtn:{color:oe(e,"color"),height:"inherit",variant:oe(e,"variant")}}),ge(()=>{var r;return I("div",{class:["v-toolbar-items",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Vne=ne({id:String,text:String,...vn(xh({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),y3=fe()({name:"VTooltip",props:Vne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{scopeId:a}=ku(),i=Wn(),o=E(()=>e.id||`v-tooltip-${i}`),s=ye(),l=E(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=E(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=E(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),f=E(()=>ve({"aria-describedby":o.value},e.activatorProps));return ge(()=>{const d=ki.filterProps(e);return I(ki,ve({ref:s,class:["v-tooltip",e.class],style:e.style,id:o.value},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:f.value,_disableGlobalStack:!0},a),{activator:n.activator,default:function(){var p;for(var v=arguments.length,h=new Array(v),g=0;g!0},setup(e,t){let{slots:n}=t;const r=wF(e,"validation");return()=>{var a;return(a=n.default)==null?void 0:a.call(n,r)}}}),Nne=Object.freeze(Object.defineProperty({__proto__:null,VAlert:iq,VAlertTitle:gF,VApp:hK,VAppBar:RK,VAppBarNavIcon:tq,VAppBarTitle:nq,VAutocomplete:IJ,VAvatar:Pa,VBadge:PJ,VBanner:LJ,VBannerActions:QF,VBannerText:e5,VBottomNavigation:RJ,VBottomSheet:OJ,VBreadcrumbs:FJ,VBreadcrumbsDivider:n5,VBreadcrumbsItem:r5,VBtn:xt,VBtnGroup:q1,VBtnToggle:FK,VCard:UJ,VCardActions:a5,VCardItem:s5,VCardSubtitle:i5,VCardText:l5,VCardTitle:o5,VCarousel:eQ,VCarouselItem:nQ,VCheckbox:hq,VCheckboxBtn:mo,VChip:Sf,VChipGroup:_q,VClassIcon:nT,VCode:rQ,VCol:Lee,VColorPicker:UQ,VCombobox:jQ,VComponentIcon:j1,VConfirmEdit:KQ,VContainer:Dee,VCounter:r0,VDataIterator:oee,VDataTable:xee,VDataTableFooter:Pv,VDataTableHeaders:cu,VDataTableRow:VT,VDataTableRows:fu,VDataTableServer:Aee,VDataTableVirtual:Cee,VDatePicker:Uee,VDatePickerControls:vx,VDatePickerHeader:hx,VDatePickerMonth:gx,VDatePickerMonths:px,VDatePickerYears:mx,VDefaultsProvider:lt,VDialog:ix,VDialogBottomTransition:yK,VDialogTopTransition:_K,VDialogTransition:jy,VDivider:Sh,VEmptyState:Xee,VExpandTransition:Zy,VExpandXTransition:lT,VExpansionPanel:jee,VExpansionPanelText:yx,VExpansionPanelTitle:_x,VExpansionPanels:qee,VFab:Qee,VFabTransition:mK,VFadeTransition:wv,VField:xf,VFieldLabel:wd,VFileInput:tte,VFooter:rte,VForm:ite,VHover:ste,VIcon:wt,VImg:po,VInfiniteScroll:ute,VInput:qn,VItem:dte,VItemGroup:fte,VKbd:vte,VLabel:bf,VLayout:gte,VLayoutItem:mte,VLazy:_te,VLigatureIcon:KZ,VList:n0,VListGroup:tx,VListImg:Gq,VListItem:yo,VListItemAction:Wq,VListItemMedia:Yq,VListItemSubtitle:VF,VListItemTitle:OF,VListSubheader:NF,VLocaleProvider:Ste,VMain:wte,VMenu:ef,VMessages:bF,VNavigationDrawer:Lte,VNoSsr:Ete,VOtpInput:Vte,VOverlay:ki,VPagination:fx,VParallax:Bte,VProgressCircular:Qc,VProgressLinear:qy,VRadio:Fte,VRadioGroup:Gte,VRangeSlider:Wte,VRating:Yte,VResponsive:Z1,VRow:zee,VScaleTransition:oT,VScrollXReverseTransition:SK,VScrollXTransition:bK,VScrollYReverseTransition:wK,VScrollYTransition:xK,VSelect:wT,VSelectionControl:Cs,VSelectionControlGroup:mF,VSheet:uu,VSkeletonLoader:Kte,VSlideGroup:Iv,VSlideGroupItem:qte,VSlideXReverseTransition:TK,VSlideXTransition:CK,VSlideYReverseTransition:AK,VSlideYTransition:sT,VSlider:cx,VSnackbar:ene,VSpacer:Z5,VSparkline:ane,VSpeedDial:one,VStepper:vne,VStepperActions:u3,VStepperHeader:c3,VStepperItem:f3,VStepperWindow:d3,VStepperWindowItem:v3,VSvgIcon:tT,VSwitch:gne,VSystemBar:mne,VTab:h3,VTable:du,VTabs:wne,VTabsWindow:g3,VTabsWindowItem:p3,VTextField:ou,VTextarea:Tne,VThemeProvider:Ine,VTimeline:Lne,VTimelineItem:kne,VToolbar:K1,VToolbarItems:Rne,VToolbarTitle:iT,VTooltip:y3,VValidation:One,VVirtualScroll:i0,VWindow:su,VWindowItem:lu},Symbol.toStringTag,{value:"Module"}));function Bne(e,t){const n=t.modifiers||{},r=t.value,{once:a,immediate:i,...o}=n,s=!Object.keys(o).length,{handler:l,options:u}=typeof r=="object"?r:{handler:r,options:{attributes:(o==null?void 0:o.attr)??s,characterData:(o==null?void 0:o.char)??s,childList:(o==null?void 0:o.child)??s,subtree:(o==null?void 0:o.sub)??s}},c=new MutationObserver(function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1?arguments[1]:void 0;l==null||l(f,d),a&&_3(e,t)});i&&(l==null||l([],c)),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:c},c.observe(e,u)}function _3(e,t){var n;(n=e._mutate)!=null&&n[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const zne={mounted:Bne,unmounted:_3};function Fne(e,t){var a,i;const n=t.value,r={passive:!((a=t.modifiers)!=null&&a.active)};window.addEventListener("resize",n,r),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:r},(i=t.modifiers)!=null&&i.quiet||n()}function Hne(e,t){var a;if(!((a=e._onResize)!=null&&a[t.instance.$.uid]))return;const{handler:n,options:r}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,r),delete e._onResize[t.instance.$.uid]}const Gne={mounted:Fne,unmounted:Hne};function b3(e,t){const{self:n=!1}=t.modifiers??{},r=t.value,a=typeof r=="object"&&r.options||{passive:!0},i=typeof r=="function"||"handleEvent"in r?r:r.handler,o=n?e:t.arg?document.querySelector(t.arg):window;o&&(o.addEventListener("scroll",i,a),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:i,options:a,target:n?void 0:o})}function S3(e,t){var i;if(!((i=e._onScroll)!=null&&i[t.instance.$.uid]))return;const{handler:n,options:r,target:a=e}=e._onScroll[t.instance.$.uid];a.removeEventListener("scroll",n,r),delete e._onScroll[t.instance.$.uid]}function $ne(e,t){t.value!==t.oldValue&&(S3(e,t),b3(e,t))}const Wne={mounted:b3,unmounted:S3,updated:$ne};function Une(e,t){const n=typeof e=="string"?Dt(e):e,r=Yne(n,t);return{mounted:r,updated:r,unmounted(a){EC(null,a)}}}function Yne(e,t){return function(n,r,a){var f,d,v;const i=typeof t=="function"?t(r):t,o=((f=r.value)==null?void 0:f.text)??r.value??(i==null?void 0:i.text),s=$C(r.value)?r.value:{},l=()=>o??n.textContent,u=(a.ctx===r.instance.$?(d=Xne(a,r.instance.$))==null?void 0:d.provides:(v=a.ctx)==null?void 0:v.provides)??r.instance.$.provides,c=ra(e,ve(i,s),l);c.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:u}),EC(c,n)}}function Xne(e,t){const n=new Set,r=i=>{var o,s;for(const l of i){if(!l)continue;if(l===e||l.el&&e.el&&l.el===e.el)return!0;n.add(l);let u;if(l.suspense?u=r([l.ssContent]):Array.isArray(l.children)?u=r(l.children):(o=l.component)!=null&&o.vnode&&(u=r([(s=l.component)==null?void 0:s.subTree])),u)return u;n.delete(l)}return!1};if(!r([t.subTree]))return t;const a=Array.from(n).reverse();for(const i of a)if(i.component)return i.component;return t}const jne=Une(y3,e=>{var t;return{activator:"parent",location:(t=e.arg)==null?void 0:t.replace("-"," "),text:typeof e.value=="boolean"?void 0:e.value}}),Zne=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:jF,Intersect:gh,Mutate:zne,Resize:Gne,Ripple:Po,Scroll:Wne,Tooltip:jne,Touch:CT},Symbol.toStringTag,{value:"Module"})),Kne="dark",qne={dark:{colors:{primary:"#263238",secondary:"#616161",accent:"#86f8bf",error:"#f44336",warning:"#FB8C00",info:"#607d8b",success:"#86f8bf"}},light:{colors:{primary:"#01579b",secondary:"#757575",accent:"#00dfca",error:"#f44336",warning:"#FB8C00",info:"#607d8b",success:"#00dfca"}}},Jne={defaultTheme:Kne,themes:qne},R_=e=>e&&typeof e=="object"&&!Array.isArray(e),bx=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(R_(e)&&R_(n))for(const r in n)R_(n[r])?(e[r]||Object.assign(e,{[r]:{}}),bx(e[r],n[r])):Object.assign(e,{[r]:n[r]});return bx(e,...t)},Qne=bx({},{de:{_app:{settings:{title:e=>{const{normalize:t}=e;return t(["Einstellungen"])},general:{title:e=>{const{normalize:t}=e;return t(["Allgemein"])},headLine:e=>{const{normalize:t}=e;return t(["Kopfzeile"])},headLineImageTitle:e=>{const{normalize:t}=e;return t(["Hintergrundbild"])},headLineImageSubTitle:e=>{const{normalize:t}=e;return t(["Link zu einem Bild für den Hintergrund der Kopfzeile"])},headLineImageGradientTitle:e=>{const{normalize:t}=e;return t(["Farbfilter"])},headLineImageGradientSubTitle:e=>{const{normalize:t}=e;return t(["CSS Linear Gardient Definition für das Hintergrundbild"])},headLineTimeTitle:e=>{const{normalize:t}=e;return t(["Uhrzeit"])},headLineTimeSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt die Uhrzeit vom FHEM Server in der Desktopansicht auf der linken Seite der Kopfzeile an"])},headLineDateTitle:e=>{const{normalize:t}=e;return t(["Datum"])},headLineDateSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt das Datum vom FHEM Server in der Desktopansicht in der Mitte der Kopfzeile an"])},headLineRouteTitle:e=>{const{normalize:t}=e;return t(["aktuelle Seite"])},headLineRouteSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt den aktuell ausgewählte Seite in der mobilen Ansicht in der Mitte der Kopfzeile an"])},headLineNavigationTitle:e=>{const{normalize:t}=e;return t(["Navigationsmenü ausblenden"])},headLineNavigationSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt den Buttom zum Einblenden des Navigaitonsmenü in der Desktopansicht an"])},darkMode:e=>{const{normalize:t}=e;return t(["Farbschema"])},darkModeTitle:e=>{const{normalize:t}=e;return t(["DarkMode über FHEM"])},darkModeSubTitle:e=>{const{normalize:t}=e;return t(["Schaltet in das dunkle Farbschema um, wenn der Wert des FHEM Reading zutrifft"])},defaultRoute:e=>{const{normalize:t}=e;return t(["Standardseite"])},defaultRouteTitle:e=>{const{normalize:t}=e;return t(["Seite beim Öffnen"])},defaultRouteSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine bestimmte Seite aus dem Navigationsmenü beim Öffnen"])},optionsMenu:e=>{const{normalize:t}=e;return t(["Optionsmenü"])},optionsMenuDarkModeTitle:e=>{const{normalize:t}=e;return t(["Tag/Nacht Modus"])},optionsMenuDarkModeSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Option zum Umschalten in das dunkle oder helle Farbschema"])},optionsMenuReloadPageTitle:e=>{const{normalize:t}=e;return t(["Seite aktualisieren"])},optionsMenuReloadPageSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Option zum Neuladen der Seite"])},optionsMenuSettingsTitle:e=>{const{normalize:t}=e;return t(["Einstellungen"])},optionsMenuSettingsSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Option zum Öffnen der Einstellungen"])},optionsMenuUpdateTitle:e=>{const{normalize:t}=e;return t(["Updates"])},optionsMenuUpdateSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Option zum Ausführen eines Updates, wenn es bereitsteht"])},optionsMenuLanguagesTitle:e=>{const{normalize:t}=e;return t(["Sprachen"])},optionsMenuLanguagesSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Optionsfeld zum Umschalten der Sprachen"])},fhemCommands:e=>{const{normalize:t}=e;return t(["Optionsmenü FHEM Befehle"])},fhemCommandsName:e=>{const{normalize:t}=e;return t(["Name"])},fhemCommandsTitle:e=>{const{normalize:t}=e;return t(["Beschriftung"])},fhemCommandsIcon:e=>{const{normalize:t}=e;return t(["Icon"])},fhemCommandsCmd:e=>{const{normalize:t}=e;return t(["FHEM Befehl"])}},navigation:{title:e=>{const{normalize:t}=e;return t(["Navigation"])},name:e=>{const{normalize:t}=e;return t(["Name"])},namePlaceholder:e=>{const{normalize:t}=e;return t(["home"])},title1:e=>{const{normalize:t}=e;return t(["Beschriftung"])},title1Placeholder:e=>{const{normalize:t}=e;return t(["Startseite od. %t(navHome)"])},icon:e=>{const{normalize:t}=e;return t(["Icon"])},iconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-home"])},optionsTitle:e=>{const{normalize:t}=e;return t(["Optionen"])},optionsClose:e=>{const{normalize:t}=e;return t(["Schließen"])},optionsChipsTitle:e=>{const{normalize:t}=e;return t(["Darstellung"])},optionsChips:e=>{const{normalize:t}=e;return t(["Zeigt untergeordnete Navigationspunkte in kompakter Form an"])},optionsSortTitle:e=>{const{normalize:t}=e;return t(["Sortierung"])},optionsSort:e=>{const{normalize:t}=e;return t(["Sortiert untergeordnete Navigationspunkte aufsteigend"])},optionsDividerTitle:e=>{const{normalize:t}=e;return t(["Trennlinie"])},optionsDivider:e=>{const{normalize:t}=e;return t(["Zeigt eine Trennlinie unterhalb des Navigationspunktes"])},optionsRowsTitle:e=>{const{normalize:t}=e;return t(["Spalten"])},optionsRows:e=>{const{normalize:t}=e;return t(["Legt die Anzahl der Spalten für Panels abhängig vom Display fest"])}},props:{panel:e=>{const{normalize:t}=e;return t(["Allgemein"])},status:e=>{const{normalize:t}=e;return t(["Statuszeile"])},level:e=>{const{normalize:t}=e;return t(["Ebene allgemein"])},main:e=>{const{normalize:t}=e;return t(["Ebenen"])},type:e=>{const{normalize:t}=e;return t(["Typ"])},left1:e=>{const{normalize:t}=e;return t(["left1"])},left2:e=>{const{normalize:t}=e;return t(["left2"])},mid:e=>{const{normalize:t}=e;return t(["mid"])},right1:e=>{const{normalize:t}=e;return t(["right1"])},right2:e=>{const{normalize:t}=e;return t(["right2"])},info:e=>{const{normalize:t}=e;return t(["Infozeile"])}},panels:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Panel"]),t(["Panels"])])},extended:e=>{const{normalize:t}=e;return t(["erweitert"])},rawMode:e=>{const{normalize:t}=e;return t(["raw Mode"])},preview:e=>{const{normalize:t}=e;return t(["Panel Vorschau"])},search:e=>{const{normalize:t}=e;return t(["Panel suchen"])},new:e=>{const{normalize:t}=e;return t(["Name für neues Panel"])}},templates:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Vorlage"]),t(["Vorlagen"])])},search:e=>{const{normalize:t}=e;return t(["Vorlage suchen"])},new:e=>{const{normalize:t}=e;return t(["Name für neue Vorlage"])}},colors:{title:e=>{const{normalize:t}=e;return t(["Farben"])},newKey:e=>{const{normalize:t}=e;return t(["neue Variable"])}},content:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Sprache"]),t(["Sprachen"])])},newKey:e=>{const{normalize:t}=e;return t(["neue Variable"])},newLang:e=>{const{normalize:t}=e;return t(["neue Sprache (ISO-639)"])},search:e=>{const{normalize:t}=e;return t(["Variable suchen"])},key:e=>{const{normalize:t}=e;return t(["Variable"])}},rules:{required:e=>{const{normalize:t}=e;return t(["Erforderlich!"])},panelUnique:e=>{const{normalize:t}=e;return t(["Panel ist bereits vorhanden!"])},iso639code:e=>{const{normalize:t}=e;return t(["Eingabe muss ISO-639-1-Code entsprechen!"])},langUnique:e=>{const{normalize:t}=e;return t(["Sprache ist bereits vorhanden!"])},keyUnique:e=>{const{normalize:t}=e;return t(["Variable ist bereits vorhanden!"])}},assist:{title:e=>{const{normalize:t}=e;return t(["Assistent"])},ok:e=>{const{normalize:t}=e;return t(["Ok"])},cancel:e=>{const{normalize:t}=e;return t(["Abbruch"])}}},options:{darkMode:e=>{const{normalize:t}=e;return t(["Tag/Nacht Modus"])},reload:e=>{const{normalize:t}=e;return t(["Aktualisieren"])},settings:e=>{const{normalize:t}=e;return t(["Einstellungen"])},update:e=>{const{normalize:t}=e;return t(["Aktualisierung"])}},internals:{title:e=>{const{normalize:t}=e;return t(["Systeminformationen"])},onlyConfig:e=>{const{normalize:t}=e;return t(["nur Config anzeigen"])}},messages:{request:{title:e=>{const{normalize:t}=e;return t(["Verbindung zu FHEM fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Prüfe ob FHEM erreichbar ist oder die URL Verbindungsparameter (?protocol=...&server=...&port=...&path=...) korrekt sind, falls diese angegeben wurden."])}},wrongDevice:{title:e=>{const{normalize:t}=e;return t(["FHEM Config Device nicht gefunden"])},text:e=>{const{normalize:t}=e;return t(["Das FHEM Device das in der URL angegeben wurde (http://url/index.html#/fhemappdevice/...) konnte nicht gefunden werden."])}},jsonParse:{title:e=>{const{normalize:t}=e;return t(["Interner Fehler"])},text:e=>{const{normalize:t}=e;return t(["Bei der Verarbeitung einer JSON Definition ist ein Fehler aufgetreten. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},base64:{title:e=>{const{normalize:t}=e;return t(["Interner Fehler"])},text:e=>{const{normalize:t}=e;return t(["Fehler bei der Verarbeitung der Konfiguration. Die Decodierung der base64-codierten Konfiguarationsdaten ist fehlgeschlagen. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},noConfig:{title:e=>{const{normalize:t}=e;return t(["Keine Einstellungen gefunden"])},text:e=>{const{normalize:t}=e;return t(["Für diese Instanz wurden noch keine Einstellungen vorgenommen. Bitte zuerst die Grundeinstellungen für FHEMapp vornehmen und speichern."])}},config:{title:e=>{const{normalize:t}=e;return t(["Laden der Konfiguration fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Es konnten keine Konfiguationsdaten verarbeitet werden. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},websocket:{title:e=>{const{normalize:t}=e;return t(["WEBSocket Verbidnung fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Der verwendete Browser unterstützt keine WEBSocket-Verbidnungen. Es wurde deshalb eine Longpoll-Verbindung zu FHEM hergestellt. Zum Deaktivieren dieser Meldung solltest du den URL Parameter für Longpoll-Verbindungen (?xhr=1) verwenden."])}},reconnect:{title:e=>{const{normalize:t}=e;return t(["Verbindung zu FHEM wurde unterbrochen"])},text:e=>{const{normalize:t}=e;return t(["Neuer Verbindungsversuch erfolgt in 3 Sekunden... Prüfe ob FHEM erreichbar ist, wenn der Fehler weiterhin auftritt."])}},noPanels:{title:e=>{const{normalize:t}=e;return t(["Konfiguration enthält keine Panels"])},text:e=>{const{normalize:t}=e;return t(["Bitte erstelle zuerst Panels in den Einstellungen von FHEMapp."])}},clipboard:{text:e=>{const{normalize:t}=e;return t(["Daten wurden in die Zwischenablage kopiert."])}},checkDefs:{text:e=>{const{normalize:t}=e;return t(["Prüfe die Reihenfolge der Definitionen. Die Definition ohne Bedingung sollte immer am Ende stehen."])}}},default:e=>{const{normalize:t}=e;return t(["Standard"])}}}},{en:{_app:{settings:{title:e=>{const{normalize:t}=e;return t(["Settings"])},general:{title:e=>{const{normalize:t}=e;return t(["General"])},headLine:e=>{const{normalize:t}=e;return t(["Header"])},headLineImageTitle:e=>{const{normalize:t}=e;return t(["Background image"])},headLineImageSubTitle:e=>{const{normalize:t}=e;return t(["Link to an image for the background of the header"])},headLineImageGradientTitle:e=>{const{normalize:t}=e;return t(["Color filter"])},headLineImageGradientSubTitle:e=>{const{normalize:t}=e;return t(["CSS Linear Gardient definition for the background image"])},headLineTimeTitle:e=>{const{normalize:t}=e;return t(["Time"])},headLineTimeSubTitle:e=>{const{normalize:t}=e;return t(["Displays the time from the FHEM server in the desktop view on the left side of the header"])},headLineDateTitle:e=>{const{normalize:t}=e;return t(["Date"])},headLineDateSubTitle:e=>{const{normalize:t}=e;return t(["Displays the date from the FHEM server in the desktop view in the center of the header"])},headLineRouteTitle:e=>{const{normalize:t}=e;return t(["current page"])},headLineRouteSubTitle:e=>{const{normalize:t}=e;return t(["Displays the currently selected page in the mobile view in the center of the header"])},headLineNavigationTitle:e=>{const{normalize:t}=e;return t(["Hide navigation menu"])},headLineNavigationSubTitle:e=>{const{normalize:t}=e;return t(["Displays the button for showing the navigation menu in the desktop view"])},darkMode:e=>{const{normalize:t}=e;return t(["Color scheme"])},darkModeTitle:e=>{const{normalize:t}=e;return t(["DarkMode via FHEM"])},darkModeSubTitle:e=>{const{normalize:t}=e;return t(["Switches to the dark color scheme if the FHEM Reading value is correct"])},defaultRoute:e=>{const{normalize:t}=e;return t(["Standard page"])},defaultRouteTitle:e=>{const{normalize:t}=e;return t(["Page when opening"])},defaultRouteSubTitle:e=>{const{normalize:t}=e;return t(["Shows a specific page from the navigation menu when opened"])},optionsMenu:e=>{const{normalize:t}=e;return t(["Optionsmenu"])},optionsMenuDarkModeTitle:e=>{const{normalize:t}=e;return t(["Day/night mode"])},optionsMenuDarkModeSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option to switch to the dark or light color scheme"])},optionsMenuReloadPageTitle:e=>{const{normalize:t}=e;return t(["Update page"])},optionsMenuReloadPageSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option to reload the page"])},optionsMenuSettingsTitle:e=>{const{normalize:t}=e;return t(["Settings"])},optionsMenuSettingsSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option to open the settings"])},optionsMenuUpdateTitle:e=>{const{normalize:t}=e;return t(["Updates"])},optionsMenuUpdateSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option to run an update when it is available"])},optionsMenuLanguagesTitle:e=>{const{normalize:t}=e;return t(["Languages"])},optionsMenuLanguagesSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option field for switching languages"])},fhemCommands:e=>{const{normalize:t}=e;return t(["Options menu FHEM commands"])},fhemCommandsName:e=>{const{normalize:t}=e;return t(["Name"])},fhemCommandsTitle:e=>{const{normalize:t}=e;return t(["Description"])},fhemCommandsIcon:e=>{const{normalize:t}=e;return t(["Icon"])},fhemCommandsCmd:e=>{const{normalize:t}=e;return t(["FHEM command"])}},navigation:{title:e=>{const{normalize:t}=e;return t(["Navigation"])},name:e=>{const{normalize:t}=e;return t(["Name"])},namePlaceholder:e=>{const{normalize:t}=e;return t(["home"])},title1:e=>{const{normalize:t}=e;return t(["Label"])},title1Placeholder:e=>{const{normalize:t}=e;return t(["Homepage od. %t(navHome)"])},icon:e=>{const{normalize:t}=e;return t(["Icon"])},iconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-home"])},optionsTitle:e=>{const{normalize:t}=e;return t(["Options"])},optionsClose:e=>{const{normalize:t}=e;return t(["Close"])},optionsChipsTitle:e=>{const{normalize:t}=e;return t(["Style"])},optionsChips:e=>{const{normalize:t}=e;return t(["Displays subordinate navigation points in compact form"])},optionsSortTitle:e=>{const{normalize:t}=e;return t(["Sorting"])},optionsSort:e=>{const{normalize:t}=e;return t(["Sorts subordinate navigation items in ascending order"])},optionsDividerTitle:e=>{const{normalize:t}=e;return t(["Divider"])},optionsDivider:e=>{const{normalize:t}=e;return t(["Shows a dividing line below the navigation point"])},optionsRowsTitle:e=>{const{normalize:t}=e;return t(["Columns"])},optionsRows:e=>{const{normalize:t}=e;return t(["Defines the number of columns for panels depending on the display"])}},props:{panel:e=>{const{normalize:t}=e;return t(["General"])},status:e=>{const{normalize:t}=e;return t(["Statusbar"])},level:e=>{const{normalize:t}=e;return t(["Level general"])},main:e=>{const{normalize:t}=e;return t(["Levels"])},type:e=>{const{normalize:t}=e;return t(["Typ"])},left1:e=>{const{normalize:t}=e;return t(["left1"])},left2:e=>{const{normalize:t}=e;return t(["left2"])},mid:e=>{const{normalize:t}=e;return t(["mid"])},right1:e=>{const{normalize:t}=e;return t(["right1"])},right2:e=>{const{normalize:t}=e;return t(["right2"])},info:e=>{const{normalize:t}=e;return t(["Infoline"])}},panels:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Panel"]),t(["Panels"])])},extended:e=>{const{normalize:t}=e;return t(["Advanced"])},rawMode:e=>{const{normalize:t}=e;return t(["raw Mode"])},preview:e=>{const{normalize:t}=e;return t(["Panel Preview"])},search:e=>{const{normalize:t}=e;return t(["Panel search"])},new:e=>{const{normalize:t}=e;return t(["Name for new Panel"])}},templates:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Template"]),t(["Templates"])])},search:e=>{const{normalize:t}=e;return t(["Template search"])},new:e=>{const{normalize:t}=e;return t(["Name for new Template"])}},colors:{title:e=>{const{normalize:t}=e;return t(["Colors"])},newKey:e=>{const{normalize:t}=e;return t(["new variable"])}},content:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Language"]),t(["Languages"])])},newKey:e=>{const{normalize:t}=e;return t(["new variable"])},newLang:e=>{const{normalize:t}=e;return t(["new Language (ISO-639)"])},search:e=>{const{normalize:t}=e;return t(["Key search"])},key:e=>{const{normalize:t}=e;return t(["Key"])}},rules:{required:e=>{const{normalize:t}=e;return t(["Required!"])},panelUnique:e=>{const{normalize:t}=e;return t(["Panel is already defined!"])},iso639code:e=>{const{normalize:t}=e;return t(["Input must correspond to ISO 639-1 code!"])},langUnique:e=>{const{normalize:t}=e;return t(["Language is already defined!"])},keyUnique:e=>{const{normalize:t}=e;return t(["Key is already defined!"])}},assist:{title:e=>{const{normalize:t}=e;return t(["Wizard"])},ok:e=>{const{normalize:t}=e;return t(["Ok"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])}}},options:{darkMode:e=>{const{normalize:t}=e;return t(["Day/Night Mode"])},reload:e=>{const{normalize:t}=e;return t(["Refresh"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},update:e=>{const{normalize:t}=e;return t(["Update"])}},internals:{title:e=>{const{normalize:t}=e;return t(["Internals"])},onlyConfig:e=>{const{normalize:t}=e;return t(["show only config"])}},messages:{request:{title:e=>{const{normalize:t}=e;return t(["Connection to FHEM failed"])},text:e=>{const{normalize:t}=e;return t(["Check if FHEM is reachable or if the URL connection parameters (?protocol=...&server=...&port=...&path=...) are correct, if specified."])}},wrongDevice:{title:e=>{const{normalize:t}=e;return t(["FHEM Config Device not found"])},text:e=>{const{normalize:t}=e;return t(["The FHEM device specified in the URL (http://url/index.html#/fhemappdevice/...) could not be found."])}},jsonParse:{title:e=>{const{normalize:t}=e;return t(["Internal error"])},text:e=>{const{normalize:t}=e;return t(["An error has occurred while processing a JSON definition. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},base64:{title:e=>{const{normalize:t}=e;return t(["Internal error"])},text:e=>{const{normalize:t}=e;return t(["Error processing the configuration. The decoding of the base64-encoded configuration data has failed. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},noConfig:{title:e=>{const{normalize:t}=e;return t(["No settings found"])},text:e=>{const{normalize:t}=e;return t(["No settings have yet been made for this instance. Please make and save the basic settings for FHEMapp first."])}},config:{title:e=>{const{normalize:t}=e;return t(["Failed to load the configuration"])},text:e=>{const{normalize:t}=e;return t(["No configuration data could be processed. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},websocket:{title:e=>{const{normalize:t}=e;return t(["WEBSocket connection failed"])},text:e=>{const{normalize:t}=e;return t(["The browser used does not support WEBSocket connections. A longpoll connection to FHEM has therefore been established. To deactivate this message, you should use the URL parameter for longpoll connections (?xhr=1)."])}},reconnect:{title:e=>{const{normalize:t}=e;return t(["Connection to FHEM was interrupted"])},text:e=>{const{normalize:t}=e;return t(["New connection attempt will be made in 3 seconds... Check whether FHEM can be reached if the error still occurs."])}},noPanels:{title:e=>{const{normalize:t}=e;return t(["Configuration does not contain any panels"])},text:e=>{const{normalize:t}=e;return t(["Please create panels in the FHEMapp settings first."])}},clipboard:{text:e=>{const{normalize:t}=e;return t(["Data has been copied to the clipboard."])}},checkDefs:{text:e=>{const{normalize:t}=e;return t(["Check the order of the definitions. The definition without a condition should always be at the end."])}}},default:e=>{const{normalize:t}=e;return t(["Default"])}}}});/*! ***************************************************************************** +`);for(const M of B)M.length>0&&(j=m(M),/-/.test(j[0])&&a.evtBuffer.push({reading:j[0],value:j[1]}));A()}function P(){let G=v("?inform=type=status;filter=.*;fmt=JSON&XHR=1");return a.evtBuffer=[],!r.settings.xhr&&typeof WebSocket=="function"?(a.conn=new WebSocket(G.replace(/^http/i,"ws")),a.conn.onopen=()=>{i(4,"Websocket Connection opened.")},a.conn.onmessage=B=>D(B),a.conn.onerror=()=>k(0),a.conn.onclose=()=>k(0)):(a.conn=new XMLHttpRequest,a.conn.open("GET",G,!0),a.conn.onloadstart=()=>{r.settings.xhr||(r.settings.xhr=!0,i(3,"Websocket is not supported by the browser. Fallback to longpoll connection.",null,"websocket")),i(4,"Longpoll Connection opened.")},a.conn.onerror=()=>k(0),a.conn.onloadend=()=>k(0),a.conn.onreadystatechange=()=>{a.conn.status===200&&a.conn.readyState===3&&D(a.conn.responseText)},a.conn.send()),!0}function k(G){let B;G<3e3&&(r.message={}),setTimeout(async()=>{B=await te(!0),B||(G<3e3?G+=500:(r.message=!1,i(3,"Connection to FHEM was interrupted. Try to reconnect in 3 seconds.",null,"reconnect")),k(G))},G)}function L(G,B){let j=B.trim().split("-"),M=G.map(O=>O.key).indexOf(j[0]);return M!==-1?j[0]=G[M].name:j.unshift(G[0].name),j.join("-")}function V(G,B,j){let M,O,X;if(B)for(const[K,q]of Object.entries(B))typeof B[K]=="object"?V(G,B[K],[...j,K]):typeof q=="string"&&(M=q.replace(/\\:/g,":"),!/^::/.test(M)&&/.*:.*:.*/.test(M)&&(O=L(G,M.split(":")[0]),X=a.panelMap.map(re=>re.reading).indexOf(O),X===-1?a.panelMap.push({reading:O,items:[[...j,K]]}):a.panelMap[X].items.push([...j,K]),/%d\(.*{.*"diff".*/.test(M)&&setInterval(()=>{let re=z(r.panelList,j);re[0]=re[0]+" ",re[0]=re[0].substr(0,re[0].length-1)},1e3)))}function N(G){let B=[],j;if(!Array.isArray(G)||Array.isArray(G)&&G.length===0)return!1;for(const M of G)j=M.split(":"),B.push({key:j[0],name:j[1]||j[0]});return B}function $(){let G,B,j=JSON.parse(JSON.stringify(r.config.panels)),M=JSON.parse(JSON.stringify(r.config.templates)),O,X,K;r.config.panels.length===0&&i(3,"No Panels defined.",null,"noPanels"),a.panelMap=[],r.panelList=[];for(const[q,re]of Object.entries(j)){if(G={},O=re.template?M.map(pe=>pe.name).indexOf(re.template):-1,O!==-1){G=JSON.parse(JSON.stringify(M[O]));for(const pe of Object.keys(re))if(pe==="main"){for(const[F,W]of Object.entries(re.main))if(W.level){for(const Q of Object.keys(W.level))if(W.level[Q]){G.main[F]=W;break}}}else typeof re[pe]=="object"&&G[pe]&&Object.assign(G[pe],re[pe]);G.name=re.name}else G=re;B=N(G.panel?G.panel.devices:[]),B?(V(B,G,[q]),r.panelList.push(G)):i(3,"No Devices defined in Panel "+G.name)}return X=a.panelMap.map(q=>q.reading).indexOf(r.fhemDevice+"-update_available"),X!==-1?a.panelMap[X].task="update":a.panelMap.push({reading:r.fhemDevice+"-update_available",task:"update"}),K=r.header.darkModeOverFhem.split(":"),K.length===2&&(X=a.panelMap.map(q=>q.reading).indexOf(K[0]),X!==-1?a.panelMap[X].task="darkMode":a.panelMap.push({reading:K[0],task:"darkMode"})),i(4,"PanelList and PanelMapping created.",{panelList:r.panelList,panelMap:a.panelMap}),!0}function z(G,B){return B.reduce((j,M)=>j&&j[M],G)}async function H(){let G=[],B=JSON.parse(JSON.stringify(r.panelList)),j,M,O,X,K,q;for(const re of a.panelMap)j=re.reading.split("-")[0],G.indexOf(j)===-1&&G.push(j);if(G.length===0)return i(3,"No Devices in Panels defined.",null,"noPanels"),!0;if(M=await h("json","jsonlist2 "+G.join(",")),!!M){for(const re of a.panelMap){if(O=re.reading.split("-"),X=M.Results.map(pe=>pe.Name).indexOf(O[0]),K=[],q=null,O[1]==="i"?K=["Internals",O[2]]:O[1]==="a"?K=["Attributes",O[2]]:O[O.length-1]==="ts"?(O.pop(),O.shift(),K=["Readings",O.join("-"),"Time"]):(O.shift(),K=["Readings",O.join("-"),"Value"]),q=z(M.Results[X],K),re.items)for(const pe of re.items)w(B,pe,q);re.task&&C(re.task,q)}return r.panelList=B,i(4,"Devices from FHEM loaded.",M),!0}}function U(G,B){let j=null;if(!B||!Array.isArray(B)||B.length<1)return G;for(const M of B)if(/.*:.*/.test(M)&&(j=M.split(":"),RegExp(j[0]).test(G)))return j[1];return G}function Y(G,B){let j,M=[],O=new Date(new Date().getTime()+a.timeOffset)-new Date(G),X=B.days?Math.floor(O/(1e3*60*60*24)):0,K=B.hours?Math.floor(O/(1e3*60*60))-X*24:0,q=B.minutes?Math.floor(O/(1e3*60))-X*24*60-K*60:0,re=B.seconds?Math.floor(O/1e3)-X*24*60*60-K*60*60-q*60:0,pe=!/nozero/.test(B.days),F=!/nozero/.test(B.hours),W=!/nozero/.test(B.minutes),Q=!/nozero/.test(B.seconds);return/%t\(.*\)/.test(B.daysSuffix)&&(j=/%t\(.*\)/.exec(B.daysSuffix),B.daysSuffix.replace(j[0],e.t(j[0].slice(3,-1)))),/%t\(.*\)/.test(B.hoursSuffix)&&(j=/%t\(.*\)/.exec(B.hoursSuffix),B.hoursSuffix.replace(j[0],e.t(j[0].slice(3,-1)))),/%t\(.*\)/.test(B.minutesSuffix)&&(j=/%t\(.*\)/.exec(B.minutesSuffix),B.minutesSuffix.replace(j[0],e.t(j[0].slice(3,-1)))),/%t\(.*\)/.test(B.secondsSuffix)&&(j=/%t\(.*\)/.exec(B.secondsSuffix),B.secondsSuffix.replace(j[0],e.t(j[0].slice(3,-1)))),/numeric/.test(B.hours)||(K=(K<10?"0":"")+K),/numeric/.test(B.minutes)||(q=(B.hoursSuffix===":"&&q<10?"0":"")+q),/numeric/.test(B.seconds)||(re=(B.minutesSuffix===":"&&re<10?"0":"")+re),B.days&&pe&&M.push(X,B.daysSuffix||" Tag(e) "),B.hours&&F&&M.push(K,B.hoursSuffix||" Stunde(n) "),B.minutes&&W&&M.push(q,B.minutesSuffix||" Minute(n) "),B.seconds&&Q&&M.push(re,B.secondsSuffix||" Sekunde(n) "),M.join("").trim()}function J(G,B,j){let M=G;if(typeof G!="string")return G;if(/:/.test(B)&&(B=B.replace(/:/g,":")),/:/.test(M)&&(M=M.replace(/:/g,":")),/%s/.test(M)&&(M=M.replace(/%s/g,B)),/%n\(.*\)/.test(M)){M=M.replace("%n()","%n(0)");let O=/%n\(.*\)/.exec(M),X=/-?[0-9]/.exec(B);if(!X)return null;let K=O[0].slice(3,-1).split(","),q=parseFloat(K[1]||0),re=parseFloat(K[0]||0),pe=parseFloat(B.slice(X.index))+q;M=O.input.replace(O[0],j?pe.toFixed(re):e.n(pe,{minimumFractionDigits:re,maximumFractionDigits:re}))}if(/%d\(.*\)/.test(M)&&B){let O=/%d\(.*\)/.exec(M),X=O[0].slice(3,-1),K={dateStyle:"short",timeStyle:"medium"},q=B.replace(" ","T"),re=/^(\d{1,2})\.(\d{1,2})\.(\d{2,4})/.exec(q);X==="time"&&(K={hour:"numeric",minute:"numeric",second:"numeric"}),X==="date"&&(K={dateStyle:"short"}),/{.*}/.test(X)&&(K=m(X)),re&&(q=q.replace(re[0],[re[3],re[2],re[1]].join("-"))),/(T|Z)/.test(q)||(q+="T00:00:00"),/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/.test(q)?M=O.input.replace(O[0],K.diff?Y(q,K.diff):e.d(q,K).replace(", "," ")):M=O.input.replace(O[0],q+" -> no ISO-Date")}if(/%t\(.*\)/.test(M)){let O=/%t\(.*\)/.exec(M);M=O.input.replace(O[0],e.t(O[0].slice(3,-1)))}if(/%r\(.*\,.*\,.*\)/.test(M)){let X=/%r\(.*\)/.exec(M)[0].slice(3,-1).split(","),K=X[X.length-1],q=X[X.length-2];X.splice(-2,2),M=X.join(",").replace(new RegExp(q,"g"),K)}return M}function ue(G,B,j,M,O,X){let K=M?[]:{},q,re,pe,F,W,Q={},_e=B&&Array.isArray(B),xe=j&&Array.isArray(j),Se;if(_e)for(const[ie,de]of Object.entries(B))Q[de]=xe?j[ie]:null;if(M||(K=Object.assign({},Q)),!G)return K;q=JSON.parse(JSON.stringify(G));for(let ie of q){if(ie=ie.replace(/\\:/g,":"),/.*:.*:.*/.test(ie)||(ie="::"+ie),re=ie.split(":"),pe=!0,O&&re[0].split(O).length>1){for(const de of re[0].split(O))q.push([de,...re.slice(1)].join(":"));continue}if(re[1]&&(pe=!1,F=parseFloat(re[1]),isNaN(F)?RegExp(re[1]?re[1]:".").test(re[0])&&(pe=!0):(W=/-?[0-9]/.exec(re[0]),W&&W.index!==-1&&parseFloat(re[0].slice(W.index))>=F&&(pe=!0))),pe){Se=Object.assign({},Q);for(let[de,Ge]of Object.entries(re.slice(2)))Ge==="true"&&(Ge=!0),Ge==="false"&&(Ge=!1),Ge!==""&&(Se[_e&&B[de]?B[de]:[de]]=J(Ge,re[0],X));if(M)K.push(Se);else{K=Se;break}}}return K}function le(G,B){let j=G.split("->"),M={name:j[0],title:j[0]},O=B.map(X=>X.name).indexOf(M.name);return O!==-1&&Object.assign(M,B[O]),j.length>1&&(M.group=le(j.slice(1).join("->"),M.group||[])),O!==-1?B[O]=M:M.name&&B.push(M),B}function be(G){for(const B of G)B.sort&&B.group&&B.group.length>1&&B.group.sort((j,M)=>j.title.toUpperCase()>M.title.toUpperCase()?1:M.title.toUpperCase()>j.title.toUpperCase()?-1:0),B.group&&be(B.group)}function ae(){let G=[];r.navigation=JSON.parse(JSON.stringify(r.config.navigation));for(const B of r.panelList)if(B.panel.navigation&&(G=ue(B.panel.navigation,["route"],[""],!0,","),ue(B.panel.show,["show"],[!0]).show))for(const j of G)le(j.route,r.navigation);return be(r.navigation),i(4,"Navigation loaded.",r.navigation),!0}function Z(){let G,B,j=l();if(r.panelView=[],/^panel=.*/.test(r.currentView))B=r.panelList.map(M=>M.name).indexOf(r.currentView.split("=")[1]),B!==-1&&r.panelView.push(B);else for(const[M,O]of Object.entries(r.panelList))O.panel.navigation&&(G=ue(O.panel.navigation,["route"],[""],!0,","),G.map(X=>X.route).indexOf(r.currentView)!==-1&&r.panelView.push(M));return A(),i("4","PanelView loaded.",{view:r.currentView}),l(j),!0}async function te(G){let B=!0,j=l();return i(4,G?"Create Session...":"Refresh Session..."),r.isReady=!1,G&&(a.conn=null),B&&G&&(B=await g()),B&&G&&(B=P()),B&&(B=await p()),B&&(B=await x()),B&&(B=await S()),B&&(B=$()),B&&(B=await H()),B&&(B=ae()),B&&(B=Z()),B?(r.message=!1,r.isReady=!0,i(1,G?"FHEMApp launched.":"Session refreshed."),G&&r.noConfig&&(await Ua.push({name:"settings",query:Ua.currentRoute.value.query}),i(3,"No Config handling",null,"noConfig"))):i(3,"FHEMApp launching failed."),l(j),B}function se(){i(1,"FHEMApp launching..."),f(),s(),o(),Ua.afterEach(G=>{let B=d(G);if(B.langChanged&&(e.locale.value=r.settings.lang),B.darkChanged&&c(r.settings.dark==="0"?"light":"dark"),B.connChanged||!r.isReady)return te(!0);if(B.configChanged)return location.reload();B.routeChanged&&Z()})}return Ua.isReady().then(se()),{app:r,getEl:z,handleDefs:ue,getIcon:U,replacer:J,createSession:te,request:h,thread:l,stringToJson:m,log:i,help:u,changeDarkMode:c,appUpdate:T,loadTemplates:S,createURL:v}}),Kz={__name:"AppNavigation",props:{items:Array,path:String,isChip:Boolean},setup(e){const t=e,n=aT(),r=i=>t.path?t.path+"->"+i:i,a=i=>{Ua.push({name:"devices",params:{view:r(t.items[i].name)},query:Ua.currentRoute.value.query})};return(i,o)=>{const s=Dt("v-list-item"),l=Dt("v-chip"),u=Dt("v-list-group"),c=Dt("v-divider");return Xt(!0),Gl(ke,null,u1(e.items,(f,d)=>(Xt(),Gl(ke,null,[(!f.group||f.group.length<1)&&!e.isChip?(Xt(),jn(s,{key:0,title:Be(n).replacer(f.title,"")||f.name,"prepend-icon":f.icon,rounded:"pill",onClick:v=>a(d)},null,8,["title","prepend-icon","onClick"])):jr("",!0),(!f.group||f.group.length<1)&&e.isChip?(Xt(),jn(l,{key:1,class:"my-1 ml-2","prepend-icon":f.icon,onClick:v=>a(d)},{default:Vt(()=>[ta(is(Be(n).replacer(f.title,"")||f.name),1)]),_:2},1032,["prepend-icon","onClick"])):jr("",!0),f.group&&f.group.length>0?(Xt(),jn(u,{key:2},{activator:Vt(({props:v})=>[(Xt(),jn(s,ve({ref_for:!0},v,{title:Be(n).replacer(f.title,"")||f.name,"prepend-icon":f.icon,rounded:"pill",key:d}),null,16,["title","prepend-icon"]))]),default:Vt(()=>[I(Kz,{items:f.group,isChip:f.groupAsChips,path:r(f.name)},null,8,["items","isChip","path"])]),_:2},1024)):jr("",!0),f.divider?(Xt(),jn(c,{key:3})):jr("",!0)],64))),256)}}},aK={__name:"OptionsMenu",setup(e){const t=aT(),n=vh(),r=E(()=>{let o=[],s=t.app.header,l={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"},update:{name:"update",title:"%t(_app.options.update)",icon:"mdi-cloud-download-outline"}};return s.showDarkMode&&o.push(l.darkMode),s.showReloadPage&&o.push(l.reloadPage),s.showSettings&&o.push(l.settings),s.showUpdate&&t.app.updateAvailable&&o.push(l.update),o.push(...s.commands),o}),a=E(()=>Object.keys(n.messages.value));function i(o){let s=r.value[o];s.name==="reloadPage"&&location.reload(),s.name==="settings"&&Ua.push({name:"settings",query:Ua.currentRoute.value.query}),s.name==="darkMode"&&t.changeDarkMode(),s.name==="update"&&t.appUpdate(),s.cmd&&t.request("text",s.cmd)}return(o,s)=>{const l=Dt("v-btn"),u=Dt("v-badge"),c=Dt("v-icon"),f=Dt("v-list-item"),d=Dt("v-divider"),v=Dt("v-btn-toggle"),h=Dt("v-list"),g=Dt("v-menu");return r.value.length>0?(Xt(),jn(g,{key:0},{activator:Vt(({props:p})=>[I(u,{"model-value":Be(t).app.updateAvailable&&Be(t).app.header.showUpdate,color:"error",dot:"",class:"mr-2"},{default:Vt(()=>[I(l,ve({icon:"mdi-dots-vertical",density:"compact"},p),null,16)]),_:2},1032,["model-value"])]),default:Vt(()=>[I(h,null,{default:Vt(()=>[(Xt(!0),Gl(ke,null,u1(r.value,(p,m)=>(Xt(),jn(f,{rounded:"pill",key:m,title:Be(t).replacer(p.title,""),onClick:y=>i(m)},{prepend:Vt(()=>[I(u,{"model-value":Be(t).app.updateAvailable&&p.name==="update",color:"error",dot:""},{default:Vt(()=>[I(c,{icon:p.icon,density:"compact"},null,8,["icon"])]),_:2},1032,["model-value"])]),_:2},1032,["title","onClick"]))),128)),r.value.length>0&&Be(t).app.header.showLanguages?(Xt(),jn(d,{key:0,class:"pb-2"})):jr("",!0),Be(t).app.header.showLanguages?(Xt(),jn(f,{key:1,class:"text-center"},{default:Vt(()=>[I(v,{modelValue:Be(n).locale.value,"onUpdate:modelValue":s[0]||(s[0]=p=>Be(n).locale.value=p),divided:"",density:"compact"},{default:Vt(()=>[(Xt(!0),Gl(ke,null,u1(a.value,p=>(Xt(),jn(l,{value:p,size:"small",key:p},{default:Vt(()=>[ta(is(p),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})):jr("",!0)]),_:1})]),_:1})):jr("",!0)}}},iK=""+new URL("logo_v4-DcYcUQwu.png",import.meta.url).href,oK={key:0,class:"text-h5"},sK={key:0,class:"text-h5"},lK={key:1,class:"text-h5"},uK={__name:"App",setup(e){const t=aT(),{mobile:n}=Wr(),r=ye(!t.app.header.hideNavigation.value),a=E(()=>{let o=[],s,l;if(t.app.currentView&&!/^panel=/.test(t.app.currentView)){o.push(...t.app.navigation);for(const u of t.app.currentView.split("->"))s=o.map(c=>c.name).indexOf(u),s!==-1?(l=t.replacer(o[s].title,""),o[s].group&&o[s].group.length>0&&(o=o[s].group)):l=u}return l});function i(){Ua.push({name:"internals",query:Ua.currentRoute.value.query})}return(o,s)=>{const l=Dt("v-progress-circular"),u=Dt("v-overlay"),c=Dt("v-img"),f=Dt("v-divider"),d=Dt("v-list"),v=Dt("v-col"),h=Dt("v-icon"),g=Dt("v-row"),p=Dt("v-navigation-drawer"),m=Dt("v-app-bar-nav-icon"),y=Dt("v-btn"),_=Dt("v-app-bar"),b=Dt("v-alert"),x=Dt("RouterView"),S=Dt("v-container"),T=Dt("v-main"),C=Dt("v-layout"),w=Dt("v-app");return Xt(),jn(w,{class:"noselect"},{default:Vt(()=>[I(C,null,{default:Vt(()=>[I(u,{"model-value":Be(t).app.threads.length>0,class:"align-center justify-center"},{default:Vt(()=>[I(l,{indeterminate:"",size:"64"})]),_:1},8,["model-value"]),I(p,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=A=>r.value=A),color:"secondary",temporary:Be(t).app.header.hideNavigation},{prepend:Vt(()=>[I(c,{src:Be(iK)},null,8,["src"]),I(f)]),default:Vt(()=>[I(d,null,{default:Vt(()=>[I(Kz,{items:Be(t).app.navigation},null,8,["items"])]),_:1}),I(f),I(g,{"no-gutters":"",class:"mx-2 my-1"},{default:Vt(()=>[I(v,null,{default:Vt(()=>[ta(is(Be(t).app.version),1)]),_:1}),I(v,{cols:"2",class:"text-right"},{default:Vt(()=>[I(h,{icon:Be(t).app.isReady?"mdi-sync":"mdi-alert",size:"small"},null,8,["icon"])]),_:1})]),_:1}),I(f)]),_:1},8,["modelValue","temporary"]),Be(t).app.isLoaded?(Xt(),jn(_,{key:0,order:Be(n)?0:-1,color:Be(t).app.settings.loglevel>6?"error":"primary"},m8({prepend:Vt(()=>[I(m,{class:oh(Be(t).app.header.hideNavigation?"":"d-lg-none"),onClick:s[1]||(s[1]=C1(A=>r.value=!r.value,["stop"]))},null,8,["class"]),!Be(n)&&Be(t).app.header.showTime?(Xt(),Gl("div",oK,is(o.$d(Be(t).app.header.time,Be(t).app.header.timeFormat)),1)):jr("",!0)]),append:Vt(()=>[Be(t).app.settings.loglevel>6?(Xt(),jn(y,{key:0,icon:"mdi-information",onClick:s[2]||(s[2]=A=>i())})):jr("",!0),I(aK)]),default:Vt(()=>[!Be(n)&&Be(t).app.header.showDate?(Xt(),Gl("div",sK,is(o.$d(Be(t).app.header.time,Be(t).app.header.dateFormat)),1)):jr("",!0),Be(n)&&Be(t).app.header.showTitle?(Xt(),Gl("div",lK,is(a.value),1)):jr("",!0)]),_:2},[Be(t).app.header.imageUrl&&Be(t).app.settings.loglevel<7?{name:"image",fn:Vt(()=>[I(c,{src:Be(t).app.header.imageUrl,cover:"",gradient:Be(t).app.header.imageGradient},null,8,["src","gradient"])]),key:"0"}:void 0]),1032,["order","color"])):jr("",!0),I(T,null,{default:Vt(()=>[I(S,{fluid:"",class:"pa-2"},{default:Vt(()=>[Be(t).app.message&&Be(t).app.message.type?(Xt(),jn(b,{key:0,closable:"",type:Be(t).app.message.type,title:o.$t(Be(t).app.message.title),text:o.$t(Be(t).app.message.text),class:"mb-2 mx-1","onClick:close":s[3]||(s[3]=A=>Be(t).app.message=!1)},null,8,["type","title","text"])):jr("",!0),I(x)]),_:1})]),_:1})]),_:1})]),_:1})}}},cK={badge:"Abzeichen",open:"Öffnen",close:"Schließen",dismiss:"Verwerfen",confirmEdit:{ok:"OK",cancel:"Abbrechen"},dataIterator:{noResultsText:"Keine Elemente gefunden",loadingText:"Lade Elemente..."},dataTable:{itemsPerPageText:"Zeilen pro Seite:",ariaLabel:{sortDescending:"Absteigend sortiert.",sortAscending:"Aufsteigend sortiert.",sortNone:"Nicht sortiert.",activateNone:"Aktivieren um Sortierung zu entfernen.",activateDescending:"Aktivieren um absteigend zu sortieren.",activateAscending:"Aktivieren um aufsteigend zu sortieren."},sortBy:"Sortiere nach"},dataFooter:{itemsPerPageText:"Elemente pro Seite:",itemsPerPageAll:"Alle",nextPage:"Nächste Seite",prevPage:"Vorherige Seite",firstPage:"Erste Seite",lastPage:"Letzte Seite",pageText:"{0}-{1} von {2}"},dateRangeInput:{divider:"bis"},datePicker:{itemsSelected:"{0} ausgewählt",range:{title:"Daten auswählen",header:"Daten eingeben"},title:"Datum auswählen",header:"Datum eingeben",input:{placeholder:"Datum eingeben"}},noDataText:"Keine Daten vorhanden",carousel:{prev:"Vorheriges Bild",next:"Nächstes Bild",ariaLabel:{delimiter:"Element {0} von {1}"}},calendar:{moreEvents:"{0} mehr",today:"Heute"},input:{clear:"{0} leeren",prependAction:"{0} vorangestellte Aktion",appendAction:"{0} angehängte Aktion",otp:"Bitte OTP-Zeichen {0} eingeben"},fileInput:{counter:"{0} Dateien",counterSize:"{0} Dateien ({1} gesamt)"},timePicker:{am:"AM",pm:"PM",title:"Uhrzeit auswählen"},pagination:{ariaLabel:{root:"Seitennavigation",next:"Nächste Seite",previous:"Vorherige Seite",page:"Gehe zu Seite {0}",currentPage:"Aktuelle Seite, Seite {0}",first:"Erste Seite",last:"Letzte Seite"}},stepper:{next:"Weiter",prev:"Zurück"},rating:{ariaLabel:{item:"Bewertung {0} von {1}"}},loading:"Laden...",infiniteScroll:{loadMore:"Mehr laden",empty:"Nichts weiteres"}},fK={badge:"Placa",open:"Open",close:"Cerrar",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"Ningún elemento coincide con la búsqueda",loadingText:"Cargando..."},dataTable:{itemsPerPageText:"Filas por página:",ariaLabel:{sortDescending:"Orden descendente.",sortAscending:"Orden ascendente.",sortNone:"Sin ordenar.",activateNone:"Pulse para quitar orden.",activateDescending:"Pulse para ordenar de forma descendente.",activateAscending:"Pulse para ordenar de forma ascendente."},sortBy:"Ordenado por"},dataFooter:{itemsPerPageText:"Elementos por página:",itemsPerPageAll:"Todos",nextPage:"Página siguiente",prevPage:"Página anterior",firstPage:"Primera página",lastPage:"Última página",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No hay datos disponibles",carousel:{prev:"Visual anterior",next:"Visual siguiente",ariaLabel:{delimiter:"Visual {0} de {1}"}},calendar:{moreEvents:"{0} más",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} archivos",counterSize:"{0} archivos ({1} en total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Navegación de paginación",next:"Página siguiente",previous:"Página anterior",page:"Ir a la página {0}",currentPage:"Página actual, página {0}",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Puntuación {0} de {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},dK={badge:"Badge",open:"Ouvrir",close:"Fermer",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Annuler"},dataIterator:{noResultsText:"Aucun enregistrement correspondant trouvé",loadingText:"Chargement de l'élément..."},dataTable:{itemsPerPageText:"Lignes par page :",ariaLabel:{sortDescending:"Tri décroissant.",sortAscending:"Tri croissant.",sortNone:"Non trié.",activateNone:"Activer pour supprimer le tri.",activateDescending:"Activer pour trier par ordre décroissant.",activateAscending:"Activer pour trier par ordre croissant."},sortBy:"Trier par"},dataFooter:{itemsPerPageText:"Éléments par page :",itemsPerPageAll:"Tous",nextPage:"Page suivante",prevPage:"Page précédente",firstPage:"Première page",lastPage:"Dernière page",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"à"},datePicker:{itemsSelected:"{0} selected",range:{title:"Sélectionner des dates",header:"Entrer des dates"},title:"Sélectionner une date",header:"Entrer une date",input:{placeholder:"Entrer une date"}},noDataText:"Aucune donnée disponible",carousel:{prev:"Visuel précédent",next:"Visuel suivant",ariaLabel:{delimiter:"Diapositive {0} de {1}"}},calendar:{moreEvents:"{0} de plus",today:"Today"},input:{clear:"Vider {0}",prependAction:"{0} action avant",appendAction:"{0} action après",otp:"Caractère {0} du mot de passe à usage unique"},fileInput:{counter:"{0} fichier(s)",counterSize:"{0} fichier(s) ({1} au total)"},timePicker:{am:"AM",pm:"PM",title:"Select Time"},pagination:{ariaLabel:{root:"Navigation de pagination",next:"Page suivante",previous:"Page précédente",page:"Aller à la page {0}",currentPage:"Page actuelle, Page {0}",first:"Première page",last:"Dernière page"}},stepper:{next:"Suivant",prev:"Précédent"},rating:{ariaLabel:{item:"Note de {0} sur {1}"}},loading:"Chargement...",infiniteScroll:{loadMore:"Charger plus",empty:"Aucune donnée supplémentaire"}},vK=ne({...Me(),...Yz({fullHeight:!0}),...gt()},"VApp"),hK=fe()({name:"VApp",props:vK(),setup(e,t){let{slots:n}=t;const r=Ct(e),{layoutClasses:a,getLayoutItem:i,items:o,layoutRef:s}=jz(e),{rtlClasses:l}=Tn();return ge(()=>{var u;return I("div",{ref:s,class:["v-application",r.themeClasses.value,a.value,l.value,e.class],style:[e.style]},[I("div",{class:"v-application__wrap"},[(u=n.default)==null?void 0:u.call(n)])])}),{getLayoutItem:i,items:o,theme:r}}}),nt=ne({tag:{type:String,default:"div"}},"tag"),qz=ne({text:String,...Me(),...nt()},"VToolbarTitle"),iT=fe()({name:"VToolbarTitle",props:qz(),setup(e,t){let{slots:n}=t;return ge(()=>{const r=!!(n.default||n.text||e.text);return I(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var a;return[r&&I("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(a=n.default)==null?void 0:a.call(n)])]}})}),{}}}),gK=ne({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function ia(e,t,n){return fe()({name:e,props:gK({mode:n,origin:t}),setup(r,a){let{slots:i}=a;const o={onBeforeEnter(s){r.origin&&(s.style.transformOrigin=r.origin)},onLeave(s){if(r.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:f}=s;s._transitionInitialStyles={position:s.style.position,top:s.style.top,left:s.style.left,width:s.style.width,height:s.style.height},s.style.position="absolute",s.style.top=`${l}px`,s.style.left=`${u}px`,s.style.width=`${c}px`,s.style.height=`${f}px`}r.hideOnLeave&&s.style.setProperty("display","none","important")},onAfterLeave(s){if(r.leaveAbsolute&&(s!=null&&s._transitionInitialStyles)){const{position:l,top:u,left:c,width:f,height:d}=s._transitionInitialStyles;delete s._transitionInitialStyles,s.style.position=l||"",s.style.top=u||"",s.style.left=c||"",s.style.width=f||"",s.style.height=d||""}}};return()=>{const s=r.group?LC:xs;return ra(s,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function Jz(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return fe()({name:e,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,a){let{slots:i}=a;const o=r.group?LC:xs;return()=>ra(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function Qz(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=Gn(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const s=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=s.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:a,onLeaveCancelled:a};function a(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){const s=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,s!=null&&(o.style[n]=s),delete o._initialStyle}}const pK=ne({target:[Object,Array]},"v-dialog-transition"),jy=fe()({name:"VDialogTransition",props:pK(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(a){a.style.pointerEvents="none",a.style.visibility="hidden"},async onEnter(a,i){var d;await new Promise(v=>requestAnimationFrame(v)),await new Promise(v=>requestAnimationFrame(v)),a.style.visibility="";const{x:o,y:s,sx:l,sy:u,speed:c}=_k(e.target,a),f=Ml(a,[{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:Uj});(d=yk(a))==null||d.forEach(v=>{Ml(v,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:bv})}),f.finished.then(()=>i())},onAfterEnter(a){a.style.removeProperty("pointer-events")},onBeforeLeave(a){a.style.pointerEvents="none"},async onLeave(a,i){var d;await new Promise(v=>requestAnimationFrame(v));const{x:o,y:s,sx:l,sy:u,speed:c}=_k(e.target,a);Ml(a,[{},{transform:`translate(${o}px, ${s}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:Yj}).finished.then(()=>i()),(d=yk(a))==null||d.forEach(v=>{Ml(v,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:bv})})},onAfterLeave(a){a.style.removeProperty("pointer-events")}};return()=>e.target?I(xs,ve({name:"dialog-transition"},r,{css:!1}),n):I(xs,{name:"dialog-transition"},n)}});function yk(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function _k(e,t){const n=bz(e),r=jC(t),[a,i]=getComputedStyle(t).transformOrigin.split(" ").map(m=>parseFloat(m)),[o,s]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||s==="left"?l-=n.width/2:(o==="right"||s==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||s==="top"?u-=n.height/2:(o==="bottom"||s==="bottom")&&(u+=n.height/2);const c=n.width/r.width,f=n.height/r.height,d=Math.max(1,c,f),v=c/d||0,h=f/d||0,g=r.width*r.height/(window.innerWidth*window.innerHeight),p=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:l-(a+r.left),y:u-(i+r.top),sx:v,sy:h,speed:p}}const mK=ia("fab-transition","center center","out-in"),yK=ia("dialog-bottom-transition"),_K=ia("dialog-top-transition"),wv=ia("fade-transition"),oT=ia("scale-transition"),bK=ia("scroll-x-transition"),SK=ia("scroll-x-reverse-transition"),xK=ia("scroll-y-transition"),wK=ia("scroll-y-reverse-transition"),CK=ia("slide-x-transition"),TK=ia("slide-x-reverse-transition"),sT=ia("slide-y-transition"),AK=ia("slide-y-reverse-transition"),Zy=Jz("expand-transition",Qz()),lT=Jz("expand-x-transition",Qz("",!0)),IK=ne({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),lt=fe(!1)({name:"VDefaultsProvider",props:IK(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:a,reset:i,root:o,scoped:s}=Vs(e);return Kt(r,{reset:i,root:o,scoped:s,disabled:a}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),gn=ne({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function pn(e){return{dimensionStyles:E(()=>{const n={},r=De(e.height),a=De(e.maxHeight),i=De(e.maxWidth),o=De(e.minHeight),s=De(e.minWidth),l=De(e.width);return r!=null&&(n.height=r),a!=null&&(n.maxHeight=a),i!=null&&(n.maxWidth=i),o!=null&&(n.minHeight=o),s!=null&&(n.minWidth=s),l!=null&&(n.width=l),n})}}function DK(e){return{aspectStyles:E(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const eF=ne({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Me(),...gn()},"VResponsive"),Z1=fe()({name:"VResponsive",props:eF(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=DK(e),{dimensionStyles:a}=pn(e);return ge(()=>{var i;return I("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[a.value,e.style]},[I("div",{class:"v-responsive__sizer",style:r.value},null),(i=n.additional)==null?void 0:i.call(n),n.default&&I("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});function uT(e){return YC(()=>{const t=[],n={};if(e.value.background)if($1(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&Rj(e.value.background)){const r=xa(e.value.background);if(r.a==null||r.a===1){const a=Mz(r);n.color=a,n.caretColor=a}}}else t.push(`bg-${e.value.background}`);return e.value.text&&($1(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Kn(e,t){const n=E(()=>({text:Bt(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:a}=uT(n);return{textColorClasses:r,textColorStyles:a}}function Et(e,t){const n=E(()=>({background:Bt(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:a}=uT(n);return{backgroundColorClasses:r,backgroundColorStyles:a}}const Yt=ne({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Qt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{roundedClasses:E(()=>{const r=Bt(e)?e.value:e.rounded,a=Bt(e)?e.value:e.tile,i=[];if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);else(a||r===!1)&&i.push("rounded-0");return i})}}const ai=ne({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),lr=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:a,group:i,...o}=e,{component:s=i?LC:xs,...l}=typeof r=="object"?r:{};return ra(s,ve(typeof r=="string"?{name:a?"":r}:l,typeof r=="string"?{}:Object.fromEntries(Object.entries({disabled:a,group:i}).filter(u=>{let[c,f]=u;return f!==void 0})),o),n)};function PK(e,t){if(!GC)return;const n=t.modifiers||{},r=t.value,{handler:a,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var f;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!u)return;const c=s.some(d=>d.isIntersecting);a&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&a(c,s,l),c&&n.once?tF(e,t):u.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function tF(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const gh={mounted:PK,unmounted:tF},nF=ne({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...eF(),...Me(),...Yt(),...ai()},"VImg"),po=fe()({name:"VImg",directives:{intersect:gh},props:nF(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=Et(oe(e,"color")),{roundedClasses:o}=Qt(e),s=Jt("VImg"),l=Te(""),u=ye(),c=Te(e.eager?"loading":"idle"),f=Te(),d=Te(),v=E(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),h=E(()=>v.value.aspect||f.value/d.value||0);Ce(()=>e.src,()=>{g(c.value!=="idle")}),Ce(h,(P,k)=>{!P&&k&&u.value&&b(u.value)}),Ly(()=>g());function g(P){if(!(e.eager&&P)&&!(GC&&!P&&!e.eager)){if(c.value="loading",v.value.lazySrc){const k=new Image;k.src=v.value.lazySrc,b(k,null)}v.value.src&&ht(()=>{var k;n("loadstart",((k=u.value)==null?void 0:k.currentSrc)||v.value.src),setTimeout(()=>{var L;if(!s.isUnmounted)if((L=u.value)!=null&&L.complete){if(u.value.naturalWidth||m(),c.value==="error")return;h.value||b(u.value,null),c.value==="loading"&&p()}else h.value||b(u.value),y()})})}}function p(){var P;s.isUnmounted||(y(),b(u.value),c.value="loaded",n("load",((P=u.value)==null?void 0:P.currentSrc)||v.value.src))}function m(){var P;s.isUnmounted||(c.value="error",n("error",((P=u.value)==null?void 0:P.currentSrc)||v.value.src))}function y(){const P=u.value;P&&(l.value=P.currentSrc||P.src)}let _=-1;Cn(()=>{clearTimeout(_)});function b(P){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const L=()=>{if(clearTimeout(_),s.isUnmounted)return;const{naturalHeight:V,naturalWidth:N}=P;V||N?(f.value=N,d.value=V):!P.complete&&c.value==="loading"&&k!=null?_=window.setTimeout(L,k):(P.currentSrc.endsWith(".svg")||P.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,d.value=1)};L()}const x=E(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),S=()=>{var L;if(!v.value.src||c.value==="idle")return null;const P=I("img",{class:["v-img__img",x.value],style:{objectPosition:e.position},src:v.value.src,srcset:v.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:p,onError:m},null),k=(L=r.sources)==null?void 0:L.call(r);return I(lr,{transition:e.transition,appear:!0},{default:()=>[Zt(k?I("picture",{class:"v-img__picture"},[k,P]):P,[[Ma,c.value==="loaded"]])]})},T=()=>I(lr,{transition:e.transition},{default:()=>[v.value.lazySrc&&c.value!=="loaded"&&I("img",{class:["v-img__img","v-img__img--preload",x.value],style:{objectPosition:e.position},src:v.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),C=()=>r.placeholder?I(lr,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&I("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,w=()=>r.error?I(lr,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&I("div",{class:"v-img__error"},[r.error()])]}):null,A=()=>e.gradient?I("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,D=Te(!1);{const P=Ce(h,k=>{k&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{D.value=!0})}),P())})}return ge(()=>{const P=Z1.filterProps(e);return Zt(I(Z1,ve({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!D.value},a.value,o.value,e.class],style:[{width:De(e.width==="auto"?f.value:e.width)},i.value,e.style]},P,{aspectRatio:h.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>I(ke,null,[I(S,null,null),I(T,null,null),I(A,null,null),I(C,null,null),I(w,null,null)]),default:r.default}),[[na("intersect"),{handler:g,options:e.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:f,naturalHeight:d}}}),Ur=ne({border:[Boolean,Number,String]},"border");function oa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{borderClasses:E(()=>{const r=Bt(e)?e.value:e.border,a=[];if(r===!0||r==="")a.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))a.push(`border-${i}`);return a})}}const An=ne({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Un(e){return{elevationClasses:E(()=>{const n=Bt(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const kK=[null,"prominent","default","comfortable","compact"],rF=ne({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>kK.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Ur(),...Me(),...An(),...Yt(),...nt({tag:"header"}),...gt()},"VToolbar"),K1=fe()({name:"VToolbar",props:rF(),setup(e,t){var v;let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(oe(e,"color")),{borderClasses:i}=oa(e),{elevationClasses:o}=Un(e),{roundedClasses:s}=Qt(e),{themeClasses:l}=Ct(e),{rtlClasses:u}=Tn(),c=Te(!!(e.extended||(v=n.extension)!=null&&v.call(n))),f=E(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),d=E(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Kt({VBtn:{variant:"text"}}),ge(()=>{var m;const h=!!(e.title||n.title),g=!!(n.image||e.image),p=(m=n.extension)==null?void 0:m.call(n);return c.value=!!(e.extended||p),I(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,i.value,o.value,s.value,l.value,u.value,e.class],style:[a.value,e.style]},{default:()=>[g&&I("div",{key:"image",class:"v-toolbar__image"},[n.image?I(lt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):I(po,{key:"image-img",cover:!0,src:e.image},null)]),I(lt,{defaults:{VTabs:{height:De(f.value)}}},{default:()=>{var y,_,b;return[I("div",{class:"v-toolbar__content",style:{height:De(f.value)}},[n.prepend&&I("div",{class:"v-toolbar__prepend"},[(y=n.prepend)==null?void 0:y.call(n)]),h&&I(iT,{key:"title",text:e.title},{text:n.title}),(_=n.default)==null?void 0:_.call(n),n.append&&I("div",{class:"v-toolbar__append"},[(b=n.append)==null?void 0:b.call(n)])])]}}),I(lt,{defaults:{VTabs:{height:De(d.value)}}},{default:()=>[I(Zy,null,{default:()=>[c.value&&I("div",{class:"v-toolbar__extension",style:{height:De(d.value)}},[p])]})]})]})}),{contentHeight:f,extensionHeight:d}}}),MK=ne({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function LK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n}=t;let r=0,a=0;const i=ye(null),o=Te(0),s=Te(0),l=Te(0),u=Te(!1),c=Te(!1),f=E(()=>Number(e.scrollThreshold)),d=E(()=>sn((f.value-o.value)/f.value||0)),v=()=>{const h=i.value;if(!h||n&&!n.value)return;r=o.value,o.value="window"in h?h.pageYOffset:h.scrollTop;const g=h instanceof Window?document.documentElement.scrollHeight:h.scrollHeight;if(a!==g){a=g;return}c.value=o.value{s.value=s.value||o.value}),Ce(u,()=>{s.value=0}),wn(()=>{Ce(()=>e.scrollTarget,h=>{var p;const g=h?document.querySelector(h):window;g&&g!==i.value&&((p=i.value)==null||p.removeEventListener("scroll",v),i.value=g,i.value.addEventListener("scroll",v,{passive:!0}))},{immediate:!0})}),Cn(()=>{var h;(h=i.value)==null||h.removeEventListener("scroll",v)}),n&&Ce(n,v,{immediate:!0}),{scrollThreshold:f,currentScroll:o,currentThreshold:l,isScrollActive:u,scrollRatio:d,isScrollingUp:c,savedScroll:s}}function Cu(){const e=Te(!1);return wn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:E(()=>e.value?void 0:{transition:"none !important"}),isBooted:sh(e)}}const EK=ne({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...rF(),...xu(),...MK(),height:{type:[Number,String],default:64}},"VAppBar"),RK=fe()({name:"VAppBar",props:EK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ye(),a=Ve(e,"modelValue"),i=E(()=>{var _;const y=new Set(((_=e.scrollBehavior)==null?void 0:_.split(" "))??[]);return{hide:y.has("hide"),fullyHide:y.has("fully-hide"),inverted:y.has("inverted"),collapse:y.has("collapse"),elevate:y.has("elevate"),fadeImage:y.has("fade-image")}}),o=E(()=>{const y=i.value;return y.hide||y.fullyHide||y.inverted||y.collapse||y.elevate||y.fadeImage||!a.value}),{currentScroll:s,scrollThreshold:l,isScrollingUp:u,scrollRatio:c}=LK(e,{canScroll:o}),f=E(()=>i.value.hide||i.value.fullyHide),d=E(()=>e.collapse||i.value.collapse&&(i.value.inverted?c.value>0:c.value===0)),v=E(()=>e.flat||i.value.fullyHide&&!a.value||i.value.elevate&&(i.value.inverted?s.value>0:s.value===0)),h=E(()=>i.value.fadeImage?i.value.inverted?1-c.value:c.value:void 0),g=E(()=>{var b,x;if(i.value.hide&&i.value.inverted)return 0;const y=((b=r.value)==null?void 0:b.contentHeight)??0,_=((x=r.value)==null?void 0:x.extensionHeight)??0;return f.value?s.value!!e.scrollBehavior),()=>{un(()=>{f.value?i.value.inverted?a.value=s.value>l.value:a.value=u.value||s.valueparseInt(e.order,10)),position:oe(e,"location"),layoutSize:g,elementSize:Te(void 0),active:a,absolute:oe(e,"absolute")});return ge(()=>{const y=K1.filterProps(e);return I(K1,ve({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...m.value,"--v-toolbar-image-opacity":h.value,height:void 0,...p.value},e.style]},y,{collapse:d.value,flat:v.value}),n)}),{}}}),VK=[null,"default","comfortable","compact"],Nn=ne({density:{type:String,default:"default",validator:e=>VK.includes(e)}},"density");function dr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{densityClasses:E(()=>`${t}--density-${e.density}`)}}const OK=["elevated","flat","tonal","outlined","text","plain"];function Fs(e,t){return I(ke,null,[e&&I("span",{key:"overlay",class:`${t}__overlay`},null),I("span",{key:"underlay",class:`${t}__underlay`},null)])}const La=ne({color:String,variant:{type:String,default:"elevated",validator:e=>OK.includes(e)}},"variant");function Tu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();const n=E(()=>{const{variant:i}=Be(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:a}=uT(E(()=>{const{variant:i,color:o}=Be(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}}));return{colorClasses:r,colorStyles:a,variantClasses:n}}const aF=ne({baseColor:String,divided:Boolean,...Ur(),...Me(),...Nn(),...An(),...Yt(),...nt(),...gt(),...La()},"VBtnGroup"),q1=fe()({name:"VBtnGroup",props:aF(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{densityClasses:a}=dr(e),{borderClasses:i}=oa(e),{elevationClasses:o}=Un(e),{roundedClasses:s}=Qt(e);Kt({VBtn:{height:"auto",baseColor:oe(e,"baseColor"),color:oe(e,"color"),density:oe(e,"density"),flat:!0,variant:oe(e,"variant")}}),ge(()=>I(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,i.value,a.value,o.value,s.value,e.class],style:e.style},n))}}),Au=ne({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Iu=ne({value:null,disabled:Boolean,selectedClass:String},"group-item");function Du(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=Jt("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const a=Wn();Lt(Symbol.for(`${t.description}:id`),a);const i=rt(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=oe(e,"value"),s=E(()=>!!(i.disabled.value||e.disabled));i.register({id:a,value:o,disabled:s},r),Cn(()=>{i.unregister(a)});const l=E(()=>i.isSelected(a)),u=E(()=>i.items.value[0].id===a),c=E(()=>i.items.value[i.items.value.length-1].id===a),f=E(()=>l.value&&[i.selectedClass.value,e.selectedClass]);return Ce(l,d=>{r.emit("group:selected",{value:d})},{flush:"sync"}),{id:a,isSelected:l,isFirst:u,isLast:c,toggle:()=>i.select(a,!l.value),select:d=>i.select(a,d),selectedClass:f,value:o,disabled:s,group:i}}function Hs(e,t){let n=!1;const r=yn([]),a=Ve(e,"modelValue",[],d=>d==null?[]:iF(r,jt(d)),d=>{const v=BK(r,d);return e.multiple?v:v[0]}),i=Jt("useGroup");function o(d,v){const h=d,g=Symbol.for(`${t.description}:id`),m=Cc(g,i==null?void 0:i.vnode).indexOf(v);Be(h.value)==null&&(h.value=m,h.useIndexAsValue=!0),m>-1?r.splice(m,0,h):r.push(h)}function s(d){if(n)return;l();const v=r.findIndex(h=>h.id===d);r.splice(v,1)}function l(){const d=r.find(v=>!v.disabled);d&&e.mandatory==="force"&&!a.value.length&&(a.value=[d.id])}wn(()=>{l()}),Cn(()=>{n=!0}),Ey(()=>{for(let d=0;dg.id===d);if(!(v&&(h!=null&&h.disabled)))if(e.multiple){const g=a.value.slice(),p=g.findIndex(y=>y===d),m=~p;if(v=v??!m,m&&e.mandatory&&g.length<=1||!m&&e.max!=null&&g.length+1>e.max)return;p<0&&v?g.push(d):p>=0&&!v&&g.splice(p,1),a.value=g}else{const g=a.value.includes(d);if(e.mandatory&&g)return;a.value=v??!g?[d]:[]}}function c(d){if(e.multiple,a.value.length){const v=a.value[0],h=r.findIndex(m=>m.id===v);let g=(h+d)%r.length,p=r[g];for(;p.disabled&&g!==h;)g=(g+d)%r.length,p=r[g];if(p.disabled)return;a.value=[r[g].id]}else{const v=r.find(h=>!h.disabled);v&&(a.value=[v.id])}}const f={register:o,unregister:s,selected:a,select:u,disabled:oe(e,"disabled"),prev:()=>c(r.length-1),next:()=>c(1),isSelected:d=>a.value.includes(d),selectedClass:E(()=>e.selectedClass),items:E(()=>r),getItemIndex:d=>NK(r,d)};return Lt(t,f),f}function NK(e,t){const n=iF(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function iF(e,t){const n=[];return t.forEach(r=>{const a=e.find(o=>Ni(r,o.value)),i=e[r];(a==null?void 0:a.value)!=null?n.push(a.id):i!=null&&n.push(i.id)}),n}function BK(e,t){const n=[];return t.forEach(r=>{const a=e.findIndex(i=>i.id===r);if(~a){const i=e[a];n.push(i.value!=null?i.value:a)}}),n}const cT=Symbol.for("vuetify:v-btn-toggle"),zK=ne({...aF(),...Au()},"VBtnToggle"),FK=fe()({name:"VBtnToggle",props:zK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:a,prev:i,select:o,selected:s}=Hs(e,cT);return ge(()=>{const l=q1.filterProps(e);return I(q1,ve({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:a,prev:i,select:o,selected:s})]}})}),{next:a,prev:i,select:o}}}),HK=["x-small","small","default","large","x-large"],Fi=ne({size:{type:[String,Number],default:"default"}},"size");function mf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return YC(()=>{let n,r;return gm(HK,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:De(e.size),height:De(e.size)}),{sizeClasses:n,sizeStyles:r}})}const GK=ne({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Ye,...Me(),...Fi(),...nt({tag:"i"}),...gt()},"VIcon"),wt=fe()({name:"VIcon",props:GK(),setup(e,t){let{attrs:n,slots:r}=t;const a=ye(),{themeClasses:i}=Ct(e),{iconData:o}=QZ(E(()=>a.value||e.icon)),{sizeClasses:s}=mf(e),{textColorClasses:l,textColorStyles:u}=Kn(oe(e,"color"));return ge(()=>{var d,v;const c=(d=r.default)==null?void 0:d.call(r);c&&(a.value=(v=gz(c).filter(h=>h.type===so&&h.children&&typeof h.children=="string")[0])==null?void 0:v.children);const f=!!(n.onClick||n.onClickOnce);return I(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",i.value,s.value,l.value,{"v-icon--clickable":f,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[s.value?void 0:{fontSize:De(e.size),height:De(e.size),width:De(e.size)},u.value,e.style],role:f?"button":void 0,"aria-hidden":!f,tabindex:f?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function Ky(e,t){const n=ye(),r=Te(!1);if(GC){const a=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);Cn(()=>{a.disconnect()}),Ce(n,(i,o)=>{o&&(a.unobserve(o),r.value=!1),i&&a.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const $K=ne({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Me(),...Fi(),...nt({tag:"div"}),...gt()},"VProgressCircular"),Qc=fe()({name:"VProgressCircular",props:$K(),setup(e,t){let{slots:n}=t;const r=20,a=2*Math.PI*r,i=ye(),{themeClasses:o}=Ct(e),{sizeClasses:s,sizeStyles:l}=mf(e),{textColorClasses:u,textColorStyles:c}=Kn(oe(e,"color")),{textColorClasses:f,textColorStyles:d}=Kn(oe(e,"bgColor")),{intersectionRef:v,isIntersecting:h}=Ky(),{resizeRef:g,contentRect:p}=ti(),m=E(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),y=E(()=>Number(e.width)),_=E(()=>l.value?Number(e.size):p.value?p.value.width:Math.max(y.value,32)),b=E(()=>r/(1-y.value/_.value)*2),x=E(()=>y.value/_.value*b.value),S=E(()=>De((100-m.value)/100*a));return un(()=>{v.value=i.value,g.value=i.value}),ge(()=>I(e.tag,{ref:i,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":h.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},o.value,s.value,u.value,e.class],style:[l.value,c.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:m.value},{default:()=>[I("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${b.value} ${b.value}`},[I("circle",{class:["v-progress-circular__underlay",f.value],style:d.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":a,"stroke-dashoffset":0},null),I("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":x.value,"stroke-dasharray":a,"stroke-dashoffset":S.value},null)]),n.default&&I("div",{class:"v-progress-circular__content"},[n.default({value:m.value})])]})),{}}}),bk={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Do=ne({location:String},"location");function Pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Tn();return{locationStyles:E(()=>{if(!e.location)return{};const{side:i,align:o}=H1(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function s(u){return n?n(u):0}const l={};return i!=="center"&&(t?l[bk[i]]=`calc(100% - ${s(i)}px)`:l[i]=0),o!=="center"?t?l[bk[o]]=`calc(100% - ${s(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const WK=ne({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Me(),...Do({location:"top"}),...Yt(),...nt(),...gt()},"VProgressLinear"),qy=fe()({name:"VProgressLinear",props:WK(),emits:{"update:modelValue":e=>!0},setup(e,t){var D;let{slots:n}=t;const r=Ve(e,"modelValue"),{isRtl:a,rtlClasses:i}=Tn(),{themeClasses:o}=Ct(e),{locationStyles:s}=Pu(e),{textColorClasses:l,textColorStyles:u}=Kn(e,"color"),{backgroundColorClasses:c,backgroundColorStyles:f}=Et(E(()=>e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:v}=Et(E(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:h,backgroundColorStyles:g}=Et(e,"color"),{roundedClasses:p}=Qt(e),{intersectionRef:m,isIntersecting:y}=Ky(),_=E(()=>parseFloat(e.max)),b=E(()=>parseFloat(e.height)),x=E(()=>sn(parseFloat(e.bufferValue)/_.value*100,0,100)),S=E(()=>sn(parseFloat(r.value)/_.value*100,0,100)),T=E(()=>a.value!==e.reverse),C=E(()=>e.indeterminate?"fade-transition":"slide-x-transition"),w=yt&&((D=window.matchMedia)==null?void 0:D.call(window,"(forced-colors: active)").matches);function A(P){if(!m.value)return;const{left:k,right:L,width:V}=m.value.getBoundingClientRect(),N=T.value?V-P.clientX+(L-V):P.clientX-k;r.value=Math.round(N/V*_.value)}return ge(()=>I(e.tag,{ref:m,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&y.value,"v-progress-linear--reverse":T.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},p.value,o.value,i.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?De(b.value):0,"--v-progress-linear-height":De(b.value),...e.absolute?s.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:S.value,onClick:e.clickable&&A},{default:()=>[e.stream&&I("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[T.value?"left":"right"]:De(-b.value),borderTop:`${De(b.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${De(b.value/4)})`,width:De(100-x.value,"%"),"--v-progress-linear-stream-to":De(b.value*(T.value?1:-1))}},null),I("div",{class:["v-progress-linear__background",w?void 0:c.value],style:[f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),I("div",{class:["v-progress-linear__buffer",w?void 0:d.value],style:[v.value,{opacity:parseFloat(e.bufferOpacity),width:De(x.value,"%")}]},null),I(xs,{name:C.value},{default:()=>[e.indeterminate?I("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(P=>I("div",{key:P,class:["v-progress-linear__indeterminate",P,w?void 0:h.value],style:g.value},null))]):I("div",{class:["v-progress-linear__determinate",w?void 0:h.value],style:[g.value,{width:De(S.value,"%")}]},null)]}),n.default&&I("div",{class:"v-progress-linear__content"},[n.default({value:S.value,buffer:x.value})])]})),{}}}),Jy=ne({loading:[Boolean,String]},"loader");function ph(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{loaderClasses:E(()=>({[`${t}--loading`]:e.loading}))}}function mh(e,t){var r;let{slots:n}=t;return I("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||I(qy,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const UK=["static","relative","fixed","absolute","sticky"],yf=ne({position:{type:String,validator:e=>UK.includes(e)}},"position");function _f(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();return{positionClasses:E(()=>e.position?`${t}--${e.position}`:void 0)}}function YK(){const e=Jt("useRoute");return E(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function oF(){var e,t;return(t=(e=Jt("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function yh(e,t){var f,d;const n=p8("RouterLink"),r=E(()=>!!(e.href||e.to)),a=E(()=>(r==null?void 0:r.value)||WP(t,"click")||WP(e,"click"));if(typeof n=="string"||!("useLink"in n)){const v=oe(e,"href");return{isLink:r,isClickable:a,href:v,linkProps:yn({href:v})}}const i=E(()=>({...e,to:oe(()=>e.to||"")})),o=n.useLink(i.value),s=E(()=>e.to?o:void 0),l=YK(),u=E(()=>{var v,h,g;return s.value?e.exact?l.value?((g=s.value.isExactActive)==null?void 0:g.value)&&Ni(s.value.route.value.query,l.value.query):((h=s.value.isExactActive)==null?void 0:h.value)??!1:((v=s.value.isActive)==null?void 0:v.value)??!1:!1}),c=E(()=>{var v;return e.to?(v=s.value)==null?void 0:v.route.value.href:e.href});return{isLink:r,isClickable:a,isActive:u,route:(f=s.value)==null?void 0:f.route,navigate:(d=s.value)==null?void 0:d.navigate,href:c,linkProps:yn({href:c,"aria-current":E(()=>u.value?"page":void 0)})}}const _h=ne({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let D_=!1;function XK(e,t){let n=!1,r,a;yt&&(ht(()=>{window.addEventListener("popstate",i),r=e==null?void 0:e.beforeEach((o,s,l)=>{D_?n?t(l):l():setTimeout(()=>n?t(l):l()),D_=!0}),a=e==null?void 0:e.afterEach(()=>{D_=!1})}),er(()=>{window.removeEventListener("popstate",i),r==null||r(),a==null||a()}));function i(o){var s;(s=o.state)!=null&&s.replaced||(n=!0,setTimeout(()=>n=!1))}}function jK(e,t){Ce(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&ht(()=>{t(!0)})},{immediate:!0})}const J1=Symbol("rippleStop"),ZK=80;function Sk(e,t){e.style.transform=t,e.style.webkitTransform=t}function Q1(e){return e.constructor.name==="TouchEvent"}function sF(e){return e.constructor.name==="KeyboardEvent"}const KK=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,a=0;if(!sF(e)){const d=t.getBoundingClientRect(),v=Q1(e)?e.touches[e.touches.length-1]:e;r=v.clientX-d.left,a=v.clientY-d.top}let i=0,o=.3;(f=t._ripple)!=null&&f.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(a-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const s=`${(t.clientWidth-i*2)/2}px`,l=`${(t.clientHeight-i*2)/2}px`,u=n.center?s:`${r-i}px`,c=n.center?l:`${a-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:s,centerY:l}},Sm={show(e,t){var v;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((v=t==null?void 0:t._ripple)!=null&&v.enabled))return;const r=document.createElement("span"),a=document.createElement("span");r.appendChild(a),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:s,y:l,centerX:u,centerY:c}=KK(e,t,n),f=`${i*2}px`;a.className="v-ripple__animation",a.style.width=f,a.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),a.classList.add("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--visible"),Sk(a,`translate(${s}, ${l}) scale3d(${o},${o},${o})`),a.dataset.activated=String(performance.now()),setTimeout(()=>{a.classList.remove("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--in"),Sk(a,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),a=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var s;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((s=n.parentNode)==null?void 0:s.parentNode)===e&&e.removeChild(n.parentNode)},300)},a)}};function lF(e){return typeof e>"u"||!!e}function Cv(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[J1])){if(e[J1]=!0,Q1(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||sF(e),n._ripple.class&&(t.class=n._ripple.class),Q1(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Sm.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},ZK)}else Sm.show(e,n,t)}}function xk(e){e[J1]=!0}function Zr(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Zr(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Sm.hide(t)}}function uF(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Tv=!1;function cF(e){!Tv&&(e.keyCode===zP.enter||e.keyCode===zP.space)&&(Tv=!0,Cv(e))}function fF(e){Tv=!1,Zr(e)}function dF(e){Tv&&(Tv=!1,Zr(e))}function vF(e,t,n){const{value:r,modifiers:a}=t,i=lF(r);if(i||Sm.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=a.center,e._ripple.circle=a.circle,$C(r)&&r.class&&(e._ripple.class=r.class),i&&!n){if(a.stop){e.addEventListener("touchstart",xk,{passive:!0}),e.addEventListener("mousedown",xk);return}e.addEventListener("touchstart",Cv,{passive:!0}),e.addEventListener("touchend",Zr,{passive:!0}),e.addEventListener("touchmove",uF,{passive:!0}),e.addEventListener("touchcancel",Zr),e.addEventListener("mousedown",Cv),e.addEventListener("mouseup",Zr),e.addEventListener("mouseleave",Zr),e.addEventListener("keydown",cF),e.addEventListener("keyup",fF),e.addEventListener("blur",dF),e.addEventListener("dragstart",Zr,{passive:!0})}else!i&&n&&hF(e)}function hF(e){e.removeEventListener("mousedown",Cv),e.removeEventListener("touchstart",Cv),e.removeEventListener("touchend",Zr),e.removeEventListener("touchmove",uF),e.removeEventListener("touchcancel",Zr),e.removeEventListener("mouseup",Zr),e.removeEventListener("mouseleave",Zr),e.removeEventListener("keydown",cF),e.removeEventListener("keyup",fF),e.removeEventListener("dragstart",Zr),e.removeEventListener("blur",dF)}function qK(e,t){vF(e,t,!1)}function JK(e){delete e._ripple,hF(e)}function QK(e,t){if(t.value===t.oldValue)return;const n=lF(t.oldValue);vF(e,t,n)}const Po={mounted:qK,unmounted:JK,updated:QK},Qy=ne({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:cT},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Ye,appendIcon:Ye,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Ur(),...Me(),...Nn(),...gn(),...An(),...Iu(),...Jy(),...Do(),...yf(),...Yt(),..._h(),...Fi(),...nt({tag:"button"}),...gt(),...La({variant:"elevated"})},"VBtn"),xt=fe()({name:"VBtn",props:Qy(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=Ct(e),{borderClasses:i}=oa(e),{densityClasses:o}=dr(e),{dimensionStyles:s}=pn(e),{elevationClasses:l}=Un(e),{loaderClasses:u}=ph(e),{locationStyles:c}=Pu(e),{positionClasses:f}=_f(e),{roundedClasses:d}=Qt(e),{sizeClasses:v,sizeStyles:h}=mf(e),g=Du(e,e.symbol,!1),p=yh(e,n),m=E(()=>{var D;return e.active!==void 0?e.active:p.isLink.value?(D=p.isActive)==null?void 0:D.value:g==null?void 0:g.isSelected.value}),y=E(()=>m.value?e.activeColor??e.color:e.color),_=E(()=>{var P,k;return{color:(g==null?void 0:g.isSelected.value)&&(!p.isLink.value||((P=p.isActive)==null?void 0:P.value))||!g||((k=p.isActive)==null?void 0:k.value)?y.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:b,colorStyles:x,variantClasses:S}=Tu(_),T=E(()=>(g==null?void 0:g.disabled.value)||e.disabled),C=E(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),w=E(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function A(D){var P;T.value||p.isLink.value&&(D.metaKey||D.ctrlKey||D.shiftKey||D.button!==0||n.target==="_blank")||((P=p.navigate)==null||P.call(p,D),g==null||g.toggle())}return jK(p,g==null?void 0:g.select),ge(()=>{const D=p.isLink.value?"a":e.tag,P=!!(e.prependIcon||r.prepend),k=!!(e.appendIcon||r.append),L=!!(e.icon&&e.icon!==!0);return Zt(I(D,ve({type:D==="a"?void 0:"button",class:["v-btn",g==null?void 0:g.selectedClass.value,{"v-btn--active":m.value,"v-btn--block":e.block,"v-btn--disabled":T.value,"v-btn--elevated":C.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},a.value,i.value,b.value,o.value,l.value,u.value,f.value,d.value,v.value,S.value,e.class],style:[x.value,s.value,c.value,h.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:T.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:A,value:w.value},p.linkProps),{default:()=>{var V;return[Fs(!0,"v-btn"),!e.icon&&P&&I("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?I(lt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):I(wt,{key:"prepend-icon",icon:e.prependIcon},null)]),I("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&L?I(wt,{key:"content-icon",icon:e.icon},null):I(lt,{key:"content-defaults",disabled:!L,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var N;return[((N=r.default)==null?void 0:N.call(r))??e.text]}})]),!e.icon&&k&&I("span",{key:"append",class:"v-btn__append"},[r.append?I(lt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):I(wt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&I("span",{key:"loader",class:"v-btn__loader"},[((V=r.loader)==null?void 0:V.call(r))??I(Qc,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[Po,!T.value&&e.ripple,"",{center:!!e.icon}]])}),{group:g}}}),eq=ne({...Qy({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),tq=fe()({name:"VAppBarNavIcon",props:eq(),setup(e,t){let{slots:n}=t;return ge(()=>I(xt,ve(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),nq=fe()({name:"VAppBarTitle",props:qz(),setup(e,t){let{slots:n}=t;return ge(()=>I(iT,ve(e,{class:"v-app-bar-title"}),n)),{}}}),gF=zi("v-alert-title"),rq=["success","info","warning","error"],aq=ne({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:Ye,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>rq.includes(e)},...Me(),...Nn(),...gn(),...An(),...Do(),...yf(),...Yt(),...nt(),...gt(),...La({variant:"flat"})},"VAlert"),iq=fe()({name:"VAlert",props:aq(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Ve(e,"modelValue"),i=E(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=E(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:s}=Ct(e),{colorClasses:l,colorStyles:u,variantClasses:c}=Tu(o),{densityClasses:f}=dr(e),{dimensionStyles:d}=pn(e),{elevationClasses:v}=Un(e),{locationStyles:h}=Pu(e),{positionClasses:g}=_f(e),{roundedClasses:p}=Qt(e),{textColorClasses:m,textColorStyles:y}=Kn(oe(e,"borderColor")),{t:_}=nn(),b=E(()=>({"aria-label":_(e.closeLabel),onClick(x){a.value=!1,n("click:close",x)}}));return()=>{const x=!!(r.prepend||i.value),S=!!(r.title||e.title),T=!!(r.close||e.closable);return a.value&&I(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},s.value,l.value,f.value,v.value,g.value,p.value,c.value,e.class],style:[u.value,d.value,h.value,e.style],role:"alert"},{default:()=>{var C,w;return[Fs(!1,"v-alert"),e.border&&I("div",{key:"border",class:["v-alert__border",m.value],style:y.value},null),x&&I("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?I(lt,{key:"prepend-defaults",disabled:!i.value,defaults:{VIcon:{density:e.density,icon:i.value,size:e.prominent?44:28}}},r.prepend):I(wt,{key:"prepend-icon",density:e.density,icon:i.value,size:e.prominent?44:28},null)]),I("div",{class:"v-alert__content"},[S&&I(gF,{key:"title"},{default:()=>{var A;return[((A=r.title)==null?void 0:A.call(r))??e.title]}}),((C=r.text)==null?void 0:C.call(r))??e.text,(w=r.default)==null?void 0:w.call(r)]),r.append&&I("div",{key:"append",class:"v-alert__append"},[r.append()]),T&&I("div",{key:"close",class:"v-alert__close"},[r.close?I(lt,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var A;return[(A=r.close)==null?void 0:A.call(r,{props:b.value})]}}):I(xt,ve({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},b.value),null)])]}})}}}),oq=ne({start:Boolean,end:Boolean,icon:Ye,image:String,text:String,...Ur(),...Me(),...Nn(),...Yt(),...Fi(),...nt(),...gt(),...La({variant:"flat"})},"VAvatar"),Pa=fe()({name:"VAvatar",props:oq(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{borderClasses:a}=oa(e),{colorClasses:i,colorStyles:o,variantClasses:s}=Tu(e),{densityClasses:l}=dr(e),{roundedClasses:u}=Qt(e),{sizeClasses:c,sizeStyles:f}=mf(e);return ge(()=>I(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,a.value,i.value,l.value,u.value,c.value,s.value,e.class],style:[o.value,f.value,e.style]},{default:()=>[n.default?I(lt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?I(po,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?I(wt,{key:"icon",icon:e.icon},null):e.text,Fs(!1,"v-avatar")]})),{}}}),sq=ne({text:String,onClick:$n(),...Me(),...gt()},"VLabel"),bf=fe()({name:"VLabel",props:sq(),setup(e,t){let{slots:n}=t;return ge(()=>{var r;return I("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(r=n.default)==null?void 0:r.call(n)])}),{}}}),pF=Symbol.for("vuetify:selection-control-group"),fT=ne({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Ye,trueIcon:Ye,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Ni},...Me(),...Nn(),...gt()},"SelectionControlGroup"),lq=ne({...fT({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),mF=fe()({name:"VSelectionControlGroup",props:lq(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),a=Wn(),i=E(()=>e.id||`v-selection-control-group-${a}`),o=E(()=>e.name||i.value),s=new Set;return Lt(pF,{modelValue:r,forceUpdate:()=>{s.forEach(l=>l())},onForceUpdate:l=>{s.add(l),er(()=>{s.delete(l)})}}),Kt({[e.defaultsTarget]:{color:oe(e,"color"),disabled:oe(e,"disabled"),density:oe(e,"density"),error:oe(e,"error"),inline:oe(e,"inline"),modelValue:r,multiple:E(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:o,falseIcon:oe(e,"falseIcon"),trueIcon:oe(e,"trueIcon"),readonly:oe(e,"readonly"),ripple:oe(e,"ripple"),type:oe(e,"type"),valueComparator:oe(e,"valueComparator")}}),ge(()=>{var l;return I("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}}),e0=ne({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...Me(),...fT()},"VSelectionControl");function uq(e){const t=rt(pF,void 0),{densityClasses:n}=dr(e),r=Ve(e,"modelValue"),a=E(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),i=E(()=>e.falseValue!==void 0?e.falseValue:!1),o=E(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),s=E({get(){const v=t?t.modelValue.value:r.value;return o.value?jt(v).some(h=>e.valueComparator(h,a.value)):e.valueComparator(v,a.value)},set(v){if(e.readonly)return;const h=v?a.value:i.value;let g=h;o.value&&(g=v?[...jt(r.value),h]:jt(r.value).filter(p=>!e.valueComparator(p,a.value))),t?t.modelValue.value=g:r.value=g}}),{textColorClasses:l,textColorStyles:u}=Kn(E(()=>{if(!(e.error||e.disabled))return s.value?e.color:e.baseColor})),{backgroundColorClasses:c,backgroundColorStyles:f}=Et(E(()=>s.value&&!e.error&&!e.disabled?e.color:e.baseColor)),d=E(()=>s.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:a,falseValue:i,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,icon:d}}const Cs=fe()({name:"VSelectionControl",directives:{Ripple:Po},inheritAttrs:!1,props:e0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:a,densityClasses:i,icon:o,model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,trueValue:d}=uq(e),v=Wn(),h=Te(!1),g=Te(!1),p=ye(),m=E(()=>e.id||`input-${v}`),y=E(()=>!e.disabled&&!e.readonly);a==null||a.onForceUpdate(()=>{p.value&&(p.value.checked=s.value)});function _(T){y.value&&(h.value=!0,Kc(T.target,":focus-visible")!==!1&&(g.value=!0))}function b(){h.value=!1,g.value=!1}function x(T){T.stopPropagation()}function S(T){if(!y.value){p.value&&(p.value.checked=s.value);return}e.readonly&&a&&ht(()=>a.forceUpdate()),s.value=T.target.checked}return ge(()=>{var D,P;const T=r.label?r.label({label:e.label,props:{for:m.value}}):e.label,[C,w]=zs(n),A=I("input",ve({ref:p,checked:s.value,disabled:!!e.disabled,id:m.value,onBlur:b,onFocus:_,onInput:S,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:d.value,name:e.name,"aria-checked":e.type==="checkbox"?s.value:void 0},w),null);return I("div",ve({class:["v-selection-control",{"v-selection-control--dirty":s.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":h.value,"v-selection-control--focus-visible":g.value,"v-selection-control--inline":e.inline},i.value,e.class]},C,{style:e.style}),[I("div",{class:["v-selection-control__wrapper",l.value],style:u.value},[(D=r.default)==null?void 0:D.call(r,{backgroundColorClasses:c,backgroundColorStyles:f}),Zt(I("div",{class:["v-selection-control__input"]},[((P=r.input)==null?void 0:P.call(r,{model:s,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:f,inputNode:A,icon:o.value,props:{onFocus:_,onBlur:b,id:m.value}}))??I(ke,null,[o.value&&I(wt,{key:"icon",icon:o.value},null),A])]),[[na("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),T&&I(bf,{for:m.value,onClick:x},{default:()=>[T]})])}),{isFocused:h,input:p}}}),yF=ne({indeterminate:Boolean,indeterminateIcon:{type:Ye,default:"$checkboxIndeterminate"},...e0({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),mo=fe()({name:"VCheckboxBtn",props:yF(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"indeterminate"),a=Ve(e,"modelValue");function i(l){r.value&&(r.value=!1)}const o=E(()=>r.value?e.indeterminateIcon:e.falseIcon),s=E(()=>r.value?e.indeterminateIcon:e.trueIcon);return ge(()=>{const l=vn(Cs.filterProps(e),["modelValue"]);return I(Cs,ve(l,{modelValue:a.value,"onUpdate:modelValue":[u=>a.value=u,i],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:s.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}});function _F(e){const{t}=nn();function n(r){let{name:a}=r;const i={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[a],o=e[`onClick:${a}`],s=o&&i?t(`$vuetify.input.${i}`,e.label??""):void 0;return I(wt,{icon:e[`${a}Icon`],"aria-label":s,onClick:o},null)}return{InputIcon:n}}const cq=ne({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Me(),...ai({transition:{component:sT,leaveAbsolute:!0,group:!0}})},"VMessages"),bF=fe()({name:"VMessages",props:cq(),setup(e,t){let{slots:n}=t;const r=E(()=>jt(e.messages)),{textColorClasses:a,textColorStyles:i}=Kn(E(()=>e.color));return ge(()=>I(lr,{transition:e.transition,tag:"div",class:["v-messages",a.value,e.class],style:[i.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&r.value.map((o,s)=>I("div",{class:"v-messages__message",key:`${s}-${r.value}`},[n.message?n.message({message:o}):o]))]})),{}}}),bh=ne({focused:Boolean,"onUpdate:focused":$n()},"focus");function ko(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi();const n=Ve(e,"focused"),r=E(()=>({[`${t}--focused`]:n.value}));function a(){n.value=!0}function i(){n.value=!1}return{focusClasses:r,isFocused:n,focus:a,blur:i}}const SF=Symbol.for("vuetify:form"),fq=ne({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function dq(e){const t=Ve(e,"modelValue"),n=E(()=>e.disabled),r=E(()=>e.readonly),a=Te(!1),i=ye([]),o=ye([]);async function s(){const c=[];let f=!0;o.value=[],a.value=!0;for(const d of i.value){const v=await d.validate();if(v.length>0&&(f=!1,c.push({id:d.id,errorMessages:v})),!f&&e.fastFail)break}return o.value=c,a.value=!1,{valid:f,errors:o.value}}function l(){i.value.forEach(c=>c.reset())}function u(){i.value.forEach(c=>c.resetValidation())}return Ce(i,()=>{let c=0,f=0;const d=[];for(const v of i.value)v.isValid===!1?(f++,d.push({id:v.id,errorMessages:v.errorMessages})):v.isValid===!0&&c++;o.value=d,t.value=f>0?!1:c===i.value.length?!0:null},{deep:!0,flush:"post"}),Lt(SF,{register:c=>{let{id:f,vm:d,validate:v,reset:h,resetValidation:g}=c;i.value.some(p=>p.id===f),i.value.push({id:f,validate:v,reset:h,resetValidation:g,vm:Py(d),isValid:null,errorMessages:[]})},unregister:c=>{i.value=i.value.filter(f=>f.id!==c)},update:(c,f,d)=>{const v=i.value.find(h=>h.id===c);v&&(v.isValid=f,v.errorMessages=d)},isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:i,validateOn:oe(e,"validateOn")}),{errors:o,isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:i,validate:s,reset:l,resetValidation:u}}function t0(){return rt(SF,null)}const xF=ne({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...bh()},"validation");function wF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bi(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wn();const r=Ve(e,"modelValue"),a=E(()=>e.validationValue===void 0?r.value:e.validationValue),i=t0(),o=ye([]),s=Te(!0),l=E(()=>!!(jt(r.value===""?null:r.value).length||jt(a.value===""?null:a.value).length)),u=E(()=>!!(e.disabled??(i==null?void 0:i.isDisabled.value))),c=E(()=>!!(e.readonly??(i==null?void 0:i.isReadonly.value))),f=E(()=>{var x;return(x=e.errorMessages)!=null&&x.length?jt(e.errorMessages).concat(o.value).slice(0,Math.max(0,+e.maxErrors)):o.value}),d=E(()=>{let x=(e.validateOn??(i==null?void 0:i.validateOn.value))||"input";x==="lazy"&&(x="input lazy"),x==="eager"&&(x="input eager");const S=new Set((x==null?void 0:x.split(" "))??[]);return{input:S.has("input"),blur:S.has("blur")||S.has("input")||S.has("invalid-input"),invalidInput:S.has("invalid-input"),lazy:S.has("lazy"),eager:S.has("eager")}}),v=E(()=>{var x;return e.error||(x=e.errorMessages)!=null&&x.length?!1:e.rules.length?s.value?o.value.length||d.value.lazy?null:!0:!o.value.length:!0}),h=Te(!1),g=E(()=>({[`${t}--error`]:v.value===!1,[`${t}--dirty`]:l.value,[`${t}--disabled`]:u.value,[`${t}--readonly`]:c.value})),p=Jt("validation"),m=E(()=>e.name??Be(n));Ly(()=>{i==null||i.register({id:m.value,vm:p,validate:b,reset:y,resetValidation:_})}),Cn(()=>{i==null||i.unregister(m.value)}),wn(async()=>{d.value.lazy||await b(!d.value.eager),i==null||i.update(m.value,v.value,f.value)}),Cr(()=>d.value.input||d.value.invalidInput&&v.value===!1,()=>{Ce(a,()=>{if(a.value!=null)b();else if(e.focused){const x=Ce(()=>e.focused,S=>{S||b(),x()})}})}),Cr(()=>d.value.blur,()=>{Ce(()=>e.focused,x=>{x||b()})}),Ce([v,f],()=>{i==null||i.update(m.value,v.value,f.value)});async function y(){r.value=null,await ht(),await _()}async function _(){s.value=!0,d.value.lazy?o.value=[]:await b(!d.value.eager)}async function b(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const S=[];h.value=!0;for(const T of e.rules){if(S.length>=+(e.maxErrors??1))break;const w=await(typeof T=="function"?T:()=>T)(a.value);if(w!==!0){if(w!==!1&&typeof w!="string"){console.warn(`${w} is not a valid value. Rule functions must return boolean true or a string.`);continue}S.push(w||"")}}return o.value=S,h.value=!1,s.value=x,o.value}return{errorMessages:f,isDirty:l,isDisabled:u,isReadonly:c,isPristine:s,isValid:v,isValidating:h,reset:y,resetValidation:_,validate:b,validationClasses:g}}const Mo=ne({id:String,appendIcon:Ye,centerAffix:{type:Boolean,default:!0},prependIcon:Ye,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":$n(),"onClick:append":$n(),...Me(),...Nn(),...Hy(gn(),["maxWidth","minWidth","width"]),...gt(),...xF()},"VInput"),qn=fe()({name:"VInput",props:{...Mo()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const{densityClasses:i}=dr(e),{dimensionStyles:o}=pn(e),{themeClasses:s}=Ct(e),{rtlClasses:l}=Tn(),{InputIcon:u}=_F(e),c=Wn(),f=E(()=>e.id||`input-${c}`),d=E(()=>`${f.value}-messages`),{errorMessages:v,isDirty:h,isDisabled:g,isReadonly:p,isPristine:m,isValid:y,isValidating:_,reset:b,resetValidation:x,validate:S,validationClasses:T}=wF(e,"v-input",f),C=E(()=>({id:f,messagesId:d,isDirty:h,isDisabled:g,isReadonly:p,isPristine:m,isValid:y,isValidating:_,reset:b,resetValidation:x,validate:S})),w=E(()=>{var A;return(A=e.errorMessages)!=null&&A.length||!m.value&&v.value.length?v.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return ge(()=>{var L,V,N,$;const A=!!(r.prepend||e.prependIcon),D=!!(r.append||e.appendIcon),P=w.value.length>0,k=!e.hideDetails||e.hideDetails==="auto"&&(P||!!r.details);return I("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},i.value,s.value,l.value,T.value,e.class],style:[o.value,e.style]},[A&&I("div",{key:"prepend",class:"v-input__prepend"},[(L=r.prepend)==null?void 0:L.call(r,C.value),e.prependIcon&&I(u,{key:"prepend-icon",name:"prepend"},null)]),r.default&&I("div",{class:"v-input__control"},[(V=r.default)==null?void 0:V.call(r,C.value)]),D&&I("div",{key:"append",class:"v-input__append"},[e.appendIcon&&I(u,{key:"append-icon",name:"append"},null),(N=r.append)==null?void 0:N.call(r,C.value)]),k&&I("div",{class:"v-input__details"},[I(bF,{id:d.value,active:P,messages:w.value},{message:r.message}),($=r.details)==null?void 0:$.call(r,C.value)])])}),{reset:b,resetValidation:x,validate:S,isValid:y,errorMessages:v}}}),vq=ne({...Mo(),...vn(yF(),["inline"])},"VCheckbox"),hq=fe()({name:"VCheckbox",inheritAttrs:!1,props:vq(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=Ve(e,"modelValue"),{isFocused:i,focus:o,blur:s}=ko(e),l=Wn(),u=E(()=>e.id||`checkbox-${l}`);return ge(()=>{const[c,f]=zs(n),d=qn.filterProps(e),v=mo.filterProps(e);return I(qn,ve({class:["v-checkbox",e.class]},c,d,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,id:u.value,focused:i.value,style:e.style}),{...r,default:h=>{let{id:g,messagesId:p,isDisabled:m,isReadonly:y,isValid:_}=h;return I(mo,ve(v,{id:g.value,"aria-describedby":p.value,disabled:m.value,readonly:y.value},f,{error:_.value===!1,modelValue:a.value,"onUpdate:modelValue":b=>a.value=b,onFocus:o,onBlur:s}),r)}})}),{}}});function gq(e){let{selectedElement:t,containerElement:n,isRtl:r,isHorizontal:a}=e;const i=Av(a,n),o=CF(a,r,n),s=Av(a,t),l=TF(a,t),u=s*.4;return o>l?l-u:o+itypeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Me(),...Su({mobile:null}),...nt(),...Au({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Iv=fe()({name:"VSlideGroup",props:dT(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Tn(),{displayClasses:a,mobile:i}=Wr(e),o=Hs(e,e.symbol),s=Te(!1),l=Te(0),u=Te(0),c=Te(0),f=E(()=>e.direction==="horizontal"),{resizeRef:d,contentRect:v}=ti(),{resizeRef:h,contentRect:g}=ti(),p=YZ(),m=E(()=>({container:d.el,duration:200,easing:"easeOutQuart"})),y=E(()=>o.selected.value.length?o.items.value.findIndex(U=>U.id===o.selected.value[0]):-1),_=E(()=>o.selected.value.length?o.items.value.findIndex(U=>U.id===o.selected.value[o.selected.value.length-1]):-1);if(yt){let U=-1;Ce(()=>[o.selected.value,v.value,g.value,f.value],()=>{cancelAnimationFrame(U),U=requestAnimationFrame(()=>{if(v.value&&g.value){const Y=f.value?"width":"height";u.value=v.value[Y],c.value=g.value[Y],s.value=u.value+1=0&&h.el){const Y=h.el.children[_.value];x(Y,e.centerActive)}})})}const b=Te(!1);function x(U,Y){let J=0;Y?J=pq({containerElement:d.el,isHorizontal:f.value,selectedElement:U}):J=gq({containerElement:d.el,isHorizontal:f.value,isRtl:r.value,selectedElement:U}),S(J)}function S(U){if(!yt||!d.el)return;const Y=Av(f.value,d.el),J=CF(f.value,r.value,d.el);if(!(wk(f.value,d.el)<=Y||Math.abs(U-J)<16)){if(f.value&&r.value&&d.el){const{scrollWidth:le,offsetWidth:be}=d.el;U=le-be-U}f.value?p.horizontal(U,m.value):p(U,m.value)}}function T(U){const{scrollTop:Y,scrollLeft:J}=U.target;l.value=f.value?J:Y}function C(U){if(b.value=!0,!(!s.value||!h.el)){for(const Y of U.composedPath())for(const J of h.el.children)if(J===Y){x(J);return}}}function w(U){b.value=!1}let A=!1;function D(U){var Y;!A&&!b.value&&!(U.relatedTarget&&((Y=h.el)!=null&&Y.contains(U.relatedTarget)))&&L(),A=!1}function P(){A=!0}function k(U){if(!h.el)return;function Y(J){U.preventDefault(),L(J)}f.value?U.key==="ArrowRight"?Y(r.value?"prev":"next"):U.key==="ArrowLeft"&&Y(r.value?"next":"prev"):U.key==="ArrowDown"?Y("next"):U.key==="ArrowUp"&&Y("prev"),U.key==="Home"?Y("first"):U.key==="End"&&Y("last")}function L(U){var J,ue;if(!h.el)return;let Y;if(!U)Y=_v(h.el)[0];else if(U==="next"){if(Y=(J=h.el.querySelector(":focus"))==null?void 0:J.nextElementSibling,!Y)return L("first")}else if(U==="prev"){if(Y=(ue=h.el.querySelector(":focus"))==null?void 0:ue.previousElementSibling,!Y)return L("last")}else U==="first"?Y=h.el.firstElementChild:U==="last"&&(Y=h.el.lastElementChild);Y&&Y.focus({preventScroll:!0})}function V(U){const Y=f.value&&r.value?-1:1,J=(U==="prev"?-Y:Y)*u.value;let ue=l.value+J;if(f.value&&r.value&&d.el){const{scrollWidth:le,offsetWidth:be}=d.el;ue+=le-be}S(ue)}const N=E(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),$=E(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!i.value;case!0:return s.value||Math.abs(l.value)>0;case"mobile":return i.value||s.value||Math.abs(l.value)>0;default:return!i.value&&(s.value||Math.abs(l.value)>0)}}),z=E(()=>Math.abs(l.value)>1),H=E(()=>{if(!d.value)return!1;const U=wk(f.value,d.el),Y=mq(f.value,d.el);return U-Y-Math.abs(l.value)>1});return ge(()=>I(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!f.value,"v-slide-group--has-affixes":$.value,"v-slide-group--is-overflowing":s.value},a.value,e.class],style:e.style,tabindex:b.value||o.selected.value.length?-1:0,onFocus:D},{default:()=>{var U,Y,J;return[$.value&&I("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!z.value}],onMousedown:P,onClick:()=>z.value&&V("prev")},[((U=n.prev)==null?void 0:U.call(n,N.value))??I(wv,null,{default:()=>[I(wt,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),I("div",{key:"container",ref:d,class:"v-slide-group__container",onScroll:T},[I("div",{ref:h,class:"v-slide-group__content",onFocusin:C,onFocusout:w,onKeydown:k},[(Y=n.default)==null?void 0:Y.call(n,N.value)])]),$.value&&I("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!H.value}],onMousedown:P,onClick:()=>H.value&&V("next")},[((J=n.next)==null?void 0:J.call(n,N.value))??I(wv,null,{default:()=>[I(wt,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:V,scrollOffset:l,focus:L,hasPrev:z,hasNext:H}}}),IF=Symbol.for("vuetify:v-chip-group"),yq=ne({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Ni},...dT(),...Me(),...Au({selectedClass:"v-chip--selected"}),...nt(),...gt(),...La({variant:"tonal"})},"VChipGroup"),_q=fe()({name:"VChipGroup",props:yq(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{isSelected:a,select:i,next:o,prev:s,selected:l}=Hs(e,IF);return Kt({VChip:{color:oe(e,"color"),disabled:oe(e,"disabled"),filter:oe(e,"filter"),variant:oe(e,"variant")}}),ge(()=>{const u=Iv.filterProps(e);return I(Iv,ve(u,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n,{isSelected:a,select:i,next:o,prev:s,selected:l.value})]}})}),{}}}),bq=ne({activeClass:String,appendAvatar:String,appendIcon:Ye,closable:Boolean,closeIcon:{type:Ye,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Ye,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:$n(),onClickOnce:$n(),...Ur(),...Me(),...Nn(),...An(),...Iu(),...Yt(),..._h(),...Fi(),...nt({tag:"span"}),...gt(),...La({variant:"tonal"})},"VChip"),Sf=fe()({name:"VChip",directives:{Ripple:Po},props:bq(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:i}=nn(),{borderClasses:o}=oa(e),{colorClasses:s,colorStyles:l,variantClasses:u}=Tu(e),{densityClasses:c}=dr(e),{elevationClasses:f}=Un(e),{roundedClasses:d}=Qt(e),{sizeClasses:v}=mf(e),{themeClasses:h}=Ct(e),g=Ve(e,"modelValue"),p=Du(e,IF,!1),m=yh(e,n),y=E(()=>e.link!==!1&&m.isLink.value),_=E(()=>!e.disabled&&e.link!==!1&&(!!p||e.link||m.isClickable.value)),b=E(()=>({"aria-label":i(e.closeLabel),onClick(T){T.preventDefault(),T.stopPropagation(),g.value=!1,r("click:close",T)}}));function x(T){var C;r("click",T),_.value&&((C=m.navigate)==null||C.call(m,T),p==null||p.toggle())}function S(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),x(T))}return()=>{const T=m.isLink.value?"a":e.tag,C=!!(e.appendIcon||e.appendAvatar),w=!!(C||a.append),A=!!(a.close||e.closable),D=!!(a.filter||e.filter)&&p,P=!!(e.prependIcon||e.prependAvatar),k=!!(P||a.prepend),L=!p||p.isSelected.value;return g.value&&Zt(I(T,ve({class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":_.value,"v-chip--filter":D,"v-chip--pill":e.pill},h.value,o.value,L?s.value:void 0,c.value,f.value,d.value,v.value,u.value,p==null?void 0:p.selectedClass.value,e.class],style:[L?l.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:_.value?0:void 0,onClick:x,onKeydown:_.value&&!y.value&&S},m.linkProps),{default:()=>{var V;return[Fs(_.value,"v-chip"),D&&I(lT,{key:"filter"},{default:()=>[Zt(I("div",{class:"v-chip__filter"},[a.filter?I(lt,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},a.filter):I(wt,{key:"filter-icon",icon:e.filterIcon},null)]),[[Ma,p.isSelected.value]])]}),k&&I("div",{key:"prepend",class:"v-chip__prepend"},[a.prepend?I(lt,{key:"prepend-defaults",disabled:!P,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},a.prepend):I(ke,null,[e.prependIcon&&I(wt,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&I(Pa,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),I("div",{class:"v-chip__content","data-no-activator":""},[((V=a.default)==null?void 0:V.call(a,{isSelected:p==null?void 0:p.isSelected.value,selectedClass:p==null?void 0:p.selectedClass.value,select:p==null?void 0:p.select,toggle:p==null?void 0:p.toggle,value:p==null?void 0:p.value.value,disabled:e.disabled}))??e.text]),w&&I("div",{key:"append",class:"v-chip__append"},[a.append?I(lt,{key:"append-defaults",disabled:!C,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},a.append):I(ke,null,[e.appendIcon&&I(wt,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&I(Pa,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),A&&I("button",ve({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},b.value),[a.close?I(lt,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},a.close):I(wt,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[na("ripple"),_.value&&e.ripple,null]])}}}),ex=Symbol.for("vuetify:list");function DF(){const e=rt(ex,{hasPrepend:Te(!1),updateHasPrepend:()=>null}),t={hasPrepend:Te(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return Lt(ex,t),e}function PF(){return rt(ex,null)}const vT=e=>{const t={activate:n=>{let{id:r,value:a,activated:i}=n;return r=Xe(r),e&&!a&&i.size===1&&i.has(r)||(a?i.add(r):i.delete(r)),i},in:(n,r,a)=>{let i=new Set;if(n!=null)for(const o of jt(n))i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:a});return i},out:n=>Array.from(n)};return t},kF=e=>{const t=vT(e);return{activate:r=>{let{activated:a,id:i,...o}=r;i=Xe(i);const s=a.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:s})},in:(r,a,i)=>{let o=new Set;if(r!=null){const s=jt(r);s.length&&(o=t.in(s.slice(0,1),a,i))}return o},out:(r,a,i)=>t.out(r,a,i)}},Sq=e=>{const t=vT(e);return{activate:r=>{let{id:a,activated:i,children:o,...s}=r;return a=Xe(a),o.has(a)?i:t.activate({id:a,activated:i,children:o,...s})},in:t.in,out:t.out}},xq=e=>{const t=kF(e);return{activate:r=>{let{id:a,activated:i,children:o,...s}=r;return a=Xe(a),o.has(a)?i:t.activate({id:a,activated:i,children:o,...s})},in:t.in,out:t.out}},wq={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){const i=new Set;i.add(t);let o=a.get(t);for(;o!=null;)i.add(o),o=a.get(o);return i}else return r.delete(t),r},select:()=>null},MF={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){let i=a.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=a.get(i);return r}else r.delete(t);return r},select:()=>null},Cq={open:MF.open,select:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(!n)return r;const i=[];let o=a.get(t);for(;o!=null;)i.push(o),o=a.get(o);return new Set(i)}},hT=e=>{const t={select:n=>{let{id:r,value:a,selected:i}=n;if(r=Xe(r),e&&!a){const o=Array.from(i.entries()).reduce((s,l)=>{let[u,c]=l;return c==="on"&&s.push(u),s},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,a?"on":"off"),i},in:(n,r,a)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:a});return i},out:n=>{const r=[];for(const[a,i]of n.entries())i==="on"&&r.push(a);return r}};return t},LF=e=>{const t=hT(e);return{select:r=>{let{selected:a,id:i,...o}=r;i=Xe(i);const s=a.has(i)?new Map([[i,a.get(i)]]):new Map;return t.select({...o,id:i,selected:s})},in:(r,a,i)=>{let o=new Map;return r!=null&&r.length&&(o=t.in(r.slice(0,1),a,i)),o},out:(r,a,i)=>t.out(r,a,i)}},Tq=e=>{const t=hT(e);return{select:r=>{let{id:a,selected:i,children:o,...s}=r;return a=Xe(a),o.has(a)?i:t.select({id:a,selected:i,children:o,...s})},in:t.in,out:t.out}},Aq=e=>{const t=LF(e);return{select:r=>{let{id:a,selected:i,children:o,...s}=r;return a=Xe(a),o.has(a)?i:t.select({id:a,selected:i,children:o,...s})},in:t.in,out:t.out}},Iq=e=>{const t={select:n=>{let{id:r,value:a,selected:i,children:o,parents:s}=n;r=Xe(r);const l=new Map(i),u=[r];for(;u.length;){const f=u.shift();i.set(Xe(f),a?"on":"off"),o.has(f)&&u.push(...o.get(f))}let c=Xe(s.get(r));for(;c;){const f=o.get(c),d=f.every(h=>i.get(Xe(h))==="on"),v=f.every(h=>!i.has(Xe(h))||i.get(Xe(h))==="off");i.set(c,d?"on":v?"off":"indeterminate"),c=Xe(s.get(c))}return e&&!a&&Array.from(i.entries()).reduce((d,v)=>{let[h,g]=v;return g==="on"&&d.push(h),d},[]).length===0?l:i},in:(n,r,a)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:new Map(i),children:r,parents:a});return i},out:(n,r)=>{const a=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&a.push(i);return a}};return t},Dv=Symbol.for("vuetify:nested"),EF={id:Te(),root:{register:()=>null,unregister:()=>null,parents:ye(new Map),children:ye(new Map),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:ye(!1),selectable:ye(!1),opened:ye(new Set),activated:ye(new Set),selected:ye(new Map),selectedValues:ye([]),getPath:()=>[]}},Dq=ne({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean},"nested"),Pq=e=>{let t=!1;const n=ye(new Map),r=ye(new Map),a=Ve(e,"opened",e.opened,h=>new Set(h),h=>[...h.values()]),i=E(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return Sq(e.mandatory);case"single-leaf":return xq(e.mandatory);case"independent":return vT(e.mandatory);case"single-independent":default:return kF(e.mandatory)}}),o=E(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return Aq(e.mandatory);case"leaf":return Tq(e.mandatory);case"independent":return hT(e.mandatory);case"single-independent":return LF(e.mandatory);case"classic":default:return Iq(e.mandatory)}}),s=E(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return Cq;case"single":return wq;case"multiple":default:return MF}}),l=Ve(e,"activated",e.activated,h=>i.value.in(h,n.value,r.value),h=>i.value.out(h,n.value,r.value)),u=Ve(e,"selected",e.selected,h=>o.value.in(h,n.value,r.value),h=>o.value.out(h,n.value,r.value));Cn(()=>{t=!0});function c(h){const g=[];let p=h;for(;p!=null;)g.unshift(p),p=r.value.get(p);return g}const f=Jt("nested"),d=new Set,v={id:Te(),root:{opened:a,activatable:oe(e,"activatable"),selectable:oe(e,"selectable"),activated:l,selected:u,selectedValues:E(()=>{const h=[];for(const[g,p]of u.value.entries())p==="on"&&h.push(g);return h}),register:(h,g,p)=>{if(d.has(h)){c(h).map(String).join(" -> "),c(g).concat(h).map(String).join(" -> ");return}else d.add(h);g&&h!==g&&r.value.set(h,g),p&&n.value.set(h,[]),g!=null&&n.value.set(g,[...n.value.get(g)||[],h])},unregister:h=>{if(t)return;d.delete(h),n.value.delete(h);const g=r.value.get(h);if(g){const p=n.value.get(g)??[];n.value.set(g,p.filter(m=>m!==h))}r.value.delete(h)},open:(h,g,p)=>{f.emit("click:open",{id:h,value:g,path:c(h),event:p});const m=s.value.open({id:h,value:g,opened:new Set(a.value),children:n.value,parents:r.value,event:p});m&&(a.value=m)},openOnSelect:(h,g,p)=>{const m=s.value.select({id:h,value:g,selected:new Map(u.value),opened:new Set(a.value),children:n.value,parents:r.value,event:p});m&&(a.value=m)},select:(h,g,p)=>{f.emit("click:select",{id:h,value:g,path:c(h),event:p});const m=o.value.select({id:h,value:g,selected:new Map(u.value),children:n.value,parents:r.value,event:p});m&&(u.value=m),v.root.openOnSelect(h,g,p)},activate:(h,g,p)=>{if(!e.activatable)return v.root.select(h,!0,p);f.emit("click:activate",{id:h,value:g,path:c(h),event:p});const m=i.value.activate({id:h,value:g,activated:new Set(l.value),children:n.value,parents:r.value,event:p});m&&(l.value=m)},children:n,parents:r,getPath:c}};return Lt(Dv,v),v.root},RF=(e,t)=>{const n=rt(Dv,EF),r=Symbol(Wn()),a=E(()=>e.value!==void 0?e.value:r),i={...n,id:a,open:(o,s)=>n.root.open(a.value,o,s),openOnSelect:(o,s)=>n.root.openOnSelect(a.value,o,s),isOpen:E(()=>n.root.opened.value.has(a.value)),parent:E(()=>n.root.parents.value.get(a.value)),activate:(o,s)=>n.root.activate(a.value,o,s),isActivated:E(()=>n.root.activated.value.has(Xe(a.value))),select:(o,s)=>n.root.select(a.value,o,s),isSelected:E(()=>n.root.selected.value.get(Xe(a.value))==="on"),isIndeterminate:E(()=>n.root.selected.value.get(a.value)==="indeterminate"),isLeaf:E(()=>!n.root.children.value.get(a.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(a.value,n.id.value,t),Cn(()=>{!n.isGroupActivator&&n.root.unregister(a.value)}),t&&Lt(Dv,i),i},kq=()=>{const e=rt(Dv,EF);Lt(Dv,{...e,isGroupActivator:!0})},Mq=aa({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return kq(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),Lq=ne({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Ye,default:"$collapse"},expandIcon:{type:Ye,default:"$expand"},prependIcon:Ye,appendIcon:Ye,fluid:Boolean,subgroup:Boolean,title:String,value:null,...Me(),...nt()},"VListGroup"),tx=fe()({name:"VListGroup",props:Lq(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:a,id:i}=RF(oe(e,"value"),!0),o=E(()=>`v-list-group--id-${String(i.value)}`),s=PF(),{isBooted:l}=Cu();function u(v){v.stopPropagation(),a(!r.value,v)}const c=E(()=>({onClick:u,class:"v-list-group__header",id:o.value})),f=E(()=>r.value?e.collapseIcon:e.expandIcon),d=E(()=>({VListItem:{active:r.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&f.value,appendIcon:e.appendIcon||!e.subgroup&&f.value,title:e.title,value:e.value}}));return ge(()=>I(e.tag,{class:["v-list-group",{"v-list-group--prepend":s==null?void 0:s.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class],style:e.style},{default:()=>[n.activator&&I(lt,{defaults:d.value},{default:()=>[I(Mq,null,{default:()=>[n.activator({props:c.value,isOpen:r.value})]})]}),I(lr,{transition:{component:Zy},disabled:!l.value},{default:()=>{var v;return[Zt(I("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(v=n.default)==null?void 0:v.call(n)]),[[Ma,r.value]])]}})]})),{isOpen:r}}}),Eq=ne({opacity:[Number,String],...Me(),...nt()},"VListItemSubtitle"),VF=fe()({name:"VListItemSubtitle",props:Eq(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-list-item-subtitle",e.class],style:[{"--v-list-item-subtitle-opacity":e.opacity},e.style]},n)),{}}}),OF=zi("v-list-item-title"),Rq=ne({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Ye,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Ye,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:$n(),onClickOnce:$n(),...Ur(),...Me(),...Nn(),...gn(),...An(),...Yt(),..._h(),...nt(),...gt(),...La({variant:"text"})},"VListItem"),yo=fe()({name:"VListItem",directives:{Ripple:Po},props:Rq(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const i=yh(e,n),o=E(()=>e.value===void 0?i.href.value:e.value),{activate:s,isActivated:l,select:u,isOpen:c,isSelected:f,isIndeterminate:d,isGroupActivator:v,root:h,parent:g,openOnSelect:p,id:m}=RF(o,!1),y=PF(),_=E(()=>{var J;return e.active!==!1&&(e.active||((J=i.isActive)==null?void 0:J.value)||(h.activatable.value?l.value:f.value))}),b=E(()=>e.link!==!1&&i.isLink.value),x=E(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||!!y&&(h.selectable.value||h.activatable.value||e.value!=null))),S=E(()=>e.rounded||e.nav),T=E(()=>e.color??e.activeColor),C=E(()=>({color:_.value?T.value??e.baseColor:e.baseColor,variant:e.variant}));Ce(()=>{var J;return(J=i.isActive)==null?void 0:J.value},J=>{J&&g.value!=null&&h.open(g.value,!0),J&&p(J)},{immediate:!0});const{themeClasses:w}=Ct(e),{borderClasses:A}=oa(e),{colorClasses:D,colorStyles:P,variantClasses:k}=Tu(C),{densityClasses:L}=dr(e),{dimensionStyles:V}=pn(e),{elevationClasses:N}=Un(e),{roundedClasses:$}=Qt(S),z=E(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),H=E(()=>({isActive:_.value,select:u,isOpen:c.value,isSelected:f.value,isIndeterminate:d.value}));function U(J){var ue;a("click",J),x.value&&((ue=i.navigate)==null||ue.call(i,J),!v&&(h.activatable.value?s(!l.value,J):(h.selectable.value||e.value!=null)&&u(!f.value,J)))}function Y(J){(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),J.target.dispatchEvent(new MouseEvent("click",J)))}return ge(()=>{const J=b.value?"a":e.tag,ue=r.title||e.title!=null,le=r.subtitle||e.subtitle!=null,be=!!(e.appendAvatar||e.appendIcon),ae=!!(be||r.append),Z=!!(e.prependAvatar||e.prependIcon),te=!!(Z||r.prepend);return y==null||y.updateHasPrepend(te),e.activeColor&&Ij("active-color",["color","base-color"]),Zt(I(J,ve({class:["v-list-item",{"v-list-item--active":_.value,"v-list-item--disabled":e.disabled,"v-list-item--link":x.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!te&&(y==null?void 0:y.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&_.value},w.value,A.value,D.value,L.value,N.value,z.value,$.value,k.value,e.class],style:[P.value,V.value,e.style],tabindex:x.value?y?-2:0:void 0,"aria-selected":h.activatable.value?l.value:f.value,onClick:U,onKeydown:x.value&&!b.value&&Y},i.linkProps),{default:()=>{var se;return[Fs(x.value||_.value,"v-list-item"),te&&I("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?I(lt,{key:"prepend-defaults",disabled:!Z,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var G;return[(G=r.prepend)==null?void 0:G.call(r,H.value)]}}):I(ke,null,[e.prependAvatar&&I(Pa,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(wt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),I("div",{class:"v-list-item__spacer"},null)]),I("div",{class:"v-list-item__content","data-no-activator":""},[ue&&I(OF,{key:"title"},{default:()=>{var G;return[((G=r.title)==null?void 0:G.call(r,{title:e.title}))??e.title]}}),le&&I(VF,{key:"subtitle"},{default:()=>{var G;return[((G=r.subtitle)==null?void 0:G.call(r,{subtitle:e.subtitle}))??e.subtitle]}}),(se=r.default)==null?void 0:se.call(r,H.value)]),ae&&I("div",{key:"append",class:"v-list-item__append"},[r.append?I(lt,{key:"append-defaults",disabled:!be,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var G;return[(G=r.append)==null?void 0:G.call(r,H.value)]}}):I(ke,null,[e.appendIcon&&I(wt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(Pa,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),I("div",{class:"v-list-item__spacer"},null)])]}}),[[na("ripple"),x.value&&e.ripple]])}),{activate:s,isActivated:l,isGroupActivator:v,isSelected:f,list:y,select:u,root:h,id:m}}}),Vq=ne({color:String,inset:Boolean,sticky:Boolean,title:String,...Me(),...nt()},"VListSubheader"),NF=fe()({name:"VListSubheader",props:Vq(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=Kn(oe(e,"color"));return ge(()=>{const i=!!(n.default||e.title);return I(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class],style:[{textColorStyles:a},e.style]},{default:()=>{var o;return[i&&I("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),Oq=ne({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...Me(),...gt()},"VDivider"),Sh=fe()({name:"VDivider",props:Oq(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=Ct(e),{textColorClasses:i,textColorStyles:o}=Kn(oe(e,"color")),s=E(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=De(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=De(e.thickness)),l});return ge(()=>{const l=I("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},a.value,i.value,e.class],style:[s.value,o.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?I("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[l,I("div",{class:"v-divider__content"},[r.default()]),l]):l}),{}}}),Nq=ne({items:Array,returnObject:Boolean},"VListChildren"),BF=fe()({name:"VListChildren",props:Nq(),setup(e,t){let{slots:n}=t;return DF(),()=>{var r,a;return((r=n.default)==null?void 0:r.call(n))??((a=e.items)==null?void 0:a.map(i=>{var d,v;let{children:o,props:s,type:l,raw:u}=i;if(l==="divider")return((d=n.divider)==null?void 0:d.call(n,{props:s}))??I(Sh,s,null);if(l==="subheader")return((v=n.subheader)==null?void 0:v.call(n,{props:s}))??I(NF,s,null);const c={subtitle:n.subtitle?h=>{var g;return(g=n.subtitle)==null?void 0:g.call(n,{...h,item:u})}:void 0,prepend:n.prepend?h=>{var g;return(g=n.prepend)==null?void 0:g.call(n,{...h,item:u})}:void 0,append:n.append?h=>{var g;return(g=n.append)==null?void 0:g.call(n,{...h,item:u})}:void 0,title:n.title?h=>{var g;return(g=n.title)==null?void 0:g.call(n,{...h,item:u})}:void 0},f=tx.filterProps(s);return o?I(tx,ve({value:s==null?void 0:s.value},f),{activator:h=>{let{props:g}=h;const p={...s,...g,value:e.returnObject?u:s.value};return n.header?n.header({props:p}):I(yo,p,c)},default:()=>I(BF,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:s}):I(yo,ve(s,{value:e.returnObject?u:s.value}),c)}))}}}),zF=ne({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:Ni}},"list-items");function as(e,t){const n=bn(t,e.itemTitle,t),r=bn(t,e.itemValue,n),a=bn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?vn(t,["children"]):t:void 0:bn(t,e.itemProps),o={title:n,value:r,...i};return{title:String(o.title??""),value:o.value,props:o,children:Array.isArray(a)?FF(e,a):void 0,raw:t}}function FF(e,t){const n=[];for(const r of t)n.push(as(e,r));return n}function gT(e){const t=E(()=>FF(e,e.items)),n=E(()=>t.value.some(i=>i.value===null));function r(i){return n.value||(i=i.filter(o=>o!==null)),i.map(o=>e.returnObject&&typeof o=="string"?as(e,o):t.value.find(s=>e.valueComparator(o,s.value))||as(e,o))}function a(i){return e.returnObject?i.map(o=>{let{raw:s}=o;return s}):i.map(o=>{let{value:s}=o;return s})}return{items:t,transformIn:r,transformOut:a}}function Bq(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function zq(e,t){const n=bn(t,e.itemType,"item"),r=Bq(t)?t:bn(t,e.itemTitle),a=bn(t,e.itemValue,void 0),i=bn(t,e.itemChildren),o=e.itemProps===!0?vn(t,["children"]):bn(t,e.itemProps),s={title:r,value:a,...o};return{type:n,title:s.title,value:s.value,props:s,children:n==="item"&&i?HF(e,i):void 0,raw:t}}function HF(e,t){const n=[];for(const r of t)n.push(zq(e,r));return n}function Fq(e){return{items:E(()=>HF(e,e.items))}}const Hq=ne({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,expandIcon:String,collapseIcon:String,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,"onClick:open":$n(),"onClick:select":$n(),"onUpdate:opened":$n(),...Dq({selectStrategy:"single-leaf",openStrategy:"list"}),...Ur(),...Me(),...Nn(),...gn(),...An(),itemType:{type:String,default:"type"},...zF(),...Yt(),...nt(),...gt(),...La({variant:"text"})},"VList"),n0=fe()({name:"VList",props:Hq(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=Fq(e),{themeClasses:a}=Ct(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Et(oe(e,"bgColor")),{borderClasses:s}=oa(e),{densityClasses:l}=dr(e),{dimensionStyles:u}=pn(e),{elevationClasses:c}=Un(e),{roundedClasses:f}=Qt(e),{children:d,open:v,parents:h,select:g,getPath:p}=Pq(e),m=E(()=>e.lines?`v-list--${e.lines}-line`:void 0),y=oe(e,"activeColor"),_=oe(e,"baseColor"),b=oe(e,"color");DF(),Kt({VListGroup:{activeColor:y,baseColor:_,color:b,expandIcon:oe(e,"expandIcon"),collapseIcon:oe(e,"collapseIcon")},VListItem:{activeClass:oe(e,"activeClass"),activeColor:y,baseColor:_,color:b,density:oe(e,"density"),disabled:oe(e,"disabled"),lines:oe(e,"lines"),nav:oe(e,"nav"),slim:oe(e,"slim"),variant:oe(e,"variant")}});const x=Te(!1),S=ye();function T(k){x.value=!0}function C(k){x.value=!1}function w(k){var L;!x.value&&!(k.relatedTarget&&((L=S.value)!=null&&L.contains(k.relatedTarget)))&&P()}function A(k){const L=k.target;if(!(!S.value||["INPUT","TEXTAREA"].includes(L.tagName))){if(k.key==="ArrowDown")P("next");else if(k.key==="ArrowUp")P("prev");else if(k.key==="Home")P("first");else if(k.key==="End")P("last");else return;k.preventDefault()}}function D(k){x.value=!0}function P(k){if(S.value)return Wl(S.value,k)}return ge(()=>I(e.tag,{ref:S,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},a.value,i.value,s.value,l.value,c.value,m.value,f.value,e.class],style:[o.value,u.value,e.style],tabindex:e.disabled||x.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:T,onFocusout:C,onFocus:w,onKeydown:A,onMousedown:D},{default:()=>[I(BF,{items:r.value,returnObject:e.returnObject},n)]})),{open:v,select:g,focus:P,children:d,parents:h,getPath:p}}}),Gq=zi("v-list-img"),$q=ne({start:Boolean,end:Boolean,...Me(),...nt()},"VListItemAction"),Wq=fe()({name:"VListItemAction",props:$q(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}}),Uq=ne({start:Boolean,end:Boolean,...Me(),...nt()},"VListItemMedia"),Yq=fe()({name:"VListItemMedia",props:Uq(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class],style:e.style},n)),{}}});function P_(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Xq(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ck(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,a=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return P_({x:a,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,a=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return P_({x:a,y:i},t)}return P_({x:t.width/2,y:t.height/2},t)}const GF={static:Kq,connected:Jq},jq=ne({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in GF},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Zq(e,t){const n=ye({}),r=ye();yt&&Cr(()=>!!(t.isActive.value&&e.locationStrategy),i=>{var o,s;Ce(()=>e.locationStrategy,i),er(()=>{window.removeEventListener("resize",a),r.value=void 0}),window.addEventListener("resize",a,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(o=e.locationStrategy(t,e,n))==null?void 0:o.updateLocation:r.value=(s=GF[e.locationStrategy](t,e,n))==null?void 0:s.updateLocation});function a(i){var o;(o=r.value)==null||o.call(r,i)}return{contentStyles:n,updateLocation:r}}function Kq(){}function qq(e,t){const n=jC(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function Jq(e,t,n){(Array.isArray(e.target.value)||jj(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:i}=YC(()=>{const h=H1(t.location,e.isRtl.value),g=t.origin==="overlap"?h:t.origin==="auto"?C_(h):H1(t.origin,e.isRtl.value);return h.side===g.side&&h.align===T_(g).align?{preferredAnchor:UP(h),preferredOrigin:UP(g)}:{preferredAnchor:h,preferredOrigin:g}}),[o,s,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(h=>E(()=>{const g=parseFloat(t[h]);return isNaN(g)?1/0:g})),c=E(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const h=t.offset.split(" ").map(parseFloat);return h.length<2&&h.push(0),h}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let f=!1;const d=new ResizeObserver(()=>{f&&v()});Ce([e.target,e.contentEl],(h,g)=>{let[p,m]=h,[y,_]=g;y&&!Array.isArray(y)&&d.unobserve(y),p&&!Array.isArray(p)&&d.observe(p),_&&d.unobserve(_),m&&d.observe(m)},{immediate:!0}),er(()=>{d.disconnect()});function v(){if(f=!1,requestAnimationFrame(()=>f=!0),!e.target.value||!e.contentEl.value)return;const h=bz(e.target.value),g=qq(e.contentEl.value,e.isRtl.value),p=_m(e.contentEl.value),m=12;p.length||(p.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const y=p.reduce((D,P)=>{const k=P.getBoundingClientRect(),L=new Ul({x:P===document.documentElement?0:k.x,y:P===document.documentElement?0:k.y,width:P.clientWidth,height:P.clientHeight});return D?new Ul({x:Math.max(D.left,L.left),y:Math.max(D.top,L.top),width:Math.min(D.right,L.right)-Math.max(D.left,L.left),height:Math.min(D.bottom,L.bottom)-Math.max(D.top,L.top)}):L},void 0);y.x+=m,y.y+=m,y.width-=m*2,y.height-=m*2;let _={anchor:a.value,origin:i.value};function b(D){const P=new Ul(g),k=Ck(D.anchor,h),L=Ck(D.origin,P);let{x:V,y:N}=Xq(k,L);switch(D.anchor.side){case"top":N-=c.value[0];break;case"bottom":N+=c.value[0];break;case"left":V-=c.value[0];break;case"right":V+=c.value[0];break}switch(D.anchor.align){case"top":N-=c.value[1];break;case"bottom":N+=c.value[1];break;case"left":V-=c.value[1];break;case"right":V+=c.value[1];break}return P.x+=V,P.y+=N,P.width=Math.min(P.width,l.value),P.height=Math.min(P.height,u.value),{overflows:XP(P,y),x:V,y:N}}let x=0,S=0;const T={x:0,y:0},C={x:!1,y:!1};let w=-1;for(;!(w++>10);){const{x:D,y:P,overflows:k}=b(_);x+=D,S+=P,g.x+=D,g.y+=P;{const L=YP(_.anchor),V=k.x.before||k.x.after,N=k.y.before||k.y.after;let $=!1;if(["x","y"].forEach(z=>{if(z==="x"&&V&&!C.x||z==="y"&&N&&!C.y){const H={anchor:{..._.anchor},origin:{..._.origin}},U=z==="x"?L==="y"?T_:C_:L==="y"?C_:T_;H.anchor=U(H.anchor),H.origin=U(H.origin);const{overflows:Y}=b(H);(Y[z].before<=k[z].before&&Y[z].after<=k[z].after||Y[z].before+Y[z].after<(k[z].before+k[z].after)/2)&&(_=H,$=C[z]=!0)}}),$)continue}k.x.before&&(x+=k.x.before,g.x+=k.x.before),k.x.after&&(x-=k.x.after,g.x-=k.x.after),k.y.before&&(S+=k.y.before,g.y+=k.y.before),k.y.after&&(S-=k.y.after,g.y-=k.y.after);{const L=XP(g,y);T.x=y.width-L.x.before-L.x.after,T.y=y.height-L.y.before-L.y.after,x+=L.x.before,g.x+=L.x.before,S+=L.y.before,g.y+=L.y.before}break}const A=YP(_.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${_.anchor.side} ${_.anchor.align}`,transformOrigin:`${_.origin.side} ${_.origin.align}`,top:De(k_(S)),left:e.isRtl.value?void 0:De(k_(x)),right:e.isRtl.value?De(k_(-x)):void 0,minWidth:De(A==="y"?Math.min(o.value,h.width):o.value),maxWidth:De(Tk(sn(T.x,o.value===1/0?0:o.value,l.value))),maxHeight:De(Tk(sn(T.y,s.value===1/0?0:s.value,u.value)))}),{available:T,contentBox:g}}return Ce(()=>[a.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>v()),ht(()=>{const h=v();if(!h)return;const{available:g,contentBox:p}=h;p.height>g.y&&requestAnimationFrame(()=>{v(),requestAnimationFrame(()=>{v()})})}),{updateLocation:v}}function k_(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Tk(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let nx=!0;const xm=[];function Qq(e){!nx||xm.length?(xm.push(e),rx()):(nx=!1,e(),rx())}let Ak=-1;function rx(){cancelAnimationFrame(Ak),Ak=requestAnimationFrame(()=>{const e=xm.shift();e&&e(),xm.length?rx():nx=!0})}const Tp={none:null,close:nJ,block:rJ,reposition:aJ},eJ=ne({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Tp}},"VOverlay-scroll-strategies");function tJ(e,t){if(!yt)return;let n;un(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=hf(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=Tp[e.scrollStrategy])==null||r.call(Tp,t,e,n)}))}),er(()=>{n==null||n.stop()})}function nJ(e){function t(n){e.isActive.value=!1}$F(e.targetEl.value??e.contentEl.value,t)}function rJ(e,t){var o;const n=(o=e.root.value)==null?void 0:o.offsetParent,r=[...new Set([..._m(e.targetEl.value,t.contained?n:void 0),..._m(e.contentEl.value,t.contained?n:void 0)])].filter(s=>!s.classList.contains("v-overlay-scroll-blocked")),a=window.innerWidth-document.documentElement.offsetWidth,i=(s=>QC(s)&&s)(n||document.documentElement);i&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((s,l)=>{s.style.setProperty("--v-body-scroll-x",De(-s.scrollLeft)),s.style.setProperty("--v-body-scroll-y",De(-s.scrollTop)),s!==document.documentElement&&s.style.setProperty("--v-scrollbar-offset",De(a)),s.classList.add("v-overlay-scroll-blocked")}),er(()=>{r.forEach((s,l)=>{const u=parseFloat(s.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(s.style.getPropertyValue("--v-body-scroll-y")),f=s.style.scrollBehavior;s.style.scrollBehavior="auto",s.style.removeProperty("--v-body-scroll-x"),s.style.removeProperty("--v-body-scroll-y"),s.style.removeProperty("--v-scrollbar-offset"),s.classList.remove("v-overlay-scroll-blocked"),s.scrollLeft=-u,s.scrollTop=-c,s.style.scrollBehavior=f}),i&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function aJ(e,t,n){let r=!1,a=-1,i=-1;function o(s){Qq(()=>{var c,f;const l=performance.now();(f=(c=e.updateLocation).value)==null||f.call(c,s),r=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?s=>s():requestIdleCallback)(()=>{n.run(()=>{$F(e.targetEl.value??e.contentEl.value,s=>{r?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{o(s)})})):o(s)})})}),er(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(a)})}function $F(e,t){const n=[document,..._m(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),er(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const ax=Symbol.for("vuetify:v-menu"),pT=ne({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function mT(e,t){let n=()=>{};function r(o){n==null||n();const s=Number(o?e.openDelay:e.closeDelay);return new Promise(l=>{n=gj(s,()=>{t==null||t(o),l(o)})})}function a(){return r(!0)}function i(){return r(!1)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:i}}const iJ=ne({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...pT()},"VOverlay-activator");function oJ(e,t){let{isActive:n,isTop:r,contentEl:a}=t;const i=Jt("useActivator"),o=ye();let s=!1,l=!1,u=!0;const c=E(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),f=E(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:d,runCloseDelay:v}=mT(e,C=>{C===(e.openOnHover&&s||c.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(u=!0),n.value=C)}),h=ye(),g={onClick:C=>{C.stopPropagation(),o.value=C.currentTarget||C.target,n.value||(h.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{var w;(w=C.sourceCapabilities)!=null&&w.firesTouchEvents||(s=!0,o.value=C.currentTarget||C.target,d())},onMouseleave:C=>{s=!1,v()},onFocus:C=>{Kc(C.target,":focus-visible")!==!1&&(l=!0,C.stopPropagation(),o.value=C.currentTarget||C.target,d())},onBlur:C=>{l=!1,C.stopPropagation(),v()}},p=E(()=>{const C={};return f.value&&(C.onClick=g.onClick),e.openOnHover&&(C.onMouseenter=g.onMouseenter,C.onMouseleave=g.onMouseleave),c.value&&(C.onFocus=g.onFocus,C.onBlur=g.onBlur),C}),m=E(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{s=!0,d()},C.onMouseleave=()=>{s=!1,v()}),c.value&&(C.onFocusin=()=>{l=!0,d()},C.onFocusout=()=>{l=!1,v()}),e.closeOnContentClick){const w=rt(ax,null);C.onClick=()=>{n.value=!1,w==null||w.closeParents()}}return C}),y=E(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{u&&(s=!0,u=!1,d())},C.onMouseleave=()=>{s=!1,v()}),C});Ce(r,C=>{var w;C&&(e.openOnHover&&!s&&(!c.value||!l)||c.value&&!l&&(!e.openOnHover||!s))&&!((w=a.value)!=null&&w.contains(document.activeElement))&&(n.value=!1)}),Ce(n,C=>{C||setTimeout(()=>{h.value=void 0})},{flush:"post"});const _=pm();un(()=>{_.value&&ht(()=>{o.value=_.el})});const b=pm(),x=E(()=>e.target==="cursor"&&h.value?h.value:b.value?b.el:WF(e.target,i)||o.value),S=E(()=>Array.isArray(x.value)?void 0:x.value);let T;return Ce(()=>!!e.activator,C=>{C&&yt?(T=hf(),T.run(()=>{sJ(e,i,{activatorEl:o,activatorEvents:p})})):T&&T.stop()},{flush:"post",immediate:!0}),er(()=>{T==null||T.stop()}),{activatorEl:o,activatorRef:_,target:x,targetEl:S,targetRef:b,activatorEvents:p,contentEvents:m,scrimEvents:y}}function sJ(e,t,n){let{activatorEl:r,activatorEvents:a}=n;Ce(()=>e.activator,(l,u)=>{if(u&&l!==u){const c=s(u);c&&o(c)}l&&ht(()=>i())},{immediate:!0}),Ce(()=>e.activatorProps,()=>{i()}),er(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&yj(l,ve(a.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&_j(l,ve(a.value,u))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=WF(l,t);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function WF(e,t){var r,a;if(!e)return;let n;if(e==="parent"){let i=(a=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:a.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function UF(){if(!yt)return Te(!1);const{ssr:e}=Wr();if(e){const t=Te(!1);return wn(()=>{t.value=!0}),t}else return Te(!0)}const yT=ne({eager:Boolean},"lazy");function _T(e,t){const n=Te(!1),r=E(()=>n.value||e.eager||t.value);Ce(t,()=>n.value=!0);function a(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:a}}function ku(){const t=Jt("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Ik=Symbol.for("vuetify:stack"),Uf=yn([]);function lJ(e,t,n){const r=Jt("useStack"),a=!n,i=rt(Ik,void 0),o=yn({activeChildren:new Set});Lt(Ik,o);const s=Te(+t.value);Cr(e,()=>{var f;const c=(f=Uf.at(-1))==null?void 0:f[1];s.value=c?c+10:+t.value,a&&Uf.push([r.uid,s.value]),i==null||i.activeChildren.add(r.uid),er(()=>{if(a){const d=Xe(Uf).findIndex(v=>v[0]===r.uid);Uf.splice(d,1)}i==null||i.activeChildren.delete(r.uid)})});const l=Te(!0);a&&un(()=>{var f;const c=((f=Uf.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>l.value=c)});const u=E(()=>!o.activeChildren.size);return{globalTop:sh(l),localTop:u,stackStyles:E(()=>({zIndex:s.value}))}}function uJ(e){return{teleportTarget:E(()=>{const n=e();if(n===!0||!yt)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let a=[...r.children].find(i=>i.matches(".v-overlay-container"));return a||(a=document.createElement("div"),a.className="v-overlay-container",r.appendChild(a)),a})}}function cJ(){return!0}function YF(e,t,n){if(!e||XF(e,n)===!1)return!1;const r=Ez(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const a=(typeof n.value=="object"&&n.value.include||(()=>[]))();return a.push(t),!a.some(i=>i==null?void 0:i.contains(e.target))}function XF(e,t){return(typeof t.value=="object"&&t.value.closeConditional||cJ)(e)}function fJ(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&YF(e,t,n)&&setTimeout(()=>{XF(e,n)&&r&&r(e)},0)}function Dk(e,t){const n=Ez(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const jF={mounted(e,t){const n=a=>fJ(a,e,t),r=a=>{e._clickOutside.lastMousedownWasOutside=YF(a,e,t)};Dk(e,a=>{a.addEventListener("click",n,!0),a.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(Dk(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:a}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[t.instance.$.uid])}};function dJ(e){const{modelValue:t,color:n,...r}=e;return I(xs,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&I("div",ve({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const xh=ne({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...iJ(),...Me(),...gn(),...yT(),...jq(),...eJ(),...gt(),...ai()},"VOverlay"),ki=fe()({name:"VOverlay",directives:{ClickOutside:jF},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...xh()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:a}=t;const i=Jt("VOverlay"),o=ye(),s=ye(),l=ye(),u=Ve(e,"modelValue"),c=E({get:()=>u.value,set:ae=>{ae&&e.disabled||(u.value=ae)}}),{themeClasses:f}=Ct(e),{rtlClasses:d,isRtl:v}=Tn(),{hasContent:h,onAfterLeave:g}=_T(e,c),p=Et(E(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:m,localTop:y,stackStyles:_}=lJ(c,oe(e,"zIndex"),e._disableGlobalStack),{activatorEl:b,activatorRef:x,target:S,targetEl:T,targetRef:C,activatorEvents:w,contentEvents:A,scrimEvents:D}=oJ(e,{isActive:c,isTop:y,contentEl:l}),{teleportTarget:P}=uJ(()=>{var te,se,G;const ae=e.attach||e.contained;if(ae)return ae;const Z=((te=b==null?void 0:b.value)==null?void 0:te.getRootNode())||((G=(se=i.proxy)==null?void 0:se.$el)==null?void 0:G.getRootNode());return Z instanceof ShadowRoot?Z:!1}),{dimensionStyles:k}=pn(e),L=UF(),{scopeId:V}=ku();Ce(()=>e.disabled,ae=>{ae&&(c.value=!1)});const{contentStyles:N,updateLocation:$}=Zq(e,{isRtl:v,contentEl:l,target:S,isActive:c});tJ(e,{root:o,contentEl:l,targetEl:T,isActive:c,updateLocation:$});function z(ae){a("click:outside",ae),e.persistent?ue():c.value=!1}function H(ae){return c.value&&m.value&&(!e.scrim||ae.target===s.value||ae instanceof MouseEvent&&ae.shadowTarget===s.value)}yt&&Ce(c,ae=>{ae?window.addEventListener("keydown",U):window.removeEventListener("keydown",U)},{immediate:!0}),Cn(()=>{yt&&window.removeEventListener("keydown",U)});function U(ae){var Z,te;ae.key==="Escape"&&m.value&&(e.persistent?ue():(c.value=!1,(Z=l.value)!=null&&Z.contains(document.activeElement)&&((te=b.value)==null||te.focus())))}const Y=oF();Cr(()=>e.closeOnBack,()=>{XK(Y,ae=>{m.value&&c.value?(ae(!1),e.persistent?ue():c.value=!1):ae()})});const J=ye();Ce(()=>c.value&&(e.absolute||e.contained)&&P.value==null,ae=>{if(ae){const Z=JC(o.value);Z&&Z!==document.scrollingElement&&(J.value=Z.scrollTop)}});function ue(){e.noClickAnimation||l.value&&Ml(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:bv})}function le(){a("afterEnter")}function be(){g(),a("afterLeave")}return ge(()=>{var ae;return I(ke,null,[(ae=n.activator)==null?void 0:ae.call(n,{isActive:c.value,targetRef:C,props:ve({ref:x},w.value,e.activatorProps)}),L.value&&h.value&&I(J6,{disabled:!P.value,to:P.value},{default:()=>[I("div",ve({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},f.value,d.value,e.class],style:[_.value,{"--v-overlay-opacity":e.opacity,top:De(J.value)},e.style],ref:o},V,r),[I(dJ,ve({color:p,modelValue:c.value&&!!e.scrim,ref:s},D.value),null),I(lr,{appear:!0,persisted:!0,transition:e.transition,target:S.value,onAfterEnter:le,onAfterLeave:be},{default:()=>{var Z;return[Zt(I("div",ve({ref:l,class:["v-overlay__content",e.contentClass],style:[k.value,N.value]},A.value,e.contentProps),[(Z=n.default)==null?void 0:Z.call(n,{isActive:c})]),[[Ma,c.value],[na("click-outside"),{handler:z,closeConditional:H,include:()=>[b.value]}]])]}})])]})])}),{activatorEl:b,scrimEl:s,target:S,animateClick:ue,contentEl:l,globalTop:m,localTop:y,updateLocation:$}}}),M_=Symbol("Forwarded refs");function L_(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ea(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{scopeId:a}=ku(),{isRtl:i}=Tn(),o=Wn(),s=E(()=>e.id||`v-menu-${o}`),l=ye(),u=rt(ax,null),c=Te(new Set);Lt(ax,{register(){c.value.add(o)},unregister(){c.value.delete(o)},closeParents(p){setTimeout(()=>{var m;!c.value.size&&!e.persistent&&(p==null||(m=l.value)!=null&&m.contentEl&&!pj(p,l.value.contentEl))&&(r.value=!1,u==null||u.closeParents())},40)}}),Cn(()=>{u==null||u.unregister(),document.removeEventListener("focusin",f)}),xC(()=>r.value=!1);async function f(p){var _,b,x;const m=p.relatedTarget,y=p.target;await ht(),r.value&&m!==y&&((_=l.value)!=null&&_.contentEl)&&((b=l.value)!=null&&b.globalTop)&&![document,l.value.contentEl].includes(y)&&!l.value.contentEl.contains(y)&&((x=_v(l.value.contentEl)[0])==null||x.focus())}Ce(r,p=>{p?(u==null||u.register(),yt&&document.addEventListener("focusin",f,{once:!0})):(u==null||u.unregister(),yt&&document.removeEventListener("focusin",f))},{immediate:!0});function d(p){u==null||u.closeParents(p)}function v(p){var m,y,_,b,x;if(!e.disabled)if(p.key==="Tab"||p.key==="Enter"&&!e.closeOnContentClick){if(p.key==="Enter"&&(p.target instanceof HTMLTextAreaElement||p.target instanceof HTMLInputElement&&p.target.closest("form")))return;p.key==="Enter"&&p.preventDefault(),mz(_v((m=l.value)==null?void 0:m.contentEl,!1),p.shiftKey?"prev":"next",T=>T.tabIndex>=0)||(r.value=!1,(_=(y=l.value)==null?void 0:y.activatorEl)==null||_.focus())}else e.submenu&&p.key===(i.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,(x=(b=l.value)==null?void 0:b.activatorEl)==null||x.focus())}function h(p){var y;if(e.disabled)return;const m=(y=l.value)==null?void 0:y.contentEl;m&&r.value?p.key==="ArrowDown"?(p.preventDefault(),p.stopImmediatePropagation(),Wl(m,"next")):p.key==="ArrowUp"?(p.preventDefault(),p.stopImmediatePropagation(),Wl(m,"prev")):e.submenu&&(p.key===(i.value?"ArrowRight":"ArrowLeft")?r.value=!1:p.key===(i.value?"ArrowLeft":"ArrowRight")&&(p.preventDefault(),Wl(m,"first"))):(e.submenu?p.key===(i.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(p.key))&&(r.value=!0,p.preventDefault(),setTimeout(()=>setTimeout(()=>h(p))))}const g=E(()=>ve({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":s.value,onKeydown:h},e.activatorProps));return ge(()=>{const p=ki.filterProps(e);return I(ki,ve({ref:l,id:s.value,class:["v-menu",e.class],style:e.style},p,{modelValue:r.value,"onUpdate:modelValue":m=>r.value=m,absolute:!0,activatorProps:g.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":d,onKeydown:v},a),{activator:n.activator,default:function(){for(var m=arguments.length,y=new Array(m),_=0;_{var b;return[(b=n.default)==null?void 0:b.call(n,...y)]}})}})}),Ea({id:s,ΨopenChildren:c},l)}}),vJ=ne({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Me(),...ai({transition:{component:sT}})},"VCounter"),r0=fe()({name:"VCounter",functional:!0,props:vJ(),setup(e,t){let{slots:n}=t;const r=E(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return ge(()=>I(lr,{transition:e.transition},{default:()=>[Zt(I("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[Ma,e.active]])]})),{}}}),hJ=ne({floating:Boolean,...Me()},"VFieldLabel"),wd=fe()({name:"VFieldLabel",props:hJ(),setup(e,t){let{slots:n}=t;return ge(()=>I(bf,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}}),gJ=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],wh=ne({appendInnerIcon:Ye,bgColor:String,clearable:Boolean,clearIcon:{type:Ye,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Ye,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>gJ.includes(e)},"onClick:clear":$n(),"onClick:appendInner":$n(),"onClick:prependInner":$n(),...Me(),...Jy(),...Yt(),...gt()},"VField"),xf=fe()({name:"VField",inheritAttrs:!1,props:{id:String,...bh(),...wh()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{themeClasses:i}=Ct(e),{loaderClasses:o}=ph(e),{focusClasses:s,isFocused:l,focus:u,blur:c}=ko(e),{InputIcon:f}=_F(e),{roundedClasses:d}=Qt(e),{rtlClasses:v}=Tn(),h=E(()=>e.dirty||e.active),g=E(()=>!e.singleLine&&!!(e.label||a.label)),p=Wn(),m=E(()=>e.id||`input-${p}`),y=E(()=>`${m.value}-messages`),_=ye(),b=ye(),x=ye(),S=E(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:T,backgroundColorStyles:C}=Et(oe(e,"bgColor")),{textColorClasses:w,textColorStyles:A}=Kn(E(()=>e.error||e.disabled?void 0:h.value&&l.value?e.color:e.baseColor));Ce(h,L=>{if(g.value){const V=_.value.$el,N=b.value.$el;requestAnimationFrame(()=>{const $=jC(V),z=N.getBoundingClientRect(),H=z.x-$.x,U=z.y-$.y-($.height/2-z.height/2),Y=z.width/.75,J=Math.abs(Y-$.width)>1?{maxWidth:De(Y)}:void 0,ue=getComputedStyle(V),le=getComputedStyle(N),be=parseFloat(ue.transitionDuration)*1e3||150,ae=parseFloat(le.getPropertyValue("--v-field-label-scale")),Z=le.getPropertyValue("color");V.style.visibility="visible",N.style.visibility="hidden",Ml(V,{transform:`translate(${H}px, ${U}px) scale(${ae})`,color:Z,...J},{duration:be,easing:bv,direction:L?"normal":"reverse"}).finished.then(()=>{V.style.removeProperty("visibility"),N.style.removeProperty("visibility")})})}},{flush:"post"});const D=E(()=>({isActive:h,isFocused:l,controlRef:x,blur:c,focus:u}));function P(L){L.target!==document.activeElement&&L.preventDefault()}function k(L){var V;L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),L.stopPropagation(),(V=e["onClick:clear"])==null||V.call(e,new MouseEvent("click")))}return ge(()=>{var H,U,Y;const L=e.variant==="outlined",V=!!(a["prepend-inner"]||e.prependInnerIcon),N=!!(e.clearable||a.clear),$=!!(a["append-inner"]||e.appendInnerIcon||N),z=()=>a.label?a.label({...D.value,label:e.label,props:{for:m.value}}):e.label;return I("div",ve({class:["v-field",{"v-field--active":h.value,"v-field--appended":$,"v-field--center-affix":e.centerAffix??!S.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":V,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!z(),[`v-field--variant-${e.variant}`]:!0},i.value,T.value,s.value,o.value,d.value,v.value,e.class],style:[C.value,e.style],onClick:P},n),[I("div",{class:"v-field__overlay"},null),I(mh,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:a.loader}),V&&I("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&I(f,{key:"prepend-icon",name:"prependInner"},null),(H=a["prepend-inner"])==null?void 0:H.call(a,D.value)]),I("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&I(wd,{key:"floating-label",ref:b,class:[w.value],floating:!0,for:m.value,style:A.value},{default:()=>[z()]}),I(wd,{ref:_,for:m.value},{default:()=>[z()]}),(U=a.default)==null?void 0:U.call(a,{...D.value,props:{id:m.value,class:"v-field__input","aria-describedby":y.value},focus:u,blur:c})]),N&&I(lT,{key:"clear"},{default:()=>[Zt(I("div",{class:"v-field__clearable",onMousedown:J=>{J.preventDefault(),J.stopPropagation()}},[I(lt,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[a.clear?a.clear({...D.value,props:{onKeydown:k,onFocus:u,onBlur:c,onClick:e["onClick:clear"]}}):I(f,{name:"clear",onKeydown:k,onFocus:u,onBlur:c},null)]})]),[[Ma,e.dirty]])]}),$&&I("div",{key:"append",class:"v-field__append-inner"},[(Y=a["append-inner"])==null?void 0:Y.call(a,D.value),e.appendInnerIcon&&I(f,{key:"append-icon",name:"appendInner"},null)]),I("div",{class:["v-field__outline",w.value],style:A.value},[L&&I(ke,null,[I("div",{class:"v-field__outline__start"},null),g.value&&I("div",{class:"v-field__outline__notch"},[I(wd,{ref:b,floating:!0,for:m.value},{default:()=>[z()]})]),I("div",{class:"v-field__outline__end"},null)]),S.value&&g.value&&I(wd,{ref:b,floating:!0,for:m.value},{default:()=>[z()]})])])}),{controlRef:x}}});function bT(e){const t=Object.keys(xf.props).filter(n=>!Gy(n)&&n!=="class"&&n!=="style");return UC(e,t)}const pJ=["color","file","time","date","datetime-local","week","month"],a0=ne({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Mo(),...wh()},"VTextField"),ou=fe()({name:"VTextField",directives:{Intersect:gh},inheritAttrs:!1,props:a0(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const i=Ve(e,"modelValue"),{isFocused:o,focus:s,blur:l}=ko(e),u=E(()=>typeof e.counterValue=="function"?e.counterValue(i.value):typeof e.counterValue=="number"?e.counterValue:(i.value??"").toString().length),c=E(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),f=E(()=>["plain","underlined"].includes(e.variant));function d(S,T){var C,w;!e.autofocus||!S||(w=(C=T[0].target)==null?void 0:C.focus)==null||w.call(C)}const v=ye(),h=ye(),g=ye(),p=E(()=>pJ.includes(e.type)||e.persistentPlaceholder||o.value||e.active);function m(){var S;g.value!==document.activeElement&&((S=g.value)==null||S.focus()),o.value||s()}function y(S){r("mousedown:control",S),S.target!==g.value&&(m(),S.preventDefault())}function _(S){m(),r("click:control",S)}function b(S){S.stopPropagation(),m(),ht(()=>{i.value=null,XC(e["onClick:clear"],S)})}function x(S){var C;const T=S.target;if(i.value=T.value,(C=e.modelModifiers)!=null&&C.trim&&["text","search","password","tel","url"].includes(e.type)){const w=[T.selectionStart,T.selectionEnd];ht(()=>{T.selectionStart=w[0],T.selectionEnd=w[1]})}}return ge(()=>{const S=!!(a.counter||e.counter!==!1&&e.counter!=null),T=!!(S||a.details),[C,w]=zs(n),{modelValue:A,...D}=qn.filterProps(e),P=bT(e);return I(qn,ve({ref:v,modelValue:i.value,"onUpdate:modelValue":k=>i.value=k,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":f.value},e.class],style:e.style},C,D,{centerAffix:!f.value,focused:o.value}),{...a,default:k=>{let{id:L,isDisabled:V,isDirty:N,isReadonly:$,isValid:z}=k;return I(xf,ve({ref:h,onMousedown:y,onClick:_,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},P,{id:L.value,active:p.value||N.value,dirty:N.value||e.dirty,disabled:V.value,focused:o.value,error:z.value===!1}),{...a,default:H=>{let{props:{class:U,...Y}}=H;const J=Zt(I("input",ve({ref:g,value:i.value,onInput:x,autofocus:e.autofocus,readonly:$.value,disabled:V.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:m,onBlur:l},Y,w),null),[[na("intersect"),{handler:d},null,{once:!0}]]);return I(ke,null,[e.prefix&&I("span",{class:"v-text-field__prefix"},[I("span",{class:"v-text-field__prefix__text"},[e.prefix])]),a.default?I("div",{class:U,"data-no-activator":""},[a.default(),J]):Pi(J,{class:U}),e.suffix&&I("span",{class:"v-text-field__suffix"},[I("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:T?k=>{var L;return I(ke,null,[(L=a.details)==null?void 0:L.call(a,k),S&&I(ke,null,[I("span",null,null),I(r0,{active:e.persistentCounter||o.value,value:u.value,max:c.value,disabled:e.disabled},a.counter)])])}:void 0})}),Ea({},v,h,g)}}),mJ=ne({renderless:Boolean,...Me()},"VVirtualScrollItem"),KF=fe()({name:"VVirtualScrollItem",inheritAttrs:!1,props:mJ(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{resizeRef:i,contentRect:o}=ti(void 0,"border");Ce(()=>{var s;return(s=o.value)==null?void 0:s.height},s=>{s!=null&&r("update:height",s)}),ge(()=>{var s,l;return e.renderless?I(ke,null,[(s=a.default)==null?void 0:s.call(a,{itemRef:i})]):I("div",ve({ref:i,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=a.default)==null?void 0:l.call(a)])})}}),yJ=-1,_J=1,E_=100,qF=ne({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function JF(e,t){const n=Wr(),r=Te(0);un(()=>{r.value=parseFloat(e.itemHeight||0)});const a=Te(0),i=Te(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),o=Te(0),s=Te(0),l=ye(),u=ye();let c=0;const{resizeRef:f,contentRect:d}=ti();un(()=>{f.value=l.value});const v=E(()=>{var H;return l.value===document.documentElement?n.height.value:((H=d.value)==null?void 0:H.height)||parseInt(e.height)||0}),h=E(()=>!!(l.value&&u.value&&v.value&&r.value));let g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length});const m=Te(0);let y=-1;function _(H){return g[H]||r.value}const b=fj(()=>{const H=performance.now();p[0]=0;const U=t.value.length;for(let Y=1;Y<=U-1;Y++)p[Y]=(p[Y-1]||0)+_(Y-1);m.value=Math.max(m.value,performance.now()-H)},m),x=Ce(h,H=>{H&&(x(),c=u.value.offsetTop,b.immediate(),V(),~y&&ht(()=>{yt&&window.requestAnimationFrame(()=>{$(y),y=-1})}))});er(()=>{b.clear()});function S(H,U){const Y=g[H],J=r.value;r.value=J?Math.min(r.value,U):U,(Y!==U||J!==r.value)&&(g[H]=U,b())}function T(H){return H=sn(H,0,t.value.length-1),p[H]||0}function C(H){return bJ(p,H)}let w=0,A=0,D=0;Ce(v,(H,U)=>{U&&(V(),H{A=0,V()}))});function P(){if(!l.value||!u.value)return;const H=l.value.scrollTop,U=performance.now();U-D>500?(A=Math.sign(H-w),c=u.value.offsetTop):A=H-w,w=H,D=U,V()}function k(){!l.value||!u.value||(A=0,D=0,V())}let L=-1;function V(){cancelAnimationFrame(L),L=requestAnimationFrame(N)}function N(){if(!l.value||!v.value)return;const H=w-c,U=Math.sign(A),Y=Math.max(0,H-E_),J=sn(C(Y),0,t.value.length),ue=H+v.value+E_,le=sn(C(ue)+1,J+1,t.value.length);if((U!==yJ||Ji.value)){const be=T(a.value)-T(J),ae=T(le)-T(i.value);Math.max(be,ae)>E_?(a.value=J,i.value=le):(J<=0&&(a.value=J),le>=t.value.length&&(i.value=le))}o.value=T(a.value),s.value=T(t.value.length)-T(i.value)}function $(H){const U=T(H);!l.value||H&&!U?y=H:l.value.scrollTop=U}const z=E(()=>t.value.slice(a.value,i.value).map((H,U)=>({raw:H,index:U+a.value})));return Ce(t,()=>{g=Array.from({length:t.value.length}),p=Array.from({length:t.value.length}),b.immediate(),V()},{deep:!0}),{calculateVisibleItems:V,containerRef:l,markerRef:u,computedItems:z,paddingTop:o,paddingBottom:s,scrollToIndex:$,handleScroll:P,handleScrollend:k,handleItemResize:S}}function bJ(e,t){let n=e.length-1,r=0,a=0,i=null,o=-1;if(e[n]>1,i=e[a],i>t)n=a-1;else if(i[]},renderless:Boolean,...qF(),...Me(),...gn()},"VVirtualScroll"),i0=fe()({name:"VVirtualScroll",props:SJ(),setup(e,t){let{slots:n}=t;const r=Jt("VVirtualScroll"),{dimensionStyles:a}=pn(e),{calculateVisibleItems:i,containerRef:o,markerRef:s,handleScroll:l,handleScrollend:u,handleItemResize:c,scrollToIndex:f,paddingTop:d,paddingBottom:v,computedItems:h}=JF(e,oe(e,"items"));return Cr(()=>e.renderless,()=>{function g(){var y,_;const m=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[m]("scroll",l,{passive:!0}),document[m]("scrollend",u)):((y=o.value)==null||y[m]("scroll",l,{passive:!0}),(_=o.value)==null||_[m]("scrollend",u))}wn(()=>{o.value=JC(r.vnode.el,!0),g(!0)}),er(g)}),ge(()=>{const g=h.value.map(p=>I(KF,{key:p.index,renderless:e.renderless,"onUpdate:height":m=>c(p.index,m)},{default:m=>{var y;return(y=n.default)==null?void 0:y.call(n,{item:p.raw,index:p.index,...m})}}));return e.renderless?I(ke,null,[I("div",{ref:s,class:"v-virtual-scroll__spacer",style:{paddingTop:De(d.value)}},null),g,I("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:De(v.value)}},null)]):I("div",{ref:o,class:["v-virtual-scroll",e.class],onScrollPassive:l,onScrollend:u,style:[a.value,e.style]},[I("div",{ref:s,class:"v-virtual-scroll__container",style:{paddingTop:De(d.value),paddingBottom:De(v.value)}},[g])])}),{calculateVisibleItems:i,scrollToIndex:f}}});function ST(e,t){const n=Te(!1);let r;function a(s){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function i(){await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>{if(n.value){const l=Ce(n,()=>{l(),s()})}else s()})}async function o(s){var c,f;if(s.key==="Tab"&&((c=t.value)==null||c.focus()),!["PageDown","PageUp","Home","End"].includes(s.key))return;const l=(f=e.value)==null?void 0:f.$el;if(!l)return;(s.key==="Home"||s.key==="End")&&l.scrollTo({top:s.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await i();const u=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(s.key==="PageDown"||s.key==="Home"){const d=l.getBoundingClientRect().top;for(const v of u)if(v.getBoundingClientRect().top>=d){v.focus();break}}else{const d=l.getBoundingClientRect().bottom;for(const v of[...u].reverse())if(v.getBoundingClientRect().bottom<=d){v.focus();break}}}return{onScrollPassive:a,onKeydown:o}}const xT=ne({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:Ye,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...zF({itemChildren:!1})},"Select"),xJ=ne({...xT(),...vn(a0({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ai({transition:{component:jy}})},"VSelect"),wT=fe()({name:"VSelect",props:xJ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=nn(),a=ye(),i=ye(),o=ye(),s=Ve(e,"menu"),l=E({get:()=>s.value,set:H=>{var U;s.value&&!H&&((U=i.value)!=null&&U.ΨopenChildren.size)||(s.value=H)}}),{items:u,transformIn:c,transformOut:f}=gT(e),d=Ve(e,"modelValue",[],H=>c(H===null?[null]:jt(H)),H=>{const U=f(H);return e.multiple?U:U[0]??null}),v=E(()=>typeof e.counterValue=="function"?e.counterValue(d.value):typeof e.counterValue=="number"?e.counterValue:d.value.length),h=t0(),g=E(()=>d.value.map(H=>H.value)),p=Te(!1),m=E(()=>l.value?e.closeText:e.openText);let y="",_;const b=E(()=>e.hideSelected?u.value.filter(H=>!d.value.some(U=>e.valueComparator(U,H))):u.value),x=E(()=>e.hideNoData&&!b.value.length||e.readonly||(h==null?void 0:h.isReadonly.value)),S=E(()=>{var H;return{...e.menuProps,activatorProps:{...((H=e.menuProps)==null?void 0:H.activatorProps)||{},"aria-haspopup":"listbox"}}}),T=ye(),C=ST(T,a);function w(H){e.openOnClear&&(l.value=!0)}function A(){x.value||(l.value=!l.value)}function D(H){mm(H)&&P(H)}function P(H){var ue,le;if(!H.key||e.readonly||h!=null&&h.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(H.key)&&H.preventDefault(),["Enter","ArrowDown"," "].includes(H.key)&&(l.value=!0),["Escape","Tab"].includes(H.key)&&(l.value=!1),H.key==="Home"?(ue=T.value)==null||ue.focus("first"):H.key==="End"&&((le=T.value)==null||le.focus("last"));const U=1e3;if(e.multiple||!mm(H))return;const Y=performance.now();Y-_>U&&(y=""),y+=H.key.toLowerCase(),_=Y;const J=u.value.find(be=>be.title.toLowerCase().startsWith(y));if(J!==void 0){d.value=[J];const be=b.value.indexOf(J);yt&&window.requestAnimationFrame(()=>{var ae;be>=0&&((ae=o.value)==null||ae.scrollToIndex(be))})}}function k(H){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!H.props.disabled)if(e.multiple){const Y=d.value.findIndex(ue=>e.valueComparator(ue.value,H.value)),J=U??!~Y;if(~Y){const ue=J?[...d.value,H]:[...d.value];ue.splice(Y,1),d.value=ue}else J&&(d.value=[...d.value,H])}else{const Y=U!==!1;d.value=Y?[H]:[],ht(()=>{l.value=!1})}}function L(H){var U;(U=T.value)!=null&&U.$el.contains(H.relatedTarget)||(l.value=!1)}function V(){var H;e.eager&&((H=o.value)==null||H.calculateVisibleItems())}function N(){var H;p.value&&((H=a.value)==null||H.focus())}function $(H){p.value=!0}function z(H){if(H==null)d.value=[];else if(Kc(a.value,":autofill")||Kc(a.value,":-webkit-autofill")){const U=u.value.find(Y=>Y.title===H);U&&k(U)}else a.value&&(a.value.value="")}return Ce(l,()=>{if(!e.hideSelected&&l.value&&d.value.length){const H=b.value.findIndex(U=>d.value.some(Y=>e.valueComparator(Y.value,U.value)));yt&&window.requestAnimationFrame(()=>{var U;H>=0&&((U=o.value)==null||U.scrollToIndex(H))})}}),Ce(()=>e.items,(H,U)=>{l.value||p.value&&!U.length&&H.length&&(l.value=!0)}),ge(()=>{const H=!!(e.chips||n.chip),U=!!(!e.hideNoData||b.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Y=d.value.length>0,J=ou.filterProps(e),ue=Y||!p.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return I(ou,ve({ref:a},J,{modelValue:d.value.map(le=>le.props.value).join(", "),"onUpdate:modelValue":z,focused:p.value,"onUpdate:focused":le=>p.value=le,validationValue:d.externalValue,counterValue:v.value,dirty:Y,class:["v-select",{"v-select--active-menu":l.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":d.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:ue,"onClick:clear":w,"onMousedown:control":A,onBlur:L,onKeydown:P,"aria-label":r(m.value),title:r(m.value)}),{...n,default:()=>I(ke,null,[I(ef,ve({ref:i,modelValue:l.value,"onUpdate:modelValue":le=>l.value=le,activator:"parent",contentClass:"v-select__content",disabled:x.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:V,onAfterLeave:N},S.value),{default:()=>[U&&I(n0,ve({ref:T,selected:g.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:le=>le.preventDefault(),onKeydown:D,onFocusin:$,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},C,e.listProps),{default:()=>{var le,be,ae;return[(le=n["prepend-item"])==null?void 0:le.call(n),!b.value.length&&!e.hideNoData&&(((be=n["no-data"])==null?void 0:be.call(n))??I(yo,{title:r(e.noDataText)},null)),I(i0,{ref:o,renderless:!0,items:b.value},{default:Z=>{var j;let{item:te,index:se,itemRef:G}=Z;const B=ve(te.props,{ref:G,key:se,onClick:()=>k(te,null)});return((j=n.item)==null?void 0:j.call(n,{item:te,index:se,props:B}))??I(yo,ve(B,{role:"option"}),{prepend:M=>{let{isSelected:O}=M;return I(ke,null,[e.multiple&&!e.hideSelected?I(mo,{key:te.value,modelValue:O,ripple:!1,tabindex:"-1"},null):void 0,te.props.prependAvatar&&I(Pa,{image:te.props.prependAvatar},null),te.props.prependIcon&&I(wt,{icon:te.props.prependIcon},null)])}})}}),(ae=n["append-item"])==null?void 0:ae.call(n)]}})]}),d.value.map((le,be)=>{function ae(G){G.stopPropagation(),G.preventDefault(),k(le,!1)}const Z={"onClick:close":ae,onKeydown(G){G.key!=="Enter"&&G.key!==" "||(G.preventDefault(),G.stopPropagation(),ae(G))},onMousedown(G){G.preventDefault(),G.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},te=H?!!n.chip:!!n.selection,se=te?$y(H?n.chip({item:le,index:be,props:Z}):n.selection({item:le,index:be})):void 0;if(!(te&&!se))return I("div",{key:le.value,class:"v-select__selection"},[H?n.chip?I(lt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:le.title}}},{default:()=>[se]}):I(Sf,ve({key:"chip",closable:e.closableChips,size:"small",text:le.title,disabled:le.props.disabled},Z),null):se??I("span",{class:"v-select__selection-text"},[le.title,e.multiple&&bee==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),Ch=ne({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function CJ(e,t,n){var s;const r=[],a=(n==null?void 0:n.default)??wJ,i=n!=null&&n.filterKeys?jt(n.filterKeys):!1,o=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return r;e:for(let l=0;l0)&&!(n!=null&&n.noFilter)){if(typeof u=="object"){const p=i||Object.keys(c);for(const m of p){const y=bn(c,m),_=(s=n==null?void 0:n.customKeyFilter)==null?void 0:s[m];if(v=_?_(y,t,u):a(y,t,u),v!==-1&&v!==!1)_?f[m]=v:d[m]=v;else if((n==null?void 0:n.filterMode)==="every")continue e}}else v=a(u,t,u),v!==-1&&v!==!1&&(d.title=v);const h=Object.keys(d).length,g=Object.keys(f).length;if(!h&&!g||(n==null?void 0:n.filterMode)==="union"&&g!==o&&!h||(n==null?void 0:n.filterMode)==="intersection"&&(g!==o||!h))continue}r.push({index:l,matches:{...d,...f}})}return r}function Th(e,t,n,r){const a=ye([]),i=ye(new Map),o=E(()=>r!=null&&r.transform?Be(t).map(l=>[l,r.transform(l)]):Be(t));un(()=>{const l=typeof n=="function"?n():Be(n),u=typeof l!="string"&&typeof l!="number"?"":String(l),c=CJ(o.value,u,{customKeyFilter:{...e.customKeyFilter,...Be(r==null?void 0:r.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),f=Be(t),d=[],v=new Map;c.forEach(h=>{let{index:g,matches:p}=h;const m=f[g];d.push(m),v.set(m.value,p)}),a.value=d,i.value=v});function s(l){return i.value.get(l.value)}return{filteredItems:a,filteredMatches:i,getMatches:s}}function TJ(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?I(ke,null,[I("span",{class:"v-autocomplete__unmask"},[e.substr(0,t)]),I("span",{class:"v-autocomplete__mask"},[e.substr(t,n)]),I("span",{class:"v-autocomplete__unmask"},[e.substr(t+n)])]):e}const AJ=ne({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Ch({filterKeys:["title"]}),...xT(),...vn(a0({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ai({transition:!1})},"VAutocomplete"),IJ=fe()({name:"VAutocomplete",props:AJ(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=nn(),a=ye(),i=Te(!1),o=Te(!0),s=Te(!1),l=ye(),u=ye(),c=Ve(e,"menu"),f=E({get:()=>c.value,set:B=>{var j;c.value&&!B&&((j=l.value)!=null&&j.ΨopenChildren.size)||(c.value=B)}}),d=Te(-1),v=E(()=>{var B;return(B=a.value)==null?void 0:B.color}),h=E(()=>f.value?e.closeText:e.openText),{items:g,transformIn:p,transformOut:m}=gT(e),{textColorClasses:y,textColorStyles:_}=Kn(v),b=Ve(e,"search",""),x=Ve(e,"modelValue",[],B=>p(B===null?[null]:jt(B)),B=>{const j=m(B);return e.multiple?j:j[0]??null}),S=E(()=>typeof e.counterValue=="function"?e.counterValue(x.value):typeof e.counterValue=="number"?e.counterValue:x.value.length),T=t0(),{filteredItems:C,getMatches:w}=Th(e,g,()=>o.value?"":b.value),A=E(()=>e.hideSelected?C.value.filter(B=>!x.value.some(j=>j.value===B.value)):C.value),D=E(()=>!!(e.chips||n.chip)),P=E(()=>D.value||!!n.selection),k=E(()=>x.value.map(B=>B.props.value)),L=E(()=>{var j;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&b.value===((j=A.value[0])==null?void 0:j.title))&&A.value.length>0&&!o.value&&!s.value}),V=E(()=>e.hideNoData&&!A.value.length||e.readonly||(T==null?void 0:T.isReadonly.value)),N=ye(),$=ST(N,a);function z(B){e.openOnClear&&(f.value=!0),b.value=""}function H(){V.value||(f.value=!0)}function U(B){V.value||(i.value&&(B.preventDefault(),B.stopPropagation()),f.value=!f.value)}function Y(B){var j;mm(B)&&((j=a.value)==null||j.focus())}function J(B){var O,X,K;if(e.readonly||T!=null&&T.isReadonly.value)return;const j=a.value.selectionStart,M=x.value.length;if((d.value>-1||["Enter","ArrowDown","ArrowUp"].includes(B.key))&&B.preventDefault(),["Enter","ArrowDown"].includes(B.key)&&(f.value=!0),["Escape"].includes(B.key)&&(f.value=!1),L.value&&["Enter","Tab"].includes(B.key)&&!x.value.some(q=>{let{value:re}=q;return re===A.value[0].value})&&G(A.value[0]),B.key==="ArrowDown"&&L.value&&((O=N.value)==null||O.focus("next")),["Backspace","Delete"].includes(B.key)){if(!e.multiple&&P.value&&x.value.length>0&&!b.value)return G(x.value[0],!1);if(~d.value){const q=d.value;G(x.value[d.value],!1),d.value=q>=M-1?M-2:q}else B.key==="Backspace"&&!b.value&&(d.value=M-1)}if(e.multiple){if(B.key==="ArrowLeft"){if(d.value<0&&j>0)return;const q=d.value>-1?d.value-1:M-1;x.value[q]?d.value=q:(d.value=-1,a.value.setSelectionRange((X=b.value)==null?void 0:X.length,(K=b.value)==null?void 0:K.length))}if(B.key==="ArrowRight"){if(d.value<0)return;const q=d.value+1;x.value[q]?d.value=q:(d.value=-1,a.value.setSelectionRange(0,0))}}}function ue(B){if(Kc(a.value,":autofill")||Kc(a.value,":-webkit-autofill")){const j=g.value.find(M=>M.title===B.target.value);j&&G(j)}}function le(){var B;e.eager&&((B=u.value)==null||B.calculateVisibleItems())}function be(){var B;i.value&&(o.value=!0,(B=a.value)==null||B.focus())}function ae(B){i.value=!0,setTimeout(()=>{s.value=!0})}function Z(B){s.value=!1}function te(B){(B==null||B===""&&!e.multiple&&!P.value)&&(x.value=[])}const se=Te(!1);function G(B){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!B||B.props.disabled))if(e.multiple){const M=x.value.findIndex(X=>e.valueComparator(X.value,B.value)),O=j??!~M;if(~M){const X=O?[...x.value,B]:[...x.value];X.splice(M,1),x.value=X}else O&&(x.value=[...x.value,B]);e.clearOnSelect&&(b.value="")}else{const M=j!==!1;x.value=M?[B]:[],b.value=M&&!P.value?B.title:"",ht(()=>{f.value=!1,o.value=!0})}}return Ce(i,(B,j)=>{var M;B!==j&&(B?(se.value=!0,b.value=e.multiple||P.value?"":String(((M=x.value.at(-1))==null?void 0:M.props.title)??""),o.value=!0,ht(()=>se.value=!1)):(!e.multiple&&b.value==null&&(x.value=[]),f.value=!1,x.value.some(O=>{let{title:X}=O;return X===b.value})||(b.value=""),d.value=-1))}),Ce(b,B=>{!i.value||se.value||(B&&(f.value=!0),o.value=!B)}),Ce(f,()=>{if(!e.hideSelected&&f.value&&x.value.length){const B=A.value.findIndex(j=>x.value.some(M=>j.value===M.value));yt&&window.requestAnimationFrame(()=>{var j;B>=0&&((j=u.value)==null||j.scrollToIndex(B))})}}),Ce(()=>e.items,(B,j)=>{f.value||i.value&&!j.length&&B.length&&(f.value=!0)}),ge(()=>{const B=!!(!e.hideNoData||A.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),j=x.value.length>0,M=ou.filterProps(e);return I(ou,ve({ref:a},M,{modelValue:b.value,"onUpdate:modelValue":[O=>b.value=O,te],focused:i.value,"onUpdate:focused":O=>i.value=O,validationValue:x.externalValue,counterValue:S.value,dirty:j,onChange:ue,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":f.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!P.value,"v-autocomplete--selecting-index":d.value>-1},e.class],style:e.style,readonly:e.readonly,placeholder:j?void 0:e.placeholder,"onClick:clear":z,"onMousedown:control":H,onKeydown:J}),{...n,default:()=>I(ke,null,[I(ef,ve({ref:l,modelValue:f.value,"onUpdate:modelValue":O=>f.value=O,activator:"parent",contentClass:"v-autocomplete__content",disabled:V.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:le,onAfterLeave:be},e.menuProps),{default:()=>[B&&I(n0,ve({ref:N,selected:k.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:O=>O.preventDefault(),onKeydown:Y,onFocusin:ae,onFocusout:Z,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},$,e.listProps),{default:()=>{var O,X,K;return[(O=n["prepend-item"])==null?void 0:O.call(n),!A.value.length&&!e.hideNoData&&(((X=n["no-data"])==null?void 0:X.call(n))??I(yo,{title:r(e.noDataText)},null)),I(i0,{ref:u,renderless:!0,items:A.value},{default:q=>{var Q;let{item:re,index:pe,itemRef:F}=q;const W=ve(re.props,{ref:F,key:pe,active:L.value&&pe===0?!0:void 0,onClick:()=>G(re,null)});return((Q=n.item)==null?void 0:Q.call(n,{item:re,index:pe,props:W}))??I(yo,ve(W,{role:"option"}),{prepend:_e=>{let{isSelected:xe}=_e;return I(ke,null,[e.multiple&&!e.hideSelected?I(mo,{key:re.value,modelValue:xe,ripple:!1,tabindex:"-1"},null):void 0,re.props.prependAvatar&&I(Pa,{image:re.props.prependAvatar},null),re.props.prependIcon&&I(wt,{icon:re.props.prependIcon},null)])},title:()=>{var _e,xe;return o.value?re.title:TJ(re.title,(_e=w(re))==null?void 0:_e.title,((xe=b.value)==null?void 0:xe.length)??0)}})}}),(K=n["append-item"])==null?void 0:K.call(n)]}})]}),x.value.map((O,X)=>{function K(F){F.stopPropagation(),F.preventDefault(),G(O,!1)}const q={"onClick:close":K,onKeydown(F){F.key!=="Enter"&&F.key!==" "||(F.preventDefault(),F.stopPropagation(),K(F))},onMousedown(F){F.preventDefault(),F.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},re=D.value?!!n.chip:!!n.selection,pe=re?$y(D.value?n.chip({item:O,index:X,props:q}):n.selection({item:O,index:X})):void 0;if(!(re&&!pe))return I("div",{key:O.value,class:["v-autocomplete__selection",X===d.value&&["v-autocomplete__selection--selected",y.value]],style:X===d.value?_.value:{}},[D.value?n.chip?I(lt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:O.title}}},{default:()=>[pe]}):I(Sf,ve({key:"chip",closable:e.closableChips,size:"small",text:O.title,disabled:O.props.disabled},q),null):pe??I("span",{class:"v-autocomplete__selection-text"},[O.title,e.multiple&&X(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(c)?+(e.offsetY??0):["left","right"].includes(c)?+(e.offsetX??0):0));return ge(()=>{const c=Number(e.content),f=!e.max||isNaN(c)?e.content:c<=+e.max?c:`${e.max}+`,[d,v]=F1(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return I(e.tag,ve({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},v,{style:e.style}),{default:()=>{var h,g;return[I("div",{class:"v-badge__wrapper"},[(g=(h=t.slots).default)==null?void 0:g.call(h),I(lr,{transition:e.transition},{default:()=>{var p,m;return[Zt(I("span",ve({class:["v-badge__badge",l.value,n.value,a.value,o.value],style:[r.value,s.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":i(e.label,c),"aria-live":"polite",role:"status"},d),[e.dot?void 0:t.slots.badge?(m=(p=t.slots).badge)==null?void 0:m.call(p):e.icon?I(wt,{icon:e.icon},null):f]),[[Ma,e.modelValue]])]}})])]}})}),{}}}),kJ=ne({color:String,density:String,...Me()},"VBannerActions"),QF=fe()({name:"VBannerActions",props:kJ(),setup(e,t){let{slots:n}=t;return Kt({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),ge(()=>{var r;return I("div",{class:["v-banner-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),e5=zi("v-banner-text"),MJ=ne({avatar:String,bgColor:String,color:String,icon:Ye,lines:String,stacked:Boolean,sticky:Boolean,text:String,...Ur(),...Me(),...Nn(),...gn(),...Su({mobile:null}),...An(),...Do(),...yf(),...Yt(),...nt(),...gt()},"VBanner"),LJ=fe()({name:"VBanner",props:MJ(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(e,"bgColor"),{borderClasses:i}=oa(e),{densityClasses:o}=dr(e),{displayClasses:s,mobile:l}=Wr(e),{dimensionStyles:u}=pn(e),{elevationClasses:c}=Un(e),{locationStyles:f}=Pu(e),{positionClasses:d}=_f(e),{roundedClasses:v}=Qt(e),{themeClasses:h}=Ct(e),g=oe(e,"color"),p=oe(e,"density");Kt({VBannerActions:{color:g,density:p}}),ge(()=>{const m=!!(e.text||n.text),y=!!(e.avatar||e.icon),_=!!(y||n.prepend);return I(e.tag,{class:["v-banner",{"v-banner--stacked":e.stacked||l.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},h.value,r.value,i.value,o.value,s.value,c.value,d.value,v.value,e.class],style:[a.value,u.value,f.value,e.style],role:"banner"},{default:()=>{var b;return[_&&I("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?I(lt,{key:"prepend-defaults",disabled:!y,defaults:{VAvatar:{color:g.value,density:p.value,icon:e.icon,image:e.avatar}}},n.prepend):I(Pa,{key:"prepend-avatar",color:g.value,density:p.value,icon:e.icon,image:e.avatar},null)]),I("div",{class:"v-banner__content"},[m&&I(e5,{key:"text"},{default:()=>{var x;return[((x=n.text)==null?void 0:x.call(n))??e.text]}}),(b=n.default)==null?void 0:b.call(n)]),n.actions&&I(QF,{key:"actions"},n.actions)]}})})}}),EJ=ne({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...Ur(),...Me(),...Nn(),...An(),...Yt(),...xu({name:"bottom-navigation"}),...nt({tag:"header"}),...Au({selectedClass:"v-btn--selected"}),...gt()},"VBottomNavigation"),RJ=fe()({name:"VBottomNavigation",props:EJ(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=rT(),{borderClasses:a}=oa(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Et(oe(e,"bgColor")),{densityClasses:s}=dr(e),{elevationClasses:l}=Un(e),{roundedClasses:u}=Qt(e),{ssrBootStyles:c}=Cu(),f=E(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),d=Ve(e,"active",e.active),{layoutItemStyles:v}=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:E(()=>"bottom"),layoutSize:E(()=>d.value?f.value:0),elementSize:f,active:d,absolute:oe(e,"absolute")});return Hs(e,cT),Kt({VBtn:{baseColor:oe(e,"baseColor"),color:oe(e,"color"),density:oe(e,"density"),stacked:E(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),ge(()=>I(e.tag,{class:["v-bottom-navigation",{"v-bottom-navigation--active":d.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},r.value,i.value,a.value,s.value,l.value,u.value,e.class],style:[o.value,v.value,{height:De(f.value)},c.value,e.style]},{default:()=>[n.default&&I("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}}),t5=ne({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...xh({origin:"center center",scrollStrategy:"block",transition:{component:jy},zIndex:2400})},"VDialog"),ix=fe()({name:"VDialog",props:t5(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Ve(e,"modelValue"),{scopeId:i}=ku(),o=ye();function s(c){var v,h;const f=c.relatedTarget,d=c.target;if(f!==d&&((v=o.value)!=null&&v.contentEl)&&((h=o.value)!=null&&h.globalTop)&&![document,o.value.contentEl].includes(d)&&!o.value.contentEl.contains(d)){const g=_v(o.value.contentEl);if(!g.length)return;const p=g[0],m=g[g.length-1];f===p?m.focus():p.focus()}}Cn(()=>{document.removeEventListener("focusin",s)}),yt&&Ce(()=>a.value&&e.retainFocus,c=>{c?document.addEventListener("focusin",s):document.removeEventListener("focusin",s)},{immediate:!0});function l(){var c;n("afterEnter"),(c=o.value)!=null&&c.contentEl&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function u(){n("afterLeave")}return Ce(a,async c=>{var f;c||(await ht(),(f=o.value.activatorEl)==null||f.focus({preventScroll:!0}))}),ge(()=>{const c=ki.filterProps(e),f=ve({"aria-haspopup":"dialog"},e.activatorProps),d=ve({tabindex:-1},e.contentProps);return I(ki,ve({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},c,{modelValue:a.value,"onUpdate:modelValue":v=>a.value=v,"aria-modal":"true",activatorProps:f,contentProps:d,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:l,onAfterLeave:u},i),{activator:r.activator,default:function(){for(var v=arguments.length,h=new Array(v),g=0;g{var p;return[(p=r.default)==null?void 0:p.call(r,...h)]}})}})}),Ea({},o)}}),VJ=ne({inset:Boolean,...t5({transition:"bottom-sheet-transition"})},"VBottomSheet"),OJ=fe()({name:"VBottomSheet",props:VJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue");return ge(()=>{const a=ix.filterProps(e);return I(ix,ve(a,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:r.value,"onUpdate:modelValue":i=>r.value=i,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}}),NJ=ne({divider:[Number,String],...Me()},"VBreadcrumbsDivider"),n5=fe()({name:"VBreadcrumbsDivider",props:NJ(),setup(e,t){let{slots:n}=t;return ge(()=>{var r;return I("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((r=n==null?void 0:n.default)==null?void 0:r.call(n))??e.divider])}),{}}}),BJ=ne({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...Me(),..._h(),...nt({tag:"li"})},"VBreadcrumbsItem"),r5=fe()({name:"VBreadcrumbsItem",props:BJ(),setup(e,t){let{slots:n,attrs:r}=t;const a=yh(e,r),i=E(()=>{var u;return e.active||((u=a.isActive)==null?void 0:u.value)}),o=E(()=>i.value?e.activeColor:e.color),{textColorClasses:s,textColorStyles:l}=Kn(o);return ge(()=>I(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":i.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:i.value&&e.activeClass},s.value,e.class],style:[l.value,e.style],"aria-current":i.value?"page":void 0},{default:()=>{var u,c;return[a.isLink.value?I("a",ve({class:"v-breadcrumbs-item--link",onClick:a.navigate},a.linkProps),[((c=n.default)==null?void 0:c.call(n))??e.title]):((u=n.default)==null?void 0:u.call(n))??e.title]}})),{}}}),zJ=ne({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:Ye,items:{type:Array,default:()=>[]},...Me(),...Nn(),...Yt(),...nt({tag:"ul"})},"VBreadcrumbs"),FJ=fe()({name:"VBreadcrumbs",props:zJ(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(oe(e,"bgColor")),{densityClasses:i}=dr(e),{roundedClasses:o}=Qt(e);Kt({VBreadcrumbsDivider:{divider:oe(e,"divider")},VBreadcrumbsItem:{activeClass:oe(e,"activeClass"),activeColor:oe(e,"activeColor"),color:oe(e,"color"),disabled:oe(e,"disabled")}});const s=E(()=>e.items.map(l=>typeof l=="string"?{item:{title:l},raw:l}:{item:l,raw:l}));return ge(()=>{const l=!!(n.prepend||e.icon);return I(e.tag,{class:["v-breadcrumbs",r.value,i.value,o.value,e.class],style:[a.value,e.style]},{default:()=>{var u;return[l&&I("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?I(lt,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):I(wt,{key:"prepend-icon",start:!0,icon:e.icon},null)]),s.value.map((c,f,d)=>{var g;let{item:v,raw:h}=c;return I(ke,null,[((g=n.item)==null?void 0:g.call(n,{item:v,index:f}))??I(r5,ve({key:f,disabled:f>=d.length-1},typeof v=="string"?{title:v}:v),{default:n.title?()=>{var p;return(p=n.title)==null?void 0:p.call(n,{item:v,index:f})}:void 0}),f{var p;return(p=n.divider)==null?void 0:p.call(n,{item:h,index:f})}:void 0})])}),(u=n.default)==null?void 0:u.call(n)]}})}),{}}}),a5=fe()({name:"VCardActions",props:Me(),setup(e,t){let{slots:n}=t;return Kt({VBtn:{slim:!0,variant:"text"}}),ge(()=>{var r;return I("div",{class:["v-card-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),HJ=ne({opacity:[Number,String],...Me(),...nt()},"VCardSubtitle"),i5=fe()({name:"VCardSubtitle",props:HJ(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-card-subtitle",e.class],style:[{"--v-card-subtitle-opacity":e.opacity},e.style]},n)),{}}}),o5=zi("v-card-title"),GJ=ne({appendAvatar:String,appendIcon:Ye,prependAvatar:String,prependIcon:Ye,subtitle:[String,Number],title:[String,Number],...Me(),...Nn()},"VCardItem"),s5=fe()({name:"VCardItem",props:GJ(),setup(e,t){let{slots:n}=t;return ge(()=>{var u;const r=!!(e.prependAvatar||e.prependIcon),a=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),s=!!(e.title!=null||n.title),l=!!(e.subtitle!=null||n.subtitle);return I("div",{class:["v-card-item",e.class],style:e.style},[a&&I("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?I(lt,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):I(ke,null,[e.prependAvatar&&I(Pa,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&I(wt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),I("div",{class:"v-card-item__content"},[s&&I(o5,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??e.title]}}),l&&I(i5,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??e.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),o&&I("div",{key:"append",class:"v-card-item__append"},[n.append?I(lt,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):I(ke,null,[e.appendIcon&&I(wt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&I(Pa,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])])}),{}}}),$J=ne({opacity:[Number,String],...Me(),...nt()},"VCardText"),l5=fe()({name:"VCardText",props:$J(),setup(e,t){let{slots:n}=t;return ge(()=>I(e.tag,{class:["v-card-text",e.class],style:[{"--v-card-text-opacity":e.opacity},e.style]},n)),{}}}),WJ=ne({appendAvatar:String,appendIcon:Ye,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Ye,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...Ur(),...Me(),...Nn(),...gn(),...An(),...Jy(),...Do(),...yf(),...Yt(),..._h(),...nt(),...gt(),...La({variant:"elevated"})},"VCard"),UJ=fe()({name:"VCard",directives:{Ripple:Po},props:WJ(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=Ct(e),{borderClasses:i}=oa(e),{colorClasses:o,colorStyles:s,variantClasses:l}=Tu(e),{densityClasses:u}=dr(e),{dimensionStyles:c}=pn(e),{elevationClasses:f}=Un(e),{loaderClasses:d}=ph(e),{locationStyles:v}=Pu(e),{positionClasses:h}=_f(e),{roundedClasses:g}=Qt(e),p=yh(e,n),m=E(()=>e.link!==!1&&p.isLink.value),y=E(()=>!e.disabled&&e.link!==!1&&(e.link||p.isClickable.value));return ge(()=>{const _=m.value?"a":e.tag,b=!!(r.title||e.title!=null),x=!!(r.subtitle||e.subtitle!=null),S=b||x,T=!!(r.append||e.appendAvatar||e.appendIcon),C=!!(r.prepend||e.prependAvatar||e.prependIcon),w=!!(r.image||e.image),A=S||C||T,D=!!(r.text||e.text!=null);return Zt(I(_,ve({class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":y.value},a.value,i.value,o.value,u.value,f.value,d.value,h.value,g.value,l.value,e.class],style:[s.value,c.value,v.value,e.style],onClick:y.value&&p.navigate,tabindex:e.disabled?-1:void 0},p.linkProps),{default:()=>{var P;return[w&&I("div",{key:"image",class:"v-card__image"},[r.image?I(lt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):I(po,{key:"image-img",cover:!0,src:e.image},null)]),I(mh,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),A&&I(s5,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),D&&I(l5,{key:"text"},{default:()=>{var k;return[((k=r.text)==null?void 0:k.call(r))??e.text]}}),(P=r.default)==null?void 0:P.call(r),r.actions&&I(a5,null,{default:r.actions}),Fs(y.value,"v-card")]}}),[[na("ripple"),y.value&&e.ripple]])}),{}}}),YJ=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:a}=e,i=.5,o=16;e.offsetX=n-t,e.offsetY=a-r,Math.abs(e.offsetY)t+o&&e.right(e)),Math.abs(e.offsetX)r+o&&e.down(e))};function XJ(e,t){var r;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(r=t.start)==null||r.call(t,{originalEvent:e,...t})}function jJ(e,t){var r;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(r=t.end)==null||r.call(t,{originalEvent:e,...t}),YJ(t)}function ZJ(e,t){var r;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(r=t.move)==null||r.call(t,{originalEvent:e,...t})}function KJ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>XJ(n,t),touchend:n=>jJ(n,t),touchmove:n=>ZJ(n,t)}}function qJ(e,t){var s;const n=t.value,r=n!=null&&n.parent?e.parentElement:e,a=(n==null?void 0:n.options)??{passive:!0},i=(s=t.instance)==null?void 0:s.$.uid;if(!r||!i)return;const o=KJ(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[i]=o,vz(o).forEach(l=>{r.addEventListener(l,o[l],a)})}function JJ(e,t){var i,o;const n=(i=t.value)!=null&&i.parent?e.parentElement:e,r=(o=t.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const a=n._touchHandlers[r];vz(a).forEach(s=>{n.removeEventListener(s,a[s])}),delete n._touchHandlers[r]}const CT={mounted:qJ,unmounted:JJ},u5=Symbol.for("vuetify:v-window"),c5=Symbol.for("vuetify:v-window-group"),o0=ne({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...Me(),...nt(),...gt()},"VWindow"),su=fe()({name:"VWindow",directives:{Touch:CT},props:o0(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{isRtl:a}=Tn(),{t:i}=nn(),o=Hs(e,c5),s=ye(),l=E(()=>a.value?!e.reverse:e.reverse),u=Te(!1),c=E(()=>{const b=e.direction==="vertical"?"y":"x",S=(l.value?!u.value:u.value)?"-reverse":"";return`v-window-${b}${S}-transition`}),f=Te(0),d=ye(void 0),v=E(()=>o.items.value.findIndex(b=>o.selected.value.includes(b.id)));Ce(v,(b,x)=>{const S=o.items.value.length,T=S-1;S<=2?u.value=be.continuous||v.value!==0),g=E(()=>e.continuous||v.value!==o.items.value.length-1);function p(){h.value&&o.prev()}function m(){g.value&&o.next()}const y=E(()=>{const b=[],x={icon:a.value?e.nextIcon:e.prevIcon,class:`v-window__${l.value?"right":"left"}`,onClick:o.prev,"aria-label":i("$vuetify.carousel.prev")};b.push(h.value?n.prev?n.prev({props:x}):I(xt,x,null):I("div",null,null));const S={icon:a.value?e.prevIcon:e.nextIcon,class:`v-window__${l.value?"left":"right"}`,onClick:o.next,"aria-label":i("$vuetify.carousel.next")};return b.push(g.value?n.next?n.next({props:S}):I(xt,S,null):I("div",null,null)),b}),_=E(()=>e.touch===!1?e.touch:{...{left:()=>{l.value?p():m()},right:()=>{l.value?m():p()},start:x=>{let{originalEvent:S}=x;S.stopPropagation()}},...e.touch===!0?{}:e.touch});return ge(()=>Zt(I(e.tag,{ref:s,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},r.value,e.class],style:e.style},{default:()=>{var b,x;return[I("div",{class:"v-window__container",style:{height:d.value}},[(b=n.default)==null?void 0:b.call(n,{group:o}),e.showArrows!==!1&&I("div",{class:"v-window__controls"},[y.value])]),(x=n.additional)==null?void 0:x.call(n,{group:o})]}}),[[na("touch"),_.value]])),{group:o}}}),QJ=ne({color:String,cycle:Boolean,delimiterIcon:{type:Ye,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...o0({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),eQ=fe()({name:"VCarousel",props:QJ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{t:a}=nn(),i=ye();let o=-1;Ce(r,l),Ce(()=>e.interval,l),Ce(()=>e.cycle,u=>{u?l():window.clearTimeout(o)}),wn(s);function s(){!e.cycle||!i.value||(o=window.setTimeout(i.value.group.next,+e.interval>0?+e.interval:6e3))}function l(){window.clearTimeout(o),window.requestAnimationFrame(s)}return ge(()=>{const u=su.filterProps(e);return I(su,ve({ref:i},u,{modelValue:r.value,"onUpdate:modelValue":c=>r.value=c,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:De(e.height)},e.style]}),{default:n.default,additional:c=>{let{group:f}=c;return I(ke,null,[!e.hideDelimiters&&I("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[f.items.value.length>0&&I(lt,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[f.items.value.map((d,v)=>{const h={id:`carousel-item-${d.id}`,"aria-label":a("$vuetify.carousel.ariaLabel.delimiter",v+1,f.items.value.length),class:["v-carousel__controls__item",f.isSelected(d.id)&&"v-btn--active"],onClick:()=>f.select(d.id,!0)};return n.item?n.item({props:h,item:d}):I(xt,ve(d,h),null)})]})]),e.progress&&I(qy,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(f.getItemIndex(r.value)+1)/f.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),s0=ne({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...Me(),...Iu(),...yT()},"VWindowItem"),lu=fe()({name:"VWindowItem",directives:{Touch:CT},props:s0(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=rt(u5),a=Du(e,c5),{isBooted:i}=Cu();if(!r||!a)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const o=Te(!1),s=E(()=>i.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function l(){!o.value||!r||(o.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){var h;o.value||!r||(o.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=De((h=r.rootRef.value)==null?void 0:h.clientHeight)),r.transitionCount.value+=1)}function c(){l()}function f(h){o.value&&ht(()=>{!s.value||!o.value||!r||(r.transitionHeight.value=De(h.clientHeight))})}const d=E(()=>{const h=r.isReversed.value?e.reverseTransition:e.transition;return s.value?{name:typeof h!="string"?r.transition.value:h,onBeforeEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:l,onLeaveCancelled:c,onEnter:f}:!1}),{hasContent:v}=_T(e,a.isSelected);return ge(()=>I(lr,{transition:d.value,disabled:!i.value},{default:()=>{var h;return[Zt(I("div",{class:["v-window-item",a.selectedClass.value,e.class],style:e.style},[v.value&&((h=n.default)==null?void 0:h.call(n))]),[[Ma,a.isSelected.value]])]}})),{groupItem:a}}}),tQ=ne({...nF(),...s0()},"VCarouselItem"),nQ=fe()({name:"VCarouselItem",inheritAttrs:!1,props:tQ(),setup(e,t){let{slots:n,attrs:r}=t;ge(()=>{const a=po.filterProps(e),i=lu.filterProps(e);return I(lu,ve({class:["v-carousel-item",e.class]},i),{default:()=>[I(po,ve(r,a),n)]})})}}),rQ=zi("v-code","code"),aQ=ne({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...Me()},"VColorPickerCanvas"),iQ=aa({name:"VColorPickerCanvas",props:aQ(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const r=Te(!1),a=ye(),i=Te(parseFloat(e.width)),o=Te(parseFloat(e.height)),s=ye({x:0,y:0}),l=E({get:()=>s.value,set(p){var _,b;if(!a.value)return;const{x:m,y}=p;s.value=p,n("update:color",{h:((_=e.color)==null?void 0:_.h)??0,s:sn(m,0,i.value)/i.value,v:1-sn(y,0,o.value)/o.value,a:((b=e.color)==null?void 0:b.a)??1})}}),u=E(()=>{const{x:p,y:m}=l.value,y=parseInt(e.dotSize,10)/2;return{width:De(e.dotSize),height:De(e.dotSize),transform:`translate(${De(p-y)}, ${De(m-y)})`}}),{resizeRef:c}=ti(p=>{var _;if(!((_=c.el)!=null&&_.offsetParent))return;const{width:m,height:y}=p[0].contentRect;i.value=m,o.value=y});function f(p,m,y){const{left:_,top:b,width:x,height:S}=y;l.value={x:sn(p-_,0,x),y:sn(m-b,0,S)}}function d(p){p.type==="mousedown"&&p.preventDefault(),!e.disabled&&(v(p),window.addEventListener("mousemove",v),window.addEventListener("mouseup",h),window.addEventListener("touchmove",v),window.addEventListener("touchend",h))}function v(p){if(e.disabled||!a.value)return;r.value=!0;const m=hj(p);f(m.clientX,m.clientY,a.value.getBoundingClientRect())}function h(){window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",h),window.removeEventListener("touchmove",v),window.removeEventListener("touchend",h)}function g(){var b;if(!a.value)return;const p=a.value,m=p.getContext("2d");if(!m)return;const y=m.createLinearGradient(0,0,p.width,0);y.addColorStop(0,"hsla(0, 0%, 100%, 1)"),y.addColorStop(1,`hsla(${((b=e.color)==null?void 0:b.h)??0}, 100%, 50%, 1)`),m.fillStyle=y,m.fillRect(0,0,p.width,p.height);const _=m.createLinearGradient(0,0,0,p.height);_.addColorStop(0,"hsla(0, 0%, 0%, 0)"),_.addColorStop(1,"hsla(0, 0%, 0%, 1)"),m.fillStyle=_,m.fillRect(0,0,p.width,p.height)}return Ce(()=>{var p;return(p=e.color)==null?void 0:p.h},g,{immediate:!0}),Ce(()=>[i.value,o.value],(p,m)=>{g(),s.value={x:l.value.x*p[0]/m[0],y:l.value.y*p[1]/m[1]}},{flush:"post"}),Ce(()=>e.color,()=>{if(r.value){r.value=!1;return}s.value=e.color?{x:e.color.s*i.value,y:(1-e.color.v)*o.value}:{x:0,y:0}},{deep:!0,immediate:!0}),wn(()=>g()),ge(()=>I("div",{ref:c,class:["v-color-picker-canvas",e.class],style:e.style,onMousedown:d,onTouchstartPassive:d},[I("canvas",{ref:a,width:i.value,height:o.value},null),e.color&&I("div",{class:["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}],style:u.value},null)])),{}}});function oQ(e,t){if(t){const{a:n,...r}=e;return r}return e}function sQ(e,t){if(t==null||typeof t=="string"){const n=kz(e);return e.a===1?n.slice(0,7):n}if(typeof t=="object"){let n;return kl(t,["r","g","b"])?n=go(e):kl(t,["h","s","l"])?n=Cz(e):kl(t,["h","s","v"])&&(n=e),oQ(n,!kl(t,["a"])&&e.a===1)}return e}const Tc={h:0,s:0,v:0,a:1},ox={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)})},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)})},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:go,from:Wy};var $O;const lQ={...ox,inputs:($O=ox.inputs)==null?void 0:$O.slice(0,3)},sx={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)})},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)})},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:Cz,from:KC},uQ={...sx,inputs:sx.inputs.slice(0,3)},f5={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t}],to:kz,from:Pz},cQ={...f5,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t}]},Yl={rgb:lQ,rgba:ox,hsl:uQ,hsla:sx,hex:cQ,hexa:f5},fQ=e=>{let{label:t,...n}=e;return I("div",{class:"v-color-picker-edit__input"},[I("input",n,null),I("span",null,[t])])},dQ=ne({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Yl).includes(e)},modes:{type:Array,default:()=>Object.keys(Yl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Yl).includes(t))},...Me()},"VColorPickerEdit"),vQ=aa({name:"VColorPickerEdit",props:dQ(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const r=E(()=>e.modes.map(i=>({...Yl[i],name:i}))),a=E(()=>{var s;const i=r.value.find(l=>l.name===e.mode);if(!i)return[];const o=e.color?i.to(e.color):null;return(s=i.inputs)==null?void 0:s.map(l=>{let{getValue:u,getColor:c,...f}=l;return{...i.inputProps,...f,disabled:e.disabled,value:o&&u(o),onChange:d=>{const v=d.target;v&&n("update:color",i.from(c(o??i.to(Tc),v.value)))}}})});return ge(()=>{var i;return I("div",{class:["v-color-picker-edit",e.class],style:e.style},[(i=a.value)==null?void 0:i.map(o=>I(fQ,o,null)),r.value.length>1&&I(xt,{icon:"$unfold",size:"x-small",variant:"plain",onClick:()=>{const o=r.value.findIndex(s=>s.name===e.mode);n("update:mode",r.value[(o+1)%r.value.length].name)}},null)])}),{}}}),TT=Symbol.for("vuetify:v-slider");function lx(e,t,n){const r=n==="vertical",a=t.getBoundingClientRect(),i="touches"in e?e.touches[0]:e;return r?i.clientY-(a.top+a.height/2):i.clientX-(a.left+a.width/2)}function hQ(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const d5=ne({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...Yt(),...An({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),v5=e=>{const t=E(()=>parseFloat(e.min)),n=E(()=>parseFloat(e.max)),r=E(()=>+e.step>0?parseFloat(e.step):0),a=E(()=>Math.max(FP(r.value),FP(t.value)));function i(o){if(o=parseFloat(o),r.value<=0)return o;const s=sn(o,t.value,n.value),l=t.value%r.value,u=Math.round((s-l)/r.value)*r.value+l;return parseFloat(Math.min(u,n.value).toFixed(a.value))}return{min:t,max:n,step:r,decimals:a,roundValue:i}},h5=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:a,onSliderEnd:i,getActiveThumb:o}=e;const{isRtl:s}=Tn(),l=oe(t,"reverse"),u=E(()=>t.direction==="vertical"),c=E(()=>u.value!==l.value),{min:f,max:d,step:v,decimals:h,roundValue:g}=n,p=E(()=>parseInt(t.thumbSize,10)),m=E(()=>parseInt(t.tickSize,10)),y=E(()=>parseInt(t.trackSize,10)),_=E(()=>(d.value-f.value)/v.value),b=oe(t,"disabled"),x=E(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),S=E(()=>t.error||t.disabled?void 0:t.trackColor??t.color),T=E(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),C=Te(!1),w=Te(0),A=ye(),D=ye();function P(ae){var X;const Z=t.direction==="vertical",te=Z?"top":"left",se=Z?"height":"width",G=Z?"clientY":"clientX",{[te]:B,[se]:j}=(X=A.value)==null?void 0:X.$el.getBoundingClientRect(),M=hQ(ae,G);let O=Math.min(Math.max((M-B-w.value)/j,0),1)||0;return(Z?c.value:c.value!==s.value)&&(O=1-O),g(f.value+O*(d.value-f.value))}const k=ae=>{i({value:P(ae)}),C.value=!1,w.value=0},L=ae=>{D.value=o(ae),D.value&&(D.value.focus(),C.value=!0,D.value.contains(ae.target)?w.value=lx(ae,D.value,t.direction):(w.value=0,a({value:P(ae)})),r({value:P(ae)}))},V={passive:!0,capture:!0};function N(ae){a({value:P(ae)})}function $(ae){ae.stopPropagation(),ae.preventDefault(),k(ae),window.removeEventListener("mousemove",N,V),window.removeEventListener("mouseup",$)}function z(ae){var Z;k(ae),window.removeEventListener("touchmove",N,V),(Z=ae.target)==null||Z.removeEventListener("touchend",z)}function H(ae){var Z;L(ae),window.addEventListener("touchmove",N,V),(Z=ae.target)==null||Z.addEventListener("touchend",z,{passive:!1})}function U(ae){ae.preventDefault(),L(ae),window.addEventListener("mousemove",N,V),window.addEventListener("mouseup",$,{passive:!1})}const Y=ae=>{const Z=(ae-f.value)/(d.value-f.value)*100;return sn(isNaN(Z)?0:Z,0,100)},J=oe(t,"showTicks"),ue=E(()=>J.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(ae=>({value:ae,position:Y(ae),label:ae.toString()})):Object.keys(t.ticks).map(ae=>({value:parseFloat(ae),position:Y(parseFloat(ae)),label:t.ticks[ae]})):_.value!==1/0?xi(_.value+1).map(ae=>{const Z=f.value+ae*v.value;return{value:Z,position:Y(Z)}}):[]:[]),le=E(()=>ue.value.some(ae=>{let{label:Z}=ae;return!!Z})),be={activeThumbRef:D,color:oe(t,"color"),decimals:h,disabled:b,direction:oe(t,"direction"),elevation:oe(t,"elevation"),hasLabels:le,isReversed:l,indexFromEnd:c,min:f,max:d,mousePressed:C,numTicks:_,onSliderMousedown:U,onSliderTouchstart:H,parsedTicks:ue,parseMouseMove:P,position:Y,readonly:oe(t,"readonly"),rounded:oe(t,"rounded"),roundValue:g,showTicks:J,startOffset:w,step:v,thumbSize:p,thumbColor:x,thumbLabel:oe(t,"thumbLabel"),ticks:oe(t,"ticks"),tickSize:m,trackColor:S,trackContainerRef:A,trackFillColor:T,trackSize:y,vertical:u};return Lt(TT,be),be},gQ=ne({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,...Me()},"VSliderThumb"),ux=fe()({name:"VSliderThumb",directives:{Ripple:Po},props:gQ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=rt(TT),{isRtl:i,rtlClasses:o}=Tn();if(!a)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:s,step:l,disabled:u,thumbSize:c,thumbLabel:f,direction:d,isReversed:v,vertical:h,readonly:g,elevation:p,mousePressed:m,decimals:y,indexFromEnd:_}=a,b=E(()=>u.value?void 0:p.value),{elevationClasses:x}=Un(b),{textColorClasses:S,textColorStyles:T}=Kn(s),{pageup:C,pagedown:w,end:A,home:D,left:P,right:k,down:L,up:V}=z1,N=[C,w,A,D,P,k,L,V],$=E(()=>l.value?[1,2,3]:[1,5,10]);function z(U,Y){if(!N.includes(U.key))return;U.preventDefault();const J=l.value||.1,ue=(e.max-e.min)/J;if([P,k,L,V].includes(U.key)){const be=(h.value?[i.value?P:k,v.value?L:V]:_.value!==i.value?[P,V]:[k,V]).includes(U.key)?1:-1,ae=U.shiftKey?2:U.ctrlKey?1:0;Y=Y+be*J*$.value[ae]}else if(U.key===D)Y=e.min;else if(U.key===A)Y=e.max;else{const le=U.key===w?1:-1;Y=Y-le*J*(ue>100?ue/10:10)}return Math.max(e.min,Math.min(e.max,Y))}function H(U){const Y=z(U,e.modelValue);Y!=null&&r("update:modelValue",Y)}return ge(()=>{const U=De(_.value?100-e.position:e.position,"%");return I("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&m.value},e.class,o.value],style:[{"--v-slider-thumb-position":U,"--v-slider-thumb-size":De(c.value)},e.style],role:"slider",tabindex:u.value?-1:0,"aria-label":e.name,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!g.value,"aria-orientation":d.value,onKeydown:g.value?void 0:H},[I("div",{class:["v-slider-thumb__surface",S.value,x.value],style:{...T.value}},null),Zt(I("div",{class:["v-slider-thumb__ripple",S.value],style:T.value},null),[[na("ripple"),e.ripple,null,{circle:!0,center:!0}]]),I(oT,{origin:"bottom center"},{default:()=>{var Y;return[Zt(I("div",{class:"v-slider-thumb__label-container"},[I("div",{class:["v-slider-thumb__label"]},[I("div",null,[((Y=n["thumb-label"])==null?void 0:Y.call(n,{modelValue:e.modelValue}))??e.modelValue.toFixed(l.value?y.value:1)])])]),[[Ma,f.value&&e.focused||f.value==="always"]])]}})])}),{}}}),pQ=ne({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Me()},"VSliderTrack"),g5=fe()({name:"VSliderTrack",props:pQ(),emits:{},setup(e,t){let{slots:n}=t;const r=rt(TT);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:a,parsedTicks:i,rounded:o,showTicks:s,tickSize:l,trackColor:u,trackFillColor:c,trackSize:f,vertical:d,min:v,max:h,indexFromEnd:g}=r,{roundedClasses:p}=Qt(o),{backgroundColorClasses:m,backgroundColorStyles:y}=Et(c),{backgroundColorClasses:_,backgroundColorStyles:b}=Et(u),x=E(()=>`inset-${d.value?"block":"inline"}-${g.value?"end":"start"}`),S=E(()=>d.value?"height":"width"),T=E(()=>({[x.value]:"0%",[S.value]:"100%"})),C=E(()=>e.stop-e.start),w=E(()=>({[x.value]:De(e.start,"%"),[S.value]:De(C.value,"%")})),A=E(()=>s.value?(d.value?i.value.slice().reverse():i.value).map((P,k)=>{var V;const L=P.value!==v.value&&P.value!==h.value?De(P.position,"%"):void 0;return I("div",{key:P.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":P.position>=e.start&&P.position<=e.stop,"v-slider-track__tick--first":P.value===v.value,"v-slider-track__tick--last":P.value===h.value}],style:{[x.value]:L}},[(P.label||n["tick-label"])&&I("div",{class:"v-slider-track__tick-label"},[((V=n["tick-label"])==null?void 0:V.call(n,{tick:P,index:k}))??P.label])])}):[]);return ge(()=>I("div",{class:["v-slider-track",p.value,e.class],style:[{"--v-slider-track-size":De(f.value),"--v-slider-tick-size":De(l.value)},e.style]},[I("div",{class:["v-slider-track__background",_.value,{"v-slider-track__background--opacity":!!a.value||!c.value}],style:{...T.value,...b.value}},null),I("div",{class:["v-slider-track__fill",m.value],style:{...w.value,...y.value}},null),s.value&&I("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":s.value==="always"}]},[A.value])])),{}}}),mQ=ne({...bh(),...d5(),...Mo(),modelValue:{type:[Number,String],default:0}},"VSlider"),cx=fe()({name:"VSlider",props:mQ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ye(),{rtlClasses:i}=Tn(),o=v5(e),s=Ve(e,"modelValue",void 0,S=>o.roundValue(S??o.min.value)),{min:l,max:u,mousePressed:c,roundValue:f,onSliderMousedown:d,onSliderTouchstart:v,trackContainerRef:h,position:g,hasLabels:p,readonly:m}=h5({props:e,steps:o,onSliderStart:()=>{r("start",s.value)},onSliderEnd:S=>{let{value:T}=S;const C=f(T);s.value=C,r("end",C)},onSliderMove:S=>{let{value:T}=S;return s.value=f(T)},getActiveThumb:()=>{var S;return(S=a.value)==null?void 0:S.$el}}),{isFocused:y,focus:_,blur:b}=ko(e),x=E(()=>g(s.value));return ge(()=>{const S=qn.filterProps(e),T=!!(e.label||n.label||n.prepend);return I(qn,ve({class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||p.value,"v-slider--focused":y.value,"v-slider--pressed":c.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},S,{focused:y.value}),{...n,prepend:T?C=>{var w,A;return I(ke,null,[((w=n.label)==null?void 0:w.call(n,C))??(e.label?I(bf,{id:C.id.value,class:"v-slider__label",text:e.label},null):void 0),(A=n.prepend)==null?void 0:A.call(n,C)])}:void 0,default:C=>{let{id:w,messagesId:A}=C;return I("div",{class:"v-slider__container",onMousedown:m.value?void 0:d,onTouchstartPassive:m.value?void 0:v},[I("input",{id:w.value,name:e.name||w.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:s.value},null),I(g5,{ref:h,start:0,stop:x.value},{"tick-label":n["tick-label"]}),I(ux,{ref:a,"aria-describedby":A.value,focused:y.value,min:l.value,max:u.value,modelValue:s.value,"onUpdate:modelValue":D=>s.value=D,position:x.value,elevation:e.elevation,onFocus:_,onBlur:b,ripple:e.ripple,name:e.name},{"thumb-label":n["thumb-label"]})])}})}),{}}}),yQ=ne({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,...Me()},"VColorPickerPreview"),_Q=aa({name:"VColorPickerPreview",props:yQ(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const r=new AbortController;ch(()=>r.abort());async function a(){if(!OP)return;const i=new window.EyeDropper;try{const o=await i.open({signal:r.signal}),s=Pz(o.sRGBHex);n("update:color",{...e.color??Tc,...s})}catch{}}return ge(()=>{var i,o;return I("div",{class:["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class],style:e.style},[OP&&I("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[I(xt,{onClick:a,icon:"$eyeDropper",variant:"plain",density:"comfortable"},null)]),I("div",{class:"v-color-picker-preview__dot"},[I("div",{style:{background:Az(e.color??Tc)}},null)]),I("div",{class:"v-color-picker-preview__sliders"},[I(cx,{class:"v-color-picker-preview__track v-color-picker-preview__hue",modelValue:(i=e.color)==null?void 0:i.h,"onUpdate:modelValue":s=>n("update:color",{...e.color??Tc,h:s}),step:0,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&I(cx,{class:"v-color-picker-preview__track v-color-picker-preview__alpha",modelValue:((o=e.color)==null?void 0:o.a)??1,"onUpdate:modelValue":s=>n("update:color",{...e.color??Tc,a:s}),step:1/256,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])}),{}}}),bQ={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},SQ={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},xQ={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},wQ={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},CQ={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},TQ={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},AQ={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},IQ={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},DQ={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},PQ={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},kQ={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},MQ={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},LQ={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},EQ={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},RQ={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},VQ={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},OQ={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},NQ={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},BQ={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},zQ={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},FQ={red:bQ,pink:SQ,purple:xQ,deepPurple:wQ,indigo:CQ,blue:TQ,lightBlue:AQ,cyan:IQ,teal:DQ,green:PQ,lightGreen:kQ,lime:MQ,yellow:LQ,amber:EQ,orange:RQ,deepOrange:VQ,brown:OQ,blueGrey:NQ,grey:BQ,shades:zQ},HQ=ne({swatches:{type:Array,default:()=>GQ(FQ)},disabled:Boolean,color:Object,maxHeight:[Number,String],...Me()},"VColorPickerSwatches");function GQ(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const $Q=aa({name:"VColorPickerSwatches",props:HQ(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;return ge(()=>I("div",{class:["v-color-picker-swatches",e.class],style:[{maxHeight:De(e.maxHeight)},e.style]},[I("div",null,[e.swatches.map(r=>I("div",{class:"v-color-picker-swatches__swatch"},[r.map(a=>{const i=xa(a),o=Wy(i),s=Tz(i);return I("div",{class:"v-color-picker-swatches__color",onClick:()=>o&&n("update:color",o)},[I("div",{style:{background:s}},[e.color&&Ni(e.color,o)?I(wt,{size:"x-small",icon:"$success",color:zj(a,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),l0=ne({color:String,...Ur(),...Me(),...gn(),...An(),...Do(),...yf(),...Yt(),...nt(),...gt()},"VSheet"),uu=fe()({name:"VSheet",props:l0(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Et(oe(e,"color")),{borderClasses:o}=oa(e),{dimensionStyles:s}=pn(e),{elevationClasses:l}=Un(e),{locationStyles:u}=Pu(e),{positionClasses:c}=_f(e),{roundedClasses:f}=Qt(e);return ge(()=>I(e.tag,{class:["v-sheet",r.value,a.value,o.value,l.value,c.value,f.value,e.class],style:[i.value,s.value,u.value,e.style]},n)),{}}}),WQ=ne({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Yl).includes(e)},modes:{type:Array,default:()=>Object.keys(Yl),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Yl).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...vn(l0({width:300}),["height","location","minHeight","maxHeight","minWidth","maxWidth"])},"VColorPicker"),UQ=aa({name:"VColorPicker",props:WQ(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e){const t=Ve(e,"mode"),n=ye(null),r=Ve(e,"modelValue",void 0,l=>{if(l==null||l==="")return null;let u;try{u=Wy(xa(l))}catch{return null}return u},l=>l?sQ(l,e.modelValue):null),a=E(()=>r.value?{...r.value,h:n.value??r.value.h}:null),{rtlClasses:i}=Tn();let o=!0;Ce(r,l=>{if(!o){o=!0;return}l&&(n.value=l.h)},{immediate:!0});const s=l=>{o=!1,n.value=l.h,r.value=l};return Ly(()=>{e.modes.includes(t.value)||(t.value=e.modes[0])}),Kt({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),ge(()=>{const l=uu.filterProps(e);return I(uu,ve({rounded:e.rounded,elevation:e.elevation,theme:e.theme,class:["v-color-picker",i.value,e.class],style:[{"--v-color-picker-color-hsv":Az({...a.value??Tc,a:1})},e.style]},l,{maxWidth:e.width}),{default:()=>[!e.hideCanvas&&I(iQ,{key:"canvas",color:a.value,"onUpdate:color":s,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&I("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&I(_Q,{key:"preview",color:a.value,"onUpdate:color":s,hideAlpha:!t.value.endsWith("a"),disabled:e.disabled},null),!e.hideInputs&&I(vQ,{key:"edit",modes:e.modes,mode:t.value,"onUpdate:mode":u=>t.value=u,color:a.value,"onUpdate:color":s,disabled:e.disabled},null)]),e.showSwatches&&I($Q,{key:"swatches",color:a.value,"onUpdate:color":s,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)]})}),{}}});function YQ(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?I(ke,null,[I("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),I("span",{class:"v-combobox__mask"},[e.substr(t,n)]),I("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const XQ=ne({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Ch({filterKeys:["title"]}),...xT({hideNoData:!0,returnObject:!0}),...vn(a0({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ai({transition:!1})},"VCombobox"),jQ=fe()({name:"VCombobox",props:XQ(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var j;let{emit:n,slots:r}=t;const{t:a}=nn(),i=ye(),o=Te(!1),s=Te(!0),l=Te(!1),u=ye(),c=ye(),f=Ve(e,"menu"),d=E({get:()=>f.value,set:M=>{var O;f.value&&!M&&((O=u.value)!=null&&O.ΨopenChildren.size)||(f.value=M)}}),v=Te(-1);let h=!1;const g=E(()=>{var M;return(M=i.value)==null?void 0:M.color}),p=E(()=>d.value?e.closeText:e.openText),{items:m,transformIn:y,transformOut:_}=gT(e),{textColorClasses:b,textColorStyles:x}=Kn(g),S=Ve(e,"modelValue",[],M=>y(jt(M)),M=>{const O=_(M);return e.multiple?O:O[0]??null}),T=t0(),C=E(()=>!!(e.chips||r.chip)),w=E(()=>C.value||!!r.selection),A=Te(!e.multiple&&!w.value?((j=S.value[0])==null?void 0:j.title)??"":""),D=E({get:()=>A.value,set:M=>{var O;if(A.value=M??"",!e.multiple&&!w.value&&(S.value=[as(e,M)]),M&&e.multiple&&((O=e.delimiters)!=null&&O.length)){const X=M.split(new RegExp(`(?:${e.delimiters.join("|")})+`));X.length>1&&(X.forEach(K=>{K=K.trim(),K&&te(as(e,K))}),A.value="")}M||(v.value=-1),s.value=!M}}),P=E(()=>typeof e.counterValue=="function"?e.counterValue(S.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?S.value.length:D.value.length);Ce(A,M=>{h?ht(()=>h=!1):o.value&&!d.value&&(d.value=!0),n("update:search",M)}),Ce(S,M=>{var O;!e.multiple&&!w.value&&(A.value=((O=M[0])==null?void 0:O.title)??"")});const{filteredItems:k,getMatches:L}=Th(e,m,()=>s.value?"":D.value),V=E(()=>e.hideSelected?k.value.filter(M=>!S.value.some(O=>O.value===M.value)):k.value),N=E(()=>S.value.map(M=>M.value)),$=E(()=>{var O;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&D.value===((O=V.value[0])==null?void 0:O.title))&&V.value.length>0&&!s.value&&!l.value}),z=E(()=>e.hideNoData&&!V.value.length||e.readonly||(T==null?void 0:T.isReadonly.value)),H=ye(),U=ST(H,i);function Y(M){h=!0,e.openOnClear&&(d.value=!0)}function J(){z.value||(d.value=!0)}function ue(M){z.value||(o.value&&(M.preventDefault(),M.stopPropagation()),d.value=!d.value)}function le(M){var O;mm(M)&&((O=i.value)==null||O.focus())}function be(M){var K;if(cj(M)||e.readonly||T!=null&&T.isReadonly.value)return;const O=i.value.selectionStart,X=S.value.length;if((v.value>-1||["Enter","ArrowDown","ArrowUp"].includes(M.key))&&M.preventDefault(),["Enter","ArrowDown"].includes(M.key)&&(d.value=!0),["Escape"].includes(M.key)&&(d.value=!1),["Enter","Escape","Tab"].includes(M.key)&&($.value&&["Enter","Tab"].includes(M.key)&&!S.value.some(q=>{let{value:re}=q;return re===V.value[0].value})&&te(k.value[0]),s.value=!0),M.key==="ArrowDown"&&$.value&&((K=H.value)==null||K.focus("next")),M.key==="Enter"&&D.value&&(te(as(e,D.value)),w.value&&(A.value="")),["Backspace","Delete"].includes(M.key)){if(!e.multiple&&w.value&&S.value.length>0&&!D.value)return te(S.value[0],!1);if(~v.value){const q=v.value;te(S.value[v.value],!1),v.value=q>=X-1?X-2:q}else M.key==="Backspace"&&!D.value&&(v.value=X-1)}if(e.multiple){if(M.key==="ArrowLeft"){if(v.value<0&&O>0)return;const q=v.value>-1?v.value-1:X-1;S.value[q]?v.value=q:(v.value=-1,i.value.setSelectionRange(D.value.length,D.value.length))}if(M.key==="ArrowRight"){if(v.value<0)return;const q=v.value+1;S.value[q]?v.value=q:(v.value=-1,i.value.setSelectionRange(0,0))}}}function ae(){var M;e.eager&&((M=c.value)==null||M.calculateVisibleItems())}function Z(){var M;o.value&&(s.value=!0,(M=i.value)==null||M.focus())}function te(M){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!M||M.props.disabled))if(e.multiple){const X=S.value.findIndex(q=>e.valueComparator(q.value,M.value)),K=O??!~X;if(~X){const q=K?[...S.value,M]:[...S.value];q.splice(X,1),S.value=q}else K&&(S.value=[...S.value,M]);e.clearOnSelect&&(D.value="")}else{const X=O!==!1;S.value=X?[M]:[],A.value=X&&!w.value?M.title:"",ht(()=>{d.value=!1,s.value=!0})}}function se(M){o.value=!0,setTimeout(()=>{l.value=!0})}function G(M){l.value=!1}function B(M){(M==null||M===""&&!e.multiple&&!w.value)&&(S.value=[])}return Ce(o,(M,O)=>{if(!(M||M===O)&&(v.value=-1,d.value=!1,D.value)){if(e.multiple){te(as(e,D.value));return}if(!w.value)return;S.value.some(X=>{let{title:K}=X;return K===D.value})?A.value="":te(as(e,D.value))}}),Ce(d,()=>{if(!e.hideSelected&&d.value&&S.value.length){const M=V.value.findIndex(O=>S.value.some(X=>e.valueComparator(X.value,O.value)));yt&&window.requestAnimationFrame(()=>{var O;M>=0&&((O=c.value)==null||O.scrollToIndex(M))})}}),Ce(()=>e.items,(M,O)=>{d.value||o.value&&!O.length&&M.length&&(d.value=!0)}),ge(()=>{const M=!!(!e.hideNoData||V.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),O=S.value.length>0,X=ou.filterProps(e);return I(ou,ve({ref:i},X,{modelValue:D.value,"onUpdate:modelValue":[K=>D.value=K,B],focused:o.value,"onUpdate:focused":K=>o.value=K,validationValue:S.externalValue,counterValue:P.value,dirty:O,class:["v-combobox",{"v-combobox--active-menu":d.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!w.value,"v-combobox--selecting-index":v.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:O?void 0:e.placeholder,"onClick:clear":Y,"onMousedown:control":J,onKeydown:be}),{...r,default:()=>I(ke,null,[I(ef,ve({ref:u,modelValue:d.value,"onUpdate:modelValue":K=>d.value=K,activator:"parent",contentClass:"v-combobox__content",disabled:z.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:ae,onAfterLeave:Z},e.menuProps),{default:()=>[M&&I(n0,ve({ref:H,selected:N.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:K=>K.preventDefault(),onKeydown:le,onFocusin:se,onFocusout:G,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},U,e.listProps),{default:()=>{var K,q,re;return[(K=r["prepend-item"])==null?void 0:K.call(r),!V.value.length&&!e.hideNoData&&(((q=r["no-data"])==null?void 0:q.call(r))??I(yo,{title:a(e.noDataText)},null)),I(i0,{ref:c,renderless:!0,items:V.value},{default:pe=>{var xe;let{item:F,index:W,itemRef:Q}=pe;const _e=ve(F.props,{ref:Q,key:W,active:$.value&&W===0?!0:void 0,onClick:()=>te(F,null)});return((xe=r.item)==null?void 0:xe.call(r,{item:F,index:W,props:_e}))??I(yo,ve(_e,{role:"option"}),{prepend:Se=>{let{isSelected:ie}=Se;return I(ke,null,[e.multiple&&!e.hideSelected?I(mo,{key:F.value,modelValue:ie,ripple:!1,tabindex:"-1"},null):void 0,F.props.prependAvatar&&I(Pa,{image:F.props.prependAvatar},null),F.props.prependIcon&&I(wt,{icon:F.props.prependIcon},null)])},title:()=>{var Se,ie;return s.value?F.title:YQ(F.title,(Se=L(F))==null?void 0:Se.title,((ie=D.value)==null?void 0:ie.length)??0)}})}}),(re=r["append-item"])==null?void 0:re.call(r)]}})]}),S.value.map((K,q)=>{function re(Q){Q.stopPropagation(),Q.preventDefault(),te(K,!1)}const pe={"onClick:close":re,onKeydown(Q){Q.key!=="Enter"&&Q.key!==" "||(Q.preventDefault(),Q.stopPropagation(),re(Q))},onMousedown(Q){Q.preventDefault(),Q.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},F=C.value?!!r.chip:!!r.selection,W=F?$y(C.value?r.chip({item:K,index:q,props:pe}):r.selection({item:K,index:q})):void 0;if(!(F&&!W))return I("div",{key:K.value,class:["v-combobox__selection",q===v.value&&["v-combobox__selection--selected",b.value]],style:q===v.value?x.value:{}},[C.value?r.chip?I(lt,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:K.title}}},{default:()=>[W]}):I(Sf,ve({key:"chip",closable:e.closableChips,size:"small",text:K.title,disabled:K.props.disabled},pe),null):W??I("span",{class:"v-combobox__selection-text"},[K.title,e.multiple&&q!0,save:e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Ve(e,"modelValue"),i=ye();un(()=>{i.value=structuredClone(Xe(a.value))});const{t:o}=nn(),s=E(()=>Ni(a.value,i.value));function l(){a.value=i.value,n("save",i.value)}function u(){i.value=structuredClone(Xe(a.value)),n("cancel")}let c=!1;return ge(()=>{var d;const f=I(ke,null,[I(xt,{disabled:s.value,variant:"text",color:e.color,onClick:u,text:o(e.cancelText)},null),I(xt,{disabled:s.value,variant:"text",color:e.color,onClick:l,text:o(e.okText)},null)]);return I(ke,null,[(d=r.default)==null?void 0:d.call(r,{model:i,save:l,cancel:u,isPristine:s.value,get actions(){return c=!0,f}}),!c&&f])}),{save:l,cancel:u,isPristine:s}}}),p5=ne({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),m5=Symbol.for("vuetify:datatable:expanded");function u0(e){const t=oe(e,"expandOnClick"),n=Ve(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function r(s,l){const u=new Set(n.value);l?u.add(s.value):u.delete(s.value),n.value=u}function a(s){return n.value.has(s.value)}function i(s){r(s,!a(s))}const o={expand:r,expanded:n,expandOnClick:t,isExpanded:a,toggleExpand:i};return Lt(m5,o),o}function y5(){const e=rt(m5);if(!e)throw new Error("foo");return e}const AT=ne({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),_5=Symbol.for("vuetify:data-table-group");function IT(e){return{groupBy:Ve(e,"groupBy")}}function c0(e){const{disableSort:t,groupBy:n,sortBy:r}=e,a=ye(new Set),i=E(()=>n.value.map(c=>({...c,order:c.order??!1})).concat(t!=null&&t.value?[]:r.value));function o(c){return a.value.has(c.id)}function s(c){const f=new Set(a.value);o(c)?f.delete(c.id):f.add(c.id),a.value=f}function l(c){function f(d){const v=[];for(const h of d.items)"type"in h&&h.type==="group"?v.push(...f(h)):v.push(h);return v}return f({items:c})}const u={sortByWithGroups:i,toggleGroup:s,opened:a,groupBy:n,extractRows:l,isGroupOpen:o};return Lt(_5,u),u}function b5(){const e=rt(_5);if(!e)throw new Error("Missing group!");return e}function qQ(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const a=iu(r.raw,t);n.has(a)||n.set(a,[]),n.get(a).push(r)}return n}function S5(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const a=qQ(e,t[0]),i=[],o=t.slice(1);return a.forEach((s,l)=>{const u=t[0],c=`${r}_${u}_${l}`;i.push({depth:n,id:c,key:u,value:l,items:o.length?S5(s,o,n+1,c):s,type:"group"})}),i}function x5(e,t){const n=[];for(const r of e)"type"in r&&r.type==="group"?(r.value!=null&&n.push(r),(t.has(r.id)||r.value==null)&&n.push(...x5(r.items,t))):n.push(r);return n}function f0(e,t,n){return{flatItems:E(()=>{if(!t.value.length)return e.value;const a=S5(e.value,t.value.map(i=>i.key));return x5(a,n.value)})}}function d0(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:a,search:i}=e;const o=Jt("VDataTable"),s=E(()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:a.value,search:i.value}));let l=null;Ce(s,()=>{Ni(l,s.value)||(l&&l.search!==s.value.search&&(t.value=1),o.emit("update:options",s.value),l=s.value)},{deep:!0,immediate:!0})}const DT=ne({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),w5=Symbol.for("vuetify:data-table-pagination");function PT(e){const t=Ve(e,"page",void 0,r=>+(r??1)),n=Ve(e,"itemsPerPage",void 0,r=>+(r??10));return{page:t,itemsPerPage:n}}function kT(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,a=E(()=>n.value===-1?0:n.value*(t.value-1)),i=E(()=>n.value===-1?r.value:Math.min(r.value,a.value+n.value)),o=E(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));Ce([t,o],()=>{t.value>o.value&&(t.value=o.value)});function s(d){n.value=d,t.value=1}function l(){t.value=sn(t.value+1,1,o.value)}function u(){t.value=sn(t.value-1,1,o.value)}function c(d){t.value=sn(d,1,o.value)}const f={page:t,itemsPerPage:n,startIndex:a,stopIndex:i,pageCount:o,itemsLength:r,nextPage:l,prevPage:u,setPage:c,setItemsPerPage:s};return Lt(w5,f),f}function JQ(){const e=rt(w5);if(!e)throw new Error("Missing pagination!");return e}function C5(e){const t=Jt("usePaginatedItems"),{items:n,startIndex:r,stopIndex:a,itemsPerPage:i}=e,o=E(()=>i.value<=0?n.value:n.value.slice(r.value,a.value));return Ce(o,s=>{t.emit("update:currentItems",s)}),{paginatedItems:o}}const QQ={showSelectAll:!1,allSelected:()=>[],select:e=>{var r;let{items:t,value:n}=e;return new Set(n?[(r=t[0])==null?void 0:r.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},T5={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return T5.select({items:n,value:t,selected:r})}},A5={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,allItems:n,selected:r}=e;return A5.select({items:n,value:t,selected:r})}},I5=ne({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:Ni}},"DataTable-select"),D5=Symbol.for("vuetify:data-table-selection");function v0(e,t){let{allItems:n,currentPage:r}=t;const a=Ve(e,"modelValue",e.modelValue,m=>new Set(jt(m).map(y=>{var _;return((_=n.value.find(b=>e.valueComparator(y,b.value)))==null?void 0:_.value)??y})),m=>[...m.values()]),i=E(()=>n.value.filter(m=>m.selectable)),o=E(()=>r.value.filter(m=>m.selectable)),s=E(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return QQ;case"all":return A5;case"page":default:return T5}});function l(m){return jt(m).every(y=>a.value.has(y.value))}function u(m){return jt(m).some(y=>a.value.has(y.value))}function c(m,y){const _=s.value.select({items:m,value:y,selected:new Set(a.value)});a.value=_}function f(m){c([m],!l([m]))}function d(m){const y=s.value.selectAll({value:m,allItems:i.value,currentPage:o.value,selected:new Set(a.value)});a.value=y}const v=E(()=>a.value.size>0),h=E(()=>{const m=s.value.allSelected({allItems:i.value,currentPage:o.value});return!!m.length&&l(m)}),g=E(()=>s.value.showSelectAll),p={toggleSelect:f,select:c,selectAll:d,isSelected:l,isSomeSelected:u,someSelected:v,allSelected:h,showSelectAll:g};return Lt(D5,p),p}function h0(){const e=rt(D5);if(!e)throw new Error("Missing selection!");return e}const P5=ne({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),k5=Symbol.for("vuetify:data-table-sort");function g0(e){const t=Ve(e,"sortBy"),n=oe(e,"mustSort"),r=oe(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:r}}function p0(e){const{sortBy:t,mustSort:n,multiSort:r,page:a}=e,i=l=>{if(l.key==null)return;let u=t.value.map(f=>({...f}))??[];const c=u.find(f=>f.key===l.key);c?c.order==="desc"?n.value?c.order="asc":u=u.filter(f=>f.key!==l.key):c.order="desc":r.value?u=[...u,{key:l.key,order:"asc"}]:u=[{key:l.key,order:"asc"}],t.value=u,a&&(a.value=1)};function o(l){return!!t.value.find(u=>u.key===l.key)}const s={sortBy:t,toggleSort:i,isSorted:o};return Lt(k5,s),s}function M5(){const e=rt(k5);if(!e)throw new Error("Missing sort!");return e}function MT(e,t,n,r){const a=nn();return{sortedItems:E(()=>{var o,s;return n.value.length?eee(t.value,n.value,a.current.value,{transform:r==null?void 0:r.transform,sortFunctions:{...e.customKeySort,...(o=r==null?void 0:r.sortFunctions)==null?void 0:o.value},sortRawFunctions:(s=r==null?void 0:r.sortRawFunctions)==null?void 0:s.value}):t.value})}}function eee(e,t,n,r){const a=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.map(o=>[o,r!=null&&r.transform?r.transform(o):o]).sort((o,s)=>{var l,u;for(let c=0;cy!=null?y.toString().toLocaleLowerCase():y),h!==g)return ug(h)&&ug(g)?0:ug(h)?-1:ug(g)?1:!isNaN(h)&&!isNaN(g)?Number(h)-Number(g):a.compare(h,g)}}return 0}).map(o=>{let[s]=o;return s})}const tee=ne({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function nee(e,t){const n=e.returnObject?t:bn(t,e.itemValue),r=bn(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:r,raw:t}}function ree(e,t){const n=[];for(const r of t)n.push(nee(e,r));return n}function aee(e){return{items:E(()=>ree(e,e.items))}}const iee=ne({search:String,loading:Boolean,...Me(),...tee(),...I5(),...P5(),...DT({itemsPerPage:5}),...p5(),...AT(),...Ch(),...nt(),...ai({transition:{component:wv,hideOnLeave:!0}})},"VDataIterator"),oee=fe()({name:"VDataIterator",props:iee(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"groupBy"),a=oe(e,"search"),{items:i}=aee(e),{filteredItems:o}=Th(e,i,a,{transform:Y=>Y.raw}),{sortBy:s,multiSort:l,mustSort:u}=g0(e),{page:c,itemsPerPage:f}=PT(e),{toggleSort:d}=p0({sortBy:s,multiSort:l,mustSort:u,page:c}),{sortByWithGroups:v,opened:h,extractRows:g,isGroupOpen:p,toggleGroup:m}=c0({groupBy:r,sortBy:s}),{sortedItems:y}=MT(e,o,v,{transform:Y=>Y.raw}),{flatItems:_}=f0(y,r,h),b=E(()=>_.value.length),{startIndex:x,stopIndex:S,pageCount:T,prevPage:C,nextPage:w,setItemsPerPage:A,setPage:D}=kT({page:c,itemsPerPage:f,itemsLength:b}),{paginatedItems:P}=C5({items:_,startIndex:x,stopIndex:S,itemsPerPage:f}),k=E(()=>g(P.value)),{isSelected:L,select:V,selectAll:N,toggleSelect:$}=v0(e,{allItems:i,currentPage:k}),{isExpanded:z,toggleExpand:H}=u0(e);d0({page:c,itemsPerPage:f,sortBy:s,groupBy:r,search:a});const U=E(()=>({page:c.value,itemsPerPage:f.value,sortBy:s.value,pageCount:T.value,toggleSort:d,prevPage:C,nextPage:w,setPage:D,setItemsPerPage:A,isSelected:L,select:V,selectAll:N,toggleSelect:$,isExpanded:z,toggleExpand:H,isGroupOpen:p,toggleGroup:m,items:k.value,groupedItems:P.value}));return ge(()=>I(e.tag,{class:["v-data-iterator",{"v-data-iterator--loading":e.loading},e.class],style:e.style},{default:()=>{var Y,J;return[(Y=n.header)==null?void 0:Y.call(n,U.value),I(lr,{transition:e.transition},{default:()=>{var ue,le;return[e.loading?I(mh,{key:"loader",name:"v-data-iterator",active:!0},{default:be=>{var ae;return(ae=n.loader)==null?void 0:ae.call(n,be)}}):I("div",{key:"items"},[P.value.length?(le=n.default)==null?void 0:le.call(n,U.value):(ue=n["no-data"])==null?void 0:ue.call(n)])]}}),(J=n.footer)==null?void 0:J.call(n,U.value)]}})),{}}});function see(){const e=ye([]);wC(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const lee=ne({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:Ye,default:"$first"},prevIcon:{type:Ye,default:"$prev"},nextIcon:{type:Ye,default:"$next"},lastIcon:{type:Ye,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...Ur(),...Me(),...Nn(),...An(),...Yt(),...Fi(),...nt({tag:"nav"}),...gt(),...La({variant:"text"})},"VPagination"),fx=fe()({name:"VPagination",props:lee(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=Ve(e,"modelValue"),{t:i,n:o}=nn(),{isRtl:s}=Tn(),{themeClasses:l}=Ct(e),{width:u}=Wr(),c=Te(-1);Kt(void 0,{scoped:!0});const{resizeRef:f}=ti(C=>{if(!C.length)return;const{target:w,contentRect:A}=C[0],D=w.querySelector(".v-pagination__list > *");if(!D)return;const P=A.width,k=D.offsetWidth+parseFloat(getComputedStyle(D).marginRight)*2;c.value=g(P,k)}),d=E(()=>parseInt(e.length,10)),v=E(()=>parseInt(e.start,10)),h=E(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:g(u.value,58));function g(C,w){const A=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((C-w*A)/w).toFixed(2)))}const p=E(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[a.value];if(d.value<=h.value)return xi(d.value,v.value);const C=h.value%2===0,w=C?h.value/2:Math.floor(h.value/2),A=C?w:w+1,D=d.value-w;if(A-a.value>=0)return[...xi(Math.max(1,h.value-1),v.value),e.ellipsis,d.value];if(a.value-D>=(C?1:0)){const P=h.value-1,k=d.value-P+v.value;return[v.value,e.ellipsis,...xi(P,k)]}else{const P=Math.max(1,h.value-3),k=P===1?a.value:a.value-Math.ceil(P/2)+v.value;return[v.value,e.ellipsis,...xi(P,k),e.ellipsis,d.value]}});function m(C,w,A){C.preventDefault(),a.value=w,A&&r(A,w)}const{refs:y,updateRef:_}=see();Kt({VPaginationBtn:{color:oe(e,"color"),border:oe(e,"border"),density:oe(e,"density"),size:oe(e,"size"),variant:oe(e,"variant"),rounded:oe(e,"rounded"),elevation:oe(e,"elevation")}});const b=E(()=>p.value.map((C,w)=>{const A=D=>_(D,w);if(typeof C=="string")return{isActive:!1,key:`ellipsis-${w}`,page:C,props:{ref:A,ellipsis:!0,icon:!0,disabled:!0}};{const D=C===a.value;return{isActive:D,key:C,page:o(C),props:{ref:A,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:D?e.activeColor:e.color,"aria-current":D,"aria-label":i(D?e.currentPageAriaLabel:e.pageAriaLabel,C),onClick:P=>m(P,C)}}}})),x=E(()=>{const C=!!e.disabled||a.value<=v.value,w=!!e.disabled||a.value>=v.value+d.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:A=>m(A,v.value,"first"),disabled:C,"aria-label":i(e.firstAriaLabel),"aria-disabled":C}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:A=>m(A,a.value-1,"prev"),disabled:C,"aria-label":i(e.previousAriaLabel),"aria-disabled":C},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:A=>m(A,a.value+1,"next"),disabled:w,"aria-label":i(e.nextAriaLabel),"aria-disabled":w},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:A=>m(A,v.value+d.value-1,"last"),disabled:w,"aria-label":i(e.lastAriaLabel),"aria-disabled":w}:void 0}});function S(){var w;const C=a.value-v.value;(w=y.value[C])==null||w.$el.focus()}function T(C){C.key===z1.left&&!e.disabled&&a.value>+e.start?(a.value=a.value-1,ht(S)):C.key===z1.right&&!e.disabled&&a.valueI(e.tag,{ref:f,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":i(e.ariaLabel),onKeydown:T,"data-test":"v-pagination-root"},{default:()=>[I("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&I("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(x.value.first):I(xt,ve({_as:"VPaginationBtn"},x.value.first),null)]),I("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(x.value.prev):I(xt,ve({_as:"VPaginationBtn"},x.value.prev),null)]),b.value.map((C,w)=>I("li",{key:C.key,class:["v-pagination__item",{"v-pagination__item--is-active":C.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(C):I(xt,ve({_as:"VPaginationBtn"},C.props),{default:()=>[C.page]})])),I("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(x.value.next):I(xt,ve({_as:"VPaginationBtn"},x.value.next),null)]),e.showFirstLastPage&&I("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(x.value.last):I(xt,ve({_as:"VPaginationBtn"},x.value.last),null)])])]})),{}}}),LT=ne({prevIcon:{type:Ye,default:"$prev"},nextIcon:{type:Ye,default:"$next"},firstIcon:{type:Ye,default:"$first"},lastIcon:{type:Ye,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Pv=fe()({name:"VDataTableFooter",props:LT(),setup(e,t){let{slots:n}=t;const{t:r}=nn(),{page:a,pageCount:i,startIndex:o,stopIndex:s,itemsLength:l,itemsPerPage:u,setItemsPerPage:c}=JQ(),f=E(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?r("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:isNaN(Number(d.title))?r(d.title):d.title}));return ge(()=>{var v;const d=fx.filterProps(e);return I("div",{class:"v-data-table-footer"},[(v=n.prepend)==null?void 0:v.call(n),I("div",{class:"v-data-table-footer__items-per-page"},[I("span",null,[r(e.itemsPerPageText)]),I(wT,{items:f.value,modelValue:u.value,"onUpdate:modelValue":h=>c(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),I("div",{class:"v-data-table-footer__info"},[I("div",null,[r(e.pageText,l.value?o.value+1:0,s.value,l.value)])]),I("div",{class:"v-data-table-footer__pagination"},[I(fx,ve({modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:i.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},d),null)])])}),{}}}),wm=Wj({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:n}=t;const r=e.tag??"td";return I(r,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:De(e.height),width:De(e.width),maxWidth:De(e.maxWidth),left:De(e.fixedOffset||null)}},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})}),uee=ne({headers:Array},"DataTable-header"),L5=Symbol.for("vuetify:data-table-headers"),E5={title:"",sortable:!1},cee={...E5,width:48};function fee(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,r)=>{let a=!1;for(let i=0;ir){t.splice(i,0,{element:n,priority:r}),a=!0;break}a||t.push({element:n,priority:r})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const r=Math.floor(t[0].priority);for(let a=0;at.shift()}}function dx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)dx(n,t);return t}function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&R5(n.children,t);return t}function dee(e){if(e.key){if(e.key==="data-table-group")return E5;if(["data-table-expand","data-table-select"].includes(e.key))return cee}}function ET(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>ET(n,t+1))):t}function vee(e){let t=!1;function n(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i)if(o&&(i.fixed=!0),i.fixed)if(i.children)for(let s=i.children.length-1;s>=0;s--)n(i.children[s],!0);else t?isNaN(+i.width)&&(`${i.key}`,void 0):i.lastFixed=!0,t=!0;else if(i.children)for(let s=i.children.length-1;s>=0;s--)n(i.children[s]);else t=!1}for(let i=e.length-1;i>=0;i--)n(e[i]);function r(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!i)return o;if(i.children){i.fixedOffset=o;for(const s of i.children)o=r(s,o)}else i.fixed&&(i.fixedOffset=o,o+=parseFloat(i.width||"0")||0);return o}let a=0;for(const i of e)a=r(i,a)}function hee(e,t){const n=[];let r=0;const a=fee(e);for(;a.size()>0;){let o=a.count();const s=[];let l=1;for(;o>0;){const{element:u,priority:c}=a.dequeue(),f=t-r-ET(u);if(s.push({...u,rowspan:f??1,colspan:u.children?dx(u).length:1}),u.children)for(const d of u.children){const v=c%1+l/Math.pow(10,r+2);a.enqueue(d,r+f+v)}l+=1,o-=1}r+=1,n.push(s)}return{columns:e.map(o=>dx(o)).flat(),headers:n}}function V5(e){const t=[];for(const n of e){const r={...dee(n),...n},a=r.key??(typeof r.value=="string"?r.value:null),i=r.value??a??null,o={...r,key:a,value:i,sortable:r.sortable??(r.key!=null||!!r.sort),children:r.children?V5(r.children):void 0};t.push(o)}return t}function RT(e,t){const n=ye([]),r=ye([]),a=ye({}),i=ye({}),o=ye({});un(()=>{var g,p,m;const u=(e.headers||Object.keys(e.items[0]??{}).map(y=>({key:y,title:Oi(y)}))).slice(),c=R5(u);(g=t==null?void 0:t.groupBy)!=null&&g.value.length&&!c.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),(p=t==null?void 0:t.showSelect)!=null&&p.value&&!c.has("data-table-select")&&u.unshift({key:"data-table-select"}),(m=t==null?void 0:t.showExpand)!=null&&m.value&&!c.has("data-table-expand")&&u.push({key:"data-table-expand"});const f=V5(u);vee(f);const d=Math.max(...f.map(y=>ET(y)))+1,v=hee(f,d);n.value=v.headers,r.value=v.columns;const h=v.headers.flat(1);for(const y of h)y.key&&(y.sortable&&(y.sort&&(a.value[y.key]=y.sort),y.sortRaw&&(i.value[y.key]=y.sortRaw)),y.filter&&(o.value[y.key]=y.filter))});const s={headers:n,columns:r,sortFunctions:a,sortRawFunctions:i,filterFunctions:o};return Lt(L5,s),s}function m0(){const e=rt(L5);if(!e)throw new Error("Missing headers!");return e}const O5=ne({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:Ye,default:"$sortAsc"},sortDescIcon:{type:Ye,default:"$sortDesc"},headerProps:{type:Object},...Su(),...Jy()},"VDataTableHeaders"),cu=fe()({name:"VDataTableHeaders",props:O5(),setup(e,t){let{slots:n}=t;const{t:r}=nn(),{toggleSort:a,sortBy:i,isSorted:o}=M5(),{someSelected:s,allSelected:l,selectAll:u,showSelectAll:c}=h0(),{columns:f,headers:d}=m0(),{loaderClasses:v}=ph(e);function h(C,w){if(!(!e.sticky&&!C.fixed))return{position:"sticky",left:C.fixed?De(C.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${w})`:void 0}}function g(C){const w=i.value.find(A=>A.key===C.key);return w?w.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:p,backgroundColorStyles:m}=Et(e,"color"),{displayClasses:y,mobile:_}=Wr(e),b=E(()=>({headers:d.value,columns:f.value,toggleSort:a,isSorted:o,sortBy:i.value,someSelected:s.value,allSelected:l.value,selectAll:u,getSortIcon:g})),x=E(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},y.value,v.value]),S=C=>{let{column:w,x:A,y:D}=C;const P=w.key==="data-table-select"||w.key==="data-table-expand",k=ve(e.headerProps??{},w.headerProps??{});return I(wm,ve({tag:"th",align:w.align,class:[{"v-data-table__th--sortable":w.sortable&&!e.disableSort,"v-data-table__th--sorted":o(w),"v-data-table__th--fixed":w.fixed},...x.value],style:{width:De(w.width),minWidth:De(w.minWidth),maxWidth:De(w.maxWidth),...h(w,D)},colspan:w.colspan,rowspan:w.rowspan,onClick:w.sortable?()=>a(w):void 0,fixed:w.fixed,nowrap:w.nowrap,lastFixed:w.lastFixed,noPadding:P},k),{default:()=>{var N;const L=`header.${w.key}`,V={column:w,selectAll:u,isSorted:o,toggleSort:a,sortBy:i.value,someSelected:s.value,allSelected:l.value,getSortIcon:g};return n[L]?n[L](V):w.key==="data-table-select"?((N=n["header.data-table-select"])==null?void 0:N.call(n,V))??(c.value&&I(mo,{modelValue:l.value,indeterminate:s.value&&!l.value,"onUpdate:modelValue":u},null)):I("div",{class:"v-data-table-header__content"},[I("span",null,[w.title]),w.sortable&&!e.disableSort&&I(wt,{key:"icon",class:"v-data-table-header__sort-icon",icon:g(w)},null),e.multiSort&&o(w)&&I("div",{key:"badge",class:["v-data-table-header__sort-badge",...p.value],style:m.value},[i.value.findIndex($=>$.key===w.key)+1])])}})},T=()=>{const C=ve(e.headerProps??{}??{}),w=E(()=>f.value.filter(D=>(D==null?void 0:D.sortable)&&!e.disableSort)),A=E(()=>{if(f.value.find(P=>P.key==="data-table-select")!=null)return l.value?"$checkboxOn":s.value?"$checkboxIndeterminate":"$checkboxOff"});return I(wm,ve({tag:"th",class:[...x.value],colspan:d.value.length+1},C),{default:()=>[I("div",{class:"v-data-table-header__content"},[I(wT,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:w.value,label:r("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>i.value=[],appendIcon:A.value,"onClick:append":()=>u(!l.value)},{...n,chip:D=>{var P;return I(Sf,{onClick:(P=D.item.raw)!=null&&P.sortable?()=>a(D.item.raw):void 0,onMousedown:k=>{k.preventDefault(),k.stopPropagation()}},{default:()=>[D.item.title,I(wt,{class:["v-data-table__td-sort-icon",o(D.item.raw)&&"v-data-table__td-sort-icon-active"],icon:g(D.item.raw),size:"small"},null)]})}})])]})};ge(()=>_.value?I("tr",null,[I(T,null,null)]):I(ke,null,[n.headers?n.headers(b.value):d.value.map((C,w)=>I("tr",null,[C.map((A,D)=>I(S,{column:A,x:D,y:w},null))])),e.loading&&I("tr",{class:"v-data-table-progress"},[I("th",{colspan:f.value.length},[I(mh,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),gee=ne({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),pee=fe()({name:"VDataTableGroupHeaderRow",props:gee(),setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:a,extractRows:i}=b5(),{isSelected:o,isSomeSelected:s,select:l}=h0(),{columns:u}=m0(),c=E(()=>i([e.item]));return()=>I("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(f=>{var d,v;if(f.key==="data-table-group"){const h=r(e.item)?"$expand":"$next",g=()=>a(e.item);return((d=n["data-table-group"])==null?void 0:d.call(n,{item:e.item,count:c.value.length,props:{icon:h,onClick:g}}))??I(wm,{class:"v-data-table-group-header-row__column"},{default:()=>[I(xt,{size:"small",variant:"text",icon:h,onClick:g},null),I("span",null,[e.item.value]),I("span",null,[ta("("),c.value.length,ta(")")])]})}if(f.key==="data-table-select"){const h=o(c.value),g=s(c.value)&&!h,p=m=>l(c.value,m);return((v=n["data-table-select"])==null?void 0:v.call(n,{props:{modelValue:h,indeterminate:g,"onUpdate:modelValue":p}}))??I("td",null,[I(mo,{modelValue:h,indeterminate:g,"onUpdate:modelValue":p},null)])}return I("td",null,null)})])}}),mee=ne({index:Number,item:Object,cellProps:[Object,Function],onClick:$n(),onContextmenu:$n(),onDblclick:$n(),...Su()},"VDataTableRow"),VT=fe()({name:"VDataTableRow",props:mee(),setup(e,t){let{slots:n}=t;const{displayClasses:r,mobile:a}=Wr(e,"v-data-table__tr"),{isSelected:i,toggleSelect:o,someSelected:s,allSelected:l,selectAll:u}=h0(),{isExpanded:c,toggleExpand:f}=y5(),{toggleSort:d,sortBy:v,isSorted:h}=M5(),{columns:g}=m0();ge(()=>I("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},r.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&g.value.map((p,m)=>{const y=e.item,_=`item.${p.key}`,b=`header.${p.key}`,x={index:e.index,item:y.raw,internalItem:y,value:iu(y.columns,p.key),column:p,isSelected:i,toggleSelect:o,isExpanded:c,toggleExpand:f},S={column:p,selectAll:u,isSorted:h,toggleSort:d,sortBy:v.value,someSelected:s.value,allSelected:l.value,getSortIcon:()=>""},T=typeof e.cellProps=="function"?e.cellProps({index:x.index,item:x.item,internalItem:x.internalItem,value:x.value,column:p}):e.cellProps,C=typeof p.cellProps=="function"?p.cellProps({index:x.index,item:x.item,internalItem:x.internalItem,value:x.value}):p.cellProps;return I(wm,ve({align:p.align,class:{"v-data-table__td--expanded-row":p.key==="data-table-expand","v-data-table__td--select-row":p.key==="data-table-select"},fixed:p.fixed,fixedOffset:p.fixedOffset,lastFixed:p.lastFixed,maxWidth:a.value?void 0:p.maxWidth,noPadding:p.key==="data-table-select"||p.key==="data-table-expand",nowrap:p.nowrap,width:a.value?void 0:p.width},T,C),{default:()=>{var A,D,P,k,L;if(n[_]&&!a.value)return(A=n[_])==null?void 0:A.call(n,x);if(p.key==="data-table-select")return((D=n["item.data-table-select"])==null?void 0:D.call(n,x))??I(mo,{disabled:!y.selectable,modelValue:i([y]),onClick:C1(()=>o(y),["stop"])},null);if(p.key==="data-table-expand")return((P=n["item.data-table-expand"])==null?void 0:P.call(n,x))??I(xt,{icon:c(y)?"$collapse":"$expand",size:"small",variant:"text",onClick:C1(()=>f(y),["stop"])},null);const w=is(x.value);return a.value?I(ke,null,[I("div",{class:"v-data-table__td-title"},[((k=n[b])==null?void 0:k.call(n,S))??p.title]),I("div",{class:"v-data-table__td-value"},[((L=n[_])==null?void 0:L.call(n,x))??w])]):w}})})]))}}),N5=ne({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Su()},"VDataTableRows"),fu=fe()({name:"VDataTableRows",inheritAttrs:!1,props:N5(),setup(e,t){let{attrs:n,slots:r}=t;const{columns:a}=m0(),{expandOnClick:i,toggleExpand:o,isExpanded:s}=y5(),{isSelected:l,toggleSelect:u}=h0(),{toggleGroup:c,isGroupOpen:f}=b5(),{t:d}=nn(),{mobile:v}=Wr(e);return ge(()=>{var h,g;return e.loading&&(!e.items.length||r.loading)?I("tr",{class:"v-data-table-rows-loading",key:"loading"},[I("td",{colspan:a.value.length},[((h=r.loading)==null?void 0:h.call(r))??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?I("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[I("td",{colspan:a.value.length},[((g=r["no-data"])==null?void 0:g.call(r))??d(e.noDataText)])]):I(ke,null,[e.items.map((p,m)=>{var b;if(p.type==="group"){const x={index:m,item:p,columns:a.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u,toggleGroup:c,isGroupOpen:f};return r["group-header"]?r["group-header"](x):I(pee,ve({key:`group-header_${p.id}`,item:p},ak(n,":group-header",()=>x)),r)}const y={index:m,item:p.raw,internalItem:p,columns:a.value,isExpanded:s,toggleExpand:o,isSelected:l,toggleSelect:u},_={...y,props:ve({key:`item_${p.key??p.index}`,onClick:i.value?()=>{o(p)}:void 0,index:m,item:p,cellProps:e.cellProps,mobile:v.value},ak(n,":row",()=>y),typeof e.rowProps=="function"?e.rowProps({item:y.item,index:y.index,internalItem:y.internalItem}):e.rowProps)};return I(ke,{key:_.props.key},[r.item?r.item(_):I(VT,_.props,r),s(p)&&((b=r["expanded-row"])==null?void 0:b.call(r,y))])})])}),{}}}),B5=ne({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Me(),...Nn(),...nt(),...gt()},"VTable"),du=fe()({name:"VTable",props:B5(),setup(e,t){let{slots:n,emit:r}=t;const{themeClasses:a}=Ct(e),{densityClasses:i}=dr(e);return ge(()=>I(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},a.value,i.value,e.class],style:e.style},{default:()=>{var o,s,l;return[(o=n.top)==null?void 0:o.call(n),n.default?I("div",{class:"v-table__wrapper",style:{height:De(e.height)}},[I("table",null,[n.default()])]):(s=n.wrapper)==null?void 0:s.call(n),(l=n.bottom)==null?void 0:l.call(n)]}})),{}}}),yee=ne({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function _ee(e,t,n,r){const a=e.returnObject?t:bn(t,e.itemValue),i=bn(t,e.itemSelectable,!0),o=r.reduce((s,l)=>(l.key!=null&&(s[l.key]=bn(t,l.value)),s),{});return{type:"item",key:e.returnObject?bn(t,e.itemValue):a,index:n,value:a,selectable:i,columns:o,raw:t}}function bee(e,t,n){return t.map((r,a)=>_ee(e,r,a,n))}function OT(e,t){return{items:E(()=>bee(e,e.items,t.value))}}const NT=ne({...N5(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...p5(),...AT(),...uee(),...yee(),...I5(),...P5(),...O5(),...B5()},"DataTable"),See=ne({...DT(),...NT(),...Ch(),...LT()},"VDataTable"),xee=fe()({name:"VDataTable",props:See(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IT(e),{sortBy:i,multiSort:o,mustSort:s}=g0(e),{page:l,itemsPerPage:u}=PT(e),{disableSort:c}=Vs(e),{columns:f,headers:d,sortFunctions:v,sortRawFunctions:h,filterFunctions:g}=RT(e,{groupBy:a,showSelect:oe(e,"showSelect"),showExpand:oe(e,"showExpand")}),{items:p}=OT(e,f),m=oe(e,"search"),{filteredItems:y}=Th(e,p,m,{transform:Z=>Z.columns,customKeyFilter:g}),{toggleSort:_}=p0({sortBy:i,multiSort:o,mustSort:s,page:l}),{sortByWithGroups:b,opened:x,extractRows:S,isGroupOpen:T,toggleGroup:C}=c0({groupBy:a,sortBy:i,disableSort:c}),{sortedItems:w}=MT(e,y,b,{transform:Z=>({...Z.raw,...Z.columns}),sortFunctions:v,sortRawFunctions:h}),{flatItems:A}=f0(w,a,x),D=E(()=>A.value.length),{startIndex:P,stopIndex:k,pageCount:L,setItemsPerPage:V}=kT({page:l,itemsPerPage:u,itemsLength:D}),{paginatedItems:N}=C5({items:A,startIndex:P,stopIndex:k,itemsPerPage:u}),$=E(()=>S(N.value)),{isSelected:z,select:H,selectAll:U,toggleSelect:Y,someSelected:J,allSelected:ue}=v0(e,{allItems:p,currentPage:$}),{isExpanded:le,toggleExpand:be}=u0(e);d0({page:l,itemsPerPage:u,sortBy:i,groupBy:a,search:m}),Kt({VDataTableRows:{hideNoData:oe(e,"hideNoData"),noDataText:oe(e,"noDataText"),loading:oe(e,"loading"),loadingText:oe(e,"loadingText")}});const ae=E(()=>({page:l.value,itemsPerPage:u.value,sortBy:i.value,pageCount:L.value,toggleSort:_,setItemsPerPage:V,someSelected:J.value,allSelected:ue.value,isSelected:z,select:H,selectAll:U,toggleSelect:Y,isExpanded:le,toggleExpand:be,isGroupOpen:T,toggleGroup:C,items:$.value.map(Z=>Z.raw),internalItems:$.value,groupedItems:N.value,columns:f.value,headers:d.value}));return ge(()=>{const Z=Pv.filterProps(e),te=cu.filterProps(e),se=fu.filterProps(e),G=du.filterProps(e);return I(du,ve({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},G),{top:()=>{var B;return(B=r.top)==null?void 0:B.call(r,ae.value)},default:()=>{var B,j,M,O,X,K;return r.default?r.default(ae.value):I(ke,null,[(B=r.colgroup)==null?void 0:B.call(r,ae.value),!e.hideDefaultHeader&&I("thead",{key:"thead"},[I(cu,te,r)]),(j=r.thead)==null?void 0:j.call(r,ae.value),!e.hideDefaultBody&&I("tbody",null,[(M=r["body.prepend"])==null?void 0:M.call(r,ae.value),r.body?r.body(ae.value):I(fu,ve(n,se,{items:N.value}),r),(O=r["body.append"])==null?void 0:O.call(r,ae.value)]),(X=r.tbody)==null?void 0:X.call(r,ae.value),(K=r.tfoot)==null?void 0:K.call(r,ae.value)])},bottom:()=>r.bottom?r.bottom(ae.value):!e.hideDefaultFooter&&I(ke,null,[I(Sh,null,null),I(Pv,Z,{prepend:r["footer.prepend"]})])})}),{}}}),wee=ne({...NT(),...AT(),...qF(),...Ch()},"VDataTableVirtual"),Cee=fe()({name:"VDataTableVirtual",props:wee(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IT(e),{sortBy:i,multiSort:o,mustSort:s}=g0(e),{disableSort:l}=Vs(e),{columns:u,headers:c,filterFunctions:f,sortFunctions:d,sortRawFunctions:v}=RT(e,{groupBy:a,showSelect:oe(e,"showSelect"),showExpand:oe(e,"showExpand")}),{items:h}=OT(e,u),g=oe(e,"search"),{filteredItems:p}=Th(e,h,g,{transform:te=>te.columns,customKeyFilter:f}),{toggleSort:m}=p0({sortBy:i,multiSort:o,mustSort:s}),{sortByWithGroups:y,opened:_,extractRows:b,isGroupOpen:x,toggleGroup:S}=c0({groupBy:a,sortBy:i,disableSort:l}),{sortedItems:T}=MT(e,p,y,{transform:te=>({...te.raw,...te.columns}),sortFunctions:d,sortRawFunctions:v}),{flatItems:C}=f0(T,a,_),w=E(()=>b(C.value)),{isSelected:A,select:D,selectAll:P,toggleSelect:k,someSelected:L,allSelected:V}=v0(e,{allItems:w,currentPage:w}),{isExpanded:N,toggleExpand:$}=u0(e),{containerRef:z,markerRef:H,paddingTop:U,paddingBottom:Y,computedItems:J,handleItemResize:ue,handleScroll:le,handleScrollend:be}=JF(e,C),ae=E(()=>J.value.map(te=>te.raw));d0({sortBy:i,page:Te(1),itemsPerPage:Te(-1),groupBy:a,search:g}),Kt({VDataTableRows:{hideNoData:oe(e,"hideNoData"),noDataText:oe(e,"noDataText"),loading:oe(e,"loading"),loadingText:oe(e,"loadingText")}});const Z=E(()=>({sortBy:i.value,toggleSort:m,someSelected:L.value,allSelected:V.value,isSelected:A,select:D,selectAll:P,toggleSelect:k,isExpanded:N,toggleExpand:$,isGroupOpen:x,toggleGroup:S,items:w.value.map(te=>te.raw),internalItems:w.value,groupedItems:C.value,columns:u.value,headers:c.value}));ge(()=>{const te=cu.filterProps(e),se=fu.filterProps(e),G=du.filterProps(e);return I(du,ve({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},G),{top:()=>{var B;return(B=r.top)==null?void 0:B.call(r,Z.value)},wrapper:()=>{var B,j,M;return I("div",{ref:z,onScrollPassive:le,onScrollend:be,class:"v-table__wrapper",style:{height:De(e.height)}},[I("table",null,[(B=r.colgroup)==null?void 0:B.call(r,Z.value),!e.hideDefaultHeader&&I("thead",{key:"thead"},[I(cu,ve(te,{sticky:e.fixedHeader}),r)]),!e.hideDefaultBody&&I("tbody",null,[I("tr",{ref:H,style:{height:De(U.value),border:0}},[I("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),(j=r["body.prepend"])==null?void 0:j.call(r,Z.value),I(fu,ve(n,se,{items:ae.value}),{...r,item:O=>I(KF,{key:O.internalItem.index,renderless:!0,"onUpdate:height":X=>ue(O.internalItem.index,X)},{default:X=>{var q;let{itemRef:K}=X;return((q=r.item)==null?void 0:q.call(r,{...O,itemRef:K}))??I(VT,ve(O.props,{ref:K,key:O.internalItem.index,index:O.internalItem.index}),r)}})}),(M=r["body.append"])==null?void 0:M.call(r,Z.value),I("tr",{style:{height:De(Y.value),border:0}},[I("td",{colspan:u.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var B;return(B=r.bottom)==null?void 0:B.call(r,Z.value)}})})}}),Tee=ne({itemsLength:{type:[Number,String],required:!0},...DT(),...NT(),...LT()},"VDataTableServer"),Aee=fe()({name:"VDataTableServer",props:Tee(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=IT(e),{sortBy:i,multiSort:o,mustSort:s}=g0(e),{page:l,itemsPerPage:u}=PT(e),{disableSort:c}=Vs(e),f=E(()=>parseInt(e.itemsLength,10)),{columns:d,headers:v}=RT(e,{groupBy:a,showSelect:oe(e,"showSelect"),showExpand:oe(e,"showExpand")}),{items:h}=OT(e,d),{toggleSort:g}=p0({sortBy:i,multiSort:o,mustSort:s,page:l}),{opened:p,isGroupOpen:m,toggleGroup:y,extractRows:_}=c0({groupBy:a,sortBy:i,disableSort:c}),{pageCount:b,setItemsPerPage:x}=kT({page:l,itemsPerPage:u,itemsLength:f}),{flatItems:S}=f0(h,a,p),{isSelected:T,select:C,selectAll:w,toggleSelect:A,someSelected:D,allSelected:P}=v0(e,{allItems:h,currentPage:h}),{isExpanded:k,toggleExpand:L}=u0(e),V=E(()=>_(h.value));d0({page:l,itemsPerPage:u,sortBy:i,groupBy:a,search:oe(e,"search")}),Lt("v-data-table",{toggleSort:g,sortBy:i}),Kt({VDataTableRows:{hideNoData:oe(e,"hideNoData"),noDataText:oe(e,"noDataText"),loading:oe(e,"loading"),loadingText:oe(e,"loadingText")}});const N=E(()=>({page:l.value,itemsPerPage:u.value,sortBy:i.value,pageCount:b.value,toggleSort:g,setItemsPerPage:x,someSelected:D.value,allSelected:P.value,isSelected:T,select:C,selectAll:w,toggleSelect:A,isExpanded:k,toggleExpand:L,isGroupOpen:m,toggleGroup:y,items:V.value.map($=>$.raw),internalItems:V.value,groupedItems:S.value,columns:d.value,headers:v.value}));ge(()=>{const $=Pv.filterProps(e),z=cu.filterProps(e),H=fu.filterProps(e),U=du.filterProps(e);return I(du,ve({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},U),{top:()=>{var Y;return(Y=r.top)==null?void 0:Y.call(r,N.value)},default:()=>{var Y,J,ue,le,be,ae;return r.default?r.default(N.value):I(ke,null,[(Y=r.colgroup)==null?void 0:Y.call(r,N.value),!e.hideDefaultHeader&&I("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[I(cu,ve(z,{sticky:e.fixedHeader}),r)]),(J=r.thead)==null?void 0:J.call(r,N.value),!e.hideDefaultBody&&I("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[(ue=r["body.prepend"])==null?void 0:ue.call(r,N.value),r.body?r.body(N.value):I(fu,ve(n,H,{items:S.value}),r),(le=r["body.append"])==null?void 0:le.call(r,N.value)]),(be=r.tbody)==null?void 0:be.call(r,N.value),(ae=r.tfoot)==null?void 0:ae.call(r,N.value)])},bottom:()=>r.bottom?r.bottom(N.value):!e.hideDefaultFooter&&I(ke,null,[I(Sh,null,null),I(Pv,$,{prepend:r["footer.prepend"]})])})})}}),Iee=ne({fluid:{type:Boolean,default:!1},...Me(),...gn(),...nt()},"VContainer"),Dee=fe()({name:"VContainer",props:Iee(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Tn(),{dimensionStyles:a}=pn(e);return ge(()=>I(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},r.value,e.class],style:[a.value,e.style]},n)),{}}}),z5=Yy.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),F5=Yy.reduce((e,t)=>{const n="offset"+Oi(t);return e[n]={type:[String,Number],default:null},e},{}),H5=Yy.reduce((e,t)=>{const n="order"+Oi(t);return e[n]={type:[String,Number],default:null},e},{}),Pk={col:Object.keys(z5),offset:Object.keys(F5),order:Object.keys(H5)};function Pee(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const a=t.replace(e,"");r+=`-${a}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const kee=["auto","start","end","center","baseline","stretch"],Mee=ne({cols:{type:[Boolean,String,Number],default:!1},...z5,offset:{type:[String,Number],default:null},...F5,order:{type:[String,Number],default:null},...H5,alignSelf:{type:String,default:null,validator:e=>kee.includes(e)},...Me(),...nt()},"VCol"),Lee=fe()({name:"VCol",props:Mee(),setup(e,t){let{slots:n}=t;const r=E(()=>{const a=[];let i;for(i in Pk)Pk[i].forEach(s=>{const l=e[s],u=Pee(i,s,l);u&&a.push(u)});const o=a.some(s=>s.startsWith("v-col-"));return a.push({"v-col":!o||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),a});return()=>{var a;return ra(e.tag,{class:[r.value,e.class],style:e.style},(a=n.default)==null?void 0:a.call(n))}}}),BT=["start","end","center"],G5=["space-between","space-around","space-evenly"];function zT(e,t){return Yy.reduce((n,r)=>{const a=e+Oi(r);return n[a]=t(),n},{})}const Eee=[...BT,"baseline","stretch"],$5=e=>Eee.includes(e),W5=zT("align",()=>({type:String,default:null,validator:$5})),Ree=[...BT,...G5],U5=e=>Ree.includes(e),Y5=zT("justify",()=>({type:String,default:null,validator:U5})),Vee=[...BT,...G5,"stretch"],X5=e=>Vee.includes(e),j5=zT("alignContent",()=>({type:String,default:null,validator:X5})),kk={align:Object.keys(W5),justify:Object.keys(Y5),alignContent:Object.keys(j5)},Oee={align:"align",justify:"justify",alignContent:"align-content"};function Nee(e,t,n){let r=Oee[e];if(n!=null){if(t){const a=t.replace(e,"");r+=`-${a}`}return r+=`-${n}`,r.toLowerCase()}}const Bee=ne({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:$5},...W5,justify:{type:String,default:null,validator:U5},...Y5,alignContent:{type:String,default:null,validator:X5},...j5,...Me(),...nt()},"VRow"),zee=fe()({name:"VRow",props:Bee(),setup(e,t){let{slots:n}=t;const r=E(()=>{const a=[];let i;for(i in kk)kk[i].forEach(o=>{const s=e[o],l=Nee(i,o,s);l&&a.push(l)});return a.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),a});return()=>{var a;return ra(e.tag,{class:["v-row",r.value,e.class],style:e.style},(a=n.default)==null?void 0:a.call(n))}}}),Z5=zi("v-spacer","div","VSpacer"),K5=ne({active:{type:[String,Array],default:void 0},disabled:{type:[Boolean,String,Array],default:!1},nextIcon:{type:Ye,default:"$next"},prevIcon:{type:Ye,default:"$prev"},modeIcon:{type:Ye,default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),vx=fe()({name:"VDatePickerControls",props:K5(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,t){let{emit:n}=t;const r=E(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),a=E(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),i=E(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),o=E(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function s(){n("click:prev")}function l(){n("click:next")}function u(){n("click:year")}function c(){n("click:month")}return ge(()=>I("div",{class:["v-date-picker-controls"]},[I(xt,{class:"v-date-picker-controls__month-btn",disabled:r.value,text:e.text,variant:"text",rounded:!0,onClick:c},null),I(xt,{key:"mode-btn",class:"v-date-picker-controls__mode-btn",disabled:a.value,density:"comfortable",icon:e.modeIcon,variant:"text",onClick:u},null),I(Z5,{key:"mode-spacer"},null),I("div",{key:"month-buttons",class:"v-date-picker-controls__month"},[I(xt,{disabled:i.value,icon:e.prevIcon,variant:"text",onClick:s},null),I(xt,{disabled:o.value,icon:e.nextIcon,variant:"text",onClick:l},null)])])),{}}}),Fee=ne({appendIcon:String,color:String,header:String,transition:String,onClick:$n()},"VDatePickerHeader"),hx=fe()({name:"VDatePickerHeader",props:Fee(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:i}=Et(e,"color");function o(){n("click")}function s(){n("click:append")}return ge(()=>{const l=!!(r.default||e.header),u=!!(r.append||e.appendIcon);return I("div",{class:["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},a.value],style:i.value,onClick:o},[r.prepend&&I("div",{key:"prepend",class:"v-date-picker-header__prepend"},[r.prepend()]),l&&I(lr,{key:"content",name:e.transition},{default:()=>{var c;return[I("div",{key:e.header,class:"v-date-picker-header__content"},[((c=r.default)==null?void 0:c.call(r))??e.header])]}}),u&&I("div",{class:"v-date-picker-header__append"},[r.append?I(lt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var c;return[(c=r.append)==null?void 0:c.call(r)]}}):I(xt,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:s},null)])])}),{}}}),Hee=ne({allowedDates:[Array,Function],disabled:Boolean,displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:[Number,String]},"calendar");function Gee(e){const t=hh(),n=Ve(e,"modelValue",[],v=>jt(v)),r=E(()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),a=Ve(e,"year",void 0,v=>{const h=v!=null?Number(v):t.getYear(r.value);return t.startOfYear(t.setYear(t.date(),h))},v=>t.getYear(v)),i=Ve(e,"month",void 0,v=>{const h=v!=null?Number(v):t.getMonth(r.value),g=t.setYear(t.startOfMonth(t.date()),t.getYear(a.value));return t.setMonth(g,h)},v=>t.getMonth(v)),o=E(()=>{const v=Number(e.firstDayOfWeek??0);return e.weekdays.map(h=>(h+v)%7)}),s=E(()=>{const v=t.getWeekArray(i.value,e.firstDayOfWeek),h=v.flat(),g=6*7;if(e.weeksInMonth==="static"&&h.lengtho.value.includes(t.toJsDate(g).getDay())).map((g,p)=>{const m=t.toISO(g),y=!t.isSameMonth(g,i.value),_=t.isSameDay(g,t.startOfMonth(i.value)),b=t.isSameDay(g,t.endOfMonth(i.value)),x=t.isSameDay(g,i.value);return{date:g,isoDate:m,formatted:t.format(g,"keyboardDate"),year:t.getYear(g),month:t.getMonth(g),isDisabled:d(g),isWeekStart:p%7===0,isWeekEnd:p%7===6,isToday:t.isSameDay(g,h),isAdjacent:y,isHidden:y&&!e.showAdjacentMonths,isStart:_,isSelected:n.value.some(S=>t.isSameDay(g,S)),isEnd:b,isSame:x,localized:t.format(g,"dayOfMonth")}})}const u=E(()=>{const v=t.startOfWeek(r.value,e.firstDayOfWeek),h=[];for(let p=0;p<=6;p++)h.push(t.addDays(v,p));const g=t.date();return l(h,g)}),c=E(()=>{const v=s.value.flat(),h=t.date();return l(v,h)}),f=E(()=>s.value.map(v=>v.length?HZ(t,v[0]):null));function d(v){if(e.disabled)return!0;const h=t.date(v);return e.min&&t.isAfter(t.date(e.min),h)||e.max&&t.isAfter(h,t.date(e.max))?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(g=>t.isSameDay(t.date(g),h)):typeof e.allowedDates=="function"?!e.allowedDates(h):!1}return{displayValue:r,daysInMonth:c,daysInWeek:u,genDays:l,model:n,weeksInMonth:s,weekDays:o,weekNumbers:f}}const q5=ne({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},...Hee()},"VDatePickerMonth"),gx=fe()({name:"VDatePickerMonth",props:q5(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ye(),{daysInMonth:i,model:o,weekNumbers:s}=Gee(e),l=hh(),u=Te(),c=Te(),f=Te(!1),d=E(()=>f.value?e.reverseTransition:e.transition);e.multiple==="range"&&o.value.length>0&&(u.value=o.value[0],o.value.length>1&&(c.value=o.value[o.value.length-1]));const v=E(()=>{const m=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return o.value.length>=m});Ce(i,(m,y)=>{y&&(f.value=l.isBefore(m[0].date,y[0].date))});function h(m){const y=l.startOfDay(m);if(o.value.length===0?u.value=void 0:o.value.length===1&&(u.value=o.value[0],c.value=void 0),!u.value)u.value=y,o.value=[u.value];else if(c.value)u.value=m,c.value=void 0,o.value=[u.value];else{if(l.isSameDay(y,u.value)){u.value=void 0,o.value=[];return}else l.isBefore(y,u.value)?(c.value=l.endOfDay(u.value),u.value=y):c.value=l.endOfDay(y);const _=l.getDiff(c.value,u.value,"days"),b=[u.value];for(let x=1;x<_;x++){const S=l.addDays(u.value,x);b.push(S)}b.push(c.value),o.value=b}}function g(m){const y=o.value.findIndex(_=>l.isSameDay(_,m));if(y===-1)o.value=[...o.value,m];else{const _=[...o.value];_.splice(y,1),o.value=_}}function p(m){e.multiple==="range"?h(m):e.multiple?g(m):o.value=[m]}return()=>I("div",{class:"v-date-picker-month"},[e.showWeek&&I("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&I("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[ta(" ")]),s.value.map(m=>I("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[m]))]),I(lr,{name:d.value},{default:()=>{var m;return[I("div",{ref:a,key:(m=i.value[0].date)==null?void 0:m.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&l.getWeekdays(e.firstDayOfWeek).map(y=>I("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[y])),i.value.map((y,_)=>{const b={props:{onClick:()=>p(y.date)},item:y,i:_};return v.value&&!y.isSelected&&(y.isDisabled=!0),I("div",{class:["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":y.isAdjacent,"v-date-picker-month__day--hide-adjacent":y.isHidden,"v-date-picker-month__day--selected":y.isSelected,"v-date-picker-month__day--week-end":y.isWeekEnd,"v-date-picker-month__day--week-start":y.isWeekStart}],"data-v-date":y.isDisabled?void 0:y.isoDate},[(e.showAdjacentMonths||!y.isAdjacent)&&I(lt,{defaults:{VBtn:{class:"v-date-picker-month__day-btn",color:(y.isSelected||y.isToday)&&!y.isDisabled?e.color:void 0,disabled:y.isDisabled,icon:!0,ripple:!1,text:y.localized,variant:y.isDisabled?y.isToday?"outlined":"text":y.isToday&&!y.isSelected?"outlined":"flat",onClick:()=>p(y.date)}}},{default:()=>{var x;return[((x=r.day)==null?void 0:x.call(r,b))??I(xt,b.props,null)]}})])})])]}})])}}),J5=ne({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number},"VDatePickerMonths"),px=fe()({name:"VDatePickerMonths",props:J5(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=hh(),i=Ve(e,"modelValue"),o=E(()=>{let s=a.startOfYear(a.date());return e.year&&(s=a.setYear(s,e.year)),xi(12).map(l=>{const u=a.format(s,"monthShort"),c=!!(e.min&&a.isAfter(a.startOfMonth(a.date(e.min)),s)||e.max&&a.isAfter(s,a.startOfMonth(a.date(e.max))));return s=a.getNextMonth(s),{isDisabled:c,text:u,value:l}})});return un(()=>{i.value=i.value??a.getMonth(a.date())}),ge(()=>I("div",{class:"v-date-picker-months",style:{height:De(e.height)}},[I("div",{class:"v-date-picker-months__content"},[o.value.map((s,l)=>{var f;const u={active:i.value===l,color:i.value===l?e.color:void 0,disabled:s.isDisabled,rounded:!0,text:s.text,variant:i.value===s.value?"flat":"text",onClick:()=>c(l)};function c(d){if(i.value===d){n("update:modelValue",i.value);return}i.value=d}return((f=r.month)==null?void 0:f.call(r,{month:s,i:l,props:u}))??I(xt,ve({key:"month"},u),null)})])])),{}}}),Q5=ne({color:String,height:[String,Number],min:null,max:null,modelValue:Number},"VDatePickerYears"),mx=fe()({name:"VDatePickerYears",props:Q5(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=hh(),i=Ve(e,"modelValue"),o=E(()=>{const l=a.getYear(a.date());let u=l-100,c=l+52;e.min&&(u=a.getYear(a.date(e.min))),e.max&&(c=a.getYear(a.date(e.max)));let f=a.startOfYear(a.date());return f=a.setYear(f,u),xi(c-u+1,u).map(d=>{const v=a.format(f,"year");return f=a.setYear(f,a.getYear(f)+1),{text:v,value:d}})});un(()=>{i.value=i.value??a.getYear(a.date())});const s=pm();return wn(async()=>{var l;await ht(),(l=s.el)==null||l.scrollIntoView({block:"center"})}),ge(()=>I("div",{class:"v-date-picker-years",style:{height:De(e.height)}},[I("div",{class:"v-date-picker-years__content"},[o.value.map((l,u)=>{var f;const c={ref:i.value===l.value?s:void 0,active:i.value===l.value,color:i.value===l.value?e.color:void 0,rounded:!0,text:l.text,variant:i.value===l.value?"flat":"text",onClick:()=>{if(i.value===l.value){n("update:modelValue",i.value);return}i.value=l.value}};return((f=r.year)==null?void 0:f.call(r,{year:l,i:u,props:c}))??I(xt,ve({key:"month"},c),null)})])])),{}}}),$ee=zi("v-picker-title"),e3=ne({bgColor:String,landscape:Boolean,title:String,hideHeader:Boolean,...l0()},"VPicker"),Mk=fe()({name:"VPicker",props:e3(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(oe(e,"color"));return ge(()=>{const i=uu.filterProps(e),o=!!(e.title||n.title);return I(uu,ve(i,{color:e.bgColor,class:["v-picker",{"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>{var s;return[!e.hideHeader&&I("div",{key:"header",class:[r.value],style:[a.value]},[o&&I($ee,{key:"picker-title"},{default:()=>{var l;return[((l=n.title)==null?void 0:l.call(n))??e.title]}}),n.header&&I("div",{class:"v-picker__header"},[n.header()])]),I("div",{class:"v-picker__body"},[(s=n.default)==null?void 0:s.call(n)]),n.actions&&I(lt,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[I("div",{class:"v-picker__actions"},[n.actions()])]})]}})}),{}}}),Wee=ne({header:{type:String,default:"$vuetify.datePicker.header"},...K5(),...q5({weeksInMonth:"static"}),...vn(J5(),["modelValue"]),...vn(Q5(),["modelValue"]),...e3({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),Uee=fe()({name:"VDatePicker",props:Wee(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=hh(),{t:i}=nn(),o=Ve(e,"modelValue",void 0,w=>jt(w),w=>e.multiple?w:w[0]),s=Ve(e,"viewMode"),l=E(()=>{var A;const w=a.date((A=o.value)==null?void 0:A[0]);return w&&a.isValid(w)?w:a.date()}),u=ye(Number(e.month??a.getMonth(a.startOfMonth(l.value)))),c=ye(Number(e.year??a.getYear(a.startOfYear(a.setMonth(l.value,u.value))))),f=Te(!1),d=E(()=>e.multiple&&o.value.length>1?i("$vuetify.datePicker.itemsSelected",o.value.length):o.value[0]&&a.isValid(o.value[0])?a.format(a.date(o.value[0]),"normalDateWithWeekday"):i(e.header)),v=E(()=>{let w=a.date();return w=a.setDate(w,1),w=a.setMonth(w,u.value),w=a.setYear(w,c.value),a.format(w,"monthAndYear")}),h=E(()=>`date-picker-header${f.value?"-reverse":""}-transition`),g=E(()=>{const w=a.date(e.min);return e.min&&a.isValid(w)?w:null}),p=E(()=>{const w=a.date(e.max);return e.max&&a.isValid(w)?w:null}),m=E(()=>{if(e.disabled)return!0;const w=[];if(s.value!=="month")w.push("prev","next");else{let A=a.date();if(A=a.setYear(A,c.value),A=a.setMonth(A,u.value),g.value){const D=a.addDays(a.startOfMonth(A),-1);a.isAfter(g.value,D)&&w.push("prev")}if(p.value){const D=a.addDays(a.endOfMonth(A),1);a.isAfter(D,p.value)&&w.push("next")}}return w});function y(){u.value<11?u.value++:(c.value++,u.value=0,C(c.value)),T(u.value)}function _(){u.value>0?u.value--:(c.value--,u.value=11,C(c.value)),T(u.value)}function b(){s.value="month"}function x(){s.value=s.value==="months"?"month":"months"}function S(){s.value=s.value==="year"?"month":"year"}function T(w){s.value==="months"&&x(),n("update:month",w)}function C(w){s.value==="year"&&S(),n("update:year",w)}return Ce(o,(w,A)=>{const D=jt(A),P=jt(w);if(!P.length)return;const k=a.date(D[D.length-1]),L=a.date(P[P.length-1]),V=a.getMonth(L),N=a.getYear(L);V!==u.value&&(u.value=V,T(u.value)),N!==c.value&&(c.value=N,C(c.value)),f.value=a.isBefore(k,L)}),ge(()=>{const w=Mk.filterProps(e),A=vx.filterProps(e),D=hx.filterProps(e),P=gx.filterProps(e),k=vn(px.filterProps(e),["modelValue"]),L=vn(mx.filterProps(e),["modelValue"]),V={header:d.value,transition:h.value};return I(Mk,ve(w,{class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},e.class],style:e.style}),{title:()=>{var N;return((N=r.title)==null?void 0:N.call(r))??I("div",{class:"v-date-picker__title"},[i(e.title)])},header:()=>r.header?I(lt,{defaults:{VDatePickerHeader:{...V}}},{default:()=>{var N;return[(N=r.header)==null?void 0:N.call(r,V)]}}):I(hx,ve({key:"header"},D,V,{onClick:s.value!=="month"?b:void 0}),{...r,default:void 0}),default:()=>I(ke,null,[I(vx,ve(A,{disabled:m.value,text:v.value,"onClick:next":y,"onClick:prev":_,"onClick:month":x,"onClick:year":S}),null),I(wv,{hideOnLeave:!0},{default:()=>[s.value==="months"?I(px,ve({key:"date-picker-months"},k,{modelValue:u.value,"onUpdate:modelValue":[N=>u.value=N,T],min:g.value,max:p.value,year:c.value}),null):s.value==="year"?I(mx,ve({key:"date-picker-years"},L,{modelValue:c.value,"onUpdate:modelValue":[N=>c.value=N,C],min:g.value,max:p.value}),null):I(gx,ve({key:"date-picker-month"},P,{modelValue:o.value,"onUpdate:modelValue":N=>o.value=N,month:u.value,"onUpdate:month":[N=>u.value=N,T],year:c.value,"onUpdate:year":[N=>c.value=N,C],min:g.value,max:p.value}),null)]})]),actions:r.actions})}),{}}}),Yee=ne({actionText:String,bgColor:String,color:String,icon:Ye,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...Me(),...gn(),...Fi({size:void 0}),...gt()},"VEmptyState"),Xee=fe()({name:"VEmptyState",props:Yee(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{themeClasses:a}=Ct(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Et(oe(e,"bgColor")),{dimensionStyles:s}=pn(e),{displayClasses:l}=Wr();function u(c){n("click:action",c)}return ge(()=>{var p,m,y;const c=!!(r.actions||e.actionText),f=!!(r.headline||e.headline),d=!!(r.title||e.title),v=!!(r.text||e.text),h=!!(r.media||e.image||e.icon),g=e.size||(e.image?200:96);return I("div",{class:["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},a.value,i.value,l.value,e.class],style:[o.value,s.value,e.style]},[h&&I("div",{key:"media",class:"v-empty-state__media"},[r.media?I(lt,{key:"media-defaults",defaults:{VImg:{src:e.image,height:g},VIcon:{size:g,icon:e.icon}}},{default:()=>[r.media()]}):I(ke,null,[e.image?I(po,{key:"image",src:e.image,height:g},null):e.icon?I(wt,{key:"icon",color:e.color,size:g,icon:e.icon},null):void 0])]),f&&I("div",{key:"headline",class:"v-empty-state__headline"},[((p=r.headline)==null?void 0:p.call(r))??e.headline]),d&&I("div",{key:"title",class:"v-empty-state__title"},[((m=r.title)==null?void 0:m.call(r))??e.title]),v&&I("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:De(e.textWidth)}},[((y=r.text)==null?void 0:y.call(r))??e.text]),r.default&&I("div",{key:"content",class:"v-empty-state__content"},[r.default()]),c&&I("div",{key:"actions",class:"v-empty-state__actions"},[I(lt,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",text:e.actionText}}},{default:()=>{var _;return[((_=r.actions)==null?void 0:_.call(r,{props:{onClick:u}}))??I(xt,{onClick:u},null)]}})])])}),{}}}),kv=Symbol.for("vuetify:v-expansion-panel"),t3=ne({...Me(),...yT()},"VExpansionPanelText"),yx=fe()({name:"VExpansionPanelText",props:t3(),setup(e,t){let{slots:n}=t;const r=rt(kv);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:a,onAfterLeave:i}=_T(e,r.isSelected);return ge(()=>I(Zy,{onAfterLeave:i},{default:()=>{var o;return[Zt(I("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&a.value&&I("div",{class:"v-expansion-panel-text__wrapper"},[(o=n.default)==null?void 0:o.call(n)])]),[[Ma,r.isSelected.value]])]}})),{}}}),n3=ne({color:String,expandIcon:{type:Ye,default:"$expand"},collapseIcon:{type:Ye,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...Me(),...gn()},"VExpansionPanelTitle"),_x=fe()({name:"VExpansionPanelTitle",directives:{Ripple:Po},props:n3(),setup(e,t){let{slots:n}=t;const r=rt(kv);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:a,backgroundColorStyles:i}=Et(e,"color"),{dimensionStyles:o}=pn(e),s=E(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),l=E(()=>r.isSelected.value?e.collapseIcon:e.expandIcon);return ge(()=>{var u;return Zt(I("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},a.value,e.class],style:[i.value,o.value,e.style],type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[I("span",{class:"v-expansion-panel-title__overlay"},null),(u=n.default)==null?void 0:u.call(n,s.value),!e.hideActions&&I(lt,{defaults:{VIcon:{icon:l.value}}},{default:()=>{var c;return[I("span",{class:"v-expansion-panel-title__icon"},[((c=n.actions)==null?void 0:c.call(n,s.value))??I(wt,null,null)])]}})]),[[na("ripple"),e.ripple]])}),{}}}),r3=ne({title:String,text:String,bgColor:String,...An(),...Iu(),...Yt(),...nt(),...n3(),...t3()},"VExpansionPanel"),jee=fe()({name:"VExpansionPanel",props:r3(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Du(e,kv),{backgroundColorClasses:a,backgroundColorStyles:i}=Et(e,"bgColor"),{elevationClasses:o}=Un(e),{roundedClasses:s}=Qt(e),l=E(()=>(r==null?void 0:r.disabled.value)||e.disabled),u=E(()=>r.group.items.value.reduce((d,v,h)=>(r.group.selected.value.includes(v.id)&&d.push(h),d),[])),c=E(()=>{const d=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-d===1)}),f=E(()=>{const d=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-d===-1)});return Lt(kv,r),ge(()=>{const d=!!(n.text||e.text),v=!!(n.title||e.title),h=_x.filterProps(e),g=yx.filterProps(e);return I(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":f.value,"v-expansion-panel--disabled":l.value},s.value,a.value,e.class],style:[i.value,e.style]},{default:()=>[I("div",{class:["v-expansion-panel__shadow",...o.value]},null),I(lt,{defaults:{VExpansionPanelTitle:{...h},VExpansionPanelText:{...g}}},{default:()=>{var p;return[v&&I(_x,{key:"title"},{default:()=>[n.title?n.title():e.title]}),d&&I(yx,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(p=n.default)==null?void 0:p.call(n)]}})]})}),{groupItem:r}}}),Zee=["default","accordion","inset","popout"],Kee=ne({flat:Boolean,...Au(),...UC(r3(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...gt(),...Me(),...nt(),variant:{type:String,default:"default",validator:e=>Zee.includes(e)}},"VExpansionPanels"),qee=fe()({name:"VExpansionPanels",props:Kee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:r,prev:a}=Hs(e,kv),{themeClasses:i}=Ct(e),o=E(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Kt({VExpansionPanel:{bgColor:oe(e,"bgColor"),collapseIcon:oe(e,"collapseIcon"),color:oe(e,"color"),eager:oe(e,"eager"),elevation:oe(e,"elevation"),expandIcon:oe(e,"expandIcon"),focusable:oe(e,"focusable"),hideActions:oe(e,"hideActions"),readonly:oe(e,"readonly"),ripple:oe(e,"ripple"),rounded:oe(e,"rounded"),static:oe(e,"static")}}),ge(()=>I(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},i.value,o.value,e.class],style:e.style},{default:()=>{var s;return[(s=n.default)==null?void 0:s.call(n,{prev:a,next:r})]}})),{next:r,prev:a}}}),Jee=ne({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...vn(Qy({active:!0}),["location"]),...xu(),...Do(),...ai({transition:"fab-transition"})},"VFab"),Qee=fe()({name:"VFab",props:Jee(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),a=Te(56),i=ye(),{resizeRef:o}=ti(f=>{f.length&&(a.value=f[0].target.clientHeight)}),s=E(()=>e.app||e.absolute),l=E(()=>{var f;return s.value?((f=e.location)==null?void 0:f.split(" ").shift())??"bottom":!1}),u=E(()=>{var f;return s.value?((f=e.location)==null?void 0:f.split(" ")[1])??"end":!1});Cr(()=>e.app,()=>{const f=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:l,layoutSize:E(()=>e.layout?a.value+24:0),elementSize:E(()=>a.value+24),active:E(()=>e.app&&r.value),absolute:oe(e,"absolute")});un(()=>{i.value=f.layoutItemStyles.value})});const c=ye();return ge(()=>{const f=xt.filterProps(e);return I("div",{ref:c,class:["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${l.value}`]:s.value,[`v-fab--${u.value}`]:s.value},e.class],style:[e.app?{...i.value}:{height:"inherit",width:void 0},e.style]},[I("div",{class:"v-fab__container"},[I(lr,{appear:e.appear,transition:e.transition},{default:()=>[Zt(I(xt,ve({ref:o},f,{active:void 0,location:void 0}),n),[[Ma,e.active]])]})])])}),{}}}),ete=ne({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},...Mo({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>jt(e).every(t=>t!=null&&typeof t=="object")},...wh({clearable:!0})},"VFileInput"),tte=fe()({name:"VFileInput",inheritAttrs:!1,props:ete(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:i}=nn(),o=Ve(e,"modelValue",e.modelValue,w=>jt(w),w=>!e.multiple&&Array.isArray(w)?w[0]:w),{isFocused:s,focus:l,blur:u}=ko(e),c=E(()=>typeof e.showSize!="boolean"?e.showSize:void 0),f=E(()=>(o.value??[]).reduce((w,A)=>{let{size:D=0}=A;return w+D},0)),d=E(()=>$P(f.value,c.value)),v=E(()=>(o.value??[]).map(w=>{const{name:A="",size:D=0}=w;return e.showSize?`${A} (${$P(D,c.value)})`:A})),h=E(()=>{var A;const w=((A=o.value)==null?void 0:A.length)??0;return e.showSize?i(e.counterSizeString,w,d.value):i(e.counterString,w)}),g=ye(),p=ye(),m=ye(),y=E(()=>s.value||e.active),_=E(()=>["plain","underlined"].includes(e.variant));function b(){var w;m.value!==document.activeElement&&((w=m.value)==null||w.focus()),s.value||l()}function x(w){var A;(A=m.value)==null||A.click()}function S(w){r("mousedown:control",w)}function T(w){var A;(A=m.value)==null||A.click(),r("click:control",w)}function C(w){w.stopPropagation(),b(),ht(()=>{o.value=[],XC(e["onClick:clear"],w)})}return Ce(o,w=>{(!Array.isArray(w)||!w.length)&&m.value&&(m.value.value="")}),ge(()=>{const w=!!(a.counter||e.counter),A=!!(w||a.details),[D,P]=zs(n),{modelValue:k,...L}=qn.filterProps(e),V=bT(e);return I(qn,ve({ref:g,modelValue:o.value,"onUpdate:modelValue":N=>o.value=N,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":_.value},e.class],style:e.style,"onClick:prepend":x},D,L,{centerAffix:!_.value,focused:s.value}),{...a,default:N=>{let{id:$,isDisabled:z,isDirty:H,isReadonly:U,isValid:Y}=N;return I(xf,ve({ref:p,"prepend-icon":e.prependIcon,onMousedown:S,onClick:T,"onClick:clear":C,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},V,{id:$.value,active:y.value||H.value,dirty:H.value||e.dirty,disabled:z.value,focused:s.value,error:Y.value===!1}),{...a,default:J=>{var be;let{props:{class:ue,...le}}=J;return I(ke,null,[I("input",ve({ref:m,type:"file",readonly:U.value,disabled:z.value,multiple:e.multiple,name:e.name,onClick:ae=>{ae.stopPropagation(),U.value&&ae.preventDefault(),b()},onChange:ae=>{if(!ae.target)return;const Z=ae.target;o.value=[...Z.files??[]]},onFocus:b,onBlur:u},le,P),null),I("div",{class:ue},[!!((be=o.value)!=null&&be.length)&&!e.hideInput&&(a.selection?a.selection({fileNames:v.value,totalBytes:f.value,totalBytesReadable:d.value}):e.chips?v.value.map(ae=>I(Sf,{key:ae,size:"small",text:ae},null)):v.value.join(", "))])])}})},details:A?N=>{var $,z;return I(ke,null,[($=a.details)==null?void 0:$.call(a,N),w&&I(ke,null,[I("span",null,null),I(r0,{active:!!((z=o.value)!=null&&z.length),value:h.value,disabled:e.disabled},a.counter)])])}:void 0})}),Ea({},g,p,m)}}),nte=ne({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Ur(),...Me(),...An(),...xu(),...Yt(),...nt({tag:"footer"}),...gt()},"VFooter"),rte=fe()({name:"VFooter",props:nte(),setup(e,t){let{slots:n}=t;const r=ye(),{themeClasses:a}=Ct(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Et(oe(e,"color")),{borderClasses:s}=oa(e),{elevationClasses:l}=Un(e),{roundedClasses:u}=Qt(e),c=Te(32),{resizeRef:f}=ti(v=>{v.length&&(c.value=v[0].target.clientHeight)}),d=E(()=>e.height==="auto"?c.value:parseInt(e.height,10));return Cr(()=>e.app,()=>{const v=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:E(()=>"bottom"),layoutSize:d,elementSize:E(()=>e.height==="auto"?void 0:d.value),active:E(()=>e.app),absolute:oe(e,"absolute")});un(()=>{r.value=v.layoutItemStyles.value})}),ge(()=>I(e.tag,{ref:f,class:["v-footer",a.value,i.value,s.value,l.value,u.value,e.class],style:[o.value,e.app?r.value:{height:De(e.height)},e.style]},n)),{}}}),ate=ne({...Me(),...fq()},"VForm"),ite=fe()({name:"VForm",props:ate(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=dq(e),i=ye();function o(l){l.preventDefault(),a.reset()}function s(l){const u=l,c=a.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(f=>{var v;let{valid:d}=f;d&&((v=i.value)==null||v.submit())}),u.preventDefault()}return ge(()=>{var l;return I("form",{ref:i,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:o,onSubmit:s},[(l=n.default)==null?void 0:l.call(n,a)])}),Ea(a,i)}}),ote=ne({disabled:Boolean,modelValue:{type:Boolean,default:null},...pT()},"VHover"),ste=fe()({name:"VHover",props:ote(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{runOpenDelay:a,runCloseDelay:i}=mT(e,o=>!e.disabled&&(r.value=o));return()=>{var o;return(o=n.default)==null?void 0:o.call(n,{isHovering:r.value,props:{onMouseenter:a,onMouseleave:i}})}}}),lte=ne({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...gn(),...nt()},"VInfiniteScroll"),Lk=aa({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:r,isIntersecting:a}=Ky();return Ce(a,async i=>{n("intersect",e.side,i)}),ge(()=>I("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:r},[ta(" ")])),{}}}),ute=fe()({name:"VInfiniteScroll",props:lte(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ye(),i=Te("ok"),o=Te("ok"),s=E(()=>De(e.margin)),l=Te(!1);function u(x){if(!a.value)return;const S=e.direction==="vertical"?"scrollTop":"scrollLeft";a.value[S]=x}function c(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";return a.value[x]}function f(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollHeight":"scrollWidth";return a.value[x]}function d(){if(!a.value)return 0;const x=e.direction==="vertical"?"clientHeight":"clientWidth";return a.value[x]}wn(()=>{a.value&&(e.side==="start"?u(f()):e.side==="both"&&u(f()/2-d()/2))});function v(x,S){x==="start"?i.value=S:x==="end"&&(o.value=S)}function h(x){return x==="start"?i.value:o.value}let g=0;function p(x,S){l.value=S,l.value&&m(x)}function m(x){if(e.mode!=="manual"&&!l.value)return;const S=h(x);if(!a.value||["empty","loading"].includes(S))return;g=f(),v(x,"loading");function T(C){v(x,C),ht(()=>{C==="empty"||C==="error"||(C==="ok"&&x==="start"&&u(f()-g+c()),e.mode!=="manual"&&ht(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{m(x)})})})}))})}r("load",{side:x,done:T})}const{t:y}=nn();function _(x,S){var w,A,D,P,k;if(e.side!==x&&e.side!=="both")return;const T=()=>m(x),C={side:x,props:{onClick:T,color:e.color}};return S==="error"?(w=n.error)==null?void 0:w.call(n,C):S==="empty"?((A=n.empty)==null?void 0:A.call(n,C))??I("div",null,[y(e.emptyText)]):e.mode==="manual"?S==="loading"?((D=n.loading)==null?void 0:D.call(n,C))??I(Qc,{indeterminate:!0,color:e.color},null):((P=n["load-more"])==null?void 0:P.call(n,C))??I(xt,{variant:"outlined",color:e.color,onClick:T},{default:()=>[y(e.loadMoreText)]}):((k=n.loading)==null?void 0:k.call(n,C))??I(Qc,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:b}=pn(e);ge(()=>{const x=e.tag,S=e.side==="start"||e.side==="both",T=e.side==="end"||e.side==="both",C=e.mode==="intersect";return I(x,{ref:a,class:["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":S,"v-infinite-scroll--end":T}],style:b.value},{default:()=>{var w;return[I("div",{class:"v-infinite-scroll__side"},[_("start",i.value)]),S&&C&&I(Lk,{key:"start",side:"start",onIntersect:p,rootMargin:s.value},null),(w=n.default)==null?void 0:w.call(n),T&&C&&I(Lk,{key:"end",side:"end",onIntersect:p,rootMargin:s.value},null),I("div",{class:"v-infinite-scroll__side"},[_("end",o.value)])]}})})}}),a3=Symbol.for("vuetify:v-item-group"),cte=ne({...Me(),...Au({selectedClass:"v-item--selected"}),...nt(),...gt()},"VItemGroup"),fte=fe()({name:"VItemGroup",props:cte(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{isSelected:a,select:i,next:o,prev:s,selected:l}=Hs(e,a3);return()=>I(e.tag,{class:["v-item-group",r.value,e.class],style:e.style},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:a,select:i,next:o,prev:s,selected:l.value})]}})}}),dte=fe()({name:"VItem",props:Iu(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,select:a,toggle:i,selectedClass:o,value:s,disabled:l}=Du(e,a3);return()=>{var u;return(u=n.default)==null?void 0:u.call(n,{isSelected:r.value,selectedClass:o.value,select:a,toggle:i,value:s.value,disabled:l.value})}}}),vte=zi("v-kbd","kbd"),hte=ne({...Me(),...gn(),...Yz()},"VLayout"),gte=fe()({name:"VLayout",props:hte(),setup(e,t){let{slots:n}=t;const{layoutClasses:r,layoutStyles:a,getLayoutItem:i,items:o,layoutRef:s}=jz(e),{dimensionStyles:l}=pn(e);return ge(()=>{var u;return I("div",{ref:s,class:[r.value,e.class],style:[l.value,a.value,e.style]},[(u=n.default)==null?void 0:u.call(n)])}),{getLayoutItem:i,items:o}}}),pte=ne({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...Me(),...xu()},"VLayoutItem"),mte=fe()({name:"VLayoutItem",props:pte(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:r}=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:oe(e,"position"),elementSize:oe(e,"size"),layoutSize:oe(e,"size"),active:oe(e,"modelValue"),absolute:oe(e,"absolute")});return()=>{var a;return I("div",{class:["v-layout-item",e.class],style:[r.value,e.style]},[(a=n.default)==null?void 0:a.call(n)])}}}),yte=ne({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...Me(),...gn(),...nt(),...ai({transition:"fade-transition"})},"VLazy"),_te=fe()({name:"VLazy",directives:{intersect:gh},props:yte(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=pn(e),a=Ve(e,"modelValue");function i(o){a.value||(a.value=o)}return ge(()=>Zt(I(e.tag,{class:["v-lazy",e.class],style:[r.value,e.style]},{default:()=>[a.value&&I(lr,{transition:e.transition,appear:!0},{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n)]}})]}),[[na("intersect"),{handler:i,options:e.options},null]])),{}}}),bte=ne({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...Me()},"VLocaleProvider"),Ste=fe()({name:"VLocaleProvider",props:bte(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=Jj(e);return ge(()=>{var a;return I("div",{class:["v-locale-provider",r.value,e.class],style:e.style},[(a=n.default)==null?void 0:a.call(n)])}),{}}}),xte=ne({scrollable:Boolean,...Me(),...gn(),...nt({tag:"main"})},"VMain"),wte=fe()({name:"VMain",props:xte(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=pn(e),{mainStyles:a}=Xz(),{ssrBootStyles:i}=Cu();return ge(()=>I(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[a.value,i.value,r.value,e.style]},{default:()=>{var o,s;return[e.scrollable?I("div",{class:"v-main__scroller"},[(o=n.default)==null?void 0:o.call(n)]):(s=n.default)==null?void 0:s.call(n)]}})),{}}});function Cte(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const a=Te(!1),i=Te(0),o=E(()=>{const u=typeof a.value=="boolean"?"top":a.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,a.value?{[u]:De(i.value)}:{top:r.value.top}]});wn(()=>{Ce(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),Cn(()=>{window.removeEventListener("scroll",l)});let s=0;function l(){const u=s>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),f=parseFloat(r.value.top??0),d=window.scrollY-Math.max(0,i.value-f),v=c.height+Math.max(i.value,f)-window.scrollY-window.innerHeight,h=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;n--){if(e[n].t===e[n-1].t)continue;const r=Ek(t),a=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(a-r)*Math.abs(a),n===e.length-1&&(t*=.5)}return Ek(t)*1e3}function Ite(){const e={};function t(a){Array.from(a.changedTouches).forEach(i=>{(e[i.identifier]??(e[i.identifier]=new vj(Ate))).push([a.timeStamp,i])})}function n(a){Array.from(a.changedTouches).forEach(i=>{delete e[i.identifier]})}function r(a){var u;const i=(u=e[a])==null?void 0:u.values().reverse();if(!i)throw new Error(`No samples for touch id ${a}`);const o=i[0],s=[],l=[];for(const c of i){if(o[0]-c[0]>Tte)break;s.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:Rk(s),y:Rk(l),get direction(){const{x:c,y:f}=this,[d,v]=[Math.abs(c),Math.abs(f)];return d>v&&c>=0?"right":d>v&&c<=0?"left":v>d&&f>=0?"down":v>d&&f<=0?"up":Dte()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function Dte(){throw new Error}function Pte(e){let{el:t,isActive:n,isTemporary:r,width:a,touchless:i,position:o}=e;wn(()=>{window.addEventListener("touchstart",y,{passive:!0}),window.addEventListener("touchmove",_,{passive:!1}),window.addEventListener("touchend",b,{passive:!0})}),Cn(()=>{window.removeEventListener("touchstart",y),window.removeEventListener("touchmove",_),window.removeEventListener("touchend",b)});const s=E(()=>["left","right"].includes(o.value)),{addMovement:l,endTouch:u,getVelocity:c}=Ite();let f=!1;const d=Te(!1),v=Te(0),h=Te(0);let g;function p(S,T){return(o.value==="left"?S:o.value==="right"?document.documentElement.clientWidth-S:o.value==="top"?S:o.value==="bottom"?document.documentElement.clientHeight-S:Yu())-(T?a.value:0)}function m(S){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const C=o.value==="left"?(S-h.value)/a.value:o.value==="right"?(document.documentElement.clientWidth-S-h.value)/a.value:o.value==="top"?(S-h.value)/a.value:o.value==="bottom"?(document.documentElement.clientHeight-S-h.value)/a.value:Yu();return T?Math.max(0,Math.min(1,C)):C}function y(S){if(i.value)return;const T=S.changedTouches[0].clientX,C=S.changedTouches[0].clientY,w=25,A=o.value==="left"?Tdocument.documentElement.clientWidth-w:o.value==="top"?Cdocument.documentElement.clientHeight-w:Yu(),D=n.value&&(o.value==="left"?Tdocument.documentElement.clientWidth-a.value:o.value==="top"?Cdocument.documentElement.clientHeight-a.value:Yu());(A||D||n.value&&r.value)&&(g=[T,C],h.value=p(s.value?T:C,n.value),v.value=m(s.value?T:C),f=h.value>-20&&h.value<80,u(S),l(S))}function _(S){const T=S.changedTouches[0].clientX,C=S.changedTouches[0].clientY;if(f){if(!S.cancelable){f=!1;return}const A=Math.abs(T-g[0]),D=Math.abs(C-g[1]);(s.value?A>D&&A>3:D>A&&D>3)?(d.value=!0,f=!1):(s.value?D:A)>3&&(f=!1)}if(!d.value)return;S.preventDefault(),l(S);const w=m(s.value?T:C,!1);v.value=Math.max(0,Math.min(1,w)),w>1?h.value=p(s.value?T:C,!0):w<0&&(h.value=p(s.value?T:C,!1))}function b(S){if(f=!1,!d.value)return;l(S),d.value=!1;const T=c(S.changedTouches[0].identifier),C=Math.abs(T.x),w=Math.abs(T.y);(s.value?C>w&&C>400:w>C&&w>3)?n.value=T.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||Yu()):n.value=v.value>.5}const x=E(()=>d.value?{transform:o.value==="left"?`translateX(calc(-100% + ${v.value*a.value}px))`:o.value==="right"?`translateX(calc(100% - ${v.value*a.value}px))`:o.value==="top"?`translateY(calc(-100% + ${v.value*a.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${v.value*a.value}px))`:Yu(),transition:"none"}:void 0);return Cr(d,()=>{var C,w;const S=((C=t.value)==null?void 0:C.style.transform)??null,T=((w=t.value)==null?void 0:w.style.transition)??null;un(()=>{var A,D,P,k;(D=t.value)==null||D.style.setProperty("transform",((A=x.value)==null?void 0:A.transform)||"none"),(k=t.value)==null||k.style.setProperty("transition",((P=x.value)==null?void 0:P.transition)||null)}),er(()=>{var A,D;(A=t.value)==null||A.style.setProperty("transform",S),(D=t.value)==null||D.style.setProperty("transition",T)})}),{isDragging:d,dragProgress:v,dragStyles:x}}function Yu(){throw new Error}const kte=["start","end","left","right","top","bottom"],Mte=ne({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>kte.includes(e)},sticky:Boolean,...Ur(),...Me(),...pT(),...Su({mobile:null}),...An(),...xu(),...Yt(),...nt({tag:"nav"}),...gt()},"VNavigationDrawer"),Lte=fe()({name:"VNavigationDrawer",props:Mte(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{isRtl:i}=Tn(),{themeClasses:o}=Ct(e),{borderClasses:s}=oa(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Et(oe(e,"color")),{elevationClasses:c}=Un(e),{displayClasses:f,mobile:d}=Wr(e),{roundedClasses:v}=Qt(e),h=oF(),g=Ve(e,"modelValue",null,Y=>!!Y),{ssrBootStyles:p}=Cu(),{scopeId:m}=ku(),y=ye(),_=Te(!1),{runOpenDelay:b,runCloseDelay:x}=mT(e,Y=>{_.value=Y}),S=E(()=>e.rail&&e.expandOnHover&&_.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),T=E(()=>G1(e.location,i.value)),C=E(()=>e.persistent),w=E(()=>!e.permanent&&(d.value||e.temporary)),A=E(()=>e.sticky&&!w.value&&T.value!=="bottom");Cr(()=>e.expandOnHover&&e.rail!=null,()=>{Ce(_,Y=>r("update:rail",!Y))}),Cr(()=>!e.disableResizeWatcher,()=>{Ce(w,Y=>!e.permanent&&ht(()=>g.value=!Y))}),Cr(()=>!e.disableRouteWatcher&&!!h,()=>{Ce(h.currentRoute,()=>w.value&&(g.value=!1))}),Ce(()=>e.permanent,Y=>{Y&&(g.value=!0)}),e.modelValue==null&&!w.value&&(g.value=e.permanent||!d.value);const{isDragging:D,dragProgress:P}=Pte({el:y,isActive:g,isTemporary:w,width:S,touchless:oe(e,"touchless"),position:T}),k=E(()=>{const Y=w.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):S.value;return D.value?Y*P.value:Y}),L=E(()=>["top","bottom"].includes(e.location)?0:S.value),{layoutItemStyles:V,layoutItemScrimStyles:N}=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:T,layoutSize:k,elementSize:L,active:E(()=>g.value||D.value),disableTransitions:E(()=>D.value),absolute:E(()=>e.absolute||A.value&&typeof $.value!="string")}),{isStuck:$,stickyStyles:z}=Cte({rootEl:y,isSticky:A,layoutItemStyles:V}),H=Et(E(()=>typeof e.scrim=="string"?e.scrim:null)),U=E(()=>({...D.value?{opacity:P.value*.2,transition:"none"}:void 0,...N.value}));return Kt({VList:{bgColor:"transparent"}}),ge(()=>{const Y=a.image||e.image;return I(ke,null,[I(e.tag,ve({ref:y,onMouseenter:b,onMouseleave:x,class:["v-navigation-drawer",`v-navigation-drawer--${T.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":_.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":w.value,"v-navigation-drawer--persistent":C.value,"v-navigation-drawer--active":g.value,"v-navigation-drawer--sticky":A.value},o.value,l.value,s.value,f.value,c.value,v.value,e.class],style:[u.value,V.value,p.value,z.value,e.style,["top","bottom"].includes(T.value)?{height:"auto"}:{}]},m,n),{default:()=>{var J,ue,le;return[Y&&I("div",{key:"image",class:"v-navigation-drawer__img"},[a.image?I(lt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},a.image):I(po,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),a.prepend&&I("div",{class:"v-navigation-drawer__prepend"},[(J=a.prepend)==null?void 0:J.call(a)]),I("div",{class:"v-navigation-drawer__content"},[(ue=a.default)==null?void 0:ue.call(a)]),a.append&&I("div",{class:"v-navigation-drawer__append"},[(le=a.append)==null?void 0:le.call(a)])]}}),I(xs,{name:"fade-transition"},{default:()=>[w.value&&(D.value||g.value)&&!!e.scrim&&I("div",ve({class:["v-navigation-drawer__scrim",H.backgroundColorClasses.value],style:[U.value,H.backgroundColorStyles.value],onClick:()=>{C.value||(g.value=!1)}},m),null)]})])}),{isStuck:$}}}),Ete=aa({name:"VNoSsr",setup(e,t){let{slots:n}=t;const r=UF();return()=>{var a;return r.value&&((a=n.default)==null?void 0:a.call(n))}}}),Rte=ne({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...gn(),...bh(),...Hy(wh({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),Vte=fe()({name:"VOtpInput",props:Rte(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{dimensionStyles:i}=pn(e),{isFocused:o,focus:s,blur:l}=ko(e),u=Ve(e,"modelValue","",C=>C==null?[]:String(C).split(""),C=>C.join("")),{t:c}=nn(),f=E(()=>Number(e.length)),d=E(()=>Array(f.value).fill(0)),v=ye(-1),h=ye(),g=ye([]),p=E(()=>g.value[v.value]);function m(){if(T(p.value.value)){p.value.value="";return}const C=u.value.slice(),w=p.value.value;C[v.value]=w;let A=null;v.value>u.value.length?A=u.value.length+1:v.value+1!==f.value&&(A="next"),u.value=C,A&&Wl(h.value,A)}function y(C){const w=u.value.slice(),A=v.value;let D=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(C.key)&&(C.preventDefault(),C.key==="ArrowLeft"?D="prev":C.key==="ArrowRight"?D="next":["Backspace","Delete"].includes(C.key)&&(w[v.value]="",u.value=w,v.value>0&&C.key==="Backspace"?D="prev":requestAnimationFrame(()=>{var P;(P=g.value[A])==null||P.select()})),requestAnimationFrame(()=>{D!=null&&Wl(h.value,D)}))}function _(C,w){var D,P;w.preventDefault(),w.stopPropagation();const A=((D=w==null?void 0:w.clipboardData)==null?void 0:D.getData("Text").slice(0,f.value))??"";T(A)||(u.value=A.split(""),(P=g.value)==null||P[C].blur())}function b(){u.value=[]}function x(C,w){s(),v.value=w}function S(){l(),v.value=-1}function T(C){return e.type==="number"&&/[^0-9]/g.test(C)}return Kt({VField:{color:E(()=>e.color),bgColor:E(()=>e.color),baseColor:E(()=>e.baseColor),disabled:E(()=>e.disabled),error:E(()=>e.error),variant:E(()=>e.variant)}},{scoped:!0}),Ce(u,C=>{C.length===f.value&&r("finish",C.join(""))},{deep:!0}),Ce(v,C=>{C<0||ht(()=>{var w;(w=g.value[C])==null||w.select()})}),ge(()=>{var A;const[C,w]=zs(n);return I("div",ve({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},C),[I("div",{ref:h,class:"v-otp-input__content",style:[i.value]},[d.value.map((D,P)=>I(ke,null,[e.divider&&P!==0&&I("span",{class:"v-otp-input__divider"},[e.divider]),I(xf,{focused:o.value&&e.focusAll||v.value===P,key:P},{...a,loader:void 0,default:()=>I("input",{ref:k=>g.value[P]=k,"aria-label":c(e.label,P+1),autofocus:P===0&&e.autofocus,autocomplete:"one-time-code",class:["v-otp-input__field"],disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:"1",placeholder:e.placeholder,type:e.type==="number"?"text":e.type,value:u.value[P],onInput:m,onFocus:k=>x(k,P),onBlur:S,onKeydown:y,onPaste:k=>_(P,k)},null)})])),I("input",ve({class:"v-otp-input-input",type:"hidden"},w,{value:u.value.join("")}),null),I(ki,{contained:!0,"content-class":"v-otp-input__loader","model-value":!!e.loading,persistent:!0},{default:()=>{var D;return[((D=a.loader)==null?void 0:D.call(a))??I(Qc,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}}),(A=a.default)==null?void 0:A.call(a)])])}),{blur:()=>{var C;(C=g.value)==null||C.some(w=>w.blur())},focus:()=>{var C;(C=g.value)==null||C[0].focus()},reset:b,isFocused:o}}});function Ote(e){return Math.floor(Math.abs(e))*Math.sign(e)}const Nte=ne({scale:{type:[Number,String],default:.5},...Me()},"VParallax"),Bte=fe()({name:"VParallax",props:Nte(),setup(e,t){let{slots:n}=t;const{intersectionRef:r,isIntersecting:a}=Ky(),{resizeRef:i,contentRect:o}=ti(),{height:s}=Wr(),l=ye();un(()=>{var v;r.value=i.value=(v=l.value)==null?void 0:v.$el});let u;Ce(a,v=>{v?(u=JC(r.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",d,{passive:!0}),d()):u.removeEventListener("scroll",d)}),Cn(()=>{u==null||u.removeEventListener("scroll",d)}),Ce(s,d),Ce(()=>{var v;return(v=o.value)==null?void 0:v.height},d);const c=E(()=>1-sn(+e.scale));let f=-1;function d(){a.value&&(cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;const v=((x=l.value)==null?void 0:x.$el).querySelector(".v-img__img");if(!v)return;const h=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,g=u instanceof Document?window.scrollY:u.scrollTop,p=r.value.getBoundingClientRect().top+g,m=o.value.height,y=p+(m-h)/2,_=Ote((g-y)*c.value),b=Math.max(1,(c.value*(h-m)+m)/m);v.style.setProperty("transform",`translateY(${_}px) scale(${b})`)}))}return ge(()=>I(po,{class:["v-parallax",{"v-parallax--active":a.value},e.class],style:e.style,ref:l,cover:!0,onLoadstart:d,onLoad:d},n)),{}}}),zte=ne({...e0({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),Fte=fe()({name:"VRadio",props:zte(),setup(e,t){let{slots:n}=t;return ge(()=>{const r=Cs.filterProps(e);return I(Cs,ve(r,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),Hte=ne({height:{type:[Number,String],default:"auto"},...Mo(),...vn(fT(),["multiple"]),trueIcon:{type:Ye,default:"$radioOn"},falseIcon:{type:Ye,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),Gte=fe()({name:"VRadioGroup",inheritAttrs:!1,props:Hte(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=Wn(),i=E(()=>e.id||`radio-group-${a}`),o=Ve(e,"modelValue");return ge(()=>{const[s,l]=zs(n),u=qn.filterProps(e),c=Cs.filterProps(e),f=r.label?r.label({label:e.label,props:{for:i.value}}):e.label;return I(qn,ve({class:["v-radio-group",e.class],style:e.style},s,u,{modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,id:i.value}),{...r,default:d=>{let{id:v,messagesId:h,isDisabled:g,isReadonly:p}=d;return I(ke,null,[f&&I(bf,{id:v.value},{default:()=>[f]}),I(mF,ve(c,{id:v.value,"aria-describedby":h.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:g.value,readonly:p.value,"aria-labelledby":f?v.value:void 0,multiple:!1},l,{modelValue:o.value,"onUpdate:modelValue":m=>o.value=m}),r)])}})}),{}}}),$te=ne({...bh(),...Mo(),...d5(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),Wte=fe()({name:"VRangeSlider",props:$te(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ye(),i=ye(),o=ye(),{rtlClasses:s}=Tn();function l(A){if(!a.value||!i.value)return;const D=lx(A,a.value.$el,e.direction),P=lx(A,i.value.$el,e.direction),k=Math.abs(D),L=Math.abs(P);return kA!=null&&A.length?A.map(D=>u.roundValue(D)):[0,0]),{activeThumbRef:f,hasLabels:d,max:v,min:h,mousePressed:g,onSliderMousedown:p,onSliderTouchstart:m,position:y,trackContainerRef:_,readonly:b}=h5({props:e,steps:u,onSliderStart:()=>{r("start",c.value)},onSliderEnd:A=>{var k;let{value:D}=A;const P=f.value===((k=a.value)==null?void 0:k.$el)?[D,c.value[1]]:[c.value[0],D];!e.strict&&P[0]{var L,V,N,$;let{value:D}=A;const[P,k]=c.value;!e.strict&&P===k&&P!==h.value&&(f.value=D>P?(L=i.value)==null?void 0:L.$el:(V=a.value)==null?void 0:V.$el,(N=f.value)==null||N.focus()),f.value===(($=a.value)==null?void 0:$.$el)?c.value=[Math.min(D,k),k]:c.value=[P,Math.max(P,D)]},getActiveThumb:l}),{isFocused:x,focus:S,blur:T}=ko(e),C=E(()=>y(c.value[0])),w=E(()=>y(c.value[1]));return ge(()=>{const A=qn.filterProps(e),D=!!(e.label||n.label||n.prepend);return I(qn,ve({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||d.value,"v-slider--focused":x.value,"v-slider--pressed":g.value,"v-slider--disabled":e.disabled},s.value,e.class],style:e.style,ref:o},A,{focused:x.value}),{...n,prepend:D?P=>{var k,L;return I(ke,null,[((k=n.label)==null?void 0:k.call(n,P))??(e.label?I(bf,{class:"v-slider__label",text:e.label},null):void 0),(L=n.prepend)==null?void 0:L.call(n,P)])}:void 0,default:P=>{var V,N;let{id:k,messagesId:L}=P;return I("div",{class:"v-slider__container",onMousedown:b.value?void 0:p,onTouchstartPassive:b.value?void 0:m},[I("input",{id:`${k.value}_start`,name:e.name||k.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[0]},null),I("input",{id:`${k.value}_stop`,name:e.name||k.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[1]},null),I(g5,{ref:_,start:C.value,stop:w.value},{"tick-label":n["tick-label"]}),I(ux,{ref:a,"aria-describedby":L.value,focused:x&&f.value===((V=a.value)==null?void 0:V.$el),modelValue:c.value[0],"onUpdate:modelValue":$=>c.value=[$,c.value[1]],onFocus:$=>{var z,H,U,Y;S(),f.value=(z=a.value)==null?void 0:z.$el,c.value[0]===c.value[1]&&c.value[1]===h.value&&$.relatedTarget!==((H=i.value)==null?void 0:H.$el)&&((U=a.value)==null||U.$el.blur(),(Y=i.value)==null||Y.$el.focus())},onBlur:()=>{T(),f.value=void 0},min:h.value,max:c.value[1],position:C.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]}),I(ux,{ref:i,"aria-describedby":L.value,focused:x&&f.value===((N=i.value)==null?void 0:N.$el),modelValue:c.value[1],"onUpdate:modelValue":$=>c.value=[c.value[0],$],onFocus:$=>{var z,H,U,Y;S(),f.value=(z=i.value)==null?void 0:z.$el,c.value[0]===c.value[1]&&c.value[0]===v.value&&$.relatedTarget!==((H=a.value)==null?void 0:H.$el)&&((U=i.value)==null||U.$el.blur(),(Y=a.value)==null||Y.$el.focus())},onBlur:()=>{T(),f.value=void 0},min:c.value[0],max:v.value,position:w.value,ripple:e.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}}),Ute=ne({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Ye,default:"$ratingEmpty"},fullIcon:{type:Ye,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...Me(),...Nn(),...Fi(),...nt(),...gt()},"VRating"),Yte=fe()({name:"VRating",props:Ute(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=nn(),{themeClasses:a}=Ct(e),i=Ve(e,"modelValue"),o=E(()=>sn(parseFloat(i.value),0,+e.length)),s=E(()=>xi(Number(e.length),1)),l=E(()=>s.value.flatMap(g=>e.halfIncrements?[g-.5,g]:[g])),u=Te(-1),c=E(()=>l.value.map(g=>{const p=e.hover&&u.value>-1,m=o.value>=g,y=u.value>=g,b=(p?y:m)?e.fullIcon:e.emptyIcon,x=e.activeColor??e.color,S=m||y?x:e.color;return{isFilled:m,isHovered:y,icon:b,color:S}})),f=E(()=>[0,...l.value].map(g=>{function p(){u.value=g}function m(){u.value=-1}function y(){e.disabled||e.readonly||(i.value=o.value===g&&e.clearable?0:g)}return{onMouseenter:e.hover?p:void 0,onMouseleave:e.hover?m:void 0,onClick:y}})),d=E(()=>e.name??`v-rating-${Wn()}`);function v(g){var C,w;let{value:p,index:m,showStar:y=!0}=g;const{onMouseenter:_,onMouseleave:b,onClick:x}=f.value[m+1],S=`${d.value}-${String(p).replace(".","-")}`,T={color:(C=c.value[m])==null?void 0:C.color,density:e.density,disabled:e.disabled,icon:(w=c.value[m])==null?void 0:w.icon,ripple:e.ripple,size:e.size,variant:"plain"};return I(ke,null,[I("label",{for:S,class:{"v-rating__item--half":e.halfIncrements&&p%1>0,"v-rating__item--full":e.halfIncrements&&p%1===0},onMouseenter:_,onMouseleave:b,onClick:x},[I("span",{class:"v-rating__hidden"},[r(e.itemAriaLabel,p,e.length)]),y?n.item?n.item({...c.value[m],props:T,value:p,index:m,rating:o.value}):I(xt,ve({"aria-label":r(e.itemAriaLabel,p,e.length)},T),null):void 0]),I("input",{class:"v-rating__hidden",name:d.value,id:S,type:"radio",value:p,checked:o.value===p,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function h(g){return n["item-label"]?n["item-label"](g):g.label?I("span",null,[g.label]):I("span",null,[ta(" ")])}return ge(()=>{var p;const g=!!((p=e.itemLabels)!=null&&p.length)||n["item-label"];return I(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},a.value,e.class],style:e.style},{default:()=>[I(v,{value:0,index:-1,showStar:!1},null),s.value.map((m,y)=>{var _,b;return I("div",{class:"v-rating__wrapper"},[g&&e.itemLabelPosition==="top"?h({value:m,index:y,label:(_=e.itemLabels)==null?void 0:_[y]}):void 0,I("div",{class:"v-rating__item"},[e.halfIncrements?I(ke,null,[I(v,{value:m-.5,index:y*2},null),I(v,{value:m,index:y*2+1},null)]):I(v,{value:m,index:y},null)]),g&&e.itemLabelPosition==="bottom"?h({value:m,index:y,label:(b=e.itemLabels)==null?void 0:b[y]}):void 0])})]})}),{}}}),Xte={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function jte(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return I("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${e}`]},[t])}function Vk(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>y0(t))}function y0(e){let t=[];if(!e)return t;const n=Xte[e];if(e!==n){if(e.includes(","))return Ok(e);if(e.includes("@"))return Vk(e);n.includes(",")?t=Ok(n):n.includes("@")?t=Vk(n):n&&t.push(y0(n))}return[jte(e,t)]}function Ok(e){return e.replace(/\s/g,"").split(",").map(y0)}const Zte=ne({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...gn(),...An(),...gt()},"VSkeletonLoader"),Kte=fe()({name:"VSkeletonLoader",props:Zte(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Et(oe(e,"color")),{dimensionStyles:i}=pn(e),{elevationClasses:o}=Un(e),{themeClasses:s}=Ct(e),{t:l}=nn(),u=E(()=>y0(jt(e.type).join(",")));return ge(()=>{var d;const c=!n.default||e.loading,f=e.boilerplate||!c?{}:{ariaLive:"polite",ariaLabel:l(e.loadingText),role:"alert"};return I("div",ve({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},s.value,r.value,o.value],style:[a.value,c?i.value:{}]},f),[c?u.value:(d=n.default)==null?void 0:d.call(n)])}),{}}}),qte=fe()({name:"VSlideGroupItem",props:Iu(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Du(e,AF);return()=>{var a;return(a=n.default)==null?void 0:a.call(n,{isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}}});function Jte(e){const t=Te(e());let n=-1;function r(){clearInterval(n)}function a(){r(),ht(()=>t.value=e())}function i(o){const s=o?getComputedStyle(o):{transitionDuration:.2},l=parseFloat(s.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+l;t.value=Math.max(e()-c,0),t.value<=0&&r()},l)}return er(r),{clear:r,time:t,start:i,reset:a}}const Qte=ne({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Do({location:"bottom"}),...yf(),...Yt(),...La(),...gt(),...vn(xh({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),ene=fe()({name:"VSnackbar",props:Qte(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{positionClasses:a}=_f(e),{scopeId:i}=ku(),{themeClasses:o}=Ct(e),{colorClasses:s,colorStyles:l,variantClasses:u}=Tu(e),{roundedClasses:c}=Qt(e),f=Jte(()=>Number(e.timeout)),d=ye(),v=ye(),h=Te(!1),g=Te(0),p=ye(),m=rt(xv,void 0);Cr(()=>!!m,()=>{const D=Xz();un(()=>{p.value=D.mainStyles.value})}),Ce(r,_),Ce(()=>e.timeout,_),wn(()=>{r.value&&_()});let y=-1;function _(){f.reset(),window.clearTimeout(y);const D=Number(e.timeout);if(!r.value||D===-1)return;const P=WC(v.value);f.start(P),y=window.setTimeout(()=>{r.value=!1},D)}function b(){f.reset(),window.clearTimeout(y)}function x(){h.value=!0,b()}function S(){h.value=!1,_()}function T(D){g.value=D.touches[0].clientY}function C(D){Math.abs(g.value-D.changedTouches[0].clientY)>50&&(r.value=!1)}function w(){h.value&&S()}const A=E(()=>e.location.split(" ").reduce((D,P)=>(D[`v-snackbar--${P}`]=!0,D),{}));return ge(()=>{const D=ki.filterProps(e),P=!!(n.default||n.text||e.text);return I(ki,ve({ref:d,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},A.value,a.value,e.class],style:[p.value,e.style]},D,{modelValue:r.value,"onUpdate:modelValue":k=>r.value=k,contentProps:ve({class:["v-snackbar__wrapper",o.value,s.value,c.value,u.value],style:[l.value],onPointerenter:x,onPointerleave:S},D.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:T,onTouchend:C,onAfterLeave:w},i),{default:()=>{var k,L;return[Fs(!1,"v-snackbar"),e.timer&&!h.value&&I("div",{key:"timer",class:"v-snackbar__timer"},[I(qy,{ref:v,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,"model-value":f.time.value},null)]),P&&I("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((k=n.text)==null?void 0:k.call(n))??e.text,(L=n.default)==null?void 0:L.call(n)]),n.actions&&I(lt,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[I("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})]},activator:n.activator})}),Ea({},d)}}),i3=ne({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:Boolean,width:{type:[Number,String],default:300}},"Line"),o3=ne({autoLineWidth:Boolean,...i3()},"VBarline"),Nk=fe()({name:"VBarline",props:o3(),setup(e,t){let{slots:n}=t;const r=Wn(),a=E(()=>e.id||`barline-${r}`),i=E(()=>Number(e.autoDrawDuration)||500),o=E(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),s=E(()=>parseFloat(e.lineWidth)||4),l=E(()=>Math.max(e.modelValue.length*s.value,Number(e.width))),u=E(()=>({minX:0,maxX:l.value,minY:0,maxY:parseInt(e.height,10)})),c=E(()=>e.modelValue.map(g=>bn(g,e.itemValue,g)));function f(g,p){const{minX:m,maxX:y,minY:_,maxY:b}=p,x=g.length;let S=e.max!=null?Number(e.max):Math.max(...g),T=e.min!=null?Number(e.min):Math.min(...g);T>0&&e.min==null&&(T=0),S<0&&e.max==null&&(S=0);const C=y/x,w=(b-_)/(S-T||1),A=b-Math.abs(T*w);return g.map((D,P)=>{const k=Math.abs(w*D);return{x:m+P*C,y:A-k+ +(D<0)*k,height:k,value:D}})}const d=E(()=>{const g=[],p=f(c.value,u.value),m=p.length;for(let y=0;g.lengthf(c.value,u.value)),h=E(()=>(Math.abs(v.value[0].x-v.value[1].x)-s.value)/2);ge(()=>{const g=e.gradient.slice().length?e.gradient.slice().reverse():[""];return I("svg",{display:"block"},[I("defs",null,[I("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[g.map((p,m)=>I("stop",{offset:m/Math.max(g.length-1,1),"stop-color":p||"currentColor"},null))])]),I("clipPath",{id:`${a.value}-clip`},[v.value.map(p=>I("rect",{x:p.x+h.value,y:p.y,width:s.value,height:p.height,rx:typeof e.smooth=="number"?e.smooth:e.smooth?2:0,ry:typeof e.smooth=="number"?e.smooth:e.smooth?2:0},[e.autoDraw&&I(ke,null,[I("animate",{attributeName:"y",from:p.y+p.height,to:p.y,dur:`${i.value}ms`,fill:"freeze"},null),I("animate",{attributeName:"height",from:"0",to:p.height,dur:`${i.value}ms`,fill:"freeze"},null)])]))]),o.value&&I("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[d.value.map((p,m)=>{var y;return I("text",{x:p.x+h.value+s.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[((y=n.label)==null?void 0:y.call(n,{index:m,value:p.value}))??p.value])})]),I("g",{"clip-path":`url(#${a.value}-clip)`,fill:`url(#${a.value})`},[I("rect",{x:0,y:0,width:Math.max(e.modelValue.length*s.value,Number(e.width)),height:e.height},null)])])})}});function tne(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:75;if(e.length===0)return"";const a=e.shift(),i=e[e.length-1];return(n?`M${a.x} ${r-a.x+2} L${a.x} ${a.y}`:`M${a.x} ${a.y}`)+e.map((o,s)=>{const l=e[s+1],u=e[s-1]||a,c=l&&nne(l,o,u);if(!l||c)return`L${o.x} ${o.y}`;const f=Math.min(Bk(u,o),Bk(l,o)),v=f/2e.id||`trendline-${r}`),i=E(()=>Number(e.autoDrawDuration)||(e.fill?500:2e3)),o=ye(0),s=ye(null);function l(p,m){const{minX:y,maxX:_,minY:b,maxY:x}=m,S=p.length,T=e.max!=null?Number(e.max):Math.max(...p),C=e.min!=null?Number(e.min):Math.min(...p),w=(_-y)/(S-1),A=(x-b)/(T-C||1);return p.map((D,P)=>({x:y+P*w,y:x-(D-C)*A,value:D}))}const u=E(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),c=E(()=>parseFloat(e.lineWidth)||4),f=E(()=>Number(e.width)),d=E(()=>{const p=Number(e.padding);return{minX:p,maxX:f.value-p,minY:p,maxY:parseInt(e.height,10)-p}}),v=E(()=>e.modelValue.map(p=>bn(p,e.itemValue,p))),h=E(()=>{const p=[],m=l(v.value,d.value),y=m.length;for(let _=0;p.lengthe.modelValue,async()=>{if(await ht(),!e.autoDraw||!s.value)return;const p=s.value,m=p.getTotalLength();e.fill?(p.style.transformOrigin="bottom center",p.style.transition="none",p.style.transform="scaleY(0)",p.getBoundingClientRect(),p.style.transition=`transform ${i.value}ms ${e.autoDrawEasing}`,p.style.transform="scaleY(1)"):(p.style.strokeDasharray=`${m}`,p.style.strokeDashoffset=`${m}`,p.getBoundingClientRect(),p.style.transition=`stroke-dashoffset ${i.value}ms ${e.autoDrawEasing}`,p.style.strokeDashoffset="0"),o.value=m},{immediate:!0});function g(p){return tne(l(v.value,d.value),e.smooth?8:Number(e.smooth),p,parseInt(e.height,10))}ge(()=>{var m;const p=e.gradient.slice().length?e.gradient.slice().reverse():[""];return I("svg",{display:"block","stroke-width":parseFloat(e.lineWidth)??4},[I("defs",null,[I("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[p.map((y,_)=>I("stop",{offset:_/Math.max(p.length-1,1),"stop-color":y||"currentColor"},null))])]),u.value&&I("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[h.value.map((y,_)=>{var b;return I("text",{x:y.x+c.value/2+c.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[((b=n.label)==null?void 0:b.call(n,{index:_,value:y.value}))??y.value])})]),I("path",{ref:s,d:g(e.fill),fill:e.fill?`url(#${a.value})`:"none",stroke:e.fill?"none":`url(#${a.value})`},null),e.fill&&I("path",{d:g(!1),fill:"none",stroke:e.color??((m=e.gradient)==null?void 0:m[0])},null)])})}}),rne=ne({type:{type:String,default:"trend"},...o3(),...s3()},"VSparkline"),ane=fe()({name:"VSparkline",props:rne(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=Kn(oe(e,"color")),i=E(()=>!!(e.showLabels||e.labels.length>0||n!=null&&n.label)),o=E(()=>{let s=parseInt(e.height,10);return i.value&&(s+=parseInt(e.labelSize,10)*1.5),s});ge(()=>{const s=e.type==="trend"?Fk:Nk,l=e.type==="trend"?Fk.filterProps(e):Nk.filterProps(e);return I(s,ve({key:e.type,class:r.value,style:a.value,viewBox:`0 0 ${e.width} ${parseInt(o.value,10)}`},l),n)})}}),ine=ne({...Me(),...ZF({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),one=fe()({name:"VSpeedDial",props:ine(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),a=ye(),i=E(()=>{var u;const[s,l="center"]=((u=e.location)==null?void 0:u.split(" "))??[];return`${s} ${l}`}),o=E(()=>({[`v-speed-dial__content--${i.value.replace(" ","-")}`]:!0}));return ge(()=>{const s=ef.filterProps(e);return I(ef,ve(s,{modelValue:r.value,"onUpdate:modelValue":l=>r.value=l,class:e.class,style:e.style,contentClass:["v-speed-dial__content",o.value,e.contentClass],location:i.value,ref:a,transition:"fade-transition"}),{...n,default:l=>I(lt,{defaults:{VBtn:{size:"small"}}},{default:()=>[I(lr,{appear:!0,group:!0,transition:e.transition},{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,l)]}})]})})}),{}}}),FT=Symbol.for("vuetify:v-stepper"),l3=ne({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),u3=fe()({name:"VStepperActions",props:l3(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=nn();function i(){n("click:prev")}function o(){n("click:next")}return ge(()=>{const s={onClick:i},l={onClick:o};return I("div",{class:"v-stepper-actions"},[I(lt,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:a(e.prevText),variant:"text"}}},{default:()=>{var u;return[((u=r.prev)==null?void 0:u.call(r,{props:s}))??I(xt,s,null)]}}),I(lt,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:a(e.nextText),variant:"tonal"}}},{default:()=>{var u;return[((u=r.next)==null?void 0:u.call(r,{props:l}))??I(xt,l,null)]}})])}),{}}}),c3=zi("v-stepper-header"),sne=ne({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:String,default:"$complete"},editable:Boolean,editIcon:{type:String,default:"$edit"},error:Boolean,errorIcon:{type:String,default:"$error"},icon:String,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),lne=ne({...sne(),...Iu()},"VStepperItem"),f3=fe()({name:"VStepperItem",directives:{Ripple:Po},props:lne(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Du(e,FT,!0),a=E(()=>(r==null?void 0:r.value.value)??e.value),i=E(()=>e.rules.every(d=>d()===!0)),o=E(()=>!e.disabled&&e.editable),s=E(()=>!e.disabled&&e.editable),l=E(()=>e.error||!i.value),u=E(()=>e.complete||e.rules.length>0&&i.value),c=E(()=>l.value?e.errorIcon:u.value?e.completeIcon:r.isSelected.value&&e.editable?e.editIcon:e.icon),f=E(()=>({canEdit:s.value,hasError:l.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:a.value,value:e.value}));return ge(()=>{var p,m,y;const d=(!r||r.isSelected.value||u.value||s.value)&&!l.value&&!e.disabled,v=!!(e.title!=null||n.title),h=!!(e.subtitle!=null||n.subtitle);function g(){r==null||r.toggle()}return Zt(I("button",{class:["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":l.value},r==null?void 0:r.selectedClass.value],disabled:!e.editable,onClick:g},[o.value&&Fs(!0,"v-stepper-item"),I(Pa,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:d?e.color:void 0,size:24},{default:()=>{var _;return[((_=n.icon)==null?void 0:_.call(n,f.value))??(c.value?I(wt,{icon:c.value},null):a.value)]}}),I("div",{class:"v-stepper-item__content"},[v&&I("div",{key:"title",class:"v-stepper-item__title"},[((p=n.title)==null?void 0:p.call(n,f.value))??e.title]),h&&I("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[((m=n.subtitle)==null?void 0:m.call(n,f.value))??e.subtitle]),(y=n.default)==null?void 0:y.call(n,f.value)])]),[[na("ripple"),e.ripple&&e.editable,null]])}),{}}}),une=ne({...vn(o0(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),d3=fe()({name:"VStepperWindow",props:une(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=rt(FT,null),a=Ve(e,"modelValue"),i=E({get(){var o;return a.value!=null||!r?a.value:(o=r.items.value.find(s=>r.selected.value.includes(s.id)))==null?void 0:o.value},set(o){a.value=o}});return ge(()=>{const o=su.filterProps(e);return I(su,ve({_as:"VStepperWindow"},o,{modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),cne=ne({...s0()},"VStepperWindowItem"),v3=fe()({name:"VStepperWindowItem",props:cne(),setup(e,t){let{slots:n}=t;return ge(()=>{const r=lu.filterProps(e);return I(lu,ve({_as:"VStepperWindowItem"},r,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),fne=ne({altLabels:Boolean,bgColor:String,completeIcon:String,editIcon:String,editable:Boolean,errorIcon:String,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:String,default:"title"},itemValue:{type:String,default:"value"},nonLinear:Boolean,flat:Boolean,...Su()},"Stepper"),dne=ne({...fne(),...Au({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...l0(),...Hy(l3(),["prevText","nextText"])},"VStepper"),vne=fe()({name:"VStepper",props:dne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:r,next:a,prev:i,selected:o}=Hs(e,FT),{displayClasses:s,mobile:l}=Wr(e),{completeIcon:u,editIcon:c,errorIcon:f,color:d,editable:v,prevText:h,nextText:g}=Vs(e),p=E(()=>e.items.map((_,b)=>{const x=bn(_,e.itemTitle,_),S=bn(_,e.itemValue,b+1);return{title:x,value:S,raw:_}})),m=E(()=>r.value.findIndex(_=>o.value.includes(_.id))),y=E(()=>e.disabled?e.disabled:m.value===0?"prev":m.value===r.value.length-1?"next":!1);return Kt({VStepperItem:{editable:v,errorIcon:f,completeIcon:u,editIcon:c,prevText:h,nextText:g},VStepperActions:{color:d,disabled:y,prevText:h,nextText:g}}),ge(()=>{const _=uu.filterProps(e),b=!!(n.header||e.items.length),x=e.items.length>0,S=!e.hideActions&&!!(x||n.actions);return I(uu,ve(_,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":l.value},s.value,e.class],style:e.style}),{default:()=>{var T,C;return[b&&I(c3,{key:"stepper-header"},{default:()=>[p.value.map((w,A)=>{let{raw:D,...P}=w;return I(ke,null,[!!A&&I(Sh,null,null),I(f3,P,{default:n[`header-item.${P.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),x&&I(d3,{key:"stepper-window"},{default:()=>[p.value.map(w=>I(v3,{value:w.value},{default:()=>{var A,D;return((A=n[`item.${w.value}`])==null?void 0:A.call(n,w))??((D=n.item)==null?void 0:D.call(n,w))}}))]}),(T=n.default)==null?void 0:T.call(n,{prev:i,next:a}),S&&(((C=n.actions)==null?void 0:C.call(n,{next:a,prev:i}))??I(u3,{key:"stepper-actions","onClick:prev":i,"onClick:next":a},n))]}})}),{prev:i,next:a}}}),hne=ne({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Mo(),...e0()},"VSwitch"),gne=fe()({name:"VSwitch",inheritAttrs:!1,props:hne(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=Ve(e,"indeterminate"),i=Ve(e,"modelValue"),{loaderClasses:o}=ph(e),{isFocused:s,focus:l,blur:u}=ko(e),c=ye(),f=yt&&window.matchMedia("(forced-colors: active)").matches,d=E(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),v=Wn(),h=E(()=>e.id||`switch-${v}`);function g(){a.value&&(a.value=!1)}function p(m){var y,_;m.stopPropagation(),m.preventDefault(),(_=(y=c.value)==null?void 0:y.input)==null||_.click()}return ge(()=>{const[m,y]=zs(n),_=qn.filterProps(e),b=Cs.filterProps(e);return I(qn,ve({class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},o.value,e.class]},m,_,{modelValue:i.value,"onUpdate:modelValue":x=>i.value=x,id:h.value,focused:s.value,style:e.style}),{...r,default:x=>{let{id:S,messagesId:T,isDisabled:C,isReadonly:w,isValid:A}=x;const D={model:i,isValid:A};return I(Cs,ve({ref:c},b,{modelValue:i.value,"onUpdate:modelValue":[P=>i.value=P,g],id:S.value,"aria-describedby":T.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:C.value,readonly:w.value,onFocus:l,onBlur:u},y),{...r,default:P=>{let{backgroundColorClasses:k,backgroundColorStyles:L}=P;return I("div",{class:["v-switch__track",f?void 0:k.value],style:L.value,onClick:p},[r["track-true"]&&I("div",{key:"prepend",class:"v-switch__track-true"},[r["track-true"](D)]),r["track-false"]&&I("div",{key:"append",class:"v-switch__track-false"},[r["track-false"](D)])])},input:P=>{let{inputNode:k,icon:L,backgroundColorClasses:V,backgroundColorStyles:N}=P;return I(ke,null,[k,I("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":L||e.loading},e.inset||f?void 0:V.value],style:e.inset?void 0:N.value},[r.thumb?I(lt,{defaults:{VIcon:{icon:L,size:"x-small"}}},{default:()=>[r.thumb({...D,icon:L})]}):I(oT,null,{default:()=>[e.loading?I(mh,{name:"v-switch",active:!0,color:A.value===!1?void 0:d.value},{default:$=>r.loader?r.loader($):I(Qc,{active:$.isActive,color:$.color,indeterminate:!0,size:"16",width:"2"},null)}):L&&I(wt,{key:String(L),icon:L,size:"x-small"},null)]})])])}})}})}),{}}}),pne=ne({color:String,height:[Number,String],window:Boolean,...Me(),...An(),...xu(),...Yt(),...nt(),...gt()},"VSystemBar"),mne=fe()({name:"VSystemBar",props:pne(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{backgroundColorClasses:a,backgroundColorStyles:i}=Et(oe(e,"color")),{elevationClasses:o}=Un(e),{roundedClasses:s}=Qt(e),{ssrBootStyles:l}=Cu(),u=E(()=>e.height??(e.window?32:24)),{layoutItemStyles:c}=wu({id:e.name,order:E(()=>parseInt(e.order,10)),position:Te("top"),layoutSize:u,elementSize:u,active:E(()=>!0),absolute:oe(e,"absolute")});return ge(()=>I(e.tag,{class:["v-system-bar",{"v-system-bar--window":e.window},r.value,a.value,o.value,s.value,e.class],style:[i.value,c.value,l.value,e.style]},n)),{}}}),HT=Symbol.for("vuetify:v-tabs"),yne=ne({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...vn(Qy({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),h3=fe()({name:"VTab",props:yne(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:a,textColorStyles:i}=Kn(e,"sliderColor"),o=ye(),s=ye(),l=E(()=>e.direction==="horizontal"),u=E(()=>{var f,d;return((d=(f=o.value)==null?void 0:f.group)==null?void 0:d.isSelected.value)??!1});function c(f){var v,h;let{value:d}=f;if(d){const g=(h=(v=o.value)==null?void 0:v.$el.parentElement)==null?void 0:h.querySelector(".v-tab--selected .v-tab__slider"),p=s.value;if(!g||!p)return;const m=getComputedStyle(g).color,y=g.getBoundingClientRect(),_=p.getBoundingClientRect(),b=l.value?"x":"y",x=l.value?"X":"Y",S=l.value?"right":"bottom",T=l.value?"width":"height",C=y[b],w=_[b],A=C>w?y[S]-_[S]:y[b]-_[b],D=Math.sign(A)>0?l.value?"right":"bottom":Math.sign(A)<0?l.value?"left":"top":"center",k=(Math.abs(A)+(Math.sign(A)<0?y[T]:_[T]))/Math.max(y[T],_[T])||0,L=y[T]/_[T]||0,V=1.5;Ml(p,{backgroundColor:[m,"currentcolor"],transform:[`translate${x}(${A}px) scale${x}(${L})`,`translate${x}(${A/V}px) scale${x}(${(k-1)/V+1})`,"none"],transformOrigin:Array(3).fill(D)},{duration:225,easing:bv})}}return ge(()=>{const f=xt.filterProps(e);return I(xt,ve({symbol:HT,ref:o,class:["v-tab",e.class],style:e.style,tabindex:u.value?0:-1,role:"tab","aria-selected":String(u.value),active:!1},f,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":c}),{...n,default:()=>{var d;return I(ke,null,[((d=n.default)==null?void 0:d.call(n))??e.text,!e.hideSlider&&I("div",{ref:s,class:["v-tab__slider",a.value],style:i.value},null)])}})}),Ea({},o)}}),_ne=ne({...vn(o0(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),g3=fe()({name:"VTabsWindow",props:_ne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=rt(HT,null),a=Ve(e,"modelValue"),i=E({get(){var o;return a.value!=null||!r?a.value:(o=r.items.value.find(s=>r.selected.value.includes(s.id)))==null?void 0:o.value},set(o){a.value=o}});return ge(()=>{const o=su.filterProps(e);return I(su,ve({_as:"VTabsWindow"},o,{modelValue:i.value,"onUpdate:modelValue":s=>i.value=s,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),bne=ne({...s0()},"VTabsWindowItem"),p3=fe()({name:"VTabsWindowItem",props:bne(),setup(e,t){let{slots:n}=t;return ge(()=>{const r=lu.filterProps(e);return I(lu,ve({_as:"VTabsWindowItem"},r,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function Sne(e){return e?e.map(t=>$C(t)?t:{text:t,value:t}):[]}const xne=ne({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...dT({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Nn(),...nt()},"VTabs"),wne=fe()({name:"VTabs",props:xne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=Ve(e,"modelValue"),i=E(()=>Sne(e.items)),{densityClasses:o}=dr(e),{backgroundColorClasses:s,backgroundColorStyles:l}=Et(oe(e,"bgColor")),{scopeId:u}=ku();return Kt({VTab:{color:oe(e,"color"),direction:oe(e,"direction"),stacked:oe(e,"stacked"),fixed:oe(e,"fixedTabs"),sliderColor:oe(e,"sliderColor"),hideSlider:oe(e,"hideSlider")}}),ge(()=>{const c=Iv.filterProps(e),f=!!(r.window||e.items.length>0);return I(ke,null,[I(Iv,ve(c,{modelValue:a.value,"onUpdate:modelValue":d=>a.value=d,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},o.value,s.value,e.class],style:[{"--v-tabs-height":De(e.height)},l.value,e.style],role:"tablist",symbol:HT},u,n),{default:()=>{var d;return[((d=r.default)==null?void 0:d.call(r))??i.value.map(v=>{var h;return((h=r.tab)==null?void 0:h.call(r,{item:v}))??I(h3,ve(v,{key:v.text,value:v.value}),{default:r[`tab.${v.value}`]?()=>{var g;return(g=r[`tab.${v.value}`])==null?void 0:g.call(r,{item:v})}:void 0})})]}}),f&&I(g3,ve({modelValue:a.value,"onUpdate:modelValue":d=>a.value=d,key:"tabs-window"},u),{default:()=>{var d;return[i.value.map(v=>{var h;return((h=r.item)==null?void 0:h.call(r,{item:v}))??I(p3,{value:v.value},{default:()=>{var g;return(g=r[`item.${v.value}`])==null?void 0:g.call(r,{item:v})}})}),(d=r.window)==null?void 0:d.call(r)]}})])}),{}}}),Cne=ne({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Mo(),...wh()},"VTextarea"),Tne=fe()({name:"VTextarea",directives:{Intersect:gh},inheritAttrs:!1,props:Cne(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const i=Ve(e,"modelValue"),{isFocused:o,focus:s,blur:l}=ko(e),u=E(()=>typeof e.counterValue=="function"?e.counterValue(i.value):(i.value||"").toString().length),c=E(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function f(D,P){var k,L;!e.autofocus||!D||(L=(k=P[0].target)==null?void 0:k.focus)==null||L.call(k)}const d=ye(),v=ye(),h=Te(""),g=ye(),p=E(()=>e.persistentPlaceholder||o.value||e.active);function m(){var D;g.value!==document.activeElement&&((D=g.value)==null||D.focus()),o.value||s()}function y(D){m(),r("click:control",D)}function _(D){r("mousedown:control",D)}function b(D){D.stopPropagation(),m(),ht(()=>{i.value="",XC(e["onClick:clear"],D)})}function x(D){var k;const P=D.target;if(i.value=P.value,(k=e.modelModifiers)!=null&&k.trim){const L=[P.selectionStart,P.selectionEnd];ht(()=>{P.selectionStart=L[0],P.selectionEnd=L[1]})}}const S=ye(),T=ye(+e.rows),C=E(()=>["plain","underlined"].includes(e.variant));un(()=>{e.autoGrow||(T.value=+e.rows)});function w(){e.autoGrow&&ht(()=>{if(!S.value||!v.value)return;const D=getComputedStyle(S.value),P=getComputedStyle(v.value.$el),k=parseFloat(D.getPropertyValue("--v-field-padding-top"))+parseFloat(D.getPropertyValue("--v-input-padding-top"))+parseFloat(D.getPropertyValue("--v-field-padding-bottom")),L=S.value.scrollHeight,V=parseFloat(D.lineHeight),N=Math.max(parseFloat(e.rows)*V+k,parseFloat(P.getPropertyValue("--v-input-control-height"))),$=parseFloat(e.maxRows)*V+k||1/0,z=sn(L??0,N,$);T.value=Math.floor((z-k)/V),h.value=De(z)})}wn(w),Ce(i,w),Ce(()=>e.rows,w),Ce(()=>e.maxRows,w),Ce(()=>e.density,w);let A;return Ce(S,D=>{D?(A=new ResizeObserver(w),A.observe(S.value)):A==null||A.disconnect()}),Cn(()=>{A==null||A.disconnect()}),ge(()=>{const D=!!(a.counter||e.counter||e.counterValue),P=!!(D||a.details),[k,L]=zs(n),{modelValue:V,...N}=qn.filterProps(e),$=bT(e);return I(qn,ve({ref:d,modelValue:i.value,"onUpdate:modelValue":z=>i.value=z,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":C.value},e.class],style:e.style},k,N,{centerAffix:T.value===1&&!C.value,focused:o.value}),{...a,default:z=>{let{id:H,isDisabled:U,isDirty:Y,isReadonly:J,isValid:ue}=z;return I(xf,ve({ref:v,style:{"--v-textarea-control-height":h.value},onClick:y,onMousedown:_,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},$,{id:H.value,active:p.value||Y.value,centerAffix:T.value===1&&!C.value,dirty:Y.value||e.dirty,disabled:U.value,focused:o.value,error:ue.value===!1}),{...a,default:le=>{let{props:{class:be,...ae}}=le;return I(ke,null,[e.prefix&&I("span",{class:"v-text-field__prefix"},[e.prefix]),Zt(I("textarea",ve({ref:g,class:be,value:i.value,onInput:x,autofocus:e.autofocus,readonly:J.value,disabled:U.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:m,onBlur:l},ae,L),null),[[na("intersect"),{handler:f},null,{once:!0}]]),e.autoGrow&&Zt(I("textarea",{class:[be,"v-textarea__sizer"],id:`${ae.id}-sizer`,"onUpdate:modelValue":Z=>i.value=Z,ref:S,readonly:!0,"aria-hidden":"true"},null),[[um,i.value]]),e.suffix&&I("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:P?z=>{var H;return I(ke,null,[(H=a.details)==null?void 0:H.call(a,z),D&&I(ke,null,[I("span",null,null),I(r0,{active:e.persistentCounter||o.value,value:u.value,max:c.value,disabled:e.disabled},a.counter)])])}:void 0})}),Ea({},d,v,g)}}),Ane=ne({withBackground:Boolean,...Me(),...gt(),...nt()},"VThemeProvider"),Ine=fe()({name:"VThemeProvider",props:Ane(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e);return()=>{var a;return e.withBackground?I(e.tag,{class:["v-theme-provider",r.value,e.class],style:e.style},{default:()=>{var i;return[(i=n.default)==null?void 0:i.call(n)]}}):(a=n.default)==null?void 0:a.call(n)}}}),Dne=ne({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:Ye,iconColor:String,lineColor:String,...Me(),...Yt(),...Fi(),...An()},"VTimelineDivider"),Pne=fe()({name:"VTimelineDivider",props:Dne(),setup(e,t){let{slots:n}=t;const{sizeClasses:r,sizeStyles:a}=mf(e,"v-timeline-divider__dot"),{backgroundColorStyles:i,backgroundColorClasses:o}=Et(oe(e,"dotColor")),{roundedClasses:s}=Qt(e,"v-timeline-divider__dot"),{elevationClasses:l}=Un(e),{backgroundColorClasses:u,backgroundColorStyles:c}=Et(oe(e,"lineColor"));return ge(()=>I("div",{class:["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class],style:e.style},[I("div",{class:["v-timeline-divider__before",u.value],style:c.value},null),!e.hideDot&&I("div",{key:"dot",class:["v-timeline-divider__dot",l.value,s.value,r.value],style:a.value},[I("div",{class:["v-timeline-divider__inner-dot",o.value,s.value],style:i.value},[n.default?I(lt,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):I(wt,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),I("div",{class:["v-timeline-divider__after",u.value],style:c.value},null)])),{}}}),m3=ne({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:Ye,iconColor:String,lineInset:[Number,String],...Me(),...gn(),...An(),...Yt(),...Fi(),...nt()},"VTimelineItem"),kne=fe()({name:"VTimelineItem",props:m3(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=pn(e),a=Te(0),i=ye();return Ce(i,o=>{var s;o&&(a.value=((s=o.$el.querySelector(".v-timeline-divider__dot"))==null?void 0:s.getBoundingClientRect().width)??0)},{flush:"post"}),ge(()=>{var o,s;return I("div",{class:["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot},e.class],style:[{"--v-timeline-dot-size":De(a.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${De(e.lineInset)})`:De(0)},e.style]},[I("div",{class:"v-timeline-item__body",style:r.value},[(o=n.default)==null?void 0:o.call(n)]),I(Pne,{ref:i,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&I("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&((s=n.opposite)==null?void 0:s.call(n))])])}),{}}}),Mne=ne({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...Hy(m3({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...Me(),...Nn(),...nt(),...gt()},"VTimeline"),Lne=fe()({name:"VTimeline",props:Mne(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=Ct(e),{densityClasses:a}=dr(e),{rtlClasses:i}=Tn();Kt({VTimelineDivider:{lineColor:oe(e,"lineColor")},VTimelineItem:{density:oe(e,"density"),dotColor:oe(e,"dotColor"),fillDot:oe(e,"fillDot"),hideOpposite:oe(e,"hideOpposite"),iconColor:oe(e,"iconColor"),lineColor:oe(e,"lineColor"),lineInset:oe(e,"lineInset"),size:oe(e,"size")}});const o=E(()=>{const l=e.side?e.side:e.density!=="default"?"end":null;return l&&`v-timeline--side-${l}`}),s=E(()=>{const l=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return l;case"start":return l[0];case"end":return l[1];default:return null}});return ge(()=>I(e.tag,{class:["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,s.value,{"v-timeline--inset-line":!!e.lineInset},r.value,a.value,o.value,i.value,e.class],style:[{"--v-timeline-line-thickness":De(e.lineThickness)},e.style]},n)),{}}}),Ene=ne({...Me(),...La({variant:"text"})},"VToolbarItems"),Rne=fe()({name:"VToolbarItems",props:Ene(),setup(e,t){let{slots:n}=t;return Kt({VBtn:{color:oe(e,"color"),height:"inherit",variant:oe(e,"variant")}}),ge(()=>{var r;return I("div",{class:["v-toolbar-items",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Vne=ne({id:String,text:String,...vn(xh({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),y3=fe()({name:"VTooltip",props:Vne(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ve(e,"modelValue"),{scopeId:a}=ku(),i=Wn(),o=E(()=>e.id||`v-tooltip-${i}`),s=ye(),l=E(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=E(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=E(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),f=E(()=>ve({"aria-describedby":o.value},e.activatorProps));return ge(()=>{const d=ki.filterProps(e);return I(ki,ve({ref:s,class:["v-tooltip",e.class],style:e.style,id:o.value},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:f.value,_disableGlobalStack:!0},a),{activator:n.activator,default:function(){var p;for(var v=arguments.length,h=new Array(v),g=0;g!0},setup(e,t){let{slots:n}=t;const r=wF(e,"validation");return()=>{var a;return(a=n.default)==null?void 0:a.call(n,r)}}}),Nne=Object.freeze(Object.defineProperty({__proto__:null,VAlert:iq,VAlertTitle:gF,VApp:hK,VAppBar:RK,VAppBarNavIcon:tq,VAppBarTitle:nq,VAutocomplete:IJ,VAvatar:Pa,VBadge:PJ,VBanner:LJ,VBannerActions:QF,VBannerText:e5,VBottomNavigation:RJ,VBottomSheet:OJ,VBreadcrumbs:FJ,VBreadcrumbsDivider:n5,VBreadcrumbsItem:r5,VBtn:xt,VBtnGroup:q1,VBtnToggle:FK,VCard:UJ,VCardActions:a5,VCardItem:s5,VCardSubtitle:i5,VCardText:l5,VCardTitle:o5,VCarousel:eQ,VCarouselItem:nQ,VCheckbox:hq,VCheckboxBtn:mo,VChip:Sf,VChipGroup:_q,VClassIcon:nT,VCode:rQ,VCol:Lee,VColorPicker:UQ,VCombobox:jQ,VComponentIcon:j1,VConfirmEdit:KQ,VContainer:Dee,VCounter:r0,VDataIterator:oee,VDataTable:xee,VDataTableFooter:Pv,VDataTableHeaders:cu,VDataTableRow:VT,VDataTableRows:fu,VDataTableServer:Aee,VDataTableVirtual:Cee,VDatePicker:Uee,VDatePickerControls:vx,VDatePickerHeader:hx,VDatePickerMonth:gx,VDatePickerMonths:px,VDatePickerYears:mx,VDefaultsProvider:lt,VDialog:ix,VDialogBottomTransition:yK,VDialogTopTransition:_K,VDialogTransition:jy,VDivider:Sh,VEmptyState:Xee,VExpandTransition:Zy,VExpandXTransition:lT,VExpansionPanel:jee,VExpansionPanelText:yx,VExpansionPanelTitle:_x,VExpansionPanels:qee,VFab:Qee,VFabTransition:mK,VFadeTransition:wv,VField:xf,VFieldLabel:wd,VFileInput:tte,VFooter:rte,VForm:ite,VHover:ste,VIcon:wt,VImg:po,VInfiniteScroll:ute,VInput:qn,VItem:dte,VItemGroup:fte,VKbd:vte,VLabel:bf,VLayout:gte,VLayoutItem:mte,VLazy:_te,VLigatureIcon:KZ,VList:n0,VListGroup:tx,VListImg:Gq,VListItem:yo,VListItemAction:Wq,VListItemMedia:Yq,VListItemSubtitle:VF,VListItemTitle:OF,VListSubheader:NF,VLocaleProvider:Ste,VMain:wte,VMenu:ef,VMessages:bF,VNavigationDrawer:Lte,VNoSsr:Ete,VOtpInput:Vte,VOverlay:ki,VPagination:fx,VParallax:Bte,VProgressCircular:Qc,VProgressLinear:qy,VRadio:Fte,VRadioGroup:Gte,VRangeSlider:Wte,VRating:Yte,VResponsive:Z1,VRow:zee,VScaleTransition:oT,VScrollXReverseTransition:SK,VScrollXTransition:bK,VScrollYReverseTransition:wK,VScrollYTransition:xK,VSelect:wT,VSelectionControl:Cs,VSelectionControlGroup:mF,VSheet:uu,VSkeletonLoader:Kte,VSlideGroup:Iv,VSlideGroupItem:qte,VSlideXReverseTransition:TK,VSlideXTransition:CK,VSlideYReverseTransition:AK,VSlideYTransition:sT,VSlider:cx,VSnackbar:ene,VSpacer:Z5,VSparkline:ane,VSpeedDial:one,VStepper:vne,VStepperActions:u3,VStepperHeader:c3,VStepperItem:f3,VStepperWindow:d3,VStepperWindowItem:v3,VSvgIcon:tT,VSwitch:gne,VSystemBar:mne,VTab:h3,VTable:du,VTabs:wne,VTabsWindow:g3,VTabsWindowItem:p3,VTextField:ou,VTextarea:Tne,VThemeProvider:Ine,VTimeline:Lne,VTimelineItem:kne,VToolbar:K1,VToolbarItems:Rne,VToolbarTitle:iT,VTooltip:y3,VValidation:One,VVirtualScroll:i0,VWindow:su,VWindowItem:lu},Symbol.toStringTag,{value:"Module"}));function Bne(e,t){const n=t.modifiers||{},r=t.value,{once:a,immediate:i,...o}=n,s=!Object.keys(o).length,{handler:l,options:u}=typeof r=="object"?r:{handler:r,options:{attributes:(o==null?void 0:o.attr)??s,characterData:(o==null?void 0:o.char)??s,childList:(o==null?void 0:o.child)??s,subtree:(o==null?void 0:o.sub)??s}},c=new MutationObserver(function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1?arguments[1]:void 0;l==null||l(f,d),a&&_3(e,t)});i&&(l==null||l([],c)),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:c},c.observe(e,u)}function _3(e,t){var n;(n=e._mutate)!=null&&n[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const zne={mounted:Bne,unmounted:_3};function Fne(e,t){var a,i;const n=t.value,r={passive:!((a=t.modifiers)!=null&&a.active)};window.addEventListener("resize",n,r),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:r},(i=t.modifiers)!=null&&i.quiet||n()}function Hne(e,t){var a;if(!((a=e._onResize)!=null&&a[t.instance.$.uid]))return;const{handler:n,options:r}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,r),delete e._onResize[t.instance.$.uid]}const Gne={mounted:Fne,unmounted:Hne};function b3(e,t){const{self:n=!1}=t.modifiers??{},r=t.value,a=typeof r=="object"&&r.options||{passive:!0},i=typeof r=="function"||"handleEvent"in r?r:r.handler,o=n?e:t.arg?document.querySelector(t.arg):window;o&&(o.addEventListener("scroll",i,a),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:i,options:a,target:n?void 0:o})}function S3(e,t){var i;if(!((i=e._onScroll)!=null&&i[t.instance.$.uid]))return;const{handler:n,options:r,target:a=e}=e._onScroll[t.instance.$.uid];a.removeEventListener("scroll",n,r),delete e._onScroll[t.instance.$.uid]}function $ne(e,t){t.value!==t.oldValue&&(S3(e,t),b3(e,t))}const Wne={mounted:b3,unmounted:S3,updated:$ne};function Une(e,t){const n=typeof e=="string"?Dt(e):e,r=Yne(n,t);return{mounted:r,updated:r,unmounted(a){EC(null,a)}}}function Yne(e,t){return function(n,r,a){var f,d,v;const i=typeof t=="function"?t(r):t,o=((f=r.value)==null?void 0:f.text)??r.value??(i==null?void 0:i.text),s=$C(r.value)?r.value:{},l=()=>o??n.textContent,u=(a.ctx===r.instance.$?(d=Xne(a,r.instance.$))==null?void 0:d.provides:(v=a.ctx)==null?void 0:v.provides)??r.instance.$.provides,c=ra(e,ve(i,s),l);c.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:u}),EC(c,n)}}function Xne(e,t){const n=new Set,r=i=>{var o,s;for(const l of i){if(!l)continue;if(l===e||l.el&&e.el&&l.el===e.el)return!0;n.add(l);let u;if(l.suspense?u=r([l.ssContent]):Array.isArray(l.children)?u=r(l.children):(o=l.component)!=null&&o.vnode&&(u=r([(s=l.component)==null?void 0:s.subTree])),u)return u;n.delete(l)}return!1};if(!r([t.subTree]))return t;const a=Array.from(n).reverse();for(const i of a)if(i.component)return i.component;return t}const jne=Une(y3,e=>{var t;return{activator:"parent",location:(t=e.arg)==null?void 0:t.replace("-"," "),text:typeof e.value=="boolean"?void 0:e.value}}),Zne=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:jF,Intersect:gh,Mutate:zne,Resize:Gne,Ripple:Po,Scroll:Wne,Tooltip:jne,Touch:CT},Symbol.toStringTag,{value:"Module"})),Kne="dark",qne={dark:{colors:{primary:"#263238",secondary:"#616161",accent:"#86f8bf",error:"#f44336",warning:"#FB8C00",info:"#607d8b",success:"#86f8bf"}},light:{colors:{primary:"#01579b",secondary:"#757575",accent:"#00dfca",error:"#f44336",warning:"#FB8C00",info:"#607d8b",success:"#00dfca"}}},Jne={defaultTheme:Kne,themes:qne},R_=e=>e&&typeof e=="object"&&!Array.isArray(e),bx=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(R_(e)&&R_(n))for(const r in n)R_(n[r])?(e[r]||Object.assign(e,{[r]:{}}),bx(e[r],n[r])):Object.assign(e,{[r]:n[r]});return bx(e,...t)},Qne=bx({},{de:{_app:{settings:{title:e=>{const{normalize:t}=e;return t(["Einstellungen"])},general:{title:e=>{const{normalize:t}=e;return t(["Allgemein"])},headLine:e=>{const{normalize:t}=e;return t(["Kopfzeile"])},headLineImageTitle:e=>{const{normalize:t}=e;return t(["Hintergrundbild"])},headLineImageSubTitle:e=>{const{normalize:t}=e;return t(["Link zu einem Bild für den Hintergrund der Kopfzeile"])},headLineImageGradientTitle:e=>{const{normalize:t}=e;return t(["Farbfilter"])},headLineImageGradientSubTitle:e=>{const{normalize:t}=e;return t(["CSS Linear Gardient Definition für das Hintergrundbild"])},headLineTimeTitle:e=>{const{normalize:t}=e;return t(["Uhrzeit"])},headLineTimeSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt die Uhrzeit vom FHEM Server in der Desktopansicht auf der linken Seite der Kopfzeile an"])},headLineDateTitle:e=>{const{normalize:t}=e;return t(["Datum"])},headLineDateSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt das Datum vom FHEM Server in der Desktopansicht in der Mitte der Kopfzeile an"])},headLineRouteTitle:e=>{const{normalize:t}=e;return t(["aktuelle Seite"])},headLineRouteSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt den aktuell ausgewählte Seite in der mobilen Ansicht in der Mitte der Kopfzeile an"])},headLineNavigationTitle:e=>{const{normalize:t}=e;return t(["Navigationsmenü ausblenden"])},headLineNavigationSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt den Buttom zum Einblenden des Navigaitonsmenü in der Desktopansicht an"])},darkMode:e=>{const{normalize:t}=e;return t(["Farbschema"])},darkModeTitle:e=>{const{normalize:t}=e;return t(["DarkMode über FHEM"])},darkModeSubTitle:e=>{const{normalize:t}=e;return t(["Schaltet in das dunkle Farbschema um, wenn der Wert des FHEM Reading zutrifft"])},defaultRoute:e=>{const{normalize:t}=e;return t(["Standardseite"])},defaultRouteTitle:e=>{const{normalize:t}=e;return t(["Seite beim Öffnen"])},defaultRouteSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine bestimmte Seite aus dem Navigationsmenü beim Öffnen"])},optionsMenu:e=>{const{normalize:t}=e;return t(["Optionsmenü"])},optionsMenuDarkModeTitle:e=>{const{normalize:t}=e;return t(["Tag/Nacht Modus"])},optionsMenuDarkModeSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Option zum Umschalten in das dunkle oder helle Farbschema"])},optionsMenuReloadPageTitle:e=>{const{normalize:t}=e;return t(["Seite aktualisieren"])},optionsMenuReloadPageSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Option zum Neuladen der Seite"])},optionsMenuSettingsTitle:e=>{const{normalize:t}=e;return t(["Einstellungen"])},optionsMenuSettingsSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Option zum Öffnen der Einstellungen"])},optionsMenuUpdateTitle:e=>{const{normalize:t}=e;return t(["Updates"])},optionsMenuUpdateSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Option zum Ausführen eines Updates, wenn es bereitsteht"])},optionsMenuLanguagesTitle:e=>{const{normalize:t}=e;return t(["Sprachen"])},optionsMenuLanguagesSubTitle:e=>{const{normalize:t}=e;return t(["Zeigt eine Optionsfeld zum Umschalten der Sprachen"])},fhemCommands:e=>{const{normalize:t}=e;return t(["Optionsmenü FHEM Befehle"])},fhemCommandsName:e=>{const{normalize:t}=e;return t(["Name"])},fhemCommandsTitle:e=>{const{normalize:t}=e;return t(["Beschriftung"])},fhemCommandsIcon:e=>{const{normalize:t}=e;return t(["Icon"])},fhemCommandsCmd:e=>{const{normalize:t}=e;return t(["FHEM Befehl"])}},navigation:{title:e=>{const{normalize:t}=e;return t(["Navigation"])},name:e=>{const{normalize:t}=e;return t(["Name"])},namePlaceholder:e=>{const{normalize:t}=e;return t(["home"])},title1:e=>{const{normalize:t}=e;return t(["Beschriftung"])},title1Placeholder:e=>{const{normalize:t}=e;return t(["Startseite od. %t(navHome)"])},icon:e=>{const{normalize:t}=e;return t(["Icon"])},iconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-home"])},optionsTitle:e=>{const{normalize:t}=e;return t(["Optionen"])},optionsClose:e=>{const{normalize:t}=e;return t(["Schließen"])},optionsChipsTitle:e=>{const{normalize:t}=e;return t(["Darstellung"])},optionsChips:e=>{const{normalize:t}=e;return t(["Zeigt untergeordnete Navigationspunkte in kompakter Form an"])},optionsSortTitle:e=>{const{normalize:t}=e;return t(["Sortierung"])},optionsSort:e=>{const{normalize:t}=e;return t(["Sortiert untergeordnete Navigationspunkte aufsteigend"])},optionsDividerTitle:e=>{const{normalize:t}=e;return t(["Trennlinie"])},optionsDivider:e=>{const{normalize:t}=e;return t(["Zeigt eine Trennlinie unterhalb des Navigationspunktes"])},optionsRowsTitle:e=>{const{normalize:t}=e;return t(["Spalten"])},optionsRows:e=>{const{normalize:t}=e;return t(["Legt die Anzahl der Spalten für Panels abhängig vom Display fest"])}},props:{panel:e=>{const{normalize:t}=e;return t(["Allgemein"])},status:e=>{const{normalize:t}=e;return t(["Statuszeile"])},level:e=>{const{normalize:t}=e;return t(["Ebene allgemein"])},main:e=>{const{normalize:t}=e;return t(["Ebenen"])},type:e=>{const{normalize:t}=e;return t(["Typ"])},left1:e=>{const{normalize:t}=e;return t(["left1"])},left2:e=>{const{normalize:t}=e;return t(["left2"])},mid:e=>{const{normalize:t}=e;return t(["mid"])},right1:e=>{const{normalize:t}=e;return t(["right1"])},right2:e=>{const{normalize:t}=e;return t(["right2"])},info:e=>{const{normalize:t}=e;return t(["Infozeile"])}},panels:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Panel"]),t(["Panels"])])},extended:e=>{const{normalize:t}=e;return t(["erweitert"])},rawMode:e=>{const{normalize:t}=e;return t(["raw Mode"])},preview:e=>{const{normalize:t}=e;return t(["Panel Vorschau"])},search:e=>{const{normalize:t}=e;return t(["Panel suchen"])},new:e=>{const{normalize:t}=e;return t(["Name für neues Panel"])}},templates:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Vorlage"]),t(["Vorlagen"])])},search:e=>{const{normalize:t}=e;return t(["Vorlage suchen"])},new:e=>{const{normalize:t}=e;return t(["Name für neue Vorlage"])}},colors:{title:e=>{const{normalize:t}=e;return t(["Farben"])},newKey:e=>{const{normalize:t}=e;return t(["neue Variable"])}},content:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Sprache"]),t(["Sprachen"])])},newKey:e=>{const{normalize:t}=e;return t(["neue Variable"])},newLang:e=>{const{normalize:t}=e;return t(["neue Sprache (ISO-639)"])},search:e=>{const{normalize:t}=e;return t(["Variable suchen"])},key:e=>{const{normalize:t}=e;return t(["Variable"])}},rules:{required:e=>{const{normalize:t}=e;return t(["Erforderlich!"])},panelUnique:e=>{const{normalize:t}=e;return t(["Panel ist bereits vorhanden!"])},iso639code:e=>{const{normalize:t}=e;return t(["Eingabe muss ISO-639-1-Code entsprechen!"])},langUnique:e=>{const{normalize:t}=e;return t(["Sprache ist bereits vorhanden!"])},keyUnique:e=>{const{normalize:t}=e;return t(["Variable ist bereits vorhanden!"])}},assist:{title:e=>{const{normalize:t}=e;return t(["Assistent"])},ok:e=>{const{normalize:t}=e;return t(["Ok"])},cancel:e=>{const{normalize:t}=e;return t(["Abbruch"])}}},options:{darkMode:e=>{const{normalize:t}=e;return t(["Tag/Nacht Modus"])},reload:e=>{const{normalize:t}=e;return t(["Aktualisieren"])},settings:e=>{const{normalize:t}=e;return t(["Einstellungen"])},update:e=>{const{normalize:t}=e;return t(["Aktualisierung"])}},internals:{title:e=>{const{normalize:t}=e;return t(["Systeminformationen"])},onlyConfig:e=>{const{normalize:t}=e;return t(["nur Config anzeigen"])}},messages:{request:{title:e=>{const{normalize:t}=e;return t(["Verbindung zu FHEM fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Prüfe ob FHEM erreichbar ist oder die URL Verbindungsparameter (?protocol=...&server=...&port=...&path=...) korrekt sind, falls diese angegeben wurden."])}},wrongDevice:{title:e=>{const{normalize:t}=e;return t(["FHEM Config Device nicht gefunden"])},text:e=>{const{normalize:t}=e;return t(["Das FHEM Device das in der URL angegeben wurde (http://url/index.html#/fhemappdevice/...) konnte nicht gefunden werden."])}},jsonParse:{title:e=>{const{normalize:t}=e;return t(["Interner Fehler"])},text:e=>{const{normalize:t}=e;return t(["Bei der Verarbeitung einer JSON Definition ist ein Fehler aufgetreten. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},base64:{title:e=>{const{normalize:t}=e;return t(["Interner Fehler"])},text:e=>{const{normalize:t}=e;return t(["Fehler bei der Verarbeitung der Konfiguration. Die Decodierung der base64-codierten Konfiguarationsdaten ist fehlgeschlagen. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},noConfig:{title:e=>{const{normalize:t}=e;return t(["Keine Einstellungen gefunden"])},text:e=>{const{normalize:t}=e;return t(["Für diese Instanz wurden noch keine Einstellungen vorgenommen. Bitte zuerst die Grundeinstellungen für FHEMapp vornehmen und speichern."])}},config:{title:e=>{const{normalize:t}=e;return t(["Laden der Konfiguration fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Es konnten keine Konfiguationsdaten verarbeitet werden. Für weitere Informationen solltest du das Fehlerlogging über den URL Parameter (?loglevel=7) aktivieren."])}},websocket:{title:e=>{const{normalize:t}=e;return t(["WEBSocket Verbidnung fehlgeschlagen"])},text:e=>{const{normalize:t}=e;return t(["Der verwendete Browser unterstützt keine WEBSocket-Verbidnungen. Es wurde deshalb eine Longpoll-Verbindung zu FHEM hergestellt. Zum Deaktivieren dieser Meldung solltest du den URL Parameter für Longpoll-Verbindungen (?xhr=1) verwenden."])}},reconnect:{title:e=>{const{normalize:t}=e;return t(["Verbindung zu FHEM wurde unterbrochen"])},text:e=>{const{normalize:t}=e;return t(["Neuer Verbindungsversuch erfolgt in 3 Sekunden... Prüfe ob FHEM erreichbar ist, wenn der Fehler weiterhin auftritt."])}},noPanels:{title:e=>{const{normalize:t}=e;return t(["Konfiguration enthält keine Panels"])},text:e=>{const{normalize:t}=e;return t(["Bitte erstelle zuerst Panels in den Einstellungen von FHEMapp."])}},clipboard:{text:e=>{const{normalize:t}=e;return t(["Daten wurden in die Zwischenablage kopiert."])}},checkDefs:{text:e=>{const{normalize:t}=e;return t(["Prüfe die Reihenfolge der Definitionen. Die Definition ohne Bedingung sollte immer am Ende stehen."])}}},default:e=>{const{normalize:t}=e;return t(["Standard"])}}}},{en:{_app:{settings:{title:e=>{const{normalize:t}=e;return t(["Settings"])},general:{title:e=>{const{normalize:t}=e;return t(["General"])},headLine:e=>{const{normalize:t}=e;return t(["Header"])},headLineImageTitle:e=>{const{normalize:t}=e;return t(["Background image"])},headLineImageSubTitle:e=>{const{normalize:t}=e;return t(["Link to an image for the background of the header"])},headLineImageGradientTitle:e=>{const{normalize:t}=e;return t(["Color filter"])},headLineImageGradientSubTitle:e=>{const{normalize:t}=e;return t(["CSS Linear Gardient definition for the background image"])},headLineTimeTitle:e=>{const{normalize:t}=e;return t(["Time"])},headLineTimeSubTitle:e=>{const{normalize:t}=e;return t(["Displays the time from the FHEM server in the desktop view on the left side of the header"])},headLineDateTitle:e=>{const{normalize:t}=e;return t(["Date"])},headLineDateSubTitle:e=>{const{normalize:t}=e;return t(["Displays the date from the FHEM server in the desktop view in the center of the header"])},headLineRouteTitle:e=>{const{normalize:t}=e;return t(["current page"])},headLineRouteSubTitle:e=>{const{normalize:t}=e;return t(["Displays the currently selected page in the mobile view in the center of the header"])},headLineNavigationTitle:e=>{const{normalize:t}=e;return t(["Hide navigation menu"])},headLineNavigationSubTitle:e=>{const{normalize:t}=e;return t(["Displays the button for showing the navigation menu in the desktop view"])},darkMode:e=>{const{normalize:t}=e;return t(["Color scheme"])},darkModeTitle:e=>{const{normalize:t}=e;return t(["DarkMode via FHEM"])},darkModeSubTitle:e=>{const{normalize:t}=e;return t(["Switches to the dark color scheme if the FHEM Reading value is correct"])},defaultRoute:e=>{const{normalize:t}=e;return t(["Standard page"])},defaultRouteTitle:e=>{const{normalize:t}=e;return t(["Page when opening"])},defaultRouteSubTitle:e=>{const{normalize:t}=e;return t(["Shows a specific page from the navigation menu when opened"])},optionsMenu:e=>{const{normalize:t}=e;return t(["Optionsmenu"])},optionsMenuDarkModeTitle:e=>{const{normalize:t}=e;return t(["Day/night mode"])},optionsMenuDarkModeSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option to switch to the dark or light color scheme"])},optionsMenuReloadPageTitle:e=>{const{normalize:t}=e;return t(["Update page"])},optionsMenuReloadPageSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option to reload the page"])},optionsMenuSettingsTitle:e=>{const{normalize:t}=e;return t(["Settings"])},optionsMenuSettingsSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option to open the settings"])},optionsMenuUpdateTitle:e=>{const{normalize:t}=e;return t(["Updates"])},optionsMenuUpdateSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option to run an update when it is available"])},optionsMenuLanguagesTitle:e=>{const{normalize:t}=e;return t(["Languages"])},optionsMenuLanguagesSubTitle:e=>{const{normalize:t}=e;return t(["Shows an option field for switching languages"])},fhemCommands:e=>{const{normalize:t}=e;return t(["Options menu FHEM commands"])},fhemCommandsName:e=>{const{normalize:t}=e;return t(["Name"])},fhemCommandsTitle:e=>{const{normalize:t}=e;return t(["Description"])},fhemCommandsIcon:e=>{const{normalize:t}=e;return t(["Icon"])},fhemCommandsCmd:e=>{const{normalize:t}=e;return t(["FHEM command"])}},navigation:{title:e=>{const{normalize:t}=e;return t(["Navigation"])},name:e=>{const{normalize:t}=e;return t(["Name"])},namePlaceholder:e=>{const{normalize:t}=e;return t(["home"])},title1:e=>{const{normalize:t}=e;return t(["Label"])},title1Placeholder:e=>{const{normalize:t}=e;return t(["Homepage od. %t(navHome)"])},icon:e=>{const{normalize:t}=e;return t(["Icon"])},iconPlaceholder:e=>{const{normalize:t}=e;return t(["mdi-home"])},optionsTitle:e=>{const{normalize:t}=e;return t(["Options"])},optionsClose:e=>{const{normalize:t}=e;return t(["Close"])},optionsChipsTitle:e=>{const{normalize:t}=e;return t(["Style"])},optionsChips:e=>{const{normalize:t}=e;return t(["Displays subordinate navigation points in compact form"])},optionsSortTitle:e=>{const{normalize:t}=e;return t(["Sorting"])},optionsSort:e=>{const{normalize:t}=e;return t(["Sorts subordinate navigation items in ascending order"])},optionsDividerTitle:e=>{const{normalize:t}=e;return t(["Divider"])},optionsDivider:e=>{const{normalize:t}=e;return t(["Shows a dividing line below the navigation point"])},optionsRowsTitle:e=>{const{normalize:t}=e;return t(["Columns"])},optionsRows:e=>{const{normalize:t}=e;return t(["Defines the number of columns for panels depending on the display"])}},props:{panel:e=>{const{normalize:t}=e;return t(["General"])},status:e=>{const{normalize:t}=e;return t(["Statusbar"])},level:e=>{const{normalize:t}=e;return t(["Level general"])},main:e=>{const{normalize:t}=e;return t(["Levels"])},type:e=>{const{normalize:t}=e;return t(["Typ"])},left1:e=>{const{normalize:t}=e;return t(["left1"])},left2:e=>{const{normalize:t}=e;return t(["left2"])},mid:e=>{const{normalize:t}=e;return t(["mid"])},right1:e=>{const{normalize:t}=e;return t(["right1"])},right2:e=>{const{normalize:t}=e;return t(["right2"])},info:e=>{const{normalize:t}=e;return t(["Infoline"])}},panels:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Panel"]),t(["Panels"])])},extended:e=>{const{normalize:t}=e;return t(["Advanced"])},rawMode:e=>{const{normalize:t}=e;return t(["raw Mode"])},preview:e=>{const{normalize:t}=e;return t(["Panel Preview"])},search:e=>{const{normalize:t}=e;return t(["Panel search"])},new:e=>{const{normalize:t}=e;return t(["Name for new Panel"])}},templates:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Template"]),t(["Templates"])])},search:e=>{const{normalize:t}=e;return t(["Template search"])},new:e=>{const{normalize:t}=e;return t(["Name for new Template"])}},colors:{title:e=>{const{normalize:t}=e;return t(["Colors"])},newKey:e=>{const{normalize:t}=e;return t(["new variable"])}},content:{title:e=>{const{normalize:t,plural:n}=e;return n([t(["Language"]),t(["Languages"])])},newKey:e=>{const{normalize:t}=e;return t(["new variable"])},newLang:e=>{const{normalize:t}=e;return t(["new Language (ISO-639)"])},search:e=>{const{normalize:t}=e;return t(["Key search"])},key:e=>{const{normalize:t}=e;return t(["Key"])}},rules:{required:e=>{const{normalize:t}=e;return t(["Required!"])},panelUnique:e=>{const{normalize:t}=e;return t(["Panel is already defined!"])},iso639code:e=>{const{normalize:t}=e;return t(["Input must correspond to ISO 639-1 code!"])},langUnique:e=>{const{normalize:t}=e;return t(["Language is already defined!"])},keyUnique:e=>{const{normalize:t}=e;return t(["Key is already defined!"])}},assist:{title:e=>{const{normalize:t}=e;return t(["Wizard"])},ok:e=>{const{normalize:t}=e;return t(["Ok"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])}}},options:{darkMode:e=>{const{normalize:t}=e;return t(["Day/Night Mode"])},reload:e=>{const{normalize:t}=e;return t(["Refresh"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},update:e=>{const{normalize:t}=e;return t(["Update"])}},internals:{title:e=>{const{normalize:t}=e;return t(["Internals"])},onlyConfig:e=>{const{normalize:t}=e;return t(["show only config"])}},messages:{request:{title:e=>{const{normalize:t}=e;return t(["Connection to FHEM failed"])},text:e=>{const{normalize:t}=e;return t(["Check if FHEM is reachable or if the URL connection parameters (?protocol=...&server=...&port=...&path=...) are correct, if specified."])}},wrongDevice:{title:e=>{const{normalize:t}=e;return t(["FHEM Config Device not found"])},text:e=>{const{normalize:t}=e;return t(["The FHEM device specified in the URL (http://url/index.html#/fhemappdevice/...) could not be found."])}},jsonParse:{title:e=>{const{normalize:t}=e;return t(["Internal error"])},text:e=>{const{normalize:t}=e;return t(["An error has occurred while processing a JSON definition. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},base64:{title:e=>{const{normalize:t}=e;return t(["Internal error"])},text:e=>{const{normalize:t}=e;return t(["Error processing the configuration. The decoding of the base64-encoded configuration data has failed. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},noConfig:{title:e=>{const{normalize:t}=e;return t(["No settings found"])},text:e=>{const{normalize:t}=e;return t(["No settings have yet been made for this instance. Please make and save the basic settings for FHEMapp first."])}},config:{title:e=>{const{normalize:t}=e;return t(["Failed to load the configuration"])},text:e=>{const{normalize:t}=e;return t(["No configuration data could be processed. For more information, you should activate error logging via the URL parameter (?loglevel=7)."])}},websocket:{title:e=>{const{normalize:t}=e;return t(["WEBSocket connection failed"])},text:e=>{const{normalize:t}=e;return t(["The browser used does not support WEBSocket connections. A longpoll connection to FHEM has therefore been established. To deactivate this message, you should use the URL parameter for longpoll connections (?xhr=1)."])}},reconnect:{title:e=>{const{normalize:t}=e;return t(["Connection to FHEM was interrupted"])},text:e=>{const{normalize:t}=e;return t(["New connection attempt will be made in 3 seconds... Check whether FHEM can be reached if the error still occurs."])}},noPanels:{title:e=>{const{normalize:t}=e;return t(["Configuration does not contain any panels"])},text:e=>{const{normalize:t}=e;return t(["Please create panels in the FHEMapp settings first."])}},clipboard:{text:e=>{const{normalize:t}=e;return t(["Data has been copied to the clipboard."])}},checkDefs:{text:e=>{const{normalize:t}=e;return t(["Check the order of the definitions. The definition without a condition should always be at the end."])}}},default:e=>{const{normalize:t}=e;return t(["Default"])}}}});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -62,7 +62,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Sx=function(e,t){return Sx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Sx(e,t)};function ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sx(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ere=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),tre=function(){function e(){this.browser=new ere,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),it=new tre;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(it.wxa=!0,it.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?it.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(it.node=!0,it.svgSupported=!0):nre(navigator.userAgent,it);function nre(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var GT=12,x3="sans-serif",Ts=GT+"px "+x3,rre=20,are=100,ire="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ore(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=o*n.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function Ire(e,t,n){for(var r=n?"invTrans":"trans",a=t[r],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,v=c.top;o.push(d,v),l=l&&i&&d===i[f]&&v===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[r]=n?Wk(s,o):Wk(o,s))}function P3(e){return e.nodeName.toUpperCase()==="CANVAS"}var Dre=/([&<>"'])/g,Pre={"&":"&","<":"<",">":">",'"':""","'":"'"};function Br(e){return e==null?"":(e+"").replace(Dre,function(t,n){return Pre[n]})}var kre=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,O_=[],Mre=it.browser.firefox&&+it.browser.version.split(".")[0]<39;function Px(e,t,n,r){return n=n||{},r?Yk(e,t,n):Mre&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):Yk(e,t,n),n}function Yk(e,t,n){if(it.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(P3(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(Dx(O_,e,r,a)){n.zrX=O_[0],n.zrY=O_[1];return}}n.zrX=n.zrY=0}function ZT(e){return e||window.event}function va(e,t,n){if(t=ZT(t),t.zrX!=null)return t;var r=t.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Px(e,o,t,n)}else{Px(e,t,t,n);var i=Lre(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kre.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Lre(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function kx(e,t,n,r){e.addEventListener(t,n,r)}function Ere(e,t,n,r){e.removeEventListener(t,n,r)}var _o=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Xk(e){return e.which===2||e.which===3}var Rre=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var a=t.touches;if(a){for(var i={points:[],touches:[],target:n,event:t},o=0,s=a.length;o1&&r&&r.length>1){var i=jk(r)/jk(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Vre(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Jr(){return[1,0,0,1,0,0]}function x0(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function KT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function uo(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Li(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Lu(e,t,n,r){r===void 0&&(r=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=i*f+l*c,e[3]=-i*c+f*l,e[4]=f*(o-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(o-r[0])+r[1],e}function qT(e,t,n){var r=n[0],a=n[1];return e[0]=t[0]*r,e[1]=t[1]*a,e[2]=t[2]*r,e[3]=t[3]*a,e[4]=t[4]*r,e[5]=t[5]*a,e}function Tf(e,t){var n=t[0],r=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=n*o-i*r;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*a)*l,e[5]=(i*a-n*s)*l,e):null}function Ore(e){var t=Jr();return KT(t,e),t}var je=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,a){t.x=n.x+r.x*a,t.y=n.y+r.y*a},e.lerp=function(t,n,r,a){var i=1-a;t.x=i*n.x+a*r.x,t.y=i*n.y+a*r.y},e}(),gg=Math.min,pg=Math.max,Ks=new je,qs=new je,Js=new je,Qs=new je,Yf=new je,Xf=new je,Ke=function(){function e(t,n,r,a){r<0&&(t=t+r,r=-r),a<0&&(n=n+a,a=-a),this.x=t,this.y=n,this.width=r,this.height=a}return e.prototype.union=function(t){var n=gg(t.x,this.x),r=gg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=pg(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=pg(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,a=t.height/n.height,i=Jr();return Li(i,i,[-n.x,-n.y]),qT(i,i,[r,a]),Li(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ih&&(h=_,gh&&(h=b,m=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];t.x=n.x*a+o,t.y=n.y*i+s,t.width=n.width*a,t.height=n.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ks.x=Js.x=n.x,Ks.y=Qs.y=n.y,qs.x=Qs.x=n.x+n.width,qs.y=Js.y=n.y+n.height,Ks.transform(r),Qs.transform(r),qs.transform(r),Js.transform(r),t.x=gg(Ks.x,qs.x,Js.x,Qs.x),t.y=gg(Ks.y,qs.y,Js.y,Qs.y);var l=pg(Ks.x,qs.x,Js.x,Qs.x),u=pg(Ks.y,qs.y,Js.y,Qs.y);t.width=l-t.x,t.height=u-t.y},e}(),k3="silent";function Nre(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Bre}}function Bre(){_o(this.event)}var zre=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ra),jf=function(){function e(t,n){this.x=t,this.y=n}return e}(),Fre=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],B_=new Ke(0,0,0,0),M3=function(e){ee(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new jf(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new zre,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new wre(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(R(Fre,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=L3(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new jf(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new jf(0,0)},t.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=Nre(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new jf(n,r);if(Zk(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ke(n-u,r-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(B_.copy(d.getBoundingRect()),d.transform&&B_.applyTransform(d.transform),B_.intersect(c)&&s.push(d))}if(s.length)for(var v=4,h=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function Hre(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(a=!0);var s=r.__hostTarget;r=s||r.parent}return a?k3:!0}return!1}function Zk(e,t,n,r,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=Hre(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==k3)){t.target=o;break}}}function L3(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var E3=32,Zf=7;function Gre(e){for(var t=0;e>=E3;)t|=e&1,e>>=1;return e+t}function Kk(e,t,n,r){var a=t+1;if(a===n)return 1;if(r(e[a++],e[t])<0){for(;a=0;)a++;return a-t}function $re(e,t,n){for(n--;t>>1,a(i,e[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function z_(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(e,t[n+c])>0?o=c+1:l=c}return l}function F_(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(e,t[n+c])<0?l=c:o=c+1}return l}function Wre(e,t){var n=Zf,r,a,i=0,o=[];r=[],a=[];function s(v,h){r[i]=v,a[i]=h,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]a[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]=Zf||T>=Zf);if(C)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),h===1){for(m=0;m=0;m--)e[S+m]=e[x+m];e[b]=o[_];return}for(var T=n;;){var C=0,w=0,A=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,w=0,--h===0){A=!0;break}}else if(e[b--]=o[_--],w++,C=0,--p===1){A=!0;break}while((C|w)=0;m--)e[S+m]=e[x+m];if(h===0){A=!0;break}}if(e[b--]=o[_--],--p===1){A=!0;break}if(w=p-z_(e[y],o,0,p,p-1,t),w!==0){for(b-=w,_-=w,p-=w,S=b+1,x=_+1,m=0;m=Zf||w>=Zf);if(A)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),p===1){for(b-=h,y-=h,S=b+1,x=y+1,m=h-1;m>=0;m--)e[S+m]=e[x+m];e[b]=o[_]}else{if(p===0)throw new Error;for(x=b-(p-1),m=0;ms&&(l=s),qk(e,n,n+l,n+i,t),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var Kr=1,Cd=2,yc=4,Jk=!1;function H_(){Jk||(Jk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Qk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Ure=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Qk}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(H_(),c.z=0),isNaN(c.z2)&&(H_(),c.z2=0),isNaN(c.zlevel)&&(H_(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Am;Am=it.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Yd={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Yd.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Yd.bounceIn(e*2)*.5:Yd.bounceOut(e*2-1)*.5+.5}},mg=Math.pow,ps=Math.sqrt,Im=1e-8,R3=1e-4,eM=ps(3),yg=1/3,_i=Mu(),ya=Mu(),Nc=Mu();function us(e){return e>-Im&&eIm||e<-Im}function Dn(e,t,n,r,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*r+3*i*n)}function tM(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function Dm(e,t,n,r,a,i){var o=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,v=0;if(us(c)&&us(f))if(us(s))i[0]=0;else{var h=-l/s;h>=0&&h<=1&&(i[v++]=h)}else{var g=f*f-4*c*d;if(us(g)){var p=f/c,h=-s/o+p,m=-p/2;h>=0&&h<=1&&(i[v++]=h),m>=0&&m<=1&&(i[v++]=m)}else if(g>0){var y=ps(g),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-mg(-_,yg):_=mg(_,yg),b<0?b=-mg(-b,yg):b=mg(b,yg);var h=(-s-(_+b))/(3*o);h>=0&&h<=1&&(i[v++]=h)}else{var x=(2*c*s-3*o*f)/(2*ps(c*c*c)),S=Math.acos(x)/3,T=ps(c),C=Math.cos(S),h=(-s-2*T*C)/(3*o),m=(-s+T*(C+eM*Math.sin(S)))/(3*o),w=(-s+T*(C-eM*Math.sin(S)))/(3*o);h>=0&&h<=1&&(i[v++]=h),m>=0&&m<=1&&(i[v++]=m),w>=0&&w<=1&&(i[v++]=w)}}return v}function O3(e,t,n,r,a){var i=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(us(o)){if(V3(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(us(c))a[0]=-i/(2*o);else if(c>0){var f=ps(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function Is(e,t,n,r,a,i){var o=(t-e)*a+e,s=(n-t)*a+t,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=r}function N3(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,v=1/0,h,g,p,m;_i[0]=l,_i[1]=u;for(var y=0;y<1;y+=.05)ya[0]=Dn(e,n,a,o,y),ya[1]=Dn(t,r,i,s,y),p=Xl(_i,ya),p=0&&p=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(us(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=ps(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function B3(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Lv(e,t,n,r,a){var i=(t-e)*r+e,o=(n-t)*r+t,s=(o-i)*r+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function z3(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;_i[0]=o,_i[1]=s;for(var d=0;d<1;d+=.05){ya[0]=zn(e,n,a,d),ya[1]=zn(t,r,i,d);var v=Xl(_i,ya);v=0&&v=1?1:Dm(0,r,i,1,l,s)&&Dn(0,a,o,1,s[0])}}}var Kre=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ln,this.ondestroy=t.ondestroy||ln,this.onrestart=t.onrestart||ln,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=t-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ee(t)?t:Yd[t]||JT(t)},e}(),F3=function(){function e(t){this.value=t}return e}(),qre=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new F3(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ah=function(){function e(t){this._list=new qre,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,a=this._map,i=null;if(a[t]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new F3(n),s.key=t,r.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),nM={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Za(e){return e=Math.round(e),e<0?0:e>255?255:e}function Jre(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ev(e){return e<0?0:e>1?1:e}function G_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Za(parseFloat(t)/100*255):Za(parseInt(t,10))}function jl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ev(parseFloat(t)/100):Ev(parseFloat(t))}function $_(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function cs(e,t,n){return e+(t-e)*n}function da(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function Lx(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var H3=new Ah(20),_g=null;function ju(e,t){_g&&Lx(_g,t),_g=H3.put(e,_g||t.slice())}function Qr(e,t){if(e){t=t||[];var n=H3.get(e);if(n)return Lx(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in nM)return Lx(t,nM[r]),ju(e,t),t;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){da(t,0,0,0,1);return}return da(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),ju(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){da(t,0,0,0,1);return}return da(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),ju(e,t),t}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?da(t,+u[0],+u[1],+u[2],1):da(t,0,0,0,1);c=jl(u.pop());case"rgb":if(u.length>=3)return da(t,G_(u[0]),G_(u[1]),G_(u[2]),u.length===3?c:jl(u[3])),ju(e,t),t;da(t,0,0,0,1);return;case"hsla":if(u.length!==4){da(t,0,0,0,1);return}return u[3]=jl(u[3]),Ex(u,t),ju(e,t),t;case"hsl":if(u.length!==3){da(t,0,0,0,1);return}return Ex(u,t),ju(e,t),t;default:return}}da(t,0,0,0,1)}}function Ex(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=jl(e[1]),a=jl(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],da(t,Za($_(o,i,n+1/3)*255),Za($_(o,i,n)*255),Za($_(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Qre(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;t===i?l=d-f:n===i?l=1/3+c-d:r===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function Rx(e,t){var n=Qr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return co(n,n.length===4?"rgba":"rgb")}}function W_(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=t[a],s=t[i],l=r-a;return n[0]=Za(cs(o[0],s[0],l)),n[1]=Za(cs(o[1],s[1],l)),n[2]=Za(cs(o[2],s[2],l)),n[3]=Ev(cs(o[3],s[3],l)),n}}function eae(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=Qr(t[a]),s=Qr(t[i]),l=r-a,u=co([Za(cs(o[0],s[0],l)),Za(cs(o[1],s[1],l)),Za(cs(o[2],s[2],l)),Ev(cs(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function Xd(e,t,n,r){var a=Qr(e);if(e)return a=Qre(a),t!=null&&(a[0]=Jre(t)),n!=null&&(a[1]=jl(n)),r!=null&&(a[2]=jl(r)),co(Ex(a),"rgba")}function Pm(e,t){var n=Qr(e);if(n&&t!=null)return n[3]=Ev(t),co(n,"rgba")}function co(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function km(e,t){var n=Qr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var rM=new Ah(100);function Vx(e){if(Ae(e)){var t=rM.get(e);return t||(t=Rx(e,-.1),rM.put(e,t)),t}else if(b0(e)){var n=ce({},e);return n.colorStops=pe(e.colorStops,function(r){return{offset:r.offset,color:Rx(r.color,-.1)}}),n}return e}var Mm=Math.round;function Rv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=Qr(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var aM=1e-4;function fs(e){return e-aM}function bg(e){return Mm(e*1e3)/1e3}function Ox(e){return Mm(e*1e4)/1e4}function tae(e){return"matrix("+bg(e[0])+","+bg(e[1])+","+bg(e[2])+","+bg(e[3])+","+Ox(e[4])+","+Ox(e[5])+")"}var nae={left:"start",right:"end",center:"middle",middle:"middle"};function rae(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function aae(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function iae(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function G3(e){return e&&!!e.image}function oae(e){return e&&!!e.svgElement}function QT(e){return G3(e)||oae(e)}function $3(e){return e.type==="linear"}function W3(e){return e.type==="radial"}function U3(e){return e&&(e.type==="linear"||e.type==="radial")}function w0(e){return"url(#"+e+")"}function Y3(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function X3(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ap,a=We(e.scaleX,1),i=We(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Mm(o*Ap)+"deg, "+Mm(s*Ap)+"deg)"),l.join(" ")}var sae=function(){return it.hasGlobalWindow&&Ee(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Nx=Array.prototype.slice;function Ji(e,t,n){return(t-e)*n+e}function U_(e,t,n,r){for(var a=t.length,i=0;ir?t:e,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=oM,l=n;if(cr(n)){var u=fae(n);s=u,(u===1&&!dt(n[0])||u===2&&!dt(n[0][0]))&&(o=!0)}else if(dt(n)&&!Mv(n))s=xg;else if(Ae(n))if(!isNaN(+n))s=xg;else{var c=Qr(n);c&&(l=c,s=Td)}else if(b0(n)){var f=ce({},l);f.colorStops=pe(n.colorStops,function(v){return{offset:v.offset,color:Qr(v.color)}}),$3(n)?s=Bx:W3(n)&&(s=zx),l=f}i===0?this.valType=s:(s!==this.valType||s===oM)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Ee(r)?r:Yd[r]||JT(r)),a.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(g,p){return g.time-p.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=wg(a),u=sM(a),c=0;c=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}h=o[c+1],v=o[c]}if(v&&h){this._lastFr=c,this._lastFrP=n;var p=h.percent-v.percent,m=p===0?1:d((n-v.percent)/p,1);h.easingFunc&&(m=h.easingFunc(m));var y=r?this._additiveValue:u?Kf:t[l];if((wg(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:h.rawValue;else if(wg(i))i===Mp?U_(y,v[a],h[a],m):lae(y,v[a],h[a],m);else if(sM(i)){var _=v[a],b=h[a],x=i===Bx;t[l]={type:x?"linear":"radial",x:Ji(_.x,b.x,m),y:Ji(_.y,b.y,m),colorStops:pe(_.colorStops,function(T,C){var w=b.colorStops[C];return{offset:Ji(T.offset,w.offset,m),color:kp(U_([],T.color,w.color,m))}}),global:b.global},x?(t[l].x2=Ji(_.x2,b.x2,m),t[l].y2=Ji(_.y2,b.y2,m)):t[l].r=Ji(_.r,b.r,m)}else if(u)U_(y,v[a],h[a],m),r||(t[l]=kp(y));else{var S=Ji(v[a],h[a],m);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===xg?t[r]=t[r]+a:n===Td?(Qr(t[r],Kf),Sg(Kf,Kf,a,1),t[r]=kp(Kf)):n===Mp?Sg(t[r],t[r],a,1):n===j3&&iM(t[r],t[r],a,1)},e}(),eA=function(){function e(t,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&a){UT("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,st(n),r)},e.prototype.whenWithKeys=function(t,n,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,jd(u),a),this._trackKeys.push(s)}l.addKeyframe(t,jd(n[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Ac(){return new Date().getTime()}var vae=function(e){ee(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=Ac()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Am(r),!n._paused&&n.update())}Am(r)},t.prototype.start=function(){this._running||(this._time=Ac(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ac(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ac()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var a=new eA(n,r.loop);return this.addAnimator(a),a},t}(Ra),hae=300,Y_=it.domSupported,X_=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=pe(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),lM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},uM=!1;function Fx(e){var t=e.pointerType;return t==="pen"||t==="touch"}function gae(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function j_(e){e&&(e.zrByTouch=!0)}function pae(e,t){return va(e.dom,new mae(e,t),!0)}function Z3(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var mae=function(){function e(t,n){this.stopPropagation=ln,this.stopImmediatePropagation=ln,this.preventDefault=ln,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Ha={mousedown:function(e){e=va(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=va(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=va(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=va(this.dom,e);var t=e.toElement||e.relatedTarget;Z3(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){uM=!0,e=va(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){uM||(e=va(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=va(this.dom,e),j_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ha.mousemove.call(this,e),Ha.mousedown.call(this,e)},touchmove:function(e){e=va(this.dom,e),j_(e),this.handler.processGesture(e,"change"),Ha.mousemove.call(this,e)},touchend:function(e){e=va(this.dom,e),j_(e),this.handler.processGesture(e,"end"),Ha.mouseup.call(this,e),+new Date-+this.__lastTouchMomentdM||e<-dM}var tl=[],Zu=[],K_=Jr(),q_=Math.abs,ao=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return el(this.rotation)||el(this.x)||el(this.y)||el(this.scaleX-1)||el(this.scaleY-1)||el(this.skewX)||el(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(fM(r),this.invTransform=null);return}r=r||Jr(),n?this.getLocalTransform(r):fM(r),t&&(n?uo(r,t,r):KT(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(tl);var r=tl[0]<0?-1:1,a=tl[1]<0?-1:1,i=((tl[0]-r)*n+r)/tl[0]||0,o=((tl[1]-a)*n+a)/tl[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Jr(),Tf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Jr(),uo(Zu,t.invTransform,n),n=Zu);var r=this.originX,a=this.originY;(r||a)&&(K_[4]=r,K_[5]=a,uo(Zu,n,K_),Zu[4]-=r,Zu[5]-=a,n=Zu),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],a=this.invTransform;return a&&Zn(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&Zn(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&q_(t[0]-1)>1e-10&&q_(t[3]-1)>1e-10?Math.sqrt(q_(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){q3(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(r||a||s||l){var h=r+s,g=a+l;n[4]=-h*i-d*g*o,n[5]=-g*o-v*h*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=v*i,n[2]=d*o,u&&Lu(n,n,u),n[4]+=r+c,n[5]+=a+f,n},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ei=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function q3(e,t){for(var n=0;n"u"&&typeof self<"u"?it.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(it.node=!0,it.svgSupported=!0):nre(navigator.userAgent,it);function nre(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var GT=12,x3="sans-serif",Ts=GT+"px "+x3,rre=20,are=100,ire="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ore(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=o*n.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function Ire(e,t,n){for(var r=n?"invTrans":"trans",a=t[r],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,v=c.top;o.push(d,v),l=l&&i&&d===i[f]&&v===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[r]=n?Wk(s,o):Wk(o,s))}function P3(e){return e.nodeName.toUpperCase()==="CANVAS"}var Dre=/([&<>"'])/g,Pre={"&":"&","<":"<",">":">",'"':""","'":"'"};function Br(e){return e==null?"":(e+"").replace(Dre,function(t,n){return Pre[n]})}var kre=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,O_=[],Mre=it.browser.firefox&&+it.browser.version.split(".")[0]<39;function Px(e,t,n,r){return n=n||{},r?Yk(e,t,n):Mre&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):Yk(e,t,n),n}function Yk(e,t,n){if(it.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(P3(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(Dx(O_,e,r,a)){n.zrX=O_[0],n.zrY=O_[1];return}}n.zrX=n.zrY=0}function ZT(e){return e||window.event}function va(e,t,n){if(t=ZT(t),t.zrX!=null)return t;var r=t.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Px(e,o,t,n)}else{Px(e,t,t,n);var i=Lre(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kre.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Lre(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function kx(e,t,n,r){e.addEventListener(t,n,r)}function Ere(e,t,n,r){e.removeEventListener(t,n,r)}var _o=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Xk(e){return e.which===2||e.which===3}var Rre=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var a=t.touches;if(a){for(var i={points:[],touches:[],target:n,event:t},o=0,s=a.length;o1&&r&&r.length>1){var i=jk(r)/jk(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=Vre(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Jr(){return[1,0,0,1,0,0]}function x0(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function KT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function uo(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Li(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Lu(e,t,n,r){r===void 0&&(r=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=i*f+l*c,e[3]=-i*c+f*l,e[4]=f*(o-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(o-r[0])+r[1],e}function qT(e,t,n){var r=n[0],a=n[1];return e[0]=t[0]*r,e[1]=t[1]*a,e[2]=t[2]*r,e[3]=t[3]*a,e[4]=t[4]*r,e[5]=t[5]*a,e}function Tf(e,t){var n=t[0],r=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=n*o-i*r;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*a)*l,e[5]=(i*a-n*s)*l,e):null}function Ore(e){var t=Jr();return KT(t,e),t}var je=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,a){t.x=n.x+r.x*a,t.y=n.y+r.y*a},e.lerp=function(t,n,r,a){var i=1-a;t.x=i*n.x+a*r.x,t.y=i*n.y+a*r.y},e}(),gg=Math.min,pg=Math.max,Ks=new je,qs=new je,Js=new je,Qs=new je,Yf=new je,Xf=new je,Ke=function(){function e(t,n,r,a){r<0&&(t=t+r,r=-r),a<0&&(n=n+a,a=-a),this.x=t,this.y=n,this.width=r,this.height=a}return e.prototype.union=function(t){var n=gg(t.x,this.x),r=gg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=pg(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=pg(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,a=t.height/n.height,i=Jr();return Li(i,i,[-n.x,-n.y]),qT(i,i,[r,a]),Li(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ih&&(h=_,gh&&(h=b,m=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];t.x=n.x*a+o,t.y=n.y*i+s,t.width=n.width*a,t.height=n.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ks.x=Js.x=n.x,Ks.y=Qs.y=n.y,qs.x=Qs.x=n.x+n.width,qs.y=Js.y=n.y+n.height,Ks.transform(r),Qs.transform(r),qs.transform(r),Js.transform(r),t.x=gg(Ks.x,qs.x,Js.x,Qs.x),t.y=gg(Ks.y,qs.y,Js.y,Qs.y);var l=pg(Ks.x,qs.x,Js.x,Qs.x),u=pg(Ks.y,qs.y,Js.y,Qs.y);t.width=l-t.x,t.height=u-t.y},e}(),k3="silent";function Nre(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Bre}}function Bre(){_o(this.event)}var zre=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ra),jf=function(){function e(t,n){this.x=t,this.y=n}return e}(),Fre=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],B_=new Ke(0,0,0,0),M3=function(e){ee(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new jf(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new zre,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new wre(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(R(Fre,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=L3(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new jf(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new jf(0,0)},t.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=Nre(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new jf(n,r);if(Zk(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ke(n-u,r-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(B_.copy(d.getBoundingRect()),d.transform&&B_.applyTransform(d.transform),B_.intersect(c)&&s.push(d))}if(s.length)for(var v=4,h=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function Hre(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(a=!0);var s=r.__hostTarget;r=s||r.parent}return a?k3:!0}return!1}function Zk(e,t,n,r,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=Hre(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==k3)){t.target=o;break}}}function L3(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var E3=32,Zf=7;function Gre(e){for(var t=0;e>=E3;)t|=e&1,e>>=1;return e+t}function Kk(e,t,n,r){var a=t+1;if(a===n)return 1;if(r(e[a++],e[t])<0){for(;a=0;)a++;return a-t}function $re(e,t,n){for(n--;t>>1,a(i,e[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function z_(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(e,t[n+c])>0?o=c+1:l=c}return l}function F_(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(e,t[n+c])<0?l=c:o=c+1}return l}function Wre(e,t){var n=Zf,r,a,i=0,o=[];r=[],a=[];function s(v,h){r[i]=v,a[i]=h,i+=1}function l(){for(;i>1;){var v=i-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]a[v+1])break;c(v)}}function u(){for(;i>1;){var v=i-2;v>0&&a[v-1]=Zf||T>=Zf);if(C)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),h===1){for(m=0;m=0;m--)e[S+m]=e[x+m];e[b]=o[_];return}for(var T=n;;){var C=0,w=0,A=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,w=0,--h===0){A=!0;break}}else if(e[b--]=o[_--],w++,C=0,--p===1){A=!0;break}while((C|w)=0;m--)e[S+m]=e[x+m];if(h===0){A=!0;break}}if(e[b--]=o[_--],--p===1){A=!0;break}if(w=p-z_(e[y],o,0,p,p-1,t),w!==0){for(b-=w,_-=w,p-=w,S=b+1,x=_+1,m=0;m=Zf||w>=Zf);if(A)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),p===1){for(b-=h,y-=h,S=b+1,x=y+1,m=h-1;m>=0;m--)e[S+m]=e[x+m];e[b]=o[_]}else{if(p===0)throw new Error;for(x=b-(p-1),m=0;ms&&(l=s),qk(e,n,n+l,n+i,t),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var Kr=1,Cd=2,yc=4,Jk=!1;function H_(){Jk||(Jk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Qk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Ure=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Qk}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(H_(),c.z=0),isNaN(c.z2)&&(H_(),c.z2=0),isNaN(c.zlevel)&&(H_(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Am;Am=it.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Yd={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Yd.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Yd.bounceIn(e*2)*.5:Yd.bounceOut(e*2-1)*.5+.5}},mg=Math.pow,ps=Math.sqrt,Im=1e-8,R3=1e-4,eM=ps(3),yg=1/3,_i=Mu(),ya=Mu(),Nc=Mu();function us(e){return e>-Im&&eIm||e<-Im}function Dn(e,t,n,r,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*r+3*i*n)}function tM(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function Dm(e,t,n,r,a,i){var o=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,v=0;if(us(c)&&us(f))if(us(s))i[0]=0;else{var h=-l/s;h>=0&&h<=1&&(i[v++]=h)}else{var g=f*f-4*c*d;if(us(g)){var p=f/c,h=-s/o+p,m=-p/2;h>=0&&h<=1&&(i[v++]=h),m>=0&&m<=1&&(i[v++]=m)}else if(g>0){var y=ps(g),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-mg(-_,yg):_=mg(_,yg),b<0?b=-mg(-b,yg):b=mg(b,yg);var h=(-s-(_+b))/(3*o);h>=0&&h<=1&&(i[v++]=h)}else{var x=(2*c*s-3*o*f)/(2*ps(c*c*c)),S=Math.acos(x)/3,T=ps(c),C=Math.cos(S),h=(-s-2*T*C)/(3*o),m=(-s+T*(C+eM*Math.sin(S)))/(3*o),w=(-s+T*(C-eM*Math.sin(S)))/(3*o);h>=0&&h<=1&&(i[v++]=h),m>=0&&m<=1&&(i[v++]=m),w>=0&&w<=1&&(i[v++]=w)}}return v}function O3(e,t,n,r,a){var i=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(us(o)){if(V3(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(us(c))a[0]=-i/(2*o);else if(c>0){var f=ps(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function Is(e,t,n,r,a,i){var o=(t-e)*a+e,s=(n-t)*a+t,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=r}function N3(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,v=1/0,h,g,p,m;_i[0]=l,_i[1]=u;for(var y=0;y<1;y+=.05)ya[0]=Dn(e,n,a,o,y),ya[1]=Dn(t,r,i,s,y),p=Xl(_i,ya),p=0&&p=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(us(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=ps(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function B3(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Lv(e,t,n,r,a){var i=(t-e)*r+e,o=(n-t)*r+t,s=(o-i)*r+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function z3(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;_i[0]=o,_i[1]=s;for(var d=0;d<1;d+=.05){ya[0]=zn(e,n,a,d),ya[1]=zn(t,r,i,d);var v=Xl(_i,ya);v=0&&v=1?1:Dm(0,r,i,1,l,s)&&Dn(0,a,o,1,s[0])}}}var Kre=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ln,this.ondestroy=t.ondestroy||ln,this.onrestart=t.onrestart||ln,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=t-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ee(t)?t:Yd[t]||JT(t)},e}(),F3=function(){function e(t){this.value=t}return e}(),qre=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new F3(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ah=function(){function e(t){this._list=new qre,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,a=this._map,i=null;if(a[t]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new F3(n),s.key=t,r.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),nM={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Za(e){return e=Math.round(e),e<0?0:e>255?255:e}function Jre(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ev(e){return e<0?0:e>1?1:e}function G_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Za(parseFloat(t)/100*255):Za(parseInt(t,10))}function jl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ev(parseFloat(t)/100):Ev(parseFloat(t))}function $_(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function cs(e,t,n){return e+(t-e)*n}function da(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function Lx(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var H3=new Ah(20),_g=null;function ju(e,t){_g&&Lx(_g,t),_g=H3.put(e,_g||t.slice())}function Qr(e,t){if(e){t=t||[];var n=H3.get(e);if(n)return Lx(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in nM)return Lx(t,nM[r]),ju(e,t),t;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){da(t,0,0,0,1);return}return da(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),ju(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){da(t,0,0,0,1);return}return da(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),ju(e,t),t}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?da(t,+u[0],+u[1],+u[2],1):da(t,0,0,0,1);c=jl(u.pop());case"rgb":if(u.length>=3)return da(t,G_(u[0]),G_(u[1]),G_(u[2]),u.length===3?c:jl(u[3])),ju(e,t),t;da(t,0,0,0,1);return;case"hsla":if(u.length!==4){da(t,0,0,0,1);return}return u[3]=jl(u[3]),Ex(u,t),ju(e,t),t;case"hsl":if(u.length!==3){da(t,0,0,0,1);return}return Ex(u,t),ju(e,t),t;default:return}}da(t,0,0,0,1)}}function Ex(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=jl(e[1]),a=jl(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],da(t,Za($_(o,i,n+1/3)*255),Za($_(o,i,n)*255),Za($_(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Qre(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;t===i?l=d-f:n===i?l=1/3+c-d:r===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return e[3]!=null&&v.push(e[3]),v}}function Rx(e,t){var n=Qr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return co(n,n.length===4?"rgba":"rgb")}}function W_(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=t[a],s=t[i],l=r-a;return n[0]=Za(cs(o[0],s[0],l)),n[1]=Za(cs(o[1],s[1],l)),n[2]=Za(cs(o[2],s[2],l)),n[3]=Ev(cs(o[3],s[3],l)),n}}function eae(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=Qr(t[a]),s=Qr(t[i]),l=r-a,u=co([Za(cs(o[0],s[0],l)),Za(cs(o[1],s[1],l)),Za(cs(o[2],s[2],l)),Ev(cs(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function Xd(e,t,n,r){var a=Qr(e);if(e)return a=Qre(a),t!=null&&(a[0]=Jre(t)),n!=null&&(a[1]=jl(n)),r!=null&&(a[2]=jl(r)),co(Ex(a),"rgba")}function Pm(e,t){var n=Qr(e);if(n&&t!=null)return n[3]=Ev(t),co(n,"rgba")}function co(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function km(e,t){var n=Qr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var rM=new Ah(100);function Vx(e){if(Ae(e)){var t=rM.get(e);return t||(t=Rx(e,-.1),rM.put(e,t)),t}else if(b0(e)){var n=ce({},e);return n.colorStops=me(e.colorStops,function(r){return{offset:r.offset,color:Rx(r.color,-.1)}}),n}return e}var Mm=Math.round;function Rv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=Qr(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var aM=1e-4;function fs(e){return e-aM}function bg(e){return Mm(e*1e3)/1e3}function Ox(e){return Mm(e*1e4)/1e4}function tae(e){return"matrix("+bg(e[0])+","+bg(e[1])+","+bg(e[2])+","+bg(e[3])+","+Ox(e[4])+","+Ox(e[5])+")"}var nae={left:"start",right:"end",center:"middle",middle:"middle"};function rae(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function aae(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function iae(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function G3(e){return e&&!!e.image}function oae(e){return e&&!!e.svgElement}function QT(e){return G3(e)||oae(e)}function $3(e){return e.type==="linear"}function W3(e){return e.type==="radial"}function U3(e){return e&&(e.type==="linear"||e.type==="radial")}function w0(e){return"url(#"+e+")"}function Y3(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function X3(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ap,a=We(e.scaleX,1),i=We(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Mm(o*Ap)+"deg, "+Mm(s*Ap)+"deg)"),l.join(" ")}var sae=function(){return it.hasGlobalWindow&&Ee(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Nx=Array.prototype.slice;function Ji(e,t,n){return(t-e)*n+e}function U_(e,t,n,r){for(var a=t.length,i=0;ir?t:e,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=oM,l=n;if(cr(n)){var u=fae(n);s=u,(u===1&&!dt(n[0])||u===2&&!dt(n[0][0]))&&(o=!0)}else if(dt(n)&&!Mv(n))s=xg;else if(Ae(n))if(!isNaN(+n))s=xg;else{var c=Qr(n);c&&(l=c,s=Td)}else if(b0(n)){var f=ce({},l);f.colorStops=me(n.colorStops,function(v){return{offset:v.offset,color:Qr(v.color)}}),$3(n)?s=Bx:W3(n)&&(s=zx),l=f}i===0?this.valType=s:(s!==this.valType||s===oM)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Ee(r)?r:Yd[r]||JT(r)),a.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(g,p){return g.time-p.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=wg(a),u=sM(a),c=0;c=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}h=o[c+1],v=o[c]}if(v&&h){this._lastFr=c,this._lastFrP=n;var p=h.percent-v.percent,m=p===0?1:d((n-v.percent)/p,1);h.easingFunc&&(m=h.easingFunc(m));var y=r?this._additiveValue:u?Kf:t[l];if((wg(i)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?v.rawValue:h.rawValue;else if(wg(i))i===Mp?U_(y,v[a],h[a],m):lae(y,v[a],h[a],m);else if(sM(i)){var _=v[a],b=h[a],x=i===Bx;t[l]={type:x?"linear":"radial",x:Ji(_.x,b.x,m),y:Ji(_.y,b.y,m),colorStops:me(_.colorStops,function(T,C){var w=b.colorStops[C];return{offset:Ji(T.offset,w.offset,m),color:kp(U_([],T.color,w.color,m))}}),global:b.global},x?(t[l].x2=Ji(_.x2,b.x2,m),t[l].y2=Ji(_.y2,b.y2,m)):t[l].r=Ji(_.r,b.r,m)}else if(u)U_(y,v[a],h[a],m),r||(t[l]=kp(y));else{var S=Ji(v[a],h[a],m);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===xg?t[r]=t[r]+a:n===Td?(Qr(t[r],Kf),Sg(Kf,Kf,a,1),t[r]=kp(Kf)):n===Mp?Sg(t[r],t[r],a,1):n===j3&&iM(t[r],t[r],a,1)},e}(),eA=function(){function e(t,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&a){UT("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,st(n),r)},e.prototype.whenWithKeys=function(t,n,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,jd(u),a),this._trackKeys.push(s)}l.addKeyframe(t,jd(n[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Ac(){return new Date().getTime()}var vae=function(e){ee(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=Ac()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(Am(r),!n._paused&&n.update())}Am(r)},t.prototype.start=function(){this._running||(this._time=Ac(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ac(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ac()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var a=new eA(n,r.loop);return this.addAnimator(a),a},t}(Ra),hae=300,Y_=it.domSupported,X_=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=me(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),lM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},uM=!1;function Fx(e){var t=e.pointerType;return t==="pen"||t==="touch"}function gae(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function j_(e){e&&(e.zrByTouch=!0)}function pae(e,t){return va(e.dom,new mae(e,t),!0)}function Z3(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var mae=function(){function e(t,n){this.stopPropagation=ln,this.stopImmediatePropagation=ln,this.preventDefault=ln,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Ha={mousedown:function(e){e=va(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=va(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=va(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=va(this.dom,e);var t=e.toElement||e.relatedTarget;Z3(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){uM=!0,e=va(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){uM||(e=va(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=va(this.dom,e),j_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ha.mousemove.call(this,e),Ha.mousedown.call(this,e)},touchmove:function(e){e=va(this.dom,e),j_(e),this.handler.processGesture(e,"change"),Ha.mousemove.call(this,e)},touchend:function(e){e=va(this.dom,e),j_(e),this.handler.processGesture(e,"end"),Ha.mouseup.call(this,e),+new Date-+this.__lastTouchMomentdM||e<-dM}var tl=[],Zu=[],K_=Jr(),q_=Math.abs,ao=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return el(this.rotation)||el(this.x)||el(this.y)||el(this.scaleX-1)||el(this.scaleY-1)||el(this.skewX)||el(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(fM(r),this.invTransform=null);return}r=r||Jr(),n?this.getLocalTransform(r):fM(r),t&&(n?uo(r,t,r):KT(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(tl);var r=tl[0]<0?-1:1,a=tl[1]<0?-1:1,i=((tl[0]-r)*n+r)/tl[0]||0,o=((tl[1]-a)*n+a)/tl[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Jr(),Tf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Jr(),uo(Zu,t.invTransform,n),n=Zu);var r=this.originX,a=this.originY;(r||a)&&(K_[4]=r,K_[5]=a,uo(Zu,n,K_),Zu[4]-=r,Zu[5]-=a,n=Zu),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],a=this.invTransform;return a&&Zn(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&Zn(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&q_(t[0]-1)>1e-10&&q_(t[3]-1)>1e-10?Math.sqrt(q_(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){q3(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(r||a||s||l){var h=r+s,g=a+l;n[4]=-h*i-d*g*o,n[5]=-g*o-v*h*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=v*i,n[2]=d*o,u&&Lu(n,n,u),n[4]+=r+c,n[5]+=a+f,n},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ei=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function q3(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function Em(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=ni(r[0],n.width),u+=ni(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var J_="__zr_normal__",Q_=Ei.concat(["ignore"]),xae=Mi(Ei,function(e,t){return e[t]=!0,e},{ignore:!1}),Ku={},wae=new Ke(0,0,0,0),T0=function(){function e(t){this.id=T3(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(n),r.position!=null){var c=wae;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ku,r,c):Em(Ku,r,c),i.x=Ku.x,i.y=Ku.y,o=Ku.align,s=Ku.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,v=void 0;f==="center"?(d=c.width*.5,v=c.height*.5):(d=ni(f[0],c.width),v=ni(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+v+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var h=r.offset;h&&(i.x+=h[0],i.y+=h[1],u||(i.originX=-h[0],i.originY=-h[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=r.insideFill,y=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=r.outsideFill,y=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,n.setDefaultTextStyle(p)),n.__dirty|=Kr,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wx:$x},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Qr(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,co(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},ce(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Oe(t))for(var r=t,a=st(r),i=0;i0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(J_,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===J_,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Qe(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){UT("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.useState(t,n,r,c),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Kr),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,h);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,n,d),p&&p.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Kr)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var a=this.currentStates.slice(),i=Qe(a,t),o=Qe(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,a=r.length,i=[],o=0;o0&&n.during&&i[0].during(function(h,g){n.during(g)});for(var d=0;d0||a.force&&!o.length){var C=void 0,w=void 0,A=void 0;if(s){w={},d&&(C={});for(var b=0;b<_;b++){var m=g[b];w[m]=n[m],d?C[m]=r[m]:n[m]=r[m]}}else if(d){A={};for(var b=0;b<_;b++){var m=g[b];A[m]=jd(n[m]),Tae(n,r,m)}}var x=new eA(n,!1,!1,f?Tt(h,function(P){return P.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&C&&x.whenWithKeys(0,C,g),A&&x.whenWithKeys(0,A,g),x.whenWithKeys(u??500,s?w:r,g).delay(c||0),e.addAnimator(x,t),o.push(x)}}var ze=function(e){ee(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,a=0;a=0&&(a.splice(i,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var a=Qe(this._children,n);return a>=0&&this.replaceAt(r,a),this},t.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,a=this._children,i=Qe(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function we(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ae(e)?Rae(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function tn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),eH),e=(+e).toFixed(t),n?e:+e}function wa(e){return e.sort(function(t,n){return t-n}),e}function wi(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Vae(e)}function Vae(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,a=n>0?n:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function tH(e,t){var n=Math.log,r=Math.LN10,a=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Oae(e,t){var n=Mi(e,function(v,h){return v+(isNaN(h)?0:h)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=pe(e,function(v){return(isNaN(v)?0:v)/n*r*100}),i=r*100,o=pe(a,function(v){return Math.floor(v)}),s=Mi(o,function(v,h){return v+h},0),l=pe(a,function(v,h){return v-o[h]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return pe(o,function(v){return v/r})}function Nae(e,t){var n=Math.max(wi(e),wi(t)),r=e+t;return n>eH?r:tn(r,n)}var mM=9007199254740991;function nH(e){var t=Math.PI*2;return(e%t+t)%t}function Vv(e){return e>-pM&&e=10&&t++,t}function rH(e,t){var n=tA(e),r=Math.pow(10,n),a=e/r,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,e=i*r,n>=-20?+e.toFixed(n<0?-n:0):e}function nb(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a}function yM(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,n=1,r=0;r=0||i&&Qe(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var uie=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],cie=gu(uie),fie=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return cie(this,t,n)},e}(),Xx=new Ah(50);function die(e){if(typeof e=="string"){var t=Xx.get(e);return t&&t.image}else return e}function iA(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=Xx.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!I0(t)&&i.pending.push(o)):(t=As.loadImage(e,xM,xM),t.__zrImageSrc=e,Xx.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function xM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function we(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ae(e)?Rae(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function tn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),eH),e=(+e).toFixed(t),n?e:+e}function wa(e){return e.sort(function(t,n){return t-n}),e}function wi(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Vae(e)}function Vae(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,a=n>0?n:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function tH(e,t){var n=Math.log,r=Math.LN10,a=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Oae(e,t){var n=Mi(e,function(v,h){return v+(isNaN(h)?0:h)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=me(e,function(v){return(isNaN(v)?0:v)/n*r*100}),i=r*100,o=me(a,function(v){return Math.floor(v)}),s=Mi(o,function(v,h){return v+h},0),l=me(a,function(v,h){return v-o[h]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return me(o,function(v){return v/r})}function Nae(e,t){var n=Math.max(wi(e),wi(t)),r=e+t;return n>eH?r:tn(r,n)}var mM=9007199254740991;function nH(e){var t=Math.PI*2;return(e%t+t)%t}function Vv(e){return e>-pM&&e=10&&t++,t}function rH(e,t){var n=tA(e),r=Math.pow(10,n),a=e/r,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,e=i*r,n>=-20?+e.toFixed(n<0?-n:0):e}function nb(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a}function yM(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,n=1,r=0;r=0||i&&Qe(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var uie=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],cie=gu(uie),fie=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return cie(this,t,n)},e}(),Xx=new Ah(50);function die(e){if(typeof e=="string"){var t=Xx.get(e);return t&&t.image}else return e}function iA(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=Xx.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!I0(t)&&i.pending.push(o)):(t=As.loadImage(e,xM,xM),t.__zrImageSrc=e,Xx.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function xM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=ea(n,t);return u>s&&(n="",u=0),s=e-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function pH(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=ea(e,r);if(i<=n)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?hie(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=ea(e,r)}return e===""&&(e=t.placeholder),e}function hie(e,t,n,r){for(var a=0,i=0,o=e.length;iv&&u){var h=Math.floor(v/s);f=f.slice(0,h)}if(e&&i&&c!=null)for(var g=gH(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&ab(n,e.substring(s,u),t,o),ab(n,l[2],t,o,l[1]),s=rb.lastIndex}sa){x>0?(y.tokens=y.tokens.slice(0,x),p(y,b,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var P=T.width,k=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")S.percentWidth=P,c.push(S),S.contentWidth=ea(S.text,A);else{if(k){var L=T.backgroundColor,V=L&&L.image;V&&(V=die(V),I0(V)&&(S.width=Math.max(S.width,V.width*D/V.height)))}var N=h&&r!=null?r-b:null;N!=null&&N0&&h+r.accumWidth>r.width&&(c=t.split(` `),u=!0),r.accumWidth=h}else{var g=mH(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+v,f=g.linesWidths,c=g.lines}}else c=t.split(` `);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var bie=Mi(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Sie(e){return _ie(e)?!!bie[e]:!0}function mH(e,t,n,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;fn:a+c+v>n){c?(s||l)&&(h?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=v)):h?(i.push(l),o.push(u),l=d,u=v):(i.push(d),o.push(v));continue}c+=v,h?(l+=d,u+=v):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var jx="__zr_style_"+Math.round(Math.random()*10),Zl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},D0={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zl[jx]=!0;var CM=["z","z2","invisible"],xie=["invisible"],ka=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=st(n),a=0;a1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Cg[0]=lb(a)*n+e,Cg[1]=sb(a)*r+t,Tg[0]=lb(i)*n+e,Tg[1]=sb(i)*r+t,u(s,Cg,Tg),c(l,Cg,Tg),a=a%rl,a<0&&(a=a+rl),i=i%rl,i<0&&(i=i+rl),a>i&&!o?i+=rl:aa&&(Ag[0]=lb(v)*n+e,Ag[1]=sb(v)*r+t,u(s,Ag,s),c(l,Ag,l))}var Mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},al=[],il=[],li=[],Bo=[],ui=[],ci=[],ub=Math.min,cb=Math.max,ol=Math.cos,sl=Math.sin,ji=Math.abs,Zx=Math.PI,Zo=Zx*2,fb=typeof Float32Array<"u",qf=[];function db(e){var t=Math.round(e/Zx*1e8)/1e8;return t%2*Zx}function oA(e,t){var n=db(e[0]);n<0&&(n+=Zo);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=Zo?a=n+Zo:t&&n-a>=Zo?a=n-Zo:!t&&n>a?a=n+(Zo-db(n-a)):t&&n0&&(this._ux=ji(r/Lm/t)||0,this._uy=ji(r/Lm/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(Mt.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=ji(t-this._xi),a=ji(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(Mt.L,t,n),this._ctx&&i&&this._ctx.lineTo(t,n),i)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){return this._drawPendingPt(),this.addData(Mt.C,t,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(Mt.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,i,o){this._drawPendingPt(),qf[0]=a,qf[1]=i,oA(qf,o),a=qf[0],i=qf[1];var s=i-a;return this.addData(Mt.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=ol(i)*r+t,this._yi=sl(i)*r+n,this},e.prototype.arcTo=function(t,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,i),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(Mt.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Mt.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&fb&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){li[0]=li[1]=ui[0]=ui[1]=Number.MAX_VALUE,Bo[0]=Bo[1]=ci[0]=ci[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,i=0,o;for(o=0;or||ji(_)>a||d===n-1)&&(g=Math.sqrt(y*y+_*_),i=p,o=m);break}case Mt.C:{var b=t[d++],x=t[d++],p=t[d++],m=t[d++],S=t[d++],T=t[d++];g=Yre(i,o,b,x,p,m,S,T,10),i=S,o=T;break}case Mt.Q:{var b=t[d++],x=t[d++],p=t[d++],m=t[d++];g=jre(i,o,b,x,p,m,10),i=p,o=m;break}case Mt.A:var C=t[d++],w=t[d++],A=t[d++],D=t[d++],P=t[d++],k=t[d++],L=k+P;d+=1,h&&(s=ol(P)*A+C,l=sl(P)*D+w),g=cb(A,D)*ub(Zo,Math.abs(k)),i=ol(L)*A+C,o=sl(L)*D+w;break;case Mt.R:{s=i=t[d++],l=o=t[d++];var V=t[d++],N=t[d++];g=V*2+N*2;break}case Mt.Z:{var y=s-i,_=l-o;g=Math.sqrt(y*y+_*_),i=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,v=n<1,h,g,p=0,m=0,y,_=0,b,x;if(!(v&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,g=this._pathLen,y=n*g,!y)))e:for(var S=0;S0&&(t.lineTo(b,x),_=0),T){case Mt.M:s=u=r[S++],l=c=r[S++],t.moveTo(u,c);break;case Mt.L:{f=r[S++],d=r[S++];var w=ji(f-u),A=ji(d-c);if(w>a||A>i){if(v){var D=h[m++];if(p+D>y){var P=(y-p)/D;t.lineTo(u*(1-P)+f*P,c*(1-P)+d*P);break e}p+=D}t.lineTo(f,d),u=f,c=d,_=0}else{var k=w*w+A*A;k>_&&(b=f,x=d,_=k)}break}case Mt.C:{var L=r[S++],V=r[S++],N=r[S++],$=r[S++],z=r[S++],H=r[S++];if(v){var D=h[m++];if(p+D>y){var P=(y-p)/D;Is(u,L,N,z,P,al),Is(c,V,$,H,P,il),t.bezierCurveTo(al[1],il[1],al[2],il[2],al[3],il[3]);break e}p+=D}t.bezierCurveTo(L,V,N,$,z,H),u=z,c=H;break}case Mt.Q:{var L=r[S++],V=r[S++],N=r[S++],$=r[S++];if(v){var D=h[m++];if(p+D>y){var P=(y-p)/D;Lv(u,L,N,P,al),Lv(c,V,$,P,il),t.quadraticCurveTo(al[1],il[1],al[2],il[2]);break e}p+=D}t.quadraticCurveTo(L,V,N,$),u=N,c=$;break}case Mt.A:var U=r[S++],Y=r[S++],J=r[S++],ue=r[S++],le=r[S++],be=r[S++],ae=r[S++],Z=!r[S++],te=J>ue?J:ue,se=ji(J-ue)>.001,G=le+be,B=!1;if(v){var D=h[m++];p+D>y&&(G=le+be*(y-p)/D,B=!0),p+=D}if(se&&t.ellipse?t.ellipse(U,Y,J,ue,ae,le,G,Z):t.arc(U,Y,te,le,G,Z),B)break e;C&&(s=ol(le)*J+U,l=sl(le)*ue+Y),u=ol(G)*J+U,c=sl(G)*ue+Y;break;case Mt.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var j=r[S++],M=r[S++];if(v){var D=h[m++];if(p+D>y){var O=y-p;t.moveTo(f,d),t.lineTo(f+ub(O,j),d),O-=j,O>0&&t.lineTo(f+j,d+ub(O,M)),O-=M,O>0&&t.lineTo(f+cb(j-O,0),d+M),O-=j,O>0&&t.lineTo(f,d+cb(M-O,0));break e}p+=D}t.rect(f,d,j,M);break;case Mt.Z:if(v){var D=h[m++];if(p+D>y){var P=(y-p)/D;t.lineTo(u*(1-P)+s*P,c*(1-P)+l*P);break e}p+=D}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Mt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function ns(e,t,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>r+s||oe+s&&i>n+s||it+f&&c>r+f&&c>i+f&&c>s+f||ce+f&&u>n+f&&u>a+f&&u>o+f||ut+u&&l>r+u&&l>i+u||le+u&&s>n+u&&s>a+u||sn||c+ua&&(a+=Jf);var d=Math.atan2(l,s);return d<0&&(d+=Jf),d>=r&&d<=a||d+Jf>=r&&d+Jf<=a}function Qi(e,t,n,r,a,i){if(i>t&&i>r||ia?s:0}var zo=Vi.CMD,ll=Math.PI*2,Pie=1e-4;function kie(e,t){return Math.abs(e-t)t&&u>r&&u>i&&u>s||u1&&Mie(),v=Dn(t,r,i,s,ga[0]),d>1&&(h=Dn(t,r,i,s,ga[1]))),d===2?pt&&s>r&&s>i||s=0&&u<=1){for(var c=0,f=zn(t,r,i,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);br[0]=-l,br[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=ll-1e-4){r=0,a=ll;var c=i?1:-1;return o>=br[0]+e&&o<=br[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=ll,a+=ll);for(var d=0,v=0;v<2;v++){var h=br[v];if(h+e>o){var g=Math.atan2(s,h),c=i?1:-1;g<0&&(g=ll+g),(g>=r&&g<=a||g+ll>=r&&g+ll<=a)&&(g>Math.PI/2&&g1&&(n||(s+=Qi(l,u,c,f,r,a))),p&&(l=i[h],u=i[h+1],c=l,f=u),g){case zo.M:c=i[h++],f=i[h++],l=c,u=f;break;case zo.L:if(n){if(ns(l,u,i[h],i[h+1],t,r,a))return!0}else s+=Qi(l,u,i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case zo.C:if(n){if(Iie(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],t,r,a))return!0}else s+=Lie(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case zo.Q:if(n){if(yH(l,u,i[h++],i[h++],i[h],i[h+1],t,r,a))return!0}else s+=Eie(l,u,i[h++],i[h++],i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case zo.A:var m=i[h++],y=i[h++],_=i[h++],b=i[h++],x=i[h++],S=i[h++];h+=1;var T=!!(1-i[h++]);d=Math.cos(x)*_+m,v=Math.sin(x)*b+y,p?(c=d,f=v):s+=Qi(l,u,d,v,r,a);var C=(r-m)*b/_+m;if(n){if(Die(m,y,b,x,x+S,T,t,C,a))return!0}else s+=Rie(m,y,b,x,x+S,T,C,a);l=Math.cos(x+S)*_+m,u=Math.sin(x+S)*b+y;break;case zo.R:c=l=i[h++],f=u=i[h++];var w=i[h++],A=i[h++];if(d=c+w,v=f+A,n){if(ns(c,f,d,f,t,r,a)||ns(d,f,d,v,t,r,a)||ns(d,v,c,v,t,r,a)||ns(c,v,c,f,t,r,a))return!0}else s+=Qi(d,f,d,v,r,a),s+=Qi(c,v,c,f,r,a);break;case zo.Z:if(n){if(ns(l,u,c,f,t,r,a))return!0}else s+=Qi(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!kie(u,f)&&(s+=Qi(l,u,c,f,r,a)||0),s!==0}function Vie(e,t,n){return _H(e,0,!1,t,n)}function Oie(e,t,n,r){return _H(e,t,!0,n,r)}var Rm=Re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zl),Nie={style:Re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},D0.style)},vb=Ei.concat(["invisible","culling","z","z2","zlevel","parent"]),at=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?$x:r>.2?Sae:Wx}else if(n)return Wx}return $x},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Ae(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=km(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&yc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Oie(s,l/u,n,r)))return!0}if(this.hasFill())return Vie(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=yc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:ce(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&yc)},t.prototype.createStyle=function(n){return S0(Rm,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=ce({},this.shape))},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=ce({},a.shape),ce(u,r.shape)):(u=ce({},i?this.shape:a.shape),ce(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=ce({},this.shape);for(var c={},f=st(u),d=0;d0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return S0(Bie,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=Ih(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(ka);nf.prototype.type="tspan";var zie=Re({x:0,y:0},Zl),Fie={style:Re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},D0.style)};function Hie(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Yn=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return S0(zie,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=Hie(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Fie},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Ke(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ka);Yn.prototype.type="image";function Gie(e,t){var n=t.x,r=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(n+s,r),e.lineTo(n+a-l,r),l!==0&&e.arc(n+a-l,r+l,l,-Math.PI/2,0),e.lineTo(n+a,r+i-u),u!==0&&e.arc(n+a-u,r+i-u,u,0,Math.PI/2),e.lineTo(n+c,r+i),c!==0&&e.arc(n+c,r+i-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Ic=Math.round;function bH(e,t,n){if(t){var r=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=r,e.x2=a,e.y1=i,e.y2=o;var s=n&&n.lineWidth;return s&&(Ic(r*2)===Ic(a*2)&&(e.x1=e.x2=El(r,s,!0)),Ic(i*2)===Ic(o*2)&&(e.y1=e.y2=El(i,s,!0))),e}}function SH(e,t,n){if(t){var r=t.x,a=t.y,i=t.width,o=t.height;e.x=r,e.y=a,e.width=i,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=El(r,s,!0),e.y=El(a,s,!0),e.width=Math.max(El(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(El(a+o,s,!1)-e.y,o===0?0:1)),e}}function El(e,t,n){if(!t)return e;var r=Ic(e*2);return(r+Ic(t))%2===0?r/2:(r+(n?1:-1))/2}var $ie=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Wie={},ut=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new $ie},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=SH(Wie,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?Gie(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(at);ut.prototype.type="rect";var PM={fill:"#000"},kM=2,Uie={style:Re({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},D0.style)},ft=function(e){ee(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=PM,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,P=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),k=o.calculatedLineHeight,L=0;L=0&&(L=S[k],L.align==="right");)this._placeToken(L,n,C,m,P,"right",_),w-=L.width,P-=L.width,k--;for(D+=(i-(D-p)-(y-P)-w)/2;A<=k;)L=S[A],this._placeToken(L,n,C,m,D+L.width/2,"center",_),D+=L.width,A++;m+=C}},t.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&hb(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var v=!!u.backgroundColor,h=n.textPadding;h&&(o=OM(o,s,h),f-=n.height/2-h[0]-n.innerHeight/2);var g=this._getOrCreateChild(nf),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,b=VM("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,m.fill)),x=RM("stroke"in u?u.stroke:"stroke"in r?r.stroke:!v&&!l&&(!m.autoStroke||y)?(_=kM,m.stroke):null),S=u.textShadowBlur>0||r.textShadowBlur>0;p.text=n.text,p.x=o,p.y=f,S&&(p.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,p.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=n.font||Ts,p.opacity=Ii(u.opacity,r.opacity,1),LM(p,u),x&&(p.lineWidth=Ii(u.lineWidth,r.lineWidth,_),p.lineDash=We(u.lineDash,r.lineDash),p.lineDashOffset=r.lineDashOffset||0,p.stroke=x),b&&(p.fill=b);var T=n.contentWidth,C=n.contentHeight;g.setBoundingRect(new Ke(Ad(p.x,T,p.textAlign),_c(p.y,C,p.textBaseline),T,C))},t.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,v=n.borderRadius,h=this,g,p;if(d||n.lineHeight||u&&c){g=this._getOrCreateChild(ut),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(d){var y=g.style;y.fill=l||null,y.fillOpacity=We(n.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Yn),p.onload=function(){h.dirtyStyle()};var _=p.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var y=g.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=We(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=n.shadowBlur||0,b.shadowColor=n.shadowColor||"transparent",b.shadowOffsetX=n.shadowOffsetX||0,b.shadowOffsetY=n.shadowOffsetY||0,b.opacity=Ii(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return wH(n)&&(r=[n.fontStyle,n.fontWeight,xH(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Ya(r)||n.textFont||n.font},t}(ka),Yie={left:!0,right:1,center:1},Xie={top:1,bottom:1,middle:1},MM=["fontStyle","fontWeight","fontSize","fontFamily"];function xH(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?GT+"px":e+"px"}function LM(e,t){for(var n=0;n=0,i=!1;if(e instanceof at){var o=CH(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(qu(s)||qu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=ce({},r),u=ce({},u),u.fill=s):!qu(u.fill)&&qu(s)?(i=!0,r=ce({},r),u=ce({},u),u.fill=Vx(s)):!qu(u.stroke)&&qu(l)&&(i||(r=ce({},r),u=ce({},u)),u.stroke=Vx(l)),r.style=u}}if(r&&r.z2==null){i||(r=ce({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??If)}return r}function eoe(e,t,n){if(n&&n.z2==null){n=ce({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Zie)}return n}function toe(e,t,n){var r=Qe(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:Jie(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=ce({},n),o=ce({opacity:r?a:i.opacity*.1},o),n.style=o),n}function gb(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Qie(this,e,t,n);if(e==="blur")return toe(this,e,n);if(e==="select")return eoe(this,e,n)}return n}function pu(e){e.stateProxy=gb;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=gb),n&&(n.stateProxy=gb)}function HM(e,t){!MH(e,t)&&!e.__highByOuter&&Lo(e,TH)}function GM(e,t){!MH(e,t)&&!e.__highByOuter&&Lo(e,AH)}function So(e,t){e.__highByOuter|=1<<(t||0),Lo(e,TH)}function xo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Lo(e,AH)}function DH(e){Lo(e,uA)}function cA(e){Lo(e,IH)}function PH(e){Lo(e,Kie)}function kH(e){Lo(e,qie)}function MH(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function LH(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=sA(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){IH(u)}),s&&n.push(i)),o.isBlured=!1}),R(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function qx(e,t,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function ql(e,t,n){Rl(e,!0),Lo(e,pu),Qx(e,t,n)}function soe(e){Rl(e,!1)}function qt(e,t,n,r){r?soe(e):ql(e,t,n)}function Qx(e,t,n){var r=He(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var WM=["emphasis","blur","select"],loe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jn(e,t,n,r){n=n||"itemStyle";for(var a=0;a1&&(o*=pb(h),s*=pb(h));var g=(a===i?-1:1)*pb((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,p=g*o*v/s,m=g*-s*d/o,y=(e+n)/2+Dg(f)*p-Ig(f)*m,_=(t+r)/2+Ig(f)*p+Dg(f)*m,b=jM([1,0],[(d-p)/o,(v-m)/s]),x=[(d-p)/o,(v-m)/s],S=[(-1*d-p)/o,(-1*v-m)/s],T=jM(x,S);if(tw(x,S)<=-1&&(T=Qf),tw(x,S)>=1&&(T=0),T<0){var C=Math.round(T/Qf*1e6)/1e6;T=Qf*2+C%2*Qf}c.addData(u,y,_,o,s,b,T,f,i)}var hoe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,goe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function poe(e){var t=new Vi;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=Vi.CMD,l=e.match(hoe);if(!l)return t;for(var u=0;uL*L+V*V&&(C=A,w=D),{cx:C,cy:w,x0:-c,y0:-f,x1:C*(a/x-1),y1:w*(a/x-1)}}function woe(e){var t;if(he(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Coe(e,t){var n,r=Id(t.r,0),a=Id(t.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,v=KM(u-l),h=v>mb&&v%mb;if(h>Fa&&(v=h),!(r>Fa))e.moveTo(c,f);else if(v>mb-Fa)e.moveTo(c+r*Qu(l),f+r*ul(l)),e.arc(c,f,r,l,u,!d),a>Fa&&(e.moveTo(c+a*Qu(u),f+a*ul(u)),e.arc(c,f,a,u,l,d));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0,T=void 0,C=void 0,w=void 0,A=void 0,D=void 0,P=void 0,k=void 0,L=void 0,V=r*Qu(l),N=r*ul(l),$=a*Qu(u),z=a*ul(u),H=v>Fa;if(H){var U=t.cornerRadius;U&&(n=woe(U),g=n[0],p=n[1],m=n[2],y=n[3]);var Y=KM(r-a)/2;if(_=fi(Y,m),b=fi(Y,y),x=fi(Y,g),S=fi(Y,p),w=T=Id(_,b),A=C=Id(x,S),(T>Fa||C>Fa)&&(D=r*Qu(u),P=r*ul(u),k=a*Qu(l),L=a*ul(l),vFa){var se=fi(m,w),G=fi(y,w),B=Pg(k,L,V,N,r,se,d),j=Pg(D,P,$,z,r,G,d);e.moveTo(c+B.cx+B.x0,f+B.cy+B.y0),w0&&e.arc(c+B.cx,f+B.cy,se,tr(B.y0,B.x0),tr(B.y1,B.x1),!d),e.arc(c,f,r,tr(B.cy+B.y1,B.cx+B.x1),tr(j.cy+j.y1,j.cx+j.x1),!d),G>0&&e.arc(c+j.cx,f+j.cy,G,tr(j.y1,j.x1),tr(j.y0,j.x0),!d))}else e.moveTo(c+V,f+N),e.arc(c,f,r,l,u,!d);if(!(a>Fa)||!H)e.lineTo(c+$,f+z);else if(A>Fa){var se=fi(g,A),G=fi(p,A),B=Pg($,z,D,P,a,-G,d),j=Pg(V,N,k,L,a,-se,d);e.lineTo(c+B.cx+B.x0,f+B.cy+B.y0),A0&&e.arc(c+B.cx,f+B.cy,G,tr(B.y0,B.x0),tr(B.y1,B.x1),!d),e.arc(c,f,a,tr(B.cy+B.y1,B.cx+B.x1),tr(j.cy+j.y1,j.cx+j.x1),d),se>0&&e.arc(c+j.cx,f+j.cy,se,tr(j.y1,j.x1),tr(j.y0,j.x0),!d))}else e.lineTo(c+$,f+z),e.arc(c,f,a,u,l,d)}e.closePath()}}}var Toe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Pr=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Toe},t.prototype.buildPath=function(n,r){Coe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(at);Pr.prototype.type="sector";var Aoe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),kh=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Aoe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},t}(at);kh.prototype.type="ring";function Ioe(e,t,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,v=e.length;d=2){if(r){var i=Ioe(a,r,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;sfl[1]){if(s=!1,i)return s;var c=Math.abs(fl[0]-cl[1]),f=Math.abs(cl[0]-fl[1]);Math.min(c,f)>a.len()&&(c0){var f=c.duration,d=c.delay,v=c.easing,h={duration:f,delay:d||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),i&&i()}function vt(e,t,n,r,a,i){hA("update",e,t,n,r,a,i)}function Ht(e,t,n,r,a,i){hA("enter",e,t,n,r,a,i)}function Bc(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function QM(e){return!e.isGroup}function Hoe(e){return e.shape!=null}function Eh(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){QM(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Hoe(o)&&(s.shape=ce({},o.shape)),s}var i=r(e);t.traverse(function(o){if(QM(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),vt(o,l,n,He(o).dataIndex)}}})}function YH(e,t){return pe(e,function(n){var r=n[0];r=Nm(r,t.x),r=Bm(r,t.x+t.width);var a=n[1];return a=Nm(a,t.y),a=Bm(a,t.y+t.height),[r,a]})}function Goe(e,t){var n=Nm(e.x,t.x),r=Bm(e.x+e.width,t.x+t.width),a=Nm(e.y,t.y),i=Bm(e.y+e.height,t.y+t.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function Rh(e,t,n){var r=ce({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Re(a,n),new Yn(r)):R0(e.replace("path://",""),r,n,"center")}function Dd(e,t,n,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var p=yb(v,h,c,f)/d;return!(p<0||p>1)}function yb(e,t,n,r){return e*r-n*t}function $oe(e){return e<=1e-6&&e>=-1e-6}function Pf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=Ae(t)?{formatter:t}:t,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&R(st(l),function(c){Pe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=He(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:Re({content:r,encodeHTMLContent:!0,formatterParams:s},a)}}function eL(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Gs(e,t){if(e)if(he(e))for(var n=0;n=0&&s.push(l)}),s}}function $s(e,t){return Ze(Ze({},e,!0),t,!0)}const tse={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},nse={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Fm="ZH",mA="EN",zc=mA,Np={},yA={},QH=it.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zc).toUpperCase();return e.indexOf(Fm)>-1?Fm:zc}():zc;function eG(e,t){e=e.toUpperCase(),yA[e]=new _t(t),Np[e]=t}function rse(e){if(Ae(e)){var t=Np[e.toUpperCase()]||{};return e===Fm||e===mA?Ne(t):Ze(Ne(t),Ne(Np[zc]),!1)}else return Ze(Ne(e),Ne(Np[zc]),!1)}function aw(e){return yA[e]}function ase(){return yA[zc]}eG(mA,tse);eG(Fm,nse);var _A=1e3,bA=_A*60,ev=bA*60,Sa=ev*24,iL=Sa*365,Pd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Lg="{yyyy}-{MM}-{dd}",oL={year:"{yyyy}",month:"{yyyy}-{MM}",day:Lg,hour:Lg+" "+Pd.hour,minute:Lg+" "+Pd.minute,second:Lg+" "+Pd.second,millisecond:Pd.none},Sb=["year","month","day","hour","minute","second","millisecond"],tG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Fo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Fc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function ise(e){return e===Fc(e)}function ose(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function N0(e,t,n,r){var a=Ri(e),i=a[SA(n)](),o=a[Hc(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[B0(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[Fv(n)](),f=(c-1)%12+1,d=a[z0(n)](),v=a[F0(n)](),h=a[H0(n)](),g=c>=12?"pm":"am",p=g.toUpperCase(),m=r instanceof _t?r:aw(r||QH)||ase(),y=m.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),x=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Fo(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Fo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Fo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Fo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Fo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Fo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Fo(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Fo(h,3)).replace(/{S}/g,h+"")}function sse(e,t,n,r,a){var i=null;if(Ae(n))i=n;else if(Ee(n))i=n(e.value,t,{level:e.level});else{var o=ce({},Pd);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(he(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return N0(new Date(e.value),i,a,r)}function nG(e,t){var n=Ri(e),r=n[Hc(t)]()+1,a=n[B0(t)](),i=n[Fv(t)](),o=n[z0(t)](),s=n[F0(t)](),l=n[H0(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,v=d&&a===1,h=v&&r===1;return h?"year":v?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function sL(e,t,n){var r=dt(e)?Ri(e):e;switch(t=t||nG(e,n),t){case"year":return r[SA(n)]();case"half-year":return r[Hc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Hc(n)]()+1)/4);case"month":return r[Hc(n)]();case"day":return r[B0(n)]();case"half-day":return r[Fv(n)]()/24;case"hour":return r[Fv(n)]();case"minute":return r[z0(n)]();case"second":return r[F0(n)]();case"millisecond":return r[H0(n)]()}}function SA(e){return e?"getUTCFullYear":"getFullYear"}function Hc(e){return e?"getUTCMonth":"getMonth"}function B0(e){return e?"getUTCDate":"getDate"}function Fv(e){return e?"getUTCHours":"getHours"}function z0(e){return e?"getUTCMinutes":"getMinutes"}function F0(e){return e?"getUTCSeconds":"getSeconds"}function H0(e){return e?"getUTCMilliseconds":"getMilliseconds"}function lse(e){return e?"setUTCFullYear":"setFullYear"}function rG(e){return e?"setUTCMonth":"setMonth"}function aG(e){return e?"setUTCDate":"setDate"}function iG(e){return e?"setUTCHours":"setHours"}function oG(e){return e?"setUTCMinutes":"setMinutes"}function sG(e){return e?"setUTCSeconds":"setSeconds"}function lG(e){return e?"setUTCMilliseconds":"setMilliseconds"}function uG(e){if(!aH(e))return Ae(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cG(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lf=jT;function iw(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Ya(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ri(e):e;if(isNaN(+l)){if(s)return"-"}else return N0(l,r,n)}if(t==="ordinal")return xx(e)?a(e):dt(e)&&i(e)?e+"":"-";var u=bo(e);return i(u)?uG(u):xx(e)?a(e):typeof e=="boolean"?e+"":"-"}var lL=["a","b","c","d","e","f","g"],xb=function(e,t){return"{"+e+(t??"")+"}"};function fG(e,t,n){he(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function mu(e,t){return t=t||"transparent",Ae(e)?e:Oe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Hm(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Bp=R,dG=["left","right","top","bottom","width","height"],Vl=[["width","left","right"],["height","top","bottom"]];function xA(e,t,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),v,h;if(e==="horizontal"){var g=c.width+(d?-d.x+c.x:0);v=i+g,v>r||l.newline?(i=0,v=g,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var p=c.height+(d?-d.y+c.y:0);h=o+p,h>a||l.newline?(i+=s+n,o=0,h=p,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=v+n:o=h+n)})}var Ql=xA;Ue(xA,"vertical");Ue(xA,"horizontal");function fse(e,t,n){var r=t.width,a=t.height,i=we(e.left,r),o=we(e.top,a),s=we(e.right,r),l=we(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),n=Lf(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function xn(e,t,n){n=Lf(n||0);var r=t.width,a=t.height,i=we(e.left,r),o=we(e.top,a),s=we(e.right,r),l=we(e.bottom,a),u=we(e.width,r),c=we(e.height,a),f=n[2]+n[0],d=n[1]+n[3],v=e.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var h=new Ke(i+n[3],o+n[0],u,c);return h.margin=n,h}function G0(e,t,n,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ke(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=xn(Re({width:u.width,height:u.height},t),n,r),d=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=v):(i.x+=d,i.y+=v),i===e&&e.markRedraw(),!0}function dse(e,t){return e[Vl[t][0]]!=null||e[Vl[t][1]]!=null&&e[Vl[t][2]]!=null}function Hv(e){var t=e.layoutMode||e.constructor.layoutMode;return Oe(t)?t:t?{type:t}:null}function Ps(e,t,n){var r=n&&n.ignoreSize;!he(r)&&(r=[r,r]);var a=o(Vl[0],0),i=o(Vl[1],1);u(Vl[0],e,a),u(Vl[1],e,i);function o(c,f){var d={},v=0,h={},g=0,p=2;if(Bp(c,function(_){h[_]=e[_]}),Bp(c,function(_){s(t,_)&&(d[_]=h[_]=t[_]),l(d,_)&&v++,l(h,_)&&g++}),r[f])return l(t,c[1])?h[c[2]]=null:l(t,c[2])&&(h[c[1]]=null),h;if(g===p||!v)return h;if(v>=p)return d;for(var m=0;m=0;l--)s=Ze(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return Dh(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(_t);hH(ot,_t);A0(ot);Qoe(ot);ese(ot,hse);function hse(e){var t=[];return R(ot.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=pe(t,function(n){return Ci(n).main}),e!=="dataset"&&Qe(t,"dataset")<=0&&t.unshift("dataset"),t}var hG="";typeof navigator<"u"&&(hG=navigator.platform||"");var ec="rgba(0, 0, 0, 0.2)";const gse={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ec,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ec,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ec,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ec,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ec,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ec,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hG.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var gG=Le(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Va="original",fr="arrayRows",Oa="objectRows",Hi="keyedColumns",ms="typedArray",pG="unknown",Di="column",Rf="row",Xn={Must:1,Might:2,Not:3},mG=ct();function pse(e){mG(e).datasetMap=Le()}function yG(e,t,n){var r={},a=CA(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=mG(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),R(e,function(g,p){var m=Oe(g)?g:e[p]={name:g};m.type==="ordinal"&&c==null&&(c=p,f=h(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});R(e,function(g,p){var m=g.name,y=h(g);if(c==null){var _=d.valueWayDim;v(r[m],_,y),v(o,_,y),d.valueWayDim+=y}else if(c===p)v(r[m],0,y),v(i,0,y);else{var _=d.categoryWayDim;v(r[m],_,y),v(o,_,y),d.categoryWayDim+=y}});function v(g,p,m){for(var y=0;yt)return e[r];return e[n-1]}function SG(e,t,n,r,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?n:Sse(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function xse(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Eg,ed,cL,fL="\0_ec_inner",wse=1,AA=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new _t(i),this._locale=new _t(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=hL(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,hL(r))},t.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?cL(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&R(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Le(),u=r&&r.replaceMergeMainTypeMap;pse(this),R(n,function(f,d){f!=null&&(ot.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Ne(f):Ze(a[d],f,!0))}),u&&u.each(function(f,d){ot.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),c,this);function c(f){var d=_se(this,f,It(n[f])),v=i.get(f),h=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=uH(v,d,h);jae(g,f,ot),a[f]=null,i.set(f,null),o.set(f,0);var p=[],m=[],y=0,_;R(g,function(b,x){var S=b.existing,T=b.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=f==="series",w=ot.getClass(f,b.keyInfo.subType,!C);if(!w)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===w)S.name=b.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var A=ce({componentIndex:x},b.keyInfo);S=new w(T,this,this,A),ce(S,A),b.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),m.push(S),y++):(p.push(void 0),m.push(void 0))},this),a[f]=p,i.set(f,m),o.set(f,y),f==="series"&&Eg(this)}this._seriesIndices||Eg(this)},t.prototype.getOption=function(){var n=Ne(this.option);return R(n,function(r,a){if(ot.hasClass(a)){for(var i=It(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ov(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[fL],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=t:n==="max"?e<=t:e===t}function Lse(e,t){return e.join(",")===t.join(",")}var Ba=R,Gv=Oe,gL=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cb(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=gL.length;n=0;p--){var m=e[p];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,v)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=Nae(d,y),g=y;break}}}return r[0]=d,r[1]=g,r})})}var $0=function(){function e(t){this.data=t.data||(t.sourceFormat===Hi?{}:[]),this.sourceFormat=t.sourceFormat||pG,this.seriesLayoutBy=t.seriesLayoutBy||Di,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rg&&(g=_)}v[0]=h,v[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};xL=(t={},t[fr+"_"+Di]={pure:!0,appendData:i},t[fr+"_"+Rf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Oa]={pure:!0,appendData:i},t[Hi]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Va]={appendData:i},t[ms]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,n){return af(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function AL(e){var t,n;return Oe(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function tv(e){return new Zse(e)}var Zse=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,h=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||v1&&r>0?s:o}};return i;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},qse=function(){function e(t,n){if(!dt(n)){var r="";pt(r)}this._opFn=LG[t],this._rvalFloat=bo(n)}return e.prototype.evaluate=function(t){return dt(t)?this._opFn(t,this._rvalFloat):this._opFn(bo(t),this._rvalFloat)},e}(),EG=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=dt(t)?t:bo(t),a=dt(n)?n:bo(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ae(t),l=Ae(n);s&&(r=l?t:0),l&&(a=s?n:0)}return ra?-this._resultLT:0},e}(),Jse=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=bo(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=bo(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function Qse(e,t){return e==="eq"||e==="ne"?new Jse(e==="eq",t):Pe(LG,e)?new qse(e,t):null}var ele=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return ys(t,n)},e}();function tle(e,t){var n=new ele,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Di&&pt(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";Pe(l,m)&&pt(_),l[m]=y}});else for(var c=0;c65535?ule:cle}function tc(){return[1/0,-1/0]}function fle(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PL(e,t,n,r,a){var i=OG[n||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;up[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=pe(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,n,r){var a=this._chunks,i=a[t],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=h,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){t=new r(a);for(var i=0;i=f&&y<=d||isNaN(y))&&(l[u++]=g),g++}h=!0}else if(i===2){for(var p=v[a[0]],_=v[a[1]],b=t[a[1]][0],x=t[a[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(S>=b&&S<=x||isNaN(S))&&(l[u++]=g),g++}h=!0}}if(!h)if(i===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=T)}else for(var m=0;mt[A][1])&&(C=!1)}C&&(l[u++]=n.getRawIndex(m))}return um[1]&&(m[1]=p)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),a=r._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,v=new(nd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var h=1;hc&&(c=f,d=b)}D>0&&Dc-h&&(l=c-h,s.length=l);for(var g=0;gf[1]&&(f[1]=m),d[v++]=y}return i._count=v,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,a,i){return ys(n[i],this._dimensions[i])}Ib={arrayRows:t,objectRows:function(n,r,a,i){return ys(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return ys(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}(),NG=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(Rg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=$r(s)?ms:Va,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},v=We(f.seriesLayoutBy,d.seriesLayoutBy)||null,h=We(f.sourceHeader,d.sourceHeader),g=We(f.dimensions,d.dimensions),p=v!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||g;a=p?[lw(s,{seriesLayoutBy:v,sourceHeader:h,dimensions:g},l)]:[]}else{var m=t;if(r){var y=this._applyTransform(n);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[lw(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&ML(i)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&ML(f),s.push(c),l.push(u._getVersionSign())}),r?o=sle(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[Gse(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;nn:a+c+v>n){c?(s||l)&&(h?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=v,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=v)):h?(i.push(l),o.push(u),l=d,u=v):(i.push(d),o.push(v));continue}c+=v,h?(l+=d,u+=v):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var jx="__zr_style_"+Math.round(Math.random()*10),Zl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},D0={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zl[jx]=!0;var CM=["z","z2","invisible"],xie=["invisible"],ka=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=st(n),a=0;a1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Cg[0]=lb(a)*n+e,Cg[1]=sb(a)*r+t,Tg[0]=lb(i)*n+e,Tg[1]=sb(i)*r+t,u(s,Cg,Tg),c(l,Cg,Tg),a=a%rl,a<0&&(a=a+rl),i=i%rl,i<0&&(i=i+rl),a>i&&!o?i+=rl:aa&&(Ag[0]=lb(v)*n+e,Ag[1]=sb(v)*r+t,u(s,Ag,s),c(l,Ag,l))}var Mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},al=[],il=[],li=[],Bo=[],ui=[],ci=[],ub=Math.min,cb=Math.max,ol=Math.cos,sl=Math.sin,ji=Math.abs,Zx=Math.PI,Zo=Zx*2,fb=typeof Float32Array<"u",qf=[];function db(e){var t=Math.round(e/Zx*1e8)/1e8;return t%2*Zx}function oA(e,t){var n=db(e[0]);n<0&&(n+=Zo);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=Zo?a=n+Zo:t&&n-a>=Zo?a=n-Zo:!t&&n>a?a=n+(Zo-db(n-a)):t&&n0&&(this._ux=ji(r/Lm/t)||0,this._uy=ji(r/Lm/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(Mt.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=ji(t-this._xi),a=ji(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(Mt.L,t,n),this._ctx&&i&&this._ctx.lineTo(t,n),i)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){return this._drawPendingPt(),this.addData(Mt.C,t,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(Mt.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,i,o){this._drawPendingPt(),qf[0]=a,qf[1]=i,oA(qf,o),a=qf[0],i=qf[1];var s=i-a;return this.addData(Mt.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=ol(i)*r+t,this._yi=sl(i)*r+n,this},e.prototype.arcTo=function(t,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,i),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(Mt.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Mt.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&fb&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){li[0]=li[1]=ui[0]=ui[1]=Number.MAX_VALUE,Bo[0]=Bo[1]=ci[0]=ci[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,i=0,o;for(o=0;or||ji(_)>a||d===n-1)&&(g=Math.sqrt(y*y+_*_),i=p,o=m);break}case Mt.C:{var b=t[d++],x=t[d++],p=t[d++],m=t[d++],S=t[d++],T=t[d++];g=Yre(i,o,b,x,p,m,S,T,10),i=S,o=T;break}case Mt.Q:{var b=t[d++],x=t[d++],p=t[d++],m=t[d++];g=jre(i,o,b,x,p,m,10),i=p,o=m;break}case Mt.A:var C=t[d++],w=t[d++],A=t[d++],D=t[d++],P=t[d++],k=t[d++],L=k+P;d+=1,h&&(s=ol(P)*A+C,l=sl(P)*D+w),g=cb(A,D)*ub(Zo,Math.abs(k)),i=ol(L)*A+C,o=sl(L)*D+w;break;case Mt.R:{s=i=t[d++],l=o=t[d++];var V=t[d++],N=t[d++];g=V*2+N*2;break}case Mt.Z:{var y=s-i,_=l-o;g=Math.sqrt(y*y+_*_),i=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,v=n<1,h,g,p=0,m=0,y,_=0,b,x;if(!(v&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,g=this._pathLen,y=n*g,!y)))e:for(var S=0;S0&&(t.lineTo(b,x),_=0),T){case Mt.M:s=u=r[S++],l=c=r[S++],t.moveTo(u,c);break;case Mt.L:{f=r[S++],d=r[S++];var w=ji(f-u),A=ji(d-c);if(w>a||A>i){if(v){var D=h[m++];if(p+D>y){var P=(y-p)/D;t.lineTo(u*(1-P)+f*P,c*(1-P)+d*P);break e}p+=D}t.lineTo(f,d),u=f,c=d,_=0}else{var k=w*w+A*A;k>_&&(b=f,x=d,_=k)}break}case Mt.C:{var L=r[S++],V=r[S++],N=r[S++],$=r[S++],z=r[S++],H=r[S++];if(v){var D=h[m++];if(p+D>y){var P=(y-p)/D;Is(u,L,N,z,P,al),Is(c,V,$,H,P,il),t.bezierCurveTo(al[1],il[1],al[2],il[2],al[3],il[3]);break e}p+=D}t.bezierCurveTo(L,V,N,$,z,H),u=z,c=H;break}case Mt.Q:{var L=r[S++],V=r[S++],N=r[S++],$=r[S++];if(v){var D=h[m++];if(p+D>y){var P=(y-p)/D;Lv(u,L,N,P,al),Lv(c,V,$,P,il),t.quadraticCurveTo(al[1],il[1],al[2],il[2]);break e}p+=D}t.quadraticCurveTo(L,V,N,$),u=N,c=$;break}case Mt.A:var U=r[S++],Y=r[S++],J=r[S++],ue=r[S++],le=r[S++],be=r[S++],ae=r[S++],Z=!r[S++],te=J>ue?J:ue,se=ji(J-ue)>.001,G=le+be,B=!1;if(v){var D=h[m++];p+D>y&&(G=le+be*(y-p)/D,B=!0),p+=D}if(se&&t.ellipse?t.ellipse(U,Y,J,ue,ae,le,G,Z):t.arc(U,Y,te,le,G,Z),B)break e;C&&(s=ol(le)*J+U,l=sl(le)*ue+Y),u=ol(G)*J+U,c=sl(G)*ue+Y;break;case Mt.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var j=r[S++],M=r[S++];if(v){var D=h[m++];if(p+D>y){var O=y-p;t.moveTo(f,d),t.lineTo(f+ub(O,j),d),O-=j,O>0&&t.lineTo(f+j,d+ub(O,M)),O-=M,O>0&&t.lineTo(f+cb(j-O,0),d+M),O-=j,O>0&&t.lineTo(f,d+cb(M-O,0));break e}p+=D}t.rect(f,d,j,M);break;case Mt.Z:if(v){var D=h[m++];if(p+D>y){var P=(y-p)/D;t.lineTo(u*(1-P)+s*P,c*(1-P)+l*P);break e}p+=D}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Mt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function ns(e,t,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>r+s||oe+s&&i>n+s||it+f&&c>r+f&&c>i+f&&c>s+f||ce+f&&u>n+f&&u>a+f&&u>o+f||ut+u&&l>r+u&&l>i+u||le+u&&s>n+u&&s>a+u||sn||c+ua&&(a+=Jf);var d=Math.atan2(l,s);return d<0&&(d+=Jf),d>=r&&d<=a||d+Jf>=r&&d+Jf<=a}function Qi(e,t,n,r,a,i){if(i>t&&i>r||ia?s:0}var zo=Vi.CMD,ll=Math.PI*2,Pie=1e-4;function kie(e,t){return Math.abs(e-t)t&&u>r&&u>i&&u>s||u1&&Mie(),v=Dn(t,r,i,s,ga[0]),d>1&&(h=Dn(t,r,i,s,ga[1]))),d===2?pt&&s>r&&s>i||s=0&&u<=1){for(var c=0,f=zn(t,r,i,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);br[0]=-l,br[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=ll-1e-4){r=0,a=ll;var c=i?1:-1;return o>=br[0]+e&&o<=br[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=ll,a+=ll);for(var d=0,v=0;v<2;v++){var h=br[v];if(h+e>o){var g=Math.atan2(s,h),c=i?1:-1;g<0&&(g=ll+g),(g>=r&&g<=a||g+ll>=r&&g+ll<=a)&&(g>Math.PI/2&&g1&&(n||(s+=Qi(l,u,c,f,r,a))),p&&(l=i[h],u=i[h+1],c=l,f=u),g){case zo.M:c=i[h++],f=i[h++],l=c,u=f;break;case zo.L:if(n){if(ns(l,u,i[h],i[h+1],t,r,a))return!0}else s+=Qi(l,u,i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case zo.C:if(n){if(Iie(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],t,r,a))return!0}else s+=Lie(l,u,i[h++],i[h++],i[h++],i[h++],i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case zo.Q:if(n){if(yH(l,u,i[h++],i[h++],i[h],i[h+1],t,r,a))return!0}else s+=Eie(l,u,i[h++],i[h++],i[h],i[h+1],r,a)||0;l=i[h++],u=i[h++];break;case zo.A:var m=i[h++],y=i[h++],_=i[h++],b=i[h++],x=i[h++],S=i[h++];h+=1;var T=!!(1-i[h++]);d=Math.cos(x)*_+m,v=Math.sin(x)*b+y,p?(c=d,f=v):s+=Qi(l,u,d,v,r,a);var C=(r-m)*b/_+m;if(n){if(Die(m,y,b,x,x+S,T,t,C,a))return!0}else s+=Rie(m,y,b,x,x+S,T,C,a);l=Math.cos(x+S)*_+m,u=Math.sin(x+S)*b+y;break;case zo.R:c=l=i[h++],f=u=i[h++];var w=i[h++],A=i[h++];if(d=c+w,v=f+A,n){if(ns(c,f,d,f,t,r,a)||ns(d,f,d,v,t,r,a)||ns(d,v,c,v,t,r,a)||ns(c,v,c,f,t,r,a))return!0}else s+=Qi(d,f,d,v,r,a),s+=Qi(c,v,c,f,r,a);break;case zo.Z:if(n){if(ns(l,u,c,f,t,r,a))return!0}else s+=Qi(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!kie(u,f)&&(s+=Qi(l,u,c,f,r,a)||0),s!==0}function Vie(e,t,n){return _H(e,0,!1,t,n)}function Oie(e,t,n,r){return _H(e,t,!0,n,r)}var Rm=Re({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zl),Nie={style:Re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},D0.style)},vb=Ei.concat(["invisible","culling","z","z2","zlevel","parent"]),at=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?$x:r>.2?Sae:Wx}else if(n)return Wx}return $x},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Ae(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=km(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&yc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Oie(s,l/u,n,r)))return!0}if(this.hasFill())return Vie(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=yc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:ce(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&yc)},t.prototype.createStyle=function(n){return S0(Rm,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=ce({},this.shape))},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=ce({},a.shape),ce(u,r.shape)):(u=ce({},i?this.shape:a.shape),ce(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=ce({},this.shape);for(var c={},f=st(u),d=0;d0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return S0(Bie,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=Ih(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(ka);nf.prototype.type="tspan";var zie=Re({x:0,y:0},Zl),Fie={style:Re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},D0.style)};function Hie(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Yn=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return S0(zie,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=Hie(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Fie},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Ke(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ka);Yn.prototype.type="image";function Gie(e,t){var n=t.x,r=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(n+s,r),e.lineTo(n+a-l,r),l!==0&&e.arc(n+a-l,r+l,l,-Math.PI/2,0),e.lineTo(n+a,r+i-u),u!==0&&e.arc(n+a-u,r+i-u,u,0,Math.PI/2),e.lineTo(n+c,r+i),c!==0&&e.arc(n+c,r+i-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Ic=Math.round;function bH(e,t,n){if(t){var r=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=r,e.x2=a,e.y1=i,e.y2=o;var s=n&&n.lineWidth;return s&&(Ic(r*2)===Ic(a*2)&&(e.x1=e.x2=El(r,s,!0)),Ic(i*2)===Ic(o*2)&&(e.y1=e.y2=El(i,s,!0))),e}}function SH(e,t,n){if(t){var r=t.x,a=t.y,i=t.width,o=t.height;e.x=r,e.y=a,e.width=i,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=El(r,s,!0),e.y=El(a,s,!0),e.width=Math.max(El(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(El(a+o,s,!1)-e.y,o===0?0:1)),e}}function El(e,t,n){if(!t)return e;var r=Ic(e*2);return(r+Ic(t))%2===0?r/2:(r+(n?1:-1))/2}var $ie=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Wie={},ut=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new $ie},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=SH(Wie,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?Gie(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(at);ut.prototype.type="rect";var PM={fill:"#000"},kM=2,Uie={style:Re({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},D0.style)},ft=function(e){ee(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=PM,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,P=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),k=o.calculatedLineHeight,L=0;L=0&&(L=S[k],L.align==="right");)this._placeToken(L,n,C,m,P,"right",_),w-=L.width,P-=L.width,k--;for(D+=(i-(D-p)-(y-P)-w)/2;A<=k;)L=S[A],this._placeToken(L,n,C,m,D+L.width/2,"center",_),D+=L.width,A++;m+=C}},t.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&hb(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var v=!!u.backgroundColor,h=n.textPadding;h&&(o=OM(o,s,h),f-=n.height/2-h[0]-n.innerHeight/2);var g=this._getOrCreateChild(nf),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,b=VM("fill"in u?u.fill:"fill"in r?r.fill:(y=!0,m.fill)),x=RM("stroke"in u?u.stroke:"stroke"in r?r.stroke:!v&&!l&&(!m.autoStroke||y)?(_=kM,m.stroke):null),S=u.textShadowBlur>0||r.textShadowBlur>0;p.text=n.text,p.x=o,p.y=f,S&&(p.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,p.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=n.font||Ts,p.opacity=Ii(u.opacity,r.opacity,1),LM(p,u),x&&(p.lineWidth=Ii(u.lineWidth,r.lineWidth,_),p.lineDash=We(u.lineDash,r.lineDash),p.lineDashOffset=r.lineDashOffset||0,p.stroke=x),b&&(p.fill=b);var T=n.contentWidth,C=n.contentHeight;g.setBoundingRect(new Ke(Ad(p.x,T,p.textAlign),_c(p.y,C,p.textBaseline),T,C))},t.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,v=n.borderRadius,h=this,g,p;if(d||n.lineHeight||u&&c){g=this._getOrCreateChild(ut),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(d){var y=g.style;y.fill=l||null,y.fillOpacity=We(n.fillOpacity,1)}else if(f){p=this._getOrCreateChild(Yn),p.onload=function(){h.dirtyStyle()};var _=p.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var y=g.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=We(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(g||p).style;b.shadowBlur=n.shadowBlur||0,b.shadowColor=n.shadowColor||"transparent",b.shadowOffsetX=n.shadowOffsetX||0,b.shadowOffsetY=n.shadowOffsetY||0,b.opacity=Ii(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return wH(n)&&(r=[n.fontStyle,n.fontWeight,xH(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Ya(r)||n.textFont||n.font},t}(ka),Yie={left:!0,right:1,center:1},Xie={top:1,bottom:1,middle:1},MM=["fontStyle","fontWeight","fontSize","fontFamily"];function xH(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?GT+"px":e+"px"}function LM(e,t){for(var n=0;n=0,i=!1;if(e instanceof at){var o=CH(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(qu(s)||qu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=ce({},r),u=ce({},u),u.fill=s):!qu(u.fill)&&qu(s)?(i=!0,r=ce({},r),u=ce({},u),u.fill=Vx(s)):!qu(u.stroke)&&qu(l)&&(i||(r=ce({},r),u=ce({},u)),u.stroke=Vx(l)),r.style=u}}if(r&&r.z2==null){i||(r=ce({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??If)}return r}function eoe(e,t,n){if(n&&n.z2==null){n=ce({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Zie)}return n}function toe(e,t,n){var r=Qe(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:Jie(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=ce({},n),o=ce({opacity:r?a:i.opacity*.1},o),n.style=o),n}function gb(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Qie(this,e,t,n);if(e==="blur")return toe(this,e,n);if(e==="select")return eoe(this,e,n)}return n}function pu(e){e.stateProxy=gb;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=gb),n&&(n.stateProxy=gb)}function HM(e,t){!MH(e,t)&&!e.__highByOuter&&Lo(e,TH)}function GM(e,t){!MH(e,t)&&!e.__highByOuter&&Lo(e,AH)}function So(e,t){e.__highByOuter|=1<<(t||0),Lo(e,TH)}function xo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Lo(e,AH)}function DH(e){Lo(e,uA)}function cA(e){Lo(e,IH)}function PH(e){Lo(e,Kie)}function kH(e){Lo(e,qie)}function MH(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function LH(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=sA(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){IH(u)}),s&&n.push(i)),o.isBlured=!1}),R(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function qx(e,t,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function ql(e,t,n){Rl(e,!0),Lo(e,pu),Qx(e,t,n)}function soe(e){Rl(e,!1)}function qt(e,t,n,r){r?soe(e):ql(e,t,n)}function Qx(e,t,n){var r=He(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var WM=["emphasis","blur","select"],loe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Jn(e,t,n,r){n=n||"itemStyle";for(var a=0;a1&&(o*=pb(h),s*=pb(h));var g=(a===i?-1:1)*pb((o*o*(s*s)-o*o*(v*v)-s*s*(d*d))/(o*o*(v*v)+s*s*(d*d)))||0,p=g*o*v/s,m=g*-s*d/o,y=(e+n)/2+Dg(f)*p-Ig(f)*m,_=(t+r)/2+Ig(f)*p+Dg(f)*m,b=jM([1,0],[(d-p)/o,(v-m)/s]),x=[(d-p)/o,(v-m)/s],S=[(-1*d-p)/o,(-1*v-m)/s],T=jM(x,S);if(tw(x,S)<=-1&&(T=Qf),tw(x,S)>=1&&(T=0),T<0){var C=Math.round(T/Qf*1e6)/1e6;T=Qf*2+C%2*Qf}c.addData(u,y,_,o,s,b,T,f,i)}var hoe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,goe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function poe(e){var t=new Vi;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=Vi.CMD,l=e.match(hoe);if(!l)return t;for(var u=0;uL*L+V*V&&(C=A,w=D),{cx:C,cy:w,x0:-c,y0:-f,x1:C*(a/x-1),y1:w*(a/x-1)}}function woe(e){var t;if(he(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Coe(e,t){var n,r=Id(t.r,0),a=Id(t.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,v=KM(u-l),h=v>mb&&v%mb;if(h>Fa&&(v=h),!(r>Fa))e.moveTo(c,f);else if(v>mb-Fa)e.moveTo(c+r*Qu(l),f+r*ul(l)),e.arc(c,f,r,l,u,!d),a>Fa&&(e.moveTo(c+a*Qu(u),f+a*ul(u)),e.arc(c,f,a,u,l,d));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0,T=void 0,C=void 0,w=void 0,A=void 0,D=void 0,P=void 0,k=void 0,L=void 0,V=r*Qu(l),N=r*ul(l),$=a*Qu(u),z=a*ul(u),H=v>Fa;if(H){var U=t.cornerRadius;U&&(n=woe(U),g=n[0],p=n[1],m=n[2],y=n[3]);var Y=KM(r-a)/2;if(_=fi(Y,m),b=fi(Y,y),x=fi(Y,g),S=fi(Y,p),w=T=Id(_,b),A=C=Id(x,S),(T>Fa||C>Fa)&&(D=r*Qu(u),P=r*ul(u),k=a*Qu(l),L=a*ul(l),vFa){var se=fi(m,w),G=fi(y,w),B=Pg(k,L,V,N,r,se,d),j=Pg(D,P,$,z,r,G,d);e.moveTo(c+B.cx+B.x0,f+B.cy+B.y0),w0&&e.arc(c+B.cx,f+B.cy,se,tr(B.y0,B.x0),tr(B.y1,B.x1),!d),e.arc(c,f,r,tr(B.cy+B.y1,B.cx+B.x1),tr(j.cy+j.y1,j.cx+j.x1),!d),G>0&&e.arc(c+j.cx,f+j.cy,G,tr(j.y1,j.x1),tr(j.y0,j.x0),!d))}else e.moveTo(c+V,f+N),e.arc(c,f,r,l,u,!d);if(!(a>Fa)||!H)e.lineTo(c+$,f+z);else if(A>Fa){var se=fi(g,A),G=fi(p,A),B=Pg($,z,D,P,a,-G,d),j=Pg(V,N,k,L,a,-se,d);e.lineTo(c+B.cx+B.x0,f+B.cy+B.y0),A0&&e.arc(c+B.cx,f+B.cy,G,tr(B.y0,B.x0),tr(B.y1,B.x1),!d),e.arc(c,f,a,tr(B.cy+B.y1,B.cx+B.x1),tr(j.cy+j.y1,j.cx+j.x1),d),se>0&&e.arc(c+j.cx,f+j.cy,se,tr(j.y1,j.x1),tr(j.y0,j.x0),!d))}else e.lineTo(c+$,f+z),e.arc(c,f,a,u,l,d)}e.closePath()}}}var Toe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Pr=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Toe},t.prototype.buildPath=function(n,r){Coe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(at);Pr.prototype.type="sector";var Aoe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),kh=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Aoe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},t}(at);kh.prototype.type="ring";function Ioe(e,t,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,v=e.length;d=2){if(r){var i=Ioe(a,r,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;sfl[1]){if(s=!1,i)return s;var c=Math.abs(fl[0]-cl[1]),f=Math.abs(cl[0]-fl[1]);Math.min(c,f)>a.len()&&(c0){var f=c.duration,d=c.delay,v=c.easing,h={duration:f,delay:d||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),i&&i()}function vt(e,t,n,r,a,i){hA("update",e,t,n,r,a,i)}function Ht(e,t,n,r,a,i){hA("enter",e,t,n,r,a,i)}function Bc(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function QM(e){return!e.isGroup}function Hoe(e){return e.shape!=null}function Eh(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){QM(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Hoe(o)&&(s.shape=ce({},o.shape)),s}var i=r(e);t.traverse(function(o){if(QM(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),vt(o,l,n,He(o).dataIndex)}}})}function YH(e,t){return me(e,function(n){var r=n[0];r=Nm(r,t.x),r=Bm(r,t.x+t.width);var a=n[1];return a=Nm(a,t.y),a=Bm(a,t.y+t.height),[r,a]})}function Goe(e,t){var n=Nm(e.x,t.x),r=Bm(e.x+e.width,t.x+t.width),a=Nm(e.y,t.y),i=Bm(e.y+e.height,t.y+t.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function Rh(e,t,n){var r=ce({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Re(a,n),new Yn(r)):R0(e.replace("path://",""),r,n,"center")}function Dd(e,t,n,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var p=yb(v,h,c,f)/d;return!(p<0||p>1)}function yb(e,t,n,r){return e*r-n*t}function $oe(e){return e<=1e-6&&e>=-1e-6}function Pf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=Ae(t)?{formatter:t}:t,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&R(st(l),function(c){Pe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=He(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:Re({content:r,encodeHTMLContent:!0,formatterParams:s},a)}}function eL(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Gs(e,t){if(e)if(he(e))for(var n=0;n=0&&s.push(l)}),s}}function $s(e,t){return Ze(Ze({},e,!0),t,!0)}const tse={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},nse={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Fm="ZH",mA="EN",zc=mA,Np={},yA={},QH=it.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zc).toUpperCase();return e.indexOf(Fm)>-1?Fm:zc}():zc;function eG(e,t){e=e.toUpperCase(),yA[e]=new _t(t),Np[e]=t}function rse(e){if(Ae(e)){var t=Np[e.toUpperCase()]||{};return e===Fm||e===mA?Ne(t):Ze(Ne(t),Ne(Np[zc]),!1)}else return Ze(Ne(e),Ne(Np[zc]),!1)}function aw(e){return yA[e]}function ase(){return yA[zc]}eG(mA,tse);eG(Fm,nse);var _A=1e3,bA=_A*60,ev=bA*60,Sa=ev*24,iL=Sa*365,Pd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Lg="{yyyy}-{MM}-{dd}",oL={year:"{yyyy}",month:"{yyyy}-{MM}",day:Lg,hour:Lg+" "+Pd.hour,minute:Lg+" "+Pd.minute,second:Lg+" "+Pd.second,millisecond:Pd.none},Sb=["year","month","day","hour","minute","second","millisecond"],tG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Fo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Fc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function ise(e){return e===Fc(e)}function ose(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function N0(e,t,n,r){var a=Ri(e),i=a[SA(n)](),o=a[Hc(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[B0(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[Fv(n)](),f=(c-1)%12+1,d=a[z0(n)](),v=a[F0(n)](),h=a[H0(n)](),g=c>=12?"pm":"am",p=g.toUpperCase(),m=r instanceof _t?r:aw(r||QH)||ase(),y=m.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),x=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Fo(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Fo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Fo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Fo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Fo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Fo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Fo(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Fo(h,3)).replace(/{S}/g,h+"")}function sse(e,t,n,r,a){var i=null;if(Ae(n))i=n;else if(Ee(n))i=n(e.value,t,{level:e.level});else{var o=ce({},Pd);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(he(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return N0(new Date(e.value),i,a,r)}function nG(e,t){var n=Ri(e),r=n[Hc(t)]()+1,a=n[B0(t)](),i=n[Fv(t)](),o=n[z0(t)](),s=n[F0(t)](),l=n[H0(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,v=d&&a===1,h=v&&r===1;return h?"year":v?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function sL(e,t,n){var r=dt(e)?Ri(e):e;switch(t=t||nG(e,n),t){case"year":return r[SA(n)]();case"half-year":return r[Hc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Hc(n)]()+1)/4);case"month":return r[Hc(n)]();case"day":return r[B0(n)]();case"half-day":return r[Fv(n)]()/24;case"hour":return r[Fv(n)]();case"minute":return r[z0(n)]();case"second":return r[F0(n)]();case"millisecond":return r[H0(n)]()}}function SA(e){return e?"getUTCFullYear":"getFullYear"}function Hc(e){return e?"getUTCMonth":"getMonth"}function B0(e){return e?"getUTCDate":"getDate"}function Fv(e){return e?"getUTCHours":"getHours"}function z0(e){return e?"getUTCMinutes":"getMinutes"}function F0(e){return e?"getUTCSeconds":"getSeconds"}function H0(e){return e?"getUTCMilliseconds":"getMilliseconds"}function lse(e){return e?"setUTCFullYear":"setFullYear"}function rG(e){return e?"setUTCMonth":"setMonth"}function aG(e){return e?"setUTCDate":"setDate"}function iG(e){return e?"setUTCHours":"setHours"}function oG(e){return e?"setUTCMinutes":"setMinutes"}function sG(e){return e?"setUTCSeconds":"setSeconds"}function lG(e){return e?"setUTCMilliseconds":"setMilliseconds"}function uG(e){if(!aH(e))return Ae(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cG(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Lf=jT;function iw(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Ya(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ri(e):e;if(isNaN(+l)){if(s)return"-"}else return N0(l,r,n)}if(t==="ordinal")return xx(e)?a(e):dt(e)&&i(e)?e+"":"-";var u=bo(e);return i(u)?uG(u):xx(e)?a(e):typeof e=="boolean"?e+"":"-"}var lL=["a","b","c","d","e","f","g"],xb=function(e,t){return"{"+e+(t??"")+"}"};function fG(e,t,n){he(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function mu(e,t){return t=t||"transparent",Ae(e)?e:Oe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Hm(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Bp=R,dG=["left","right","top","bottom","width","height"],Vl=[["width","left","right"],["height","top","bottom"]];function xA(e,t,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),v,h;if(e==="horizontal"){var g=c.width+(d?-d.x+c.x:0);v=i+g,v>r||l.newline?(i=0,v=g,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var p=c.height+(d?-d.y+c.y:0);h=o+p,h>a||l.newline?(i+=s+n,o=0,h=p,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=v+n:o=h+n)})}var Ql=xA;Ue(xA,"vertical");Ue(xA,"horizontal");function fse(e,t,n){var r=t.width,a=t.height,i=we(e.left,r),o=we(e.top,a),s=we(e.right,r),l=we(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),n=Lf(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function xn(e,t,n){n=Lf(n||0);var r=t.width,a=t.height,i=we(e.left,r),o=we(e.top,a),s=we(e.right,r),l=we(e.bottom,a),u=we(e.width,r),c=we(e.height,a),f=n[2]+n[0],d=n[1]+n[3],v=e.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var h=new Ke(i+n[3],o+n[0],u,c);return h.margin=n,h}function G0(e,t,n,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ke(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=xn(Re({width:u.width,height:u.height},t),n,r),d=o?f.x-u.x:0,v=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=v):(i.x+=d,i.y+=v),i===e&&e.markRedraw(),!0}function dse(e,t){return e[Vl[t][0]]!=null||e[Vl[t][1]]!=null&&e[Vl[t][2]]!=null}function Hv(e){var t=e.layoutMode||e.constructor.layoutMode;return Oe(t)?t:t?{type:t}:null}function Ps(e,t,n){var r=n&&n.ignoreSize;!he(r)&&(r=[r,r]);var a=o(Vl[0],0),i=o(Vl[1],1);u(Vl[0],e,a),u(Vl[1],e,i);function o(c,f){var d={},v=0,h={},g=0,p=2;if(Bp(c,function(_){h[_]=e[_]}),Bp(c,function(_){s(t,_)&&(d[_]=h[_]=t[_]),l(d,_)&&v++,l(h,_)&&g++}),r[f])return l(t,c[1])?h[c[2]]=null:l(t,c[2])&&(h[c[1]]=null),h;if(g===p||!v)return h;if(v>=p)return d;for(var m=0;m=0;l--)s=Ze(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return Dh(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(_t);hH(ot,_t);A0(ot);Qoe(ot);ese(ot,hse);function hse(e){var t=[];return R(ot.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=me(t,function(n){return Ci(n).main}),e!=="dataset"&&Qe(t,"dataset")<=0&&t.unshift("dataset"),t}var hG="";typeof navigator<"u"&&(hG=navigator.platform||"");var ec="rgba(0, 0, 0, 0.2)";const gse={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ec,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ec,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ec,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ec,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ec,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ec,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hG.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var gG=Le(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Va="original",fr="arrayRows",Oa="objectRows",Hi="keyedColumns",ms="typedArray",pG="unknown",Di="column",Rf="row",Xn={Must:1,Might:2,Not:3},mG=ct();function pse(e){mG(e).datasetMap=Le()}function yG(e,t,n){var r={},a=CA(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=mG(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),R(e,function(g,p){var m=Oe(g)?g:e[p]={name:g};m.type==="ordinal"&&c==null&&(c=p,f=h(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});R(e,function(g,p){var m=g.name,y=h(g);if(c==null){var _=d.valueWayDim;v(r[m],_,y),v(o,_,y),d.valueWayDim+=y}else if(c===p)v(r[m],0,y),v(i,0,y);else{var _=d.categoryWayDim;v(r[m],_,y),v(o,_,y),d.categoryWayDim+=y}});function v(g,p,m){for(var y=0;yt)return e[r];return e[n-1]}function SG(e,t,n,r,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?n:Sse(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function xse(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Eg,ed,cL,fL="\0_ec_inner",wse=1,AA=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new _t(i),this._locale=new _t(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=hL(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,hL(r))},t.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?cL(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&R(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Le(),u=r&&r.replaceMergeMainTypeMap;pse(this),R(n,function(f,d){f!=null&&(ot.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Ne(f):Ze(a[d],f,!0))}),u&&u.each(function(f,d){ot.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),c,this);function c(f){var d=_se(this,f,It(n[f])),v=i.get(f),h=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=uH(v,d,h);jae(g,f,ot),a[f]=null,i.set(f,null),o.set(f,0);var p=[],m=[],y=0,_;R(g,function(b,x){var S=b.existing,T=b.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=f==="series",w=ot.getClass(f,b.keyInfo.subType,!C);if(!w)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===w)S.name=b.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var A=ce({componentIndex:x},b.keyInfo);S=new w(T,this,this,A),ce(S,A),b.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),m.push(S),y++):(p.push(void 0),m.push(void 0))},this),a[f]=p,i.set(f,m),o.set(f,y),f==="series"&&Eg(this)}this._seriesIndices||Eg(this)},t.prototype.getOption=function(){var n=Ne(this.option);return R(n,function(r,a){if(ot.hasClass(a)){for(var i=It(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ov(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[fL],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=t:n==="max"?e<=t:e===t}function Lse(e,t){return e.join(",")===t.join(",")}var Ba=R,Gv=Oe,gL=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cb(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=gL.length;n=0;p--){var m=e[p];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,v)),h>=0){var y=m.data.getByRawIndex(m.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=Nae(d,y),g=y;break}}}return r[0]=d,r[1]=g,r})})}var $0=function(){function e(t){this.data=t.data||(t.sourceFormat===Hi?{}:[]),this.sourceFormat=t.sourceFormat||pG,this.seriesLayoutBy=t.seriesLayoutBy||Di,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rg&&(g=_)}v[0]=h,v[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};xL=(t={},t[fr+"_"+Di]={pure:!0,appendData:i},t[fr+"_"+Rf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Oa]={pure:!0,appendData:i},t[Hi]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Va]={appendData:i},t[ms]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,n){return af(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function AL(e){var t,n;return Oe(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function tv(e){return new Zse(e)}var Zse=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,h=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||v1&&r>0?s:o}};return i;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},qse=function(){function e(t,n){if(!dt(n)){var r="";pt(r)}this._opFn=LG[t],this._rvalFloat=bo(n)}return e.prototype.evaluate=function(t){return dt(t)?this._opFn(t,this._rvalFloat):this._opFn(bo(t),this._rvalFloat)},e}(),EG=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=dt(t)?t:bo(t),a=dt(n)?n:bo(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Ae(t),l=Ae(n);s&&(r=l?t:0),l&&(a=s?n:0)}return ra?-this._resultLT:0},e}(),Jse=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=bo(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=bo(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function Qse(e,t){return e==="eq"||e==="ne"?new Jse(e==="eq",t):Pe(LG,e)?new qse(e,t):null}var ele=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return ys(t,n)},e}();function tle(e,t){var n=new ele,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Di&&pt(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";Pe(l,m)&&pt(_),l[m]=y}});else for(var c=0;c65535?ule:cle}function tc(){return[1/0,-1/0]}function fle(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PL(e,t,n,r,a){var i=OG[n||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;up[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=me(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,n,r){var a=this._chunks,i=a[t],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=h,l=v,u=0),v===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){t=new r(a);for(var i=0;i=f&&y<=d||isNaN(y))&&(l[u++]=g),g++}h=!0}else if(i===2){for(var p=v[a[0]],_=v[a[1]],b=t[a[1]][0],x=t[a[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(S>=b&&S<=x||isNaN(S))&&(l[u++]=g),g++}h=!0}}if(!h)if(i===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=T)}else for(var m=0;mt[A][1])&&(C=!1)}C&&(l[u++]=n.getRawIndex(m))}return um[1]&&(m[1]=p)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),a=r._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,v=new(nd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var h=1;hc&&(c=f,d=b)}D>0&&Dc-h&&(l=c-h,s.length=l);for(var g=0;gf[1]&&(f[1]=m),d[v++]=y}return i._count=v,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,a,i){return ys(n[i],this._dimensions[i])}Ib={arrayRows:t,objectRows:function(n,r,a,i){return ys(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return ys(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}(),NG=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(Rg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=$r(s)?ms:Va,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},v=We(f.seriesLayoutBy,d.seriesLayoutBy)||null,h=We(f.sourceHeader,d.sourceHeader),g=We(f.dimensions,d.dimensions),p=v!==d.seriesLayoutBy||!!h!=!!d.sourceHeader||g;a=p?[lw(s,{seriesLayoutBy:v,sourceHeader:h,dimensions:g},l)]:[]}else{var m=t;if(r){var y=this._applyTransform(n);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[lw(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&ML(i)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&ML(f),s.push(c),l.push(u._getVersionSign())}),r?o=sle(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[Gse(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return R(e.blocks,function(a){var i=HG(a);i>=t&&(t=i+ +(r&&(!i||cw(a)&&!a.noHeader)))}),t}return 0}function hle(e,t,n,r){var a=t.noHeader,i=ple(HG(t)),o=[],s=t.blocks||[];Ir(!s||he(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Pe(u,l)){var c=new EG(u[l],null);s.sort(function(h,g){return c.evaluate(h.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(h,g){var p=t.valueFormatter,m=FG(h)(p?ce(ce({},e),{valueFormatter:p}):e,h,g>0?i.html:0,r);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):fw(o.join(""),a?n:i.html);if(a)return f;var d=iw(t.header,"ordinal",e.useUTC),v=zG(r,e.renderMode).nameStyle;return e.renderMode==="richText"?GG(e,d,v)+i.richText+f:fw('
'+Br(d)+"
"+f,n)}function gle(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=he(b)?b:[b],pe(b,function(x,S){return iw(x,he(v)?v[S]:v,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":iw(l,"ordinal",u),v=t.valueType,h=o?[]:c(t.value,t.dataIndex),g=!s||!i,p=!s&&i,m=zG(r,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":GG(e,d,y))+(o?"":_le(e,h,g,p,_)):fw((s?"":f)+(i?"":mle(d,!s,y))+(o?"":yle(h,g,p,_)),n)}}function LL(e,t,n,r,a,i){if(e){var o=FG(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function ple(e){return{html:dle[e],richText:vle[e]}}function fw(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function mle(e,t,n){var r=t?"margin-left:2px":"";return''+Br(e)+""}function yle(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=he(e)?e:[e],''+pe(e,function(o){return Br(o)}).join("  ")+""}function GG(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function _le(e,t,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(he(t)?t.join(" "):t,i)}function $G(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return mu(r)}function WG(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Db=function(){function e(){this.richTextStyles={},this._nextStyleNameId=iH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,i=cse({color:n,type:t,renderMode:r,markerId:a});return Ae(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};he(n)?R(n,function(i){return ce(r,i)}):ce(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function UG(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(n),l=he(s),u=$G(t,n),c,f,d,v;if(o>1||l&&!o){var h=ble(s,t,n,i,u);c=h.inlineValues,f=h.inlineValueTypes,d=h.blocks,v=h.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);v=c=af(a,n,i[0]),f=g.type}else v=c=l?s[0]:s;var p=nA(t),m=p&&t.name||"",y=a.getName(n),_=r?m:y;return On("section",{header:m,noHeader:r||!p,sortParam:v,blocks:[On("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ya(_),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function ble(e,t,n,r,a){var i=t.getData(),o=Mi(e,function(f,d,v){var h=i.getDimensionInfo(v);return f=f||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];r.length?R(r,function(f){c(af(i,n,f),f)}):R(e,c);function c(f,d){var v=i.getDimensionInfo(d);!v||v.otherDims.tooltip===!1||(o?u.push(On("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ho=ct();function Vg(e,t){return e.getName(t)||e.getId(t)}var zp="__universalTransitionEnabled",zt=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=tv({count:xle,reset:wle}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Ho(this).sourceManager=new NG(this);i.prepareSource();var o=this.getInitialData(n,a);RL(o,this),this.dataTask.context.data=o,Ho(this).dataBeforeProcessed=o,EL(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Hv(this),i=a?Ef(n):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),Ze(n,r.getTheme().get(this.subType)),Ze(n,this.getDefaultOption()),vu(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Ps(n,i,a)},t.prototype.mergeOption=function(n,r){n=Ze(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Hv(this);a&&Ps(this.option,n,a);var i=Ho(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);RL(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ho(this).dataBeforeProcessed=o,EL(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!$r(n))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=TA.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Vg(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[zp])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Oe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return ot.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(ot);mn(zt,W0);mn(zt,TA);hH(zt,ot);function EL(e){var t=e.name;nA(e)||(e.name=Sle(e)||t)}function Sle(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return R(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function xle(e){return e.model.getRawData().count()}function wle(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Cle}function Cle(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function RL(e,t){R(Tm(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ue(Tle,t))})}function Tle(e,t){var n=dw(e);return n&&n.setOutputEnd((t||this).count()),t}function dw(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(e.uid))}return r}}var Ut=function(){function e(){this.group=new ze,this.uid=Mf("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){},e.prototype.updateLayout=function(t,n,r,a){},e.prototype.updateVisual=function(t,n,r,a){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();aA(Ut);A0(Ut);function Vf(){var e=ct();return function(t){var n=e(t),r=t.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var YG=ct(),Ale=Vf(),kt=function(){function e(){this.group=new ze,this.uid=Mf("viewChart"),this.renderTask=tv({plan:Ile,reset:Dle}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.highlight=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&OL(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&OL(i,a,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateLayout=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateVisual=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.eachRendered=function(t){Gs(this.group,t)},e.markUpdateMethod=function(t,n){YG(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function VL(e,t,n){e&&Bv(e)&&(t==="emphasis"?So:xo)(e,n)}function OL(e,t,n){var r=hu(e,t),a=t&&t.highlightKey!=null?coe(t.highlightKey):null;r!=null?R(It(r),function(i){VL(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){VL(i,n,a)})}aA(kt);A0(kt);function Ile(e){return Ale(e.model)}function Dle(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&YG(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),Ple[l]}var Ple={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Gm="\0__throttleOriginMethod",NL="\0__throttleRate",BL="\0__throttleType";function MA(e,t,n){var r,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var v=[],h=0;h=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(v){c=v},d}function Of(e,t,n,r){var a=e[t];if(a){var i=a[Gm]||a,o=a[BL],s=a[NL];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=MA(i,n,r==="debounce"),a[Gm]=i,a[BL]=r,a[NL]=n}return a}}function $v(e,t){var n=e[t];n&&n[Gm]&&(n.clear&&n.clear(),e[t]=n[Gm])}var zL=ct(),FL={itemStyle:gu(JH,!0),lineStyle:gu(qH,!0)},kle={lineStyle:"stroke",itemStyle:"fill"};function XG(e,t){var n=e.visualStyleMapper||FL[t];return n||(console.warn("Unknown style type '"+t+"'."),FL.itemStyle)}function jG(e,t){var n=e.visualDrawType||kle[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Mle={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=XG(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=jG(e,r),u=o[l],c=Ee(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ee(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Ee(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(v,h){var g=e.getDataParams(h),p=ce({},o);p[l]=c(g),v.setItemVisual(h,"style",p)}}}},rd=new _t,Lle={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=XG(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){rd.option=l[r];var u=a(rd),c=o.ensureUniqueItemVisual(s,"style");ce(c,u),rd.option.decal&&(o.setItemVisual(s,"decal",rd.option.decal),rd.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ele={performRawSeries:!0,overallReset:function(e){var t=Le();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=t.get(a);i||(i={},t.set(a,i)),zL(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=zL(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=jG(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),v=r.getName(u)||u+"",h=r.count();d[l]=n.getColorFromPalette(v,o,h)}})}})}},Og=Math.PI;function Rle(e,t){t=t||{},Re(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ze,r=new ut({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new ft({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new ut({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(i);var o;return t.showSpinner&&(o=new E0({shape:{startAngle:-Og/2,endAngle:-Og/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Og*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Og*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var ZG=function(){function e(t,n,r,a){this._stageTaskMap=Le(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Le();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;R(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Ir(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var i=t.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(n,i)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var i=!1,o=this;R(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var v,h=d.agentStubMap;h.each(function(p){s(a,p)&&(p.dirty(),v=!0)}),v&&d.dirty(),o.updatePayload(d,r);var g=o.getPerformArgs(d,a.block);h.each(function(p){p.perform(g)}),d.perform(g)&&(i=!0)}else f&&f.each(function(p,m){s(a,p)&&p.dirty();var y=o.getPerformArgs(p,a.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(p.context.model),o.updatePayload(p,r),p.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=Le(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,v=s.set(d,o&&o.get(d)||tv({plan:zle,reset:Fle,count:Gle}));v.context={model:f,ecModel:r,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},e.prototype._createOverallStageTask=function(t,n,r,a){var i=this,o=n.overallTask=n.overallTask||tv({reset:Vle});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Le(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,v="";Ir(!t.createOnAllSeries,v),u?r.eachRawSeriesByType(u,h):c?c(r,a).each(h):(f=!1,R(r.getSeries(),h));function h(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(d=!0,tv({reset:Ole,onDirty:Ble})));m.context={model:g,overallProgress:f},m.agent=o,m.__block=f,i._pipe(g,m)}d&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},e.wrapStageHandler=function(t,n){return Ee(t)&&(t={overallReset:t,seriesType:$le(t)}),t.uid=Mf("stageHandler"),n&&(t.visualType=n),t},e}();function Vle(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ole(e){return e.overallProgress&&Nle}function Nle(){this.agent.dirty(),this.getDownstream().dirty()}function Ble(){this.agent&&this.agent.dirty()}function zle(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Fle(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=It(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?pe(t,function(n,r){return KG(r)}):Hle}var Hle=KG(0);function KG(e){return function(t,n){var r=n.data,a=n.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-d.length){var h=u.slice(0,v);h!=="data"&&(n.mainType=h,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,i));function c(f,d,v,h){return f[v]==null||d[h||v]===f[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),vw=["symbol","symbolSize","symbolRotate","symbolOffset"],WL=vw.concat(["symbolKeepAspect"]),Yle={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&Nl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function hw(e,t,n){for(var r=t.type==="radial"?sue(e,t,n):oue(e,t,n),a=t.colorStops,i=0;i0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:dt(e)?[e]:he(e)?e:null}function EA(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&uue(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=pe(n,function(i){return i/a}),r/=a)}return[n,r]}var cue=new Vi(!0);function Um(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function UL(e){return typeof e=="string"&&e!=="none"}function Ym(e){var t=e.fill;return t!=null&&t!=="none"}function YL(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function XL(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function gw(e,t,n){var r=iA(t.image,t.__image,n);if(I0(r)){var a=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Ap),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function fue(e,t,n,r){var a,i=Um(n),o=Ym(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||cue,f=t.__dirty;if(!r){var d=n.fill,v=n.stroke,h=o&&!!d.colorStops,g=i&&!!v.colorStops,p=o&&!!d.image,m=i&&!!v.image,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0;(h||g)&&(S=t.getBoundingRect()),h&&(y=f?hw(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=f?hw(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(b=f||!t.__canvasFillPattern?gw(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=f||!t.__canvasStrokePattern?gw(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),h?e.fillStyle=y:p&&(b?e.fillStyle=b:o=!1),g?e.strokeStyle=_:m&&(x?e.strokeStyle=x:i=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,w;e.setLineDash&&n.lineDash&&(a=EA(t),C=a[0],w=a[1]);var A=!0;(u||f&yc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=w),r||(n.strokeFirst?(i&&XL(e,n),o&&YL(e,n)):(o&&YL(e,n),i&&XL(e,n))),C&&e.setLineDash([])}function due(e,t,n){var r=t.__image=iA(n.image,t.__image,t,t.onload);if(!(!r||!I0(r))){var a=n.x||0,i=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;e.drawImage(r,u,c,f,d,a,i,o,s)}else e.drawImage(r,a,i,o,s)}}function vue(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||Ts,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=EA(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(Um(n)&&e.strokeText(a,n.x,n.y),Ym(n)&&e.fillText(a,n.x,n.y)):(Ym(n)&&e.fillText(a,n.x,n.y),Um(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var jL=["shadowBlur","shadowOffsetX","shadowOffsetY"],ZL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n$(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Gr(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Zl.opacity:o}(r||t.blend!==n.blend)&&(i||(Gr(e,a),i=!0),e.globalCompositeOperation=t.blend||Zl.blend);for(var s=0;s0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,a){if(!this[nr]){if(this._disposed){this.id;return}var i,o,s;if(Oe(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[nr]=!0,!this._model||r){var l=new Dse(this._api),u=this._theme,c=this._model=new AA;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},mw);var f={seriesTransition:s,optionChanged:!0};if(a)this[Vr]={silent:i,updateParams:f},this[nr]=!1,this.getZr().wakeUp();else{try{rc(this),Go.update.call(this,null,f)}catch(d){throw this[Vr]=null,this[nr]=!1,d}this._ssr||this._zr.flush(),this[Vr]=null,this[nr]=!1,ad.call(this,i),id.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||it.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(it.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return R(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;R(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return R(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(cE[a]){var l=s,u=s,c=-s,f=-s,d=[],v=n&&n.pixelRatio||this.getDevicePixelRatio();R(rv,function(_,b){if(_.group===a){var x=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ne(n)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:x,left:S.left,top:S.top})}}),l*=v,u*=v,c*=v,f*=v;var h=c-l,g=f-u,p=As.createCanvas(),m=gM(p,{renderer:r?"svg":"canvas"});if(m.resize({width:h,height:g}),r){var y="";return R(d,function(_){var b=_.left-l,x=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new ut({shape:{x:0,y:0,width:h,height:g},style:{fill:n.connectedBackgroundColor}})),R(d,function(_){var b=new Yn({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return Eb(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return Eb(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=Kd(a,n);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},t.prototype.getVisual=function(n,r){var a=this._model,i=Kd(a,n,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?LA(s,l,r):Oh(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;R(Bue,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Ol(s,function(h){var g=He(h);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=ce({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),v=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:v},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),R(nv,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),R(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),jle(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&fH(this.getDom(),OA,"");var r=this,a=r._api,i=r._model;R(r._componentsViews,function(o){o.dispose(i,a)}),R(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete rv[r.id]},t.prototype.resize=function(n){if(!this[nr]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[Vr]&&(i==null&&(i=this[Vr].silent),a=!0,this[Vr]=null),this[nr]=!0;try{a&&rc(this),Go.update.call(this,{type:"resize",animation:ce({duration:0},n&&n.animation)})}catch(o){throw this[nr]=!1,o}this[nr]=!1,ad.call(this,i),id.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Oe(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!yw[n]){var a=yw[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=ce({},n);return r.type=nv[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Oe(r)||(r={silent:!!r}),!!Xm[n.type]&&this._model){if(this[nr]){this._pendingActions.push(n);return}var a=r.silent;Vb.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&it.browser.weChat&&this._throttledZrFlush(),ad.call(this,a),id.call(this,a)}},t.prototype.updateLabelLayout=function(){Ga.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){rc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Lb(f,!0),Lb(f,!1),d.plan()},Lb=function(f,d){for(var v=f._model,h=f._scheduler,g=d?f._componentsViews:f._chartsViews,p=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_d.get("hoverLayerThreshold")&&!it.node&&!it.worker&&d.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=f._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var v=f.get("blendMode")||null;d.eachRendered(function(h){h.isGroup||(h.style.blend=v)})}function s(f,d){if(!f.preventAutoZ){var v=f.get("z")||0,h=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,v,h,-1/0),!0})}}function l(f,d,v,h){var g=f.getTextContent(),p=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Bc(m))return;if(m instanceof at&&foe(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(h){m.stateTransition=p;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&a(m)}})}lE=function(f){return new(function(d){ee(v,d);function v(){return d!==null&&d.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(h){for(;h;){var g=h.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);h=h.parent}},v.prototype.enterEmphasis=function(h,g){So(h,g),la(f)},v.prototype.leaveEmphasis=function(h,g){xo(h,g),la(f)},v.prototype.enterBlur=function(h){DH(h),la(f)},v.prototype.leaveBlur=function(h){cA(h),la(f)},v.prototype.enterSelect=function(h){PH(h),la(f)},v.prototype.leaveSelect=function(h){kH(h),la(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(h){return f.getViewOfComponentModel(h)},v.prototype.getViewOfSeriesModel=function(h){return f.getViewOfSeriesModel(h)},v}(xG))(f)},m$=function(f){function d(v,h){for(var g=0;g=0)){fE.push(n);var i=ZG.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function w$(e,t){yw[e]=t}function Uue(e,t,n){var r=wue("registerMap");r&&r(e,t,n)}var Yue=ole;Vu(RA,Mle);Vu(Y0,Lle);Vu(Y0,Ele);Vu(RA,Yle);Vu(Y0,Xle);Vu(f$,Sue);S$(CG);x$(Aue,Fse);w$("default",Rle);Gi({type:Kl,event:Kl,update:Kl},ln);Gi({type:Rp,event:Rp,update:Rp},ln);Gi({type:qd,event:qd,update:qd},ln);Gi({type:Vp,event:Vp,update:Vp},ln);Gi({type:Jd,event:Jd,update:Jd},ln);b$("light",Wle);b$("dark",QG);var dE=[],Xue={registerPreprocessor:S$,registerProcessor:x$,registerPostInit:Hue,registerPostUpdate:Gue,registerUpdateLifecycle:NA,registerAction:Gi,registerCoordinateSystem:$ue,registerLayout:Wue,registerVisual:Vu,registerTransform:Yue,registerLoading:w$,registerMap:Uue,registerImpl:xue,PRIORITY:Vue,ComponentModel:ot,ComponentView:Ut,SeriesModel:zt,ChartView:kt,registerComponentModel:function(e){ot.registerClass(e)},registerComponentView:function(e){Ut.registerClass(e)},registerSeriesModel:function(e){zt.registerClass(e)},registerChartView:function(e){kt.registerClass(e)},registerSubTypeDefaulter:function(e,t){ot.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Mae(e,t)}};function tt(e){if(he(e)){R(e,function(t){tt(t)});return}Qe(dE,e)>=0||(dE.push(e),Ee(e)&&(e={install:e}),e.install(Xue))}function od(e){return e==null?0:e.length||1}function vE(e){return e}var wo=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||vE,this._newKeyGetter=a||vE,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},a=new Array(t.length),i=new Array(n.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(t,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var sd=Oe,$o=pe,Que=typeof Int32Array>"u"?Array:Int32Array,ece="e\0\0",hE=-1,tce=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],nce=["_approximateExtent"],gE,Hg,ld,ud,Bb,Gg,zb,Tr=function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;T$(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,r=t),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Va;if(l&&!a.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,a=r[t];a||(a=r[t]={});var i=a[n];return i==null&&(i=this.getVisual(n),he(i)?i=i.slice():sd(i)&&(i=ce({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,sd(n)?ce(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){sd(t)?ce(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?ce(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Kx(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){R(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:$o(this.dimensions,this._getDimInfo,this),this.hostModel)),Bb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Ee(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(XT(arguments)))})},e.internalField=function(){gE=function(t){var n=t._invertedIndicesMap;R(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new Que(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[n]=l}}}(),e}();function Nh(e,t){IA(e)||(e=DA(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=Le(),i=[],o=ace(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&D$(o),l=r===e.dimensionsDefine,u=l?I$(e):A$(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Le(c),d=new VG(o),v=0;v0&&(r.name=a+(i-1)),i++,t.set(a,i)}}function ace(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(i){var o;Oe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function ice(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var oce=function(){function e(t){this.coordSysDims=[],this.axisMap=Le(),this.categoryAxisMap=Le(),this.coordSysName=t}return e}();function sce(e){var t=e.get("coordinateSystem"),n=new oce(t),r=lce[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var lce={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",dn).models[0],i=e.getReferringComponents("yAxis",dn).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),ac(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),ac(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",dn).models[0];t.coordSysDims=["single"],n.set("single",a),ac(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",dn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),ac(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),ac(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();R(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),ac(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ac(e){return e.get("type")==="category"}function uce(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;cce(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(R(i,function(y,_){Ae(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!r&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,h=c.type,g=0;R(i,function(y){y.coordDim===v&&g++});var p={name:f,coordDim:v,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(d,h),m.storeDimIndex=s.ensureCalculationDimension(f,h)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(i.push(p),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function cce(e){return!T$(e.schema)}function ks(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function P$(e,t){return ks(e,t)?e.getCalculationInfo("stackResultDimension"):t}function fce(e,t){var n=e.get("coordinateSystem"),r=Vh.get(n),a;return t&&t.coordSysDims&&(a=pe(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Zm(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function dce(e,t,n){var r,a;return n&&R(e,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function Ro(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=DA(e)):(a=r.getSource(),i=a.sourceFormat===Va);var o=sce(t),s=fce(t,o),l=n.useEncodeDefaulter,u=Ee(l)?l:l?Ue(yG,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Nh(a,c),d=dce(f.dimensions,n.createInvertedIndices,o),v=i?null:r.getSharedDataStore(f),h=uce(t,{schema:f,store:v}),g=new Tr(f,t);g.setCalculationInfo(h);var p=d!=null&&vce(a)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return g.hasItemOption=!1,g.initData(i?a:v,null,p),g}function vce(e){if(e.sourceFormat===Va){var t=hce(e.data||[]);return!he(Af(t))}}function hce(e){for(var t=0;tn[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();A0($i);var gce=0,_w=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gce}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&pe(r,pce);return new e({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!Ae(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var a=this._getOrCreateMap();return n=a.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,a.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Le(this.categories))},e}();function pce(e){return Oe(e)&&e.value!=null?e.value:e+""}function bw(e){return e.type==="interval"||e.type==="log"}function mce(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=rH(i/t);n!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=k$(o),l=a.niceTickExtent=[tn(Math.ceil(e[0]/o)*o,s),tn(Math.floor(e[1]/o)*o,s)];return yce(l,e),a}function Fb(e){var t=Math.pow(10,tA(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,tn(n*t)}function k$(e){return wi(e)+2}function pE(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function yce(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),pE(e,0,t),pE(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function X0(e,t){return e>=t[0]&&e<=t[1]}function j0(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Z0(e,t){return e*(t[1]-t[0])+t[0]}var K0=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new _w({})),he(a)&&(a=new _w({categories:pe(a,function(i){return Oe(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:Ae(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),X0(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),j0(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(Z0(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}($i);$i.registerClass(K0);var gl=tn,Co=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return X0(n,this._extent)},t.prototype.normalize=function(n){return j0(n,this._extent)},t.prototype.scale=function(n){return Z0(n,this._extent)},t.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=k$(n)},t.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:gl(c+r,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function E$(e){var t=Sce(e),n=[];return R(e,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var v=r.getData();s=Math.abs(o[1]-o[0])/v.count()}var h=we(r.get("barWidth"),s),g=we(r.get("barMaxWidth"),s),p=we(r.get("barMinWidth")||(B$(r)?.5:1),s),m=r.get("barGap"),y=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:h,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:FA(i),stackId:zA(r)})}),R$(n)}function R$(e){var t={};R(e,function(r,a){var i=r.axisKey,o=r.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var v=r.barGap;v!=null&&(s.gap=v);var h=r.barCategoryGap;h!=null&&(s.categoryGap=h)});var n={};return R(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=st(i).length;s=Math.max(35-l*4,15)+"%"}var u=we(s,o),c=we(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,v=(f-u)/(d+(d-1)*c);v=Math.max(v,0),R(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,f-=b+c*b,d--}else{var b=v;y&&yb&&(b=_),b!==v&&(m.width=b,f-=b+c*b,d--)}}),v=(f-u)/(d+(d-1)*c),v=Math.max(v,0);var h=0,g;R(i,function(m,y){m.width||(m.width=v),g=m,h+=m.width*(1+c)}),g&&(h-=g.width*c);var p=-h/2;R(i,function(m,y){n[a][y]=n[a][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+c)})}),n}function xce(e,t,n){if(e&&t){var r=e[FA(t)];return r!=null&&n!=null?r[zA(n)]:r}}function V$(e,t){var n=L$(e,t),r=E$(n);R(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=zA(a),u=r[FA(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function O$(e){return{seriesType:e,plan:Vf(),reset:function(t){if(N$(t)){var n=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=t.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=ks(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),v=wce(a,i),h=B$(t),g=t.get("barMinHeight")||0,p=c&&n.getDimensionIndex(c),m=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(_,b){for(var x=_.count,S=h&&Ti(x*3),T=h&&l&&Ti(x*3),C=h&&Ti(x),w=r.master.getRect(),A=d?w.width:w.height,D,P=b.getStore(),k=0;(D=_.next())!=null;){var L=P.get(f?p:o,D),V=P.get(s,D),N=v,$=void 0;f&&($=+L-P.get(o,D));var z=void 0,H=void 0,U=void 0,Y=void 0;if(d){var J=r.dataToPoint([L,V]);if(f){var ue=r.dataToPoint([$,V]);N=ue[0]}z=N,H=J[1]+y,U=J[0]-N,Y=m,Math.abs(U)0?n:1:n))}var Cce=function(e,t,n,r){for(;n>>1;e[a][1]a&&(this._approxInterval=a);var s=$g.length,l=Math.min(Cce($g,this._approxInterval,0,s),s-1);this._interval=$g[l][1],this._minLevelUnit=$g[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return dt(n)?n:+Ri(n)},t.prototype.contain=function(n){return X0(this.parse(n),this._extent)},t.prototype.normalize=function(n){return j0(this.parse(n),this._extent)},t.prototype.scale=function(n){return Z0(n,this._extent)},t.type="time",t}(Co),$g=[["second",_A],["minute",bA],["hour",ev],["quarter-day",ev*6],["half-day",ev*12],["day",Sa*1.2],["half-week",Sa*3.5],["week",Sa*7],["month",Sa*31],["quarter",Sa*95],["half-year",iL/2],["year",iL]];function Tce(e,t,n,r){var a=Ri(t),i=Ri(n),o=function(h){return sL(a,h,r)===sL(i,h,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},v=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return v()}}function Ace(e,t){return e/=Sa,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Ice(e){var t=30*Sa;return e/=t,e>6?6:e>3?3:e>2?2:1}function Dce(e){return e/=ev,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function mE(e,t){return e/=t?bA:_A,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Pce(e){return rH(e)}function kce(e,t,n){var r=new Date(e);switch(Fc(t)){case"year":case"month":r[rG(n)](0);case"day":r[aG(n)](1);case"hour":r[iG(n)](0);case"minute":r[oG(n)](0);case"second":r[sG(n)](0),r[lG(n)](0)}return r.getTime()}function Mce(e,t,n,r){var a=1e4,i=tG,o=0;function s(A,D,P,k,L,V,N){for(var $=new Date(D),z=D,H=$[k]();z1&&V===0&&P.unshift({value:P[0].value-z})}}for(var V=0;V=r[0]&&y<=r[1]&&f++)}var _=(r[1]-r[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(p),f>_||e===i[v]))break}c=[]}}}for(var b=Tt(pe(u,function(A){return Tt(A,function(D){return D.value>=r[0]&&D.value<=r[1]&&!D.notAdd})}),function(A){return A.length>0}),x=[],S=b.length-1,v=0;v0;)i*=10;var s=[tn(Rce(r[0]/i)*i),tn(Ece(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){av.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=za(n)/za(this.base),X0(n,this._extent)},t.prototype.normalize=function(n){return n=za(n)/za(this.base),j0(n,this._extent)},t.prototype.scale=function(n){return n=Z0(n,this._extent),Wg(this.base,n)},t.type="log",t}($i),z$=GA.prototype;z$.getMinorTicks=av.getMinorTicks;z$.getLabel=av.getLabel;function Ug(e,t){return Lce(e,wi(t))}$i.registerClass(GA);var Vce=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,v=this._determinedMax;return d!=null&&(s=d,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[Nce[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Oce[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Oce={min:"_determinedMin",max:"_determinedMax"},Nce={min:"_dataMin",max:"_dataMax"};function F$(e,t,n){var r=e.rawExtentInfo;return r||(r=new Vce(e,t,n),e.rawExtentInfo=r,r)}function Yg(e,t){return t==null?null:Mv(t)?NaN:e.parse(t)}function H$(e,t){var n=e.type,r=F$(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var a=r.min,i=r.max,o=t.ecModel;if(o&&n==="time"){var s=L$("bar",o),l=!1;if(R(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=E$(s),c=Bce(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function Bce(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=xce(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;R(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function sf(e,t){var n=t,r=H$(e,n),a=r.extent,i=n.get("splitNumber");e instanceof GA&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function q0(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new K0({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new HA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new($i.getClass(t)||Co)}}function zce(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function Bf(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}(t):Ae(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):Ee(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r($A(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function $A(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Fce(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof K0?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=Bf(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;ce[1]&&(e[1]=a[1])})}var Bh=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),$ce=1e-8;function _E(e,t){return Math.abs(e-t)<$ce}function Al(e,t,n){var r=0,a=e[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return Uce(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return R(o,function(s){s.type==="polygon"?bE(s.exterior,a,i,n):R(s.points,function(l){bE(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Ke(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function jce(e,t){return e=Xce(e),pe(Tt(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new SE(o[0],o.slice(1)));break;case"MultiPolygon":R(a.coordinates,function(l){l[0]&&i.push(new SE(l[0],l.slice(1)))});break;case"LineString":i.push(new xE([a.coordinates]));break;case"MultiLineString":i.push(new xE(a.coordinates))}var s=new W$(r[t||"name"],i,r.cp);return s.properties=r,s})}var Yv=ct();function Y$(e,t){var n=pe(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Zce(e){var t=e.getLabelModel().get("customValues");if(t){var n=Bf(e);return{labels:Y$(e,t).map(function(r){var a={value:r};return{formattedLabel:n(a),rawLabel:e.scale.getLabel(a),tickValue:r}})}}return e.type==="category"?qce(e):Qce(e)}function Kce(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:Y$(e,n)}:e.type==="category"?Jce(e,t):{ticks:pe(e.scale.getTicks(),function(r){return r.value})}}function qce(e){var t=e.getLabelModel(),n=X$(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function X$(e,t){var n=j$(e,"labels"),r=WA(t),a=Z$(n,r);if(a)return a;var i,o;return Ee(r)?i=J$(e,r):(o=r==="auto"?efe(e):r,i=q$(e,o)),K$(n,r,{labels:i,labelCategoryInterval:o})}function Jce(e,t){var n=j$(e,"ticks"),r=WA(t),a=Z$(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Ee(r))i=J$(e,r,!0);else if(r==="auto"){var s=X$(e,e.getLabelModel());o=s.labelCategoryInterval,i=pe(s.labels,function(l){return l.tickValue})}else o=r,i=q$(e,o,!0);return K$(n,r,{ticks:i,tickCategoryInterval:o})}function Qce(e){var t=e.scale.getTicks(),n=Bf(e);return{labels:pe(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function j$(e,t){return Yv(e)[t]||(Yv(e)[t]=[])}function Z$(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,v=0;l<=i[1];l+=s){var h=0,g=0,p=Ih(n({value:l}),t.font,"center","top");h=p.width*1.3,g=p.height*1.3,d=Math.max(d,h,7),v=Math.max(v,g,7)}var m=d/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Yv(e.model),x=e.getExtent(),S=b.lastAutoInterval,T=b.lastTickCount;return S!=null&&T!=null&&Math.abs(S-_)<=1&&Math.abs(T-o)<=1&&S>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=S:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function nfe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function q$(e,t,n){var r=Bf(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=G$(e),d=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;d&&u!==i[0]&&g(i[0]);for(var h=u;h<=i[1];h+=l)g(h);v&&h-l!==i[1]&&g(i[1]);function g(p){var m={value:p};s.push(n?p:{formattedLabel:r(m),rawLabel:a.getLabel(m),tickValue:p})}return s}function J$(e,t,n){var r=e.scale,a=Bf(e),i=[];return R(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var wE=[0,1],oi=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return t>=r&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return tH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(r=r.slice(),CE(r,a.count())),bt(t,wE,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),CE(r,a.count()));var i=bt(t,r,wE,n);return this.scale.scale(i)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=Kce(this,n),a=r.ticks,i=pe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return rfe(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=pe(r,function(i){return pe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return Zce(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(){return tfe(this)},e}();function CE(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function rfe(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;R(t,function(v){v.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(r?t[0].coord=i[0]:t.shift()),r&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:t.pop()),r&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(v,h){return v=tn(v),h=tn(h),f?v>h:va&&(a+=cd);var v=Math.atan2(s,o);if(v<0&&(v+=cd),v>=r&&v<=a||v+cd>=r&&v+cd<=a)return l[0]=c,l[1]=f,u-n;var h=n*Math.cos(r)+e,g=n*Math.sin(r)+t,p=n*Math.cos(a)+e,m=n*Math.sin(a)+t,y=(h-o)*(h-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(m-s)*(m-s);return y<_?(l[0]=h,l[1]=g,Math.sqrt(y)):(l[0]=p,l[1]=m,Math.sqrt(_))}function qm(e,t,n,r,a,i,o,s){var l=a-e,u=i-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var v=l*c+u*f,h=v/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var g=o[0]=e+h*c,p=o[1]=t+h*f;return Math.sqrt((g-a)*(g-a)+(p-i)*(p-i))}function Q$(e,t,n,r,a,i,o){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var $a=[];function sfe(e,t,n){var r=Q$(t.x,t.y,t.width,t.height,e.x,e.y,$a);return n.set($a[0],$a[1]),r}function lfe(e,t,n){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,v=0;v0){t=t/180*Math.PI,Xa.fromArray(e[0]),Ot.fromArray(e[1]),an.fromArray(e[2]),je.sub(Ai,Xa,Ot),je.sub(bi,an,Ot);var n=Ai.len(),r=bi.len();if(!(n<.001||r<.001)){Ai.scale(1/n),bi.scale(1/r);var a=Ai.dot(bi),i=Math.cos(t);if(i1&&je.copy(Sr,an),Sr.toArray(e[1])}}}}function ufe(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Xa.fromArray(e[0]),Ot.fromArray(e[1]),an.fromArray(e[2]),je.sub(Ai,Ot,Xa),je.sub(bi,an,Ot);var r=Ai.len(),a=bi.len();if(!(r<.001||a<.001)){Ai.scale(1/r),bi.scale(1/a);var i=Ai.dot(t),o=Math.cos(n);if(i=l)je.copy(Sr,an);else{Sr.scaleAndAdd(bi,s/Math.tan(Math.PI/2-c));var f=an.x!==Ot.x?(Sr.x-Ot.x)/(an.x-Ot.x):(Sr.y-Ot.y)/(an.y-Ot.y);if(isNaN(f))return;f<0?je.copy(Sr,Ot):f>1&&je.copy(Sr,an)}Sr.toArray(e[1])}}}}function $b(e,t,n,r){var a=n==="normal",i=a?e:e.ensureState(n);i.ignore=t;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function cfe(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=os(r[0],r[1]),i=os(r[1],r[2]);if(!a||!i){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=Dp([],r[1],r[0],o/a),l=Dp([],r[1],r[2],o/i),u=Dp([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&x(-c/o,0,o);var g=e[0],p=e[o-1],m,y;_(),m<0&&S(-m,.8),y<0&&S(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&T(-m),y<0&&T(y);function _(){m=g.rect[t]-r,y=a-p.rect[t]-p.rect[n]}function b(C,w,A){if(C<0){var D=Math.min(w,-C);if(D>0){x(D*A,0,o);var P=D+C;P<0&&S(-P*A,1)}else S(-C*A,1)}}function x(C,w,A){C!==0&&(u=!0);for(var D=w;D0)for(var P=0;P0;P--){var N=A[P-1]*V;x(-N,P,o)}}}function T(C){var w=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),D=0;D0?x(A,0,D+1):x(-A,o-D-1,o),C-=A,C<=0)return}return u}function ffe(e,t,n,r){return n4(e,"x","width",t,n,r)}function r4(e,t,n,r){return n4(e,"y","height",t,n,r)}function a4(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var n=new Ke(0,0,0,0);function r(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Qe(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),vt(r,u,n,l)}else if(r.attr(u),!kf(r).valueAnimation){var f=We(r.style.opacity,1);r.style.opacity=0,Ht(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var v=i.oldLayoutSelect={};Xg(v,u,jg),Xg(v,r.states.select,jg)}if(r.states.emphasis){var h=i.oldLayoutEmphasis={};Xg(h,u,jg),Xg(h,r.states.emphasis,jg)}KH(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=hfe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),vt(a,{shape:g},n)):(a.setShape(g),a.style.strokePercent=0,Ht(a,{style:{strokePercent:1}},n)),i.oldLayout=g}},e}(),Ub=ct();function pfe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=Ub(n).labelManager;a||(a=Ub(n).labelManager=new gfe),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=Ub(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var Yb=Math.sin,Xb=Math.cos,i4=Math.PI,ml=Math.PI*2,mfe=180/i4,o4=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){this._add("C",t,n,r,a,i,o)},e.prototype.quadraticCurveTo=function(t,n,r,a){this._add("Q",t,n,r,a)},e.prototype.arc=function(t,n,r,a,i,o){this.ellipse(t,n,r,r,0,a,i,o)},e.prototype.ellipse=function(t,n,r,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=fs(f-ml)||(c?u>=ml:-u>=ml),v=u>0?u%ml:u%ml+ml,h=!1;d?h=!0:fs(f)?h=!1:h=v>=i4==!!c;var g=t+r*Xb(o),p=n+a*Yb(o);this._start&&this._add("M",g,p);var m=Math.round(i*mfe);if(d){var y=1/this._p,_=(c?1:-1)*(ml-y);this._add("A",r,a,m,1,+c,t+r*Xb(o+_),n+a*Yb(o+_)),y>.01&&this._add("A",r,a,m,0,+c,g,p)}else{var b=t+r*Xb(s),x=n+a*Yb(s);this._add("A",r,a,m,+h,+c,b,x)}},e.prototype.rect=function(t,n,r,a){this._add("M",t,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function Afe(e){return""}function jA(e,t){t=t||{};var n=t.newline?` -`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Tfe(o,s)+(o!=="style"?Br(l):l||"")+(i?""+n+pe(i,function(u){return r(u)}).join(n)+n:"")+Afe(o)}return r(e)}function Ife(e,t,n){n=n||{};var r=n.newline?` -`:"",a=" {"+r,i=r+"}",o=pe(st(e),function(l){return l+a+pe(st(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=pe(st(t),function(l){return"@keyframes "+l+a+pe(st(t[l]),function(u){return u+a+pe(st(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function ww(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function DE(e,t,n,r){return En("svg","root",{width:e,height:t,xmlns:s4,"xmlns:xlink":l4,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var Dfe=0;function c4(){return Dfe++}var PE={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},bl="transform-origin";function Pfe(e,t,n){var r=ce({},e.shape);ce(r,t),e.buildPath(n,r);var a=new o4;return a.reset(Y3(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function kfe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[bl]=n+"px "+r+"px")}var Mfe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function f4(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Lfe(e,t,n){var r=e.shape.paths,a={},i,o;if(R(r,function(l){var u=ww(n.zrId);u.animation=!0,J0(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=st(c),v=d.length;if(v){o=d[v-1];var h=c[o];for(var g in h){var p=h[g];a[g]=a[g]||{d:""},a[g].d+=p.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){t.d=!1;var s=f4(a,n);return i.replace(o,s)}}function kE(e){return Ae(e)?PE[e]?"cubic-bezier("+PE[e]+")":JT(e)?e:"":""}function J0(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof vA){var s=Lfe(e,t,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var Z=f4(T,n);return Z+" "+y[0]+" both"}}for(var p in l){var s=g(l[p]);s&&o.push(s)}if(o.length){var m=n.zrId+"-cls-"+c4();n.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function Efe(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};ME(r,t,n)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=a.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=Vx(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};i&&(r.fill=i),a.stroke&&(r.stroke=a.stroke),u&&(r["stroke-width"]=u),ME(r,t,n)}}function ME(e,t,n,r){var a=JSON.stringify(e),i=n.cssStyleCache[a];i||(i=n.zrId+"-cls-"+c4(),n.cssStyleCache[a]=i,n.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var Xv=Math.round;function d4(e){return e&&Ae(e.src)}function v4(e){return e&&Ee(e.toDataURL)}function ZA(e,t,n,r){xfe(function(a,i){var o=a==="fill"||a==="stroke";o&&U3(i)?g4(t,e,a,r):o&&QT(i)?p4(n,e,a,r):o&&i==="none"?e[a]="transparent":e[a]=i},t,n,!1),Ffe(n,e,r)}function KA(e,t){var n=Lae(t);n&&(n.each(function(r,a){r!=null&&(e[(IE+a).toLowerCase()]=r+"")}),t.isSilent()&&(e[IE+"silent"]="true"))}function LE(e){return fs(e[0]-1)&&fs(e[1])&&fs(e[2])&&fs(e[3]-1)}function Rfe(e){return fs(e[4])&&fs(e[5])}function qA(e,t,n){if(t&&!(Rfe(t)&&LE(t))){var r=1e4;e.transform=LE(t)?"translate("+Xv(t[4]*r)/r+" "+Xv(t[5]*r)/r+")":tae(t)}}function EE(e,t,n){for(var r=e.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Ir(d,p),Ir(v,p)}else if(d==null||v==null){var m=function(A,D){if(A){var P=A.elm,k=d||D.width,L=v||D.height;A.tag==="pattern"&&(u?(L=1,k/=i.width):c&&(k=1,L/=i.height)),A.attrs.width=k,A.attrs.height=L,P&&(P.setAttribute("width",k),P.setAttribute("height",L))}},y=iA(h,null,e,function(A){l||m(S,A),m(f,A)});y&&y.width&&y.height&&(d=d||y.width,v=v||y.height)}f=En("image","img",{href:h,width:d,height:v}),o.width=d,o.height=v}else a.svgElement&&(f=Ne(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,b;l?_=b=1:u?(b=1,_=o.width/i.width):c?(_=1,b=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var x=X3(a);x&&(o.patternTransform=x);var S=En("pattern","",o,[f]),T=jA(S),C=r.patternCache,w=C[T];w||(w=r.zrId+"-p"+r.patternIdx++,C[T]=w,o.id=w,S=r.defs[w]=En("pattern",w,o,[f])),t[n]=w0(w)}}function Hfe(e,t,n){var r=n.clipPathCache,a=n.defs,i=r[e.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[e.id]=i,a[i]=En("clipPath",i,o,[h4(e,n)])}t["clip-path"]=w0(i)}function OE(e){return document.createTextNode(e)}function Il(e,t,n){e.insertBefore(t,n)}function NE(e,t){e.removeChild(t)}function BE(e,t){e.appendChild(t)}function m4(e){return e.parentNode}function y4(e){return e.nextSibling}function jb(e,t){e.textContent=t}var zE=58,Gfe=120,$fe=En("","");function Cw(e){return e===void 0}function yi(e){return e!==void 0}function Wfe(e,t,n){for(var r={},a=t;a<=n;++a){var i=e[a].key;i!==void 0&&(r[i]=a)}return r}function Md(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function jv(e){var t,n=e.children,r=e.tag;if(yi(r)){var a=e.elm=u4(r);if(JA($fe,e),he(n))for(t=0;ti?(h=n[l+1]==null?null:n[l+1].elm,_4(e,h,n,a,l)):Qm(e,t,r,i))}function bc(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(JA(e,t),Cw(t.text)?yi(r)&&yi(a)?r!==a&&Ufe(n,r,a):yi(a)?(yi(e.text)&&jb(n,""),_4(n,null,a,0,a.length-1)):yi(r)?Qm(n,r,0,r.length-1):yi(e.text)&&jb(n,""):e.text!==t.text&&(yi(r)&&Qm(n,r,0,r.length-1),jb(n,t.text)))}function Yfe(e,t){if(Md(e,t))bc(e,t);else{var n=e.elm,r=m4(n);jv(t),r!==null&&(Il(r,t.elm,y4(n)),Qm(r,[e],0,0))}return t}var Xfe=0,jfe=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=FE(),this.configLayer=FE(),this.storage=n,this._opts=r=ce({},r),this.root=t,this._id="zr"+Xfe++,this._oldVNode=DE(r.width,r.height),t&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=u4("svg");JA(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Yfe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return VE(t,ww(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=ww(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],s=this._bgVNode=Zfe(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=En("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=pe(st(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(En("defs","defs",{},u)),t.animation){var c=Ife(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=En("style","stl",{},[],c);o.push(f)}}return DE(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},jA(this.renderToVNode({animation:We(t.cssAnimation,!0),emphasis:We(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:We(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[g]===l[g]);g--);for(var p=h-1;p>g;p--)o--,s=i[o-1];for(var m=g+1;m=s)}}for(var f=this.__startIndex;f15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var A=v.dpr,D=0;D0&&t>a[0]){for(l=0;lt);l++);s=r[a[l]]}if(a.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,a=0;a0?Zg:0),this._needsManuallyCompositing),c.__builtin__||UT("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),i=c),a.__dirty&Kr&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Ze(r[t],n,!0):r[t]=n;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(zt);function lf(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=af(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(t[i])}return r.join(" ")}var zh=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this)||this;return o.updateData(n,r,a,i),o}return t.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=hn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=rde,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){So(this.childAt(0))},t.prototype.downplay=function(){xo(this.childAt(0))},t.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},t.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},t.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(v):vt(d,v,s,r),ri(d)}if(this._updateCommon(n,r,l,a,i),u){var d=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Ht(d,v,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,v,h,g,p,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,v=i.blurScope,g=i.labelStatesModels,p=i.hoverScale,m=i.cursorStyle,h=i.emphasisDisabled),!i||n.hasItemOption){var y=i&&i.itemModel?i.itemModel:n.getItemModel(r),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),v=_.get("blurScope"),h=_.get("disabled"),g=Vn(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var b=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=Ru(n.getItemVisual(r,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var S=n.getItemVisual(r,"style"),T=S.fill;if(s instanceof Yn){var C=s.style;s.useStyle(ce({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(ce({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var w=n.getItemVisual(r,"liftZ"),A=this._z2;w!=null?A==null&&(this._z2=s.z2,s.z2+=w):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Qn(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:P,inheritColor:T,defaultOpacity:S.opacity});function P(V){return D?n.getName(V):lf(n,V)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;k.scaleX=this._sizeX*L,k.scaleY=this._sizeY*L,this.setSymbolScale(1),qt(this,d,v,h)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=He(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Ds(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ds(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Nf(n.getItemVisual(r,"symbolSize"))},t}(ze);function rde(e,t){this.parent.drift(e,t)}function Kb(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function $E(e){return e!=null&&!Oe(e)&&(e={isIgnore:e}),e||{}}function WE(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Vn(t),cursorStyle:t.get("cursor")}}var Fh=function(){function e(t){this.group=new ze,this._SymbolCtor=t||zh}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=$E(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=WE(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};i||r.removeAll(),t.diff(i).add(function(f){var d=c(f);if(Kb(t,d,f,n)){var v=new o(t,f,l,u);v.setPosition(d),t.setItemGraphicEl(f,v),r.add(v)}}).update(function(f,d){var v=i.getItemGraphicEl(d),h=c(f);if(!Kb(t,h,f,n)){r.remove(v);return}var g=t.getItemVisual(f,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)r.remove(v),v=new o(t,f,l,u),v.setPosition(h);else{v.updateData(t,f,l,u);var m={x:h[0],y:h[1]};s?v.attr(m):vt(v,m,a)}r.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=t._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=WE(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=$E(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function x4(e,t,n,r){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=n.get(e.baseDim,r),o[1-i]=a,t.dataToPoint(o)}function ide(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function ode(e,t,n,r,a,i,o,s){for(var l=ide(e,t),u=[],c=[],f=[],d=[],v=[],h=[],g=[],p=S4(a,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||g<0)break;if(eu(m,y)){if(l){g+=i;continue}break}if(g===n)e[i>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var _=m-u,b=y-c;if(_*_+b*b<.5){g+=i;continue}if(o>0){for(var x=g+i,S=t[x*2],T=t[x*2+1];S===m&&T===y&&p=r||eu(S,T))v=m,h=y;else{A=S-u,D=T-c;var L=m-u,V=S-m,N=y-c,$=T-y,z=void 0,H=void 0;if(s==="x"){z=Math.abs(L),H=Math.abs(V);var U=A>0?1:-1;v=m-U*z*o,h=y,P=m+U*H*o,k=y}else if(s==="y"){z=Math.abs(N),H=Math.abs($);var Y=D>0?1:-1;v=m,h=y-Y*z*o,P=m,k=y+Y*H*o}else z=Math.sqrt(L*L+N*N),H=Math.sqrt(V*V+$*$),w=H/(H+z),v=m-A*o*(1-w),h=y-D*o*(1-w),P=m+A*o*w,k=y+D*o*w,P=Wo(P,Uo(S,m)),k=Wo(k,Uo(T,y)),P=Uo(P,Wo(S,m)),k=Uo(k,Wo(T,y)),A=P-m,D=k-y,v=m-A*z/H,h=y-D*z/H,v=Wo(v,Uo(u,m)),h=Wo(h,Uo(c,y)),v=Uo(v,Wo(u,m)),h=Uo(h,Wo(c,y)),A=m-v,D=y-h,P=m+A*H/z,k=y+D*H/z}e.bezierCurveTo(f,d,v,h,m,y),f=P,d=k}else e.lineTo(m,y)}u=m,c=y,g+=i}return p}var w4=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),sde=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new w4},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&eu(a[o*2-2],a[o*2-1]);o--);for(;i=0){var b=u?(h-l)*_+l:(v-s)*_+s;return u?[n,b]:[b,n]}s=v,l=h;break;case o.C:v=i[f++],h=i[f++],g=i[f++],p=i[f++],m=i[f++],y=i[f++];var x=u?Dm(s,v,g,m,n,c):Dm(l,h,p,y,n,c);if(x>0)for(var S=0;S=0){var b=u?Dn(l,h,p,y,T):Dn(s,v,g,m,T);return u?[n,b]:[b,n]}}s=m,l=y;break}}},t}(at),lde=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(w4),C4=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new lde},t.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&eu(a[s*2-2],a[s*2-1]);s--);for(;ot){i?n.push(o(i,l,t)):a&&n.push(o(a,l,0),o(a,l,t));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function fde(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=t.getAxis(a),u=pe(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=cde(u,a==="x"?n.getWidth():n.getHeight()),v=d.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var h=10,g=d[0].coord-h,p=d[v-1].coord+h,m=p-g;if(m<.001)return"transparent";R(d,function(_){_.offset=(_.coord-g)/m}),d.push({offset:v?d[v-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:v?d[0].offset:.5,color:f[0]||"transparent"});var y=new Lh(0,0,0,0,d,!0);return y[a]=g,y[a+"2"]=p,y}}}function dde(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&vde(i,t))){var o=t.mapDimension(i.dim),s={};return R(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function vde(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function hde(e,t){return isNaN(e)||isNaN(t)}function gde(e){for(var t=e.length/2;t>0&&hde(e[t*2-2],e[t*2-1]);t--);return t-1}function ZE(e,t){return[e[t*2],e[t*2+1]]}function pde(e,t,n){for(var r=e.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function I4(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}He(g).seriesIndex=n.seriesIndex,qt(g,$,z,H);var Y=jE(n.get("smooth")),J=n.get("smoothMonotone");if(g.setShape({smooth:Y,smoothMonotone:J,connectNulls:C}),p){var ue=l.getCalculationInfo("stackedOnSeries"),le=0;p.useStyle(Re(c.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ue&&(le=jE(ue.get("smooth"))),p.setShape({smooth:Y,stackedOnSmooth:le,smoothMonotone:J,connectNulls:C}),Jn(p,n,"areaStyle"),He(p).seriesIndex=n.seriesIndex,qt(p,$,z,H)}var be=function(ae){i._changePolyState(ae)};l.eachItemGraphicEl(function(ae){ae&&(ae.onHoverStateChange=be)}),this._polyline.onHoverStateChange=be,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=D,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,g),p&&this.packEventData(n,p))},t.prototype.packEventData=function(n,r){He(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=hu(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,v=n.get("z")||0;u=new zh(o,s),u.x=c,u.y=f,u.setZ(d,v);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=d,h.z=v,h.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else kt.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=hu(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else kt.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;Vm(this._polyline,n),r&&Vm(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new sde({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new C4({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");Ee(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Ee(f)?f(null):f;n.eachItemGraphicEl(function(v,h){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var b=a,x=r.pointToCoord(p);i?(m=b.startAngle,y=b.endAngle,_=-x[1]/180*Math.PI):(m=b.r0,y=b.r,_=x[0])}else{var S=a;i?(m=S.x,y=S.x+S.width,_=v.x):(m=S.y+S.height,y=S.y,_=v.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var C=Ee(f)?f(h):c*T+d,w=g.getSymbolPath(),A=w.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),w.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(I4(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ft({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=gde(l);c>=0&&(Qn(s,Vn(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,v){return v!=null?b4(o,v):lf(o,f)},enableTextSetter:!0},mde(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,v=d.get("connectNulls"),h=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=r.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?g:0)*(y?-1:1),S=(m?0:-g)*(y?-1:1),T=m?"x":"y",C=pde(f,b,T),w=C.range,A=w[1]-w[0],D=void 0;if(A>=1){if(A>1&&!v){var P=ZE(f,w[0]);u.attr({x:P[0]+x,y:P[1]+S}),o&&(D=d.getRawValue(w[0]))}else{var P=c.getPointOn(b,T);P&&u.attr({x:P[0]+x,y:P[1]+S});var k=d.getRawValue(w[0]),L=d.getRawValue(w[1]);o&&(D=dH(a,h,k,L,C.t))}i.lastFrameIndex=w[0]}else{var V=n===1||i.lastFrameIndex>0?w[0]:0,P=ZE(f,V);o&&(D=d.getRawValue(V)),u.attr({x:P[0]+x,y:P[1]+S})}if(o){var N=kf(u);typeof N.setLabelText=="function"&&N.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=ode(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),v=d.current,h=d.stackedOnCurrent,g=d.next,p=d.stackedOnNext;if(o&&(v=Yo(d.current,a,o,l),h=Yo(d.stackedOnCurrent,a,o,l),g=Yo(d.next,a,o,l),p=Yo(d.stackedOnNext,a,o,l)),XE(v,g)>3e3||c&&XE(h,p)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=d.current,u.shape.points=v;var m={shape:{points:g}};d.current!==v&&(m.shape.__points=d.next),u.stopAnimation(),vt(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:h}),c.stopAnimation(),vt(c,{shape:{stackedOnPoints:p}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=d.status,b=0;b<_.length;b++){var x=_[b].cmd;if(x==="="){var S=n.getItemGraphicEl(_[b].idx1);S&&y.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,C=0;Ct&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;nt&&(t=i,n=a)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},bde=function(e){return Math.round(e.length/2)};function D4(e){return{seriesType:e,reset:function(t,n,r){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/d);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var h=void 0;Ae(i)?h=_de[i]:Ee(i)&&(h=i),h&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,h,bde))}}}}}function Sde(e){e.registerChartView(yde),e.registerSeriesModel(nde),e.registerLayout(Gh("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,D4("line"))}var Zv=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return Ro(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)R(i.getAxes(),function(d,v){if(d.type==="category"&&r!=null){var h=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),p=o[v],m=r[v]==="x1"||r[v]==="y1";if(m&&!g&&(p+=1),h.length<2)return;if(h.length===2){s[v]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,b=1,x=0;xp){_=(S+y)/2;break}x===1&&(b=T-h[0].tickValue)}_==null&&(y?y&&(_=h[h.length-1].coord):_=h[0].coord),s[v]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(zt);zt.registerClass(Zv);var xde=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return Ro(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=$s(Zv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Zv),wde=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ey=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new wde},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,v=Math.PI*2,h=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){zv(i,n,He(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(kt),KE={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=Jb(t.x,e.x),s=Qb(t.x+t.width,a),l=Jb(t.y,e.y),u=Qb(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var a=Qb(t.r,e.r),i=Jb(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},qE={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new ut({shape:ce({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,a,i,o,s,l){var u=!a&&l?ey:Pr,c=new u({shape:r,z2:1});c.name="item";var f=P4(a);if(c.calculateTextPosition=Cde(f,{isRoundCap:u===ey}),i){var d=c.shape,v=a?"r":"endAngle",h={};d[v]=a?r.r0:r.startAngle,h[v]=r[v],(s?vt:Ht)(c,{shape:h},i)}return c}};function Dde(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function JE(e,t,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?vt:Ht)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?vt:Ht)(n,{shape:u},c,a)}function QE(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Mde(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function P4(e){return function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(e)}function t2(e,t,n,r,a,i,o,s){var l=t.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=zl(r.getModel("itemStyle"),c,!0);ce(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=Vn(r);Qn(e,h,{labelFetcher:i,labelDataIndex:n,defaultText:lf(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=e.getTextContent();if(s&&g){var p=r.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,Tde(e,p==="outside"?v:p,P4(o),r.get(["label","rotate"]))}ZH(g,h,i.getRawValue(n),function(y){return b4(t,y)});var m=r.getModel(["emphasis"]);qt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Jn(e,r),Mde(a)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Lde(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,i)}var Ede=function(){function e(){}return e}(),n2=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new Ede},t.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?n:null},30,!1);function Rde(e,t,n){for(var r=e.baseDimIdx,a=1-r,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function k4(e,t,n){if(Ou(n,"cartesian2d")){var r=t,a=n.getArea();return{x:e?r.x:a.x,y:e?a.y:r.y,width:e?r.width:a.width,height:e?a.height:r.height}}else{var a=n.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function Vde(e,t,n){var r=e.type==="polar"?Pr:ut;return new r({shape:k4(t,n,e),silent:!0,z2:0})}function Ode(e){e.registerChartView(Ide),e.registerSeriesModel(xde),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ue(V$,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,O$("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,D4("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var i2=Math.PI*2,Qg=Math.PI/180;function M4(e,t){return xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function L4(e,t){var n=M4(e,t),r=e.get("center"),a=e.get("radius");he(a)||(a=[0,a]);var i=we(n.width,t.getWidth()),o=we(n.height,t.getHeight()),s=Math.min(i,o),l=we(a[0],s/2),u=we(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var v=d.dataToPoint(r);c=v[0]||0,f=v[1]||0}else he(r)||(r=[r,r]),c=we(r[0],i)+n.x,f=we(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function Nde(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=M4(r,n),s=L4(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*Qg,v=r.get("endAngle"),h=r.get("padAngle")*Qg;v=v==="auto"?d-i2:-v*Qg;var g=r.get("minAngle")*Qg,p=g+h,m=0;a.each(i,function($){!isNaN($)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,b=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),T=a.getDataExtent(i);T[0]=0;var C=b?1:-1,w=[d,v],A=C*h/2;oA(w,!b),d=w[0],v=w[1];var D=E4(r);D.startAngle=d,D.endAngle=v,D.clockwise=b;var P=Math.abs(v-d),k=P,L=0,V=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function($,z){var H;if(isNaN($)){a.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?H=y===0&&S?_:$*_:H=P/m,HH?(Y=V+C*H/2,J=Y):(Y=V+A,J=U-A),a.setItemLayout(z,{angle:H,startAngle:Y,endAngle:J,clockwise:b,cx:l,cy:u,r0:f,r:x?bt($,T,[f,c]):c}),V=U}),kn?m:p,x=Math.abs(_.label.y-n);if(x>=b.maxY){var S=_.label.x-t-_.len2*a,T=r+_.len,C=Math.abs(S)e.unconstrainedWidth?null:v:null;r.setStyle("width",h)}var g=r.getBoundingRect();i.width=g.width;var p=(r.style.margin||0)+2.1;i.height=g.height+p,i.y-=(i.height-f)/2}}}function eS(e){return e.position==="center"}function Fde(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*Bde,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function v(S){S.ignore=!0}function h(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}t.each(function(S){var T=t.getItemGraphicEl(S),C=T.shape,w=T.getTextContent(),A=T.getTextGuideLine(),D=t.getItemModel(S),P=D.getModel("label"),k=P.get("position")||D.get(["emphasis","label","position"]),L=P.get("distanceToLabelLine"),V=P.get("alignTo"),N=we(P.get("edgeDistance"),u),$=P.get("bleedMargin"),z=D.getModel("labelLine"),H=z.get("length");H=we(H,u);var U=z.get("length2");if(U=we(U,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":J>0?"left":"right"}var X=Math.PI,K=0,q=P.get("rotate");if(dt(q))K=q*(X/180);else if(k==="center")K=0;else if(q==="radial"||q===!0){var re=J<0?-Y+X:-Y;K=re}else if(q==="tangential"&&k!=="outside"&&k!=="outer"){var me=Math.atan2(J,ue);me<0&&(me=X*2+me);var F=ue>0;F&&(me=X+me),K=me-X}if(i=!!K,w.x=le,w.y=be,w.rotation=K,w.setStyle({verticalAlign:"middle"}),te){w.setStyle({align:Z});var _e=w.states.select;_e&&(_e.x+=w.x,_e.y+=w.y)}else{var W=w.getBoundingRect().clone();W.applyTransform(w.getComputedTransform());var Q=(w.style.margin||0)+2.1;W.y-=Q/2,W.height+=Q,n.push({label:w,labelLine:A,position:k,len:H,len2:U,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new je(J,ue),linePoints:ae,textAlign:Z,labelDistance:L,labelAlignTo:V,edgeDistance:N,bleedMargin:$,rect:W,unconstrainedWidth:W.width,labelStyleWidth:w.style.width})}T.setTextConfig({inside:te})}}),!i&&e.get("avoidLabelOverlap")&&zde(n,r,a,l,u,d,c,f);for(var g=0;g0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(kt);function zf(e,t,n){t=he(t)&&{coordDimensions:t}||ce({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=Nh(r,t).dimensions,i=new Tr(a,e);return i.initData(r,n),i}var Wh=function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e}(),$de=ct(),Wde=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wh(Ie(this.getData,this),Ie(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return zf(this,{coordDimensions:["value"],encodeDefaulter:Ue(wA,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=$de(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Oae(o,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){vu(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(zt);function Ude(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(dt(o)&&!isNaN(o)&&o<0)})}}}function Yde(e){e.registerChartView(Gde),e.registerSeriesModel(Wde),t$("pie",e.registerAction),e.registerLayout(Ue(Nde,"pie")),e.registerProcessor($h("pie")),e.registerProcessor(Ude("pie"))}var Xde=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return Ro(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(zt),V4=4,jde=function(){function e(){}return e}(),Zde=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new jde},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),qde=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Gh("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Kde:new Fh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(kt),Jde=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ot),Aw=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",dn).models[0]},t.type="cartesian2dAxis",t}(ot);mn(Aw,Bh);var O4={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Qde=Ze({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},O4),QA=Ze({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},O4),eve=Ze({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},QA),tve=Re({logBase:10},QA);const N4={category:Qde,value:QA,time:eve,log:tve};var nve={value:1,category:1,time:1,log:1};function uf(e,t,n,r){R(nve,function(a,i){var o=Ze(Ze({},N4[i],!0),r,!0),s=function(l){ee(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Hv(this),v=d?Ef(c):{},h=f.getTheme();Ze(c,h.get(i+"Axis")),Ze(c,this.getDefaultOption()),c.type=s2(c),d&&Ps(c,v,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=_w.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",s2)}function s2(e){return e.type||(e.data?"category":"value")}var rve=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return pe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Tt(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}(),Iw=["x","y"];function l2(e){return e.type==="interval"||e.type==="time"}var ave=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Iw,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!l2(n)||!l2(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,v=o[1]-i[0]*f,h=this._transform=[c,0,0,f,d,v];this._invTransform=Tf([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new Ke(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Zn(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},t.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return Zn(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1])-n,o=Math.min(a[0],a[1])-n,s=Math.max(r[0],r[1])-i+n,l=Math.max(a[0],a[1])-o+n;return new Ke(i,o,s,l)},t}(rve),ive=function(e){ee(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(oi);function Dw(e,t,n){n=n||{};var r=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,h=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));h[d.onZero]=Math.max(Math.min(g,h[1]),h[0])}i.position=[u==="y"?h[d[l]]:f[0],u==="x"?h[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[s],i.labelOffset=o?h[d[s]]-h[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Hn(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function u2(e){return e.get("coordinateSystem")==="cartesian2d"}function c2(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,dn).models[0];t[r]=i}),t}var tS=Math.log;function B4(e,t,n){var r=Co.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=H$(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=tS(e.base);u=[tS(u[0])/d,tS(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=r.getExtent.call(e);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var h=r.getInterval.call(e),g=u[0],p=u[1];if(c&&f)h=(p-g)/o;else if(c)for(p=u[0]+h*o;pu[0]&&isFinite(g)&&isFinite(u[0]);)h=Fb(h),g=u[1]-h*o;else{var m=e.getTicks().length-1;m>o&&(h=Fb(h));var y=h*o;p=Math.ceil(u[1]/h)*h,g=tn(p-y),g<0&&u[0]>=0?(g=0,p=tn(y)):p>0&&u[1]<=0&&(p=0,g=-tn(y))}var _=(a[0].value-i[0].value)/s,b=(a[o].value-i[o].value)/s;r.setExtent.call(e,g+h*_,p+h*b),r.setInterval.call(e,h),(_||b)&&r.setNiceExtent.call(e,g+h,p-h)}var ove=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Iw,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=st(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],v=o[d],h=v.model,g=v.scale;bw(g)&&h.get("alignTicks")&&h.get("interval")==null?c.push(v):(sf(g,h),bw(g)&&(s=v))}c.length&&(s||(s=c.pop(),sf(s.scale,s.model)),R(c,function(p){B4(p.scale,p.model,s.scale)}))}}a(r.x),a(r.y);var i={};R(r.x,function(o){f2(r,"y",o,i)}),R(r.y,function(o){f2(r,"x",o,i)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var a=t.getBoxLayoutParams(),i=!r&&t.get("containLabel"),o=xn(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Fce(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),sve(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Oe(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Vv(a-ds)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),v2={axisLine:function(e,t,n,r){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Zn(s,s,o),Zn(l,l,o));var c=ce({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ln({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});rf(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var v=t.get(["axisLine","symbolSize"]);Ae(d)&&(d=[d,d]),(Ae(v)||dt(v))&&(v=[v,v]);var h=Ru(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];R([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=hn(d[y],-g/2,-p/2,g,p,c.stroke,!0),b=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+b*Math.cos(e.rotation),y:x[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var a=cve(n,r,t,e),i=dve(n,r,t,e);if(uve(t,i,a),fve(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=t4(pe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));a4(o)}},axisName:function(e,t,n,r){var a=Hn(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,g2(i)?e.labelOffset+o*l:0],d,v=t.get("nameRotate");v!=null&&(v=v*ds/180);var h;g2(i)?d=Ar.innerTextLayout(e.rotation,v??e.rotation,o):(d=lve(e.rotation,i,v||0,u),h=e.axisNameAvailableWidth,h!=null&&(h=Math.abs(h/Math.sin(d.rotation)),!isFinite(h)&&(h=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,y=Hn(e.nameTruncateMaxWidth,p.maxWidth,h),_=new ft({x:f[0],y:f[1],rotation:d.rotation,silent:Ar.isLabelSilent(t),style:Nt(s,{text:a,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Pf({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var b=Ar.makeAxisEventDataBase(t);b.targetType="axisName",b.name=a,He(_).eventData=b}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function lve(e,t,n,r){var a=nH(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Vv(a-ds/2)?(o=l?"bottom":"top",i="center"):Vv(a-ds*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",ads/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function uve(e,t,n){if(!G$(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(ua(i),ua(u)):h2(i,o)&&(r?(ua(o),ua(c)):(ua(i),ua(u))),a===!1?(ua(s),ua(f)):h2(l,s)&&(a?(ua(l),ua(d)):(ua(s),ua(f)))}}function ua(e){e&&(e.ignore=!0)}function h2(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=x0([]);return Lu(a,a,-e.rotation),n.applyTransform(uo([],a,e.getLocalTransform())),r.applyTransform(uo([],a,t.getLocalTransform())),n.intersect(r)}}function g2(e){return e==="middle"||e==="center"}function z4(e,t,n,r,a){for(var i=[],o=[],s=[],l=0;l=0||e===t}function yve(e){var t=eI(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=Pw(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var g=l;h.color!=null&&(g=Re({color:h.color},l));var p=Ze(Ne(h),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(Ae(c)){var m=p.name;p.name=c.replace("{value}",m??"")}else Ee(c)&&(p.name=c(p.name,p));var y=new _t(p,null,this.ecModel);return mn(y,Bh.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ze({lineStyle:{color:"#bbb"}},fd.axisLine),axisLabel:ep(fd.axisLabel,!1),axisTick:ep(fd.axisTick,!1),splitLine:ep(fd.splitLine,!0),splitArea:ep(fd.splitArea,!0),indicator:[]},t}(ot),Mve=["axisLine","axisTickLabel","axisName"],Lve=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=pe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Ar(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});R(i,function(o){R(Mve,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),v=u.get("color"),h=he(d)?d:[d],g=he(v)?v:[v],p=[],m=[];function y(V,N,$){var z=$%N.length;return V[z]=V[z]||[],z}if(i==="circle")for(var _=a[0].getTicksCoords(),b=r.cx,x=r.cy,S=0;S<_.length;S++){if(c){var T=y(p,h,S);p[T].push(new Eo({shape:{cx:b,cy:x,r:_[S].coord}}))}if(f&&S<_.length-1){var T=y(m,g,S);m[T].push(new kh({shape:{cx:b,cy:x,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var C,w=pe(a,function(V,N){var $=V.getTicksCoords();return C=C==null?$.length-1:Math.min($.length-1,C),pe($,function(z){return r.coordToPoint(z.coord,N)})}),A=[],S=0;S<=C;S++){for(var D=[],P=0;P3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;aS(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);aS(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!S2(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;aS(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(Ra);function aS(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(_o(r.event),U4(e,t,n,r,a))}function U4(e,t,n,r,a){a.isAvailableBehavior=Ie(Hp,null,n,r),e.trigger(t,a)}function Hp(e,t,n){var r=n[e];return!e||r&&(!Ae(r)||t.event[r+"Key"])}function nI(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function rI(e,t,n,r){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var zve={axisPointer:1,tooltip:1,brush:1};function Q0(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!zve.hasOwnProperty(r.mainType)&&a&&a.model!==n}function Y4(e){if(Ae(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var iS,ty={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},x2=st(ty),ny={"alignment-baseline":"textBaseline","stop-color":"stopColor"},w2=st(ny),Fve=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=Y4(t);this._defsUsePending=[];var a=new ze;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Xr(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;$ve(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=e_(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=j4(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var v=a;a=new ze,a.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new ut({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,n,r,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=iS[s];if(c&&Pe(iS,s)){l=c.call(this,t,n);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var v=C2[s];if(v&&Pe(C2,s)){var h=v.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=h)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,r,u,i,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},e.prototype._parseText=function(t,n){var r=new nf({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),Hve(r,n);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=function(){iS={g:function(t,n){var r=new ze;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new ut;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new Eo;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new Ln;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new L0;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),a;r&&(a=I2(r));var i=new kr({shape:{points:a||[]},silent:!0});return ca(n,i),Xr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=I2(r));var i=new Lr({shape:{points:a||[]},silent:!0});return ca(n,i),Xr(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new Yn;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new ze;return ca(n,s),Xr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),a=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new ze;return ca(n,s),Xr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,n){var r=t.getAttribute("d")||"",a=NH(r);return ca(n,a),Xr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),C2={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new Lh(t,n,r,a);return T2(e,i),A2(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),a=new HH(t,n,r);return T2(e,a),A2(e,a),a}};function T2(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function A2(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};X4(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function ca(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Re(t.__inheritedStyle,e.__inheritedStyle))}function I2(e){for(var t=e_(e),n=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=e_(o);switch(a=a||Jr(),s){case"translate":Li(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":qT(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Lu(a,a,-parseFloat(l[0])*oS,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*oS);uo(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*oS);uo(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var P2=/([^\s:;]+)\s*:\s*([^:;]+)/g;function X4(e,t,n){var r=e.getAttribute("style");if(r){P2.lastIndex=0;for(var a;(a=P2.exec(r))!=null;){var i=a[1],o=Pe(ty,i)?ty[i]:null;o&&(t[o]=a[2]);var s=Pe(ny,i)?ny[i]:null;s&&(n[s]=a[2])}}}function Xve(e,t,n){for(var r=0;r0,p={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(p):l.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=Le(),r=Le(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(v,h){return h&&(v=h(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var h=[],g=!u&&l&&l.project,p=0;p=0)&&(d=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Qn(t,Vn(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},v);var h=t.getTextContent();if(h&&(Z4(h).ignore=h.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function R2(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):He(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function V2(e,t,n,r,a){e.data||Pf({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function O2(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return qt(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&uoe(t,a,n),o}function N2(e,t,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),R(e,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(zt);function vhe(e,t){var n={};return R(e,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c1?(b.width=_,b.height=_/p):(b.height=_,b.width=_*p),b.y=y[1]-b.height/2,b.x=y[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=p,b=xn(x,{width:h,height:g})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function mhe(e,t){R(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var yhe=function(){function e(){this.dimensions=q4}return e.prototype.create=function(t,n){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Lw(l+s,l,ce({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=H2,u.resize(o,n)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),R(i,function(o,s){var l=pe(o,function(c){return c.get("nameMap")}),u=new Lw(s,s,ce({nameMap:YT(l)},a(o[0])));u.zoomLimit=Hn.apply(null,pe(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=H2,u.resize(o[0],n),R(o,function(c){c.coordinateSystem=u,mhe(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=Le(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function Che(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,a=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){Ihe(e);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=Dhe(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function The(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function $2(e){return arguments.length?e:Mhe}function Ld(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Ahe(e,t){return xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ihe(e){for(var t=e.children,n=t.length,r=0,a=0;--n>=0;){var i=t[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function Dhe(e,t,n,r){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=sS(s),i=lS(i),s&&i;){a=sS(a),o=lS(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(khe(Phe(s,e,n),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!sS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!lS(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function sS(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function lS(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Phe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function khe(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Mhe(e,t){return e.parentNode===t.parentNode?1:2}var Lhe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Ehe=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lhe},t.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=we(r.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(v[0],v[1]),n.moveTo(s[0],s[1]),v[c]=s[c],n.lineTo(v[0],v[1]),v[c]=l[c],n.lineTo(v[0],v[1]),n.lineTo(l[0],l[1]);for(var h=1;hy.x,x||(b=b-Math.PI));var T=x?"left":"right",C=s.getModel("label"),w=C.get("rotate"),A=w*(Math.PI/180),D=p.getTextContent();D&&(p.setTextConfig({position:C.get("position")||T,rotation:w==null?-b:A,origin:"center"}),D.setStyle("verticalAlign","middle"))}var P=s.get(["emphasis","focus"]),k=P==="relative"?Tm(o.getAncestorsIndices(),o.getDescendantIndices()):P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():null;k&&(He(n).focus=k),Vhe(a,o,c,n,h,v,g,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var V=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);V&&V.hoverState===Ph||Vm(n.__edge,L)}})}function Vhe(e,t,n,r,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),v=e.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new Mh({shape:Ew(c,f,d,a,a)})),vt(g,{shape:Ew(c,f,d,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,m=[],y=0;yn&&(n=a.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,a=r.length;n=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n=0){var r=n.getData().tree.root,a=e.targetNode;if(Ae(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function rW(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function lI(e,t){var n=rW(e);return Qe(n,t)>=0}function t_(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Whe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new _t(a,this,this.ecModel),o=sI.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,v){var h=o.getNodeByDataIndex(v);return h&&h.children.length&&h.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return On("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=t_(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(zt);function Uhe(e,t,n){for(var r=[e],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)n.push(a[i])}}function Yhe(e,t){e.eachSeriesByType("tree",function(n){Xhe(n,t)})}function Xhe(e,t){var n=Ahe(e,t);e.layoutInfo=n;var r=e.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(n.height,n.width)/2,o=$2(function(_,b){return(_.parentNode===b.parentNode?1:2)/_.depth})):(a=n.width,i=n.height,o=$2());var s=e.getData().tree.root,l=s.children[0];if(l){whe(s),Uhe(l,Che,o),s.hierNode.modifier=-l.hierNode.prelim,vd(l,The);var u=l,c=l,f=l;vd(l,function(_){var b=_.getLayout().x;bc.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,v=d-u.getLayout().x,h=0,g=0,p=0,m=0;if(r==="radial")h=a/(c.getLayout().x+d+v),g=i/(f.depth-1||1),vd(l,function(_){p=(_.getLayout().x+v)*h,m=(_.depth-1)*g;var b=Ld(p,m);_.setLayout({x:b.x,y:b.y,rawX:p,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(g=i/(c.getLayout().x+d+v),h=a/(f.depth-1||1),vd(l,function(_){m=(_.getLayout().x+v)*g,p=y==="LR"?(_.depth-1)*h:a-(_.depth-1)*h,_.setLayout({x:p,y:m},!0)})):(y==="TB"||y==="BT")&&(h=a/(c.getLayout().x+d+v),g=i/(f.depth-1||1),vd(l,function(_){p=(_.getLayout().x+v)*h,m=y==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:p,y:m},!0)}))}}}function jhe(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");ce(s,o)})})}function Zhe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var a=t.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=iI(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function Khe(e){e.registerChartView(Rhe),e.registerSeriesModel(Whe),e.registerLayout(Yhe),e.registerVisual(jhe),Zhe(e)}var j2=["treemapZoomToNode","treemapRender","treemapMove"];function qhe(e){for(var t=0;t1;)i=i.parentNode;var o=sw(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var Jhe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};iW(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new _t({itemStyle:o},this,r);i=n.levels=Qhe(i,r);var l=pe(i||[],function(f){return new _t(f,s,r)},this),u=sI.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,v){var h=u.getNodeByDataIndex(v),g=h?l[h.depth]:null;return d.parentModel=g||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return On("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=t_(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},ce(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Le(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){aW(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(zt);function iW(e){var t=0;R(e.children,function(r){iW(r);var a=r.value;he(a)&&(a=a[0]),t+=a});var n=e.value;he(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),he(e.value)?e.value[0]=n:e.value=n}function Qhe(e,t){var n=It(t.get("color")),r=It(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;R(e,function(s){var l=new _t(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),e}}var ege=8,Z2=8,uS=5,tge=function(){function e(t){this.group=new ze,t.add(this.group)}return e.prototype.render=function(t,n,r,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(t,f,s,l,u,c,a),G0(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=Sn(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+ege*2,n.emptyItemWidth);n.totalWidth+=s+Z2,n.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,n,r,a,i,o,s){for(var l=0,u=n.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=fse(n.pos,n.box),d=n.totalWidth,v=n.renderList,h=a.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var p=v[g],m=p.node,y=p.width,_=p.text;d>f.width&&(d-=y-u,y=u,_=null);var b=new kr({shape:{points:nge(l,0,y,c,g===v.length-1,g===0)},style:Re(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new ft({style:Nt(i,{text:_})}),textConfig:{position:"inside"},z2:If*1e4,onclick:Ue(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Nt(o,{text:_}),b.ensureState("emphasis").style=h,qt(b,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(b),rge(b,t,m),l+=y+Z2}},e.prototype.remove=function(){this.group.removeAll()},e}();function nge(e,t,n,r,a,i){var o=[[a?e:e-uS,t],[e+n,t],[e+n,t+r],[a?e:e-uS,t+r]];return!i&&o.splice(2,0,[e+n+uS,t+r/2]),!a&&o.push([e,t+r/2]),o}function rge(e,t,n){He(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&t_(n,t)}}var age=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aq2||Math.abs(n.dy)>q2)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(n){var r=n.originX,a=n.originY,i=n.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Ke(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var d=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),d)}var h=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;r-=g.x,a-=g.y;var p=Jr();Li(p,p,[-r,-a]),qT(p,p,[h,h]),Li(p,p,[r,a]),l.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Hm(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,a){var i=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new tge(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(lI(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=hd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(kt);function hd(){return{nodeGroup:[],background:[],content:[]}}function cge(e,t,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,h=c.height,g=c.borderWidth,p=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,b=c.upperHeight,x=_&&_.length,S=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),w=d.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,D=le("nodeGroup",Rw);if(!D)return;if(l.add(D),D.x=c.x||0,D.y=c.y||0,D.markRedraw(),ry(D).nodeWidth=v,ry(D).nodeHeight=h,c.isAboveViewRoot)return D;var P=le("background",K2,u,sge);P&&H(D,P,x&&c.upperLabelHeight);var k=d.getModel("emphasis"),L=k.get("focus"),V=k.get("blurScope"),N=k.get("disabled"),$=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(x)Bv(D)&&Rl(D,!1),P&&(Rl(P,!N),f.setItemGraphicEl(o.dataIndex,P),Qx(P,$,V));else{var z=le("content",K2,u,lge);z&&U(D,z),P.disableMorphing=!0,P&&Bv(P)&&Rl(P,!1),Rl(D,!N),f.setItemGraphicEl(o.dataIndex,D),Qx(D,$,V)}return D;function H(Z,te,se){var G=He(te);if(G.dataIndex=o.dataIndex,G.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:v,height:h,r:A}),p)Y(te);else{te.invisible=!1;var B=o.getVisual("style"),j=B.stroke,M=eR(S);M.fill=j;var O=xl(T);O.fill=T.get("borderColor");var X=xl(C);X.fill=C.get("borderColor");var K=xl(w);if(K.fill=w.get("borderColor"),se){var q=v-2*g;J(te,j,B.opacity,{x:g,y:0,width:q,height:b})}else te.removeTextContent();te.setStyle(M),te.ensureState("emphasis").style=O,te.ensureState("blur").style=X,te.ensureState("select").style=K,pu(te)}Z.add(te)}function U(Z,te){var se=He(te);se.dataIndex=o.dataIndex,se.seriesIndex=e.seriesIndex;var G=Math.max(v-2*g,0),B=Math.max(h-2*g,0);if(te.culling=!0,te.setShape({x:g,y:g,width:G,height:B,r:A}),p)Y(te);else{te.invisible=!1;var j=o.getVisual("style"),M=j.fill,O=eR(S);O.fill=M,O.decal=j.decal;var X=xl(T),K=xl(C),q=xl(w);J(te,M,j.opacity,null),te.setStyle(O),te.ensureState("emphasis").style=X,te.ensureState("blur").style=K,te.ensureState("select").style=q,pu(te)}Z.add(te)}function Y(Z){!Z.invisible&&i.push(Z)}function J(Z,te,se,G){var B=d.getModel(G?Q2:J2),j=Sn(d.get("name"),null),M=B.getShallow("show");Qn(Z,Vn(d,G?Q2:J2),{defaultText:M?j:null,inheritColor:te,defaultOpacity:se,labelFetcher:e,labelDataIndex:o.dataIndex});var O=Z.getTextContent();if(O){var X=O.style,K=jT(X.padding||0);G&&(Z.setTextConfig({layoutRect:G}),O.disableLabelLayout=!0),O.beforeUpdate=function(){var re=Math.max((G?G.width:Z.shape.width)-K[1]-K[3],0),me=Math.max((G?G.height:Z.shape.height)-K[0]-K[2],0);(X.width!==re||X.height!==me)&&O.setStyle({width:re,height:me})},X.truncateMinChar=2,X.lineOverflow="truncate",ue(X,G,c);var q=O.getState("emphasis");ue(q?q.style:null,G,c)}}function ue(Z,te,se){var G=Z?Z.text:null;if(!te&&se.isLeafRoot&&G!=null){var B=e.get("drillDownIcon",!0);Z.text=B?B+" "+G:G}}function le(Z,te,se,G){var B=y!=null&&n[Z][y],j=a[Z];return B?(n[Z][y]=null,be(j,B)):p||(B=new te,B instanceof ka&&(B.z2=fge(se,G)),ae(j,B)),t[Z][m]=B}function be(Z,te){var se=Z[m]={};te instanceof Rw?(se.oldX=te.x,se.oldY=te.y):se.oldShape=ce({},te.shape)}function ae(Z,te){var se=Z[m]={},G=o.parentNode,B=te instanceof ze;if(G&&(!r||r.direction==="drillDown")){var j=0,M=0,O=a.background[G.getRawIndex()];!r&&O&&O.oldShape&&(j=O.oldShape.width,M=O.oldShape.height),B?(se.oldX=0,se.oldY=M):se.oldShape={x:j,y:M,width:0,height:0}}se.fadein=!B}}function fge(e,t){return e*oge+t}var Jv=R,dge=Oe,ay=-1,Rn=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=Ne(t);this.type=r,this.mappingMethod=n,this._normalizeData=gge[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(cS(a),vge(a)):n==="category"?a.categories?hge(a):cS(a,!0):(Ir(n!=="linear"||a.dataExtent),cS(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return Ie(this._normalizeData,this)},e.listVisualTypes=function(){return st(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){Oe(t)?R(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=he(t)?[]:Oe(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var n={},r;return t&&Jv(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(he(t))t=t.slice();else if(dge(t)){var n=[];Jv(t,function(r,a){n.push(a)}),t=n}else return[];return t.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var a,i=1/0,o=0,s=n.length;o=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function cS(e,t){var n=e.visual,r=[];Oe(n)?Jv(n,function(i){r.push(i)}):n!=null&&r.push(n);var a={color:1,symbol:1};!t&&r.length===1&&!a.hasOwnProperty(e.type)&&(r[1]=r[0]),oW(e,r)}function np(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:Vw([0,1])}}function tR(e){var t=this.option.visual;return t[Math.round(bt(e,[0,1],[0,t.length-1],!0))]||{}}function gd(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Ed(e){var t=this.option.visual;return t[this.option.loop&&e!==ay?e%t.length:e]}function wl(){return this.option.visual[0]}function Vw(e){return{linear:function(t){return bt(t,e,this.option.visual,!0)},category:Ed,piecewise:function(t,n){var r=Ow.call(this,n);return r==null&&(r=bt(t,e,this.option.visual,!0)),r},fixed:wl}}function Ow(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=Rn.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function oW(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=pe(t,function(n){var r=Qr(n);return r||[0,0,0,1]})),t}var gge={linear:function(e){return bt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Rn.findPieceIndex(e,t,!0);if(n!=null)return bt(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??ay},fixed:ln};function rp(e,t,n){return e?t<=n:t=n.length||g===n[g.depth]){var m=Sge(a,l,g,p,h,r);lW(g,m,n,r)}})}}}function yge(e,t,n){var r=ce({},t),a=n.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function nR(e){var t=fS(e,"color");if(t){var n=fS(e,"colorAlpha"),r=fS(e,"colorSaturation");return r&&(t=Xd(t,null,null,r)),n&&(t=Pm(t,n)),t}}function _ge(e,t){return t!=null?Xd(t,null,null,e):null}function fS(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function bge(e,t,n,r,a,i){if(!(!i||!i.length)){var o=dS(t,"color")||a.color!=null&&a.color!=="none"&&(dS(t,"colorAlpha")||dS(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Rn(f);return sW(d).drColorMappingBy=c,d}}}function dS(e,t){var n=e.get(t);return he(n)&&n.length?{name:t,range:n}:null}function Sge(e,t,n,r,a,i){var o=ce({},t);if(a){var s=a.type,l=s==="color"&&sW(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Qv=Math.max,iy=Math.min,rR=Hn,uI=R,uW=["itemStyle","borderWidth"],xge=["itemStyle","gapWidth"],wge=["upperLabel","show"],Cge=["upperLabel","height"];const Tge={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=xn(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=we(rR(s.width,l[0]),a),c=we(rR(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],v=qv(r,d,e),h=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,g=e.getViewRoot(),p=rW(g);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?Mge(e,v,g,u,c):h?[h.width,h.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(b),cW(g,_,!1,0),b=g.getLayout(),uI(p,function(S,T){var C=(p[T+1]||g).getValue();S.setLayout(ce({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var x=e.getData().tree.root;x.setLayout(Lge(s,h,v),!0),e.setLayoutInfo(s),fW(x,new Ke(-s.x,-s.y,a,i),p,g,0)}};function cW(e,t,n,r){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(uW),u=s.get(xge)/2,c=dW(s),f=Math.max(l,c),d=l-u,v=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Qv(a-2*d,0),i=Qv(i-d-v,0);var h=a*i,g=Age(e,s,h,t,n,r);if(g.length){var p={x:d,y:v,width:a,height:i},m=iy(a,i),y=1/0,_=[];_.area=0;for(var b=0,x=g.length;b=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*ts[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function kge(e,t,n){for(var r=0,a=1/0,i=0,o=void 0,s=e.length;ir&&(r=o));var l=e.area*e.area,u=t*t*n;return l?Qv(u*r/l,l/(u*a)):1/0}function aR(e,t,n,r,a){var i=t===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=t?e.area/t:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=e.length;fmM&&(u=mM),i=s}ur&&(r=t);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var T=b[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(b[1],b[0]);f[0].8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*y+c[1],h=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*T+c[0],i.y=c[1]+w,h=b[0]<0?"right":"left",i.originX=-m*T,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*T+f[0],i.y=f[1]+w,h=b[0]>=0?"right":"left",i.originX=m*T,i.originY=-w;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||h})}},t}(ze),hI=function(){function e(t){this.group=new ze,this._LineCtor=t||vI}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=t,i||a.removeAll();var o=cR(t);t.diff(i).add(function(s){n._doAdd(t,s,o)}).update(function(s,l){n._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=cR(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!Kge(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function cR(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Vn(t)}}function fR(e){return isNaN(e[0])||isNaN(e[1])}function mS(e){return e&&!fR(e[0])&&!fR(e[1])}var yS=[],_S=[],bS=[],sc=zn,SS=Xl,dR=Math.abs;function vR(e,t,n){for(var r=e[0],a=e[1],i=e[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){yS[0]=sc(r[0],a[0],i[0],c),yS[1]=sc(r[1],a[1],i[1],c);var f=dR(SS(yS,t)-l);f=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function xS(e,t){var n=[],r=Lv,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[lo(u[0]),lo(u[1])],u[2]&&u.__original.push(lo(u[2])));var d=u.__original;if(u[2]!=null){if(yr(a[0],d[0]),yr(a[1],d[2]),yr(a[2],d[1]),c&&c!=="none"){var v=Vd(s.node1),h=vR(a,d[0],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],h,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var v=Vd(s.node2),h=vR(a,d[1],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],h,n),a[1][1]=n[1],a[2][1]=n[2]}yr(u[0],a[0]),yr(u[1],a[2]),yr(u[2],a[1])}else{if(yr(i[0],d[0]),yr(i[1],d[1]),Ll(o,i[1],i[0]),Cf(o,o),c&&c!=="none"){var v=Vd(s.node1);Cx(i[0],i[0],o,v*t)}if(f&&f!=="none"){var v=Vd(s.node2);Cx(i[1],i[1],o,-v*t)}yr(u[0],i[0]),yr(u[1],i[1])}})}function hR(e){return e.type==="view"}var qge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var a=new Fh,i=new hI,o=this.group;this._controller=new Uh(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(hR(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):vt(u,c,n)}xS(n.getGraph(),Rd(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var v=n.forceLayout,h=n.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,h);var g=n.get("layout");f.graph.eachNode(function(_){var b=_.dataIndex,x=_.getGraphicEl(),S=_.getModel();if(x){x.off("drag").off("dragend");var T=S.get("draggable");T&&x.on("drag",function(w){switch(g){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,h),v.setFixed(b),f.setItemLayout(b,[x.x,x.y]);break;case"circular":f.setItemLayout(b,[x.x,x.y]),_.setLayout({fixed:!0},!0),dI(n,"symbolSize",_,[w.offsetX,w.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(b,[x.x,x.y]),fI(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){v&&v.setUnfixed(b)}),x.setDraggable(T,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(He(x).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var b=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(He(b).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var p=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(_){pW(_,p,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Q0(u,a,n)}),!hR(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){nI(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){rI(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),xS(n.getGraph(),Rd(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=Rd(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){xS(n.getGraph(),Rd(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(kt);function lc(e){return"_EC_"+e}var Jge=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[lc(t)]){var a=new Cl(t,n);return a.hostGraph=this,this.nodes.push(a),r[lc(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[lc(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(dt(t)&&(t=this.nodes[t]),dt(n)&&(n=this.nodes[n]),t instanceof Cl||(t=a[lc(t)]),n instanceof Cl||(n=a[lc(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new yW(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof Cl&&(t=t.id),n instanceof Cl&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,a=r.length,i=0;i=0&&t.call(n,r[i],i)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&t.call(n,r[i],i)},e.prototype.breadthFirstTraverse=function(t,n,r,a){if(n instanceof Cl||(n=this._nodesMap[lc(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}mn(Cl,_W("hostGraph","data"));mn(yW,_W("hostGraph","edgeData"));function bW(e,t,n,r,a){for(var i=new Jge(r),o=0;o "+d)),u++)}var v=n.get("coordinateSystem"),h;if(v==="cartesian2d"||v==="polar")h=Ro(e,n);else{var g=Vh.get(v),p=g?g.dimensions||[]:[];Qe(p,"value")<0&&p.concat(["value"]);var m=Nh(e,{coordDimensions:p,encodeDefine:n.getEncode()}).dimensions;h=new Tr(m,n),h.initData(e)}var y=new Tr(["value"],n);return y.initData(l,s),a&&a(h,y),tW({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Qge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new Wh(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),vu(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],i=n.data||n.nodes||[],o=this;if(i&&a){zge(this);var s=bW(i,a,this,!0,l);return R(s.edges,function(u){Fge(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(h){var g=o._categoriesModels,p=h.getShallow("category"),m=g[p];return m&&(m.parentModel=h.parentModel,h.parentModel=m),h});var f=_t.prototype.getModel;function d(h,g){var p=f.call(this,h,g);return p.resolveParentPath=v,p}c.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=d,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var g=h.slice();return h[0]==="label"?g[0]="edgeLabel":h[1]==="label"&&(g[1]="edgeLabel"),g}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),On("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=UG({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=pe(this.option.categories||[],function(a){return a.value!=null?a:ce({value:0},a)}),r=new Tr(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt),epe={type:"graphRoam",event:"graphRoam",update:"none"};function tpe(e){e.registerChartView(qge),e.registerSeriesModel(Qge),e.registerProcessor(Rge),e.registerVisual(Vge),e.registerVisual(Oge),e.registerLayout(Hge),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,$ge),e.registerLayout(Uge),e.registerCoordinateSystem("graphView",{dimensions:Yh.dimensions,create:Xge}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ln),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ln),e.registerAction(epe,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=iI(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var npe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),rpe=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new npe},t.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},t}(at);function ape(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=we(n[0],t.getWidth()),s=we(n[1],t.getHeight()),l=we(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function ip(e,t){var n=e==null?"":e+"";return t&&(Ae(t)?n=t.replace("{value}",n):Ee(t)&&(n=t(e))),n}var ipe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=ape(n,a);this._renderMain(n,r,a,i,o),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,a,i,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),v=d?ey:Pr,h=f.get("show"),g=f.getModel("lineStyle"),p=g.get("width"),m=[u,c];oA(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,b=[],x=0;h&&x=w&&(A===0?0:i[A-1][0])Math.PI/2&&(le+=Math.PI)):ue==="tangential"?le=-C-Math.PI/2:dt(ue)&&(le=ue*Math.PI/180),le===0?f.add(new ft({style:Nt(_,{text:H,x:Y,y:J,verticalAlign:V<-.8?"top":V>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):f.add(new ft({style:Nt(_,{text:H,x:Y,y:J,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:Y,originY:J,rotation:le}))}if(y.get("show")&&N!==b){var $=y.get("distance");$=$?$+c:c;for(var be=0;be<=x;be++){L=Math.cos(C),V=Math.sin(C);var ae=new Ln({shape:{x1:L*(h-$)+d,y1:V*(h-$)+v,x2:L*(h-T-$)+d,y2:V*(h-T-$)+v},silent:!0,style:P});P.stroke==="auto"&&ae.setStyle({stroke:i((N+be/x)/b)}),f.add(ae),C+=A}C-=A}else C+=w}},t.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,v=this._progressEls,h=[],g=n.get(["pointer","show"]),p=n.getModel("progress"),m=p.get("show"),y=n.getData(),_=y.mapDimension("value"),b=+n.get("min"),x=+n.get("max"),S=[b,x],T=[s,l];function C(A,D){var P=y.getItemModel(A),k=P.getModel("pointer"),L=we(k.get("width"),o.r),V=we(k.get("length"),o.r),N=n.get(["pointer","icon"]),$=k.get("offsetCenter"),z=we($[0],o.r),H=we($[1],o.r),U=k.get("keepAspect"),Y;return N?Y=hn(N,z-L/2,H-V,L,V,null,U):Y=new rpe({shape:{angle:-Math.PI/2,width:L,r:V,x:z,y:H}}),Y.rotation=-(D+Math.PI/2),Y.x=o.cx,Y.y=o.cy,Y}function w(A,D){var P=p.get("roundCap"),k=P?ey:Pr,L=p.get("overlap"),V=L?p.get("width"):c/y.count(),N=L?o.r-V:o.r-(A+1)*V,$=L?o.r:o.r-A*V,z=new k({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:$}});return L&&(z.z2=x-y.get(_,A)%x),z}(m||g)&&(y.diff(d).add(function(A){var D=y.get(_,A);if(g){var P=C(A,s);Ht(P,{rotation:-((isNaN(+D)?T[0]:bt(D,S,T,!0))+Math.PI/2)},n),f.add(P),y.setItemGraphicEl(A,P)}if(m){var k=w(A,s),L=p.get("clip");Ht(k,{shape:{endAngle:bt(D,S,T,L)}},n),f.add(k),Kx(n.seriesIndex,y.dataType,A,k),h[A]=k}}).update(function(A,D){var P=y.get(_,A);if(g){var k=d.getItemGraphicEl(D),L=k?k.rotation:s,V=C(A,L);V.rotation=L,vt(V,{rotation:-((isNaN(+P)?T[0]:bt(P,S,T,!0))+Math.PI/2)},n),f.add(V),y.setItemGraphicEl(A,V)}if(m){var N=v[D],$=N?N.shape.endAngle:s,z=w(A,$),H=p.get("clip");vt(z,{shape:{endAngle:bt(P,S,T,H)}},n),f.add(z),Kx(n.seriesIndex,y.dataType,A,z),h[A]=z}}).execute(),y.each(function(A){var D=y.getItemModel(A),P=D.getModel("emphasis"),k=P.get("focus"),L=P.get("blurScope"),V=P.get("disabled");if(g){var N=y.getItemGraphicEl(A),$=y.getItemVisual(A,"style"),z=$.fill;if(N instanceof Yn){var H=N.style;N.useStyle(ce({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},$))}else N.useStyle($),N.type!=="pointer"&&N.setColor(z);N.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(bt(y.get(_,A),S,[0,1],!0))),N.z2EmphasisLift=0,Jn(N,D),qt(N,k,L,V)}if(m){var U=h[A];U.useStyle(y.getItemVisual(A,"style")),U.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Jn(U,D),qt(U,k,L,V)}}),this._progressEls=h)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=hn(s,r.cx-o/2+we(l[0],r.r),r.cy-o/2+we(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new ze,v=[],h=[],g=n.isAnimationEnabled(),p=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new ft({silent:!0}),h[m]=new ft({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],h[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),b=new ze,x=i(bt(_,[c,f],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),C=o.cx+we(T[0],o.r),w=o.cy+we(T[1],o.r),A=v[m];A.attr({z2:p?0:2,style:Nt(S,{x:C,y:w,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:x})}),b.add(A)}var D=y.getModel("detail");if(D.get("show")){var P=D.get("offsetCenter"),k=o.cx+we(P[0],o.r),L=o.cy+we(P[1],o.r),V=we(D.get("width"),o.r),N=we(D.get("height"),o.r),$=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:x,A=h[m],z=D.get("formatter");A.attr({z2:p?0:2,style:Nt(D,{x:k,y:L,text:ip(_,z),width:isNaN(V)?null:V,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:$})}),ZH(A,{normal:D},_,function(U){return ip(U,z)}),g&&KH(A,m,l,n,{getFormattedLabel:function(U,Y,J,ue,le,be){return ip(be?be.interpolatedValue:_,z)}}),b.add(A)}d.add(b)}),this.group.add(d),this._titleEls=v,this._detailEls=h},t.type="gauge",t}(kt),ope=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return zf(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(zt);function spe(e){e.registerChartView(ipe),e.registerSeriesModel(ope)}var lpe=["itemStyle","opacity"],upe=function(e){ee(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new Lr,s=new ft;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return t.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(lpe);c=c??1,a||ri(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Ht(i,{style:{opacity:c}},o,r)):vt(i,{style:{opacity:c},shape:{points:l.points}},o,r),Jn(i,s),this._updateLabel(n,r),qt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Qn(o,Vn(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var v=c.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new je(v[0][0],v[0][1]):null},vt(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),UA(a,YA(l),{stroke:d})},t}(kr),cpe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new upe(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);zv(u,n,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(kt),fpe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wh(Ie(this.getData,this),Ie(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return zf(this,{coordDimensions:["value"],encodeDefaulter:Ue(wA,this)})},t.prototype._defaultLabelLine=function(n){vu(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),a=e.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt);function dpe(e,t){return xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vpe(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();oPpe)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!CS(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function CS(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var Lpe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&Ze(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=Tt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);R(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(ot),Epe=function(e){ee(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(oi);function Bu(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=uc(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=uc(s,[0,o]),a=i=uc(s,[a,i]),r=0}t[0]=uc(t[0],n),t[1]=uc(t[1],n);var l=TS(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=uc(t[r],c);var f;return f=TS(t,r),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-r]=t[r]+f.sign*i),t}function TS(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function uc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var AS=R,xW=Math.min,wW=Math.max,mR=Math.floor,Rpe=Math.ceil,yR=tn,Vpe=Math.PI,Ope=function(){function e(t,n,r){this.type="parallel",this._axesMap=Le(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=t.dimensions,i=t.parallelAxisIndex;AS(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Epe(o,q0(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,i=n.pixelDimIndex,o=t[1-i],s=t[i];return o>=r&&o<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var a=r.getData();AS(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),sf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=xn(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=op(t.get("axisExpandWidth"),l),f=op(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=t.get("axisExpandWindow"),h;if(v)h=op(v[1]-v[0],l),v[1]=v[0]+h;else{h=op(c*(f-1),l);var g=t.get("axisExpandCenter")||mR(u/2);v=[c*g-h/2],v[1]=v[0]+h}var p=(s-h)/(u-f);p<3&&(p=0);var m=[mR(yR(v[0]/c,1))+1,Rpe(yR(v[1]/c,1))-1],y=p/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;n.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),AS(r,function(o,s){var l=(a.axisExpandable?Bpe:Npe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Vpe/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],v=Jr();Lu(v,v,d),Li(v,v,f),this._axesLayout[o]={position:f,rotation:d,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];R(o,function(p){s.push(t.mapDimension(p)),l.push(i.get(p).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?Bu(l,a,o,"all"):u="none";else{var v=a[1]-a[0],h=o[1]*s/v;a=[wW(0,h-v/2)],a[1]=xW(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},e}();function op(e,t){return xW(wW(e,t[0]),t[1])}function Npe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Bpe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e=0;a--)wa(r[a])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;i$pe}function PW(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function kW(e,t,n,r){var a=new ze;return a.add(new ut({name:"main",style:_I(n),silent:!0,draggable:!0,cursor:"move",drift:Ue(SR,e,t,a,["n","s","w","e"]),ondragend:Ue(_u,t,{isEnd:!0})})),R(r,function(i){a.add(new ut({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ue(SR,e,t,a,i),ondragend:Ue(_u,t,{isEnd:!0})}))}),a}function MW(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=cf(a,Wpe),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,v=f-i+a/2,h=c-o,g=f-s,p=h+a,m=g+a;Ki(e,t,"main",o,s,h,g),r.transformable&&(Ki(e,t,"w",l,u,i,m),Ki(e,t,"e",d,u,i,m),Ki(e,t,"n",l,u,p,i),Ki(e,t,"s",l,v,p,i),Ki(e,t,"nw",l,u,i,i),Ki(e,t,"ne",d,u,i,i),Ki(e,t,"sw",l,v,i,i),Ki(e,t,"se",d,v,i,i))}function Gw(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(_I(n)),a.attr({silent:!r,cursor:r?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?$w(e,i[0]):Kpe(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Ype[s]+"-resize":null})})}function Ki(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(Jpe(bI(e,t,[[r,a],[r+i,a+o]])))}function _I(e){return Re({strokeNoScale:!0},e.brushStyle)}function LW(e,t,n,r){var a=[th(e,n),th(t,r)],i=[cf(e,n),cf(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Zpe(e){return Jl(e.group)}function $w(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=V0(n[t],Zpe(e));return r[a]}function Kpe(e,t){var n=[$w(e,t[0]),$w(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function SR(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=EW(t,a,i);R(r,function(u){var c=Upe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(LW(s[0][0],s[1][0],s[0][1],s[1][1])),pI(t,n),_u(t,{isEnd:!1})}function qpe(e,t,n,r){var a=t.__brushOption.range,i=EW(e,n,r);R(a,function(o){o[0]+=i[0],o[1]+=i[1]}),pI(e,t),_u(e,{isEnd:!1})}function EW(e,t,n){var r=e.group,a=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function bI(e,t,n){var r=DW(e,t);return r&&r!==yu?r.clipPath(n,e._transform):Ne(n)}function Jpe(e){var t=th(e[0][0],e[1][0]),n=th(e[0][1],e[1][1]),r=cf(e[0][0],e[1][0]),a=cf(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function Qpe(e,t,n){if(!(!e._brushType||tme(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=yI(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var r_={lineX:CR(0),lineY:CR(1),rect:{createCover:function(e,t){function n(r){return r}return kW({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=PW(e);return LW(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){MW(e,t,n,r)},updateCommon:Gw,contain:Uw},polygon:{createCover:function(e,t){var n=new ze;return n.add(new Lr({name:"main",style:_I(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new kr({name:"main",draggable:!0,drift:Ue(qpe,e,t),ondragend:Ue(_u,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:bI(e,t,n)})},updateCommon:Gw,contain:Uw}};function CR(e){return{createCover:function(t,n){return kW({toRectRange:function(r){var a=[r,[0,100]];return e&&a.reverse(),a},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=PW(t),r=th(n[0][e],n[1][e]),a=cf(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=DW(t,n);if(o!==yu&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,i];e&&l.reverse(),MW(t,n,l,a)},updateCommon:Gw,contain:Uw}}function VW(e){return e=SI(e),function(t){return YH(t,e)}}function OW(e,t){return e=SI(e),function(n){var r=t??n,a=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(a||0)]}}function NW(e,t,n){var r=SI(e);return function(a,i){return r.contain(i[0],i[1])&&!Q0(a,t,n)}}function SI(e){return Ke.create(e)}var nme=["axisLine","axisTickLabel","axisName"],rme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new gI(r.getZr())).on("brush",Ie(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!ame(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ze,this.group.add(this._axisGroup),!!n.get("show")){var s=ome(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),v=ce({strokeContainThreshold:c},d),h=new Ar(n,v);R(nme,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(v,u,n,s,c,a),Eh(o,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ke.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:VW(f),isTargetByCursor:NW(f,s,i),getLinearBrushOtherExtent:OW(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(ime(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=pe(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ut);function ame(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function ime(e){var t=e.axis;return pe(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function ome(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var sme={type:"axisAreaSelect",event:"axisAreaSelected"};function lme(e){e.registerAction(sme,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var ume={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function BW(e){e.registerComponentView(kpe),e.registerComponentModel(Lpe),e.registerCoordinateSystem("parallel",Fpe),e.registerPreprocessor(Ape),e.registerComponentModel(Fw),e.registerComponentView(rme),uf(e,"parallel",Fw,ume),lme(e)}function cme(e){tt(BW),e.registerChartView(ype),e.registerSeriesModel(Spe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Tpe)}var fme=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),dme=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new fme},t.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},t.prototype.highlight=function(){So(this)},t.prototype.downplay=function(){xo(this)},t}(at),vme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),v=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(h){var g=new dme,p=He(g);p.dataIndex=h.dataIndex,p.seriesIndex=n.seriesIndex,p.dataType="edge";var m=h.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),b=h.node1.getLayout(),x=h.node1.getModel(),S=x.get("localX"),T=x.get("localY"),C=h.node2.getLayout(),w=h.node2.getModel(),A=w.get("localX"),D=w.get("localY"),P=h.getLayout(),k,L,V,N,$,z,H,U;g.shape.extent=Math.max(1,P.dy),g.shape.orient=v,v==="vertical"?(k=(S!=null?S*u:b.x)+P.sy,L=(T!=null?T*c:b.y)+b.dy,V=(A!=null?A*u:C.x)+P.ty,N=D!=null?D*c:C.y,$=k,z=L*(1-_)+N*_,H=V,U=L*_+N*(1-_)):(k=(S!=null?S*u:b.x)+b.dx,L=(T!=null?T*c:b.y)+P.sy,V=A!=null?A*u:C.x,N=(D!=null?D*c:C.y)+P.ty,$=k*(1-_)+V*_,z=L,H=k*_+V*(1-_),U=N),g.setShape({x1:k,y1:L,x2:V,y2:N,cpx1:$,cpy1:z,cpx2:H,cpy2:U}),g.useStyle(y.getItemStyle()),TR(g.style,v,h);var Y=""+m.get("value"),J=Vn(m,"edgeLabel");Qn(g,J,{labelFetcher:{getFormattedLabel:function(be,ae,Z,te,se,G){return n.getFormattedLabel(be,ae,"edge",te,Ii(se,J.normal&&J.normal.get("formatter"),Y),G)}},labelDataIndex:h.dataIndex,defaultText:Y}),g.setTextConfig({position:"inside"});var ue=m.getModel("emphasis");Jn(g,m,"lineStyle",function(be){var ae=be.getItemStyle();return TR(ae,v,h),ae}),s.add(g),d.setItemGraphicEl(h.dataIndex,g);var le=ue.get("focus");qt(g,le==="adjacency"?h.getAdjacentDataIndices():le==="trajectory"?h.getTrajectoryDataIndices():le,ue.get("blurScope"),ue.get("disabled"))}),o.eachNode(function(h){var g=h.getLayout(),p=h.getModel(),m=p.get("localX"),y=p.get("localY"),_=p.getModel("emphasis"),b=p.get(["itemStyle","borderRadius"])||0,x=new ut({shape:{x:m!=null?m*u:g.x,y:y!=null?y*c:g.y,width:g.dx,height:g.dy,r:b},style:p.getModel("itemStyle").getItemStyle(),z2:10});Qn(x,Vn(p),{labelFetcher:{getFormattedLabel:function(T,C){return n.getFormattedLabel(T,C,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),x.disableLabelAnimation=!0,x.setStyle("fill",h.getVisual("color")),x.setStyle("decal",h.getVisual("style").decal),Jn(x,p),s.add(x),f.setItemGraphicEl(h.dataIndex,x),He(x).dataType="node";var S=_.get("focus");qt(x,S==="adjacency"?h.getAdjacentDataIndices():S==="trajectory"?h.getTrajectoryDataIndices():S,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(h,g){var p=f.getItemModel(g);p.get("draggable")&&(h.drift=function(m,y){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},h.ondragend=function(){i._focusAdjacencyDisabled=!1},h.draggable=!0,h.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(hme(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(kt);function TR(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");Ae(r)&&Ae(a)&&(e.fill=new Lh(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function hme(e,t,n){var r=new ut({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ht(r,{shape:{width:e.width+20}},t,n),r}var gme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new _t(o[l],this,r));if(i&&a){var u=bW(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(v,h){var g=v.parentModel,p=g.getData().getItemLayout(h);if(p){var m=p.depth,y=g.levelModels[m];y&&(v.parentModel=y)}return v}),d.wrapMethod("getItemModel",function(v,h){var g=v.parentModel,p=g.getGraph().getEdgeByIndex(h),m=p.node1.getLayout();if(m){var y=m.depth,_=g.levelModels[y];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return On("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return On("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(zt);function pme(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=mme(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;_me(u);var f=Tt(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),v=n.get("orient"),h=n.get("nodeAlign");yme(u,c,r,a,o,s,d,v,h)})}function mme(e,t){return xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yme(e,t,n,r,a,i,o,s,l){bme(e,t,n,a,i,s,l),Cme(e,t,i,a,r,o,s),Eme(e,s)}function _me(e){R(e,function(t){var n=_s(t.outEdges,oy),r=_s(t.inEdges,oy),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function bme(e,t,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&p.depth>v&&(v=p.depth),g.setLayout({depth:m?p.depth:f},!0),i==="vertical"?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yf-1?v:f-1;o&&o!=="left"&&Sme(e,o,i,T);var C=i==="vertical"?(a-n)/T:(r-n)/T;wme(e,C,i)}function zW(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function Sme(e,t,n,r){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s0;i--)l*=.99,Ime(s,l,o),IS(s,a,n,r,o),Lme(s,l,o),IS(s,a,n,r,o)}function Tme(e,t){var n=[],r=t==="vertical"?"y":"x",a=Yx(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),R(a.keys,function(i){n.push(a.buckets.get(i))}),n}function Ame(e,t,n,r,a,i){var o=1/0;R(e,function(s){var l=s.length,u=0;R(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var h=a==="vertical"?r:n;if(u=c-t-h,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function Ime(e,t,n){R(e.slice().reverse(),function(r){R(r,function(a){if(a.outEdges.length){var i=_s(a.outEdges,Dme,n)/_s(a.outEdges,oy);if(isNaN(i)){var o=a.outEdges.length;i=o?_s(a.outEdges,Pme,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Ms(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Ms(a,n))*t;a.setLayout({y:l},!0)}}})})}function Dme(e,t){return Ms(e.node2,t)*e.getValue()}function Pme(e,t){return Ms(e.node2,t)}function kme(e,t){return Ms(e.node1,t)*e.getValue()}function Mme(e,t){return Ms(e.node1,t)}function Ms(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function oy(e){return e.getValue()}function _s(e,t,n){for(var r=0,a=e.length,i=-1;++io&&(o=l)}),R(r,function(s){var l=new Rn({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&R(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Vme(e){e.registerChartView(vme),e.registerSeriesModel(gme),e.registerLayout(pme),e.registerVisual(Rme),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var FW=function(){function e(){}return e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],v=[a,i],h=v[c].get("type"),g=v[1-c].get("type"),p=t.data;if(p&&l){var m=[];R(p,function(b,x){var S;he(b)?(S=b.slice(),b.unshift(x)):he(b.value)?(S=ce({},b),S.value=S.value.slice(),b.value.unshift(x)):S=b,m.push(S)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:Zm(h),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Zm(g),dimsDef:y.slice()}];return zf(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:Ue(yG,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),HW=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(zt);mn(HW,FW,!0);var Ome=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=AR(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(ri(f),GW(d,f,i,u)):f=AR(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},t.type="boxplot",t}(kt),Nme=function(){function e(){}return e}(),Bme=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new Nme},t.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();ig){var b=[m,_];r.push(b)}}}return{boxData:n,outliers:r}}var Ume={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==fr){var r="";pt(r)}var a=Wme(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Yme(e){e.registerSeriesModel(HW),e.registerChartView(Ome),e.registerLayout(Fme),e.registerTransform(Ume)}var Xme=["color","borderColor"],jme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){Gs(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&IR(u,f))return;var d=DS(f,c,!0);Ht(d,{shape:{points:f.ends}},n,c),PS(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){i.remove(d);return}var v=r.getItemLayout(c);if(s&&IR(u,v)){i.remove(d);return}d?(vt(d,{shape:{points:v.ends}},n,c),ri(d)):d=DS(v),PS(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),DR(n,this.group);var r=n.get("clip",!0)?Hh(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=a.getItemLayout(o),l=DS(s);PS(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){DR(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(kt),Zme=function(){function e(){}return e}(),Kme=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Zme},t.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},t}(at);function DS(e,t,n){var r=e.ends;return new Kme({shape:{points:n?qme(r,e):r},z2:100})}function IR(e,t){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(Xme);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var $W=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(zt);mn($W,FW,!0);function Qme(e){!e||!he(e.series)||R(e.series,function(t){Oe(t)&&t.type==="k"&&(t.type="candlestick")})}var eye=["itemStyle","borderColor"],tye=["itemStyle","borderColor0"],nye=["itemStyle","borderColorDoji"],rye=["itemStyle","color"],aye=["itemStyle","color0"],iye={seriesType:"candlestick",plan:Vf(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?rye:aye)}function r(i,o){return o.get(i===0?nye:i>0?eye:tye)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");ce(f,c)}}}}}},oye={seriesType:"candlestick",plan:Vf(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=sye(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=pe(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?h:v};function v(g,p){for(var m,y=p.getStore();(m=g.next())!=null;){var _=y.get(s,m),b=y.get(u,m),x=y.get(c,m),S=y.get(f,m),T=y.get(d,m),C=Math.min(b,x),w=Math.max(b,x),A=$(C,_),D=$(w,_),P=$(S,_),k=$(T,_),L=[];z(L,D,0),z(L,A,1),L.push(U(k),U(D),U(P),U(A));var V=p.getItemModel(m),N=!!V.get(["itemStyle","borderColorDoji"]);p.setItemLayout(m,{sign:PR(y,m,b,x,c,N),initBaseline:b>x?D[i]:A[i],ends:L,brushRect:H(S,T,_)})}function $(Y,J){var ue=[];return ue[a]=J,ue[i]=Y,isNaN(J)||isNaN(Y)?[NaN,NaN]:t.dataToPoint(ue)}function z(Y,J,ue){var le=J.slice(),be=J.slice();le[a]=Op(le[a]+r/2,1,!1),be[a]=Op(be[a]-r/2,1,!0),ue?Y.push(le,be):Y.push(be,le)}function H(Y,J,ue){var le=$(Y,ue),be=$(J,ue);return le[a]-=r/2,be[a]-=r/2,{x:le[0],y:le[1],width:r,height:be[1]-le[1]}}function U(Y){return Y[a]=Op(Y[a],1),Y}}function h(g,p){for(var m=Ti(g.count*4),y=0,_,b=[],x=[],S,T=p.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(S=g.next())!=null;){var w=T.get(s,S),A=T.get(u,S),D=T.get(c,S),P=T.get(f,S),k=T.get(d,S);if(isNaN(w)||isNaN(P)||isNaN(k)){m[y++]=NaN,y+=3;continue}m[y++]=PR(T,S,A,D,c,C),b[a]=w,b[i]=P,_=t.dataToPoint(b,null,x),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,b[i]=k,_=t.dataToPoint(b,null,x),m[y++]=_?_[1]:NaN}p.setLayout("largePoints",m)}}};function PR(e,t,n,r,a,i){var o;return n>r?o=-1:n0?e.get(a,t-1)<=r?1:-1:1,o}function sye(e,t){var n=e.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=we(We(e.get("barMaxWidth"),a),a),o=we(We(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?we(s,a):Math.max(Math.min(a/2,i),o)}function lye(e){e.registerChartView(jme),e.registerSeriesModel($W),e.registerPreprocessor(Qme),e.registerVisual(iye),e.registerLayout(oye)}function kR(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var uye=function(e){ee(t,e);function t(n,r){var a=e.call(this)||this,i=new zh(n,r),o=new ze;return a.add(i),a.add(o),a.updateData(n,r),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Ee(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return os(n.__p1,n.__cp1)+os(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=zn,c=Mx;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var v=n.__t<1?d[0]-f[0]:f[0]-d[0],h=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(h,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(WW),hye=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),gye=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hye},t.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){n.moveTo(a[o++],a[o++]);for(var l=1;l0){var v=(u+f)/2-(c-d)*i,h=(c+d)/2-(f-u)*i;n.quadraticCurveTo(v,h,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var f=i[u++],d=i[u++],v=1;v0){var p=(f+h)/2-(d-g)*o,m=(d+g)/2-(h-f)*o;if(yH(f,d,p,m,h,g,s,n,r))return l}else if(ns(f,d,h,g,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),YW={seriesType:"lines",plan:Vf(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&Hh(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,a){var i=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=YW.reset(n,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new pye:new hI(o?i?vye:UW:i?WW:vI),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t}(kt),yye=typeof Uint32Array>"u"?Array:Uint32Array,_ye=typeof Float64Array>"u"?Array:Float64Array;function MR(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=pe(t,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),YT([a,n[0],n[1]])}))}var bye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],MR(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(MR(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Tm(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Tm(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(zt);function sp(e){return e instanceof Array||(e=[e,e]),e}var Sye={seriesType:"lines",reset:function(e){var t=sp(e.get("symbol")),n=sp(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(i,o){var s=i.getItemModel(o),l=sp(s.getShallow("symbol",!0)),u=sp(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};function xye(e){e.registerChartView(mye),e.registerSeriesModel(bye),e.registerLayout(YW),e.registerVisual(Sye)}var wye=256,Cye=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=As.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),v=t.length;f.width=n,f.height=r;for(var h=0;h0){var P=o(_)?l:u;_>0&&(_=_*A+C),x[S++]=P[D],x[S++]=P[D+1],x[S++]=P[D+2],x[S++]=P[D+3]*_*256}else S+=4}return d.putImageData(b,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=As.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var a=t.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();function Tye(e,t,n){var r=e[1]-e[0];t=pe(t,function(o){return{interval:[(o.interval[0]-e[0])/r,(o.interval[1]-e[0])/r]}});var a=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&r<=t[1]}}function LR(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Iye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):LR(o)&&this._renderOnGeo(o,n,i,a)},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,a,i){var o=r.coordinateSystem;o&&(LR(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){Gs(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Ou(s,"cartesian2d"),u,c,f,d;if(l){var v=s.getAxis("x"),h=s.getAxis("y");u=v.getBandWidth()+.5,c=h.getBandWidth()+.5,f=v.scale.getExtent(),d=h.scale.getExtent()}for(var g=this.group,p=n.getData(),m=n.getModel(["emphasis","itemStyle"]).getItemStyle(),y=n.getModel(["blur","itemStyle"]).getItemStyle(),_=n.getModel(["select","itemStyle"]).getItemStyle(),b=n.get(["itemStyle","borderRadius"]),x=Vn(n),S=n.getModel("emphasis"),T=S.get("focus"),C=S.get("blurScope"),w=S.get("disabled"),A=l?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],D=a;Df[1]||Vd[1])continue;var N=s.dataToPoint([L,V]);P=new ut({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:k})}else{if(isNaN(p.get(A[1],D)))continue;P=new ut({z2:1,shape:s.dataToRect([p.get(A[0],D)]).contentShape,style:k})}if(p.hasItemOption){var $=p.getItemModel(D),z=$.getModel("emphasis");m=z.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),_=$.getModel(["select","itemStyle"]).getItemStyle(),b=$.get(["itemStyle","borderRadius"]),T=z.get("focus"),C=z.get("blurScope"),w=z.get("disabled"),x=Vn($)}P.shape.r=b;var H=n.getRawValue(D),U="-";H&&H[2]!=null&&(U=H[2]+""),Qn(P,x,{labelFetcher:n,labelDataIndex:D,defaultOpacity:k.opacity,defaultText:U}),P.ensureState("emphasis").style=m,P.ensureState("blur").style=y,P.ensureState("select").style=_,qt(P,T,C,w),P.incremental=o,o&&(P.states.emphasis.hoverLayer=!0),g.add(P),p.setItemGraphicEl(D,P),this._progressiveEls&&this._progressiveEls.push(P)}},t.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Cye;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),v=Math.max(c.y,0),h=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),p=h-d,m=g-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(T,C,w){var A=n.dataToPoint([T,C]);return A[0]-=d,A[1]-=v,A.push(w),A}),b=a.getExtent(),x=a.type==="visualMap.continuous"?Aye(b,a.option.range):Tye(b,a.getPieceList(),a.option.selected);u.update(_,p,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var S=new Yn({style:{width:p,height:m,x:d,y:v,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(kt),Dye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return Ro(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Vh.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(zt);function Pye(e){e.registerChartView(Iye),e.registerSeriesModel(Dye)}var kye=["itemStyle","borderWidth"],ER=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],LS=new Eo,Mye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:ER[+c],categoryDim:ER[1-+c]};o.diff(s).add(function(h){if(o.hasValue(h)){var g=VR(o,h),p=RR(o,h,g,d),m=OR(o,d,p);o.setItemGraphicEl(h,m),i.add(m),BR(m,d,p)}}).update(function(h,g){var p=s.getItemGraphicEl(g);if(!o.hasValue(h)){i.remove(p);return}var m=VR(o,h),y=RR(o,h,m,d),_=JW(o,y);p&&_!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?Bye(p,d,y):p=OR(o,d,y,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=y,i.add(p),BR(p,d,y)}).remove(function(h){var g=s.getItemGraphicEl(h);g&&NR(s,h,g.__pictorialSymbolMeta.animationModel,g)}).execute();var v=n.get("clip",!0)?Hh(n.coordinateSystem,!1,n):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){NR(i,He(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(kt);function RR(e,t,n,r){var a=e.getItemLayout(t),i=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Lye(n,i,a,r,d),Eye(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),Rye(n,d.symbolScale,u,r,d);var v=d.symbolSize,h=Ru(n.get("symbolOffset"),v);return Vye(n,v,a,i,o,h,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function Lye(e,t,n,r,a){var i=r.valueDim,o=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(he(o)){var f=[ES(s,o[0])-l,ES(s,o[1])-l];f[1]0?1:-1}function ES(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Eye(e,t,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),v=e.getItemVisual(t,"symbolSize"),h;he(v)?h=v.slice():v==null?h=["100%","100%"]:h=[v,v],h[f.index]=we(h[f.index],d),h[c.index]=we(h[c.index],r?d:Math.abs(i)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Rye(e,t,n,r,a){var i=e.get(kye)||0;i&&(LS.attr({scaleX:t[0],scaleY:t[1],rotation:n}),LS.updateTransform(),i/=LS.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function Vye(e,t,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,v=c.valueDim,h=f.pxSign,g=Math.max(t[v.index]+s,0),p=g;if(r){var m=Math.abs(l),y=Hn(e.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var b=we(y,t[v.index]),x=Math.max(g+b*2,0),S=_?0:b*2,T=aH(r),C=T?r:zR((m+S)/x),w=m-C*g;b=w/2/(_?C:Math.max(C-1,1)),x=g+b*2,S=_?0:b*2,!T&&r!=="fixed"&&(C=u?zR((Math.abs(u)+S)/x):0),p=C*x-S,f.repeatTimes=C,f.symbolMargin=b}var A=h*(p/2),D=f.pathPosition=[];D[d.index]=n[d.wh]/2,D[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var P=f.bundlePosition=[];P[d.index]=n[d.xy],P[v.index]=n[v.xy];var k=f.barRectShape=ce({},n);k[v.wh]=h*Math.max(Math.abs(n[v.wh]),Math.abs(D[v.index]+A)),k[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[v.xy]=0,L[v.wh]=n[v.wh]}function XW(e){var t=e.symbolPatternSize,n=hn(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function jW(e,t,n,r){var a=e.__pictorialBundle,i=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+n.symbolMargin*2;for(xI(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-g),p[l.index]=f*(y-u/2+.5)+s[l.index],{x:p[0],y:p[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function ZW(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Gc(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=e.__pictorialMainPath=XW(n),a.add(i),Gc(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function KW(e,t,n){var r=ce({},t.barRectShape),a=e.__pictorialBarRect;a?Gc(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new ut({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function qW(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=ce({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)vt(a,{shape:i},s,l);else{i[o.wh]=0,a=new ut({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],Eu[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function VR(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Oye,n.isAnimationEnabled=Nye,n}function Oye(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Nye(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function OR(e,t,n,r){var a=new ze,i=new ze;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?jW(a,t,n):ZW(a,t,n),KW(a,n,r),qW(a,t,n,r),a.__pictorialShapeStr=JW(e,n),a.__pictorialSymbolMeta=n,a}function Bye(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;vt(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?jW(e,t,n,!0):ZW(e,t,n,!0),KW(e,n,!0),qW(e,t,n,!0)}function NR(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];xI(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),R(i,function(o){Ds(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function JW(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function xI(e,t,n){R(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Gc(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&Eu[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function BR(e,t,n){var r=n.dataIndex,a=n.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");xI(e,function(g){if(g instanceof Yn){var p=g.style;g.useStyle(ce({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},n.style))}else g.useStyle(n.style);var m=g.ensureState("emphasis");m.style=o,d&&(m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=n.z2});var v=t.valueDim.posDesc[+(n.boundingLength>0)],h=e.__pictorialBarRect;h.ignoreClip=!0,Qn(h,Vn(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:lf(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:v}),qt(e,c,f,i.get("disabled"))}function zR(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var zye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=$s(Zv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Zv);function Fye(e){e.registerChartView(Mye),e.registerSeriesModel(zye),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ue(V$,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,O$("pictorialBar"))}var Hye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(p){return p.name}var v=new wo(this._layersSeries||[],l,d,d),h=[];v.add(Ie(g,this,"add")).update(Ie(g,this,"update")).remove(Ie(g,this,"remove")).execute();function g(p,m,y){var _=o._layers;if(p==="remove"){s.remove(_[m]);return}for(var b=[],x=[],S,T=l[m].indices,C=0;Ci&&(i=s),r.push(s)}for(var u=0;ui&&(i=f)}return{y0:a,max:i}}function Yye(e){e.registerChartView(Hye),e.registerSeriesModel($ye),e.registerLayout(Wye),e.registerProcessor($h("themeRiver"))}var Xye=2,jye=4,HR=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=Xye,o.textConfig={inside:!0},He(o).seriesIndex=r.seriesIndex;var s=new ft({z2:jye,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return t.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;He(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=ce({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var v=r.getVisual("decal");v&&(d.decal=of(v,o));var h=zl(l.getModel("itemStyle"),f,!0);ce(f,h),R(Dr,function(y){var _=s.ensureState(y),b=l.getModel([y,"itemStyle"]);_.style=b.getItemStyle();var x=zl(b,f);x&&(_.shape=x)}),n?(s.setShape(f),s.shape.r=c.r0,Ht(s,{shape:{r:c.r}},a,r.dataIndex)):(vt(s,{shape:f},a),ri(s)),s.useStyle(d),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=u.get("focus"),m=p==="ancestor"?r.getAncestorsIndices():p==="descendant"?r.getDescendantIndices():p;qt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),v=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(h!=null&&Math.abs(s)L&&!Vv(N-L)&&N0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,n,r,a):(o.virtualPiece=new HR(y,n,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Hm(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Yw,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(kt),Jye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};QW(a);var i=this._levelModels=pe(n.levels||[],function(l){return new _t(l,this,r)},this),o=sI.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=t_(a,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){aW(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(zt);function QW(e){var t=0;R(e.children,function(r){QW(r);var a=r.value;he(a)&&(a=a[0]),t+=a});var n=e.value;he(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),he(e.value)?e.value[0]=n:e.value=n}var $R=Math.PI/180;function Qye(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");he(i)||(i=[0,i]),he(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=we(a[0],o),c=we(a[1],s),f=we(i[0],l/2),d=we(i[1],l/2),v=-r.get("startAngle")*$R,h=r.get("minAngle")*$R,g=r.getData().tree.root,p=r.getViewRoot(),m=p.depth,y=r.get("sort");y!=null&&eU(p,y);var _=0;R(p.children,function(N){!isNaN(N.getValue())&&_++});var b=p.getValue(),x=Math.PI/(b||_)*2,S=p.depth>0,T=p.height-(S?-1:1),C=(d-f)/(T||1),w=r.get("clockwise"),A=r.get("stillShowZeroSum"),D=w?1:-1,P=function(N,$){if(N){var z=$;if(N!==g){var H=N.getValue(),U=b===0&&A?x:H*x;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return r.depth>1&&Ae(s)&&(s=Rx(s,(r.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");ce(u,l)})})}function n0e(e){e.registerChartView(qye),e.registerSeriesModel(Jye),e.registerLayout(Ue(Qye,"sunburst")),e.registerProcessor(Ue($h,"sunburst")),e.registerVisual(t0e),Kye(e)}var WR={color:"fill",borderColor:"stroke"},r0e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},fo=ct(),a0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return Ro(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=fo(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(zt);function i0e(e,t){return t=t||[0,0],pe(["x","y"],function(n,r){var a=this.getAxis(n),i=t[r],o=e[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function o0e(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Ie(i0e,e)}}}function s0e(e,t){return t=t||[0,0],pe([0,1],function(n){var r=t[n],a=e[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function l0e(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:Ie(s0e,e)}}}function u0e(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function c0e(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Ie(u0e,e)}}}function f0e(e,t){return t=t||[0,0],pe(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=t[r],s=e[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function d0e(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Ie(f0e,e)}}}function v0e(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return e.dataToPoint(r,a)}}}}function tU(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||Pe(e,"text")))}function nU(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},Pe(r,"text")&&(o.text=r.text),Pe(r,"rich")&&(o.rich=r.rich),Pe(r,"textFill")&&(o.fill=r.textFill),Pe(r,"textStroke")&&(o.stroke=r.textStroke),Pe(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Pe(r,"fontSize")&&(o.fontSize=r.fontSize),Pe(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Pe(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Pe(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),Pe(r,"textPosition")&&(a.position=r.textPosition),Pe(r,"textOffset")&&(a.offset=r.textOffset),Pe(r,"textRotation")&&(a.rotation=r.textRotation),Pe(r,"textDistance")&&(a.distance=r.textDistance)}return UR(o,e),R(o.rich,function(l){UR(l,l)}),{textConfig:a,textContent:i}}function UR(e,t){t&&(t.font=t.textFont||t.font,Pe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Pe(t,"textAlign")&&(e.align=t.textAlign),Pe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Pe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Pe(t,"textWidth")&&(e.width=t.textWidth),Pe(t,"textHeight")&&(e.height=t.textHeight),Pe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Pe(t,"textPadding")&&(e.padding=t.textPadding),Pe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Pe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Pe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Pe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Pe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Pe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Pe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function YR(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,i=e.fill||"#000";XR(r,t);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,R(t.rich,function(s){XR(s,s)}),r}function XR(e,t){t&&(Pe(t,"fill")&&(e.textFill=t.fill),Pe(t,"stroke")&&(e.textStroke=t.fill),Pe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Pe(t,"font")&&(e.font=t.font),Pe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Pe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Pe(t,"fontSize")&&(e.fontSize=t.fontSize),Pe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Pe(t,"align")&&(e.textAlign=t.align),Pe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Pe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Pe(t,"width")&&(e.textWidth=t.width),Pe(t,"height")&&(e.textHeight=t.height),Pe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Pe(t,"padding")&&(e.textPadding=t.padding),Pe(t,"borderColor")&&(e.textBorderColor=t.borderColor),Pe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Pe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Pe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Pe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Pe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Pe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Pe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Pe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Pe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Pe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var rU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},jR=st(rU);Mi(Ei,function(e,t){return e[t]=1,e},{});Ei.join(", ");var sy=["","style","shape","extra"],ff=ct();function wI(e,t,n,r,a){var i=e+"Animation",o=Df(e,r,a)||{},s=ff(t).userDuring;return o.duration>0&&(o.during=s?Ie(y0e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),ce(o,n[i]),o}function Gp(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=ff(e),u=t.style;l.userDuring=t.during;var c={},f={};if(b0e(e,t,f),KR("shape",t,f),KR("extra",t,f),!i&&s&&(_0e(e,t,c),ZR("shape",e,t,c),ZR("extra",e,t,c),S0e(e,t,u,c)),f.style=u,h0e(e,f,o),p0e(e,t),s)if(i){var d={};R(sy,function(h){var g=h?t[h]:t;g&&g.enterFrom&&(h&&(d[h]=d[h]||{}),ce(h?d[h]:d,g.enterFrom))});var v=wI("enter",e,t,n,a);v.duration>0&&e.animateFrom(d,v)}else g0e(e,t,a||0,n,c);aU(e,t),u?e.dirty():e.markRedraw()}function aU(e,t){for(var n=ff(e).leaveToProps,r=0;r0&&e.animateFrom(a,i)}}function p0e(e,t){Pe(t,"silent")&&(e.silent=t.silent),Pe(t,"ignore")&&(e.ignore=t.ignore),e instanceof ka&&Pe(t,"invisible")&&(e.invisible=t.invisible),e instanceof at&&Pe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var hi={},m0e={setTransform:function(e,t){return hi.el[e]=t,this},getTransform:function(e){return hi.el[e]},setShape:function(e,t){var n=hi.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=hi.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=hi.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=hi.el.style;if(t)return t[e]},setExtra:function(e,t){var n=hi.el.extra||(hi.el.extra={});return n[e]=t,this},getExtra:function(e){var t=hi.el.extra;if(t)return t[e]}};function y0e(){var e=this,t=e.el;if(t){var n=ff(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}hi.el=t,r(m0e)}}function ZR(e,t,n,r){var a=n[e];if(a){var i=t[e],o;if(i){var s=n.transition,l=a.transition;if(l)if(!o&&(o=r[e]={}),tu(l))ce(o,i);else for(var u=It(l),c=0;c=0){!o&&(o=r[e]={});for(var v=st(i),c=0;c=0)){var d=e.getAnimationStyleProps(),v=d?d.style:null;if(v){!i&&(i=r.style={});for(var h=st(n),u=0;u=0?t.getStore().get($,V):void 0}var z=t.get(N.name,V),H=N&&N.ordinalMeta;return H?H.categories[z]:z}function S(L,V){V==null&&(V=u);var N=t.getItemVisual(V,"style"),$=N&&N.fill,z=N&&N.opacity,H=y(V,vs).getItemStyle();$!=null&&(H.fill=$),z!=null&&(H.opacity=z);var U={inheritColor:Ae($)?$:"#000"},Y=_(V,vs),J=Nt(Y,null,U,!1,!0);J.text=Y.getShallow("show")?We(e.getFormattedLabel(V,vs),lf(t,V)):null;var ue=zm(Y,U,!1);return w(L,H),H=YR(H,J,ue),L&&C(H,L),H.legacy=!0,H}function T(L,V){V==null&&(V=u);var N=y(V,vo).getItemStyle(),$=_(V,vo),z=Nt($,null,null,!0,!0);z.text=$.getShallow("show")?Ii(e.getFormattedLabel(V,vo),e.getFormattedLabel(V,vs),lf(t,V)):null;var H=zm($,null,!0);return w(L,N),N=YR(N,z,H),L&&C(N,L),N.legacy=!0,N}function C(L,V){for(var N in V)Pe(V,N)&&(L[N]=V[N])}function w(L,V){L&&(L.textFill&&(V.textFill=L.textFill),L.textPosition&&(V.textPosition=L.textPosition))}function A(L,V){if(V==null&&(V=u),Pe(WR,L)){var N=t.getItemVisual(V,"style");return N?N[WR[L]]:null}if(Pe(r0e,L))return t.getItemVisual(V,L)}function D(L){if(i.type==="cartesian2d"){var V=i.getBaseAxis();return bce(Re({axis:V},L))}}function P(){return n.getCurrentSeriesIndices()}function k(L){return pA(L,n)}}function M0e(e){var t={};return R(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=t[a]=t[a]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function NS(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=DI(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&qt(s,r.focus,r.blurScope,r.emphasisDisabled),s}function DI(e,t,n,r,a,i){var o=-1,s=t;t&&lU(t,r,a)&&(o=Qe(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=AI(r),s&&I0e(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),fa.normal.cfg=fa.normal.conOpt=fa.emphasis.cfg=fa.emphasis.conOpt=fa.blur.cfg=fa.blur.conOpt=fa.select.cfg=fa.select.conOpt=null,fa.isLegacy=!1,E0e(u,n,r,a,l,fa),L0e(u,n,r,a,l),II(e,u,n,r,fa,a,l),Pe(r,"info")&&(fo(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function lU(e,t,n){var r=fo(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&B0e(i)&&uU(i)!==r.customPathData||a==="image"&&Pe(o,"image")&&o.image!==r.customImagePath}function L0e(e,t,n,r,a){var i=n.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&lU(o,i,r)&&(o=null),o||(o=AI(i),e.setClipPath(o)),II(null,o,t,i,null,r,a)}}function E0e(e,t,n,r,a,i){if(!e.isGroup){JR(n,null,i),JR(n,vo,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=AI(o),e.setTextContent(c)),II(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d=c;v--){var h=t.childAt(v);V0e(t,h,a)}}}function V0e(e,t,n){t&&a_(t,fo(e).option,n)}function O0e(e){new wo(e.oldChildren,e.newChildren,QR,QR,e).add(eV).update(eV).remove(N0e).execute()}function QR(e,t){var n=e&&e.name;return n??T0e+t}function eV(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;DI(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function N0e(e){var t=this.context,n=t.oldChildren[e];n&&a_(n,fo(n).option,t.seriesModel)}function uU(e){return e&&(e.pathData||e.d)}function B0e(e){return e&&(Pe(e,"pathData")||Pe(e,"d"))}function z0e(e){e.registerChartView(D0e),e.registerSeriesModel(a0e)}var Dl=ct(),tV=Ne,BS=Ie,kI=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new ze,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Ue(nV,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}aV(s,n,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),a=t.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=eI(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,a,i){},e.prototype.createPointerEl=function(t,n,r,a){var i=n.pointer;if(i){var o=Dl(t).pointerEl=new Eu[i.type](tV(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=Dl(t).labelEl=new ft(tV(n.label));t.add(i),rV(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=Dl(t).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,a){var i=Dl(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),rV(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Rh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_o(u.event)},onmousedown:BS(this._onHandleDragMove,this,0,0),drift:BS(this._onHandleDragMove,this),ondragend:BS(this._onHandleDragEnd,this)}),r.add(a)),aV(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");he(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Of(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){nV(this._axisPointerModel,!n&&this._moveAnimation,this._handle,zS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(zS(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(zS(a)),Dl(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),$v(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function nV(e,t,n,r){cU(Dl(n).lastProp,r)||(Dl(n).lastProp=r,t?vt(n,r,e):(n.stopAnimation(),n.attr(r)))}function cU(e,t){if(Oe(e)&&Oe(t)){var n=!0;return R(t,function(r,a){n=n&&cU(e[a],r)}),!!n}else return e===t}function rV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function zS(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function aV(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}function MI(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function fU(e,t,n,r,a){var i=n.get("value"),o=dU(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Lf(s.get("padding")||0),u=s.getFont(),c=Ih(o,u),f=a.position,d=c.width+l[1]+l[3],v=c.height+l[0]+l[2],h=a.align;h==="right"&&(f[0]-=d),h==="center"&&(f[0]-=d/2);var g=a.verticalAlign;g==="bottom"&&(f[1]-=v),g==="middle"&&(f[1]-=v/2),F0e(f,d,v,r);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Nt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function F0e(e,t,n,r){var a=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function dU(e,t,n,r,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:$A(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ae(o)?i=o.replace("{value}",i):Ee(o)&&(i=o(s))}return i}function LI(e,t,n){var r=Jr();return Lu(r,r,n.rotation),Li(r,r,n.position),Ka([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function vU(e,t,n,r,a,i){var o=Ar.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),fU(t,r,a,i,{position:LI(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function EI(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function hU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function iV(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var H0e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=oV(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=MI(i),v=G0e[u](s,f,c);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=Dw(l.model,a);vU(r,n,h,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=Dw(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=LI(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=oV(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,v=[d,d];v[c]=f[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:v,tooltipOption:h[c]}},t}(kI);function oV(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var G0e={line:function(e,t,n){var r=EI([t,n[0]],[t,n[1]],sV(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:hU([t-r/2,n[0]],[r,a],sV(e))}}};function sV(e){return e.dim==="x"?0:1}var $0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ot),io=ct(),W0e=R;function gU(e,t,n){if(!it.node){var r=t.getZr();io(r).records||(io(r).records={}),U0e(r,t);var a=io(r).records[e]||(io(r).records[e]={});a.handler=n}}function U0e(e,t){if(io(e).initialized)return;io(e).initialized=!0,n("click",Ue(lV,"click")),n("mousemove",Ue(lV,"mousemove")),n("globalout",X0e);function n(r,a){e.on(r,function(i){var o=j0e(t);W0e(io(e).records,function(s){s&&a(s,i,o.dispatchAction)}),Y0e(o.pendings,t)})}}function Y0e(e,t){var n=e.showTip.length,r=e.hideTip.length,a;n?a=e.showTip[n-1]:r&&(a=e.hideTip[r-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function X0e(e,t,n){e.handler("leave",null,n)}function lV(e,t,n,r){t.handler(e,n,r)}function j0e(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Zw(e,t){if(!it.node){var n=t.getZr(),r=(io(n).records||{})[e];r&&(io(n).records[e]=null)}}var Z0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";gU("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){Zw("axisPointer",r)},t.prototype.dispose=function(n,r){Zw("axisPointer",r)},t.type="axisPointer",t}(Ut);function pU(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=hu(i,e);if(o==null||o<0||he(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,v=f==="x"||f==="radius"?1:0,h=i.mapDimension(d),g=[];g[v]=i.get(h,o),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(i.getValues(pe(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),n=[p.x+p.width/2,p.y+p.height/2]}return{point:n,el:s}}var uV=ct();function K0e(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||Ie(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){$p(a)&&(a=pU({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=$p(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||$p(a),d={},v={},h={list:[],map:{}},g={showPointer:Ue(J0e,v),showTooltip:Ue(Q0e,h)};R(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);R(s.coordSysAxesInfo[y],function(b,x){var S=b.axis,T=r_e(u,b);if(!f&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&cV(b,C,g,!1,d)}})});var p={};return R(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&R(_.axesInfo,function(b,x){var S=v[x];if(b!==m&&S){var T=S.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,fV(b),fV(m)))),p[m.key]=T}})}),R(p,function(m,y){cV(c[y],m,g,!0,d)}),e_e(v,c,d),t_e(h,a,e,o),n_e(c,o,n),d}}function cV(e,t,n,r,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=q0e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&ce(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function q0e(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,e,n);d=v.dataIndices,f=v.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var h=e-f,g=Math.abs(h);g<=o&&((g=0&&s<0)&&(o=g,s=h,a=f,i.length=0),R(d,function(p){i.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function J0e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Q0e(e,t,n,r){var a=n.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Kv(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function e_e(e,t,n){var r=n.axesInfo=[];R(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function t_e(e,t,n,r){if($p(t)||!e.list.length){r({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function n_e(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=uV(r)[a]||{},o=uV(r)[a]={};R(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&R(f.seriesDataIndices,function(d){var v=d.seriesIndex+" | "+d.dataIndex;o[v]=d})});var s=[],l=[];R(i,function(u,c){!o[c]&&l.push(u)}),R(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function r_e(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function fV(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function $p(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Xh(e){Nu.registerAxisPointerClass("CartesianAxisPointer",H0e),e.registerComponentModel($0e),e.registerComponentView(Z0e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!he(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=vve(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},K0e)}function a_e(e){tt(W4),tt(Xh)}var i_e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=i.get("type");if(d&&d!=="none"){var v=MI(i),h=s_e[d](s,l,f,c);h.style=v,n.graphicKey=h.type,n.pointer=h}var g=i.get(["label","margin"]),p=o_e(r,a,i,l,g);fU(n,a,i,o,p)},t}(kI);function o_e(e,t,n,r,a){var i=t.axis,o=i.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=Jr();Lu(d,d,s),Li(d,d,[r.cx,r.cy]),u=Ka([o,-a],d);var v=t.getModel("axisLabel").get("rotate")||0,h=Ar.innerTextLayout(s,v*Math.PI/180,-1);c=h.textAlign,f=h.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var p=r.cx,m=r.cy;c=Math.abs(u[0]-p)/g<.3?"center":u[0]>p?"left":"right",f=Math.abs(u[1]-m)/g<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var s_e={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:EI(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:iV(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:iV(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}},l_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ot),RI=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",dn).models[0]},t.type="polarAxis",t}(ot);mn(RI,Bh);var u_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(RI),c_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(RI),VI=function(e){ee(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t}(oi);VI.prototype.dataToRadius=oi.prototype.dataToCoord;VI.prototype.radiusToData=oi.prototype.coordToData;var f_e=ct(),OI=function(e){ee(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=Ih(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var v=Math.max(0,Math.floor(d)),h=f_e(n.model),g=h.lastAutoInterval,p=h.lastTickCount;return g!=null&&p!=null&&Math.abs(g-v)<=1&&Math.abs(p-o)<=1&&g>v?v=g:(h.lastTickCount=o,h.lastAutoInterval=v),v},t}(oi);OI.prototype.dataToAngle=oi.prototype.dataToCoord;OI.prototype.angleToData=oi.prototype.coordToData;var mU=["radius","angle"],d_e=function(){function e(t){this.dimensions=mU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new VI,this._angleAxis=new OI,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===t&&n.push(r),a.scale.type===t&&n.push(a),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)])},e.prototype.pointToData=function(t,n){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var n=t[0],r=t[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,i=-Math.sin(r)*n+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,n,r){var a=dV(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=dV(n);return a===this?this.pointToData(r):null},e}();function dV(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function v_e(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=we(r[0],a),e.cy=we(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:he(l)||(l=[0,l]);var u=[we(l[0],s),we(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function h_e(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();R(Km(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),R(Km(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),sf(r.scale,r.model),sf(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function g_e(e){return e.mainType==="angleAxis"}function vV(e,t){var n;if(e.type=t.get("type"),e.scale=q0(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),g_e(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),a=(n=t.get("endAngle"))!==null&&n!==void 0?n:r+(e.inverse?-360:360);e.setExtent(r,a)}t.axis=e,e.model=t}var p_e={dimensions:mU,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new d_e(a+"");i.update=h_e;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");vV(o,l),vV(s,u),v_e(i,r,t),n.push(i),r.coordinateSystem=i,i.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",dn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}},m_e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lp(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function up(e){var t=e.getRadiusAxis();return t.inverse?0:1}function hV(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var y_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=pe(a.getViewLabels(),function(c){c=Ne(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});hV(u),hV(s),R(m_e,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&__e[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Nu),__e={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=up(n),f=c?0:1,d,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?d=new Eu[v]({shape:{cx:n.cx,cy:n.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new kh({shape:{cx:n.cx,cy:n.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,e.add(d)},axisTick:function(e,t,n,r,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[up(n)],u=pe(r,function(c){return new Ln({shape:lp(n,[l,l+s],c.coord)})});e.add(ba(u,{style:Re(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[up(n)],c=[],f=0;fm?"left":"right",b=Math.abs(p[1]-y)/g<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[h]){var x=s[h];Oe(x)&&x.textStyle&&(v=new _t(x.textStyle,l,l.ecModel))}var S=new ft({silent:Ar.isLabelSilent(t),style:Nt(v,{x:p[0],y:p[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:b})});if(e.add(S),c){var T=Ar.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=f.rawLabel,He(S).eventData=T}},this)},splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",V=w;x&&(r[c][k]||(r[c][k]={p:w,n:w}),V=r[c][k][L]);var N=void 0,$=void 0,z=void 0,H=void 0;if(h.dim==="radius"){var U=h.dataToCoord(P)-w,Y=l.dataToCoord(k);Math.abs(U)=H})}}})}function A_e(e){var t={};R(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=_U(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var v=yU(r);d[v]||f.autoWidthCount++,d[v]=d[v]||{width:0,maxWidth:0};var h=we(r.get("barWidth"),c),g=we(r.get("barMaxWidth"),c),p=r.get("barGap"),m=r.get("barCategoryGap");h&&!d[v].width&&(h=Math.min(f.remainedWidth,h),d[v].width=h,f.remainedWidth-=h),g&&(d[v].maxWidth=g),p!=null&&(f.gap=p),m!=null&&(f.categoryGap=m)});var n={};return R(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=we(r.categoryGap,o),l=we(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),R(i,function(g,p){var m=g.maxWidth;m&&m=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(t,n,r){var a=gV(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=gV(n);return a===this?this.pointToData(r):null},e}();function gV(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function N_e(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new O_e(r,e,t);i.name="single_"+a,i.resize(r,t),r.coordinateSystem=i,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",dn).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var B_e={create:N_e,dimensions:bU},pV=["x","y"],z_e=["width","height"],F_e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=FS(l,1-cy(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=MI(i),v=H_e[f](s,c,u);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=Kw(a);vU(r,n,h,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=Kw(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=LI(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.coordinateSystem,l=cy(o),u=FS(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=FS(s,1-l),d=(f[1]+f[0])/2,v=[d,d];return v[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(kI),H_e={line:function(e,t,n){var r=EI([t,n[0]],[t,n[1]],cy(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:hU([t-r/2,n[0]],[r,a],cy(e))}}};function cy(e){return e.isHorizontal()?0:1}function FS(e,t){var n=e.getRect();return[n[pV[t]],n[pV[t]]+n[z_e[t]]]}var G_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(Ut);function $_e(e){tt(Xh),Nu.registerAxisPointerClass("SingleAxisPointer",F_e),e.registerComponentView(G_e),e.registerComponentView(E_e),e.registerComponentModel(Wp),uf(e,"single",Wp,Wp.defaultOption),e.registerCoordinateSystem("single",B_e)}var W_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=Ef(n);e.prototype.init.apply(this,arguments),mV(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),mV(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(ot);function mV(e,t){var n=e.cellSize,r;he(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=pe([0,1],function(i){return dse(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});Ps(e,t,{type:"box",ignoreSize:a})}var U_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},t.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new ut({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){h(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}h(s.getNextNDay(r.end.time,1).formatedDate);function h(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var p=o._getLinePointsOfOneWeek(n,g,a);o._tlpoints.push(p[0]),o._blpoints.push(p[p.length-1]),u&&o._drawSplitline(p,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},t.prototype._drawSplitline=function(n,r,a){var i=new Lr({z2:20,shape:{points:n},style:r});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return Ae(n)&&n?use(n,r):Ee(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,v={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},h=r.start.y;+r.end.y>+r.start.y&&(h=h+"-"+r.end.y);var g=o.get("formatter"),p={start:r.start.y,end:r.end.y,nameMap:h},m=this._formatterLabel(g,p),y=new ft({z2:30,style:Nt(o,{text:m})});y.attr(this._yearTextPositionControl(y,v[l],a,l,s)),i.add(y)}},t.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,a,i){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ae(s))&&(s&&(r=aw(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=c==="center",g=0;g=a.start.time&&r.times.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/HS)-Math.floor(n[0].time/HS)+1,i=new Date(n[0].time),o=i.getDate(),s=n[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-n[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-n[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var a=this._getRangeInfo(r);if(t>a.weeks||t===0&&na.lweek)return null;var i=(t-1)*7-a.fweek+n,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(a){var i=new e(a);r.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();function yV(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}function X_e(e){e.registerComponentModel(W_e),e.registerComponentView(U_e),e.registerCoordinateSystem("calendar",Y_e)}function j_e(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function _V(e,t){var n;return R(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function Z_e(e,t,n){var r=ce({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(Ze(a,r,!0),Ps(a,r,{ignoreSize:!0}),vG(n,a),cp(n,a),cp(n,a,"shape"),cp(n,a,"style"),cp(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var SU=["transition","enterFrom","leaveTo"],K_e=SU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function cp(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?SU:K_e,a=0;a=0;c--){var f=a[c],d=Sn(f.id,null),v=d!=null?o.get(d):null;if(v){var h=v.parent,m=pa(h),y=h===i?{width:s,height:l}:{width:m.width,height:m.height},_={},b=G0(v,f,y,null,{hv:f.hv,boundingMode:f.bounding},_);if(!pa(v).isNew&&b){for(var x=f.transition,S={},T=0;T=0)?S[C]=w:v[C]=w}vt(v,S,n,0)}else v.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){Up(a,pa(a).option,r,n._lastGraphicModel)}),this._elMap=Le()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ut);function qw(e){var t=Pe(bV,e)?bV[e]:gA(e),n=new t({});return pa(n).type=e,n}function SV(e,t,n,r){var a=qw(n);return t.add(a),r.set(e,a),pa(a).id=e,pa(a).isNew=!0,a}function Up(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){Up(i,t,n,r)}),a_(e,t,r),n.removeKey(pa(e).id))}function xV(e,t,n,r){e.isGroup||R([["cursor",ka.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];Pe(t,i)?e[i]=We(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),R(st(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=Ee(i)?i:null}}),Pe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function ebe(e){return e=ce({},e),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dG),function(t){delete e[t]}),e}function tbe(e,t,n){var r=He(e).eventData;!e.silent&&!e.ignore&&!r&&(r=He(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function nbe(e){e.registerComponentModel(J_e),e.registerComponentView(Q_e),e.registerPreprocessor(function(t){var n=t.graphic;he(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var wV=["x","y","radius","angle","single"],rbe=["cartesian2d","polar","singleAxis"];function abe(e){var t=e.get("coordinateSystem");return Qe(rbe,t)>=0}function hs(e){return e+"Axis"}function ibe(e,t){var n=Le(),r=[],a=Le();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,v){var h=n.get(d);h&&h[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function xU(e){var t=e.ecModel,n={infoList:[],infoMap:Le()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(hs(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(i)}}}),n}var GS=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),nh=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,a){var i=CV(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=CV(n);Ze(this.option,n,!0),Ze(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;R([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Le(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return R(wV,function(a){var i=this.getReferringComponents(hs(a),Jae);if(i.specified){r=!0;var o=new GS;R(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new GS;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",dn).models[0];v&&R(u,function(h){f.componentIndex!==h.componentIndex&&v===h.getReferringComponents("grid",dn).models[0]&&d.add(h.componentIndex)})}}}i&&R(wV,function(u){if(i){var c=a.findComponents({mainType:hs(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new GS;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(hs(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){R(a.indexList,function(o){n.call(r,i,o)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(hs(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;R([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;R(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!b&&!x)return!0;_&&(p=!0),b&&(h=!0),x&&(g=!0)}return p&&h&&g})}else Sc(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var h={};h[v]=o,u.selectRange(h)}});Sc(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Sc(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=bt(r[0]+o,r,[0,100],!0):i!=null&&(o=bt(i,[0,100],r,!0)-r[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=tH(r,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},e}();function ube(e,t,n){var r=[1/0,-1/0];Sc(n,function(o){Gce(r,o.getData(),t)});var a=e.getAxisModel(),i=F$(a.axis.scale,a,r).calculate();return[i.min,i.max]}var cbe={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(hs(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var n=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new lbe(a,i,s,e),n.push(o.__dzAxisProxy))});var r=Le();return R(n,function(a){R(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function fbe(e){e.registerAction("dataZoom",function(t,n){var r=ibe(n,t);R(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var AV=!1;function BI(e){AV||(AV=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,cbe),fbe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function dbe(e){e.registerComponentModel(obe),e.registerComponentView(sbe),BI(e)}var _a=function(){function e(){}return e}(),wU={};function xc(e,t){wU[e]=t}function CU(e){return wU[e]}var vbe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;R(this.option.feature,function(r,a){var i=CU(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),Ze(r,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ot);function hbe(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=xn(r,i,a);Ql(t.get("orient"),e,t.get("itemGap"),o.width,o.height),G0(e,r,i,a)}function TU(e,t){var n=Lf(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new ut({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var gbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];R(u,function(h,g){f.push(g)}),new wo(this._featureNames||[],f).add(d).update(d).remove(Ue(d,null)).execute(),this._featureNames=f;function d(h,g){var p=f[h],m=f[g],y=u[p],_=new _t(y,n,n.ecModel),b;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!m){if(pbe(p))b={onclick:_.option.onclick,featureName:p};else{var x=CU(p);if(!x)return;b=new x}c[p]=b}else if(b=c[m],!b)return;b.uid=Mf("toolbox-feature"),b.model=_,b.ecModel=r,b.api=a;var S=b instanceof _a;if(!p&&m){S&&b.dispose&&b.dispose(r,a);return}if(!_.get("show")||S&&b.unusable){S&&b.remove&&b.remove(r,a);return}v(_,b,p),_.setIconStatus=function(T,C){var w=this.option,A=this.iconPaths;w.iconStatus=w.iconStatus||{},w.iconStatus[T]=C,A[T]&&(C==="emphasis"?So:xo)(A[T])},b instanceof _a&&b.render&&b.render(_,r,a,i)}function v(h,g,p){var m=h.getModel("iconStyle"),y=h.getModel(["emphasis","iconStyle"]),_=g instanceof _a&&g.getIcons?g.getIcons():h.get("icon"),b=h.get("title")||{},x,S;Ae(_)?(x={},x[p]=_):x=_,Ae(b)?(S={},S[p]=b):S=b;var T=h.iconPaths={};R(x,function(C,w){var A=Rh(C,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var D=A.ensureState("emphasis");D.style=y.getItemStyle();var P=new ft({style:{text:S[w],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:pA({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},r)},ignore:!0});A.setTextContent(P),Pf({el:A,componentModel:n,itemName:w,formatterParamsExtra:{title:S[w]}}),A.__title=S[w],A.on("mouseover",function(){var k=y.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:y.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||L}),P.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){h.get(["iconStatus",w])!=="emphasis"&&a.leaveEmphasis(this),P.hide()}),(h.get(["iconStatus",w])==="emphasis"?So:xo)(A),o.add(A),A.on("click",Ie(g.onclick,g,r,a,w)),T[w]=A})}hbe(o,n,a),o.add(TU(o.getBoundingRect(),n)),l||o.eachChild(function(h){var g=h.__title,p=h.ensureState("emphasis"),m=p.textConfig||(p.textConfig={}),y=h.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!Ee(_)&&g){var b=_.style||(_.style={}),x=Ih(g,ft.makeFont(b)),S=h.x+o.x,T=h.y+o.y+s,C=!1;T+x.height>a.getHeight()&&(m.position="top",C=!0);var w=C?-5-x.height:s+10;S+x.width/2>a.getWidth()?(m.position=["100%",w],b.align="right"):S-x.width/2<0&&(m.position=[0,w],b.align="left")}})},t.prototype.updateView=function(n,r,a,i){R(this._features,function(o){o instanceof _a&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){R(this._features,function(a){a instanceof _a&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){R(this._features,function(a){a instanceof _a&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(Ut);function pbe(e){return e.indexOf("my")===0}var mbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=it.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),v=d[0].indexOf("base64")>-1,h=o?decodeURIComponent(d[1]):d[1];v&&(h=window.atob(h));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,m=new Uint8Array(p);p--;)m[p]=h.charCodeAt(p);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var b=_.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(h),x.close(),b.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var S=a.get("lang"),T='',C=window.open();C.document.write(T),C.document.title=i}},t.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(_a),IV="__ec_magicType_stack__",ybe=[["line","bar"],["stack"]],_be=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return R(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(DV[a]){var s={series:[]},l=function(f){var d=f.subType,v=f.id,h=DV[a](d,v,f,i);h&&(Re(h,f.option),s.series.push(h));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var m=p.dim,y=m+"Axis",_=f.getReferringComponents(y,dn).models[0],b=_.componentIndex;s[y]=s[y]||[];for(var x=0;x<=b;x++)s[y][b]=s[y][b]||{};s[y][b].boundaryGap=a==="bar"}}};R(ybe,function(f){Qe(f,a)>=0&&R(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Ze({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(_a),DV={line:function(e,t,n,r){if(e==="bar")return Ze({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return Ze({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===IV;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Ze({id:t,stack:a?"":IV},r.get(["option","stack"])||{},!0)}};Gi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var i_=new Array(60).join("-"),df=" ";function bbe(e){var t={},n=[],r=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function Sbe(e){var t=[];return R(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(pe(n.series,function(v){return v.name})),l=[a.model.getCategories()];R(n.series,function(v){var h=v.getRawData();l.push(v.getRawData().mapArray(h.mapDimension(o),function(g){return g}))});for(var u=[s.join(df)],c=0;c1||n>0&&!e.noHeader;return R(e.blocks,function(a){var i=HG(a);i>=t&&(t=i+ +(r&&(!i||cw(a)&&!a.noHeader)))}),t}return 0}function hle(e,t,n,r){var a=t.noHeader,i=ple(HG(t)),o=[],s=t.blocks||[];Ir(!s||he(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Pe(u,l)){var c=new EG(u[l],null);s.sort(function(h,g){return c.evaluate(h.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(h,g){var p=t.valueFormatter,m=FG(h)(p?ce(ce({},e),{valueFormatter:p}):e,h,g>0?i.html:0,r);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):fw(o.join(""),a?n:i.html);if(a)return f;var d=iw(t.header,"ordinal",e.useUTC),v=zG(r,e.renderMode).nameStyle;return e.renderMode==="richText"?GG(e,d,v)+i.richText+f:fw('
'+Br(d)+"
"+f,n)}function gle(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=he(b)?b:[b],me(b,function(x,S){return iw(x,he(v)?v[S]:v,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":iw(l,"ordinal",u),v=t.valueType,h=o?[]:c(t.value,t.dataIndex),g=!s||!i,p=!s&&i,m=zG(r,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":GG(e,d,y))+(o?"":_le(e,h,g,p,_)):fw((s?"":f)+(i?"":mle(d,!s,y))+(o?"":yle(h,g,p,_)),n)}}function LL(e,t,n,r,a,i){if(e){var o=FG(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function ple(e){return{html:dle[e],richText:vle[e]}}function fw(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function mle(e,t,n){var r=t?"margin-left:2px":"";return''+Br(e)+""}function yle(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=he(e)?e:[e],''+me(e,function(o){return Br(o)}).join("  ")+""}function GG(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function _le(e,t,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(he(t)?t.join(" "):t,i)}function $G(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return mu(r)}function WG(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Db=function(){function e(){this.richTextStyles={},this._nextStyleNameId=iH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,i=cse({color:n,type:t,renderMode:r,markerId:a});return Ae(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};he(n)?R(n,function(i){return ce(r,i)}):ce(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function UG(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(n),l=he(s),u=$G(t,n),c,f,d,v;if(o>1||l&&!o){var h=ble(s,t,n,i,u);c=h.inlineValues,f=h.inlineValueTypes,d=h.blocks,v=h.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);v=c=af(a,n,i[0]),f=g.type}else v=c=l?s[0]:s;var p=nA(t),m=p&&t.name||"",y=a.getName(n),_=r?m:y;return On("section",{header:m,noHeader:r||!p,sortParam:v,blocks:[On("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ya(_),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function ble(e,t,n,r,a){var i=t.getData(),o=Mi(e,function(f,d,v){var h=i.getDimensionInfo(v);return f=f||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];r.length?R(r,function(f){c(af(i,n,f),f)}):R(e,c);function c(f,d){var v=i.getDimensionInfo(d);!v||v.otherDims.tooltip===!1||(o?u.push(On("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:f,valueType:v.type})):(s.push(f),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ho=ct();function Vg(e,t){return e.getName(t)||e.getId(t)}var zp="__universalTransitionEnabled",zt=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=tv({count:xle,reset:wle}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Ho(this).sourceManager=new NG(this);i.prepareSource();var o=this.getInitialData(n,a);RL(o,this),this.dataTask.context.data=o,Ho(this).dataBeforeProcessed=o,EL(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Hv(this),i=a?Ef(n):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),Ze(n,r.getTheme().get(this.subType)),Ze(n,this.getDefaultOption()),vu(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Ps(n,i,a)},t.prototype.mergeOption=function(n,r){n=Ze(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Hv(this);a&&Ps(this.option,n,a);var i=Ho(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);RL(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ho(this).dataBeforeProcessed=o,EL(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!$r(n))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=TA.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Vg(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[zp])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Oe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return ot.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(ot);mn(zt,W0);mn(zt,TA);hH(zt,ot);function EL(e){var t=e.name;nA(e)||(e.name=Sle(e)||t)}function Sle(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return R(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function xle(e){return e.model.getRawData().count()}function wle(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Cle}function Cle(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function RL(e,t){R(Tm(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ue(Tle,t))})}function Tle(e,t){var n=dw(e);return n&&n.setOutputEnd((t||this).count()),t}function dw(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(e.uid))}return r}}var Ut=function(){function e(){this.group=new ze,this.uid=Mf("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){},e.prototype.updateLayout=function(t,n,r,a){},e.prototype.updateVisual=function(t,n,r,a){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();aA(Ut);A0(Ut);function Vf(){var e=ct();return function(t){var n=e(t),r=t.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var YG=ct(),Ale=Vf(),kt=function(){function e(){this.group=new ze,this.uid=Mf("viewChart"),this.renderTask=tv({plan:Ile,reset:Dle}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.highlight=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&OL(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&OL(i,a,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateLayout=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateVisual=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.eachRendered=function(t){Gs(this.group,t)},e.markUpdateMethod=function(t,n){YG(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function VL(e,t,n){e&&Bv(e)&&(t==="emphasis"?So:xo)(e,n)}function OL(e,t,n){var r=hu(e,t),a=t&&t.highlightKey!=null?coe(t.highlightKey):null;r!=null?R(It(r),function(i){VL(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){VL(i,n,a)})}aA(kt);A0(kt);function Ile(e){return Ale(e.model)}function Dle(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&YG(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),Ple[l]}var Ple={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Gm="\0__throttleOriginMethod",NL="\0__throttleRate",BL="\0__throttleType";function MA(e,t,n){var r,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var v=[],h=0;h=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(v){c=v},d}function Of(e,t,n,r){var a=e[t];if(a){var i=a[Gm]||a,o=a[BL],s=a[NL];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=MA(i,n,r==="debounce"),a[Gm]=i,a[BL]=r,a[NL]=n}return a}}function $v(e,t){var n=e[t];n&&n[Gm]&&(n.clear&&n.clear(),e[t]=n[Gm])}var zL=ct(),FL={itemStyle:gu(JH,!0),lineStyle:gu(qH,!0)},kle={lineStyle:"stroke",itemStyle:"fill"};function XG(e,t){var n=e.visualStyleMapper||FL[t];return n||(console.warn("Unknown style type '"+t+"'."),FL.itemStyle)}function jG(e,t){var n=e.visualDrawType||kle[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Mle={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=XG(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=jG(e,r),u=o[l],c=Ee(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ee(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Ee(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(v,h){var g=e.getDataParams(h),p=ce({},o);p[l]=c(g),v.setItemVisual(h,"style",p)}}}},rd=new _t,Lle={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=XG(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){rd.option=l[r];var u=a(rd),c=o.ensureUniqueItemVisual(s,"style");ce(c,u),rd.option.decal&&(o.setItemVisual(s,"decal",rd.option.decal),rd.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ele={performRawSeries:!0,overallReset:function(e){var t=Le();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=t.get(a);i||(i={},t.set(a,i)),zL(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=zL(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=jG(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),v=r.getName(u)||u+"",h=r.count();d[l]=n.getColorFromPalette(v,o,h)}})}})}},Og=Math.PI;function Rle(e,t){t=t||{},Re(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ze,r=new ut({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new ft({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new ut({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(i);var o;return t.showSpinner&&(o=new E0({shape:{startAngle:-Og/2,endAngle:-Og/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Og*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Og*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var ZG=function(){function e(t,n,r,a){this._stageTaskMap=Le(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=Le();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;R(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Ir(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var i=t.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(n,i)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var i=!1,o=this;R(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var v,h=d.agentStubMap;h.each(function(p){s(a,p)&&(p.dirty(),v=!0)}),v&&d.dirty(),o.updatePayload(d,r);var g=o.getPerformArgs(d,a.block);h.each(function(p){p.perform(g)}),d.perform(g)&&(i=!0)}else f&&f.each(function(p,m){s(a,p)&&p.dirty();var y=o.getPerformArgs(p,a.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(p.context.model),o.updatePayload(p,r),p.perform(y)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=Le(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,v=s.set(d,o&&o.get(d)||tv({plan:zle,reset:Fle,count:Gle}));v.context={model:f,ecModel:r,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,v)}},e.prototype._createOverallStageTask=function(t,n,r,a){var i=this,o=n.overallTask=n.overallTask||tv({reset:Vle});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Le(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,v="";Ir(!t.createOnAllSeries,v),u?r.eachRawSeriesByType(u,h):c?c(r,a).each(h):(f=!1,R(r.getSeries(),h));function h(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(d=!0,tv({reset:Ole,onDirty:Ble})));m.context={model:g,overallProgress:f},m.agent=o,m.__block=f,i._pipe(g,m)}d&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},e.wrapStageHandler=function(t,n){return Ee(t)&&(t={overallReset:t,seriesType:$le(t)}),t.uid=Mf("stageHandler"),n&&(t.visualType=n),t},e}();function Vle(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ole(e){return e.overallProgress&&Nle}function Nle(){this.agent.dirty(),this.getDownstream().dirty()}function Ble(){this.agent&&this.agent.dirty()}function zle(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Fle(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=It(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?me(t,function(n,r){return KG(r)}):Hle}var Hle=KG(0);function KG(e){return function(t,n){var r=n.data,a=n.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i0&&v===u.length-d.length){var h=u.slice(0,v);h!=="data"&&(n.mainType=h,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,i));function c(f,d,v,h){return f[v]==null||d[h||v]===f[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),vw=["symbol","symbolSize","symbolRotate","symbolOffset"],WL=vw.concat(["symbolKeepAspect"]),Yle={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&Nl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function hw(e,t,n){for(var r=t.type==="radial"?sue(e,t,n):oue(e,t,n),a=t.colorStops,i=0;i0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:dt(e)?[e]:he(e)?e:null}function EA(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&uue(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=me(n,function(i){return i/a}),r/=a)}return[n,r]}var cue=new Vi(!0);function Um(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function UL(e){return typeof e=="string"&&e!=="none"}function Ym(e){var t=e.fill;return t!=null&&t!=="none"}function YL(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function XL(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function gw(e,t,n){var r=iA(t.image,t.__image,n);if(I0(r)){var a=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Ap),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function fue(e,t,n,r){var a,i=Um(n),o=Ym(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||cue,f=t.__dirty;if(!r){var d=n.fill,v=n.stroke,h=o&&!!d.colorStops,g=i&&!!v.colorStops,p=o&&!!d.image,m=i&&!!v.image,y=void 0,_=void 0,b=void 0,x=void 0,S=void 0;(h||g)&&(S=t.getBoundingRect()),h&&(y=f?hw(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=f?hw(e,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(b=f||!t.__canvasFillPattern?gw(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(x=f||!t.__canvasStrokePattern?gw(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),h?e.fillStyle=y:p&&(b?e.fillStyle=b:o=!1),g?e.strokeStyle=_:m&&(x?e.strokeStyle=x:i=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,w;e.setLineDash&&n.lineDash&&(a=EA(t),C=a[0],w=a[1]);var A=!0;(u||f&yc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=w),r||(n.strokeFirst?(i&&XL(e,n),o&&YL(e,n)):(o&&YL(e,n),i&&XL(e,n))),C&&e.setLineDash([])}function due(e,t,n){var r=t.__image=iA(n.image,t.__image,t,t.onload);if(!(!r||!I0(r))){var a=n.x||0,i=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;e.drawImage(r,u,c,f,d,a,i,o,s)}else e.drawImage(r,a,i,o,s)}}function vue(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||Ts,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=EA(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(Um(n)&&e.strokeText(a,n.x,n.y),Ym(n)&&e.fillText(a,n.x,n.y)):(Ym(n)&&e.fillText(a,n.x,n.y),Um(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var jL=["shadowBlur","shadowOffsetX","shadowOffsetY"],ZL=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n$(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Gr(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Zl.opacity:o}(r||t.blend!==n.blend)&&(i||(Gr(e,a),i=!0),e.globalCompositeOperation=t.blend||Zl.blend);for(var s=0;s0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,a){if(!this[nr]){if(this._disposed){this.id;return}var i,o,s;if(Oe(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[nr]=!0,!this._model||r){var l=new Dse(this._api),u=this._theme,c=this._model=new AA;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},mw);var f={seriesTransition:s,optionChanged:!0};if(a)this[Vr]={silent:i,updateParams:f},this[nr]=!1,this.getZr().wakeUp();else{try{rc(this),Go.update.call(this,null,f)}catch(d){throw this[Vr]=null,this[nr]=!1,d}this._ssr||this._zr.flush(),this[Vr]=null,this[nr]=!1,ad.call(this,i),id.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||it.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(it.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return R(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;R(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return R(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(cE[a]){var l=s,u=s,c=-s,f=-s,d=[],v=n&&n.pixelRatio||this.getDevicePixelRatio();R(rv,function(_,b){if(_.group===a){var x=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ne(n)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:x,left:S.left,top:S.top})}}),l*=v,u*=v,c*=v,f*=v;var h=c-l,g=f-u,p=As.createCanvas(),m=gM(p,{renderer:r?"svg":"canvas"});if(m.resize({width:h,height:g}),r){var y="";return R(d,function(_){var b=_.left-l,x=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new ut({shape:{x:0,y:0,width:h,height:g},style:{fill:n.connectedBackgroundColor}})),R(d,function(_){var b=new Yn({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),p.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return Eb(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return Eb(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=Kd(a,n);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},t.prototype.getVisual=function(n,r){var a=this._model,i=Kd(a,n,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?LA(s,l,r):Oh(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;R(Bue,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Ol(s,function(h){var g=He(h);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=ce({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),v=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:v},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),R(nv,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),R(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),jle(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&fH(this.getDom(),OA,"");var r=this,a=r._api,i=r._model;R(r._componentsViews,function(o){o.dispose(i,a)}),R(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete rv[r.id]},t.prototype.resize=function(n){if(!this[nr]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[Vr]&&(i==null&&(i=this[Vr].silent),a=!0,this[Vr]=null),this[nr]=!0;try{a&&rc(this),Go.update.call(this,{type:"resize",animation:ce({duration:0},n&&n.animation)})}catch(o){throw this[nr]=!1,o}this[nr]=!1,ad.call(this,i),id.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Oe(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!yw[n]){var a=yw[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=ce({},n);return r.type=nv[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Oe(r)||(r={silent:!!r}),!!Xm[n.type]&&this._model){if(this[nr]){this._pendingActions.push(n);return}var a=r.silent;Vb.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&it.browser.weChat&&this._throttledZrFlush(),ad.call(this,a),id.call(this,a)}},t.prototype.updateLabelLayout=function(){Ga.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){rc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Lb(f,!0),Lb(f,!1),d.plan()},Lb=function(f,d){for(var v=f._model,h=f._scheduler,g=d?f._componentsViews:f._chartsViews,p=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_d.get("hoverLayerThreshold")&&!it.node&&!it.worker&&d.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=f._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var v=f.get("blendMode")||null;d.eachRendered(function(h){h.isGroup||(h.style.blend=v)})}function s(f,d){if(!f.preventAutoZ){var v=f.get("z")||0,h=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,v,h,-1/0),!0})}}function l(f,d,v,h){var g=f.getTextContent(),p=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Bc(m))return;if(m instanceof at&&foe(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(h){m.stateTransition=p;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}m.__dirty&&a(m)}})}lE=function(f){return new(function(d){ee(v,d);function v(){return d!==null&&d.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(h){for(;h;){var g=h.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);h=h.parent}},v.prototype.enterEmphasis=function(h,g){So(h,g),la(f)},v.prototype.leaveEmphasis=function(h,g){xo(h,g),la(f)},v.prototype.enterBlur=function(h){DH(h),la(f)},v.prototype.leaveBlur=function(h){cA(h),la(f)},v.prototype.enterSelect=function(h){PH(h),la(f)},v.prototype.leaveSelect=function(h){kH(h),la(f)},v.prototype.getModel=function(){return f.getModel()},v.prototype.getViewOfComponentModel=function(h){return f.getViewOfComponentModel(h)},v.prototype.getViewOfSeriesModel=function(h){return f.getViewOfSeriesModel(h)},v}(xG))(f)},m$=function(f){function d(v,h){for(var g=0;g=0)){fE.push(n);var i=ZG.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function w$(e,t){yw[e]=t}function Uue(e,t,n){var r=wue("registerMap");r&&r(e,t,n)}var Yue=ole;Vu(RA,Mle);Vu(Y0,Lle);Vu(Y0,Ele);Vu(RA,Yle);Vu(Y0,Xle);Vu(f$,Sue);S$(CG);x$(Aue,Fse);w$("default",Rle);Gi({type:Kl,event:Kl,update:Kl},ln);Gi({type:Rp,event:Rp,update:Rp},ln);Gi({type:qd,event:qd,update:qd},ln);Gi({type:Vp,event:Vp,update:Vp},ln);Gi({type:Jd,event:Jd,update:Jd},ln);b$("light",Wle);b$("dark",QG);var dE=[],Xue={registerPreprocessor:S$,registerProcessor:x$,registerPostInit:Hue,registerPostUpdate:Gue,registerUpdateLifecycle:NA,registerAction:Gi,registerCoordinateSystem:$ue,registerLayout:Wue,registerVisual:Vu,registerTransform:Yue,registerLoading:w$,registerMap:Uue,registerImpl:xue,PRIORITY:Vue,ComponentModel:ot,ComponentView:Ut,SeriesModel:zt,ChartView:kt,registerComponentModel:function(e){ot.registerClass(e)},registerComponentView:function(e){Ut.registerClass(e)},registerSeriesModel:function(e){zt.registerClass(e)},registerChartView:function(e){kt.registerClass(e)},registerSubTypeDefaulter:function(e,t){ot.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Mae(e,t)}};function tt(e){if(he(e)){R(e,function(t){tt(t)});return}Qe(dE,e)>=0||(dE.push(e),Ee(e)&&(e={install:e}),e.install(Xue))}function od(e){return e==null?0:e.length||1}function vE(e){return e}var wo=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||vE,this._newKeyGetter=a||vE,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},a=new Array(t.length),i=new Array(n.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(t,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var v=0;v1)for(var s=0;s30}var sd=Oe,$o=me,Que=typeof Int32Array>"u"?Array:Int32Array,ece="e\0\0",hE=-1,tce=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],nce=["_approximateExtent"],gE,Hg,ld,ud,Bb,Gg,zb,Tr=function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;T$(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,r=t),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Va;if(l&&!a.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,a=r[t];a||(a=r[t]={});var i=a[n];return i==null&&(i=this.getVisual(n),he(i)?i=i.slice():sd(i)&&(i=ce({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,sd(n)?ce(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){sd(t)?ce(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?ce(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Kx(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){R(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:$o(this.dimensions,this._getDimInfo,this),this.hostModel)),Bb(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Ee(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(XT(arguments)))})},e.internalField=function(){gE=function(t){var n=t._invertedIndicesMap;R(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new Que(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[n]=l}}}(),e}();function Nh(e,t){IA(e)||(e=DA(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=Le(),i=[],o=ace(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&D$(o),l=r===e.dimensionsDefine,u=l?I$(e):A$(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Le(c),d=new VG(o),v=0;v0&&(r.name=a+(i-1)),i++,t.set(a,i)}}function ace(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(i){var o;Oe(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function ice(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var oce=function(){function e(t){this.coordSysDims=[],this.axisMap=Le(),this.categoryAxisMap=Le(),this.coordSysName=t}return e}();function sce(e){var t=e.get("coordinateSystem"),n=new oce(t),r=lce[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var lce={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",dn).models[0],i=e.getReferringComponents("yAxis",dn).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),ac(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),ac(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",dn).models[0];t.coordSysDims=["single"],n.set("single",a),ac(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",dn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),ac(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),ac(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();R(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),ac(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ac(e){return e.get("type")==="category"}function uce(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;cce(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(R(i,function(y,_){Ae(y)&&(i[_]=y={name:y}),l&&!y.isExtraCoord&&(!r&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!a||a===y.coordDim)&&(c=y))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var v=c.coordDim,h=c.type,g=0;R(i,function(y){y.coordDim===v&&g++});var p={name:f,coordDim:v,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(d,h),m.storeDimIndex=s.ensureCalculationDimension(f,h)),o.appendCalculationDimension(p),o.appendCalculationDimension(m)):(i.push(p),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function cce(e){return!T$(e.schema)}function ks(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function P$(e,t){return ks(e,t)?e.getCalculationInfo("stackResultDimension"):t}function fce(e,t){var n=e.get("coordinateSystem"),r=Vh.get(n),a;return t&&t.coordSysDims&&(a=me(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Zm(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function dce(e,t,n){var r,a;return n&&R(e,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function Ro(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=DA(e)):(a=r.getSource(),i=a.sourceFormat===Va);var o=sce(t),s=fce(t,o),l=n.useEncodeDefaulter,u=Ee(l)?l:l?Ue(yG,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Nh(a,c),d=dce(f.dimensions,n.createInvertedIndices,o),v=i?null:r.getSharedDataStore(f),h=uce(t,{schema:f,store:v}),g=new Tr(f,t);g.setCalculationInfo(h);var p=d!=null&&vce(a)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return g.hasItemOption=!1,g.initData(i?a:v,null,p),g}function vce(e){if(e.sourceFormat===Va){var t=hce(e.data||[]);return!he(Af(t))}}function hce(e){for(var t=0;tn[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();A0($i);var gce=0,_w=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gce}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&me(r,pce);return new e({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!Ae(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var a=this._getOrCreateMap();return n=a.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,a.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Le(this.categories))},e}();function pce(e){return Oe(e)&&e.value!=null?e.value:e+""}function bw(e){return e.type==="interval"||e.type==="log"}function mce(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=rH(i/t);n!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=k$(o),l=a.niceTickExtent=[tn(Math.ceil(e[0]/o)*o,s),tn(Math.floor(e[1]/o)*o,s)];return yce(l,e),a}function Fb(e){var t=Math.pow(10,tA(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,tn(n*t)}function k$(e){return wi(e)+2}function pE(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function yce(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),pE(e,0,t),pE(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function X0(e,t){return e>=t[0]&&e<=t[1]}function j0(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Z0(e,t){return e*(t[1]-t[0])+t[0]}var K0=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new _w({})),he(a)&&(a=new _w({categories:me(a,function(i){return Oe(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:Ae(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),X0(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),j0(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(Z0(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}($i);$i.registerClass(K0);var gl=tn,Co=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return X0(n,this._extent)},t.prototype.normalize=function(n){return j0(n,this._extent)},t.prototype.scale=function(n){return Z0(n,this._extent)},t.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=k$(n)},t.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:gl(c+r,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&v0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function E$(e){var t=Sce(e),n=[];return R(e,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var v=r.getData();s=Math.abs(o[1]-o[0])/v.count()}var h=we(r.get("barWidth"),s),g=we(r.get("barMaxWidth"),s),p=we(r.get("barMinWidth")||(B$(r)?.5:1),s),m=r.get("barGap"),y=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:h,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:y,axisKey:FA(i),stackId:zA(r)})}),R$(n)}function R$(e){var t={};R(e,function(r,a){var i=r.axisKey,o=r.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var v=r.barGap;v!=null&&(s.gap=v);var h=r.barCategoryGap;h!=null&&(s.categoryGap=h)});var n={};return R(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=st(i).length;s=Math.max(35-l*4,15)+"%"}var u=we(s,o),c=we(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,v=(f-u)/(d+(d-1)*c);v=Math.max(v,0),R(i,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,f-=b+c*b,d--}else{var b=v;y&&yb&&(b=_),b!==v&&(m.width=b,f-=b+c*b,d--)}}),v=(f-u)/(d+(d-1)*c),v=Math.max(v,0);var h=0,g;R(i,function(m,y){m.width||(m.width=v),g=m,h+=m.width*(1+c)}),g&&(h-=g.width*c);var p=-h/2;R(i,function(m,y){n[a][y]=n[a][y]||{bandWidth:o,offset:p,width:m.width},p+=m.width*(1+c)})}),n}function xce(e,t,n){if(e&&t){var r=e[FA(t)];return r!=null&&n!=null?r[zA(n)]:r}}function V$(e,t){var n=L$(e,t),r=E$(n);R(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=zA(a),u=r[FA(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function O$(e){return{seriesType:e,plan:Vf(),reset:function(t){if(N$(t)){var n=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=t.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=ks(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),v=wce(a,i),h=B$(t),g=t.get("barMinHeight")||0,p=c&&n.getDimensionIndex(c),m=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(_,b){for(var x=_.count,S=h&&Ti(x*3),T=h&&l&&Ti(x*3),C=h&&Ti(x),w=r.master.getRect(),A=d?w.width:w.height,D,P=b.getStore(),k=0;(D=_.next())!=null;){var L=P.get(f?p:o,D),V=P.get(s,D),N=v,$=void 0;f&&($=+L-P.get(o,D));var z=void 0,H=void 0,U=void 0,Y=void 0;if(d){var J=r.dataToPoint([L,V]);if(f){var ue=r.dataToPoint([$,V]);N=ue[0]}z=N,H=J[1]+y,U=J[0]-N,Y=m,Math.abs(U)0?n:1:n))}var Cce=function(e,t,n,r){for(;n>>1;e[a][1]a&&(this._approxInterval=a);var s=$g.length,l=Math.min(Cce($g,this._approxInterval,0,s),s-1);this._interval=$g[l][1],this._minLevelUnit=$g[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return dt(n)?n:+Ri(n)},t.prototype.contain=function(n){return X0(this.parse(n),this._extent)},t.prototype.normalize=function(n){return j0(this.parse(n),this._extent)},t.prototype.scale=function(n){return Z0(n,this._extent)},t.type="time",t}(Co),$g=[["second",_A],["minute",bA],["hour",ev],["quarter-day",ev*6],["half-day",ev*12],["day",Sa*1.2],["half-week",Sa*3.5],["week",Sa*7],["month",Sa*31],["quarter",Sa*95],["half-year",iL/2],["year",iL]];function Tce(e,t,n,r){var a=Ri(t),i=Ri(n),o=function(h){return sL(a,h,r)===sL(i,h,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},v=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return v()}}function Ace(e,t){return e/=Sa,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Ice(e){var t=30*Sa;return e/=t,e>6?6:e>3?3:e>2?2:1}function Dce(e){return e/=ev,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function mE(e,t){return e/=t?bA:_A,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Pce(e){return rH(e)}function kce(e,t,n){var r=new Date(e);switch(Fc(t)){case"year":case"month":r[rG(n)](0);case"day":r[aG(n)](1);case"hour":r[iG(n)](0);case"minute":r[oG(n)](0);case"second":r[sG(n)](0),r[lG(n)](0)}return r.getTime()}function Mce(e,t,n,r){var a=1e4,i=tG,o=0;function s(A,D,P,k,L,V,N){for(var $=new Date(D),z=D,H=$[k]();z1&&V===0&&P.unshift({value:P[0].value-z})}}for(var V=0;V=r[0]&&y<=r[1]&&f++)}var _=(r[1]-r[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(p),f>_||e===i[v]))break}c=[]}}}for(var b=Tt(me(u,function(A){return Tt(A,function(D){return D.value>=r[0]&&D.value<=r[1]&&!D.notAdd})}),function(A){return A.length>0}),x=[],S=b.length-1,v=0;v0;)i*=10;var s=[tn(Rce(r[0]/i)*i),tn(Ece(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){av.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=za(n)/za(this.base),X0(n,this._extent)},t.prototype.normalize=function(n){return n=za(n)/za(this.base),j0(n,this._extent)},t.prototype.scale=function(n){return n=Z0(n,this._extent),Wg(this.base,n)},t.type="log",t}($i),z$=GA.prototype;z$.getMinorTicks=av.getMinorTicks;z$.getLabel=av.getLabel;function Ug(e,t){return Lce(e,wi(t))}$i.registerClass(GA);var Vce=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,v=this._determinedMax;return d!=null&&(s=d,u=!0),v!=null&&(l=v,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[Nce[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=Oce[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),Oce={min:"_determinedMin",max:"_determinedMax"},Nce={min:"_dataMin",max:"_dataMax"};function F$(e,t,n){var r=e.rawExtentInfo;return r||(r=new Vce(e,t,n),e.rawExtentInfo=r,r)}function Yg(e,t){return t==null?null:Mv(t)?NaN:e.parse(t)}function H$(e,t){var n=e.type,r=F$(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var a=r.min,i=r.max,o=t.ecModel;if(o&&n==="time"){var s=L$("bar",o),l=!1;if(R(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=E$(s),c=Bce(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function Bce(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=xce(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;R(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function sf(e,t){var n=t,r=H$(e,n),a=r.extent,i=n.get("splitNumber");e instanceof GA&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function q0(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new K0({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new HA({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new($i.getClass(t)||Co)}}function zce(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function Bf(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}(t):Ae(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):Ee(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r($A(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function $A(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Fce(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof K0?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=Bf(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;ce[1]&&(e[1]=a[1])})}var Bh=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),$ce=1e-8;function _E(e,t){return Math.abs(e-t)<$ce}function Al(e,t,n){var r=0,a=e[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return Uce(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return R(o,function(s){s.type==="polygon"?bE(s.exterior,a,i,n):R(s.points,function(l){bE(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Ke(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function jce(e,t){return e=Xce(e),me(Tt(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new SE(o[0],o.slice(1)));break;case"MultiPolygon":R(a.coordinates,function(l){l[0]&&i.push(new SE(l[0],l.slice(1)))});break;case"LineString":i.push(new xE([a.coordinates]));break;case"MultiLineString":i.push(new xE(a.coordinates))}var s=new W$(r[t||"name"],i,r.cp);return s.properties=r,s})}var Yv=ct();function Y$(e,t){var n=me(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Zce(e){var t=e.getLabelModel().get("customValues");if(t){var n=Bf(e);return{labels:Y$(e,t).map(function(r){var a={value:r};return{formattedLabel:n(a),rawLabel:e.scale.getLabel(a),tickValue:r}})}}return e.type==="category"?qce(e):Qce(e)}function Kce(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:Y$(e,n)}:e.type==="category"?Jce(e,t):{ticks:me(e.scale.getTicks(),function(r){return r.value})}}function qce(e){var t=e.getLabelModel(),n=X$(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function X$(e,t){var n=j$(e,"labels"),r=WA(t),a=Z$(n,r);if(a)return a;var i,o;return Ee(r)?i=J$(e,r):(o=r==="auto"?efe(e):r,i=q$(e,o)),K$(n,r,{labels:i,labelCategoryInterval:o})}function Jce(e,t){var n=j$(e,"ticks"),r=WA(t),a=Z$(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Ee(r))i=J$(e,r,!0);else if(r==="auto"){var s=X$(e,e.getLabelModel());o=s.labelCategoryInterval,i=me(s.labels,function(l){return l.tickValue})}else o=r,i=q$(e,o,!0);return K$(n,r,{ticks:i,tickCategoryInterval:o})}function Qce(e){var t=e.scale.getTicks(),n=Bf(e);return{labels:me(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function j$(e,t){return Yv(e)[t]||(Yv(e)[t]=[])}function Z$(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,v=0;l<=i[1];l+=s){var h=0,g=0,p=Ih(n({value:l}),t.font,"center","top");h=p.width*1.3,g=p.height*1.3,d=Math.max(d,h,7),v=Math.max(v,g,7)}var m=d/c,y=v/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Yv(e.model),x=e.getExtent(),S=b.lastAutoInterval,T=b.lastTickCount;return S!=null&&T!=null&&Math.abs(S-_)<=1&&Math.abs(T-o)<=1&&S>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=S:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function nfe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function q$(e,t,n){var r=Bf(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=G$(e),d=o.get("showMinLabel")||f,v=o.get("showMaxLabel")||f;d&&u!==i[0]&&g(i[0]);for(var h=u;h<=i[1];h+=l)g(h);v&&h-l!==i[1]&&g(i[1]);function g(p){var m={value:p};s.push(n?p:{formattedLabel:r(m),rawLabel:a.getLabel(m),tickValue:p})}return s}function J$(e,t,n){var r=e.scale,a=Bf(e),i=[];return R(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var wE=[0,1],oi=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return t>=r&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return tH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(r=r.slice(),CE(r,a.count())),bt(t,wE,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),CE(r,a.count()));var i=bt(t,r,wE,n);return this.scale.scale(i)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=Kce(this,n),a=r.ticks,i=me(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return rfe(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=me(r,function(i){return me(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return Zce(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(){return tfe(this)},e}();function CE(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function rfe(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;R(t,function(v){v.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(r?t[0].coord=i[0]:t.shift()),r&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:t.pop()),r&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(v,h){return v=tn(v),h=tn(h),f?v>h:va&&(a+=cd);var v=Math.atan2(s,o);if(v<0&&(v+=cd),v>=r&&v<=a||v+cd>=r&&v+cd<=a)return l[0]=c,l[1]=f,u-n;var h=n*Math.cos(r)+e,g=n*Math.sin(r)+t,p=n*Math.cos(a)+e,m=n*Math.sin(a)+t,y=(h-o)*(h-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(m-s)*(m-s);return y<_?(l[0]=h,l[1]=g,Math.sqrt(y)):(l[0]=p,l[1]=m,Math.sqrt(_))}function qm(e,t,n,r,a,i,o,s){var l=a-e,u=i-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var v=l*c+u*f,h=v/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var g=o[0]=e+h*c,p=o[1]=t+h*f;return Math.sqrt((g-a)*(g-a)+(p-i)*(p-i))}function Q$(e,t,n,r,a,i,o){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var $a=[];function sfe(e,t,n){var r=Q$(t.x,t.y,t.width,t.height,e.x,e.y,$a);return n.set($a[0],$a[1]),r}function lfe(e,t,n){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,v=0;v0){t=t/180*Math.PI,Xa.fromArray(e[0]),Ot.fromArray(e[1]),an.fromArray(e[2]),je.sub(Ai,Xa,Ot),je.sub(bi,an,Ot);var n=Ai.len(),r=bi.len();if(!(n<.001||r<.001)){Ai.scale(1/n),bi.scale(1/r);var a=Ai.dot(bi),i=Math.cos(t);if(i1&&je.copy(Sr,an),Sr.toArray(e[1])}}}}function ufe(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Xa.fromArray(e[0]),Ot.fromArray(e[1]),an.fromArray(e[2]),je.sub(Ai,Ot,Xa),je.sub(bi,an,Ot);var r=Ai.len(),a=bi.len();if(!(r<.001||a<.001)){Ai.scale(1/r),bi.scale(1/a);var i=Ai.dot(t),o=Math.cos(n);if(i=l)je.copy(Sr,an);else{Sr.scaleAndAdd(bi,s/Math.tan(Math.PI/2-c));var f=an.x!==Ot.x?(Sr.x-Ot.x)/(an.x-Ot.x):(Sr.y-Ot.y)/(an.y-Ot.y);if(isNaN(f))return;f<0?je.copy(Sr,Ot):f>1&&je.copy(Sr,an)}Sr.toArray(e[1])}}}}function $b(e,t,n,r){var a=n==="normal",i=a?e:e.ensureState(n);i.ignore=t;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function cfe(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=os(r[0],r[1]),i=os(r[1],r[2]);if(!a||!i){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=Dp([],r[1],r[0],o/a),l=Dp([],r[1],r[2],o/i),u=Dp([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&x(-c/o,0,o);var g=e[0],p=e[o-1],m,y;_(),m<0&&S(-m,.8),y<0&&S(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&T(-m),y<0&&T(y);function _(){m=g.rect[t]-r,y=a-p.rect[t]-p.rect[n]}function b(C,w,A){if(C<0){var D=Math.min(w,-C);if(D>0){x(D*A,0,o);var P=D+C;P<0&&S(-P*A,1)}else S(-C*A,1)}}function x(C,w,A){C!==0&&(u=!0);for(var D=w;D0)for(var P=0;P0;P--){var N=A[P-1]*V;x(-N,P,o)}}}function T(C){var w=C<0?-1:1;C=Math.abs(C);for(var A=Math.ceil(C/(o-1)),D=0;D0?x(A,0,D+1):x(-A,o-D-1,o),C-=A,C<=0)return}return u}function ffe(e,t,n,r){return n4(e,"x","width",t,n,r)}function r4(e,t,n,r){return n4(e,"y","height",t,n,r)}function a4(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var n=new Ke(0,0,0,0);function r(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Qe(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),vt(r,u,n,l)}else if(r.attr(u),!kf(r).valueAnimation){var f=We(r.style.opacity,1);r.style.opacity=0,Ht(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var v=i.oldLayoutSelect={};Xg(v,u,jg),Xg(v,r.states.select,jg)}if(r.states.emphasis){var h=i.oldLayoutEmphasis={};Xg(h,u,jg),Xg(h,r.states.emphasis,jg)}KH(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=hfe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),vt(a,{shape:g},n)):(a.setShape(g),a.style.strokePercent=0,Ht(a,{style:{strokePercent:1}},n)),i.oldLayout=g}},e}(),Ub=ct();function pfe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=Ub(n).labelManager;a||(a=Ub(n).labelManager=new gfe),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=Ub(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var Yb=Math.sin,Xb=Math.cos,i4=Math.PI,ml=Math.PI*2,mfe=180/i4,o4=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){this._add("C",t,n,r,a,i,o)},e.prototype.quadraticCurveTo=function(t,n,r,a){this._add("Q",t,n,r,a)},e.prototype.arc=function(t,n,r,a,i,o){this.ellipse(t,n,r,r,0,a,i,o)},e.prototype.ellipse=function(t,n,r,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=fs(f-ml)||(c?u>=ml:-u>=ml),v=u>0?u%ml:u%ml+ml,h=!1;d?h=!0:fs(f)?h=!1:h=v>=i4==!!c;var g=t+r*Xb(o),p=n+a*Yb(o);this._start&&this._add("M",g,p);var m=Math.round(i*mfe);if(d){var y=1/this._p,_=(c?1:-1)*(ml-y);this._add("A",r,a,m,1,+c,t+r*Xb(o+_),n+a*Yb(o+_)),y>.01&&this._add("A",r,a,m,0,+c,g,p)}else{var b=t+r*Xb(s),x=n+a*Yb(s);this._add("A",r,a,m,+h,+c,b,x)}},e.prototype.rect=function(t,n,r,a){this._add("M",t,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function Afe(e){return""}function jA(e,t){t=t||{};var n=t.newline?` +`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Tfe(o,s)+(o!=="style"?Br(l):l||"")+(i?""+n+me(i,function(u){return r(u)}).join(n)+n:"")+Afe(o)}return r(e)}function Ife(e,t,n){n=n||{};var r=n.newline?` +`:"",a=" {"+r,i=r+"}",o=me(st(e),function(l){return l+a+me(st(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=me(st(t),function(l){return"@keyframes "+l+a+me(st(t[l]),function(u){return u+a+me(st(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function ww(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function DE(e,t,n,r){return En("svg","root",{width:e,height:t,xmlns:s4,"xmlns:xlink":l4,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var Dfe=0;function c4(){return Dfe++}var PE={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},bl="transform-origin";function Pfe(e,t,n){var r=ce({},e.shape);ce(r,t),e.buildPath(n,r);var a=new o4;return a.reset(Y3(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function kfe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[bl]=n+"px "+r+"px")}var Mfe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function f4(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Lfe(e,t,n){var r=e.shape.paths,a={},i,o;if(R(r,function(l){var u=ww(n.zrId);u.animation=!0,J0(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=st(c),v=d.length;if(v){o=d[v-1];var h=c[o];for(var g in h){var p=h[g];a[g]=a[g]||{d:""},a[g].d+=p.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(i=y)}}}),!!i){t.d=!1;var s=f4(a,n);return i.replace(o,s)}}function kE(e){return Ae(e)?PE[e]?"cubic-bezier("+PE[e]+")":JT(e)?e:"":""}function J0(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof vA){var s=Lfe(e,t,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var Z=f4(T,n);return Z+" "+y[0]+" both"}}for(var p in l){var s=g(l[p]);s&&o.push(s)}if(o.length){var m=n.zrId+"-cls-"+c4();n.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function Efe(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};ME(r,t,n)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=a.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=Vx(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};i&&(r.fill=i),a.stroke&&(r.stroke=a.stroke),u&&(r["stroke-width"]=u),ME(r,t,n)}}function ME(e,t,n,r){var a=JSON.stringify(e),i=n.cssStyleCache[a];i||(i=n.zrId+"-cls-"+c4(),n.cssStyleCache[a]=i,n.cssNodes["."+i+":hover"]=e),t.class=t.class?t.class+" "+i:i}var Xv=Math.round;function d4(e){return e&&Ae(e.src)}function v4(e){return e&&Ee(e.toDataURL)}function ZA(e,t,n,r){xfe(function(a,i){var o=a==="fill"||a==="stroke";o&&U3(i)?g4(t,e,a,r):o&&QT(i)?p4(n,e,a,r):o&&i==="none"?e[a]="transparent":e[a]=i},t,n,!1),Ffe(n,e,r)}function KA(e,t){var n=Lae(t);n&&(n.each(function(r,a){r!=null&&(e[(IE+a).toLowerCase()]=r+"")}),t.isSilent()&&(e[IE+"silent"]="true"))}function LE(e){return fs(e[0]-1)&&fs(e[1])&&fs(e[2])&&fs(e[3]-1)}function Rfe(e){return fs(e[4])&&fs(e[5])}function qA(e,t,n){if(t&&!(Rfe(t)&&LE(t))){var r=1e4;e.transform=LE(t)?"translate("+Xv(t[4]*r)/r+" "+Xv(t[5]*r)/r+")":tae(t)}}function EE(e,t,n){for(var r=e.points,a=[],i=0;i"u"){var p="Image width/height must been given explictly in svg-ssr renderer.";Ir(d,p),Ir(v,p)}else if(d==null||v==null){var m=function(A,D){if(A){var P=A.elm,k=d||D.width,L=v||D.height;A.tag==="pattern"&&(u?(L=1,k/=i.width):c&&(k=1,L/=i.height)),A.attrs.width=k,A.attrs.height=L,P&&(P.setAttribute("width",k),P.setAttribute("height",L))}},y=iA(h,null,e,function(A){l||m(S,A),m(f,A)});y&&y.width&&y.height&&(d=d||y.width,v=v||y.height)}f=En("image","img",{href:h,width:d,height:v}),o.width=d,o.height=v}else a.svgElement&&(f=Ne(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,b;l?_=b=1:u?(b=1,_=o.width/i.width):c?(_=1,b=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var x=X3(a);x&&(o.patternTransform=x);var S=En("pattern","",o,[f]),T=jA(S),C=r.patternCache,w=C[T];w||(w=r.zrId+"-p"+r.patternIdx++,C[T]=w,o.id=w,S=r.defs[w]=En("pattern",w,o,[f])),t[n]=w0(w)}}function Hfe(e,t,n){var r=n.clipPathCache,a=n.defs,i=r[e.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[e.id]=i,a[i]=En("clipPath",i,o,[h4(e,n)])}t["clip-path"]=w0(i)}function OE(e){return document.createTextNode(e)}function Il(e,t,n){e.insertBefore(t,n)}function NE(e,t){e.removeChild(t)}function BE(e,t){e.appendChild(t)}function m4(e){return e.parentNode}function y4(e){return e.nextSibling}function jb(e,t){e.textContent=t}var zE=58,Gfe=120,$fe=En("","");function Cw(e){return e===void 0}function yi(e){return e!==void 0}function Wfe(e,t,n){for(var r={},a=t;a<=n;++a){var i=e[a].key;i!==void 0&&(r[i]=a)}return r}function Md(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function jv(e){var t,n=e.children,r=e.tag;if(yi(r)){var a=e.elm=u4(r);if(JA($fe,e),he(n))for(t=0;ti?(h=n[l+1]==null?null:n[l+1].elm,_4(e,h,n,a,l)):Qm(e,t,r,i))}function bc(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(JA(e,t),Cw(t.text)?yi(r)&&yi(a)?r!==a&&Ufe(n,r,a):yi(a)?(yi(e.text)&&jb(n,""),_4(n,null,a,0,a.length-1)):yi(r)?Qm(n,r,0,r.length-1):yi(e.text)&&jb(n,""):e.text!==t.text&&(yi(r)&&Qm(n,r,0,r.length-1),jb(n,t.text)))}function Yfe(e,t){if(Md(e,t))bc(e,t);else{var n=e.elm,r=m4(n);jv(t),r!==null&&(Il(r,t.elm,y4(n)),Qm(r,[e],0,0))}return t}var Xfe=0,jfe=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=FE(),this.configLayer=FE(),this.storage=n,this._opts=r=ce({},r),this.root=t,this._id="zr"+Xfe++,this._oldVNode=DE(r.width,r.height),t&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=u4("svg");JA(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Yfe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return VE(t,ww(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=ww(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],s=this._bgVNode=Zfe(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=En("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=me(st(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(En("defs","defs",{},u)),t.animation){var c=Ife(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=En("style","stl",{},[],c);o.push(f)}}return DE(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},jA(this.renderToVNode({animation:We(t.cssAnimation,!0),emphasis:We(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:We(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[g]===l[g]);g--);for(var p=h-1;p>g;p--)o--,s=i[o-1];for(var m=g+1;m=s)}}for(var f=this.__startIndex;f15)break}}L.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=p.__endIndex;else for(var A=v.dpr,D=0;D0&&t>a[0]){for(l=0;lt);l++);s=r[a[l]]}if(a.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,a=0;a0?Zg:0),this._needsManuallyCompositing),c.__builtin__||UT("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),i=c),a.__dirty&Kr&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Ze(r[t],n,!0):r[t]=n;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(zt);function lf(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=af(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(t[i])}return r.join(" ")}var zh=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this)||this;return o.updateData(n,r,a,i),o}return t.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=hn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=rde,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){So(this.childAt(0))},t.prototype.downplay=function(){xo(this.childAt(0))},t.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},t.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},t.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(v):vt(d,v,s,r),ri(d)}if(this._updateCommon(n,r,l,a,i),u){var d=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Ht(d,v,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,v,h,g,p,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,v=i.blurScope,g=i.labelStatesModels,p=i.hoverScale,m=i.cursorStyle,h=i.emphasisDisabled),!i||n.hasItemOption){var y=i&&i.itemModel?i.itemModel:n.getItemModel(r),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),v=_.get("blurScope"),h=_.get("disabled"),g=Vn(y),p=_.getShallow("scale"),m=y.getShallow("cursor")}var b=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=Ru(n.getItemVisual(r,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var S=n.getItemVisual(r,"style"),T=S.fill;if(s instanceof Yn){var C=s.style;s.useStyle(ce({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(ce({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var w=n.getItemVisual(r,"liftZ"),A=this._z2;w!=null?A==null&&(this._z2=s.z2,s.z2+=w):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Qn(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:P,inheritColor:T,defaultOpacity:S.opacity});function P(V){return D?n.getName(V):lf(n,V)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;k.scaleX=this._sizeX*L,k.scaleY=this._sizeY*L,this.setSymbolScale(1),qt(this,d,v,h)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=He(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Ds(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ds(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Nf(n.getItemVisual(r,"symbolSize"))},t}(ze);function rde(e,t){this.parent.drift(e,t)}function Kb(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function $E(e){return e!=null&&!Oe(e)&&(e={isIgnore:e}),e||{}}function WE(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Vn(t),cursorStyle:t.get("cursor")}}var Fh=function(){function e(t){this.group=new ze,this._SymbolCtor=t||zh}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=$E(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=WE(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};i||r.removeAll(),t.diff(i).add(function(f){var d=c(f);if(Kb(t,d,f,n)){var v=new o(t,f,l,u);v.setPosition(d),t.setItemGraphicEl(f,v),r.add(v)}}).update(function(f,d){var v=i.getItemGraphicEl(d),h=c(f);if(!Kb(t,h,f,n)){r.remove(v);return}var g=t.getItemVisual(f,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)r.remove(v),v=new o(t,f,l,u),v.setPosition(h);else{v.updateData(t,f,l,u);var m={x:h[0],y:h[1]};s?v.attr(m):vt(v,m,a)}r.add(v),t.setItemGraphicEl(f,v)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=t._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=WE(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=$E(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function x4(e,t,n,r){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=n.get(e.baseDim,r),o[1-i]=a,t.dataToPoint(o)}function ide(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function ode(e,t,n,r,a,i,o,s){for(var l=ide(e,t),u=[],c=[],f=[],d=[],v=[],h=[],g=[],p=S4(a,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=a||g<0)break;if(eu(m,y)){if(l){g+=i;continue}break}if(g===n)e[i>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var _=m-u,b=y-c;if(_*_+b*b<.5){g+=i;continue}if(o>0){for(var x=g+i,S=t[x*2],T=t[x*2+1];S===m&&T===y&&p=r||eu(S,T))v=m,h=y;else{A=S-u,D=T-c;var L=m-u,V=S-m,N=y-c,$=T-y,z=void 0,H=void 0;if(s==="x"){z=Math.abs(L),H=Math.abs(V);var U=A>0?1:-1;v=m-U*z*o,h=y,P=m+U*H*o,k=y}else if(s==="y"){z=Math.abs(N),H=Math.abs($);var Y=D>0?1:-1;v=m,h=y-Y*z*o,P=m,k=y+Y*H*o}else z=Math.sqrt(L*L+N*N),H=Math.sqrt(V*V+$*$),w=H/(H+z),v=m-A*o*(1-w),h=y-D*o*(1-w),P=m+A*o*w,k=y+D*o*w,P=Wo(P,Uo(S,m)),k=Wo(k,Uo(T,y)),P=Uo(P,Wo(S,m)),k=Uo(k,Wo(T,y)),A=P-m,D=k-y,v=m-A*z/H,h=y-D*z/H,v=Wo(v,Uo(u,m)),h=Wo(h,Uo(c,y)),v=Uo(v,Wo(u,m)),h=Uo(h,Wo(c,y)),A=m-v,D=y-h,P=m+A*H/z,k=y+D*H/z}e.bezierCurveTo(f,d,v,h,m,y),f=P,d=k}else e.lineTo(m,y)}u=m,c=y,g+=i}return p}var w4=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),sde=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new w4},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&eu(a[o*2-2],a[o*2-1]);o--);for(;i=0){var b=u?(h-l)*_+l:(v-s)*_+s;return u?[n,b]:[b,n]}s=v,l=h;break;case o.C:v=i[f++],h=i[f++],g=i[f++],p=i[f++],m=i[f++],y=i[f++];var x=u?Dm(s,v,g,m,n,c):Dm(l,h,p,y,n,c);if(x>0)for(var S=0;S=0){var b=u?Dn(l,h,p,y,T):Dn(s,v,g,m,T);return u?[n,b]:[b,n]}}s=m,l=y;break}}},t}(at),lde=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(w4),C4=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new lde},t.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&eu(a[s*2-2],a[s*2-1]);s--);for(;ot){i?n.push(o(i,l,t)):a&&n.push(o(a,l,0),o(a,l,t));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function fde(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=t.getAxis(a),u=me(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=cde(u,a==="x"?n.getWidth():n.getHeight()),v=d.length;if(!v&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var h=10,g=d[0].coord-h,p=d[v-1].coord+h,m=p-g;if(m<.001)return"transparent";R(d,function(_){_.offset=(_.coord-g)/m}),d.push({offset:v?d[v-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:v?d[0].offset:.5,color:f[0]||"transparent"});var y=new Lh(0,0,0,0,d,!0);return y[a]=g,y[a+"2"]=p,y}}}function dde(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&vde(i,t))){var o=t.mapDimension(i.dim),s={};return R(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function vde(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function hde(e,t){return isNaN(e)||isNaN(t)}function gde(e){for(var t=e.length/2;t>0&&hde(e[t*2-2],e[t*2-1]);t--);return t-1}function ZE(e,t){return[e[t*2],e[t*2+1]]}function pde(e,t,n){for(var r=e.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function I4(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}He(g).seriesIndex=n.seriesIndex,qt(g,$,z,H);var Y=jE(n.get("smooth")),J=n.get("smoothMonotone");if(g.setShape({smooth:Y,smoothMonotone:J,connectNulls:C}),p){var ue=l.getCalculationInfo("stackedOnSeries"),le=0;p.useStyle(Re(c.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ue&&(le=jE(ue.get("smooth"))),p.setShape({smooth:Y,stackedOnSmooth:le,smoothMonotone:J,connectNulls:C}),Jn(p,n,"areaStyle"),He(p).seriesIndex=n.seriesIndex,qt(p,$,z,H)}var be=function(ae){i._changePolyState(ae)};l.eachItemGraphicEl(function(ae){ae&&(ae.onHoverStateChange=be)}),this._polyline.onHoverStateChange=be,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=D,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,g),p&&this.packEventData(n,p))},t.prototype.packEventData=function(n,r){He(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=hu(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,v=n.get("z")||0;u=new zh(o,s),u.x=c,u.y=f,u.setZ(d,v);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=d,h.z=v,h.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else kt.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=hu(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else kt.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;Vm(this._polyline,n),r&&Vm(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new sde({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new C4({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");Ee(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Ee(f)?f(null):f;n.eachItemGraphicEl(function(v,h){var g=v;if(g){var p=[v.x,v.y],m=void 0,y=void 0,_=void 0;if(a)if(o){var b=a,x=r.pointToCoord(p);i?(m=b.startAngle,y=b.endAngle,_=-x[1]/180*Math.PI):(m=b.r0,y=b.r,_=x[0])}else{var S=a;i?(m=S.x,y=S.x+S.width,_=v.x):(m=S.y+S.height,y=S.y,_=v.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var C=Ee(f)?f(h):c*T+d,w=g.getSymbolPath(),A=w.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:C}),w.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(I4(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new ft({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=gde(l);c>=0&&(Qn(s,Vn(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,v){return v!=null?b4(o,v):lf(o,f)},enableTextSetter:!0},mde(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,v=d.get("connectNulls"),h=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),y=p.inverse,_=r.shape,b=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?g:0)*(y?-1:1),S=(m?0:-g)*(y?-1:1),T=m?"x":"y",C=pde(f,b,T),w=C.range,A=w[1]-w[0],D=void 0;if(A>=1){if(A>1&&!v){var P=ZE(f,w[0]);u.attr({x:P[0]+x,y:P[1]+S}),o&&(D=d.getRawValue(w[0]))}else{var P=c.getPointOn(b,T);P&&u.attr({x:P[0]+x,y:P[1]+S});var k=d.getRawValue(w[0]),L=d.getRawValue(w[1]);o&&(D=dH(a,h,k,L,C.t))}i.lastFrameIndex=w[0]}else{var V=n===1||i.lastFrameIndex>0?w[0]:0,P=ZE(f,V);o&&(D=d.getRawValue(V)),u.attr({x:P[0]+x,y:P[1]+S})}if(o){var N=kf(u);typeof N.setLabelText=="function"&&N.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=ode(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),v=d.current,h=d.stackedOnCurrent,g=d.next,p=d.stackedOnNext;if(o&&(v=Yo(d.current,a,o,l),h=Yo(d.stackedOnCurrent,a,o,l),g=Yo(d.next,a,o,l),p=Yo(d.stackedOnNext,a,o,l)),XE(v,g)>3e3||c&&XE(h,p)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=d.current,u.shape.points=v;var m={shape:{points:g}};d.current!==v&&(m.shape.__points=d.next),u.stopAnimation(),vt(u,m,f),c&&(c.setShape({points:v,stackedOnPoints:h}),c.stopAnimation(),vt(c,{shape:{stackedOnPoints:p}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=d.status,b=0;b<_.length;b++){var x=_[b].cmd;if(x==="="){var S=n.getItemGraphicEl(_[b].idx1);S&&y.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,C=0;Ct&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;nt&&(t=i,n=a)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},bde=function(e){return Math.round(e.length/2)};function D4(e){return{seriesType:e,reset:function(t,n,r){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),v=Math.round(s/d);if(isFinite(v)&&v>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var h=void 0;Ae(i)?h=_de[i]:Ee(i)&&(h=i),h&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,h,bde))}}}}}function Sde(e){e.registerChartView(yde),e.registerSeriesModel(nde),e.registerLayout(Gh("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,D4("line"))}var Zv=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return Ro(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)R(i.getAxes(),function(d,v){if(d.type==="category"&&r!=null){var h=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),p=o[v],m=r[v]==="x1"||r[v]==="y1";if(m&&!g&&(p+=1),h.length<2)return;if(h.length===2){s[v]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var y=void 0,_=void 0,b=1,x=0;xp){_=(S+y)/2;break}x===1&&(b=T-h[0].tickValue)}_==null&&(y?y&&(_=h[h.length-1].coord):_=h[0].coord),s[v]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(zt);zt.registerClass(Zv);var xde=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return Ro(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=$s(Zv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Zv),wde=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ey=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new wde},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,v=Math.PI*2,h=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){zv(i,n,He(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(kt),KE={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=Jb(t.x,e.x),s=Qb(t.x+t.width,a),l=Jb(t.y,e.y),u=Qb(t.y+t.height,i),c=sa?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var a=Qb(t.r,e.r),i=Jb(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},qE={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new ut({shape:ce({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,a,i,o,s,l){var u=!a&&l?ey:Pr,c=new u({shape:r,z2:1});c.name="item";var f=P4(a);if(c.calculateTextPosition=Cde(f,{isRoundCap:u===ey}),i){var d=c.shape,v=a?"r":"endAngle",h={};d[v]=a?r.r0:r.startAngle,h[v]=r[v],(s?vt:Ht)(c,{shape:h},i)}return c}};function Dde(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function JE(e,t,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?vt:Ht)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?vt:Ht)(n,{shape:u},c,a)}function QE(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Mde(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function P4(e){return function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(e)}function t2(e,t,n,r,a,i,o,s){var l=t.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=zl(r.getModel("itemStyle"),c,!0);ce(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=Vn(r);Qn(e,h,{labelFetcher:i,labelDataIndex:n,defaultText:lf(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=e.getTextContent();if(s&&g){var p=r.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,Tde(e,p==="outside"?v:p,P4(o),r.get(["label","rotate"]))}ZH(g,h,i.getRawValue(n),function(y){return b4(t,y)});var m=r.getModel(["emphasis"]);qt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Jn(e,r),Mde(a)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function Lde(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,i)}var Ede=function(){function e(){}return e}(),n2=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new Ede},t.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?n:null},30,!1);function Rde(e,t,n){for(var r=e.baseDimIdx,a=1-r,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function k4(e,t,n){if(Ou(n,"cartesian2d")){var r=t,a=n.getArea();return{x:e?r.x:a.x,y:e?a.y:r.y,width:e?r.width:a.width,height:e?a.height:r.height}}else{var a=n.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function Vde(e,t,n){var r=e.type==="polar"?Pr:ut;return new r({shape:k4(t,n,e),silent:!0,z2:0})}function Ode(e){e.registerChartView(Ide),e.registerSeriesModel(xde),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ue(V$,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,O$("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,D4("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var i2=Math.PI*2,Qg=Math.PI/180;function M4(e,t){return xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function L4(e,t){var n=M4(e,t),r=e.get("center"),a=e.get("radius");he(a)||(a=[0,a]);var i=we(n.width,t.getWidth()),o=we(n.height,t.getHeight()),s=Math.min(i,o),l=we(a[0],s/2),u=we(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var v=d.dataToPoint(r);c=v[0]||0,f=v[1]||0}else he(r)||(r=[r,r]),c=we(r[0],i)+n.x,f=we(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function Nde(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=M4(r,n),s=L4(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*Qg,v=r.get("endAngle"),h=r.get("padAngle")*Qg;v=v==="auto"?d-i2:-v*Qg;var g=r.get("minAngle")*Qg,p=g+h,m=0;a.each(i,function($){!isNaN($)&&m++});var y=a.getSum(i),_=Math.PI/(y||m)*2,b=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),T=a.getDataExtent(i);T[0]=0;var C=b?1:-1,w=[d,v],A=C*h/2;oA(w,!b),d=w[0],v=w[1];var D=E4(r);D.startAngle=d,D.endAngle=v,D.clockwise=b;var P=Math.abs(v-d),k=P,L=0,V=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function($,z){var H;if(isNaN($)){a.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?H=y===0&&S?_:$*_:H=P/m,HH?(Y=V+C*H/2,J=Y):(Y=V+A,J=U-A),a.setItemLayout(z,{angle:H,startAngle:Y,endAngle:J,clockwise:b,cx:l,cy:u,r0:f,r:x?bt($,T,[f,c]):c}),V=U}),kn?m:p,x=Math.abs(_.label.y-n);if(x>=b.maxY){var S=_.label.x-t-_.len2*a,T=r+_.len,C=Math.abs(S)e.unconstrainedWidth?null:v:null;r.setStyle("width",h)}var g=r.getBoundingRect();i.width=g.width;var p=(r.style.margin||0)+2.1;i.height=g.height+p,i.y-=(i.height-f)/2}}}function eS(e){return e.position==="center"}function Fde(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*Bde,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function v(S){S.ignore=!0}function h(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}t.each(function(S){var T=t.getItemGraphicEl(S),C=T.shape,w=T.getTextContent(),A=T.getTextGuideLine(),D=t.getItemModel(S),P=D.getModel("label"),k=P.get("position")||D.get(["emphasis","label","position"]),L=P.get("distanceToLabelLine"),V=P.get("alignTo"),N=we(P.get("edgeDistance"),u),$=P.get("bleedMargin"),z=D.getModel("labelLine"),H=z.get("length");H=we(H,u);var U=z.get("length2");if(U=we(U,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":J>0?"left":"right"}var X=Math.PI,K=0,q=P.get("rotate");if(dt(q))K=q*(X/180);else if(k==="center")K=0;else if(q==="radial"||q===!0){var re=J<0?-Y+X:-Y;K=re}else if(q==="tangential"&&k!=="outside"&&k!=="outer"){var pe=Math.atan2(J,ue);pe<0&&(pe=X*2+pe);var F=ue>0;F&&(pe=X+pe),K=pe-X}if(i=!!K,w.x=le,w.y=be,w.rotation=K,w.setStyle({verticalAlign:"middle"}),te){w.setStyle({align:Z});var _e=w.states.select;_e&&(_e.x+=w.x,_e.y+=w.y)}else{var W=w.getBoundingRect().clone();W.applyTransform(w.getComputedTransform());var Q=(w.style.margin||0)+2.1;W.y-=Q/2,W.height+=Q,n.push({label:w,labelLine:A,position:k,len:H,len2:U,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new je(J,ue),linePoints:ae,textAlign:Z,labelDistance:L,labelAlignTo:V,edgeDistance:N,bleedMargin:$,rect:W,unconstrainedWidth:W.width,labelStyleWidth:w.style.width})}T.setTextConfig({inside:te})}}),!i&&e.get("avoidLabelOverlap")&&zde(n,r,a,l,u,d,c,f);for(var g=0;g0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},t.type="pie",t}(kt);function zf(e,t,n){t=he(t)&&{coordDimensions:t}||ce({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=Nh(r,t).dimensions,i=new Tr(a,e);return i.initData(r,n),i}var Wh=function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e}(),$de=ct(),Wde=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wh(Ie(this.getData,this),Ie(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return zf(this,{coordDimensions:["value"],encodeDefaulter:Ue(wA,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=$de(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Oae(o,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){vu(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(zt);function Ude(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(dt(o)&&!isNaN(o)&&o<0)})}}}function Yde(e){e.registerChartView(Gde),e.registerSeriesModel(Wde),t$("pie",e.registerAction),e.registerLayout(Ue(Nde,"pie")),e.registerProcessor($h("pie")),e.registerProcessor(Ude("pie"))}var Xde=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return Ro(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(zt),V4=4,jde=function(){function e(){}return e}(),Zde=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new jde},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),qde=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Gh("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Kde:new Fh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(kt),Jde=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ot),Aw=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",dn).models[0]},t.type="cartesian2dAxis",t}(ot);mn(Aw,Bh);var O4={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Qde=Ze({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},O4),QA=Ze({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},O4),eve=Ze({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},QA),tve=Re({logBase:10},QA);const N4={category:Qde,value:QA,time:eve,log:tve};var nve={value:1,category:1,time:1,log:1};function uf(e,t,n,r){R(nve,function(a,i){var o=Ze(Ze({},N4[i],!0),r,!0),s=function(l){ee(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Hv(this),v=d?Ef(c):{},h=f.getTheme();Ze(c,h.get(i+"Axis")),Ze(c,this.getDefaultOption()),c.type=s2(c),d&&Ps(c,v,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=_w.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",s2)}function s2(e){return e.type||(e.data?"category":"value")}var rve=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return me(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Tt(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}(),Iw=["x","y"];function l2(e){return e.type==="interval"||e.type==="time"}var ave=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Iw,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!l2(n)||!l2(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,v=o[1]-i[0]*f,h=this._transform=[c,0,0,f,d,v];this._invTransform=Tf([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new Ke(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Zn(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},t.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return Zn(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1])-n,o=Math.min(a[0],a[1])-n,s=Math.max(r[0],r[1])-i+n,l=Math.max(a[0],a[1])-o+n;return new Ke(i,o,s,l)},t}(rve),ive=function(e){ee(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(oi);function Dw(e,t,n){n=n||{};var r=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,h=u==="x"?[f[2]-v,f[3]+v]:[f[0]-v,f[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));h[d.onZero]=Math.max(Math.min(g,h[1]),h[0])}i.position=[u==="y"?h[d[l]]:f[0],u==="x"?h[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[s],i.labelOffset=o?h[d[s]]-h[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Hn(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function u2(e){return e.get("coordinateSystem")==="cartesian2d"}function c2(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,dn).models[0];t[r]=i}),t}var tS=Math.log;function B4(e,t,n){var r=Co.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=H$(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=tS(e.base);u=[tS(u[0])/d,tS(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var v=r.getExtent.call(e);c&&(u[0]=v[0]),f&&(u[1]=v[1]);var h=r.getInterval.call(e),g=u[0],p=u[1];if(c&&f)h=(p-g)/o;else if(c)for(p=u[0]+h*o;pu[0]&&isFinite(g)&&isFinite(u[0]);)h=Fb(h),g=u[1]-h*o;else{var m=e.getTicks().length-1;m>o&&(h=Fb(h));var y=h*o;p=Math.ceil(u[1]/h)*h,g=tn(p-y),g<0&&u[0]>=0?(g=0,p=tn(y)):p>0&&u[1]<=0&&(p=0,g=-tn(y))}var _=(a[0].value-i[0].value)/s,b=(a[o].value-i[o].value)/s;r.setExtent.call(e,g+h*_,p+h*b),r.setInterval.call(e,h),(_||b)&&r.setNiceExtent.call(e,g+h,p-h)}var ove=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Iw,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=st(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],v=o[d],h=v.model,g=v.scale;bw(g)&&h.get("alignTicks")&&h.get("interval")==null?c.push(v):(sf(g,h),bw(g)&&(s=v))}c.length&&(s||(s=c.pop(),sf(s.scale,s.model)),R(c,function(p){B4(p.scale,p.model,s.scale)}))}}a(r.x),a(r.y);var i={};R(r.x,function(o){f2(r,"y",o,i)}),R(r.y,function(o){f2(r,"x",o,i)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var a=t.getBoxLayoutParams(),i=!r&&t.get("containLabel"),o=xn(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Fce(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),sve(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Oe(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):Vv(a-ds)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),v2={axisLine:function(e,t,n,r){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Zn(s,s,o),Zn(l,l,o));var c=ce({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ln({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});rf(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var v=t.get(["axisLine","symbolSize"]);Ae(d)&&(d=[d,d]),(Ae(v)||dt(v))&&(v=[v,v]);var h=Ru(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];R([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=hn(d[y],-g/2,-p/2,g,p,c.stroke,!0),b=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+b*Math.cos(e.rotation),y:x[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var a=cve(n,r,t,e),i=dve(n,r,t,e);if(uve(t,i,a),fve(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=t4(me(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));a4(o)}},axisName:function(e,t,n,r){var a=Hn(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,g2(i)?e.labelOffset+o*l:0],d,v=t.get("nameRotate");v!=null&&(v=v*ds/180);var h;g2(i)?d=Ar.innerTextLayout(e.rotation,v??e.rotation,o):(d=lve(e.rotation,i,v||0,u),h=e.axisNameAvailableWidth,h!=null&&(h=Math.abs(h/Math.sin(d.rotation)),!isFinite(h)&&(h=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,y=Hn(e.nameTruncateMaxWidth,p.maxWidth,h),_=new ft({x:f[0],y:f[1],rotation:d.rotation,silent:Ar.isLabelSilent(t),style:Nt(s,{text:a,font:g,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Pf({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var b=Ar.makeAxisEventDataBase(t);b.targetType="axisName",b.name=a,He(_).eventData=b}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function lve(e,t,n,r){var a=nH(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Vv(a-ds/2)?(o=l?"bottom":"top",i="center"):Vv(a-ds*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",ads/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function uve(e,t,n){if(!G$(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(ua(i),ua(u)):h2(i,o)&&(r?(ua(o),ua(c)):(ua(i),ua(u))),a===!1?(ua(s),ua(f)):h2(l,s)&&(a?(ua(l),ua(d)):(ua(s),ua(f)))}}function ua(e){e&&(e.ignore=!0)}function h2(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=x0([]);return Lu(a,a,-e.rotation),n.applyTransform(uo([],a,e.getLocalTransform())),r.applyTransform(uo([],a,t.getLocalTransform())),n.intersect(r)}}function g2(e){return e==="middle"||e==="center"}function z4(e,t,n,r,a){for(var i=[],o=[],s=[],l=0;l=0||e===t}function yve(e){var t=eI(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=Pw(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!h.min?h.min=0:h.min!=null&&h.min<0&&!h.max&&(h.max=0);var g=l;h.color!=null&&(g=Re({color:h.color},l));var p=Ze(Ne(h),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:h.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(Ae(c)){var m=p.name;p.name=c.replace("{value}",m??"")}else Ee(c)&&(p.name=c(p.name,p));var y=new _t(p,null,this.ecModel);return mn(y,Bh.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Ze({lineStyle:{color:"#bbb"}},fd.axisLine),axisLabel:ep(fd.axisLabel,!1),axisTick:ep(fd.axisTick,!1),splitLine:ep(fd.splitLine,!0),splitArea:ep(fd.splitArea,!0),indicator:[]},t}(ot),Mve=["axisLine","axisTickLabel","axisName"],Lve=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=me(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Ar(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});R(i,function(o){R(Mve,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),v=u.get("color"),h=he(d)?d:[d],g=he(v)?v:[v],p=[],m=[];function y(V,N,$){var z=$%N.length;return V[z]=V[z]||[],z}if(i==="circle")for(var _=a[0].getTicksCoords(),b=r.cx,x=r.cy,S=0;S<_.length;S++){if(c){var T=y(p,h,S);p[T].push(new Eo({shape:{cx:b,cy:x,r:_[S].coord}}))}if(f&&S<_.length-1){var T=y(m,g,S);m[T].push(new kh({shape:{cx:b,cy:x,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var C,w=me(a,function(V,N){var $=V.getTicksCoords();return C=C==null?$.length-1:Math.min($.length-1,C),me($,function(z){return r.coordToPoint(z.coord,N)})}),A=[],S=0;S<=C;S++){for(var D=[],P=0;P3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;aS(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);aS(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!S2(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;aS(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(Ra);function aS(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(_o(r.event),U4(e,t,n,r,a))}function U4(e,t,n,r,a){a.isAvailableBehavior=Ie(Hp,null,n,r),e.trigger(t,a)}function Hp(e,t,n){var r=n[e];return!e||r&&(!Ae(r)||t.event[r+"Key"])}function nI(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function rI(e,t,n,r){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var zve={axisPointer:1,tooltip:1,brush:1};function Q0(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!zve.hasOwnProperty(r.mainType)&&a&&a.model!==n}function Y4(e){if(Ae(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var iS,ty={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},x2=st(ty),ny={"alignment-baseline":"textBaseline","stop-color":"stopColor"},w2=st(ny),Fve=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=Y4(t);this._defsUsePending=[];var a=new ze;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Xr(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;$ve(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=e_(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=j4(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var v=a;a=new ze,a.add(v),v.scaleX=v.scaleY=f.scale,v.x=f.x,v.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new ut({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,n,r,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=iS[s];if(c&&Pe(iS,s)){l=c.call(this,t,n);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var v=C2[s];if(v&&Pe(C2,s)){var h=v.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=h)}}if(l&&l.isGroup)for(var p=t.firstChild;p;)p.nodeType===1?this._parseNode(p,l,r,u,i,o):p.nodeType===3&&o&&this._parseText(p,l),p=p.nextSibling},e.prototype._parseText=function(t,n){var r=new nf({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),Hve(r,n);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=function(){iS={g:function(t,n){var r=new ze;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new ut;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new Eo;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new Ln;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new L0;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),a;r&&(a=I2(r));var i=new kr({shape:{points:a||[]},silent:!0});return ca(n,i),Xr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=I2(r));var i=new Lr({shape:{points:a||[]},silent:!0});return ca(n,i),Xr(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new Yn;return ca(n,r),Xr(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new ze;return ca(n,s),Xr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),a=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new ze;return ca(n,s),Xr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,n){var r=t.getAttribute("d")||"",a=NH(r);return ca(n,a),Xr(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),C2={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new Lh(t,n,r,a);return T2(e,i),A2(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),a=new HH(t,n,r);return T2(e,a),A2(e,a),a}};function T2(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function A2(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};X4(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function ca(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Re(t.__inheritedStyle,e.__inheritedStyle))}function I2(e){for(var t=e_(e),n=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=e_(o);switch(a=a||Jr(),s){case"translate":Li(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":qT(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Lu(a,a,-parseFloat(l[0])*oS,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*oS);uo(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*oS);uo(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var P2=/([^\s:;]+)\s*:\s*([^:;]+)/g;function X4(e,t,n){var r=e.getAttribute("style");if(r){P2.lastIndex=0;for(var a;(a=P2.exec(r))!=null;){var i=a[1],o=Pe(ty,i)?ty[i]:null;o&&(t[o]=a[2]);var s=Pe(ny,i)?ny[i]:null;s&&(n[s]=a[2])}}}function Xve(e,t,n){for(var r=0;r0,p={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(p):l.resourceType==="geoSVG"&&this._buildSVG(p),this._updateController(t,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=Le(),r=Le(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(v,h){return h&&(v=h(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function f(v){for(var h=[],g=!u&&l&&l.project,p=0;p=0)&&(d=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Qn(t,Vn(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},v);var h=t.getTextContent();if(h&&(Z4(h).ignore=h.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function R2(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):He(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function V2(e,t,n,r,a){e.data||Pf({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function O2(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return qt(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&uoe(t,a,n),o}function N2(e,t,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),R(e,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(zt);function vhe(e,t){var n={};return R(e,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c1?(b.width=_,b.height=_/p):(b.height=_,b.width=_*p),b.y=y[1]-b.height/2,b.x=y[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=p,b=xn(x,{width:h,height:g})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function mhe(e,t){R(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var yhe=function(){function e(){this.dimensions=q4}return e.prototype.create=function(t,n){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Lw(l+s,l,ce({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=H2,u.resize(o,n)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),R(i,function(o,s){var l=me(o,function(c){return c.get("nameMap")}),u=new Lw(s,s,ce({nameMap:YT(l)},a(o[0])));u.zoomLimit=Hn.apply(null,me(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=H2,u.resize(o[0],n),R(o,function(c){c.coordinateSystem=u,mhe(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=Le(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function Che(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,a=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){Ihe(e);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=Dhe(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function The(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function $2(e){return arguments.length?e:Mhe}function Ld(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Ahe(e,t){return xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ihe(e){for(var t=e.children,n=t.length,r=0,a=0;--n>=0;){var i=t[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function Dhe(e,t,n,r){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=sS(s),i=lS(i),s&&i;){a=sS(a),o=lS(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(khe(Phe(s,e,n),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!sS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!lS(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function sS(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function lS(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Phe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function khe(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Mhe(e,t){return e.parentNode===t.parentNode?1:2}var Lhe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Ehe=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lhe},t.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=we(r.forkPosition,1),v=[];v[c]=o[c],v[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(v[0],v[1]),n.moveTo(s[0],s[1]),v[c]=s[c],n.lineTo(v[0],v[1]),v[c]=l[c],n.lineTo(v[0],v[1]),n.lineTo(l[0],l[1]);for(var h=1;hy.x,x||(b=b-Math.PI));var T=x?"left":"right",C=s.getModel("label"),w=C.get("rotate"),A=w*(Math.PI/180),D=p.getTextContent();D&&(p.setTextConfig({position:C.get("position")||T,rotation:w==null?-b:A,origin:"center"}),D.setStyle("verticalAlign","middle"))}var P=s.get(["emphasis","focus"]),k=P==="relative"?Tm(o.getAncestorsIndices(),o.getDescendantIndices()):P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():null;k&&(He(n).focus=k),Vhe(a,o,c,n,h,v,g,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var V=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);V&&V.hoverState===Ph||Vm(n.__edge,L)}})}function Vhe(e,t,n,r,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),v=e.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new Mh({shape:Ew(c,f,d,a,a)})),vt(g,{shape:Ew(c,f,d,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var p=t.children,m=[],y=0;yn&&(n=a.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,a=r.length;n=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n=0){var r=n.getData().tree.root,a=e.targetNode;if(Ae(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function rW(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function lI(e,t){var n=rW(e);return Qe(n,t)>=0}function t_(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Whe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new _t(a,this,this.ecModel),o=sI.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,v){var h=o.getNodeByDataIndex(v);return h&&h.children.length&&h.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return On("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=t_(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(zt);function Uhe(e,t,n){for(var r=[e],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)n.push(a[i])}}function Yhe(e,t){e.eachSeriesByType("tree",function(n){Xhe(n,t)})}function Xhe(e,t){var n=Ahe(e,t);e.layoutInfo=n;var r=e.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(n.height,n.width)/2,o=$2(function(_,b){return(_.parentNode===b.parentNode?1:2)/_.depth})):(a=n.width,i=n.height,o=$2());var s=e.getData().tree.root,l=s.children[0];if(l){whe(s),Uhe(l,Che,o),s.hierNode.modifier=-l.hierNode.prelim,vd(l,The);var u=l,c=l,f=l;vd(l,function(_){var b=_.getLayout().x;bc.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,v=d-u.getLayout().x,h=0,g=0,p=0,m=0;if(r==="radial")h=a/(c.getLayout().x+d+v),g=i/(f.depth-1||1),vd(l,function(_){p=(_.getLayout().x+v)*h,m=(_.depth-1)*g;var b=Ld(p,m);_.setLayout({x:b.x,y:b.y,rawX:p,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(g=i/(c.getLayout().x+d+v),h=a/(f.depth-1||1),vd(l,function(_){m=(_.getLayout().x+v)*g,p=y==="LR"?(_.depth-1)*h:a-(_.depth-1)*h,_.setLayout({x:p,y:m},!0)})):(y==="TB"||y==="BT")&&(h=a/(c.getLayout().x+d+v),g=i/(f.depth-1||1),vd(l,function(_){p=(_.getLayout().x+v)*h,m=y==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:p,y:m},!0)}))}}}function jhe(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");ce(s,o)})})}function Zhe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var a=t.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=iI(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function Khe(e){e.registerChartView(Rhe),e.registerSeriesModel(Whe),e.registerLayout(Yhe),e.registerVisual(jhe),Zhe(e)}var j2=["treemapZoomToNode","treemapRender","treemapMove"];function qhe(e){for(var t=0;t1;)i=i.parentNode;var o=sw(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var Jhe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};iW(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new _t({itemStyle:o},this,r);i=n.levels=Qhe(i,r);var l=me(i||[],function(f){return new _t(f,s,r)},this),u=sI.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,v){var h=u.getNodeByDataIndex(v),g=h?l[h.depth]:null;return d.parentModel=g||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return On("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=t_(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},ce(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Le(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){aW(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(zt);function iW(e){var t=0;R(e.children,function(r){iW(r);var a=r.value;he(a)&&(a=a[0]),t+=a});var n=e.value;he(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),he(e.value)?e.value[0]=n:e.value=n}function Qhe(e,t){var n=It(t.get("color")),r=It(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;R(e,function(s){var l=new _t(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),e}}var ege=8,Z2=8,uS=5,tge=function(){function e(t){this.group=new ze,t.add(this.group)}return e.prototype.render=function(t,n,r,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(t,f,s,l,u,c,a),G0(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=Sn(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+ege*2,n.emptyItemWidth);n.totalWidth+=s+Z2,n.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,n,r,a,i,o,s){for(var l=0,u=n.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=fse(n.pos,n.box),d=n.totalWidth,v=n.renderList,h=a.getModel("itemStyle").getItemStyle(),g=v.length-1;g>=0;g--){var p=v[g],m=p.node,y=p.width,_=p.text;d>f.width&&(d-=y-u,y=u,_=null);var b=new kr({shape:{points:nge(l,0,y,c,g===v.length-1,g===0)},style:Re(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new ft({style:Nt(i,{text:_})}),textConfig:{position:"inside"},z2:If*1e4,onclick:Ue(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Nt(o,{text:_}),b.ensureState("emphasis").style=h,qt(b,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(b),rge(b,t,m),l+=y+Z2}},e.prototype.remove=function(){this.group.removeAll()},e}();function nge(e,t,n,r,a,i){var o=[[a?e:e-uS,t],[e+n,t],[e+n,t+r],[a?e:e-uS,t+r]];return!i&&o.splice(2,0,[e+n+uS,t+r/2]),!a&&o.push([e,t+r/2]),o}function rge(e,t,n){He(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&t_(n,t)}}var age=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;aq2||Math.abs(n.dy)>q2)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(n){var r=n.originX,a=n.originY,i=n.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Ke(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var d=u.min||0,v=u.max||1/0;f=Math.max(Math.min(v,f),d)}var h=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;r-=g.x,a-=g.y;var p=Jr();Li(p,p,[-r,-a]),qT(p,p,[h,h]),Li(p,p,[r,a]),l.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&Hm(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,a){var i=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new tge(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(lI(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=hd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(kt);function hd(){return{nodeGroup:[],background:[],content:[]}}function cge(e,t,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var v=c.width,h=c.height,g=c.borderWidth,p=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,b=c.upperHeight,x=_&&_.length,S=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),w=d.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,D=le("nodeGroup",Rw);if(!D)return;if(l.add(D),D.x=c.x||0,D.y=c.y||0,D.markRedraw(),ry(D).nodeWidth=v,ry(D).nodeHeight=h,c.isAboveViewRoot)return D;var P=le("background",K2,u,sge);P&&H(D,P,x&&c.upperLabelHeight);var k=d.getModel("emphasis"),L=k.get("focus"),V=k.get("blurScope"),N=k.get("disabled"),$=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(x)Bv(D)&&Rl(D,!1),P&&(Rl(P,!N),f.setItemGraphicEl(o.dataIndex,P),Qx(P,$,V));else{var z=le("content",K2,u,lge);z&&U(D,z),P.disableMorphing=!0,P&&Bv(P)&&Rl(P,!1),Rl(D,!N),f.setItemGraphicEl(o.dataIndex,D),Qx(D,$,V)}return D;function H(Z,te,se){var G=He(te);if(G.dataIndex=o.dataIndex,G.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:v,height:h,r:A}),p)Y(te);else{te.invisible=!1;var B=o.getVisual("style"),j=B.stroke,M=eR(S);M.fill=j;var O=xl(T);O.fill=T.get("borderColor");var X=xl(C);X.fill=C.get("borderColor");var K=xl(w);if(K.fill=w.get("borderColor"),se){var q=v-2*g;J(te,j,B.opacity,{x:g,y:0,width:q,height:b})}else te.removeTextContent();te.setStyle(M),te.ensureState("emphasis").style=O,te.ensureState("blur").style=X,te.ensureState("select").style=K,pu(te)}Z.add(te)}function U(Z,te){var se=He(te);se.dataIndex=o.dataIndex,se.seriesIndex=e.seriesIndex;var G=Math.max(v-2*g,0),B=Math.max(h-2*g,0);if(te.culling=!0,te.setShape({x:g,y:g,width:G,height:B,r:A}),p)Y(te);else{te.invisible=!1;var j=o.getVisual("style"),M=j.fill,O=eR(S);O.fill=M,O.decal=j.decal;var X=xl(T),K=xl(C),q=xl(w);J(te,M,j.opacity,null),te.setStyle(O),te.ensureState("emphasis").style=X,te.ensureState("blur").style=K,te.ensureState("select").style=q,pu(te)}Z.add(te)}function Y(Z){!Z.invisible&&i.push(Z)}function J(Z,te,se,G){var B=d.getModel(G?Q2:J2),j=Sn(d.get("name"),null),M=B.getShallow("show");Qn(Z,Vn(d,G?Q2:J2),{defaultText:M?j:null,inheritColor:te,defaultOpacity:se,labelFetcher:e,labelDataIndex:o.dataIndex});var O=Z.getTextContent();if(O){var X=O.style,K=jT(X.padding||0);G&&(Z.setTextConfig({layoutRect:G}),O.disableLabelLayout=!0),O.beforeUpdate=function(){var re=Math.max((G?G.width:Z.shape.width)-K[1]-K[3],0),pe=Math.max((G?G.height:Z.shape.height)-K[0]-K[2],0);(X.width!==re||X.height!==pe)&&O.setStyle({width:re,height:pe})},X.truncateMinChar=2,X.lineOverflow="truncate",ue(X,G,c);var q=O.getState("emphasis");ue(q?q.style:null,G,c)}}function ue(Z,te,se){var G=Z?Z.text:null;if(!te&&se.isLeafRoot&&G!=null){var B=e.get("drillDownIcon",!0);Z.text=B?B+" "+G:G}}function le(Z,te,se,G){var B=y!=null&&n[Z][y],j=a[Z];return B?(n[Z][y]=null,be(j,B)):p||(B=new te,B instanceof ka&&(B.z2=fge(se,G)),ae(j,B)),t[Z][m]=B}function be(Z,te){var se=Z[m]={};te instanceof Rw?(se.oldX=te.x,se.oldY=te.y):se.oldShape=ce({},te.shape)}function ae(Z,te){var se=Z[m]={},G=o.parentNode,B=te instanceof ze;if(G&&(!r||r.direction==="drillDown")){var j=0,M=0,O=a.background[G.getRawIndex()];!r&&O&&O.oldShape&&(j=O.oldShape.width,M=O.oldShape.height),B?(se.oldX=0,se.oldY=M):se.oldShape={x:j,y:M,width:0,height:0}}se.fadein=!B}}function fge(e,t){return e*oge+t}var Jv=R,dge=Oe,ay=-1,Rn=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=Ne(t);this.type=r,this.mappingMethod=n,this._normalizeData=gge[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(cS(a),vge(a)):n==="category"?a.categories?hge(a):cS(a,!0):(Ir(n!=="linear"||a.dataExtent),cS(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return Ie(this._normalizeData,this)},e.listVisualTypes=function(){return st(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){Oe(t)?R(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=he(t)?[]:Oe(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var n={},r;return t&&Jv(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(he(t))t=t.slice();else if(dge(t)){var n=[];Jv(t,function(r,a){n.push(a)}),t=n}else return[];return t.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var a,i=1/0,o=0,s=n.length;o=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function cS(e,t){var n=e.visual,r=[];Oe(n)?Jv(n,function(i){r.push(i)}):n!=null&&r.push(n);var a={color:1,symbol:1};!t&&r.length===1&&!a.hasOwnProperty(e.type)&&(r[1]=r[0]),oW(e,r)}function np(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:Vw([0,1])}}function tR(e){var t=this.option.visual;return t[Math.round(bt(e,[0,1],[0,t.length-1],!0))]||{}}function gd(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Ed(e){var t=this.option.visual;return t[this.option.loop&&e!==ay?e%t.length:e]}function wl(){return this.option.visual[0]}function Vw(e){return{linear:function(t){return bt(t,e,this.option.visual,!0)},category:Ed,piecewise:function(t,n){var r=Ow.call(this,n);return r==null&&(r=bt(t,e,this.option.visual,!0)),r},fixed:wl}}function Ow(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=Rn.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function oW(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=me(t,function(n){var r=Qr(n);return r||[0,0,0,1]})),t}var gge={linear:function(e){return bt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Rn.findPieceIndex(e,t,!0);if(n!=null)return bt(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??ay},fixed:ln};function rp(e,t,n){return e?t<=n:t=n.length||g===n[g.depth]){var m=Sge(a,l,g,p,h,r);lW(g,m,n,r)}})}}}function yge(e,t,n){var r=ce({},t),a=n.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function nR(e){var t=fS(e,"color");if(t){var n=fS(e,"colorAlpha"),r=fS(e,"colorSaturation");return r&&(t=Xd(t,null,null,r)),n&&(t=Pm(t,n)),t}}function _ge(e,t){return t!=null?Xd(t,null,null,e):null}function fS(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function bge(e,t,n,r,a,i){if(!(!i||!i.length)){var o=dS(t,"color")||a.color!=null&&a.color!=="none"&&(dS(t,"colorAlpha")||dS(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Rn(f);return sW(d).drColorMappingBy=c,d}}}function dS(e,t){var n=e.get(t);return he(n)&&n.length?{name:t,range:n}:null}function Sge(e,t,n,r,a,i){var o=ce({},t);if(a){var s=a.type,l=s==="color"&&sW(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Qv=Math.max,iy=Math.min,rR=Hn,uI=R,uW=["itemStyle","borderWidth"],xge=["itemStyle","gapWidth"],wge=["upperLabel","show"],Cge=["upperLabel","height"];const Tge={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=xn(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=we(rR(s.width,l[0]),a),c=we(rR(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],v=qv(r,d,e),h=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,g=e.getViewRoot(),p=rW(g);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?Mge(e,v,g,u,c):h?[h.width,h.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var _={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(b),cW(g,_,!1,0),b=g.getLayout(),uI(p,function(S,T){var C=(p[T+1]||g).getValue();S.setLayout(ce({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var x=e.getData().tree.root;x.setLayout(Lge(s,h,v),!0),e.setLayoutInfo(s),fW(x,new Ke(-s.x,-s.y,a,i),p,g,0)}};function cW(e,t,n,r){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(uW),u=s.get(xge)/2,c=dW(s),f=Math.max(l,c),d=l-u,v=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Qv(a-2*d,0),i=Qv(i-d-v,0);var h=a*i,g=Age(e,s,h,t,n,r);if(g.length){var p={x:d,y:v,width:a,height:i},m=iy(a,i),y=1/0,_=[];_.area=0;for(var b=0,x=g.length;b=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*ts[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function kge(e,t,n){for(var r=0,a=1/0,i=0,o=void 0,s=e.length;ir&&(r=o));var l=e.area*e.area,u=t*t*n;return l?Qv(u*r/l,l/(u*a)):1/0}function aR(e,t,n,r,a){var i=t===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=t?e.area/t:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=e.length;fmM&&(u=mM),i=s}ur&&(r=t);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var T=b[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(b[1],b[0]);f[0].8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*y+c[1],h=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*T+c[0],i.y=c[1]+w,h=b[0]<0?"right":"left",i.originX=-m*T,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*T+f[0],i.y=f[1]+w,h=b[0]>=0?"right":"left",i.originX=m*T,i.originY=-w;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||h})}},t}(ze),hI=function(){function e(t){this.group=new ze,this._LineCtor=t||vI}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=t,i||a.removeAll();var o=cR(t);t.diff(i).add(function(s){n._doAdd(t,s,o)}).update(function(s,l){n._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=cR(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!Kge(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0}function cR(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Vn(t)}}function fR(e){return isNaN(e[0])||isNaN(e[1])}function mS(e){return e&&!fR(e[0])&&!fR(e[1])}var yS=[],_S=[],bS=[],sc=zn,SS=Xl,dR=Math.abs;function vR(e,t,n){for(var r=e[0],a=e[1],i=e[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){yS[0]=sc(r[0],a[0],i[0],c),yS[1]=sc(r[1],a[1],i[1],c);var f=dR(SS(yS,t)-l);f=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function xS(e,t){var n=[],r=Lv,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[lo(u[0]),lo(u[1])],u[2]&&u.__original.push(lo(u[2])));var d=u.__original;if(u[2]!=null){if(yr(a[0],d[0]),yr(a[1],d[2]),yr(a[2],d[1]),c&&c!=="none"){var v=Vd(s.node1),h=vR(a,d[0],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],h,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var v=Vd(s.node2),h=vR(a,d[1],v*t);r(a[0][0],a[1][0],a[2][0],h,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],h,n),a[1][1]=n[1],a[2][1]=n[2]}yr(u[0],a[0]),yr(u[1],a[2]),yr(u[2],a[1])}else{if(yr(i[0],d[0]),yr(i[1],d[1]),Ll(o,i[1],i[0]),Cf(o,o),c&&c!=="none"){var v=Vd(s.node1);Cx(i[0],i[0],o,v*t)}if(f&&f!=="none"){var v=Vd(s.node2);Cx(i[1],i[1],o,-v*t)}yr(u[0],i[0]),yr(u[1],i[1])}})}function hR(e){return e.type==="view"}var qge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var a=new Fh,i=new hI,o=this.group;this._controller=new Uh(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(hR(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):vt(u,c,n)}xS(n.getGraph(),Rd(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var v=n.forceLayout,h=n.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,h);var g=n.get("layout");f.graph.eachNode(function(_){var b=_.dataIndex,x=_.getGraphicEl(),S=_.getModel();if(x){x.off("drag").off("dragend");var T=S.get("draggable");T&&x.on("drag",function(w){switch(g){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,h),v.setFixed(b),f.setItemLayout(b,[x.x,x.y]);break;case"circular":f.setItemLayout(b,[x.x,x.y]),_.setLayout({fixed:!0},!0),dI(n,"symbolSize",_,[w.offsetX,w.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(b,[x.x,x.y]),fI(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){v&&v.setUnfixed(b)}),x.setDraggable(T,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(He(x).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var b=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(He(b).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var p=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(_){pW(_,p,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Q0(u,a,n)}),!hR(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){nI(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){rI(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),xS(n.getGraph(),Rd(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=Rd(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){xS(n.getGraph(),Rd(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(kt);function lc(e){return"_EC_"+e}var Jge=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[lc(t)]){var a=new Cl(t,n);return a.hostGraph=this,this.nodes.push(a),r[lc(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[lc(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(dt(t)&&(t=this.nodes[t]),dt(n)&&(n=this.nodes[n]),t instanceof Cl||(t=a[lc(t)]),n instanceof Cl||(n=a[lc(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new yW(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof Cl&&(t=t.id),n instanceof Cl&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,a=r.length,i=0;i=0&&t.call(n,r[i],i)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&t.call(n,r[i],i)},e.prototype.breadthFirstTraverse=function(t,n,r,a){if(n instanceof Cl||(n=this._nodesMap[lc(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}mn(Cl,_W("hostGraph","data"));mn(yW,_W("hostGraph","edgeData"));function bW(e,t,n,r,a){for(var i=new Jge(r),o=0;o "+d)),u++)}var v=n.get("coordinateSystem"),h;if(v==="cartesian2d"||v==="polar")h=Ro(e,n);else{var g=Vh.get(v),p=g?g.dimensions||[]:[];Qe(p,"value")<0&&p.concat(["value"]);var m=Nh(e,{coordDimensions:p,encodeDefine:n.getEncode()}).dimensions;h=new Tr(m,n),h.initData(e)}var y=new Tr(["value"],n);return y.initData(l,s),a&&a(h,y),tW({mainData:h,struct:i,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Qge=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new Wh(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),vu(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],i=n.data||n.nodes||[],o=this;if(i&&a){zge(this);var s=bW(i,a,this,!0,l);return R(s.edges,function(u){Fge(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(h){var g=o._categoriesModels,p=h.getShallow("category"),m=g[p];return m&&(m.parentModel=h.parentModel,h.parentModel=m),h});var f=_t.prototype.getModel;function d(h,g){var p=f.call(this,h,g);return p.resolveParentPath=v,p}c.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=d,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var g=h.slice();return h[0]==="label"?g[0]="edgeLabel":h[1]==="label"&&(g[1]="edgeLabel"),g}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),On("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=UG({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=me(this.option.categories||[],function(a){return a.value!=null?a:ce({value:0},a)}),r=new Tr(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt),epe={type:"graphRoam",event:"graphRoam",update:"none"};function tpe(e){e.registerChartView(qge),e.registerSeriesModel(Qge),e.registerProcessor(Rge),e.registerVisual(Vge),e.registerVisual(Oge),e.registerLayout(Hge),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,$ge),e.registerLayout(Uge),e.registerCoordinateSystem("graphView",{dimensions:Yh.dimensions,create:Xge}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ln),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ln),e.registerAction(epe,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=iI(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var npe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),rpe=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new npe},t.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},t}(at);function ape(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=we(n[0],t.getWidth()),s=we(n[1],t.getHeight()),l=we(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function ip(e,t){var n=e==null?"":e+"";return t&&(Ae(t)?n=t.replace("{value}",n):Ee(t)&&(n=t(e))),n}var ipe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=ape(n,a);this._renderMain(n,r,a,i,o),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,a,i,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),v=d?ey:Pr,h=f.get("show"),g=f.getModel("lineStyle"),p=g.get("width"),m=[u,c];oA(m,!l),u=m[0],c=m[1];for(var y=c-u,_=u,b=[],x=0;h&&x=w&&(A===0?0:i[A-1][0])Math.PI/2&&(le+=Math.PI)):ue==="tangential"?le=-C-Math.PI/2:dt(ue)&&(le=ue*Math.PI/180),le===0?f.add(new ft({style:Nt(_,{text:H,x:Y,y:J,verticalAlign:V<-.8?"top":V>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):f.add(new ft({style:Nt(_,{text:H,x:Y,y:J,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:Y,originY:J,rotation:le}))}if(y.get("show")&&N!==b){var $=y.get("distance");$=$?$+c:c;for(var be=0;be<=x;be++){L=Math.cos(C),V=Math.sin(C);var ae=new Ln({shape:{x1:L*(h-$)+d,y1:V*(h-$)+v,x2:L*(h-T-$)+d,y2:V*(h-T-$)+v},silent:!0,style:P});P.stroke==="auto"&&ae.setStyle({stroke:i((N+be/x)/b)}),f.add(ae),C+=A}C-=A}else C+=w}},t.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,v=this._progressEls,h=[],g=n.get(["pointer","show"]),p=n.getModel("progress"),m=p.get("show"),y=n.getData(),_=y.mapDimension("value"),b=+n.get("min"),x=+n.get("max"),S=[b,x],T=[s,l];function C(A,D){var P=y.getItemModel(A),k=P.getModel("pointer"),L=we(k.get("width"),o.r),V=we(k.get("length"),o.r),N=n.get(["pointer","icon"]),$=k.get("offsetCenter"),z=we($[0],o.r),H=we($[1],o.r),U=k.get("keepAspect"),Y;return N?Y=hn(N,z-L/2,H-V,L,V,null,U):Y=new rpe({shape:{angle:-Math.PI/2,width:L,r:V,x:z,y:H}}),Y.rotation=-(D+Math.PI/2),Y.x=o.cx,Y.y=o.cy,Y}function w(A,D){var P=p.get("roundCap"),k=P?ey:Pr,L=p.get("overlap"),V=L?p.get("width"):c/y.count(),N=L?o.r-V:o.r-(A+1)*V,$=L?o.r:o.r-A*V,z=new k({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:$}});return L&&(z.z2=x-y.get(_,A)%x),z}(m||g)&&(y.diff(d).add(function(A){var D=y.get(_,A);if(g){var P=C(A,s);Ht(P,{rotation:-((isNaN(+D)?T[0]:bt(D,S,T,!0))+Math.PI/2)},n),f.add(P),y.setItemGraphicEl(A,P)}if(m){var k=w(A,s),L=p.get("clip");Ht(k,{shape:{endAngle:bt(D,S,T,L)}},n),f.add(k),Kx(n.seriesIndex,y.dataType,A,k),h[A]=k}}).update(function(A,D){var P=y.get(_,A);if(g){var k=d.getItemGraphicEl(D),L=k?k.rotation:s,V=C(A,L);V.rotation=L,vt(V,{rotation:-((isNaN(+P)?T[0]:bt(P,S,T,!0))+Math.PI/2)},n),f.add(V),y.setItemGraphicEl(A,V)}if(m){var N=v[D],$=N?N.shape.endAngle:s,z=w(A,$),H=p.get("clip");vt(z,{shape:{endAngle:bt(P,S,T,H)}},n),f.add(z),Kx(n.seriesIndex,y.dataType,A,z),h[A]=z}}).execute(),y.each(function(A){var D=y.getItemModel(A),P=D.getModel("emphasis"),k=P.get("focus"),L=P.get("blurScope"),V=P.get("disabled");if(g){var N=y.getItemGraphicEl(A),$=y.getItemVisual(A,"style"),z=$.fill;if(N instanceof Yn){var H=N.style;N.useStyle(ce({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},$))}else N.useStyle($),N.type!=="pointer"&&N.setColor(z);N.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(bt(y.get(_,A),S,[0,1],!0))),N.z2EmphasisLift=0,Jn(N,D),qt(N,k,L,V)}if(m){var U=h[A];U.useStyle(y.getItemVisual(A,"style")),U.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Jn(U,D),qt(U,k,L,V)}}),this._progressEls=h)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=hn(s,r.cx-o/2+we(l[0],r.r),r.cy-o/2+we(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new ze,v=[],h=[],g=n.isAnimationEnabled(),p=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){v[m]=new ft({silent:!0}),h[m]=new ft({silent:!0})}).update(function(m,y){v[m]=s._titleEls[y],h[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),_=l.get(u,m),b=new ze,x=i(bt(_,[c,f],[0,1],!0)),S=y.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),C=o.cx+we(T[0],o.r),w=o.cy+we(T[1],o.r),A=v[m];A.attr({z2:p?0:2,style:Nt(S,{x:C,y:w,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:x})}),b.add(A)}var D=y.getModel("detail");if(D.get("show")){var P=D.get("offsetCenter"),k=o.cx+we(P[0],o.r),L=o.cy+we(P[1],o.r),V=we(D.get("width"),o.r),N=we(D.get("height"),o.r),$=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:x,A=h[m],z=D.get("formatter");A.attr({z2:p?0:2,style:Nt(D,{x:k,y:L,text:ip(_,z),width:isNaN(V)?null:V,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:$})}),ZH(A,{normal:D},_,function(U){return ip(U,z)}),g&&KH(A,m,l,n,{getFormattedLabel:function(U,Y,J,ue,le,be){return ip(be?be.interpolatedValue:_,z)}}),b.add(A)}d.add(b)}),this.group.add(d),this._titleEls=v,this._detailEls=h},t.type="gauge",t}(kt),ope=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return zf(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(zt);function spe(e){e.registerChartView(ipe),e.registerSeriesModel(ope)}var lpe=["itemStyle","opacity"],upe=function(e){ee(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new Lr,s=new ft;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return t.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(lpe);c=c??1,a||ri(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Ht(i,{style:{opacity:c}},o,r)):vt(i,{style:{opacity:c},shape:{points:l.points}},o,r),Jn(i,s),this._updateLabel(n,r),qt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Qn(o,Vn(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var v=c.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new je(v[0][0],v[0][1]):null},vt(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),UA(a,YA(l),{stroke:d})},t}(kr),cpe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new upe(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);zv(u,n,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(kt),fpe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wh(Ie(this.getData,this),Ie(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return zf(this,{coordDimensions:["value"],encodeDefaulter:Ue(wA,this)})},t.prototype._defaultLabelLine=function(n){vu(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),a=e.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt);function dpe(e,t){return xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vpe(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();oPpe)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!CS(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function CS(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var Lpe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&Ze(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=Tt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);R(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(ot),Epe=function(e){ee(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(oi);function Bu(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=uc(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=uc(s,[0,o]),a=i=uc(s,[a,i]),r=0}t[0]=uc(t[0],n),t[1]=uc(t[1],n);var l=TS(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=uc(t[r],c);var f;return f=TS(t,r),a!=null&&(f.sign!==l.sign||f.spani&&(t[1-r]=t[r]+f.sign*i),t}function TS(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function uc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var AS=R,xW=Math.min,wW=Math.max,mR=Math.floor,Rpe=Math.ceil,yR=tn,Vpe=Math.PI,Ope=function(){function e(t,n,r){this.type="parallel",this._axesMap=Le(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=t.dimensions,i=t.parallelAxisIndex;AS(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Epe(o,q0(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,i=n.pixelDimIndex,o=t[1-i],s=t[i];return o>=r&&o<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var a=r.getData();AS(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),sf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=xn(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=op(t.get("axisExpandWidth"),l),f=op(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,v=t.get("axisExpandWindow"),h;if(v)h=op(v[1]-v[0],l),v[1]=v[0]+h;else{h=op(c*(f-1),l);var g=t.get("axisExpandCenter")||mR(u/2);v=[c*g-h/2],v[1]=v[0]+h}var p=(s-h)/(u-f);p<3&&(p=0);var m=[mR(yR(v[0]/c,1))+1,Rpe(yR(v[1]/c,1))-1],y=p/c*v[0];return{layout:i,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:v,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;n.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),AS(r,function(o,s){var l=(a.axisExpandable?Bpe:Npe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Vpe/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],v=Jr();Lu(v,v,d),Li(v,v,f),this._axesLayout[o]={position:f,rotation:d,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];R(o,function(p){s.push(t.mapDimension(p)),l.push(i.get(p).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?Bu(l,a,o,"all"):u="none";else{var v=a[1]-a[0],h=o[1]*s/v;a=[wW(0,h-v/2)],a[1]=xW(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},e}();function op(e,t){return xW(wW(e,t[0]),t[1])}function Npe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Bpe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e=0;a--)wa(r[a])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;i$pe}function PW(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function kW(e,t,n,r){var a=new ze;return a.add(new ut({name:"main",style:_I(n),silent:!0,draggable:!0,cursor:"move",drift:Ue(SR,e,t,a,["n","s","w","e"]),ondragend:Ue(_u,t,{isEnd:!0})})),R(r,function(i){a.add(new ut({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ue(SR,e,t,a,i),ondragend:Ue(_u,t,{isEnd:!0})}))}),a}function MW(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=cf(a,Wpe),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,v=f-i+a/2,h=c-o,g=f-s,p=h+a,m=g+a;Ki(e,t,"main",o,s,h,g),r.transformable&&(Ki(e,t,"w",l,u,i,m),Ki(e,t,"e",d,u,i,m),Ki(e,t,"n",l,u,p,i),Ki(e,t,"s",l,v,p,i),Ki(e,t,"nw",l,u,i,i),Ki(e,t,"ne",d,u,i,i),Ki(e,t,"sw",l,v,i,i),Ki(e,t,"se",d,v,i,i))}function Gw(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(_I(n)),a.attr({silent:!r,cursor:r?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?$w(e,i[0]):Kpe(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Ype[s]+"-resize":null})})}function Ki(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(Jpe(bI(e,t,[[r,a],[r+i,a+o]])))}function _I(e){return Re({strokeNoScale:!0},e.brushStyle)}function LW(e,t,n,r){var a=[th(e,n),th(t,r)],i=[cf(e,n),cf(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Zpe(e){return Jl(e.group)}function $w(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=V0(n[t],Zpe(e));return r[a]}function Kpe(e,t){var n=[$w(e,t[0]),$w(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function SR(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=EW(t,a,i);R(r,function(u){var c=Upe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(LW(s[0][0],s[1][0],s[0][1],s[1][1])),pI(t,n),_u(t,{isEnd:!1})}function qpe(e,t,n,r){var a=t.__brushOption.range,i=EW(e,n,r);R(a,function(o){o[0]+=i[0],o[1]+=i[1]}),pI(e,t),_u(e,{isEnd:!1})}function EW(e,t,n){var r=e.group,a=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function bI(e,t,n){var r=DW(e,t);return r&&r!==yu?r.clipPath(n,e._transform):Ne(n)}function Jpe(e){var t=th(e[0][0],e[1][0]),n=th(e[0][1],e[1][1]),r=cf(e[0][0],e[1][0]),a=cf(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function Qpe(e,t,n){if(!(!e._brushType||tme(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=yI(e,t,n);if(!e._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var r_={lineX:CR(0),lineY:CR(1),rect:{createCover:function(e,t){function n(r){return r}return kW({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=PW(e);return LW(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){MW(e,t,n,r)},updateCommon:Gw,contain:Uw},polygon:{createCover:function(e,t){var n=new ze;return n.add(new Lr({name:"main",style:_I(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new kr({name:"main",draggable:!0,drift:Ue(qpe,e,t),ondragend:Ue(_u,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:bI(e,t,n)})},updateCommon:Gw,contain:Uw}};function CR(e){return{createCover:function(t,n){return kW({toRectRange:function(r){var a=[r,[0,100]];return e&&a.reverse(),a},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=PW(t),r=th(n[0][e],n[1][e]),a=cf(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=DW(t,n);if(o!==yu&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,i];e&&l.reverse(),MW(t,n,l,a)},updateCommon:Gw,contain:Uw}}function VW(e){return e=SI(e),function(t){return YH(t,e)}}function OW(e,t){return e=SI(e),function(n){var r=t??n,a=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(a||0)]}}function NW(e,t,n){var r=SI(e);return function(a,i){return r.contain(i[0],i[1])&&!Q0(a,t,n)}}function SI(e){return Ke.create(e)}var nme=["axisLine","axisTickLabel","axisName"],rme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new gI(r.getZr())).on("brush",Ie(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!ame(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ze,this.group.add(this._axisGroup),!!n.get("show")){var s=ome(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),v=ce({strokeContainThreshold:c},d),h=new Ar(n,v);R(nme,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(v,u,n,s,c,a),Eh(o,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ke.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:VW(f),isTargetByCursor:NW(f,s,i),getLinearBrushOtherExtent:OW(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(ime(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=me(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ut);function ame(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function ime(e){var t=e.axis;return me(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function ome(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var sme={type:"axisAreaSelect",event:"axisAreaSelected"};function lme(e){e.registerAction(sme,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var ume={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function BW(e){e.registerComponentView(kpe),e.registerComponentModel(Lpe),e.registerCoordinateSystem("parallel",Fpe),e.registerPreprocessor(Ape),e.registerComponentModel(Fw),e.registerComponentView(rme),uf(e,"parallel",Fw,ume),lme(e)}function cme(e){tt(BW),e.registerChartView(ype),e.registerSeriesModel(Spe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Tpe)}var fme=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),dme=function(e){ee(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new fme},t.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},t.prototype.highlight=function(){So(this)},t.prototype.downplay=function(){xo(this)},t}(at),vme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),v=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(h){var g=new dme,p=He(g);p.dataIndex=h.dataIndex,p.seriesIndex=n.seriesIndex,p.dataType="edge";var m=h.getModel(),y=m.getModel("lineStyle"),_=y.get("curveness"),b=h.node1.getLayout(),x=h.node1.getModel(),S=x.get("localX"),T=x.get("localY"),C=h.node2.getLayout(),w=h.node2.getModel(),A=w.get("localX"),D=w.get("localY"),P=h.getLayout(),k,L,V,N,$,z,H,U;g.shape.extent=Math.max(1,P.dy),g.shape.orient=v,v==="vertical"?(k=(S!=null?S*u:b.x)+P.sy,L=(T!=null?T*c:b.y)+b.dy,V=(A!=null?A*u:C.x)+P.ty,N=D!=null?D*c:C.y,$=k,z=L*(1-_)+N*_,H=V,U=L*_+N*(1-_)):(k=(S!=null?S*u:b.x)+b.dx,L=(T!=null?T*c:b.y)+P.sy,V=A!=null?A*u:C.x,N=(D!=null?D*c:C.y)+P.ty,$=k*(1-_)+V*_,z=L,H=k*_+V*(1-_),U=N),g.setShape({x1:k,y1:L,x2:V,y2:N,cpx1:$,cpy1:z,cpx2:H,cpy2:U}),g.useStyle(y.getItemStyle()),TR(g.style,v,h);var Y=""+m.get("value"),J=Vn(m,"edgeLabel");Qn(g,J,{labelFetcher:{getFormattedLabel:function(be,ae,Z,te,se,G){return n.getFormattedLabel(be,ae,"edge",te,Ii(se,J.normal&&J.normal.get("formatter"),Y),G)}},labelDataIndex:h.dataIndex,defaultText:Y}),g.setTextConfig({position:"inside"});var ue=m.getModel("emphasis");Jn(g,m,"lineStyle",function(be){var ae=be.getItemStyle();return TR(ae,v,h),ae}),s.add(g),d.setItemGraphicEl(h.dataIndex,g);var le=ue.get("focus");qt(g,le==="adjacency"?h.getAdjacentDataIndices():le==="trajectory"?h.getTrajectoryDataIndices():le,ue.get("blurScope"),ue.get("disabled"))}),o.eachNode(function(h){var g=h.getLayout(),p=h.getModel(),m=p.get("localX"),y=p.get("localY"),_=p.getModel("emphasis"),b=p.get(["itemStyle","borderRadius"])||0,x=new ut({shape:{x:m!=null?m*u:g.x,y:y!=null?y*c:g.y,width:g.dx,height:g.dy,r:b},style:p.getModel("itemStyle").getItemStyle(),z2:10});Qn(x,Vn(p),{labelFetcher:{getFormattedLabel:function(T,C){return n.getFormattedLabel(T,C,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),x.disableLabelAnimation=!0,x.setStyle("fill",h.getVisual("color")),x.setStyle("decal",h.getVisual("style").decal),Jn(x,p),s.add(x),f.setItemGraphicEl(h.dataIndex,x),He(x).dataType="node";var S=_.get("focus");qt(x,S==="adjacency"?h.getAdjacentDataIndices():S==="trajectory"?h.getTrajectoryDataIndices():S,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(h,g){var p=f.getItemModel(g);p.get("draggable")&&(h.drift=function(m,y){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},h.ondragend=function(){i._focusAdjacencyDisabled=!1},h.draggable=!0,h.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(hme(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(kt);function TR(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");Ae(r)&&Ae(a)&&(e.fill=new Lh(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function hme(e,t,n){var r=new ut({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ht(r,{shape:{width:e.width+20}},t,n),r}var gme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new _t(o[l],this,r));if(i&&a){var u=bW(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(v,h){var g=v.parentModel,p=g.getData().getItemLayout(h);if(p){var m=p.depth,y=g.levelModels[m];y&&(v.parentModel=y)}return v}),d.wrapMethod("getItemModel",function(v,h){var g=v.parentModel,p=g.getGraph().getEdgeByIndex(h),m=p.node1.getLayout();if(m){var y=m.depth,_=g.levelModels[y];_&&(v.parentModel=_)}return v})}},t.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return On("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return On("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(zt);function pme(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=mme(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;_me(u);var f=Tt(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),v=n.get("orient"),h=n.get("nodeAlign");yme(u,c,r,a,o,s,d,v,h)})}function mme(e,t){return xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yme(e,t,n,r,a,i,o,s,l){bme(e,t,n,a,i,s,l),Cme(e,t,i,a,r,o,s),Eme(e,s)}function _me(e){R(e,function(t){var n=_s(t.outEdges,oy),r=_s(t.inEdges,oy),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function bme(e,t,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&p.depth>v&&(v=p.depth),g.setLayout({depth:m?p.depth:f},!0),i==="vertical"?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;yf-1?v:f-1;o&&o!=="left"&&Sme(e,o,i,T);var C=i==="vertical"?(a-n)/T:(r-n)/T;wme(e,C,i)}function zW(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function Sme(e,t,n,r){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s0;i--)l*=.99,Ime(s,l,o),IS(s,a,n,r,o),Lme(s,l,o),IS(s,a,n,r,o)}function Tme(e,t){var n=[],r=t==="vertical"?"y":"x",a=Yx(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),R(a.keys,function(i){n.push(a.buckets.get(i))}),n}function Ame(e,t,n,r,a,i){var o=1/0;R(e,function(s){var l=s.length,u=0;R(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var h=a==="vertical"?r:n;if(u=c-t-h,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var v=f-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function Ime(e,t,n){R(e.slice().reverse(),function(r){R(r,function(a){if(a.outEdges.length){var i=_s(a.outEdges,Dme,n)/_s(a.outEdges,oy);if(isNaN(i)){var o=a.outEdges.length;i=o?_s(a.outEdges,Pme,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Ms(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Ms(a,n))*t;a.setLayout({y:l},!0)}}})})}function Dme(e,t){return Ms(e.node2,t)*e.getValue()}function Pme(e,t){return Ms(e.node2,t)}function kme(e,t){return Ms(e.node1,t)*e.getValue()}function Mme(e,t){return Ms(e.node1,t)}function Ms(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function oy(e){return e.getValue()}function _s(e,t,n){for(var r=0,a=e.length,i=-1;++io&&(o=l)}),R(r,function(s){var l=new Rn({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&R(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Vme(e){e.registerChartView(vme),e.registerSeriesModel(gme),e.registerLayout(pme),e.registerVisual(Rme),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var FW=function(){function e(){}return e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],v=[a,i],h=v[c].get("type"),g=v[1-c].get("type"),p=t.data;if(p&&l){var m=[];R(p,function(b,x){var S;he(b)?(S=b.slice(),b.unshift(x)):he(b.value)?(S=ce({},b),S.value=S.value.slice(),b.value.unshift(x)):S=b,m.push(S)}),t.data=m}var y=this.defaultValueDimensions,_=[{name:f,type:Zm(h),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Zm(g),dimsDef:y.slice()}];return zf(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:Ue(yG,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),HW=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(zt);mn(HW,FW,!0);var Ome=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=AR(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(ri(f),GW(d,f,i,u)):f=AR(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},t.type="boxplot",t}(kt),Nme=function(){function e(){}return e}(),Bme=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new Nme},t.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();ig){var b=[m,_];r.push(b)}}}return{boxData:n,outliers:r}}var Ume={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==fr){var r="";pt(r)}var a=Wme(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Yme(e){e.registerSeriesModel(HW),e.registerChartView(Ome),e.registerLayout(Fme),e.registerTransform(Ume)}var Xme=["color","borderColor"],jme=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){Gs(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&IR(u,f))return;var d=DS(f,c,!0);Ht(d,{shape:{points:f.ends}},n,c),PS(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){i.remove(d);return}var v=r.getItemLayout(c);if(s&&IR(u,v)){i.remove(d);return}d?(vt(d,{shape:{points:v.ends}},n,c),ri(d)):d=DS(v),PS(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),DR(n,this.group);var r=n.get("clip",!0)?Hh(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=a.getItemLayout(o),l=DS(s);PS(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){DR(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(kt),Zme=function(){function e(){}return e}(),Kme=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new Zme},t.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},t}(at);function DS(e,t,n){var r=e.ends;return new Kme({shape:{points:n?qme(r,e):r},z2:100})}function IR(e,t){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(Xme);t.useStyle(i),t.style.fill=null,t.style.stroke=a}var $W=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(zt);mn($W,FW,!0);function Qme(e){!e||!he(e.series)||R(e.series,function(t){Oe(t)&&t.type==="k"&&(t.type="candlestick")})}var eye=["itemStyle","borderColor"],tye=["itemStyle","borderColor0"],nye=["itemStyle","borderColorDoji"],rye=["itemStyle","color"],aye=["itemStyle","color0"],iye={seriesType:"candlestick",plan:Vf(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?rye:aye)}function r(i,o){return o.get(i===0?nye:i>0?eye:tye)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");ce(f,c)}}}}}},oye={seriesType:"candlestick",plan:Vf(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=sye(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=me(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?h:v};function v(g,p){for(var m,y=p.getStore();(m=g.next())!=null;){var _=y.get(s,m),b=y.get(u,m),x=y.get(c,m),S=y.get(f,m),T=y.get(d,m),C=Math.min(b,x),w=Math.max(b,x),A=$(C,_),D=$(w,_),P=$(S,_),k=$(T,_),L=[];z(L,D,0),z(L,A,1),L.push(U(k),U(D),U(P),U(A));var V=p.getItemModel(m),N=!!V.get(["itemStyle","borderColorDoji"]);p.setItemLayout(m,{sign:PR(y,m,b,x,c,N),initBaseline:b>x?D[i]:A[i],ends:L,brushRect:H(S,T,_)})}function $(Y,J){var ue=[];return ue[a]=J,ue[i]=Y,isNaN(J)||isNaN(Y)?[NaN,NaN]:t.dataToPoint(ue)}function z(Y,J,ue){var le=J.slice(),be=J.slice();le[a]=Op(le[a]+r/2,1,!1),be[a]=Op(be[a]-r/2,1,!0),ue?Y.push(le,be):Y.push(be,le)}function H(Y,J,ue){var le=$(Y,ue),be=$(J,ue);return le[a]-=r/2,be[a]-=r/2,{x:le[0],y:le[1],width:r,height:be[1]-le[1]}}function U(Y){return Y[a]=Op(Y[a],1),Y}}function h(g,p){for(var m=Ti(g.count*4),y=0,_,b=[],x=[],S,T=p.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(S=g.next())!=null;){var w=T.get(s,S),A=T.get(u,S),D=T.get(c,S),P=T.get(f,S),k=T.get(d,S);if(isNaN(w)||isNaN(P)||isNaN(k)){m[y++]=NaN,y+=3;continue}m[y++]=PR(T,S,A,D,c,C),b[a]=w,b[i]=P,_=t.dataToPoint(b,null,x),m[y++]=_?_[0]:NaN,m[y++]=_?_[1]:NaN,b[i]=k,_=t.dataToPoint(b,null,x),m[y++]=_?_[1]:NaN}p.setLayout("largePoints",m)}}};function PR(e,t,n,r,a,i){var o;return n>r?o=-1:n0?e.get(a,t-1)<=r?1:-1:1,o}function sye(e,t){var n=e.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=we(We(e.get("barMaxWidth"),a),a),o=we(We(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?we(s,a):Math.max(Math.min(a/2,i),o)}function lye(e){e.registerChartView(jme),e.registerSeriesModel($W),e.registerPreprocessor(Qme),e.registerVisual(iye),e.registerLayout(oye)}function kR(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var uye=function(e){ee(t,e);function t(n,r){var a=e.call(this)||this,i=new zh(n,r),o=new ze;return a.add(i),a.add(o),a.updateData(n,r),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;Ee(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return os(n.__p1,n.__cp1)+os(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=zn,c=Mx;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var v=n.__t<1?d[0]-f[0]:f[0]-d[0],h=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(h,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(WW),hye=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),gye=function(e){ee(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hye},t.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){n.moveTo(a[o++],a[o++]);for(var l=1;l0){var v=(u+f)/2-(c-d)*i,h=(c+d)/2-(f-u)*i;n.quadraticCurveTo(v,h,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var f=i[u++],d=i[u++],v=1;v0){var p=(f+h)/2-(d-g)*o,m=(d+g)/2-(h-f)*o;if(yH(f,d,p,m,h,g,s,n,r))return l}else if(ns(f,d,h,g,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),YW={seriesType:"lines",plan:Vf(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&Hh(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,a){var i=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=YW.reset(n,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new pye:new hI(o?i?vye:UW:i?WW:vI),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t}(kt),yye=typeof Uint32Array>"u"?Array:Uint32Array,_ye=typeof Float64Array>"u"?Array:Float64Array;function MR(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=me(t,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),YT([a,n[0],n[1]])}))}var bye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],MR(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(MR(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Tm(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Tm(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(zt);function sp(e){return e instanceof Array||(e=[e,e]),e}var Sye={seriesType:"lines",reset:function(e){var t=sp(e.get("symbol")),n=sp(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(i,o){var s=i.getItemModel(o),l=sp(s.getShallow("symbol",!0)),u=sp(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};function xye(e){e.registerChartView(mye),e.registerSeriesModel(bye),e.registerLayout(YW),e.registerVisual(Sye)}var wye=256,Cye=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=As.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),v=t.length;f.width=n,f.height=r;for(var h=0;h0){var P=o(_)?l:u;_>0&&(_=_*A+C),x[S++]=P[D],x[S++]=P[D+1],x[S++]=P[D+2],x[S++]=P[D+3]*_*256}else S+=4}return d.putImageData(b,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=As.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var a=t.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();function Tye(e,t,n){var r=e[1]-e[0];t=me(t,function(o){return{interval:[(o.interval[0]-e[0])/r,(o.interval[1]-e[0])/r]}});var a=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&r<=t[1]}}function LR(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Iye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):LR(o)&&this._renderOnGeo(o,n,i,a)},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,a,i){var o=r.coordinateSystem;o&&(LR(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){Gs(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Ou(s,"cartesian2d"),u,c,f,d;if(l){var v=s.getAxis("x"),h=s.getAxis("y");u=v.getBandWidth()+.5,c=h.getBandWidth()+.5,f=v.scale.getExtent(),d=h.scale.getExtent()}for(var g=this.group,p=n.getData(),m=n.getModel(["emphasis","itemStyle"]).getItemStyle(),y=n.getModel(["blur","itemStyle"]).getItemStyle(),_=n.getModel(["select","itemStyle"]).getItemStyle(),b=n.get(["itemStyle","borderRadius"]),x=Vn(n),S=n.getModel("emphasis"),T=S.get("focus"),C=S.get("blurScope"),w=S.get("disabled"),A=l?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],D=a;Df[1]||Vd[1])continue;var N=s.dataToPoint([L,V]);P=new ut({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:k})}else{if(isNaN(p.get(A[1],D)))continue;P=new ut({z2:1,shape:s.dataToRect([p.get(A[0],D)]).contentShape,style:k})}if(p.hasItemOption){var $=p.getItemModel(D),z=$.getModel("emphasis");m=z.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),_=$.getModel(["select","itemStyle"]).getItemStyle(),b=$.get(["itemStyle","borderRadius"]),T=z.get("focus"),C=z.get("blurScope"),w=z.get("disabled"),x=Vn($)}P.shape.r=b;var H=n.getRawValue(D),U="-";H&&H[2]!=null&&(U=H[2]+""),Qn(P,x,{labelFetcher:n,labelDataIndex:D,defaultOpacity:k.opacity,defaultText:U}),P.ensureState("emphasis").style=m,P.ensureState("blur").style=y,P.ensureState("select").style=_,qt(P,T,C,w),P.incremental=o,o&&(P.states.emphasis.hoverLayer=!0),g.add(P),p.setItemGraphicEl(D,P),this._progressiveEls&&this._progressiveEls.push(P)}},t.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Cye;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),v=Math.max(c.y,0),h=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),p=h-d,m=g-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(T,C,w){var A=n.dataToPoint([T,C]);return A[0]-=d,A[1]-=v,A.push(w),A}),b=a.getExtent(),x=a.type==="visualMap.continuous"?Aye(b,a.option.range):Tye(b,a.getPieceList(),a.option.selected);u.update(_,p,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var S=new Yn({style:{width:p,height:m,x:d,y:v,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(kt),Dye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return Ro(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Vh.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(zt);function Pye(e){e.registerChartView(Iye),e.registerSeriesModel(Dye)}var kye=["itemStyle","borderWidth"],ER=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],LS=new Eo,Mye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:ER[+c],categoryDim:ER[1-+c]};o.diff(s).add(function(h){if(o.hasValue(h)){var g=VR(o,h),p=RR(o,h,g,d),m=OR(o,d,p);o.setItemGraphicEl(h,m),i.add(m),BR(m,d,p)}}).update(function(h,g){var p=s.getItemGraphicEl(g);if(!o.hasValue(h)){i.remove(p);return}var m=VR(o,h),y=RR(o,h,m,d),_=JW(o,y);p&&_!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?Bye(p,d,y):p=OR(o,d,y,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=y,i.add(p),BR(p,d,y)}).remove(function(h){var g=s.getItemGraphicEl(h);g&&NR(s,h,g.__pictorialSymbolMeta.animationModel,g)}).execute();var v=n.get("clip",!0)?Hh(n.coordinateSystem,!1,n):null;return v?i.setClipPath(v):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){NR(i,He(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(kt);function RR(e,t,n,r){var a=e.getItemLayout(t),i=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Lye(n,i,a,r,d),Eye(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),Rye(n,d.symbolScale,u,r,d);var v=d.symbolSize,h=Ru(n.get("symbolOffset"),v);return Vye(n,v,a,i,o,h,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function Lye(e,t,n,r,a){var i=r.valueDim,o=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(he(o)){var f=[ES(s,o[0])-l,ES(s,o[1])-l];f[1]0?1:-1}function ES(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Eye(e,t,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),v=e.getItemVisual(t,"symbolSize"),h;he(v)?h=v.slice():v==null?h=["100%","100%"]:h=[v,v],h[f.index]=we(h[f.index],d),h[c.index]=we(h[c.index],r?d:Math.abs(i)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Rye(e,t,n,r,a){var i=e.get(kye)||0;i&&(LS.attr({scaleX:t[0],scaleY:t[1],rotation:n}),LS.updateTransform(),i/=LS.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function Vye(e,t,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,v=c.valueDim,h=f.pxSign,g=Math.max(t[v.index]+s,0),p=g;if(r){var m=Math.abs(l),y=Hn(e.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var b=we(y,t[v.index]),x=Math.max(g+b*2,0),S=_?0:b*2,T=aH(r),C=T?r:zR((m+S)/x),w=m-C*g;b=w/2/(_?C:Math.max(C-1,1)),x=g+b*2,S=_?0:b*2,!T&&r!=="fixed"&&(C=u?zR((Math.abs(u)+S)/x):0),p=C*x-S,f.repeatTimes=C,f.symbolMargin=b}var A=h*(p/2),D=f.pathPosition=[];D[d.index]=n[d.wh]/2,D[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var P=f.bundlePosition=[];P[d.index]=n[d.xy],P[v.index]=n[v.xy];var k=f.barRectShape=ce({},n);k[v.wh]=h*Math.max(Math.abs(n[v.wh]),Math.abs(D[v.index]+A)),k[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[v.xy]=0,L[v.wh]=n[v.wh]}function XW(e){var t=e.symbolPatternSize,n=hn(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function jW(e,t,n,r){var a=e.__pictorialBundle,i=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+n.symbolMargin*2;for(xI(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-g),p[l.index]=f*(y-u/2+.5)+s[l.index],{x:p[0],y:p[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function ZW(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Gc(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=e.__pictorialMainPath=XW(n),a.add(i),Gc(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function KW(e,t,n){var r=ce({},t.barRectShape),a=e.__pictorialBarRect;a?Gc(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new ut({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function qW(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=ce({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)vt(a,{shape:i},s,l);else{i[o.wh]=0,a=new ut({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],Eu[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function VR(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Oye,n.isAnimationEnabled=Nye,n}function Oye(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Nye(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function OR(e,t,n,r){var a=new ze,i=new ze;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?jW(a,t,n):ZW(a,t,n),KW(a,n,r),qW(a,t,n,r),a.__pictorialShapeStr=JW(e,n),a.__pictorialSymbolMeta=n,a}function Bye(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;vt(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?jW(e,t,n,!0):ZW(e,t,n,!0),KW(e,n,!0),qW(e,t,n,!0)}function NR(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];xI(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),R(i,function(o){Ds(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function JW(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function xI(e,t,n){R(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Gc(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&Eu[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function BR(e,t,n){var r=n.dataIndex,a=n.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");xI(e,function(g){if(g instanceof Yn){var p=g.style;g.useStyle(ce({image:p.image,x:p.x,y:p.y,width:p.width,height:p.height},n.style))}else g.useStyle(n.style);var m=g.ensureState("emphasis");m.style=o,d&&(m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=n.z2});var v=t.valueDim.posDesc[+(n.boundingLength>0)],h=e.__pictorialBarRect;h.ignoreClip=!0,Qn(h,Vn(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:lf(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:v}),qt(e,c,f,i.get("disabled"))}function zR(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var zye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=$s(Zv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Zv);function Fye(e){e.registerChartView(Mye),e.registerSeriesModel(zye),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ue(V$,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,O$("pictorialBar"))}var Hye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(p){return p.name}var v=new wo(this._layersSeries||[],l,d,d),h=[];v.add(Ie(g,this,"add")).update(Ie(g,this,"update")).remove(Ie(g,this,"remove")).execute();function g(p,m,y){var _=o._layers;if(p==="remove"){s.remove(_[m]);return}for(var b=[],x=[],S,T=l[m].indices,C=0;Ci&&(i=s),r.push(s)}for(var u=0;ui&&(i=f)}return{y0:a,max:i}}function Yye(e){e.registerChartView(Hye),e.registerSeriesModel($ye),e.registerLayout(Wye),e.registerProcessor($h("themeRiver"))}var Xye=2,jye=4,HR=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=Xye,o.textConfig={inside:!0},He(o).seriesIndex=r.seriesIndex;var s=new ft({z2:jye,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return t.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;He(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=ce({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var v=r.getVisual("decal");v&&(d.decal=of(v,o));var h=zl(l.getModel("itemStyle"),f,!0);ce(f,h),R(Dr,function(y){var _=s.ensureState(y),b=l.getModel([y,"itemStyle"]);_.style=b.getItemStyle();var x=zl(b,f);x&&(_.shape=x)}),n?(s.setShape(f),s.shape.r=c.r0,Ht(s,{shape:{r:c.r}},a,r.dataIndex)):(vt(s,{shape:f},a),ri(s)),s.useStyle(d),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var p=u.get("focus"),m=p==="ancestor"?r.getAncestorsIndices():p==="descendant"?r.getDescendantIndices():p;qt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),v=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(h!=null&&Math.abs(s)L&&!Vv(N-L)&&N0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,n,r,a):(o.virtualPiece=new HR(y,n,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";Hm(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Yw,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(kt),Jye=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};QW(a);var i=this._levelModels=me(n.levels||[],function(l){return new _t(l,this,r)},this),o=sI.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=t_(a,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){aW(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(zt);function QW(e){var t=0;R(e.children,function(r){QW(r);var a=r.value;he(a)&&(a=a[0]),t+=a});var n=e.value;he(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),he(e.value)?e.value[0]=n:e.value=n}var $R=Math.PI/180;function Qye(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");he(i)||(i=[0,i]),he(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=we(a[0],o),c=we(a[1],s),f=we(i[0],l/2),d=we(i[1],l/2),v=-r.get("startAngle")*$R,h=r.get("minAngle")*$R,g=r.getData().tree.root,p=r.getViewRoot(),m=p.depth,y=r.get("sort");y!=null&&eU(p,y);var _=0;R(p.children,function(N){!isNaN(N.getValue())&&_++});var b=p.getValue(),x=Math.PI/(b||_)*2,S=p.depth>0,T=p.height-(S?-1:1),C=(d-f)/(T||1),w=r.get("clockwise"),A=r.get("stillShowZeroSum"),D=w?1:-1,P=function(N,$){if(N){var z=$;if(N!==g){var H=N.getValue(),U=b===0&&A?x:H*x;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return r.depth>1&&Ae(s)&&(s=Rx(s,(r.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");ce(u,l)})})}function n0e(e){e.registerChartView(qye),e.registerSeriesModel(Jye),e.registerLayout(Ue(Qye,"sunburst")),e.registerProcessor(Ue($h,"sunburst")),e.registerVisual(t0e),Kye(e)}var WR={color:"fill",borderColor:"stroke"},r0e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},fo=ct(),a0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return Ro(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=fo(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(zt);function i0e(e,t){return t=t||[0,0],me(["x","y"],function(n,r){var a=this.getAxis(n),i=t[r],o=e[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function o0e(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Ie(i0e,e)}}}function s0e(e,t){return t=t||[0,0],me([0,1],function(n){var r=t[n],a=e[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function l0e(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:Ie(s0e,e)}}}function u0e(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function c0e(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Ie(u0e,e)}}}function f0e(e,t){return t=t||[0,0],me(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=t[r],s=e[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function d0e(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Ie(f0e,e)}}}function v0e(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return e.dataToPoint(r,a)}}}}function tU(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||Pe(e,"text")))}function nU(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},Pe(r,"text")&&(o.text=r.text),Pe(r,"rich")&&(o.rich=r.rich),Pe(r,"textFill")&&(o.fill=r.textFill),Pe(r,"textStroke")&&(o.stroke=r.textStroke),Pe(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Pe(r,"fontSize")&&(o.fontSize=r.fontSize),Pe(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Pe(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Pe(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),Pe(r,"textPosition")&&(a.position=r.textPosition),Pe(r,"textOffset")&&(a.offset=r.textOffset),Pe(r,"textRotation")&&(a.rotation=r.textRotation),Pe(r,"textDistance")&&(a.distance=r.textDistance)}return UR(o,e),R(o.rich,function(l){UR(l,l)}),{textConfig:a,textContent:i}}function UR(e,t){t&&(t.font=t.textFont||t.font,Pe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Pe(t,"textAlign")&&(e.align=t.textAlign),Pe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Pe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Pe(t,"textWidth")&&(e.width=t.textWidth),Pe(t,"textHeight")&&(e.height=t.textHeight),Pe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Pe(t,"textPadding")&&(e.padding=t.textPadding),Pe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Pe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Pe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Pe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Pe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Pe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Pe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function YR(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,i=e.fill||"#000";XR(r,t);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,R(t.rich,function(s){XR(s,s)}),r}function XR(e,t){t&&(Pe(t,"fill")&&(e.textFill=t.fill),Pe(t,"stroke")&&(e.textStroke=t.fill),Pe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Pe(t,"font")&&(e.font=t.font),Pe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Pe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Pe(t,"fontSize")&&(e.fontSize=t.fontSize),Pe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Pe(t,"align")&&(e.textAlign=t.align),Pe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Pe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Pe(t,"width")&&(e.textWidth=t.width),Pe(t,"height")&&(e.textHeight=t.height),Pe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Pe(t,"padding")&&(e.textPadding=t.padding),Pe(t,"borderColor")&&(e.textBorderColor=t.borderColor),Pe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Pe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Pe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Pe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Pe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Pe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Pe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Pe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Pe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Pe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var rU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},jR=st(rU);Mi(Ei,function(e,t){return e[t]=1,e},{});Ei.join(", ");var sy=["","style","shape","extra"],ff=ct();function wI(e,t,n,r,a){var i=e+"Animation",o=Df(e,r,a)||{},s=ff(t).userDuring;return o.duration>0&&(o.during=s?Ie(y0e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),ce(o,n[i]),o}function Gp(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=ff(e),u=t.style;l.userDuring=t.during;var c={},f={};if(b0e(e,t,f),KR("shape",t,f),KR("extra",t,f),!i&&s&&(_0e(e,t,c),ZR("shape",e,t,c),ZR("extra",e,t,c),S0e(e,t,u,c)),f.style=u,h0e(e,f,o),p0e(e,t),s)if(i){var d={};R(sy,function(h){var g=h?t[h]:t;g&&g.enterFrom&&(h&&(d[h]=d[h]||{}),ce(h?d[h]:d,g.enterFrom))});var v=wI("enter",e,t,n,a);v.duration>0&&e.animateFrom(d,v)}else g0e(e,t,a||0,n,c);aU(e,t),u?e.dirty():e.markRedraw()}function aU(e,t){for(var n=ff(e).leaveToProps,r=0;r0&&e.animateFrom(a,i)}}function p0e(e,t){Pe(t,"silent")&&(e.silent=t.silent),Pe(t,"ignore")&&(e.ignore=t.ignore),e instanceof ka&&Pe(t,"invisible")&&(e.invisible=t.invisible),e instanceof at&&Pe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var hi={},m0e={setTransform:function(e,t){return hi.el[e]=t,this},getTransform:function(e){return hi.el[e]},setShape:function(e,t){var n=hi.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=hi.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=hi.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=hi.el.style;if(t)return t[e]},setExtra:function(e,t){var n=hi.el.extra||(hi.el.extra={});return n[e]=t,this},getExtra:function(e){var t=hi.el.extra;if(t)return t[e]}};function y0e(){var e=this,t=e.el;if(t){var n=ff(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}hi.el=t,r(m0e)}}function ZR(e,t,n,r){var a=n[e];if(a){var i=t[e],o;if(i){var s=n.transition,l=a.transition;if(l)if(!o&&(o=r[e]={}),tu(l))ce(o,i);else for(var u=It(l),c=0;c=0){!o&&(o=r[e]={});for(var v=st(i),c=0;c=0)){var d=e.getAnimationStyleProps(),v=d?d.style:null;if(v){!i&&(i=r.style={});for(var h=st(n),u=0;u=0?t.getStore().get($,V):void 0}var z=t.get(N.name,V),H=N&&N.ordinalMeta;return H?H.categories[z]:z}function S(L,V){V==null&&(V=u);var N=t.getItemVisual(V,"style"),$=N&&N.fill,z=N&&N.opacity,H=y(V,vs).getItemStyle();$!=null&&(H.fill=$),z!=null&&(H.opacity=z);var U={inheritColor:Ae($)?$:"#000"},Y=_(V,vs),J=Nt(Y,null,U,!1,!0);J.text=Y.getShallow("show")?We(e.getFormattedLabel(V,vs),lf(t,V)):null;var ue=zm(Y,U,!1);return w(L,H),H=YR(H,J,ue),L&&C(H,L),H.legacy=!0,H}function T(L,V){V==null&&(V=u);var N=y(V,vo).getItemStyle(),$=_(V,vo),z=Nt($,null,null,!0,!0);z.text=$.getShallow("show")?Ii(e.getFormattedLabel(V,vo),e.getFormattedLabel(V,vs),lf(t,V)):null;var H=zm($,null,!0);return w(L,N),N=YR(N,z,H),L&&C(N,L),N.legacy=!0,N}function C(L,V){for(var N in V)Pe(V,N)&&(L[N]=V[N])}function w(L,V){L&&(L.textFill&&(V.textFill=L.textFill),L.textPosition&&(V.textPosition=L.textPosition))}function A(L,V){if(V==null&&(V=u),Pe(WR,L)){var N=t.getItemVisual(V,"style");return N?N[WR[L]]:null}if(Pe(r0e,L))return t.getItemVisual(V,L)}function D(L){if(i.type==="cartesian2d"){var V=i.getBaseAxis();return bce(Re({axis:V},L))}}function P(){return n.getCurrentSeriesIndices()}function k(L){return pA(L,n)}}function M0e(e){var t={};return R(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=t[a]=t[a]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function NS(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=DI(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&qt(s,r.focus,r.blurScope,r.emphasisDisabled),s}function DI(e,t,n,r,a,i){var o=-1,s=t;t&&lU(t,r,a)&&(o=Qe(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=AI(r),s&&I0e(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),fa.normal.cfg=fa.normal.conOpt=fa.emphasis.cfg=fa.emphasis.conOpt=fa.blur.cfg=fa.blur.conOpt=fa.select.cfg=fa.select.conOpt=null,fa.isLegacy=!1,E0e(u,n,r,a,l,fa),L0e(u,n,r,a,l),II(e,u,n,r,fa,a,l),Pe(r,"info")&&(fo(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function lU(e,t,n){var r=fo(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&B0e(i)&&uU(i)!==r.customPathData||a==="image"&&Pe(o,"image")&&o.image!==r.customImagePath}function L0e(e,t,n,r,a){var i=n.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&lU(o,i,r)&&(o=null),o||(o=AI(i),e.setClipPath(o)),II(null,o,t,i,null,r,a)}}function E0e(e,t,n,r,a,i){if(!e.isGroup){JR(n,null,i),JR(n,vo,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=AI(o),e.setTextContent(c)),II(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d=c;v--){var h=t.childAt(v);V0e(t,h,a)}}}function V0e(e,t,n){t&&a_(t,fo(e).option,n)}function O0e(e){new wo(e.oldChildren,e.newChildren,QR,QR,e).add(eV).update(eV).remove(N0e).execute()}function QR(e,t){var n=e&&e.name;return n??T0e+t}function eV(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;DI(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function N0e(e){var t=this.context,n=t.oldChildren[e];n&&a_(n,fo(n).option,t.seriesModel)}function uU(e){return e&&(e.pathData||e.d)}function B0e(e){return e&&(Pe(e,"pathData")||Pe(e,"d"))}function z0e(e){e.registerChartView(D0e),e.registerSeriesModel(a0e)}var Dl=ct(),tV=Ne,BS=Ie,kI=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new ze,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Ue(nV,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}aV(s,n,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),a=t.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=eI(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,a,i){},e.prototype.createPointerEl=function(t,n,r,a){var i=n.pointer;if(i){var o=Dl(t).pointerEl=new Eu[i.type](tV(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=Dl(t).labelEl=new ft(tV(n.label));t.add(i),rV(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=Dl(t).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,a){var i=Dl(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),rV(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Rh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_o(u.event)},onmousedown:BS(this._onHandleDragMove,this,0,0),drift:BS(this._onHandleDragMove,this),ondragend:BS(this._onHandleDragEnd,this)}),r.add(a)),aV(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");he(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Of(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){nV(this._axisPointerModel,!n&&this._moveAnimation,this._handle,zS(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(zS(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(zS(a)),Dl(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),$v(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function nV(e,t,n,r){cU(Dl(n).lastProp,r)||(Dl(n).lastProp=r,t?vt(n,r,e):(n.stopAnimation(),n.attr(r)))}function cU(e,t){if(Oe(e)&&Oe(t)){var n=!0;return R(t,function(r,a){n=n&&cU(e[a],r)}),!!n}else return e===t}function rV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function zS(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function aV(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}function MI(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function fU(e,t,n,r,a){var i=n.get("value"),o=dU(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Lf(s.get("padding")||0),u=s.getFont(),c=Ih(o,u),f=a.position,d=c.width+l[1]+l[3],v=c.height+l[0]+l[2],h=a.align;h==="right"&&(f[0]-=d),h==="center"&&(f[0]-=d/2);var g=a.verticalAlign;g==="bottom"&&(f[1]-=v),g==="middle"&&(f[1]-=v/2),F0e(f,d,v,r);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Nt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function F0e(e,t,n,r){var a=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function dU(e,t,n,r,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:$A(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ae(o)?i=o.replace("{value}",i):Ee(o)&&(i=o(s))}return i}function LI(e,t,n){var r=Jr();return Lu(r,r,n.rotation),Li(r,r,n.position),Ka([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function vU(e,t,n,r,a,i){var o=Ar.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),fU(t,r,a,i,{position:LI(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function EI(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function hU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function iV(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var H0e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=oV(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=MI(i),v=G0e[u](s,f,c);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=Dw(l.model,a);vU(r,n,h,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=Dw(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=LI(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=oV(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,v=[d,d];v[c]=f[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:v,tooltipOption:h[c]}},t}(kI);function oV(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var G0e={line:function(e,t,n){var r=EI([t,n[0]],[t,n[1]],sV(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:hU([t-r/2,n[0]],[r,a],sV(e))}}};function sV(e){return e.dim==="x"?0:1}var $0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ot),io=ct(),W0e=R;function gU(e,t,n){if(!it.node){var r=t.getZr();io(r).records||(io(r).records={}),U0e(r,t);var a=io(r).records[e]||(io(r).records[e]={});a.handler=n}}function U0e(e,t){if(io(e).initialized)return;io(e).initialized=!0,n("click",Ue(lV,"click")),n("mousemove",Ue(lV,"mousemove")),n("globalout",X0e);function n(r,a){e.on(r,function(i){var o=j0e(t);W0e(io(e).records,function(s){s&&a(s,i,o.dispatchAction)}),Y0e(o.pendings,t)})}}function Y0e(e,t){var n=e.showTip.length,r=e.hideTip.length,a;n?a=e.showTip[n-1]:r&&(a=e.hideTip[r-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function X0e(e,t,n){e.handler("leave",null,n)}function lV(e,t,n,r){t.handler(e,n,r)}function j0e(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Zw(e,t){if(!it.node){var n=t.getZr(),r=(io(n).records||{})[e];r&&(io(n).records[e]=null)}}var Z0e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";gU("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){Zw("axisPointer",r)},t.prototype.dispose=function(n,r){Zw("axisPointer",r)},t.type="axisPointer",t}(Ut);function pU(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=hu(i,e);if(o==null||o<0||he(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,v=f==="x"||f==="radius"?1:0,h=i.mapDimension(d),g=[];g[v]=i.get(h,o),g[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(i.getValues(me(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),n=[p.x+p.width/2,p.y+p.height/2]}return{point:n,el:s}}var uV=ct();function K0e(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||Ie(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){$p(a)&&(a=pU({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=$p(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||$p(a),d={},v={},h={list:[],map:{}},g={showPointer:Ue(J0e,v),showTooltip:Ue(Q0e,h)};R(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);R(s.coordSysAxesInfo[y],function(b,x){var S=b.axis,T=r_e(u,b);if(!f&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(a)),C!=null&&cV(b,C,g,!1,d)}})});var p={};return R(c,function(m,y){var _=m.linkGroup;_&&!v[y]&&R(_.axesInfo,function(b,x){var S=v[x];if(b!==m&&S){var T=S.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,fV(b),fV(m)))),p[m.key]=T}})}),R(p,function(m,y){cV(c[y],m,g,!0,d)}),e_e(v,c,d),t_e(h,a,e,o),n_e(c,o,n),d}}function cV(e,t,n,r,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=q0e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&ce(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function q0e(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(c,e,n);d=v.dataIndices,f=v.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var h=e-f,g=Math.abs(h);g<=o&&((g=0&&s<0)&&(o=g,s=h,a=f,i.length=0),R(d,function(p){i.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:i,snapToValue:a}}function J0e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Q0e(e,t,n,r){var a=n.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Kv(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function e_e(e,t,n){var r=n.axesInfo=[];R(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function t_e(e,t,n,r){if($p(t)||!e.list.length){r({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function n_e(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=uV(r)[a]||{},o=uV(r)[a]={};R(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&R(f.seriesDataIndices,function(d){var v=d.seriesIndex+" | "+d.dataIndex;o[v]=d})});var s=[],l=[];R(i,function(u,c){!o[c]&&l.push(u)}),R(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function r_e(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function fV(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function $p(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Xh(e){Nu.registerAxisPointerClass("CartesianAxisPointer",H0e),e.registerComponentModel($0e),e.registerComponentView(Z0e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!he(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=vve(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},K0e)}function a_e(e){tt(W4),tt(Xh)}var i_e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=i.get("type");if(d&&d!=="none"){var v=MI(i),h=s_e[d](s,l,f,c);h.style=v,n.graphicKey=h.type,n.pointer=h}var g=i.get(["label","margin"]),p=o_e(r,a,i,l,g);fU(n,a,i,o,p)},t}(kI);function o_e(e,t,n,r,a){var i=t.axis,o=i.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=Jr();Lu(d,d,s),Li(d,d,[r.cx,r.cy]),u=Ka([o,-a],d);var v=t.getModel("axisLabel").get("rotate")||0,h=Ar.innerTextLayout(s,v*Math.PI/180,-1);c=h.textAlign,f=h.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var p=r.cx,m=r.cy;c=Math.abs(u[0]-p)/g<.3?"center":u[0]>p?"left":"right",f=Math.abs(u[1]-m)/g<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var s_e={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:EI(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:iV(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:iV(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}},l_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ot),RI=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",dn).models[0]},t.type="polarAxis",t}(ot);mn(RI,Bh);var u_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(RI),c_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(RI),VI=function(e){ee(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t}(oi);VI.prototype.dataToRadius=oi.prototype.dataToCoord;VI.prototype.radiusToData=oi.prototype.coordToData;var f_e=ct(),OI=function(e){ee(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=Ih(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var v=Math.max(0,Math.floor(d)),h=f_e(n.model),g=h.lastAutoInterval,p=h.lastTickCount;return g!=null&&p!=null&&Math.abs(g-v)<=1&&Math.abs(p-o)<=1&&g>v?v=g:(h.lastTickCount=o,h.lastAutoInterval=v),v},t}(oi);OI.prototype.dataToAngle=oi.prototype.dataToCoord;OI.prototype.angleToData=oi.prototype.coordToData;var mU=["radius","angle"],d_e=function(){function e(t){this.dimensions=mU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new VI,this._angleAxis=new OI,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===t&&n.push(r),a.scale.type===t&&n.push(a),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)])},e.prototype.pointToData=function(t,n){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var n=t[0],r=t[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,i=-Math.sin(r)*n+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,n,r){var a=dV(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=dV(n);return a===this?this.pointToData(r):null},e}();function dV(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function v_e(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=we(r[0],a),e.cy=we(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:he(l)||(l=[0,l]);var u=[we(l[0],s),we(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function h_e(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();R(Km(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),R(Km(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),sf(r.scale,r.model),sf(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function g_e(e){return e.mainType==="angleAxis"}function vV(e,t){var n;if(e.type=t.get("type"),e.scale=q0(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),g_e(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),a=(n=t.get("endAngle"))!==null&&n!==void 0?n:r+(e.inverse?-360:360);e.setExtent(r,a)}t.axis=e,e.model=t}var p_e={dimensions:mU,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new d_e(a+"");i.update=h_e;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");vV(o,l),vV(s,u),v_e(i,r,t),n.push(i),r.coordinateSystem=i,i.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",dn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}},m_e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lp(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function up(e){var t=e.getRadiusAxis();return t.inverse?0:1}function hV(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var y_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=me(a.getViewLabels(),function(c){c=Ne(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});hV(u),hV(s),R(m_e,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&__e[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Nu),__e={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=up(n),f=c?0:1,d,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?d=new Eu[v]({shape:{cx:n.cx,cy:n.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new kh({shape:{cx:n.cx,cy:n.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,e.add(d)},axisTick:function(e,t,n,r,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[up(n)],u=me(r,function(c){return new Ln({shape:lp(n,[l,l+s],c.coord)})});e.add(ba(u,{style:Re(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[up(n)],c=[],f=0;fm?"left":"right",b=Math.abs(p[1]-y)/g<.3?"middle":p[1]>y?"top":"bottom";if(s&&s[h]){var x=s[h];Oe(x)&&x.textStyle&&(v=new _t(x.textStyle,l,l.ecModel))}var S=new ft({silent:Ar.isLabelSilent(t),style:Nt(v,{x:p[0],y:p[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:b})});if(e.add(S),c){var T=Ar.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=f.rawLabel,He(S).eventData=T}},this)},splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",V=w;x&&(r[c][k]||(r[c][k]={p:w,n:w}),V=r[c][k][L]);var N=void 0,$=void 0,z=void 0,H=void 0;if(h.dim==="radius"){var U=h.dataToCoord(P)-w,Y=l.dataToCoord(k);Math.abs(U)=H})}}})}function A_e(e){var t={};R(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=_U(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var v=yU(r);d[v]||f.autoWidthCount++,d[v]=d[v]||{width:0,maxWidth:0};var h=we(r.get("barWidth"),c),g=we(r.get("barMaxWidth"),c),p=r.get("barGap"),m=r.get("barCategoryGap");h&&!d[v].width&&(h=Math.min(f.remainedWidth,h),d[v].width=h,f.remainedWidth-=h),g&&(d[v].maxWidth=g),p!=null&&(f.gap=p),m!=null&&(f.categoryGap=m)});var n={};return R(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=we(r.categoryGap,o),l=we(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),R(i,function(g,p){var m=g.maxWidth;m&&m=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(t,n,r){var a=gV(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=gV(n);return a===this?this.pointToData(r):null},e}();function gV(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function N_e(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new O_e(r,e,t);i.name="single_"+a,i.resize(r,t),r.coordinateSystem=i,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",dn).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var B_e={create:N_e,dimensions:bU},pV=["x","y"],z_e=["width","height"],F_e=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=FS(l,1-cy(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=MI(i),v=H_e[f](s,c,u);v.style=d,n.graphicKey=v.type,n.pointer=v}var h=Kw(a);vU(r,n,h,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=Kw(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=LI(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.coordinateSystem,l=cy(o),u=FS(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=FS(s,1-l),d=(f[1]+f[0])/2,v=[d,d];return v[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},t}(kI),H_e={line:function(e,t,n){var r=EI([t,n[0]],[t,n[1]],cy(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:hU([t-r/2,n[0]],[r,a],cy(e))}}};function cy(e){return e.isHorizontal()?0:1}function FS(e,t){var n=e.getRect();return[n[pV[t]],n[pV[t]]+n[z_e[t]]]}var G_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(Ut);function $_e(e){tt(Xh),Nu.registerAxisPointerClass("SingleAxisPointer",F_e),e.registerComponentView(G_e),e.registerComponentView(E_e),e.registerComponentModel(Wp),uf(e,"single",Wp,Wp.defaultOption),e.registerCoordinateSystem("single",B_e)}var W_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=Ef(n);e.prototype.init.apply(this,arguments),mV(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),mV(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(ot);function mV(e,t){var n=e.cellSize,r;he(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=me([0,1],function(i){return dse(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});Ps(e,t,{type:"box",ignoreSize:a})}var U_e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},t.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new ut({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){h(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var v=f.date;v.setMonth(v.getMonth()+1),f=s.getDateInfo(v)}h(s.getNextNDay(r.end.time,1).formatedDate);function h(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var p=o._getLinePointsOfOneWeek(n,g,a);o._tlpoints.push(p[0]),o._blpoints.push(p[p.length-1]),u&&o._drawSplitline(p,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},t.prototype._drawSplitline=function(n,r,a){var i=new Lr({z2:20,shape:{points:n},style:r});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return Ae(n)&&n?use(n,r):Ee(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,v={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},h=r.start.y;+r.end.y>+r.start.y&&(h=h+"-"+r.end.y);var g=o.get("formatter"),p={start:r.start.y,end:r.end.y,nameMap:h},m=this._formatterLabel(g,p),y=new ft({z2:30,style:Nt(o,{text:m})});y.attr(this._yearTextPositionControl(y,v[l],a,l,s)),i.add(y)}},t.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,a,i){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ae(s))&&(s&&(r=aw(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=c==="center",g=0;g=a.start.time&&r.times.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/HS)-Math.floor(n[0].time/HS)+1,i=new Date(n[0].time),o=i.getDate(),s=n[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-n[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-n[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var a=this._getRangeInfo(r);if(t>a.weeks||t===0&&na.lweek)return null;var i=(t-1)*7-a.fweek+n,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(a){var i=new e(a);r.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();function yV(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}function X_e(e){e.registerComponentModel(W_e),e.registerComponentView(U_e),e.registerCoordinateSystem("calendar",Y_e)}function j_e(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function _V(e,t){var n;return R(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function Z_e(e,t,n){var r=ce({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(Ze(a,r,!0),Ps(a,r,{ignoreSize:!0}),vG(n,a),cp(n,a),cp(n,a,"shape"),cp(n,a,"style"),cp(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var SU=["transition","enterFrom","leaveTo"],K_e=SU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function cp(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?SU:K_e,a=0;a=0;c--){var f=a[c],d=Sn(f.id,null),v=d!=null?o.get(d):null;if(v){var h=v.parent,m=pa(h),y=h===i?{width:s,height:l}:{width:m.width,height:m.height},_={},b=G0(v,f,y,null,{hv:f.hv,boundingMode:f.bounding},_);if(!pa(v).isNew&&b){for(var x=f.transition,S={},T=0;T=0)?S[C]=w:v[C]=w}vt(v,S,n,0)}else v.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){Up(a,pa(a).option,r,n._lastGraphicModel)}),this._elMap=Le()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ut);function qw(e){var t=Pe(bV,e)?bV[e]:gA(e),n=new t({});return pa(n).type=e,n}function SV(e,t,n,r){var a=qw(n);return t.add(a),r.set(e,a),pa(a).id=e,pa(a).isNew=!0,a}function Up(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){Up(i,t,n,r)}),a_(e,t,r),n.removeKey(pa(e).id))}function xV(e,t,n,r){e.isGroup||R([["cursor",ka.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];Pe(t,i)?e[i]=We(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),R(st(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=Ee(i)?i:null}}),Pe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function ebe(e){return e=ce({},e),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dG),function(t){delete e[t]}),e}function tbe(e,t,n){var r=He(e).eventData;!e.silent&&!e.ignore&&!r&&(r=He(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function nbe(e){e.registerComponentModel(J_e),e.registerComponentView(Q_e),e.registerPreprocessor(function(t){var n=t.graphic;he(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var wV=["x","y","radius","angle","single"],rbe=["cartesian2d","polar","singleAxis"];function abe(e){var t=e.get("coordinateSystem");return Qe(rbe,t)>=0}function hs(e){return e+"Axis"}function ibe(e,t){var n=Le(),r=[],a=Le();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,v){var h=n.get(d);h&&h[v]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function xU(e){var t=e.ecModel,n={infoList:[],infoMap:Le()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(hs(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(i)}}}),n}var GS=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),nh=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,a){var i=CV(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=CV(n);Ze(this.option,n,!0),Ze(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;R([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Le(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return R(wV,function(a){var i=this.getReferringComponents(hs(a),Jae);if(i.specified){r=!0;var o=new GS;R(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new GS;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var v=f.getReferringComponents("grid",dn).models[0];v&&R(u,function(h){f.componentIndex!==h.componentIndex&&v===h.getReferringComponents("grid",dn).models[0]&&d.add(h.componentIndex)})}}}i&&R(wV,function(u){if(i){var c=a.findComponents({mainType:hs(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new GS;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(hs(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){R(a.indexList,function(o){n.call(r,i,o)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(hs(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;R([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;R(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!b&&!x)return!0;_&&(p=!0),b&&(h=!0),x&&(g=!0)}return p&&h&&g})}else Sc(c,function(v){if(i==="empty")l.setData(u=u.map(v,function(g){return s(g)?g:NaN}));else{var h={};h[v]=o,u.selectRange(h)}});Sc(c,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Sc(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=bt(r[0]+o,r,[0,100],!0):i!=null&&(o=bt(i,[0,100],r,!0)-r[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=tH(r,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},e}();function ube(e,t,n){var r=[1/0,-1/0];Sc(n,function(o){Gce(r,o.getData(),t)});var a=e.getAxisModel(),i=F$(a.axis.scale,a,r).calculate();return[i.min,i.max]}var cbe={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(hs(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var n=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new lbe(a,i,s,e),n.push(o.__dzAxisProxy))});var r=Le();return R(n,function(a){R(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};function fbe(e){e.registerAction("dataZoom",function(t,n){var r=ibe(n,t);R(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var AV=!1;function BI(e){AV||(AV=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,cbe),fbe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function dbe(e){e.registerComponentModel(obe),e.registerComponentView(sbe),BI(e)}var _a=function(){function e(){}return e}(),wU={};function xc(e,t){wU[e]=t}function CU(e){return wU[e]}var vbe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;R(this.option.feature,function(r,a){var i=CU(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),Ze(r,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ot);function hbe(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=xn(r,i,a);Ql(t.get("orient"),e,t.get("itemGap"),o.width,o.height),G0(e,r,i,a)}function TU(e,t){var n=Lf(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new ut({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var gbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];R(u,function(h,g){f.push(g)}),new wo(this._featureNames||[],f).add(d).update(d).remove(Ue(d,null)).execute(),this._featureNames=f;function d(h,g){var p=f[h],m=f[g],y=u[p],_=new _t(y,n,n.ecModel),b;if(i&&i.newTitle!=null&&i.featureName===p&&(y.title=i.newTitle),p&&!m){if(pbe(p))b={onclick:_.option.onclick,featureName:p};else{var x=CU(p);if(!x)return;b=new x}c[p]=b}else if(b=c[m],!b)return;b.uid=Mf("toolbox-feature"),b.model=_,b.ecModel=r,b.api=a;var S=b instanceof _a;if(!p&&m){S&&b.dispose&&b.dispose(r,a);return}if(!_.get("show")||S&&b.unusable){S&&b.remove&&b.remove(r,a);return}v(_,b,p),_.setIconStatus=function(T,C){var w=this.option,A=this.iconPaths;w.iconStatus=w.iconStatus||{},w.iconStatus[T]=C,A[T]&&(C==="emphasis"?So:xo)(A[T])},b instanceof _a&&b.render&&b.render(_,r,a,i)}function v(h,g,p){var m=h.getModel("iconStyle"),y=h.getModel(["emphasis","iconStyle"]),_=g instanceof _a&&g.getIcons?g.getIcons():h.get("icon"),b=h.get("title")||{},x,S;Ae(_)?(x={},x[p]=_):x=_,Ae(b)?(S={},S[p]=b):S=b;var T=h.iconPaths={};R(x,function(C,w){var A=Rh(C,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var D=A.ensureState("emphasis");D.style=y.getItemStyle();var P=new ft({style:{text:S[w],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null,font:pA({fontStyle:y.get("textFontStyle"),fontFamily:y.get("textFontFamily"),fontSize:y.get("textFontSize"),fontWeight:y.get("textFontWeight")},r)},ignore:!0});A.setTextContent(P),Pf({el:A,componentModel:n,itemName:w,formatterParamsExtra:{title:S[w]}}),A.__title=S[w],A.on("mouseover",function(){var k=y.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:y.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),A.setTextConfig({position:y.get("textPosition")||L}),P.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){h.get(["iconStatus",w])!=="emphasis"&&a.leaveEmphasis(this),P.hide()}),(h.get(["iconStatus",w])==="emphasis"?So:xo)(A),o.add(A),A.on("click",Ie(g.onclick,g,r,a,w)),T[w]=A})}hbe(o,n,a),o.add(TU(o.getBoundingRect(),n)),l||o.eachChild(function(h){var g=h.__title,p=h.ensureState("emphasis"),m=p.textConfig||(p.textConfig={}),y=h.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!Ee(_)&&g){var b=_.style||(_.style={}),x=Ih(g,ft.makeFont(b)),S=h.x+o.x,T=h.y+o.y+s,C=!1;T+x.height>a.getHeight()&&(m.position="top",C=!0);var w=C?-5-x.height:s+10;S+x.width/2>a.getWidth()?(m.position=["100%",w],b.align="right"):S-x.width/2<0&&(m.position=[0,w],b.align="left")}})},t.prototype.updateView=function(n,r,a,i){R(this._features,function(o){o instanceof _a&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){R(this._features,function(a){a instanceof _a&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){R(this._features,function(a){a instanceof _a&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(Ut);function pbe(e){return e.indexOf("my")===0}var mbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=it.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),v=d[0].indexOf("base64")>-1,h=o?decodeURIComponent(d[1]):d[1];v&&(h=window.atob(h));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=h.length,m=new Uint8Array(p);p--;)m[p]=h.charCodeAt(p);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var b=_.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(h),x.close(),b.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var S=a.get("lang"),T='',C=window.open();C.document.write(T),C.document.title=i}},t.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(_a),IV="__ec_magicType_stack__",ybe=[["line","bar"],["stack"]],_be=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return R(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(DV[a]){var s={series:[]},l=function(f){var d=f.subType,v=f.id,h=DV[a](d,v,f,i);h&&(Re(h,f.option),s.series.push(h));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var m=p.dim,y=m+"Axis",_=f.getReferringComponents(y,dn).models[0],b=_.componentIndex;s[y]=s[y]||[];for(var x=0;x<=b;x++)s[y][b]=s[y][b]||{};s[y][b].boundaryGap=a==="bar"}}};R(ybe,function(f){Qe(f,a)>=0&&R(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Ze({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(_a),DV={line:function(e,t,n,r){if(e==="bar")return Ze({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return Ze({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===IV;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Ze({id:t,stack:a?"":IV},r.get(["option","stack"])||{},!0)}};Gi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var i_=new Array(60).join("-"),df=" ";function bbe(e){var t={},n=[],r=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function Sbe(e){var t=[];return R(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(me(n.series,function(v){return v.name})),l=[a.model.getCategories()];R(n.series,function(v){var h=v.getRawData();l.push(v.getRawData().mapArray(h.mapDimension(o),function(g){return g}))});for(var u=[s.join(df)],c=0;c=0)return!0}var Jw=new RegExp("["+df+"]+","g");function Tbe(e){for(var t=e.split(/\n+/g),n=fy(t.shift()).split(Jw),r=[],a=pe(n,function(l){return{name:l,data:[]}}),i=0;i=0)return!0}var Jw=new RegExp("["+df+"]+","g");function Tbe(e){for(var t=e.split(/\n+/g),n=fy(t.shift()).split(Jw),r=[],a=me(n,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(t)}function Mbe(e){var t=zI(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return AU(n,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){r[i]=a;break}}),r}function Lbe(e){IU(e).snapshots=null}function Ebe(e){return zI(e).length}function zI(e){var t=IU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Rbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){Lbe(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t}(_a);Gi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var Vbe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],FI=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=PV(n,t);R(Obe,function(o,s){(!r||!r.include||Qe(r.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=$S[r.brushType](0,i,a);r.__rangeOffset={offset:EV[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){R(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&R(i.coordSyses,function(o){var s=$S[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){R(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=$S[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?EV[r.brushType](i.values,o.offset,Nbe(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return pe(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:VW(a),isTargetByCursor:NW(a,t,r.coordSysModel),getLinearBrushOtherExtent:OW(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&Qe(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=PV(n,t),i=0;ie[1]&&e.reverse(),e}function PV(e,t){return Kd(e,t,{includeMainTypes:Vbe})}var Obe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=Le(),o={},s={};!n&&!r&&!a||(R(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),R(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),R(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];R(u.getCartesians(),function(f,d){(Qe(n,f.getAxis("x").model)>=0||Qe(r,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:MV.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){R(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:MV.geo})})}},kV=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],MV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Jl(e)),t}},$S={lineX:Ue(LV,0),lineY:Ue(LV,1),rect:function(e,t,n,r){var a=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),i=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[Qw([a[0],i[0]]),Qw([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=pe(n,function(o){var s=e?t.pointToData(o,r):t.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function LV(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=Qw(pe([0,1],function(s){return t?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var EV={lineX:Ue(RV,0),lineY:Ue(RV,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return pe(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function RV(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function Nbe(e,t){var n=VV(e),r=VV(t),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function VV(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var eC=R,Bbe=Xae("toolbox-dataZoom_"),zbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new gI(a.getZr()),this._brushController.on("brush",Ie(this._onBrush,this)).mount()),Gbe(n,r,this,i,a),Hbe(n,r)},t.prototype.onclick=function(n,r,a){Fbe[a].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new FI(HI(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),kbe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),v=d.model,h=l(u,v,i),g=h.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Bu(0,f.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),h&&(a[h.id]={dataZoomId:h.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var h=v.getAxisModel(u,c.componentIndex);h&&(d=v)}),d}},t.prototype._dispatchZoomAction=function(n){var r=[];eC(n,function(a,i){r.push(Ne(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t}(_a),Fbe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Mbe(this.ecModel))}};function HI(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Hbe(e,t){e.setIconStatus("back",Ebe(t)>1?"emphasis":"normal")}function Gbe(e,t,n,r,a){var i=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new FI(HI(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}yse("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),a=[],i=HI(r),o=Kd(e,i);eC(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),eC(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Bbe+u+f};d[c]=f,a.push(d)}return a});function $be(e){e.registerComponentModel(vbe),e.registerComponentView(gbe),xc("saveAsImage",mbe),xc("magicType",_be),xc("dataView",Dbe),xc("dataZoom",zbe),xc("restore",Rbe),tt(dbe)}var Wbe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ot);function DU(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function PU(e){if(it.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var h=t+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"];return'
'}function qbe(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,a="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,a+=it.transformSupported?","+GI+r:",left"+r+",top"+r),Xbe+":"+a}function OV(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!it.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=it.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+GI+":"+o+";":[["top",0],["left",0],[kU,o]]}function Jbe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Qbe(e,t,n){var r=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=WG(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(qbe(a,n)),i&&r.push("background-color:"+i),R(["width","color","radius"],function(v){var h="border-"+v,g=cG(h),p=e.get(g);p!=null&&r.push(h+":"+p+(v==="color"?"":"px"))}),r.push(Jbe(c)),f!=null&&r.push("padding:"+Lf(f).join("px ")+"px"),r.join(";")+";"}function NV(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&Tre(e,o,n,r,a)}else{e[0]=r,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var eSe=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,it.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=t.getZr(),i=n.appendTo,o=i&&(Ae(i)?document.querySelector(i):tf(i)?i:Ee(i)&&i(t.getDom()));NV(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(r),this._api=t,this._container=o;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();va(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=Ybe(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=jbe+Qbe(t,!this._firstShow,this._longHide)+OV(i[0],i[1],!0)+("border-color:"+mu(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ae(i)&&r.get("trigger")==="item"&&!DU(r)&&(s=Kbe(r,a,i)),Ae(t))o.innerHTML=t+s;else if(t){o.innerHTML="",he(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||it.node||!a.getDom())){var o=FV(i,a);this._ticket="";var s=i.dataByCoordSys,l=sSe(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=nSe;c.x=i.x,c.y=i.y,c.update(),He(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var f=pU(i,r),d=f.point[0],v=f.point[1];d!=null&&v!=null&&this._tryShow({offsetX:d,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(n,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(FV(i,a))},t.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=pd([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){var s=He(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ol(a,function(c){if(He(c).dataIndex!=null)return l=c,!0;if(He(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Ie(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},t.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=pd([r.tooltipOption],i),l=this._renderMode,u=[],c=On("section",{blocks:[],noHeader:!0}),f=[],d=new Db;R(n,function(y){R(y.dataByAxis,function(_){var b=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var S=dU(x,b.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=On("section",{header:S,noHeader:!Ya(S),sortBlocks:!0,blocks:[]});c.blocks.push(T),R(_.seriesDataIndices,function(C){var w=a.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,D=w.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=$A(b.axis,{value:x}),D.axisValueLabel=S,D.marker=d.makeTooltipMarker("item",mu(D.color),l);var P=AL(w.formatTooltip(A,!0,null)),k=P.frag;if(k){var L=pd([w],i).get("valueFormatter");T.blocks.push(L?ce({valueFormatter:L},k):k)}P.text&&f.push(P.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=r.position,h=s.get("order"),g=LL(c,d,l,h,a.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var p=l==="richText"?` +*`,"g")),r={series:[]};return R(n,function(a,i){if(Cbe(a)){var o=Tbe(a),s=t[i],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=Abe(a);r.series.push(o)}}),r}var Dbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),v=wbe(n);if(Ee(f)){var h=f(r.getOption());Ae(h)?u.innerHTML=h:tf(h)&&u.appendChild(h)}else{c.readOnly=i.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=i.get("textColor"),g.borderColor=i.get("textareaBorderColor"),g.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var p=v.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var x=this;function S(){a.removeChild(o),x._dom=null}kx(_,"click",S),kx(b,"click",function(){if(d==null&&f!=null||d!=null&&f==null){S();return}var T;try{Ee(d)?T=d(u,r.getOption()):T=Ibe(c.value,p)}catch(C){throw S(),new Error("Data view format error "+C)}T&&r.dispatchAction({type:"changeDataView",newOption:T}),S()}),_.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=_.style.cssText=y,!i.get("readOnly")&&m.appendChild(b),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},t}(_a);function Pbe(e,t){return me(e,function(n,r){var a=t&&t[r];if(Oe(a)&&!he(a)){var i=Oe(n)&&!he(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=Re(n,a),o&&delete n.name,n}else return n})}Gi({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];R(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(ce({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:Pbe(r.data,i)})}}),t.mergeOption(Re({series:n},e.newOption))});var AU=R,IU=ct();function kbe(e,t){var n=zI(e);AU(t,function(r,a){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(t)}function Mbe(e){var t=zI(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return AU(n,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){r[i]=a;break}}),r}function Lbe(e){IU(e).snapshots=null}function Ebe(e){return zI(e).length}function zI(e){var t=IU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Rbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){Lbe(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t}(_a);Gi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var Vbe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],FI=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=PV(n,t);R(Obe,function(o,s){(!r||!r.include||Qe(r.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=$S[r.brushType](0,i,a);r.__rangeOffset={offset:EV[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){R(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&R(i.coordSyses,function(o){var s=$S[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){R(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=$S[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?EV[r.brushType](i.values,o.offset,Nbe(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return me(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:VW(a),isTargetByCursor:NW(a,t,r.coordSysModel),getLinearBrushOtherExtent:OW(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&Qe(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=PV(n,t),i=0;ie[1]&&e.reverse(),e}function PV(e,t){return Kd(e,t,{includeMainTypes:Vbe})}var Obe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=Le(),o={},s={};!n&&!r&&!a||(R(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),R(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),R(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];R(u.getCartesians(),function(f,d){(Qe(n,f.getAxis("x").model)>=0||Qe(r,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:MV.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){R(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:MV.geo})})}},kV=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],MV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Jl(e)),t}},$S={lineX:Ue(LV,0),lineY:Ue(LV,1),rect:function(e,t,n,r){var a=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),i=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[Qw([a[0],i[0]]),Qw([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=me(n,function(o){var s=e?t.pointToData(o,r):t.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function LV(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=Qw(me([0,1],function(s){return t?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var EV={lineX:Ue(RV,0),lineY:Ue(RV,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return me(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function RV(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function Nbe(e,t){var n=VV(e),r=VV(t),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function VV(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var eC=R,Bbe=Xae("toolbox-dataZoom_"),zbe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new gI(a.getZr()),this._brushController.on("brush",Ie(this._onBrush,this)).mount()),Gbe(n,r,this,i,a),Hbe(n,r)},t.prototype.onclick=function(n,r,a){Fbe[a].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new FI(HI(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),kbe(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),v=d.model,h=l(u,v,i),g=h.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Bu(0,f.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),h&&(a[h.id]={dataZoomId:h.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var h=v.getAxisModel(u,c.componentIndex);h&&(d=v)}),d}},t.prototype._dispatchZoomAction=function(n){var r=[];eC(n,function(a,i){r.push(Ne(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t}(_a),Fbe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Mbe(this.ecModel))}};function HI(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Hbe(e,t){e.setIconStatus("back",Ebe(t)>1?"emphasis":"normal")}function Gbe(e,t,n,r,a){var i=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new FI(HI(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}yse("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),a=[],i=HI(r),o=Kd(e,i);eC(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),eC(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Bbe+u+f};d[c]=f,a.push(d)}return a});function $be(e){e.registerComponentModel(vbe),e.registerComponentView(gbe),xc("saveAsImage",mbe),xc("magicType",_be),xc("dataView",Dbe),xc("dataZoom",zbe),xc("restore",Rbe),tt(dbe)}var Wbe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ot);function DU(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function PU(e){if(it.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),v=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+v+"px";var h=t+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"];return'
'}function qbe(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,a="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,a+=it.transformSupported?","+GI+r:",left"+r+",top"+r),Xbe+":"+a}function OV(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!it.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=it.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+GI+":"+o+";":[["top",0],["left",0],[kU,o]]}function Jbe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Qbe(e,t,n){var r=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=WG(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(qbe(a,n)),i&&r.push("background-color:"+i),R(["width","color","radius"],function(v){var h="border-"+v,g=cG(h),p=e.get(g);p!=null&&r.push(h+":"+p+(v==="color"?"":"px"))}),r.push(Jbe(c)),f!=null&&r.push("padding:"+Lf(f).join("px ")+"px"),r.join(";")+";"}function NV(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&Tre(e,o,n,r,a)}else{e[0]=r,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var eSe=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,it.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=t.getZr(),i=n.appendTo,o=i&&(Ae(i)?document.querySelector(i):tf(i)?i:Ee(i)&&i(t.getDom()));NV(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(r),this._api=t,this._container=o;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();va(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=Ybe(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=jbe+Qbe(t,!this._firstShow,this._longHide)+OV(i[0],i[1],!0)+("border-color:"+mu(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ae(i)&&r.get("trigger")==="item"&&!DU(r)&&(s=Kbe(r,a,i)),Ae(t))o.innerHTML=t+s;else if(t){o.innerHTML="",he(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||it.node||!a.getDom())){var o=FV(i,a);this._ticket="";var s=i.dataByCoordSys,l=sSe(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=nSe;c.x=i.x,c.y=i.y,c.update(),He(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var f=pU(i,r),d=f.point[0],v=f.point[1];d!=null&&v!=null&&this._tryShow({offsetX:d,offsetY:v,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(n,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(FV(i,a))},t.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=pd([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){var s=He(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ol(a,function(c){if(He(c).dataIndex!=null)return l=c,!0;if(He(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=Ie(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},t.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=pd([r.tooltipOption],i),l=this._renderMode,u=[],c=On("section",{blocks:[],noHeader:!0}),f=[],d=new Db;R(n,function(y){R(y.dataByAxis,function(_){var b=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var S=dU(x,b.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=On("section",{header:S,noHeader:!Ya(S),sortBlocks:!0,blocks:[]});c.blocks.push(T),R(_.seriesDataIndices,function(C){var w=a.getSeriesByIndex(C.seriesIndex),A=C.dataIndexInside,D=w.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=$A(b.axis,{value:x}),D.axisValueLabel=S,D.marker=d.makeTooltipMarker("item",mu(D.color),l);var P=AL(w.formatTooltip(A,!0,null)),k=P.frag;if(k){var L=pd([w],i).get("valueFormatter");T.blocks.push(L?ce({valueFormatter:L},k):k)}P.text&&f.push(P.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var v=r.position,h=s.get("order"),g=LL(c,d,l,h,a.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var p=l==="richText"?` -`:"
",m=f.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=He(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),v=this._renderMode,h=n.positionDefault,g=pd([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(c,f),y=new Db;m.marker=y.makeTooltipMarker("item",mu(m.color),v);var _=AL(u.formatTooltip(c,!1,f)),b=g.get("order"),x=g.get("valueFormatter"),S=_.frag,T=S?LL(x?ce({valueFormatter:x},S):S,y,v,b,i.get("useUTC"),g.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,m,C,n.offsetX,n.offsetY,n.position,n.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=this._renderMode==="html",o=He(r),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ae(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Ne(l),l.content=Br(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var v=n.positionDefault,h=pd(f,this._tooltipModel,v?{position:v}:null),g=h.get("content"),p=Math.random()+"",m=new Db;this._showOrMove(h,function(){var y=Ne(h.get("formatterParams")||{});this._showTooltipContent(h,g,y,p,n.offsetX,n.offsetY,n.position,r,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var v=r,h=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),g=h.color;if(d)if(Ae(d)){var p=n.ecModel.get("useUTC"),m=he(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=d,y&&(v=N0(m.axisValue,v,p)),v=fG(v,a,!0)}else if(Ee(d)){var _=Ie(function(b,x){b===this._ticket&&(f.setContent(x,c,n,g,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,v=d(a,i,_)}else v=d;f.setContent(v,c,n,g,l),f.show(n,g),this._updatePosition(n,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||he(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!he(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),v=n.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),Ee(r)&&(r=r([a,i],s,o.el,h,{viewSize:[u,c],contentSize:f.slice()})),he(r))a=we(r[0],u),i=we(r[1],c);else if(Oe(r)){var g=r;g.width=f[0],g.height=f[1];var p=xn(g,{width:u,height:c});a=p.x,i=p.y,d=null,v=null}else if(Ae(r)&&l){var m=oSe(r,h,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=aSe(a,i,o,u,c,d?null:20,v?null:20);a=m[0],i=m[1]}if(d&&(a-=HV(d)?f[0]/2:d==="right"?f[0]:0),v&&(i-=HV(v)?f[1]/2:v==="bottom"?f[1]:0),DU(n)){var m=iSe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&R(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&R(u,function(d,v){var h=f[v]||{},g=d.seriesDataIndices||[],p=h.seriesDataIndices||[];o=o&&d.value===h.value&&d.axisType===h.axisType&&d.axisId===h.axisId&&g.length===p.length,o&&R(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=r[y],b=i[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){it.node||!r.getDom()||($v(this,"_updatePosition"),this._tooltipContent.dispose(),Zw("itemTooltip",r))},t.type="tooltip",t}(Ut);function pd(e,t,n){var r=t.ecModel,a;n?(a=new _t(n,r,r),a=new _t(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof _t&&(o=o.get("tooltip",!0)),Ae(o)&&(o={formatter:o}),o&&(a=new _t(o,a,r)))}return a}function FV(e,t){return e.dispatchAction||Ie(t.dispatchAction,t)}function aSe(e,t,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>r?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function iSe(e,t,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function oSe(e,t,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function HV(e){return e==="center"||e==="middle"}function sSe(e,t,n){var r=rA(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=Dh(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=He(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function lSe(e){tt(Xh),e.registerComponentModel(Wbe),e.registerComponentView(rSe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ln),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ln)}var uSe=["rect","polygon","keep","clear"];function cSe(e,t){var n=It(e?e.brush:[]);if(n.length){var r=[];R(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;he(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),fSe(s),t&&!s.length&&s.push.apply(s,uSe)}}function fSe(e){var t={};R(e,function(n){t[n]=1}),e.length=0,R(t,function(n,r){e.push(r)})}var GV=R;function $V(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function tC(e,t,n){var r={};return GV(t,function(i){var o=r[i]=a();GV(e[i],function(s,l){if(Rn.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new Rn(u),l==="opacity"&&(u=Ne(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Rn(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function LU(e,t,n){var r;R(n,function(a){t.hasOwnProperty(a)&&$V(t[a])&&(r=!0)}),r&&R(n,function(a){t.hasOwnProperty(a)&&$V(t[a])?e[a]=Ne(t[a]):delete e[a]})}function dSe(e,t,n,r,a,i){var o={};R(e,function(f){var d=Rn.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return LA(n,s,f)}function u(f,d){e$(n,s,f,d)}n.each(c);function c(f,d){s=f;var v=n.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var h=r.call(a,f),g=t[h],p=o[h],m=0,y=p.length;mt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&jV(t)}};function jV(e){return new Ke(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var bSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new gI(r.getZr())).on("brush",Ie(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},t.prototype.updateTransform=function(n,r,a,i){EU(r),this._updateController(n,r,a,i)},t.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},t.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},t.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ne(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ne(a),$from:r})},t.type="brush",t}(Ut),SSe="#ddd",xSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&LU(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:SSe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=pe(n,function(r){return ZV(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=ZV(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(ot);function ZV(e,t){return Ze({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new _t(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var wSe=["rect","polygon","lineX","lineY","keep","clear"],CSe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,R(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return R(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:wSe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(_a);function TSe(e){e.registerComponentView(bSe),e.registerComponentModel(xSe),e.registerPreprocessor(cSe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,gSe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ln),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ln),xc("brush",CSe)}var ASe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ot),ISe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=We(n.get("textBaseline"),n.get("textVerticalAlign")),c=new ft({style:Nt(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),v=new ft({style:Nt(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=n.get("link"),g=n.get("sublink"),p=n.get("triggerEvent",!0);c.silent=!h&&!p,v.silent=!g&&!p,h&&c.on("click",function(){Hm(h,"_"+n.get("target"))}),g&&v.on("click",function(){Hm(g,"_"+n.get("subtarget"))}),He(c).eventData=He(v).eventData=p?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(v);var m=i.getBoundingRect(),y=n.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=xn(y,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),v.setStyle(b),m=i.getBoundingRect();var x=_.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var T=new ut({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(Ut);function DSe(e){e.registerComponentModel(ASe),e.registerComponentView(ISe)}var KV=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],R(r,function(u,c){var f=Sn(Af(u),""),d;Oe(u)?(d=Ne(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Tr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(ot),RU=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=$s(KV.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(KV);mn(RU,W0.prototype);var PSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(Ut),kSe=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this,n,r,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(oi),US=Math.PI,qV=ct(),MSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return On("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=ESe(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:US/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),v=d.get("show",!0),h=v?d.get("itemSize"):0,g=v?d.get("itemGap"):0,p=h+g,m=n.get(["label","rotate"])||0;m=m*US/180;var y,_,b,x=d.get("position",!0),S=v&&d.get("showPlayBtn",!0),T=v&&d.get("showPrevBtn",!0),C=v&&d.get("showNextBtn",!0),w=0,A=f;x==="left"||x==="bottom"?(S&&(y=[0,0],w+=p),T&&(_=[w,0],w+=p),C&&(b=[A-h,0],A-=p)):(S&&(y=[A-h,0],A-=p),T&&(_=[0,0],w+=p),C&&(b=[A-h,0],A-=p));var D=[w,A];return n.get("inverse")&&D.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:y,prevBtnPosition:_,nextBtnPosition:b,axisExtent:D,controlSize:h,controlGap:g}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=Jr(),l=o.x,u=o.y+o.height;Li(s,s,[-l,-u]),Lu(s,s,-US/2),Li(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(a.getBoundingRect()),d=y(i.getBoundingRect()),v=[a.x,a.y],h=[i.x,i.y];h[0]=v[0]=c[0][0];var g=n.labelPosOpt;if(g==null||Ae(g)){var p=g==="+"?0:1;_(v,f,c,1,p),_(h,d,c,1,1-p)}else{var p=g>=0?0:1;_(v,f,c,1,p),h[1]=v[1]+g}a.setPosition(v),i.setPosition(h),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function y(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function _(b,x,S,T,C){b[T]+=S[T][C]-x[T][C]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=LSe(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new kSe("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new ze;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Ln({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ce({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Ln({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Re({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),h=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Ie(o._changeTimeline,o,u.value)},p=JV(f,d,r,g);p.ensureState("emphasis").style=v.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),ql(p);var m=He(p);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],R(u,function(c){var f=c.tickValue,d=l.getItemModel(f),v=d.getModel("label"),h=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),p=a.dataToCoord(c.tickValue),m=new ft({x:p,y:0,rotation:n.labelRotation-n.rotation,onclick:Ie(o._changeTimeline,o,f),silent:!1,style:Nt(v,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=Nt(h),m.ensureState("progress").style=Nt(g),r.add(m),ql(m),qV(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",Ie(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Ie(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Ie(this._handlePlayClick,this,!c),!0);function d(v,h,g,p){if(v){var m=ni(We(i.get(["controlStyle",h+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=RSe(i,h+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:p?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),ql(_)}}},t.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Ie(u._handlePointerDrag,u),f.ondragend=Ie(u._handlePointerDragend,u),QV(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){QV(f,u._progressLine,s,a,i)}};this._currentPointer=JV(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=wa(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var YS={min:Ue(vp,"min"),max:Ue(vp,"max"),average:Ue(vp,"average"),median:Ue(vp,"median")};function rh(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!FSe(t)&&!he(t.coord)&&he(a)){var i=VU(t,n,r,e);if(t=Ne(t),t.type&&YS[t.type]&&i.baseAxis&&i.valueAxis){var o=Qe(a,i.baseAxis.dim),s=Qe(a,i.valueAxis.dim),l=YS[t.type](n,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!he(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)YS[u[c]]&&(u[c]=WI(n,n.mapDimension(a[c]),u[c]));return t}}function VU(e,t,n,r){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(HSe(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function HSe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function ah(e,t){return e&&e.containData&&t.coord&&!rC(t)?e.containData(t.coord):!0}function GSe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!rC(t)&&!rC(n)?e.containZone(t.coord,n.coord):!0}function OU(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return ys(o,t[i])}:function(n,r,a,i){return ys(n.value,t[i])}}function WI(e,t,n){if(n==="average"){var r=0,a=0;return e.each(t,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var XS=ct(),UI=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Le()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){XS(s).keep=!1}),r.eachSeries(function(s){var l=Ao.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!XS(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){XS(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;R(n,function(i){var o=Ao.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?DH(l):cA(l))})}})},t.type="marker",t}(Ut);function tO(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=we(i.get("x"),n.getWidth()),l=we(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var $Se=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markPoint");o&&(tO(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Fh),f=WSe(o,n,r);r.setData(f),tO(r.getData(),n,i),f.each(function(d){var v=f.getItemModel(d),h=v.getShallow("symbol"),g=v.getShallow("symbolSize"),p=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(Ee(h)||Ee(g)||Ee(p)||Ee(m)){var _=r.getRawValue(d),b=r.getDataParams(d);Ee(h)&&(h=h(_,b)),Ee(g)&&(g=g(_,b)),Ee(p)&&(p=p(_,b)),Ee(m)&&(m=m(_,b))}var x=v.getModel("itemStyle").getItemStyle(),S=Oh(l,"color");x.fill||(x.fill=S),f.setItemVisual(d,{symbol:h,symbolSize:g,symbolRotate:p,symbolOffset:m,symbolKeepAspect:y,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(v){He(v).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(UI);function WSe(e,t,n){var r;e?r=pe(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return ce(ce({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Tr(r,n),i=pe(n.get("data"),Ue(rh,t));e&&(i=Tt(i,Ue(ah,e)));var o=OU(!!e,r);return a.initData(i,null,o),a}function USe(e){e.registerComponentModel(zSe),e.registerComponentView($Se),e.registerPreprocessor(function(t){$I(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var YSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ao),hp=ct(),XSe=function(e,t,n,r){var a=e.getData(),i;if(he(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=Hn(r.yAxis,r.xAxis);else{var u=VU(r,a,t,e);s=u.valueAxis;var c=P$(a,u.valueDataDim);l=WI(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,v=Ne(r),h={coord:[]};v.type=null,v.coord=[],v.coord[d]=-1/0,h.coord[d]=1/0;var g=n.get("precision");g>=0&&dt(l)&&(l=+l.toFixed(Math.min(g,20))),v.coord[f]=h.coord[f]=l,i=[v,h,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var p=[rh(e,i[0]),rh(e,i[1]),ce({},i[2])];return p[2].type=p[2].type||null,Ze(p[2],p[0]),Ze(p[2],p[1]),p};function dy(e){return!isNaN(e)&&!isFinite(e)}function nO(e,t,n,r){var a=1-e,i=r.dimensions[e];return dy(t[a])&&dy(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function jSe(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(nO(1,n,r,e)||nO(0,n,r,e)))return!0}return ah(e,t[0])&&ah(e,t[1])}function jS(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=we(o.get("x"),a.getWidth()),u=we(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Ou(i,"cartesian2d")){var v=i.getAxis("x"),h=i.getAxis("y"),c=i.dimensions;dy(e.get(c[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[n?0:1]):dy(e.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var ZSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=hp(o).from,u=hp(o).to;l.each(function(c){jS(l,c,!0,i,a),jS(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new hI);this.group.add(c.group);var f=KSe(o,n,r),d=f.from,v=f.to,h=f.line;hp(r).from=d,hp(r).to=v,r.setData(h);var g=r.get("symbol"),p=r.get("symbolSize"),m=r.get("symbolRotate"),y=r.get("symbolOffset");he(g)||(g=[g,g]),he(p)||(p=[p,p]),he(m)||(m=[m,m]),he(y)||(y=[y,y]),f.from.each(function(b){_(d,b,!0),_(v,b,!1)}),h.each(function(b){var x=h.getItemModel(b).getModel("lineStyle").getLineStyle();h.setItemLayout(b,[d.getItemLayout(b),v.getItemLayout(b)]),x.stroke==null&&(x.stroke=d.getItemVisual(b,"style").fill),h.setItemVisual(b,{fromSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(b,"symbolOffset"),fromSymbolRotate:d.getItemVisual(b,"symbolRotate"),fromSymbolSize:d.getItemVisual(b,"symbolSize"),fromSymbol:d.getItemVisual(b,"symbol"),toSymbolKeepAspect:v.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(b,"symbolOffset"),toSymbolRotate:v.getItemVisual(b,"symbolRotate"),toSymbolSize:v.getItemVisual(b,"symbolSize"),toSymbol:v.getItemVisual(b,"symbol"),style:x})}),c.updateData(h),f.line.eachItemGraphicEl(function(b){He(b).dataModel=r,b.traverse(function(x){He(x).dataModel=r})});function _(b,x,S){var T=b.getItemModel(x);jS(b,x,S,n,i);var C=T.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Oh(l,"color")),b.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:We(T.get("symbolOffset",!0),y[S?0:1]),symbolRotate:We(T.get("symbolRotate",!0),m[S?0:1]),symbolSize:We(T.get("symbolSize"),p[S?0:1]),symbol:We(T.get("symbol",!0),g[S?0:1]),style:C})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(UI);function KSe(e,t,n){var r;e?r=pe(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return ce(ce({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Tr(r,n),i=new Tr(r,n),o=new Tr([],n),s=pe(n.get("data"),Ue(XSe,t,e,n));e&&(s=Tt(s,Ue(jSe,e)));var l=OU(!!e,r);return a.initData(pe(s,function(u){return u[0]}),null,l),i.initData(pe(s,function(u){return u[1]}),null,l),o.initData(pe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function qSe(e){e.registerComponentModel(YSe),e.registerComponentView(ZSe),e.registerPreprocessor(function(t){$I(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var JSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ao),gp=ct(),QSe=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=rh(e,a),s=rh(e,i),l=o.coord,u=s.coord;l[0]=Hn(l[0],-1/0),l[1]=Hn(l[1],-1/0),u[0]=Hn(u[0],1/0),u[1]=Hn(u[1],1/0);var c=YT([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function vy(e){return!isNaN(e)&&!isFinite(e)}function rO(e,t,n,r){var a=1-e;return vy(t[a])&&vy(n[a])}function e1e(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return Ou(e,"cartesian2d")?n&&r&&(rO(1,n,r)||rO(0,n,r))?!0:GSe(e,a,i):ah(e,a)||ah(e,i)}function aO(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=we(o.get(n[0]),a.getWidth()),u=we(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),v=i.clampData(f),h=[];n[0]==="x0"?h[0]=d[0]>v[0]?f[0]:c[0]:h[0]=d[0]>v[0]?c[0]:f[0],n[1]==="y0"?h[1]=d[1]>v[1]?f[1]:c[1]:h[1]=d[1]>v[1]?c[1]:f[1],s=r.getMarkerPosition(h,n,!0)}else{var g=e.get(n[0],t),p=e.get(n[1],t),m=[g,p];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(Ou(i,"cartesian2d")){var y=i.getAxis("x"),_=i.getAxis("y"),g=e.get(n[0],t),p=e.get(n[1],t);vy(g)?s[0]=y.toGlobalCoord(y.getExtent()[n[0]==="x0"?0:1]):vy(p)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var iO=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],t1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=pe(iO,function(f){return aO(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ze});this.group.add(c.group),this.markKeep(c);var f=n1e(o,n,r);r.setData(f),f.each(function(d){var v=pe(iO,function(C){return aO(f,d,C,n,i)}),h=o.getAxis("x").scale,g=o.getAxis("y").scale,p=h.getExtent(),m=g.getExtent(),y=[h.parse(f.get("x0",d)),h.parse(f.get("x1",d))],_=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];wa(y),wa(_);var b=!(p[0]>y[1]||p[1]_[1]||m[1]<_[0]),x=!b;f.setItemLayout(d,{points:v,allClipped:x});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),T=Oh(l,"color");S.fill||(S.fill=T,Ae(S.fill)&&(S.fill=Pm(S.fill,.4))),S.stroke||(S.stroke=T),f.setItemVisual(d,"style",S)}),f.diff(gp(c).data).add(function(d){var v=f.getItemLayout(d);if(!v.allClipped){var h=new kr({shape:{points:v.points}});f.setItemGraphicEl(d,h),c.group.add(h)}}).update(function(d,v){var h=gp(c).data.getItemGraphicEl(v),g=f.getItemLayout(d);g.allClipped?h&&c.group.remove(h):(h?vt(h,{shape:{points:g.points}},r,d):h=new kr({shape:{points:g.points}}),f.setItemGraphicEl(d,h),c.group.add(h))}).remove(function(d){var v=gp(c).data.getItemGraphicEl(d);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(d,v){var h=f.getItemModel(v),g=f.getItemVisual(v,"style");d.useStyle(f.getItemVisual(v,"style")),Qn(d,Vn(h),{labelFetcher:r,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:Ae(g.fill)?Pm(g.fill,1):"#000"}),Jn(d,h),qt(d,null,null,h.get(["emphasis","disabled"])),He(d).dataModel=r}),gp(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(UI);function n1e(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=pe(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return ce(ce({},f),{name:u,ordinalMeta:null})});a=pe(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new Tr(a,n)}else a=[{name:"value",type:"float"}],r=new Tr(a,n);var s=pe(n.get("data"),Ue(QSe,t,e,n));e&&(s=Tt(s,Ue(e1e,e)));var l=e?function(u,c,f,d){var v=u.coord[Math.floor(d/2)][d%2];return ys(v,a[d])}:function(u,c,f,d){return ys(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}function r1e(e){e.registerComponentModel(JSe),e.registerComponentView(t1e),e.registerPreprocessor(function(t){$I(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var a1e=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},aC=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),he(r)&&R(r,function(i,o){Ae(i)&&(i={type:i}),r[o]=Ze(i,a1e(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ot),cc=Ue,iC=R,pp=ze,NU=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new pp),this.group.add(this._selectorGroup=new pp),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),v=xn(c,f,d),h=this.layoutInner(n,o,v,i,l,u),g=xn(Re({width:h.width,height:h.height},c),f,d);this.group.x=g.x-h.x,this.group.y=g.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=TU(h,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=Le(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&d.push(v.id)}),iC(r.getData(),function(v,h){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` +`:"
",m=f.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=He(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),v=this._renderMode,h=n.positionDefault,g=pd([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(c,f),y=new Db;m.marker=y.makeTooltipMarker("item",mu(m.color),v);var _=AL(u.formatTooltip(c,!1,f)),b=g.get("order"),x=g.get("valueFormatter"),S=_.frag,T=S?LL(x?ce({valueFormatter:x},S):S,y,v,b,i.get("useUTC"),g.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,m,C,n.offsetX,n.offsetY,n.position,n.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=this._renderMode==="html",o=He(r),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ae(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=Ne(l),l.content=Br(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var v=n.positionDefault,h=pd(f,this._tooltipModel,v?{position:v}:null),g=h.get("content"),p=Math.random()+"",m=new Db;this._showOrMove(h,function(){var y=Ne(h.get("formatterParams")||{});this._showTooltipContent(h,g,y,p,n.offsetX,n.offsetY,n.position,r,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var v=r,h=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),g=h.color;if(d)if(Ae(d)){var p=n.ecModel.get("useUTC"),m=he(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=d,y&&(v=N0(m.axisValue,v,p)),v=fG(v,a,!0)}else if(Ee(d)){var _=Ie(function(b,x){b===this._ticket&&(f.setContent(x,c,n,g,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,v=d(a,i,_)}else v=d;f.setContent(v,c,n,g,l),f.show(n,g),this._updatePosition(n,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||he(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!he(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),v=n.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),Ee(r)&&(r=r([a,i],s,o.el,h,{viewSize:[u,c],contentSize:f.slice()})),he(r))a=we(r[0],u),i=we(r[1],c);else if(Oe(r)){var g=r;g.width=f[0],g.height=f[1];var p=xn(g,{width:u,height:c});a=p.x,i=p.y,d=null,v=null}else if(Ae(r)&&l){var m=oSe(r,h,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=aSe(a,i,o,u,c,d?null:20,v?null:20);a=m[0],i=m[1]}if(d&&(a-=HV(d)?f[0]/2:d==="right"?f[0]:0),v&&(i-=HV(v)?f[1]/2:v==="bottom"?f[1]:0),DU(n)){var m=iSe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&R(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&R(u,function(d,v){var h=f[v]||{},g=d.seriesDataIndices||[],p=h.seriesDataIndices||[];o=o&&d.value===h.value&&d.axisType===h.axisType&&d.axisId===h.axisId&&g.length===p.length,o&&R(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=r[y],b=i[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){it.node||!r.getDom()||($v(this,"_updatePosition"),this._tooltipContent.dispose(),Zw("itemTooltip",r))},t.type="tooltip",t}(Ut);function pd(e,t,n){var r=t.ecModel,a;n?(a=new _t(n,r,r),a=new _t(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof _t&&(o=o.get("tooltip",!0)),Ae(o)&&(o={formatter:o}),o&&(a=new _t(o,a,r)))}return a}function FV(e,t){return e.dispatchAction||Ie(t.dispatchAction,t)}function aSe(e,t,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>r?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function iSe(e,t,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function oSe(e,t,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function HV(e){return e==="center"||e==="middle"}function sSe(e,t,n){var r=rA(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=Dh(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=He(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function lSe(e){tt(Xh),e.registerComponentModel(Wbe),e.registerComponentView(rSe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ln),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ln)}var uSe=["rect","polygon","keep","clear"];function cSe(e,t){var n=It(e?e.brush:[]);if(n.length){var r=[];R(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;he(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),fSe(s),t&&!s.length&&s.push.apply(s,uSe)}}function fSe(e){var t={};R(e,function(n){t[n]=1}),e.length=0,R(t,function(n,r){e.push(r)})}var GV=R;function $V(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function tC(e,t,n){var r={};return GV(t,function(i){var o=r[i]=a();GV(e[i],function(s,l){if(Rn.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new Rn(u),l==="opacity"&&(u=Ne(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Rn(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function LU(e,t,n){var r;R(n,function(a){t.hasOwnProperty(a)&&$V(t[a])&&(r=!0)}),r&&R(n,function(a){t.hasOwnProperty(a)&&$V(t[a])?e[a]=Ne(t[a]):delete e[a]})}function dSe(e,t,n,r,a,i){var o={};R(e,function(f){var d=Rn.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return LA(n,s,f)}function u(f,d){e$(n,s,f,d)}n.each(c);function c(f,d){s=f;var v=n.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var h=r.call(a,f),g=t[h],p=o[h],m=0,y=p.length;mt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&jV(t)}};function jV(e){return new Ke(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var bSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new gI(r.getZr())).on("brush",Ie(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},t.prototype.updateTransform=function(n,r,a,i){EU(r),this._updateController(n,r,a,i)},t.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},t.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},t.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ne(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ne(a),$from:r})},t.type="brush",t}(Ut),SSe="#ddd",xSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&LU(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:SSe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=me(n,function(r){return ZV(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=ZV(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(ot);function ZV(e,t){return Ze({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new _t(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var wSe=["rect","polygon","lineX","lineY","keep","clear"],CSe=function(e){ee(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,R(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return R(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:wSe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(_a);function TSe(e){e.registerComponentView(bSe),e.registerComponentModel(xSe),e.registerPreprocessor(cSe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,gSe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ln),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ln),xc("brush",CSe)}var ASe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ot),ISe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=We(n.get("textBaseline"),n.get("textVerticalAlign")),c=new ft({style:Nt(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),v=new ft({style:Nt(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=n.get("link"),g=n.get("sublink"),p=n.get("triggerEvent",!0);c.silent=!h&&!p,v.silent=!g&&!p,h&&c.on("click",function(){Hm(h,"_"+n.get("target"))}),g&&v.on("click",function(){Hm(g,"_"+n.get("subtarget"))}),He(c).eventData=He(v).eventData=p?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(v);var m=i.getBoundingRect(),y=n.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=xn(y,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),v.setStyle(b),m=i.getBoundingRect();var x=_.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var T=new ut({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(Ut);function DSe(e){e.registerComponentModel(ASe),e.registerComponentView(ISe)}var KV=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],R(r,function(u,c){var f=Sn(Af(u),""),d;Oe(u)?(d=Ne(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Tr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(ot),RU=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=$s(KV.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(KV);mn(RU,W0.prototype);var PSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(Ut),kSe=function(e){ee(t,e);function t(n,r,a,i){var o=e.call(this,n,r,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(oi),US=Math.PI,qV=ct(),MSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return On("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=ESe(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:US/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),v=d.get("show",!0),h=v?d.get("itemSize"):0,g=v?d.get("itemGap"):0,p=h+g,m=n.get(["label","rotate"])||0;m=m*US/180;var y,_,b,x=d.get("position",!0),S=v&&d.get("showPlayBtn",!0),T=v&&d.get("showPrevBtn",!0),C=v&&d.get("showNextBtn",!0),w=0,A=f;x==="left"||x==="bottom"?(S&&(y=[0,0],w+=p),T&&(_=[w,0],w+=p),C&&(b=[A-h,0],A-=p)):(S&&(y=[A-h,0],A-=p),T&&(_=[0,0],w+=p),C&&(b=[A-h,0],A-=p));var D=[w,A];return n.get("inverse")&&D.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:y,prevBtnPosition:_,nextBtnPosition:b,axisExtent:D,controlSize:h,controlGap:g}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=Jr(),l=o.x,u=o.y+o.height;Li(s,s,[-l,-u]),Lu(s,s,-US/2),Li(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(a.getBoundingRect()),d=y(i.getBoundingRect()),v=[a.x,a.y],h=[i.x,i.y];h[0]=v[0]=c[0][0];var g=n.labelPosOpt;if(g==null||Ae(g)){var p=g==="+"?0:1;_(v,f,c,1,p),_(h,d,c,1,1-p)}else{var p=g>=0?0:1;_(v,f,c,1,p),h[1]=v[1]+g}a.setPosition(v),i.setPosition(h),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function y(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function _(b,x,S,T,C){b[T]+=S[T][C]-x[T][C]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=LSe(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new kSe("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new ze;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Ln({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ce({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Ln({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Re({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),v=f.getModel(["emphasis","itemStyle"]),h=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Ie(o._changeTimeline,o,u.value)},p=JV(f,d,r,g);p.ensureState("emphasis").style=v.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),ql(p);var m=He(p);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],R(u,function(c){var f=c.tickValue,d=l.getItemModel(f),v=d.getModel("label"),h=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),p=a.dataToCoord(c.tickValue),m=new ft({x:p,y:0,rotation:n.labelRotation-n.rotation,onclick:Ie(o._changeTimeline,o,f),silent:!1,style:Nt(v,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=Nt(h),m.ensureState("progress").style=Nt(g),r.add(m),ql(m),qV(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",Ie(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Ie(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Ie(this._handlePlayClick,this,!c),!0);function d(v,h,g,p){if(v){var m=ni(We(i.get(["controlStyle",h+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=RSe(i,h+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:p?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),ql(_)}}},t.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Ie(u._handlePointerDrag,u),f.ondragend=Ie(u._handlePointerDragend,u),QV(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){QV(f,u._progressLine,s,a,i)}};this._currentPointer=JV(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=wa(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var YS={min:Ue(vp,"min"),max:Ue(vp,"max"),average:Ue(vp,"average"),median:Ue(vp,"median")};function rh(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!FSe(t)&&!he(t.coord)&&he(a)){var i=VU(t,n,r,e);if(t=Ne(t),t.type&&YS[t.type]&&i.baseAxis&&i.valueAxis){var o=Qe(a,i.baseAxis.dim),s=Qe(a,i.valueAxis.dim),l=YS[t.type](n,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!he(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)YS[u[c]]&&(u[c]=WI(n,n.mapDimension(a[c]),u[c]));return t}}function VU(e,t,n,r){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(HSe(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function HSe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function ah(e,t){return e&&e.containData&&t.coord&&!rC(t)?e.containData(t.coord):!0}function GSe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!rC(t)&&!rC(n)?e.containZone(t.coord,n.coord):!0}function OU(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return ys(o,t[i])}:function(n,r,a,i){return ys(n.value,t[i])}}function WI(e,t,n){if(n==="average"){var r=0,a=0;return e.each(t,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var XS=ct(),UI=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Le()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){XS(s).keep=!1}),r.eachSeries(function(s){var l=Ao.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!XS(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){XS(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;R(n,function(i){var o=Ao.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?DH(l):cA(l))})}})},t.type="marker",t}(Ut);function tO(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=we(i.get("x"),n.getWidth()),l=we(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var $Se=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markPoint");o&&(tO(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Fh),f=WSe(o,n,r);r.setData(f),tO(r.getData(),n,i),f.each(function(d){var v=f.getItemModel(d),h=v.getShallow("symbol"),g=v.getShallow("symbolSize"),p=v.getShallow("symbolRotate"),m=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(Ee(h)||Ee(g)||Ee(p)||Ee(m)){var _=r.getRawValue(d),b=r.getDataParams(d);Ee(h)&&(h=h(_,b)),Ee(g)&&(g=g(_,b)),Ee(p)&&(p=p(_,b)),Ee(m)&&(m=m(_,b))}var x=v.getModel("itemStyle").getItemStyle(),S=Oh(l,"color");x.fill||(x.fill=S),f.setItemVisual(d,{symbol:h,symbolSize:g,symbolRotate:p,symbolOffset:m,symbolKeepAspect:y,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(v){He(v).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(UI);function WSe(e,t,n){var r;e?r=me(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return ce(ce({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Tr(r,n),i=me(n.get("data"),Ue(rh,t));e&&(i=Tt(i,Ue(ah,e)));var o=OU(!!e,r);return a.initData(i,null,o),a}function USe(e){e.registerComponentModel(zSe),e.registerComponentView($Se),e.registerPreprocessor(function(t){$I(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var YSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ao),hp=ct(),XSe=function(e,t,n,r){var a=e.getData(),i;if(he(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=Hn(r.yAxis,r.xAxis);else{var u=VU(r,a,t,e);s=u.valueAxis;var c=P$(a,u.valueDataDim);l=WI(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,v=Ne(r),h={coord:[]};v.type=null,v.coord=[],v.coord[d]=-1/0,h.coord[d]=1/0;var g=n.get("precision");g>=0&&dt(l)&&(l=+l.toFixed(Math.min(g,20))),v.coord[f]=h.coord[f]=l,i=[v,h,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var p=[rh(e,i[0]),rh(e,i[1]),ce({},i[2])];return p[2].type=p[2].type||null,Ze(p[2],p[0]),Ze(p[2],p[1]),p};function dy(e){return!isNaN(e)&&!isFinite(e)}function nO(e,t,n,r){var a=1-e,i=r.dimensions[e];return dy(t[a])&&dy(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function jSe(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(nO(1,n,r,e)||nO(0,n,r,e)))return!0}return ah(e,t[0])&&ah(e,t[1])}function jS(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=we(o.get("x"),a.getWidth()),u=we(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Ou(i,"cartesian2d")){var v=i.getAxis("x"),h=i.getAxis("y"),c=i.dimensions;dy(e.get(c[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[n?0:1]):dy(e.get(c[1],t))&&(s[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var ZSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=hp(o).from,u=hp(o).to;l.each(function(c){jS(l,c,!0,i,a),jS(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new hI);this.group.add(c.group);var f=KSe(o,n,r),d=f.from,v=f.to,h=f.line;hp(r).from=d,hp(r).to=v,r.setData(h);var g=r.get("symbol"),p=r.get("symbolSize"),m=r.get("symbolRotate"),y=r.get("symbolOffset");he(g)||(g=[g,g]),he(p)||(p=[p,p]),he(m)||(m=[m,m]),he(y)||(y=[y,y]),f.from.each(function(b){_(d,b,!0),_(v,b,!1)}),h.each(function(b){var x=h.getItemModel(b).getModel("lineStyle").getLineStyle();h.setItemLayout(b,[d.getItemLayout(b),v.getItemLayout(b)]),x.stroke==null&&(x.stroke=d.getItemVisual(b,"style").fill),h.setItemVisual(b,{fromSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(b,"symbolOffset"),fromSymbolRotate:d.getItemVisual(b,"symbolRotate"),fromSymbolSize:d.getItemVisual(b,"symbolSize"),fromSymbol:d.getItemVisual(b,"symbol"),toSymbolKeepAspect:v.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(b,"symbolOffset"),toSymbolRotate:v.getItemVisual(b,"symbolRotate"),toSymbolSize:v.getItemVisual(b,"symbolSize"),toSymbol:v.getItemVisual(b,"symbol"),style:x})}),c.updateData(h),f.line.eachItemGraphicEl(function(b){He(b).dataModel=r,b.traverse(function(x){He(x).dataModel=r})});function _(b,x,S){var T=b.getItemModel(x);jS(b,x,S,n,i);var C=T.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Oh(l,"color")),b.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:We(T.get("symbolOffset",!0),y[S?0:1]),symbolRotate:We(T.get("symbolRotate",!0),m[S?0:1]),symbolSize:We(T.get("symbolSize"),p[S?0:1]),symbol:We(T.get("symbol",!0),g[S?0:1]),style:C})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(UI);function KSe(e,t,n){var r;e?r=me(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return ce(ce({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Tr(r,n),i=new Tr(r,n),o=new Tr([],n),s=me(n.get("data"),Ue(XSe,t,e,n));e&&(s=Tt(s,Ue(jSe,e)));var l=OU(!!e,r);return a.initData(me(s,function(u){return u[0]}),null,l),i.initData(me(s,function(u){return u[1]}),null,l),o.initData(me(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}function qSe(e){e.registerComponentModel(YSe),e.registerComponentView(ZSe),e.registerPreprocessor(function(t){$I(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var JSe=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ao),gp=ct(),QSe=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=rh(e,a),s=rh(e,i),l=o.coord,u=s.coord;l[0]=Hn(l[0],-1/0),l[1]=Hn(l[1],-1/0),u[0]=Hn(u[0],1/0),u[1]=Hn(u[1],1/0);var c=YT([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function vy(e){return!isNaN(e)&&!isFinite(e)}function rO(e,t,n,r){var a=1-e;return vy(t[a])&&vy(n[a])}function e1e(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return Ou(e,"cartesian2d")?n&&r&&(rO(1,n,r)||rO(0,n,r))?!0:GSe(e,a,i):ah(e,a)||ah(e,i)}function aO(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=we(o.get(n[0]),a.getWidth()),u=we(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),v=i.clampData(f),h=[];n[0]==="x0"?h[0]=d[0]>v[0]?f[0]:c[0]:h[0]=d[0]>v[0]?c[0]:f[0],n[1]==="y0"?h[1]=d[1]>v[1]?f[1]:c[1]:h[1]=d[1]>v[1]?c[1]:f[1],s=r.getMarkerPosition(h,n,!0)}else{var g=e.get(n[0],t),p=e.get(n[1],t),m=[g,p];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(Ou(i,"cartesian2d")){var y=i.getAxis("x"),_=i.getAxis("y"),g=e.get(n[0],t),p=e.get(n[1],t);vy(g)?s[0]=y.toGlobalCoord(y.getExtent()[n[0]==="x0"?0:1]):vy(p)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var iO=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],t1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Ao.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=me(iO,function(f){return aO(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ze});this.group.add(c.group),this.markKeep(c);var f=n1e(o,n,r);r.setData(f),f.each(function(d){var v=me(iO,function(C){return aO(f,d,C,n,i)}),h=o.getAxis("x").scale,g=o.getAxis("y").scale,p=h.getExtent(),m=g.getExtent(),y=[h.parse(f.get("x0",d)),h.parse(f.get("x1",d))],_=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];wa(y),wa(_);var b=!(p[0]>y[1]||p[1]_[1]||m[1]<_[0]),x=!b;f.setItemLayout(d,{points:v,allClipped:x});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),T=Oh(l,"color");S.fill||(S.fill=T,Ae(S.fill)&&(S.fill=Pm(S.fill,.4))),S.stroke||(S.stroke=T),f.setItemVisual(d,"style",S)}),f.diff(gp(c).data).add(function(d){var v=f.getItemLayout(d);if(!v.allClipped){var h=new kr({shape:{points:v.points}});f.setItemGraphicEl(d,h),c.group.add(h)}}).update(function(d,v){var h=gp(c).data.getItemGraphicEl(v),g=f.getItemLayout(d);g.allClipped?h&&c.group.remove(h):(h?vt(h,{shape:{points:g.points}},r,d):h=new kr({shape:{points:g.points}}),f.setItemGraphicEl(d,h),c.group.add(h))}).remove(function(d){var v=gp(c).data.getItemGraphicEl(d);c.group.remove(v)}).execute(),f.eachItemGraphicEl(function(d,v){var h=f.getItemModel(v),g=f.getItemVisual(v,"style");d.useStyle(f.getItemVisual(v,"style")),Qn(d,Vn(h),{labelFetcher:r,labelDataIndex:v,defaultText:f.getName(v)||"",inheritColor:Ae(g.fill)?Pm(g.fill,1):"#000"}),Jn(d,h),qt(d,null,null,h.get(["emphasis","disabled"])),He(d).dataModel=r}),gp(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(UI);function n1e(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=me(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return ce(ce({},f),{name:u,ordinalMeta:null})});a=me(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new Tr(a,n)}else a=[{name:"value",type:"float"}],r=new Tr(a,n);var s=me(n.get("data"),Ue(QSe,t,e,n));e&&(s=Tt(s,Ue(e1e,e)));var l=e?function(u,c,f,d){var v=u.coord[Math.floor(d/2)][d%2];return ys(v,a[d])}:function(u,c,f,d){return ys(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}function r1e(e){e.registerComponentModel(JSe),e.registerComponentView(t1e),e.registerPreprocessor(function(t){$I(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var a1e=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},aC=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),he(r)&&R(r,function(i,o){Ae(i)&&(i={type:i}),r[o]=Ze(i,a1e(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ot),cc=Ue,iC=R,pp=ze,NU=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new pp),this.group.add(this._selectorGroup=new pp),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),v=xn(c,f,d),h=this.layoutInner(n,o,v,i,l,u),g=xn(Re({width:h.width,height:h.height},c),f,d);this.group.x=g.x-h.x,this.group.y=g.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=TU(h,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=Le(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&d.push(v.id)}),iC(r.getData(),function(v,h){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` `)){var p=new pp;p.newline=!0,u.add(p);return}var m=a.getSeriesByName(g)[0];if(!c.get(g))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),x=y.getVisual("style"),S=this._createItem(m,g,h,v,r,n,_,x,b,f,i);S.on("click",cc(oO,g,null,i,d)).on("mouseover",cc(oC,m.name,null,i,d)).on("mouseout",cc(sC,m.name,null,i,d)),a.ssr&&S.eachChild(function(T){var C=He(T);C.seriesIndex=m.seriesIndex,C.dataIndex=h,C.ssrType="legend"}),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(g))return;var w=C.indexOfName(g),A=C.getItemVisual(w,"style"),D=C.getItemVisual(w,"legendIcon"),P=Qr(A.fill);P&&P[3]===0&&(P[3]=.2,A=ce(ce({},A),{fill:co(P,"rgba")}));var k=this._createItem(T,g,h,v,r,n,{},A,D,f,i);k.on("click",cc(oO,null,g,i,d)).on("mouseover",cc(oC,null,g,i,d)).on("mouseout",cc(sC,null,g,i,d)),a.ssr&&k.eachChild(function(L){var V=He(L);V.seriesIndex=T.seriesIndex,V.dataIndex=h,V.ssrType="legend"}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},t.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();iC(n,function(u){var c=u.type,f=new ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),v=r.getModel(["emphasis","selectorLabel"]);Qn(f,{normal:d,emphasis:v},{defaultText:u.title}),ql(f)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var v=n.visualDrawType,h=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(r),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var b=i1e(c,i,l,u,v,p,d),x=new pp,S=i.getModel("textStyle");if(Ee(n.getLegendIcon)&&(!_||_==="inherit"))x.add(n.getLegendIcon({itemWidth:h,itemHeight:g,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;x.add(o1e({itemWidth:h,itemHeight:g,icon:c,iconRotate:T,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?h+5:-5,w=s,A=o.get("formatter"),D=r;Ae(A)&&A?D=A.replace("{name}",r??""):Ee(A)&&(D=A(r));var P=p?S.getTextColor():i.get("inactiveColor");x.add(new ft({style:Nt(S,{text:D,x:C,y:g/2,fill:P,align:w,verticalAlign:"middle"},{inheritColor:P})}));var k=new ut({shape:x.getBoundingRect(),style:{fill:"transparent"}}),L=i.getModel("tooltip");return L.get("show")&&Pf({el:k,componentModel:o,itemName:r,itemTooltipOption:L.option}),x.add(k),x.eachChild(function(V){V.silent=!0}),k.silent=!f,this.getContentGroup().add(x),ql(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ql(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Ql("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),v=[-d.x,-d.y],h=n.get("selectorButtonGap",!0),g=n.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=c[p]+h:f[g]+=d[p]+h,v[1-g]+=c[m]/2-d[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[p]=c[p]+h+d[p],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+v[1-g]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ut);function i1e(e,t,n,r,a,i,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),iC(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:of(f,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),v=d.getLineStyle();if(s(v,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),v.stroke==="auto"&&(v.stroke=r.fill),!i){var h=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=h==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=d.get("inactiveColor"),v.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function o1e(e){var t=e.icon||"roundRect",n=hn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function oO(e,t,n,r){sC(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),oC(e,t,n,r)}function BU(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,a=t.length;ra[o],p=[-v.x,-v.y];r||(p[i]=c[u]);var m=[0,0],y=[-h.x,-h.y],_=We(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var b=n.get("pageButtonPosition",!0);b==="end"?y[i]+=a[o]-h[o]:m[i]+=h[o]+_}y[1-i]+=v[s]/2-h[s]/2,c.setPosition(p),f.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=g?a[o]:v[o],x[s]=Math.max(v[s],h[s]),x[l]=Math.min(0,h[l]+y[1-i]),f.__rectSize=a[o],g){var S={x:0,y:0};S[o]=Math.max(a[o]-h[o]-_,0),S[s]=x[s],f.setClipPath(new ut({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(n);return T.pageIndex!=null&&vt(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?n:null),this._updatePageInfoView(n,T),x},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),v.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",Ae(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=ZS[o],l=KS[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,v=d?1:0,h={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return h;var g=b(f);h.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=d;++p)_=b(c[p]),(!_&&y.e>m.s+i||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=m.i),++h.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=b(c[p]),(!_||!x(y,_.s))&&m.i=T&&S.s<=T+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(NU);function f1e(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function d1e(e){tt(zU),e.registerComponentModel(u1e),e.registerComponentView(c1e),f1e(e)}function v1e(e){tt(zU),tt(d1e)}var h1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=$s(nh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(nh),YI=ct();function g1e(e,t,n){YI(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function p1e(e,t){for(var n=YI(e).coordSysRecordMap,r=n.keys(),a=0;ar[n+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function S1e(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=YI(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=Le());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=xU(i);R(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,m1e(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Le());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){FU(a,i);return}var c=b1e(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Of(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var x1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),g1e(a,n,{pan:Ie(qS.pan,this),zoom:Ie(qS.zoom,this),scrollMove:Ie(qS.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){p1e(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(NI),qS={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=JS[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Bu(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:uO(function(e,t,n,r,a,i){var o=JS[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:uO(function(e,t,n,r,a,i){var o=JS[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function uO(e){return function(t,n,r,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,a);if(Bu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var JS={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function HU(e){BI(e),e.registerComponentModel(h1e),e.registerComponentView(x1e),S1e(e)}var w1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=$s(nh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(nh),_d=ut,cO=7,C1e=1,QS=30,T1e=7,bd="horizontal",fO="vertical",A1e=5,I1e=["line","bar","candlestick","scatter"],D1e={easing:"cubicOut",duration:100,delay:0},P1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=Ie(this._onBrush,this),this._onBrushEnd=Ie(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),Of(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$v(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new ze;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?T1e:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bd?{right:s.width-o.x-o.width,top:s.height-QS-cO-i,width:o.width,height:QS}:{right:cO,top:o.y,width:QS,height:o.height},u=Ef(n.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=xn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===fO&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===bd&&!o?{scaleY:l?1:-1,scaleX:1}:a===bd&&o?{scaleY:l?1:-1,scaleX:-1}:a===fO&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new _d({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new _d({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Ie(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var v=[0,r[1]],h=[0,r[0]],g=[[r[0],0],[0,0]],p=[],m=h[1]/(o.count()-1),y=0,_=Math.round(o.count()/r[0]),b;o.each([l],function(w,A){if(_>0&&A%_){y+=m;return}var D=w==null||isNaN(w)||w==="",P=D?0:bt(w,f,v,!0);D&&!b&&A?(g.push([g[g.length-1][0],0]),p.push([p[p.length-1][0],0])):!D&&b&&(g.push([y,0]),p.push([y,0])),g.push([y,P]),p.push([y,P]),y+=m,b=D}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function S(w){var A=x.getModel(w?"selectedDataBackground":"dataBackground"),D=new ze,P=new kr({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Lr({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(P),D.add(k),D}for(var T=0;T<3;T++){var C=S(T===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!a&&!(r!==!0&&Qe(I1e,u.get("type"))<0)){var c=i.getComponent(hs(o),s).axis,f=k1e(o),d,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(d=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new _d({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new _d({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:C1e,fill:"rgba(0,0,0,0)"}})),R([0,1],function(_){var b=l.get("handleIcon");!Wm[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var x=hn(b,-1,0,2,2,null,!0);x.attr({cursor:dO(this._orient),draggable:!0,drift:Ie(this._onDragMove,this,_),ondragend:Ie(this._onDragEnd,this),onmouseover:Ie(this._showDataInfo,this,!0),onmouseout:Ie(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=we(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ql(x);var C=l.get("handleColor");C!=null&&(x.style.fill=C),o.add(a[_]=x);var w=l.getModel("textStyle");n.add(i[_]=new ft({silent:!0,invisible:!0,style:Nt(w,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:w.getTextColor(),font:w.getFont()}),z2:10}))},this);var v=d;if(f){var h=we(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new ut({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),p=h*.8,m=r.moveHandleIcon=hn(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);m.silent=!0,m.y=s[1]+h/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(h,10));v=r.moveZone=new ut({invisible:!0,shape:{y:s[1]-y,height:h+y}}),v.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:dO(this._orient),drift:Ie(this._onDragMove,this,"all"),ondragstart:Ie(this._showDataInfo,this,!0),ondragend:Ie(this._onDragEnd,this),onmouseover:Ie(this._showDataInfo,this,!0),onmouseout:Ie(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[bt(n[0],[0,100],r,!0),bt(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Bu(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?bt(s.minSpan,l,o,!0):null,s.maxSpan!=null?bt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=wa([bt(i[0],o,l,!0),bt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=wa(a.slice()),o=this._size;R([0,1],function(v){var h=r.handles[v],g=this._handleHeight;h.attr({scaleX:g/2,scaleY:g/2,x:a[v]+(v?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new je(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=wa([bt(a.x,o,s,!0),bt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(_o(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new _d({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?D1e:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=xU(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(NI);function k1e(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function dO(e){return e==="vertical"?"ns-resize":"ew-resize"}function GU(e){e.registerComponentModel(w1e),e.registerComponentView(P1e),BI(e)}function M1e(e){tt(HU),tt(GU)}var $U={get:function(e,t,n){var r=Ne((L1e[e]||{})[t]);return n&&he(r)?r[r.length-1]:r}},L1e={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},vO=Rn.mapVisual,E1e=Rn.eachVisual,R1e=he,hO=R,V1e=wa,O1e=bt,hy=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&LU(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=Ie(n,this),this.controllerVisuals=tC(this.option.controller,r,n),this.targetVisuals=tC(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=It(n),r},t.prototype.eachTargetSeries=function(n,r){R(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],he(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Ae(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Ee(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=V1e([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Ze(i,a),Ze(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){R1e(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,v){var h=f[d],g=f[v];h&&!g&&(g=f[v]={},hO(h,function(p,m){if(Rn.isValidType(m)){var y=$U.get(m,"inactive",s);y!=null&&(g[m]=y,m==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),g=this.getItemSymbol(),p=g||"roundRect";hO(this.stateList,function(m){var y=this.itemSize,_=f[m];_||(_=f[m]={color:s?h:[h]}),_.symbol==null&&(_.symbol=d&&Ne(d)||(s?p:[p])),_.symbolSize==null&&(_.symbolSize=v&&Ne(v)||(s?y[0]:[y[0],y[0]])),_.symbol=vO(_.symbol,function(S){return S==="none"?p:S});var b=_.symbolSize;if(b!=null){var x=-1/0;E1e(b,function(S){S>x&&(x=S)}),_.symbolSize=vO(b,function(S){return O1e(S,[0,x],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ot),gO=[20,140],N1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=gO[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=gO[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):he(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=wa((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=pO(this,"outOfRange",this.getExtent()),a=pO(this,"inRange",this.option.range.slice()),i=[];function o(v,h){i.push({value:v,color:n(v,h)})}for(var s=0,l=0,u=a.length,c=r.length;ln[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new ze(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();B1e([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=gi(n[c],[0,l[1]],u,!0),v=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var h=Ka(a.handleLabelPoints[c],Jl(f,this.group));s[c].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},v=this.getControllerVisual(n,"color",d),h=this.getControllerVisual(n,"symbolSize"),g=gi(n,s,u,!0),p=l[0]-h/2,m={x:f.x,y:f.y};f.y=g,f.x=p;var y=Ka(c.indicatorLabelPoint,Jl(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?b:"middle",align:S?"center":b});var T={x:p,y:g,style:{fill:v}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(T,w),_.animateTo(C,w)}else f.attr(T),_.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var D=0;Do[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,v=[];(r||bO(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var h=Kae(d,v);this._dispatchHighDown("downplay",Yp(h[0],a)),this._dispatchHighDown("highlight",Yp(h[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Ol(n.target,function(l){var u=He(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function Y1e(e,t,n,r){for(var a=t.targetVisuals[r],i=Rn.prepareVisualTypes(a),o={color:Oh(e.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction($1e,W1e),R(U1e,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(X1e))}function XU(e){e.registerComponentModel(N1e),e.registerComponentView(H1e),YU(e)}var j1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Z1e[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ne(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=pe(this._pieceList,function(l){return l=Ne(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=Rn.listVisualTypes(),i=this.isCategory();R(n.pieces,function(s){R(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),R(r,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&R(this.stateList,function(c){(n[c]||(n[c]={}))[l]=$U.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,R(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;R(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Ne(n)},t.prototype.getValueState=function(n){var r=Rn.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Rn.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var v=n(d,f);c[0]===-1/0?a[0]=v:c[1]===1/0?a[1]=v:r.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=$s(hy.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(hy),Z1e={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function CO(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}var K1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Hn(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),R(c.viewPieceList,function(v){var h=v.piece,g=new ze;g.onclick=Ie(this._onItemClick,this,h),this._enableHoverLink(g,v.indexInModelPieceList);var p=r.getRepresentValue(h);if(this._createItemSymbol(g,p,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(p);g.add(new ft({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:h.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(g)},this),f&&this._renderEndsText(n,f[1],u,d,l),Ql(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Yp(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return UU(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new ze,l=this.visualMapModel.textStyleModel;s.add(new ft({style:Nt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=pe(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(hn(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ne(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(WU);function jU(e){e.registerComponentModel(j1e),e.registerComponentView(K1e),YU(e)}function q1e(e){tt(XU),tt(jU)}var J1e={label:{enabled:!0},decal:{show:!1}},TO=ct(),Q1e={};function exe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Ne(J1e);Ze(r.label,e.getLocaleModel().get("aria"),!1),Ze(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Le();e.eachSeries(function(d){if(!d.isColorBySeries()){var v=f.get(d.type);v||(v={},f.set(d.type,v)),TO(d).scope=v}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Ee(d.enableAriaDecal)){d.enableAriaDecal();return}var v=d.getData();if(d.isColorBySeries()){var y=sw(d.ecModel,d.name,Q1e,e.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",b(_,y))}else{var h=d.getRawData(),g={},p=TO(d).scope;v.each(function(x){var S=v.getRawIndex(x);g[S]=x});var m=h.count();h.each(function(x){var S=g[x],T=h.getName(x)||x+"",C=sw(d.ecModel,T,p,m),w=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",b(w,C))})}function b(x,S){var T=x?ce(ce({},S),x):S;return T.dirty=!0,T}})}}function i(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=Re(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),v=f.get(["data","maxCount"])||10,h=f.get(["series","maxCount"])||10,g=Math.min(d,h),p;if(!(d<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);p=o(y,{title:m})}else p=f.get(["general","withoutTitle"]);var _=[],b=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=o(b,{seriesCount:d}),e.eachSeries(function(C,w){if(w1?f.get(["series","multiple",P]):f.get(["series","single",P]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var k=C.getData();if(k.count()>v){var L=f.get(["data","partialData"]);A+=o(L,{displayCnt:v})}else A+=f.get(["data","allData"]);for(var V=f.get(["data","separator","middle"]),N=f.get(["data","separator","end"]),$=[],z=0;z":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},rxe=function(){function e(t){var n=this._condVal=Ae(t)?new RegExp(t):pre(t)?t:null;if(n==null){var r="";pt(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return Ae(n)?this._condVal.test(t):dt(n)?this._condVal.test(t+""):!1},e}(),axe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),ixe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n2&&r.push(a),a=[k,L]}function c(k,L,V,N){Pc(k,V)&&Pc(L,N)||a.push(k,L,V,N,V,N)}function f(k,L,V,N,$,z){var H=Math.abs(L-k),U=Math.tan(H/4)*4/3,Y=LC:D2&&r.push(a),r}function uC(e,t,n,r,a,i,o,s,l,u){if(Pc(e,n)&&Pc(t,r)&&Pc(a,o)&&Pc(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,v=s-t,h=Math.sqrt(d*d+v*v);d/=h,v/=h;var g=n-e,p=r-t,m=a-o,y=i-s,_=g*g+p*p,b=m*m+y*y;if(_=0&&C=0){l.push(o,s);return}var w=[],A=[];Is(e,n,a,o,.5,w),Is(t,r,i,s,.5,A),uC(w[0],A[0],w[1],A[1],w[2],A[2],w[3],A[3],l,u),uC(w[4],A[4],w[5],A[5],w[6],A[6],w[7],A[7],l,u)}function _xe(e,t){var n=lC(e),r=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),f=KU([l,u],c?0:1,t),d=(c?s:u)/f.length,v=0;va,o=KU([r,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d1?null:new je(g*l+e,g*u+t)}function xxe(e,t,n){var r=new je;je.sub(r,n,t),r.normalize();var a=new je;je.sub(a,e,t);var i=a.dot(r);return i}function dc(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function wxe(e,t,n){for(var r=e.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),wxe(t,u,c)}function gy(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);gy(e,i[0],a,r),gy(e,i[1],n-a,r)}return r}function Cxe(e,t){for(var n=[],r=0;r0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function yy(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=pe(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=pe(i,function(s,l){return{cp:s,z:Exe(s[0],s[1],t,n,r,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function QU(e){return Ixe(e.path,e.count)}function cC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Rxe(e,t,n){var r=[];function a(x){for(var S=0;S=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var Oxe={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;RO(e)&&(u=e,c=t),RO(t)&&(u=t,c=e);function f(m,y,_,b,x){var S=m.many,T=m.one;if(S.length===1&&!x){var C=y?S[0]:T,w=y?T:S[0];if(py(C))f({many:[C],one:w},!0,_,b,!0);else{var A=s?Re({delay:s(_,b)},l):l;jI(C,w,A),i(C,w,C,w,A)}}else for(var D=Re({dividePath:Oxe[n],individualDelay:s&&function($,z,H,U){return s($+_,b)}},l),P=y?Rxe(S,T,D):Vxe(T,S,D),k=P.fromIndividuals,L=P.toIndividuals,V=k.length,N=0;Nt.length,v=u?VO(c,u):VO(d?t:e,[d?e:t]),h=0,g=0;ge6))for(var i=r.getIndices(),o=0;o0&&S.group.traverse(function(C){C instanceof at&&!C.animators.length&&C.animateFrom({style:{opacity:0}},T)})})}function FO(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function HO(e){return he(e)?e.sort().join(","):e}function rs(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function $xe(e,t){var n=Le(),r=Le(),a=Le();return R(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=FO(i),c=HO(u);r.set(c,{dataGroupId:s,data:l}),he(u)&&R(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),R(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=FO(i),u=HO(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:rs(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:rs(s),data:s}]});else if(he(l)){var f=[];R(l,function(h){var g=r.get(h);g.data&&f.push({dataGroupId:g.dataGroupId,divide:rs(g.data),data:g.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:rs(s)}]})}else{var d=a.get(l);if(d){var v=n.get(d.key);v||(v={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:rs(d.data)}],newSeries:[]},n.set(d.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:rs(s)})}}}}),n}function GO(e,t){for(var n=0;n=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:rs(t.oldData[s]),groupIdDim:o.dimension})}),R(It(e.to),function(o){var s=GO(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:rs(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&t6(a,i,r)}function Uxe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){R(It(r.seriesTransition),function(a){R(It(a.to),function(i){for(var o=r.updatedSeries,s=0;sa[o],p=[-v.x,-v.y];r||(p[i]=c[u]);var m=[0,0],y=[-h.x,-h.y],_=We(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var b=n.get("pageButtonPosition",!0);b==="end"?y[i]+=a[o]-h[o]:m[i]+=h[o]+_}y[1-i]+=v[s]/2-h[s]/2,c.setPosition(p),f.setPosition(m),d.setPosition(y);var x={x:0,y:0};if(x[o]=g?a[o]:v[o],x[s]=Math.max(v[s],h[s]),x[l]=Math.min(0,h[l]+y[1-i]),f.__rectSize=a[o],g){var S={x:0,y:0};S[o]=Math.max(a[o]-h[o]-_,0),S[s]=x[s],f.setClipPath(new ut({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(n);return T.pageIndex!=null&&vt(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?n:null),this._updatePageInfoView(n,T),x},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,v=a.childOfName(c);v&&(v.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),v.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",Ae(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=ZS[o],l=KS[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,v=d?1:0,h={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return h;var g=b(f);h.contentPosition[o]=-g.s;for(var p=u+1,m=g,y=g,_=null;p<=d;++p)_=b(c[p]),(!_&&y.e>m.s+i||_&&!x(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=m.i),++h.pageCount)),y=_;for(var p=u-1,m=g,y=g,_=null;p>=-1;--p)_=b(c[p]),(!_||!x(y,_.s))&&m.i=T&&S.s<=T+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(NU);function f1e(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function d1e(e){tt(zU),e.registerComponentModel(u1e),e.registerComponentView(c1e),f1e(e)}function v1e(e){tt(zU),tt(d1e)}var h1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=$s(nh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(nh),YI=ct();function g1e(e,t,n){YI(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function p1e(e,t){for(var n=YI(e).coordSysRecordMap,r=n.keys(),a=0;ar[n+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function S1e(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=YI(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=Le());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=xU(i);R(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,m1e(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Le());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){FU(a,i);return}var c=b1e(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Of(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var x1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),g1e(a,n,{pan:Ie(qS.pan,this),zoom:Ie(qS.zoom,this),scrollMove:Ie(qS.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){p1e(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(NI),qS={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=JS[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Bu(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:uO(function(e,t,n,r,a,i){var o=JS[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:uO(function(e,t,n,r,a,i){var o=JS[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function uO(e){return function(t,n,r,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,a);if(Bu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var JS={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function HU(e){BI(e),e.registerComponentModel(h1e),e.registerComponentView(x1e),S1e(e)}var w1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=$s(nh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(nh),_d=ut,cO=7,C1e=1,QS=30,T1e=7,bd="horizontal",fO="vertical",A1e=5,I1e=["line","bar","candlestick","scatter"],D1e={easing:"cubicOut",duration:100,delay:0},P1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=Ie(this._onBrush,this),this._onBrushEnd=Ie(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),Of(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$v(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new ze;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?T1e:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bd?{right:s.width-o.x-o.width,top:s.height-QS-cO-i,width:o.width,height:QS}:{right:cO,top:o.y,width:QS,height:o.height},u=Ef(n.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=xn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===fO&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===bd&&!o?{scaleY:l?1:-1,scaleX:1}:a===bd&&o?{scaleY:l?1:-1,scaleX:-1}:a===fO&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new _d({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new _d({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Ie(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var v=[0,r[1]],h=[0,r[0]],g=[[r[0],0],[0,0]],p=[],m=h[1]/(o.count()-1),y=0,_=Math.round(o.count()/r[0]),b;o.each([l],function(w,A){if(_>0&&A%_){y+=m;return}var D=w==null||isNaN(w)||w==="",P=D?0:bt(w,f,v,!0);D&&!b&&A?(g.push([g[g.length-1][0],0]),p.push([p[p.length-1][0],0])):!D&&b&&(g.push([y,0]),p.push([y,0])),g.push([y,P]),p.push([y,P]),y+=m,b=D}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function S(w){var A=x.getModel(w?"selectedDataBackground":"dataBackground"),D=new ze,P=new kr({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Lr({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(P),D.add(k),D}for(var T=0;T<3;T++){var C=S(T===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!a&&!(r!==!0&&Qe(I1e,u.get("type"))<0)){var c=i.getComponent(hs(o),s).axis,f=k1e(o),d,v=u.coordinateSystem;f!=null&&v.getOtherAxis&&(d=v.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new _d({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new _d({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:C1e,fill:"rgba(0,0,0,0)"}})),R([0,1],function(_){var b=l.get("handleIcon");!Wm[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var x=hn(b,-1,0,2,2,null,!0);x.attr({cursor:dO(this._orient),draggable:!0,drift:Ie(this._onDragMove,this,_),ondragend:Ie(this._onDragEnd,this),onmouseover:Ie(this._showDataInfo,this,!0),onmouseout:Ie(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=we(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ql(x);var C=l.get("handleColor");C!=null&&(x.style.fill=C),o.add(a[_]=x);var w=l.getModel("textStyle");n.add(i[_]=new ft({silent:!0,invisible:!0,style:Nt(w,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:w.getTextColor(),font:w.getFont()}),z2:10}))},this);var v=d;if(f){var h=we(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new ut({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),p=h*.8,m=r.moveHandleIcon=hn(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);m.silent=!0,m.y=s[1]+h/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(h,10));v=r.moveZone=new ut({invisible:!0,shape:{y:s[1]-y,height:h+y}}),v.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(m),o.add(v)}v.attr({draggable:!0,cursor:dO(this._orient),drift:Ie(this._onDragMove,this,"all"),ondragstart:Ie(this._showDataInfo,this,!0),ondragend:Ie(this._onDragEnd,this),onmouseover:Ie(this._showDataInfo,this,!0),onmouseout:Ie(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[bt(n[0],[0,100],r,!0),bt(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Bu(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?bt(s.minSpan,l,o,!0):null,s.maxSpan!=null?bt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=wa([bt(i[0],o,l,!0),bt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=wa(a.slice()),o=this._size;R([0,1],function(v){var h=r.handles[v],g=this._handleHeight;h.attr({scaleX:g/2,scaleY:g/2,x:a[v]+(v?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new je(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=wa([bt(a.x,o,s,!0),bt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(_o(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new _d({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?D1e:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=xU(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(NI);function k1e(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function dO(e){return e==="vertical"?"ns-resize":"ew-resize"}function GU(e){e.registerComponentModel(w1e),e.registerComponentView(P1e),BI(e)}function M1e(e){tt(HU),tt(GU)}var $U={get:function(e,t,n){var r=Ne((L1e[e]||{})[t]);return n&&he(r)?r[r.length-1]:r}},L1e={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},vO=Rn.mapVisual,E1e=Rn.eachVisual,R1e=he,hO=R,V1e=wa,O1e=bt,hy=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&LU(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=Ie(n,this),this.controllerVisuals=tC(this.option.controller,r,n),this.targetVisuals=tC(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=It(n),r},t.prototype.eachTargetSeries=function(n,r){R(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],he(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Ae(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Ee(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=V1e([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Ze(i,a),Ze(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){R1e(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,v){var h=f[d],g=f[v];h&&!g&&(g=f[v]={},hO(h,function(p,m){if(Rn.isValidType(m)){var y=$U.get(m,"inactive",s);y!=null&&(g[m]=y,m==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,v=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),g=this.getItemSymbol(),p=g||"roundRect";hO(this.stateList,function(m){var y=this.itemSize,_=f[m];_||(_=f[m]={color:s?h:[h]}),_.symbol==null&&(_.symbol=d&&Ne(d)||(s?p:[p])),_.symbolSize==null&&(_.symbolSize=v&&Ne(v)||(s?y[0]:[y[0],y[0]])),_.symbol=vO(_.symbol,function(S){return S==="none"?p:S});var b=_.symbolSize;if(b!=null){var x=-1/0;E1e(b,function(S){S>x&&(x=S)}),_.symbolSize=vO(b,function(S){return O1e(S,[0,x],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ot),gO=[20,140],N1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=gO[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=gO[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):he(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=wa((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=pO(this,"outOfRange",this.getExtent()),a=pO(this,"inRange",this.option.range.slice()),i=[];function o(v,h){i.push({value:v,color:n(v,h)})}for(var s=0,l=0,u=a.length,c=r.length;ln[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new ze(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();B1e([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=gi(n[c],[0,l[1]],u,!0),v=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=v/l[0],f.x=l[0]-v/2;var h=Ka(a.handleLabelPoints[c],Jl(f,this.group));s[c].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},v=this.getControllerVisual(n,"color",d),h=this.getControllerVisual(n,"symbolSize"),g=gi(n,s,u,!0),p=l[0]-h/2,m={x:f.x,y:f.y};f.y=g,f.x=p;var y=Ka(c.indicatorLabelPoint,Jl(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?b:"middle",align:S?"center":b});var T={x:p,y:g,style:{fill:v}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(T,w),_.animateTo(C,w)}else f.attr(T),_.attr(C);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var D=0;Do[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,v=[];(r||bO(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var h=Kae(d,v);this._dispatchHighDown("downplay",Yp(h[0],a)),this._dispatchHighDown("highlight",Yp(h[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Ol(n.target,function(l){var u=He(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function Y1e(e,t,n,r){for(var a=t.targetVisuals[r],i=Rn.prepareVisualTypes(a),o={color:Oh(e.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction($1e,W1e),R(U1e,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(X1e))}function XU(e){e.registerComponentModel(N1e),e.registerComponentView(H1e),YU(e)}var j1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Z1e[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ne(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=me(this._pieceList,function(l){return l=Ne(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=Rn.listVisualTypes(),i=this.isCategory();R(n.pieces,function(s){R(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),R(r,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&R(this.stateList,function(c){(n[c]||(n[c]={}))[l]=$U.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,R(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;R(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Ne(n)},t.prototype.getValueState=function(n){var r=Rn.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Rn.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var v=n(d,f);c[0]===-1/0?a[0]=v:c[1]===1/0?a[1]=v:r.push({value:c[0],color:v},{value:c[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=$s(hy.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(hy),Z1e={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function CO(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}var K1e=function(e){ee(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Hn(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),R(c.viewPieceList,function(v){var h=v.piece,g=new ze;g.onclick=Ie(this._onItemClick,this,h),this._enableHoverLink(g,v.indexInModelPieceList);var p=r.getRepresentValue(h);if(this._createItemSymbol(g,p,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(p);g.add(new ft({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:h.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(g)},this),f&&this._renderEndsText(n,f[1],u,d,l),Ql(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Yp(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return UU(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new ze,l=this.visualMapModel.textStyleModel;s.add(new ft({style:Nt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=me(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(hn(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ne(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(WU);function jU(e){e.registerComponentModel(j1e),e.registerComponentView(K1e),YU(e)}function q1e(e){tt(XU),tt(jU)}var J1e={label:{enabled:!0},decal:{show:!1}},TO=ct(),Q1e={};function exe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Ne(J1e);Ze(r.label,e.getLocaleModel().get("aria"),!1),Ze(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Le();e.eachSeries(function(d){if(!d.isColorBySeries()){var v=f.get(d.type);v||(v={},f.set(d.type,v)),TO(d).scope=v}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Ee(d.enableAriaDecal)){d.enableAriaDecal();return}var v=d.getData();if(d.isColorBySeries()){var y=sw(d.ecModel,d.name,Q1e,e.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",b(_,y))}else{var h=d.getRawData(),g={},p=TO(d).scope;v.each(function(x){var S=v.getRawIndex(x);g[S]=x});var m=h.count();h.each(function(x){var S=g[x],T=h.getName(x)||x+"",C=sw(d.ecModel,T,p,m),w=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",b(w,C))})}function b(x,S){var T=x?ce(ce({},S),x):S;return T.dirty=!0,T}})}}function i(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=Re(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),v=f.get(["data","maxCount"])||10,h=f.get(["series","maxCount"])||10,g=Math.min(d,h),p;if(!(d<1)){var m=s();if(m){var y=f.get(["general","withTitle"]);p=o(y,{title:m})}else p=f.get(["general","withoutTitle"]);var _=[],b=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=o(b,{seriesCount:d}),e.eachSeries(function(C,w){if(w1?f.get(["series","multiple",P]):f.get(["series","single",P]),A=o(A,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var k=C.getData();if(k.count()>v){var L=f.get(["data","partialData"]);A+=o(L,{displayCnt:v})}else A+=f.get(["data","allData"]);for(var V=f.get(["data","separator","middle"]),N=f.get(["data","separator","end"]),$=[],z=0;z":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},rxe=function(){function e(t){var n=this._condVal=Ae(t)?new RegExp(t):pre(t)?t:null;if(n==null){var r="";pt(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return Ae(n)?this._condVal.test(t):dt(n)?this._condVal.test(t+""):!1},e}(),axe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),ixe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n2&&r.push(a),a=[k,L]}function c(k,L,V,N){Pc(k,V)&&Pc(L,N)||a.push(k,L,V,N,V,N)}function f(k,L,V,N,$,z){var H=Math.abs(L-k),U=Math.tan(H/4)*4/3,Y=LC:D2&&r.push(a),r}function uC(e,t,n,r,a,i,o,s,l,u){if(Pc(e,n)&&Pc(t,r)&&Pc(a,o)&&Pc(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,v=s-t,h=Math.sqrt(d*d+v*v);d/=h,v/=h;var g=n-e,p=r-t,m=a-o,y=i-s,_=g*g+p*p,b=m*m+y*y;if(_=0&&C=0){l.push(o,s);return}var w=[],A=[];Is(e,n,a,o,.5,w),Is(t,r,i,s,.5,A),uC(w[0],A[0],w[1],A[1],w[2],A[2],w[3],A[3],l,u),uC(w[4],A[4],w[5],A[5],w[6],A[6],w[7],A[7],l,u)}function _xe(e,t){var n=lC(e),r=[];t=t||1;for(var a=0;a0)for(var u=0;uMath.abs(u),f=KU([l,u],c?0:1,t),d=(c?s:u)/f.length,v=0;va,o=KU([r,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d1?null:new je(g*l+e,g*u+t)}function xxe(e,t,n){var r=new je;je.sub(r,n,t),r.normalize();var a=new je;je.sub(a,e,t);var i=a.dot(r);return i}function dc(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function wxe(e,t,n){for(var r=e.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),wxe(t,u,c)}function gy(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);gy(e,i[0],a,r),gy(e,i[1],n-a,r)}return r}function Cxe(e,t){for(var n=[],r=0;r0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function yy(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=me(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=me(i,function(s,l){return{cp:s,z:Exe(s[0],s[1],t,n,r,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function QU(e){return Ixe(e.path,e.count)}function cC(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Rxe(e,t,n){var r=[];function a(x){for(var S=0;S=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var Oxe={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;RO(e)&&(u=e,c=t),RO(t)&&(u=t,c=e);function f(m,y,_,b,x){var S=m.many,T=m.one;if(S.length===1&&!x){var C=y?S[0]:T,w=y?T:S[0];if(py(C))f({many:[C],one:w},!0,_,b,!0);else{var A=s?Re({delay:s(_,b)},l):l;jI(C,w,A),i(C,w,C,w,A)}}else for(var D=Re({dividePath:Oxe[n],individualDelay:s&&function($,z,H,U){return s($+_,b)}},l),P=y?Rxe(S,T,D):Vxe(T,S,D),k=P.fromIndividuals,L=P.toIndividuals,V=k.length,N=0;Nt.length,v=u?VO(c,u):VO(d?t:e,[d?e:t]),h=0,g=0;ge6))for(var i=r.getIndices(),o=0;o0&&S.group.traverse(function(C){C instanceof at&&!C.animators.length&&C.animateFrom({style:{opacity:0}},T)})})}function FO(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function HO(e){return he(e)?e.sort().join(","):e}function rs(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function $xe(e,t){var n=Le(),r=Le(),a=Le();return R(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=FO(i),c=HO(u);r.set(c,{dataGroupId:s,data:l}),he(u)&&R(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),R(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=FO(i),u=HO(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:rs(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:rs(s),data:s}]});else if(he(l)){var f=[];R(l,function(h){var g=r.get(h);g.data&&f.push({dataGroupId:g.dataGroupId,divide:rs(g.data),data:g.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:rs(s)}]})}else{var d=a.get(l);if(d){var v=n.get(d.key);v||(v={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:rs(d.data)}],newSeries:[]},n.set(d.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:rs(s)})}}}}),n}function GO(e,t){for(var n=0;n=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:rs(t.oldData[s]),groupIdDim:o.dimension})}),R(It(e.to),function(o){var s=GO(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:rs(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&t6(a,i,r)}function Uxe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){R(It(r.seriesTransition),function(a){R(It(a.to),function(i){for(var o=r.updatedSeries,s=0;s FHEMApp v4 - +