@abi-software/flatmapvuer 1.11.3 → 1.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- (function(H,K){typeof exports=="object"&&typeof module<"u"?K(exports,require("@element-plus/icons-vue"),require("vue"),require("@abi-software/svg-sprite"),require("@abi-software/map-utilities"),require("https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.3.0/+esm"),require("@abi-software/sparc-annotation"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","@element-plus/icons-vue","vue","@abi-software/svg-sprite","@abi-software/map-utilities","https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.3.0/+esm","@abi-software/sparc-annotation","pinia"],K):(H=typeof globalThis<"u"?globalThis:H||self,K(H.FlatmapVuer={},H["@element-plus/icons-vue"],H.Vue,H["@abi-software/svg-sprite"],H["@abi-software/map-utilities"],H.flatmap,H["@abi-software/sparc-annotation"],H.pinia))})(this,function(H,K,n,mi,Pt,ks,Es,gi){"use strict";function Is(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const yi=Is(ks),Ae=(e,t,{checkForDefaultPrevented:o=!0}={})=>a=>{const r=e==null?void 0:e(a);if(o===!1||!r)return t==null?void 0:t(a)};var bi;const U=typeof window<"u",Ts=e=>typeof e=="string",wi=()=>{},to=U&&((bi=window==null?void 0:window.navigator)==null?void 0:bi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function no(e){return typeof e=="function"?e():n.unref(e)}function As(e){return e}function _t(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function Os(e,t=!0){n.getCurrentInstance()?n.onMounted(e):t?e():n.nextTick(e)}function Ci(e,t,o={}){const{immediate:i=!0}=o,a=n.ref(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function l(){a.value=!1,s()}function c(...d){s(),a.value=!0,r=setTimeout(()=>{a.value=!1,r=null,e(...d)},no(t))}return i&&(a.value=!0,U&&c()),_t(l),{isPending:n.readonly(a),start:c,stop:l}}function Oe(e){var t;const o=no(e);return(t=o==null?void 0:o.$el)!=null?t:o}const un=U?window:void 0;function he(...e){let t,o,i,a;if(Ts(e[0])||Array.isArray(e[0])?([o,i,a]=e,t=un):[t,o,i,a]=e,!t)return wi;Array.isArray(o)||(o=[o]),Array.isArray(i)||(i=[i]);const r=[],s=()=>{r.forEach(f=>f()),r.length=0},l=(f,u,p,g)=>(f.addEventListener(u,p,g),()=>f.removeEventListener(u,p,g)),c=n.watch(()=>[Oe(t),no(a)],([f,u])=>{s(),f&&r.push(...o.flatMap(p=>i.map(g=>l(f,p,g,u))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return _t(d),d}let vi=!1;function Ms(e,t,o={}){const{window:i=un,ignore:a=[],capture:r=!0,detectIframe:s=!1}=o;if(!i)return;to&&!vi&&(vi=!0,Array.from(i.document.body.children).forEach(p=>p.addEventListener("click",wi)));let l=!0;const c=p=>a.some(g=>{if(typeof g=="string")return Array.from(i.document.querySelectorAll(g)).some(h=>h===p.target||p.composedPath().includes(h));{const h=Oe(g);return h&&(p.target===h||p.composedPath().includes(h))}}),f=[he(i,"click",p=>{const g=Oe(e);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:r}),he(i,"pointerdown",p=>{const g=Oe(e);g&&(l=!p.composedPath().includes(g)&&!c(p))},{passive:!0}),s&&he(i,"blur",p=>{var g;const h=Oe(e);((g=i.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(i.document.activeElement))&&t(p)})].filter(Boolean);return()=>f.forEach(p=>p())}function Si(e,t=!1){const o=n.ref(),i=()=>o.value=!!e();return i(),Os(i,t),o}const ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ei="__vueuse_ssr_handlers__";ki[Ei]=ki[Ei]||{};var Ii=Object.getOwnPropertySymbols,xs=Object.prototype.hasOwnProperty,Bs=Object.prototype.propertyIsEnumerable,Ns=(e,t)=>{var o={};for(var i in e)xs.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&Ii)for(var i of Ii(e))t.indexOf(i)<0&&Bs.call(e,i)&&(o[i]=e[i]);return o};function Re(e,t,o={}){const i=o,{window:a=un}=i,r=Ns(i,["window"]);let s;const l=Si(()=>a&&"ResizeObserver"in a),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&a&&u&&(s=new ResizeObserver(t),s.observe(u,r))},{immediate:!0,flush:"post"}),f=()=>{c(),d()};return _t(f),{isSupported:l,stop:f}}var Ti=Object.getOwnPropertySymbols,Ps=Object.prototype.hasOwnProperty,_s=Object.prototype.propertyIsEnumerable,Ls=(e,t)=>{var o={};for(var i in e)Ps.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&Ti)for(var i of Ti(e))t.indexOf(i)<0&&_s.call(e,i)&&(o[i]=e[i]);return o};function Vs(e,t,o={}){const i=o,{window:a=un}=i,r=Ls(i,["window"]);let s;const l=Si(()=>a&&"MutationObserver"in a),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&a&&u&&(s=new MutationObserver(t),s.observe(u,r))},{immediate:!0}),f=()=>{c(),d()};return _t(f),{isSupported:l,stop:f}}var Ai;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ai||(Ai={}));var Rs=Object.defineProperty,Oi=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,Ds=Object.prototype.propertyIsEnumerable,Mi=(e,t,o)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,$s=(e,t)=>{for(var o in t||(t={}))Fs.call(t,o)&&Mi(e,o,t[o]);if(Oi)for(var o of Oi(t))Ds.call(t,o)&&Mi(e,o,t[o]);return e};$s({linear:As},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});/**
1
+ (function(H,K){typeof exports=="object"&&typeof module<"u"?K(exports,require("@element-plus/icons-vue"),require("vue"),require("@abi-software/svg-sprite"),require("@abi-software/map-utilities"),require("https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.3.5/+esm"),require("@abi-software/sparc-annotation"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","@element-plus/icons-vue","vue","@abi-software/svg-sprite","@abi-software/map-utilities","https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.3.5/+esm","@abi-software/sparc-annotation","pinia"],K):(H=typeof globalThis<"u"?globalThis:H||self,K(H.FlatmapVuer={},H["@element-plus/icons-vue"],H.Vue,H["@abi-software/svg-sprite"],H["@abi-software/map-utilities"],H.flatmap,H["@abi-software/sparc-annotation"],H.pinia))})(this,function(H,K,n,ya,Pt,Es,Is,ba){"use strict";function Ts(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const wa=Ts(Es),Ae=(e,t,{checkForDefaultPrevented:o=!0}={})=>r=>{const i=e==null?void 0:e(r);if(o===!1||!i)return t==null?void 0:t(r)};var Ca;const U=typeof window<"u",As=e=>typeof e=="string",va=()=>{},no=U&&((Ca=window==null?void 0:window.navigator)==null?void 0:Ca.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function oo(e){return typeof e=="function"?e():n.unref(e)}function Os(e){return e}function Lt(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function Ms(e,t=!0){n.getCurrentInstance()?n.onMounted(e):t?e():n.nextTick(e)}function Sa(e,t,o={}){const{immediate:a=!0}=o,r=n.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){r.value=!1,s()}function c(...d){s(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...d)},oo(t))}return a&&(r.value=!0,U&&c()),Lt(l),{isPending:n.readonly(r),start:c,stop:l}}function Oe(e){var t;const o=oo(e);return(t=o==null?void 0:o.$el)!=null?t:o}const un=U?window:void 0;function he(...e){let t,o,a,r;if(As(e[0])||Array.isArray(e[0])?([o,a,r]=e,t=un):[t,o,a,r]=e,!t)return va;Array.isArray(o)||(o=[o]),Array.isArray(a)||(a=[a]);const i=[],s=()=>{i.forEach(f=>f()),i.length=0},l=(f,u,p,g)=>(f.addEventListener(u,p,g),()=>f.removeEventListener(u,p,g)),c=n.watch(()=>[Oe(t),oo(r)],([f,u])=>{s(),f&&i.push(...o.flatMap(p=>a.map(g=>l(f,p,g,u))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Lt(d),d}let ka=!1;function Bs(e,t,o={}){const{window:a=un,ignore:r=[],capture:i=!0,detectIframe:s=!1}=o;if(!a)return;no&&!ka&&(ka=!0,Array.from(a.document.body.children).forEach(p=>p.addEventListener("click",va)));let l=!0;const c=p=>r.some(g=>{if(typeof g=="string")return Array.from(a.document.querySelectorAll(g)).some(h=>h===p.target||p.composedPath().includes(h));{const h=Oe(g);return h&&(p.target===h||p.composedPath().includes(h))}}),f=[he(a,"click",p=>{const g=Oe(e);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:i}),he(a,"pointerdown",p=>{const g=Oe(e);g&&(l=!p.composedPath().includes(g)&&!c(p))},{passive:!0}),s&&he(a,"blur",p=>{var g;const h=Oe(e);((g=a.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(a.document.activeElement))&&t(p)})].filter(Boolean);return()=>f.forEach(p=>p())}function Ea(e,t=!1){const o=n.ref(),a=()=>o.value=!!e();return a(),Ms(a,t),o}const Ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ta="__vueuse_ssr_handlers__";Ia[Ta]=Ia[Ta]||{};var Aa=Object.getOwnPropertySymbols,xs=Object.prototype.hasOwnProperty,Ns=Object.prototype.propertyIsEnumerable,_s=(e,t)=>{var o={};for(var a in e)xs.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&Aa)for(var a of Aa(e))t.indexOf(a)<0&&Ns.call(e,a)&&(o[a]=e[a]);return o};function Re(e,t,o={}){const a=o,{window:r=un}=a,i=_s(a,["window"]);let s;const l=Ea(()=>r&&"ResizeObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&r&&u&&(s=new ResizeObserver(t),s.observe(u,i))},{immediate:!0,flush:"post"}),f=()=>{c(),d()};return Lt(f),{isSupported:l,stop:f}}var Oa=Object.getOwnPropertySymbols,Ps=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,Vs=(e,t)=>{var o={};for(var a in e)Ps.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&Oa)for(var a of Oa(e))t.indexOf(a)<0&&Ls.call(e,a)&&(o[a]=e[a]);return o};function Rs(e,t,o={}){const a=o,{window:r=un}=a,i=Vs(a,["window"]);let s;const l=Ea(()=>r&&"MutationObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&r&&u&&(s=new MutationObserver(t),s.observe(u,i))},{immediate:!0}),f=()=>{c(),d()};return Lt(f),{isSupported:l,stop:f}}var Ma;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ma||(Ma={}));var Fs=Object.defineProperty,Ba=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,$s=Object.prototype.propertyIsEnumerable,xa=(e,t,o)=>t in e?Fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,zs=(e,t)=>{for(var o in t||(t={}))Ds.call(t,o)&&xa(e,o,t[o]);if(Ba)for(var o of Ba(t))$s.call(t,o)&&xa(e,o,t[o]);return e};zs({linear:Os},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});/**
2
2
  * @vue/shared v3.5.13
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Je=()=>{},zs=Object.prototype.hasOwnProperty,xi=(e,t)=>zs.call(e,t),ee=Array.isArray,Q=e=>typeof e=="function",me=e=>typeof e=="string",te=e=>e!==null&&typeof e=="object",js=Object.prototype.toString,Hs=e=>js.call(e),oo=e=>Hs(e).slice(8,-1),Bi=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Ks=/-(\w)/g,Us=Bi(e=>e.replace(Ks,(t,o)=>o?o.toUpperCase():"")),Ws=/\B([A-Z])/g,qs=Bi(e=>e.replace(Ws,"-$1").toLowerCase());var Ni=typeof global=="object"&&global&&global.Object===Object&&global,Gs=typeof self=="object"&&self&&self.Object===Object&&self,we=Ni||Gs||Function("return this")(),Ce=we.Symbol,Pi=Object.prototype,Js=Pi.hasOwnProperty,Ys=Pi.toString,Lt=Ce?Ce.toStringTag:void 0;function Zs(e){var t=Js.call(e,Lt),o=e[Lt];try{e[Lt]=void 0;var i=!0}catch{}var a=Ys.call(e);return i&&(t?e[Lt]=o:delete e[Lt]),a}var Qs=Object.prototype,Xs=Qs.toString;function el(e){return Xs.call(e)}var tl="[object Null]",nl="[object Undefined]",_i=Ce?Ce.toStringTag:void 0;function ft(e){return e==null?e===void 0?nl:tl:_i&&_i in Object(e)?Zs(e):el(e)}function ut(e){return e!=null&&typeof e=="object"}var ol="[object Symbol]";function pn(e){return typeof e=="symbol"||ut(e)&&ft(e)==ol}function il(e,t){for(var o=-1,i=e==null?0:e.length,a=Array(i);++o<i;)a[o]=t(e[o],o,e);return a}var ge=Array.isArray,al=1/0,Li=Ce?Ce.prototype:void 0,Vi=Li?Li.toString:void 0;function Ri(e){if(typeof e=="string")return e;if(ge(e))return il(e,Ri)+"";if(pn(e))return Vi?Vi.call(e):"";var t=e+"";return t=="0"&&1/e==-al?"-0":t}var rl=/\s/;function sl(e){for(var t=e.length;t--&&rl.test(e.charAt(t)););return t}var ll=/^\s+/;function cl(e){return e&&e.slice(0,sl(e)+1).replace(ll,"")}function Fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fi=NaN,dl=/^[-+]0x[0-9a-f]+$/i,fl=/^0b[01]+$/i,ul=/^0o[0-7]+$/i,pl=parseInt;function Di(e){if(typeof e=="number")return e;if(pn(e))return Fi;if(Fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=cl(e);var o=fl.test(e);return o||ul.test(e)?pl(e.slice(2),o?2:8):dl.test(e)?Fi:+e}function $i(e){return e}var hl="[object AsyncFunction]",ml="[object Function]",gl="[object GeneratorFunction]",yl="[object Proxy]";function zi(e){if(!Fe(e))return!1;var t=ft(e);return t==ml||t==gl||t==hl||t==yl}var io=we["__core-js_shared__"],ji=function(){var e=/[^.]+$/.exec(io&&io.keys&&io.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bl(e){return!!ji&&ji in e}var wl=Function.prototype,Cl=wl.toString;function Ye(e){if(e!=null){try{return Cl.call(e)}catch{}try{return e+""}catch{}}return""}var vl=/[\\^$.*+?()[\]{}|]/g,Sl=/^\[object .+?Constructor\]$/,kl=Function.prototype,El=Object.prototype,Il=kl.toString,Tl=El.hasOwnProperty,Al=RegExp("^"+Il.call(Tl).replace(vl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ol(e){if(!Fe(e)||bl(e))return!1;var t=zi(e)?Al:Sl;return t.test(Ye(e))}function Ml(e,t){return e==null?void 0:e[t]}function Ze(e,t){var o=Ml(e,t);return Ol(o)?o:void 0}var ao=Ze(we,"WeakMap");function xl(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Bl=800,Nl=16,Pl=Date.now;function _l(e){var t=0,o=0;return function(){var i=Pl(),a=Nl-(i-o);if(o=i,a>0){if(++t>=Bl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ll(e){return function(){return e}}var hn=function(){try{var e=Ze(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Vl=hn?function(e,t){return hn(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:$i,Rl=_l(Vl);function Fl(e,t,o,i){e.length;for(var a=o+1;a--;)if(t(e[a],a,e))return a;return-1}var Dl=9007199254740991,$l=/^(?:0|[1-9]\d*)$/;function ro(e,t){var o=typeof e;return t=t??Dl,!!t&&(o=="number"||o!="symbol"&&$l.test(e))&&e>-1&&e%1==0&&e<t}function zl(e,t,o){t=="__proto__"&&hn?hn(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function so(e,t){return e===t||e!==e&&t!==t}var jl=Object.prototype,Hl=jl.hasOwnProperty;function Kl(e,t,o){var i=e[t];(!(Hl.call(e,t)&&so(i,o))||o===void 0&&!(t in e))&&zl(e,t,o)}var Hi=Math.max;function Ul(e,t,o){return t=Hi(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=Hi(i.length-t,0),s=Array(r);++a<r;)s[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=o(s),xl(e,this,l)}}var Wl=9007199254740991;function lo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wl}function ql(e){return e!=null&&lo(e.length)&&!zi(e)}var Gl=Object.prototype;function Jl(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Gl;return e===o}function Yl(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}var Zl="[object Arguments]";function Ki(e){return ut(e)&&ft(e)==Zl}var Ui=Object.prototype,Ql=Ui.hasOwnProperty,Xl=Ui.propertyIsEnumerable,co=Ki(function(){return arguments}())?Ki:function(e){return ut(e)&&Ql.call(e,"callee")&&!Xl.call(e,"callee")};function ec(){return!1}var Wi=typeof H=="object"&&H&&!H.nodeType&&H,qi=Wi&&typeof module=="object"&&module&&!module.nodeType&&module,tc=qi&&qi.exports===Wi,Gi=tc?we.Buffer:void 0,nc=Gi?Gi.isBuffer:void 0,fo=nc||ec,oc="[object Arguments]",ic="[object Array]",ac="[object Boolean]",rc="[object Date]",sc="[object Error]",lc="[object Function]",cc="[object Map]",dc="[object Number]",fc="[object Object]",uc="[object RegExp]",pc="[object Set]",hc="[object String]",mc="[object WeakMap]",gc="[object ArrayBuffer]",yc="[object DataView]",bc="[object Float32Array]",wc="[object Float64Array]",Cc="[object Int8Array]",vc="[object Int16Array]",Sc="[object Int32Array]",kc="[object Uint8Array]",Ec="[object Uint8ClampedArray]",Ic="[object Uint16Array]",Tc="[object Uint32Array]",j={};j[bc]=j[wc]=j[Cc]=j[vc]=j[Sc]=j[kc]=j[Ec]=j[Ic]=j[Tc]=!0,j[oc]=j[ic]=j[gc]=j[ac]=j[yc]=j[rc]=j[sc]=j[lc]=j[cc]=j[dc]=j[fc]=j[uc]=j[pc]=j[hc]=j[mc]=!1;function Ac(e){return ut(e)&&lo(e.length)&&!!j[ft(e)]}function Oc(e){return function(t){return e(t)}}var Ji=typeof H=="object"&&H&&!H.nodeType&&H,Vt=Ji&&typeof module=="object"&&module&&!module.nodeType&&module,Mc=Vt&&Vt.exports===Ji,uo=Mc&&Ni.process,Yi=function(){try{var e=Vt&&Vt.require&&Vt.require("util").types;return e||uo&&uo.binding&&uo.binding("util")}catch{}}(),Zi=Yi&&Yi.isTypedArray,Qi=Zi?Oc(Zi):Ac,xc=Object.prototype,Bc=xc.hasOwnProperty;function Nc(e,t){var o=ge(e),i=!o&&co(e),a=!o&&!i&&fo(e),r=!o&&!i&&!a&&Qi(e),s=o||i||a||r,l=s?Yl(e.length,String):[],c=l.length;for(var d in e)Bc.call(e,d)&&!(s&&(d=="length"||a&&(d=="offset"||d=="parent")||r&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||ro(d,c)))&&l.push(d);return l}function Pc(e,t){return function(o){return e(t(o))}}var _c=Pc(Object.keys,Object),Lc=Object.prototype,Vc=Lc.hasOwnProperty;function Rc(e){if(!Jl(e))return _c(e);var t=[];for(var o in Object(e))Vc.call(e,o)&&o!="constructor"&&t.push(o);return t}function Xi(e){return ql(e)?Nc(e):Rc(e)}var Fc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dc=/^\w*$/;function po(e,t){if(ge(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||pn(e)?!0:Dc.test(e)||!Fc.test(e)||t!=null&&e in Object(t)}var Rt=Ze(Object,"create");function $c(){this.__data__=Rt?Rt(null):{},this.size=0}function zc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jc="__lodash_hash_undefined__",Hc=Object.prototype,Kc=Hc.hasOwnProperty;function Uc(e){var t=this.__data__;if(Rt){var o=t[e];return o===jc?void 0:o}return Kc.call(t,e)?t[e]:void 0}var Wc=Object.prototype,qc=Wc.hasOwnProperty;function Gc(e){var t=this.__data__;return Rt?t[e]!==void 0:qc.call(t,e)}var Jc="__lodash_hash_undefined__";function Yc(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Rt&&t===void 0?Jc:t,this}function Qe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Qe.prototype.clear=$c,Qe.prototype.delete=zc,Qe.prototype.get=Uc,Qe.prototype.has=Gc,Qe.prototype.set=Yc;function Zc(){this.__data__=[],this.size=0}function mn(e,t){for(var o=e.length;o--;)if(so(e[o][0],t))return o;return-1}var Qc=Array.prototype,Xc=Qc.splice;function ed(e){var t=this.__data__,o=mn(t,e);if(o<0)return!1;var i=t.length-1;return o==i?t.pop():Xc.call(t,o,1),--this.size,!0}function td(e){var t=this.__data__,o=mn(t,e);return o<0?void 0:t[o][1]}function nd(e){return mn(this.__data__,e)>-1}function od(e,t){var o=this.__data__,i=mn(o,e);return i<0?(++this.size,o.push([e,t])):o[i][1]=t,this}function Me(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Me.prototype.clear=Zc,Me.prototype.delete=ed,Me.prototype.get=td,Me.prototype.has=nd,Me.prototype.set=od;var Ft=Ze(we,"Map");function id(){this.size=0,this.__data__={hash:new Qe,map:new(Ft||Me),string:new Qe}}function ad(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gn(e,t){var o=e.__data__;return ad(t)?o[typeof t=="string"?"string":"hash"]:o.map}function rd(e){var t=gn(this,e).delete(e);return this.size-=t?1:0,t}function sd(e){return gn(this,e).get(e)}function ld(e){return gn(this,e).has(e)}function cd(e,t){var o=gn(this,e),i=o.size;return o.set(e,t),this.size+=o.size==i?0:1,this}function xe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}xe.prototype.clear=id,xe.prototype.delete=rd,xe.prototype.get=sd,xe.prototype.has=ld,xe.prototype.set=cd;var dd="Expected a function";function ho(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dd);var o=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=o.cache;if(r.has(a))return r.get(a);var s=e.apply(this,i);return o.cache=r.set(a,s)||r,s};return o.cache=new(ho.Cache||xe),o}ho.Cache=xe;var fd=500;function ud(e){var t=ho(e,function(i){return o.size===fd&&o.clear(),i}),o=t.cache;return t}var pd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hd=/\\(\\)?/g,md=ud(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(pd,function(o,i,a,r){t.push(a?r.replace(hd,"$1"):i||o)}),t});function gd(e){return e==null?"":Ri(e)}function yn(e,t){return ge(e)?e:po(e,t)?[e]:md(gd(e))}var yd=1/0;function Dt(e){if(typeof e=="string"||pn(e))return e;var t=e+"";return t=="0"&&1/e==-yd?"-0":t}function mo(e,t){t=yn(t,e);for(var o=0,i=t.length;e!=null&&o<i;)e=e[Dt(t[o++])];return o&&o==i?e:void 0}function Be(e,t,o){var i=e==null?void 0:mo(e,t);return i===void 0?o:i}function ea(e,t){for(var o=-1,i=t.length,a=e.length;++o<i;)e[a+o]=t[o];return e}var ta=Ce?Ce.isConcatSpreadable:void 0;function bd(e){return ge(e)||co(e)||!!(ta&&e&&e[ta])}function wd(e,t,o,i,a){var r=-1,s=e.length;for(o||(o=bd),a||(a=[]);++r<s;){var l=e[r];o(l)?ea(a,l):a[a.length]=l}return a}function Cd(e){var t=e==null?0:e.length;return t?wd(e):[]}function vd(e){return Rl(Ul(e,void 0,Cd),e+"")}function De(){if(!arguments.length)return[];var e=arguments[0];return ge(e)?e:[e]}function Sd(){this.__data__=new Me,this.size=0}function kd(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Ed(e){return this.__data__.get(e)}function Id(e){return this.__data__.has(e)}var Td=200;function Ad(e,t){var o=this.__data__;if(o instanceof Me){var i=o.__data__;if(!Ft||i.length<Td-1)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new xe(i)}return o.set(e,t),this.size=o.size,this}function Ne(e){var t=this.__data__=new Me(e);this.size=t.size}Ne.prototype.clear=Sd,Ne.prototype.delete=kd,Ne.prototype.get=Ed,Ne.prototype.has=Id,Ne.prototype.set=Ad;function Od(e,t){for(var o=-1,i=e==null?0:e.length,a=0,r=[];++o<i;){var s=e[o];t(s,o,e)&&(r[a++]=s)}return r}function Md(){return[]}var xd=Object.prototype,Bd=xd.propertyIsEnumerable,na=Object.getOwnPropertySymbols,Nd=na?function(e){return e==null?[]:(e=Object(e),Od(na(e),function(t){return Bd.call(e,t)}))}:Md;function Pd(e,t,o){var i=t(e);return ge(e)?i:ea(i,o(e))}function oa(e){return Pd(e,Xi,Nd)}var go=Ze(we,"DataView"),yo=Ze(we,"Promise"),bo=Ze(we,"Set"),ia="[object Map]",_d="[object Object]",aa="[object Promise]",ra="[object Set]",sa="[object WeakMap]",la="[object DataView]",Ld=Ye(go),Vd=Ye(Ft),Rd=Ye(yo),Fd=Ye(bo),Dd=Ye(ao),$e=ft;(go&&$e(new go(new ArrayBuffer(1)))!=la||Ft&&$e(new Ft)!=ia||yo&&$e(yo.resolve())!=aa||bo&&$e(new bo)!=ra||ao&&$e(new ao)!=sa)&&($e=function(e){var t=ft(e),o=t==_d?e.constructor:void 0,i=o?Ye(o):"";if(i)switch(i){case Ld:return la;case Vd:return ia;case Rd:return aa;case Fd:return ra;case Dd:return sa}return t});var ca=we.Uint8Array,$d="__lodash_hash_undefined__";function zd(e){return this.__data__.set(e,$d),this}function jd(e){return this.__data__.has(e)}function bn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new xe;++t<o;)this.add(e[t])}bn.prototype.add=bn.prototype.push=zd,bn.prototype.has=jd;function Hd(e,t){for(var o=-1,i=e==null?0:e.length;++o<i;)if(t(e[o],o,e))return!0;return!1}function Kd(e,t){return e.has(t)}var Ud=1,Wd=2;function da(e,t,o,i,a,r){var s=o&Ud,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=r.get(e),f=r.get(t);if(d&&f)return d==t&&f==e;var u=-1,p=!0,g=o&Wd?new bn:void 0;for(r.set(e,t),r.set(t,e);++u<l;){var h=e[u],m=t[u];if(i)var y=s?i(m,h,u,t,e,r):i(h,m,u,e,t,r);if(y!==void 0){if(y)continue;p=!1;break}if(g){if(!Hd(t,function(b,w){if(!Kd(g,w)&&(h===b||a(h,b,o,i,r)))return g.push(w)})){p=!1;break}}else if(!(h===m||a(h,m,o,i,r))){p=!1;break}}return r.delete(e),r.delete(t),p}function qd(e){var t=-1,o=Array(e.size);return e.forEach(function(i,a){o[++t]=[a,i]}),o}function Gd(e){var t=-1,o=Array(e.size);return e.forEach(function(i){o[++t]=i}),o}var Jd=1,Yd=2,Zd="[object Boolean]",Qd="[object Date]",Xd="[object Error]",ef="[object Map]",tf="[object Number]",nf="[object RegExp]",of="[object Set]",af="[object String]",rf="[object Symbol]",sf="[object ArrayBuffer]",lf="[object DataView]",fa=Ce?Ce.prototype:void 0,wo=fa?fa.valueOf:void 0;function cf(e,t,o,i,a,r,s){switch(o){case lf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sf:return!(e.byteLength!=t.byteLength||!r(new ca(e),new ca(t)));case Zd:case Qd:case tf:return so(+e,+t);case Xd:return e.name==t.name&&e.message==t.message;case nf:case af:return e==t+"";case ef:var l=qd;case of:var c=i&Jd;if(l||(l=Gd),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;i|=Yd,s.set(e,t);var f=da(l(e),l(t),i,a,r,s);return s.delete(e),f;case rf:if(wo)return wo.call(e)==wo.call(t)}return!1}var df=1,ff=Object.prototype,uf=ff.hasOwnProperty;function pf(e,t,o,i,a,r){var s=o&df,l=oa(e),c=l.length,d=oa(t),f=d.length;if(c!=f&&!s)return!1;for(var u=c;u--;){var p=l[u];if(!(s?p in t:uf.call(t,p)))return!1}var g=r.get(e),h=r.get(t);if(g&&h)return g==t&&h==e;var m=!0;r.set(e,t),r.set(t,e);for(var y=s;++u<c;){p=l[u];var b=e[p],w=t[p];if(i)var T=s?i(w,b,p,t,e,r):i(b,w,p,e,t,r);if(!(T===void 0?b===w||a(b,w,o,i,r):T)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var k=e.constructor,v=t.constructor;k!=v&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof v=="function"&&v instanceof v)&&(m=!1)}return r.delete(e),r.delete(t),m}var hf=1,ua="[object Arguments]",pa="[object Array]",wn="[object Object]",mf=Object.prototype,ha=mf.hasOwnProperty;function gf(e,t,o,i,a,r){var s=ge(e),l=ge(t),c=s?pa:$e(e),d=l?pa:$e(t);c=c==ua?wn:c,d=d==ua?wn:d;var f=c==wn,u=d==wn,p=c==d;if(p&&fo(e)){if(!fo(t))return!1;s=!0,f=!1}if(p&&!f)return r||(r=new Ne),s||Qi(e)?da(e,t,o,i,a,r):cf(e,t,c,o,i,a,r);if(!(o&hf)){var g=f&&ha.call(e,"__wrapped__"),h=u&&ha.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,y=h?t.value():t;return r||(r=new Ne),a(m,y,o,i,r)}}return p?(r||(r=new Ne),pf(e,t,o,i,a,r)):!1}function Cn(e,t,o,i,a){return e===t?!0:e==null||t==null||!ut(e)&&!ut(t)?e!==e&&t!==t:gf(e,t,o,i,Cn,a)}var yf=1,bf=2;function wf(e,t,o,i){var a=o.length,r=a;if(e==null)return!r;for(e=Object(e);a--;){var s=o[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<r;){s=o[a];var l=s[0],c=e[l],d=s[1];if(s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Ne,u;if(!(u===void 0?Cn(d,c,yf|bf,i,f):u))return!1}}return!0}function ma(e){return e===e&&!Fe(e)}function Cf(e){for(var t=Xi(e),o=t.length;o--;){var i=t[o],a=e[i];t[o]=[i,a,ma(a)]}return t}function ga(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function vf(e){var t=Cf(e);return t.length==1&&t[0][2]?ga(t[0][0],t[0][1]):function(o){return o===e||wf(o,e,t)}}function Sf(e,t){return e!=null&&t in Object(e)}function kf(e,t,o){t=yn(t,e);for(var i=-1,a=t.length,r=!1;++i<a;){var s=Dt(t[i]);if(!(r=e!=null&&o(e,s)))break;e=e[s]}return r||++i!=a?r:(a=e==null?0:e.length,!!a&&lo(a)&&ro(s,a)&&(ge(e)||co(e)))}function ya(e,t){return e!=null&&kf(e,t,Sf)}var Ef=1,If=2;function Tf(e,t){return po(e)&&ma(t)?ga(Dt(e),t):function(o){var i=Be(o,e);return i===void 0&&i===t?ya(o,e):Cn(t,i,Ef|If)}}function Af(e){return function(t){return t==null?void 0:t[e]}}function Of(e){return function(t){return mo(t,e)}}function Mf(e){return po(e)?Af(Dt(e)):Of(e)}function xf(e){return typeof e=="function"?e:e==null?$i:typeof e=="object"?ge(e)?Tf(e[0],e[1]):vf(e):Mf(e)}var Co=function(){return we.Date.now()},Bf="Expected a function",Nf=Math.max,Pf=Math.min;function _f(e,t,o){var i,a,r,s,l,c,d=0,f=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Bf);t=Di(t)||0,Fe(o)&&(f=!!o.leading,u="maxWait"in o,r=u?Nf(Di(o.maxWait)||0,t):r,p="trailing"in o?!!o.trailing:p);function g(E){var I=i,M=a;return i=a=void 0,d=E,s=e.apply(M,I),s}function h(E){return d=E,l=setTimeout(b,t),f?g(E):s}function m(E){var I=E-c,M=E-d,x=t-I;return u?Pf(x,r-M):x}function y(E){var I=E-c,M=E-d;return c===void 0||I>=t||I<0||u&&M>=r}function b(){var E=Co();if(y(E))return w(E);l=setTimeout(b,m(E))}function w(E){return l=void 0,p&&i?g(E):(i=a=void 0,s)}function T(){l!==void 0&&clearTimeout(l),d=0,i=c=a=l=void 0}function k(){return l===void 0?s:w(Co())}function v(){var E=Co(),I=y(E);if(i=arguments,a=this,c=E,I){if(l===void 0)return h(c);if(u)return clearTimeout(l),l=setTimeout(b,t),g(c)}return l===void 0&&(l=setTimeout(b,t)),s}return v.cancel=T,v.flush=k,v}function Lf(e,t,o){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return Fl(e,xf(t),a)}function vo(e){for(var t=-1,o=e==null?0:e.length,i={};++t<o;){var a=e[t];i[a[0]]=a[1]}return i}function vn(e,t){return Cn(e,t)}function Sn(e){return e==null}function ba(e){return e===void 0}function Vf(e,t,o,i){if(!Fe(e))return e;t=yn(t,e);for(var a=-1,r=t.length,s=r-1,l=e;l!=null&&++a<r;){var c=Dt(t[a]),d=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var f=l[c];d=void 0,d===void 0&&(d=Fe(f)?f:ro(t[a+1])?[]:{})}Kl(l,c,d),l=l[c]}return e}function Rf(e,t,o){for(var i=-1,a=t.length,r={};++i<a;){var s=t[i],l=mo(e,s);o(l,s)&&Vf(r,yn(s,e),l)}return r}function Ff(e,t){return Rf(e,t,function(o,i){return ya(e,i)})}var wa=vd(function(e,t){return e==null?{}:Ff(e,t)});const ze=e=>e===void 0,Pe=e=>typeof e=="boolean",G=e=>typeof e=="number",Xe=e=>typeof Element>"u"?!1:e instanceof Element,$t=e=>Sn(e),Df=e=>me(e)?!Number.isNaN(Number(e)):!1,$f=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ca=e=>Object.keys(e);class va extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Sa(e,t){throw new va(`[${e}] ${t}`)}function ne(e,t){if(process.env.NODE_ENV!=="production"){const o=me(e)?new va(`[${e}] ${t}`):e;console.warn(o)}}const zf="utils/dom/style",ka=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ea=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},So=(e,t)=>{!e||!t.trim()||e.classList.add(...ka(t))},zt=(e,t)=>{!e||!t.trim()||e.classList.remove(...ka(t))},pt=(e,t)=>{var o;if(!U||!e||!t)return"";let i=Us(t);i==="float"&&(i="cssFloat");try{const a=e.style[i];if(a)return a;const r=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return r?r[i]:""}catch{return e.style[i]}};function et(e,t="px"){if(!e)return"";if(G(e)||Df(e))return`${e}${t}`;if(me(e))return e;ne(zf,"binding value must be a string or number")}let kn;const jf=e=>{var t;if(!U)return 0;if(kn!==void 0)return kn;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const i=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const r=a.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),kn=i-r,kn};function Hf(e,t){if(!U)return;if(!t){e.scrollTop=0;return}const o=[];let i=t.offsetParent;for(;i!==null&&e!==i&&e.contains(i);)o.push(i),i=i.offsetParent;const a=t.offsetTop+o.reduce((c,d)=>c+d.offsetTop,0),r=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;a<s?e.scrollTop=a:r>l&&(e.scrollTop=r-e.clientHeight)}const Ia="__epPropKey",N=e=>e,Kf=e=>te(e)&&!!e[Ia],En=(e,t)=>{if(!te(e)||Kf(e))return e;const{values:o,required:i,default:a,type:r,validator:s}=e,c={type:r,required:!!i,validator:o||s?d=>{let f=!1,u=[];if(o&&(u=Array.from(o),xi(e,"default")&&u.push(a),f||(f=u.includes(d))),s&&(f||(f=s(d))),!f&&u.length>0){const p=[...new Set(u)].map(g=>JSON.stringify(g)).join(", ");n.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(d)}.`)}return f}:void 0,[Ia]:!0};return xi(e,"default")&&(c.default=a),c},V=e=>vo(Object.entries(e).map(([t,o])=>[t,En(o,t)])),ht=N([String,Object,Function]),Uf={Close:K.Close},Wf={validating:K.Loading,success:K.CircleCheck,error:K.CircleClose},oe=(e,t)=>{if(e.install=o=>{for(const i of[e,...Object.values(t??{})])o.component(i.name,i)},t)for(const[o,i]of Object.entries(t))e[o]=i;return e},qf=(e,t)=>(e.install=o=>{o.directive(t,e)},e),tt=e=>(e.install=Je,e),Gf=(...e)=>t=>{e.forEach(o=>{Q(o)?o(t):o.value=t})},jt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},X="update:modelValue",ko="change",Ta=["","default","small","large"];var In=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(In||{});const Jf=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Ht=e=>e,mt=({from:e,replacement:t,scope:o,version:i,ref:a,type:r="API"},s)=>{n.watch(()=>n.unref(s),l=>{l&&ne(o,`[${r}] ${e} is about to be deprecated in version ${i}, please use ${t} instead.
6
- For more detail, please visit: ${a}
7
- `)},{immediate:!0})},Yf=(e,t,o,i)=>{let a={offsetX:0,offsetY:0};const r=d=>{const f=d.clientX,u=d.clientY,{offsetX:p,offsetY:g}=a,h=e.value.getBoundingClientRect(),m=h.left,y=h.top,b=h.width,w=h.height,T=document.documentElement.clientWidth,k=document.documentElement.clientHeight,v=-m+p,E=-y+g,I=T-m-b+p,M=k-y-w+g,x=S=>{let P=p+S.clientX-f,L=g+S.clientY-u;i!=null&&i.value||(P=Math.min(Math.max(P,v),I),L=Math.min(Math.max(L,E),M)),a={offsetX:P,offsetY:L},e.value&&(e.value.style.transform=`translate(${et(P)}, ${et(L)})`)},B=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",B)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)},c=()=>{a={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return n.onMounted(()=>{n.watchEffect(()=>{o.value?s():l()})}),n.onBeforeUnmount(()=>{l()}),{resetPosition:c}};var Zf={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Qf=e=>(t,o)=>Xf(t,o,n.unref(e)),Xf=(e,t,o)=>Be(o,e,e).replace(/\{(\w+)\}/g,(i,a)=>{var r;return`${(r=t==null?void 0:t[a])!=null?r:`{${a}}`}`}),eu=e=>{const t=n.computed(()=>n.unref(e).name),o=n.isRef(e)?e:n.ref(e);return{lang:t,locale:o,t:Qf(e)}},Aa=Symbol("localeContextKey"),Eo=e=>{const t=e||n.inject(Aa,n.ref());return eu(n.computed(()=>t.value||Zf))},Kt="el",tu="is-",nt=(e,t,o,i,a)=>{let r=`${e}-${t}`;return o&&(r+=`-${o}`),i&&(r+=`__${i}`),a&&(r+=`--${a}`),r},Oa=Symbol("namespaceContextKey"),Io=e=>{const t=e||(n.getCurrentInstance()?n.inject(Oa,n.ref(Kt)):n.ref(Kt));return n.computed(()=>n.unref(t)||Kt)},D=(e,t)=>{const o=Io(t);return{namespace:o,b:(m="")=>nt(o.value,e,m,"",""),e:m=>m?nt(o.value,e,"",m,""):"",m:m=>m?nt(o.value,e,"","",m):"",be:(m,y)=>m&&y?nt(o.value,e,m,y,""):"",em:(m,y)=>m&&y?nt(o.value,e,"",m,y):"",bm:(m,y)=>m&&y?nt(o.value,e,m,"",y):"",bem:(m,y,b)=>m&&y&&b?nt(o.value,e,m,y,b):"",is:(m,...y)=>{const b=y.length>=1?y[0]:!0;return m&&b?`${tu}${m}`:""},cssVar:m=>{const y={};for(const b in m)m[b]&&(y[`--${o.value}-${b}`]=m[b]);return y},cssVarName:m=>`--${o.value}-${m}`,cssVarBlock:m=>{const y={};for(const b in m)m[b]&&(y[`--${o.value}-${e}-${b}`]=m[b]);return y},cssVarBlockName:m=>`--${o.value}-${e}-${m}`}},nu=(e,t={})=>{n.isRef(e)||Sa("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||D("popup"),i=n.computed(()=>o.bm("parent","hidden"));if(!U||Ea(document.body,i.value))return;let a=0,r=!1,s="0";const l=()=>{setTimeout(()=>{zt(document==null?void 0:document.body,i.value),r&&document&&(document.body.style.width=s)},200)};n.watch(e,c=>{if(!c){l();return}r=!Ea(document.body,i.value),r&&(s=document.body.style.width),a=jf(o.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=pt(document.body,"overflowY");a>0&&(d||f==="scroll")&&r&&(document.body.style.width=`calc(100% - ${a}px)`),So(document.body,i.value)}),n.onScopeDispose(()=>l())},ou=En({type:N(Boolean),default:null}),iu=En({type:N(Function)}),au=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,i=[t],a={[e]:ou,[o]:iu};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:d,onShow:f,onHide:u})=>{const p=n.getCurrentInstance(),{emit:g}=p,h=p.props,m=n.computed(()=>Q(h[o])),y=n.computed(()=>h[e]===null),b=I=>{s.value!==!0&&(s.value=!0,l&&(l.value=I),Q(f)&&f(I))},w=I=>{s.value!==!1&&(s.value=!1,l&&(l.value=I),Q(u)&&u(I))},T=I=>{if(h.disabled===!0||Q(d)&&!d())return;const M=m.value&&U;M&&g(t,!0),(y.value||!M)&&b(I)},k=I=>{if(h.disabled===!0||!U)return;const M=m.value&&U;M&&g(t,!1),(y.value||!M)&&w(I)},v=I=>{Pe(I)&&(h.disabled&&I?m.value&&g(t,!1):s.value!==I&&(I?b():w()))},E=()=>{s.value?k():T()};return n.watch(()=>h[e],v),c&&p.appContext.config.globalProperties.$route!==void 0&&n.watch(()=>({...p.proxy.$route}),()=>{c.value&&s.value&&k()}),n.onMounted(()=>{v(h[e])}),{hide:k,show:T,toggle:E,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:i}},Ma=e=>{const t=n.getCurrentInstance();return n.computed(()=>{var o,i;return(i=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:i[e]})};var ie="top",de="bottom",fe="right",ae="left",To="auto",Ut=[ie,de,fe,ae],gt="start",Wt="end",ru="clippingParents",xa="viewport",qt="popper",su="reference",Ba=Ut.reduce(function(e,t){return e.concat([t+"-"+gt,t+"-"+Wt])},[]),Tn=[].concat(Ut,[To]).reduce(function(e,t){return e.concat([t,t+"-"+gt,t+"-"+Wt])},[]),lu="beforeRead",cu="read",du="afterRead",fu="beforeMain",uu="main",pu="afterMain",hu="beforeWrite",mu="write",gu="afterWrite",yu=[lu,cu,du,fu,uu,pu,hu,mu,gu];function ve(e){return e?(e.nodeName||"").toLowerCase():null}function ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yt(e){var t=ye(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ao(e){if(typeof ShadowRoot>"u")return!1;var t=ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bu(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var i=t.styles[o]||{},a=t.attributes[o]||{},r=t.elements[o];!ue(r)||!ve(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(s){var l=a[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function wu(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],r=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:o[i]),l=s.reduce(function(c,d){return c[d]="",c},{});!ue(a)||!ve(a)||(Object.assign(a.style,l),Object.keys(r).forEach(function(c){a.removeAttribute(c)}))})}}var Na={name:"applyStyles",enabled:!0,phase:"write",fn:bu,effect:wu,requires:["computeStyles"]};function Se(e){return e.split("-")[0]}var ot=Math.max,An=Math.min,bt=Math.round;function wt(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),i=1,a=1;if(ue(e)&&t){var r=e.offsetHeight,s=e.offsetWidth;s>0&&(i=bt(o.width)/s||1),r>0&&(a=bt(o.height)/r||1)}return{width:o.width/i,height:o.height/a,top:o.top/a,right:o.right/i,bottom:o.bottom/a,left:o.left/i,x:o.left/i,y:o.top/a}}function Oo(e){var t=wt(e),o=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:i}}function Pa(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&Ao(o)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _e(e){return ye(e).getComputedStyle(e)}function Cu(e){return["table","td","th"].indexOf(ve(e))>=0}function je(e){return((yt(e)?e.ownerDocument:e.document)||window.document).documentElement}function On(e){return ve(e)==="html"?e:e.assignedSlot||e.parentNode||(Ao(e)?e.host:null)||je(e)}function _a(e){return!ue(e)||_e(e).position==="fixed"?null:e.offsetParent}function vu(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&ue(e)){var i=_e(e);if(i.position==="fixed")return null}var a=On(e);for(Ao(a)&&(a=a.host);ue(a)&&["html","body"].indexOf(ve(a))<0;){var r=_e(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null}function Gt(e){for(var t=ye(e),o=_a(e);o&&Cu(o)&&_e(o).position==="static";)o=_a(o);return o&&(ve(o)==="html"||ve(o)==="body"&&_e(o).position==="static")?t:o||vu(e)||t}function Mo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jt(e,t,o){return ot(e,An(t,o))}function Su(e,t,o){var i=Jt(e,t,o);return i>o?o:i}function La(){return{top:0,right:0,bottom:0,left:0}}function Va(e){return Object.assign({},La(),e)}function Ra(e,t){return t.reduce(function(o,i){return o[i]=e,o},{})}var ku=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Va(typeof e!="number"?e:Ra(e,Ut))};function Eu(e){var t,o=e.state,i=e.name,a=e.options,r=o.elements.arrow,s=o.modifiersData.popperOffsets,l=Se(o.placement),c=Mo(l),d=[ae,fe].indexOf(l)>=0,f=d?"height":"width";if(!(!r||!s)){var u=ku(a.padding,o),p=Oo(r),g=c==="y"?ie:ae,h=c==="y"?de:fe,m=o.rects.reference[f]+o.rects.reference[c]-s[c]-o.rects.popper[f],y=s[c]-o.rects.reference[c],b=Gt(r),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,T=m/2-y/2,k=u[g],v=w-p[f]-u[h],E=w/2-p[f]/2+T,I=Jt(k,E,v),M=c;o.modifiersData[i]=(t={},t[M]=I,t.centerOffset=I-E,t)}}function Iu(e){var t=e.state,o=e.options,i=o.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Pa(t.elements.popper,a)||(t.elements.arrow=a))}var Tu={name:"arrow",enabled:!0,phase:"main",fn:Eu,effect:Iu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ct(e){return e.split("-")[1]}var Au={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ou(e){var t=e.x,o=e.y,i=window,a=i.devicePixelRatio||1;return{x:bt(t*a)/a||0,y:bt(o*a)/a||0}}function Fa(e){var t,o=e.popper,i=e.popperRect,a=e.placement,r=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,u=e.isFixed,p=s.x,g=p===void 0?0:p,h=s.y,m=h===void 0?0:h,y=typeof f=="function"?f({x:g,y:m}):{x:g,y:m};g=y.x,m=y.y;var b=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),T=ae,k=ie,v=window;if(d){var E=Gt(o),I="clientHeight",M="clientWidth";if(E===ye(o)&&(E=je(o),_e(E).position!=="static"&&l==="absolute"&&(I="scrollHeight",M="scrollWidth")),E=E,a===ie||(a===ae||a===fe)&&r===Wt){k=de;var x=u&&E===v&&v.visualViewport?v.visualViewport.height:E[I];m-=x-i.height,m*=c?1:-1}if(a===ae||(a===ie||a===de)&&r===Wt){T=fe;var B=u&&E===v&&v.visualViewport?v.visualViewport.width:E[M];g-=B-i.width,g*=c?1:-1}}var S=Object.assign({position:l},d&&Au),P=f===!0?Ou({x:g,y:m}):{x:g,y:m};if(g=P.x,m=P.y,c){var L;return Object.assign({},S,(L={},L[k]=w?"0":"",L[T]=b?"0":"",L.transform=(v.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L))}return Object.assign({},S,(t={},t[k]=w?m+"px":"",t[T]=b?g+"px":"",t.transform="",t))}function Mu(e){var t=e.state,o=e.options,i=o.gpuAcceleration,a=i===void 0?!0:i,r=o.adaptive,s=r===void 0?!0:r,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:Se(t.placement),variation:Ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fa(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fa(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Da={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Mu,data:{}},Mn={passive:!0};function xu(e){var t=e.state,o=e.instance,i=e.options,a=i.scroll,r=a===void 0?!0:a,s=i.resize,l=s===void 0?!0:s,c=ye(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(f){f.addEventListener("scroll",o.update,Mn)}),l&&c.addEventListener("resize",o.update,Mn),function(){r&&d.forEach(function(f){f.removeEventListener("scroll",o.update,Mn)}),l&&c.removeEventListener("resize",o.update,Mn)}}var $a={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xu,data:{}},Bu={left:"right",right:"left",bottom:"top",top:"bottom"};function xn(e){return e.replace(/left|right|bottom|top/g,function(t){return Bu[t]})}var Nu={start:"end",end:"start"};function za(e){return e.replace(/start|end/g,function(t){return Nu[t]})}function xo(e){var t=ye(e),o=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:o,scrollTop:i}}function Bo(e){return wt(je(e)).left+xo(e).scrollLeft}function Pu(e){var t=ye(e),o=je(e),i=t.visualViewport,a=o.clientWidth,r=o.clientHeight,s=0,l=0;return i&&(a=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:a,height:r,x:s+Bo(e),y:l}}function _u(e){var t,o=je(e),i=xo(e),a=(t=e.ownerDocument)==null?void 0:t.body,r=ot(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=ot(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-i.scrollLeft+Bo(e),c=-i.scrollTop;return _e(a||o).direction==="rtl"&&(l+=ot(o.clientWidth,a?a.clientWidth:0)-r),{width:r,height:s,x:l,y:c}}function No(e){var t=_e(e),o=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+i)}function ja(e){return["html","body","#document"].indexOf(ve(e))>=0?e.ownerDocument.body:ue(e)&&No(e)?e:ja(On(e))}function Yt(e,t){var o;t===void 0&&(t=[]);var i=ja(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),r=ye(i),s=a?[r].concat(r.visualViewport||[],No(i)?i:[]):i,l=t.concat(s);return a?l:l.concat(Yt(On(s)))}function Po(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lu(e){var t=wt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ha(e,t){return t===xa?Po(Pu(e)):yt(t)?Lu(t):Po(_u(je(e)))}function Vu(e){var t=Yt(On(e)),o=["absolute","fixed"].indexOf(_e(e).position)>=0,i=o&&ue(e)?Gt(e):e;return yt(i)?t.filter(function(a){return yt(a)&&Pa(a,i)&&ve(a)!=="body"}):[]}function Ru(e,t,o){var i=t==="clippingParents"?Vu(e):[].concat(t),a=[].concat(i,[o]),r=a[0],s=a.reduce(function(l,c){var d=Ha(e,c);return l.top=ot(d.top,l.top),l.right=An(d.right,l.right),l.bottom=An(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},Ha(e,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ka(e){var t=e.reference,o=e.element,i=e.placement,a=i?Se(i):null,r=i?Ct(i):null,s=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(a){case ie:c={x:s,y:t.y-o.height};break;case de:c={x:s,y:t.y+t.height};break;case fe:c={x:t.x+t.width,y:l};break;case ae:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=a?Mo(a):null;if(d!=null){var f=d==="y"?"height":"width";switch(r){case gt:c[d]=c[d]-(t[f]/2-o[f]/2);break;case Wt:c[d]=c[d]+(t[f]/2-o[f]/2);break}}return c}function Zt(e,t){t===void 0&&(t={});var o=t,i=o.placement,a=i===void 0?e.placement:i,r=o.boundary,s=r===void 0?ru:r,l=o.rootBoundary,c=l===void 0?xa:l,d=o.elementContext,f=d===void 0?qt:d,u=o.altBoundary,p=u===void 0?!1:u,g=o.padding,h=g===void 0?0:g,m=Va(typeof h!="number"?h:Ra(h,Ut)),y=f===qt?su:qt,b=e.rects.popper,w=e.elements[p?y:f],T=Ru(yt(w)?w:w.contextElement||je(e.elements.popper),s,c),k=wt(e.elements.reference),v=Ka({reference:k,element:b,strategy:"absolute",placement:a}),E=Po(Object.assign({},b,v)),I=f===qt?E:k,M={top:T.top-I.top+m.top,bottom:I.bottom-T.bottom+m.bottom,left:T.left-I.left+m.left,right:I.right-T.right+m.right},x=e.modifiersData.offset;if(f===qt&&x){var B=x[a];Object.keys(M).forEach(function(S){var P=[fe,de].indexOf(S)>=0?1:-1,L=[ie,de].indexOf(S)>=0?"y":"x";M[S]+=B[L]*P})}return M}function Fu(e,t){t===void 0&&(t={});var o=t,i=o.placement,a=o.boundary,r=o.rootBoundary,s=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?Tn:c,f=Ct(i),u=f?l?Ba:Ba.filter(function(h){return Ct(h)===f}):Ut,p=u.filter(function(h){return d.indexOf(h)>=0});p.length===0&&(p=u);var g=p.reduce(function(h,m){return h[m]=Zt(e,{placement:m,boundary:a,rootBoundary:r,padding:s})[Se(m)],h},{});return Object.keys(g).sort(function(h,m){return g[h]-g[m]})}function Du(e){if(Se(e)===To)return[];var t=xn(e);return[za(e),t,za(t)]}function $u(e){var t=e.state,o=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=o.mainAxis,r=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!0:s,c=o.fallbackPlacements,d=o.padding,f=o.boundary,u=o.rootBoundary,p=o.altBoundary,g=o.flipVariations,h=g===void 0?!0:g,m=o.allowedAutoPlacements,y=t.options.placement,b=Se(y),w=b===y,T=c||(w||!h?[xn(y)]:Du(y)),k=[y].concat(T).reduce(function(Ie,re){return Ie.concat(Se(re)===To?Fu(t,{placement:re,boundary:f,rootBoundary:u,padding:d,flipVariations:h,allowedAutoPlacements:m}):re)},[]),v=t.rects.reference,E=t.rects.popper,I=new Map,M=!0,x=k[0],B=0;B<k.length;B++){var S=k[B],P=Se(S),L=Ct(S)===gt,q=[ie,de].indexOf(P)>=0,F=q?"width":"height",O=Zt(t,{placement:S,boundary:f,rootBoundary:u,altBoundary:p,padding:d}),$=q?L?fe:ae:L?de:ie;v[F]>E[F]&&($=xn($));var pe=xn($),Y=[];if(r&&Y.push(O[P]<=0),l&&Y.push(O[$]<=0,O[pe]<=0),Y.every(function(Ie){return Ie})){x=S,M=!1;break}I.set(S,Y)}if(M)for(var Z=h?3:1,ce=function(Ie){var re=k.find(function(W){var st=I.get(W);if(st)return st.slice(0,Ie).every(function(qe){return qe})});if(re)return x=re,"break"},Ee=Z;Ee>0;Ee--){var Mt=ce(Ee);if(Mt==="break")break}t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}}var zu={name:"flip",enabled:!0,phase:"main",fn:$u,requiresIfExists:["offset"],data:{_skip:!1}};function Ua(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Wa(e){return[ie,fe,de,ae].some(function(t){return e[t]>=0})}function ju(e){var t=e.state,o=e.name,i=t.rects.reference,a=t.rects.popper,r=t.modifiersData.preventOverflow,s=Zt(t,{elementContext:"reference"}),l=Zt(t,{altBoundary:!0}),c=Ua(s,i),d=Ua(l,a,r),f=Wa(c),u=Wa(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}var Hu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ju};function Ku(e,t,o){var i=Se(e),a=[ae,ie].indexOf(i)>=0?-1:1,r=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,s=r[0],l=r[1];return s=s||0,l=(l||0)*a,[ae,fe].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function Uu(e){var t=e.state,o=e.options,i=e.name,a=o.offset,r=a===void 0?[0,0]:a,s=Tn.reduce(function(f,u){return f[u]=Ku(u,t.rects,r),f},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}var Wu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Uu};function qu(e){var t=e.state,o=e.name;t.modifiersData[o]=Ka({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var qa={name:"popperOffsets",enabled:!0,phase:"read",fn:qu,data:{}};function Gu(e){return e==="x"?"y":"x"}function Ju(e){var t=e.state,o=e.options,i=e.name,a=o.mainAxis,r=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!1:s,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,u=o.padding,p=o.tether,g=p===void 0?!0:p,h=o.tetherOffset,m=h===void 0?0:h,y=Zt(t,{boundary:c,rootBoundary:d,padding:u,altBoundary:f}),b=Se(t.placement),w=Ct(t.placement),T=!w,k=Mo(b),v=Gu(k),E=t.modifiersData.popperOffsets,I=t.rects.reference,M=t.rects.popper,x=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,B=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(E){if(r){var L,q=k==="y"?ie:ae,F=k==="y"?de:fe,O=k==="y"?"height":"width",$=E[k],pe=$+y[q],Y=$-y[F],Z=g?-M[O]/2:0,ce=w===gt?I[O]:M[O],Ee=w===gt?-M[O]:-I[O],Mt=t.elements.arrow,Ie=g&&Mt?Oo(Mt):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:La(),W=re[q],st=re[F],qe=Jt(0,I[O],Ie[O]),qn=T?I[O]/2-Z-qe-W-B.mainAxis:ce-qe-W-B.mainAxis,Gn=T?-I[O]/2+Z+qe+st+B.mainAxis:Ee+qe+st+B.mainAxis,on=t.elements.arrow&&Gt(t.elements.arrow),fi=on?k==="y"?on.clientTop||0:on.clientLeft||0:0,Jn=(L=S==null?void 0:S[k])!=null?L:0,ui=$+qn-Jn-fi,pi=$+Gn-Jn,lt=Jt(g?An(pe,ui):pe,$,g?ot(Y,pi):Y);E[k]=lt,P[k]=lt-$}if(l){var an,xt=k==="x"?ie:ae,Yn=k==="x"?de:fe,Ve=E[v],Bt=v==="y"?"height":"width",rn=Ve+y[xt],Zn=Ve-y[Yn],ct=[ie,ae].indexOf(b)!==-1,sn=(an=S==null?void 0:S[v])!=null?an:0,ln=ct?rn:Ve-I[Bt]-M[Bt]-sn+B.altAxis,cn=ct?Ve+I[Bt]+M[Bt]-sn-B.altAxis:Zn,dn=g&&ct?Su(ln,Ve,cn):Jt(g?ln:rn,Ve,g?cn:Zn);E[v]=dn,P[v]=dn-Ve}t.modifiersData[i]=P}}var Yu={name:"preventOverflow",enabled:!0,phase:"main",fn:Ju,requiresIfExists:["offset"]};function Zu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Qu(e){return e===ye(e)||!ue(e)?xo(e):Zu(e)}function Xu(e){var t=e.getBoundingClientRect(),o=bt(t.width)/e.offsetWidth||1,i=bt(t.height)/e.offsetHeight||1;return o!==1||i!==1}function ep(e,t,o){o===void 0&&(o=!1);var i=ue(t),a=ue(t)&&Xu(t),r=je(t),s=wt(e,a),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&((ve(t)!=="body"||No(r))&&(l=Qu(t)),ue(t)?(c=wt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=Bo(r))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function tp(e){var t=new Map,o=new Set,i=[];e.forEach(function(r){t.set(r.name,r)});function a(r){o.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&a(c)}}),i.push(r)}return e.forEach(function(r){o.has(r.name)||a(r)}),i}function np(e){var t=tp(e);return yu.reduce(function(o,i){return o.concat(t.filter(function(a){return a.phase===i}))},[])}function op(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function ip(e){var t=e.reduce(function(o,i){var a=o[i.name];return o[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,o},{});return Object.keys(t).map(function(o){return t[o]})}var Ga={placement:"bottom",modifiers:[],strategy:"absolute"};function Ja(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function _o(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,i=o===void 0?[]:o,a=t.defaultOptions,r=a===void 0?Ga:a;return function(s,l,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ga,r),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],u=!1,p={state:d,setOptions:function(m){var y=typeof m=="function"?m(d.options):m;h(),d.options=Object.assign({},r,d.options,y),d.scrollParents={reference:yt(s)?Yt(s):s.contextElement?Yt(s.contextElement):[],popper:Yt(l)};var b=np(ip([].concat(i,d.options.modifiers)));return d.orderedModifiers=b.filter(function(w){return w.enabled}),g(),p.update()},forceUpdate:function(){if(!u){var m=d.elements,y=m.reference,b=m.popper;if(Ja(y,b)){d.rects={reference:ep(y,Gt(b),d.options.strategy==="fixed"),popper:Oo(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(M){return d.modifiersData[M.name]=Object.assign({},M.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var T=d.orderedModifiers[w],k=T.fn,v=T.options,E=v===void 0?{}:v,I=T.name;typeof k=="function"&&(d=k({state:d,options:E,name:I,instance:p})||d)}}}},update:op(function(){return new Promise(function(m){p.forceUpdate(),m(d)})}),destroy:function(){h(),u=!0}};if(!Ja(s,l))return p;p.setOptions(c).then(function(m){!u&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){d.orderedModifiers.forEach(function(m){var y=m.name,b=m.options,w=b===void 0?{}:b,T=m.effect;if(typeof T=="function"){var k=T({state:d,name:y,instance:p,options:w}),v=function(){};f.push(k||v)}})}function h(){f.forEach(function(m){return m()}),f=[]}return p}}_o();var ap=[$a,qa,Da,Na];_o({defaultModifiers:ap});var rp=[$a,qa,Da,Na,Wu,zu,Yu,Tu,Hu],sp=_o({defaultModifiers:rp});const lp=(e,t,o={})=>{const i={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const d=cp(c);Object.assign(s.value,d)},requires:["computeStyles"]},a=n.computed(()=>{const{onFirstUpdate:c,placement:d,strategy:f,modifiers:u}=n.unref(o);return{onFirstUpdate:c,placement:d||"bottom",strategy:f||"absolute",modifiers:[...u||[],i,{name:"applyStyles",enabled:!1}]}}),r=n.shallowRef(),s=n.ref({styles:{popper:{position:n.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{r.value&&(r.value.destroy(),r.value=void 0)};return n.watch(a,c=>{const d=n.unref(r);d&&d.setOptions(c)},{deep:!0}),n.watch([e,t],([c,d])=>{l(),!(!c||!d)&&(r.value=sp(c,d,n.unref(a)))}),n.onBeforeUnmount(()=>{l()}),{state:n.computed(()=>{var c;return{...((c=n.unref(r))==null?void 0:c.state)||{}}}),styles:n.computed(()=>n.unref(s).styles),attributes:n.computed(()=>n.unref(s).attributes),update:()=>{var c;return(c=n.unref(r))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=n.unref(r))==null?void 0:c.forceUpdate()},instanceRef:n.computed(()=>n.unref(r))}};function cp(e){const t=Object.keys(e.elements),o=vo(t.map(a=>[a,e.styles[a]||{}])),i=vo(t.map(a=>[a,e.attributes[a]]));return{styles:o,attributes:i}}const Ya=e=>{if(!e)return{onClick:Je,onMousedown:Je,onMouseup:Je};let t=!1,o=!1;return{onClick:s=>{t&&o&&e(s),t=o=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{o=s.target===s.currentTarget}}};function Za(){let e;const t=(i,a)=>{o(),e=window.setTimeout(i,a)},o=()=>window.clearTimeout(e);return _t(()=>o()),{registerTimeout:t,cancelTimeout:o}}const Lo={prefix:Math.floor(Math.random()*1e4),current:0},dp=Symbol("elIdInjection"),Qa=()=>n.getCurrentInstance()?n.inject(dp,Lo):Lo,it=e=>{const t=Qa();!U&&t===Lo&&ne("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
5
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Je=()=>{},js=Object.prototype.hasOwnProperty,Na=(e,t)=>js.call(e,t),ee=Array.isArray,Q=e=>typeof e=="function",me=e=>typeof e=="string",te=e=>e!==null&&typeof e=="object",Hs=Object.prototype.toString,Ks=e=>Hs.call(e),ao=e=>Ks(e).slice(8,-1),_a=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Us=/-(\w)/g,Ws=_a(e=>e.replace(Us,(t,o)=>o?o.toUpperCase():"")),qs=/\B([A-Z])/g,Gs=_a(e=>e.replace(qs,"-$1").toLowerCase());var Pa=typeof global=="object"&&global&&global.Object===Object&&global,Js=typeof self=="object"&&self&&self.Object===Object&&self,Ce=Pa||Js||Function("return this")(),ve=Ce.Symbol,La=Object.prototype,Ys=La.hasOwnProperty,Zs=La.toString,Vt=ve?ve.toStringTag:void 0;function Qs(e){var t=Ys.call(e,Vt),o=e[Vt];try{e[Vt]=void 0;var a=!0}catch{}var r=Zs.call(e);return a&&(t?e[Vt]=o:delete e[Vt]),r}var Xs=Object.prototype,el=Xs.toString;function tl(e){return el.call(e)}var nl="[object Null]",ol="[object Undefined]",Va=ve?ve.toStringTag:void 0;function ft(e){return e==null?e===void 0?ol:nl:Va&&Va in Object(e)?Qs(e):tl(e)}function ut(e){return e!=null&&typeof e=="object"}var al="[object Symbol]";function pn(e){return typeof e=="symbol"||ut(e)&&ft(e)==al}function rl(e,t){for(var o=-1,a=e==null?0:e.length,r=Array(a);++o<a;)r[o]=t(e[o],o,e);return r}var ge=Array.isArray,il=1/0,Ra=ve?ve.prototype:void 0,Fa=Ra?Ra.toString:void 0;function Da(e){if(typeof e=="string")return e;if(ge(e))return rl(e,Da)+"";if(pn(e))return Fa?Fa.call(e):"";var t=e+"";return t=="0"&&1/e==-il?"-0":t}var sl=/\s/;function ll(e){for(var t=e.length;t--&&sl.test(e.charAt(t)););return t}var cl=/^\s+/;function dl(e){return e&&e.slice(0,ll(e)+1).replace(cl,"")}function Fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $a=NaN,fl=/^[-+]0x[0-9a-f]+$/i,ul=/^0b[01]+$/i,pl=/^0o[0-7]+$/i,hl=parseInt;function za(e){if(typeof e=="number")return e;if(pn(e))return $a;if(Fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dl(e);var o=ul.test(e);return o||pl.test(e)?hl(e.slice(2),o?2:8):fl.test(e)?$a:+e}function ja(e){return e}var ml="[object AsyncFunction]",gl="[object Function]",yl="[object GeneratorFunction]",bl="[object Proxy]";function Ha(e){if(!Fe(e))return!1;var t=ft(e);return t==gl||t==yl||t==ml||t==bl}var ro=Ce["__core-js_shared__"],Ka=function(){var e=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wl(e){return!!Ka&&Ka in e}var Cl=Function.prototype,vl=Cl.toString;function Ye(e){if(e!=null){try{return vl.call(e)}catch{}try{return e+""}catch{}}return""}var Sl=/[\\^$.*+?()[\]{}|]/g,kl=/^\[object .+?Constructor\]$/,El=Function.prototype,Il=Object.prototype,Tl=El.toString,Al=Il.hasOwnProperty,Ol=RegExp("^"+Tl.call(Al).replace(Sl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ml(e){if(!Fe(e)||wl(e))return!1;var t=Ha(e)?Ol:kl;return t.test(Ye(e))}function Bl(e,t){return e==null?void 0:e[t]}function Ze(e,t){var o=Bl(e,t);return Ml(o)?o:void 0}var io=Ze(Ce,"WeakMap");function xl(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Nl=800,_l=16,Pl=Date.now;function Ll(e){var t=0,o=0;return function(){var a=Pl(),r=_l-(a-o);if(o=a,r>0){if(++t>=Nl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Vl(e){return function(){return e}}var hn=function(){try{var e=Ze(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Rl=hn?function(e,t){return hn(e,"toString",{configurable:!0,enumerable:!1,value:Vl(t),writable:!0})}:ja,Fl=Ll(Rl);function Dl(e,t,o,a){e.length;for(var r=o+1;r--;)if(t(e[r],r,e))return r;return-1}var $l=9007199254740991,zl=/^(?:0|[1-9]\d*)$/;function so(e,t){var o=typeof e;return t=t??$l,!!t&&(o=="number"||o!="symbol"&&zl.test(e))&&e>-1&&e%1==0&&e<t}function jl(e,t,o){t=="__proto__"&&hn?hn(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function lo(e,t){return e===t||e!==e&&t!==t}var Hl=Object.prototype,Kl=Hl.hasOwnProperty;function Ul(e,t,o){var a=e[t];(!(Kl.call(e,t)&&lo(a,o))||o===void 0&&!(t in e))&&jl(e,t,o)}var Ua=Math.max;function Wl(e,t,o){return t=Ua(t===void 0?e.length-1:t,0),function(){for(var a=arguments,r=-1,i=Ua(a.length-t,0),s=Array(i);++r<i;)s[r]=a[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=a[r];return l[t]=o(s),xl(e,this,l)}}var ql=9007199254740991;function co(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ql}function Gl(e){return e!=null&&co(e.length)&&!Ha(e)}var Jl=Object.prototype;function Yl(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Jl;return e===o}function Zl(e,t){for(var o=-1,a=Array(e);++o<e;)a[o]=t(o);return a}var Ql="[object Arguments]";function Wa(e){return ut(e)&&ft(e)==Ql}var qa=Object.prototype,Xl=qa.hasOwnProperty,ec=qa.propertyIsEnumerable,fo=Wa(function(){return arguments}())?Wa:function(e){return ut(e)&&Xl.call(e,"callee")&&!ec.call(e,"callee")};function tc(){return!1}var Ga=typeof H=="object"&&H&&!H.nodeType&&H,Ja=Ga&&typeof module=="object"&&module&&!module.nodeType&&module,nc=Ja&&Ja.exports===Ga,Ya=nc?Ce.Buffer:void 0,oc=Ya?Ya.isBuffer:void 0,uo=oc||tc,ac="[object Arguments]",rc="[object Array]",ic="[object Boolean]",sc="[object Date]",lc="[object Error]",cc="[object Function]",dc="[object Map]",fc="[object Number]",uc="[object Object]",pc="[object RegExp]",hc="[object Set]",mc="[object String]",gc="[object WeakMap]",yc="[object ArrayBuffer]",bc="[object DataView]",wc="[object Float32Array]",Cc="[object Float64Array]",vc="[object Int8Array]",Sc="[object Int16Array]",kc="[object Int32Array]",Ec="[object Uint8Array]",Ic="[object Uint8ClampedArray]",Tc="[object Uint16Array]",Ac="[object Uint32Array]",j={};j[wc]=j[Cc]=j[vc]=j[Sc]=j[kc]=j[Ec]=j[Ic]=j[Tc]=j[Ac]=!0,j[ac]=j[rc]=j[yc]=j[ic]=j[bc]=j[sc]=j[lc]=j[cc]=j[dc]=j[fc]=j[uc]=j[pc]=j[hc]=j[mc]=j[gc]=!1;function Oc(e){return ut(e)&&co(e.length)&&!!j[ft(e)]}function Mc(e){return function(t){return e(t)}}var Za=typeof H=="object"&&H&&!H.nodeType&&H,Rt=Za&&typeof module=="object"&&module&&!module.nodeType&&module,Bc=Rt&&Rt.exports===Za,po=Bc&&Pa.process,Qa=function(){try{var e=Rt&&Rt.require&&Rt.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}(),Xa=Qa&&Qa.isTypedArray,er=Xa?Mc(Xa):Oc,xc=Object.prototype,Nc=xc.hasOwnProperty;function _c(e,t){var o=ge(e),a=!o&&fo(e),r=!o&&!a&&uo(e),i=!o&&!a&&!r&&er(e),s=o||a||r||i,l=s?Zl(e.length,String):[],c=l.length;for(var d in e)Nc.call(e,d)&&!(s&&(d=="length"||r&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||so(d,c)))&&l.push(d);return l}function Pc(e,t){return function(o){return e(t(o))}}var Lc=Pc(Object.keys,Object),Vc=Object.prototype,Rc=Vc.hasOwnProperty;function Fc(e){if(!Yl(e))return Lc(e);var t=[];for(var o in Object(e))Rc.call(e,o)&&o!="constructor"&&t.push(o);return t}function tr(e){return Gl(e)?_c(e):Fc(e)}var Dc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$c=/^\w*$/;function ho(e,t){if(ge(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||pn(e)?!0:$c.test(e)||!Dc.test(e)||t!=null&&e in Object(t)}var Ft=Ze(Object,"create");function zc(){this.__data__=Ft?Ft(null):{},this.size=0}function jc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Hc="__lodash_hash_undefined__",Kc=Object.prototype,Uc=Kc.hasOwnProperty;function Wc(e){var t=this.__data__;if(Ft){var o=t[e];return o===Hc?void 0:o}return Uc.call(t,e)?t[e]:void 0}var qc=Object.prototype,Gc=qc.hasOwnProperty;function Jc(e){var t=this.__data__;return Ft?t[e]!==void 0:Gc.call(t,e)}var Yc="__lodash_hash_undefined__";function Zc(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Ft&&t===void 0?Yc:t,this}function Qe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}Qe.prototype.clear=zc,Qe.prototype.delete=jc,Qe.prototype.get=Wc,Qe.prototype.has=Jc,Qe.prototype.set=Zc;function Qc(){this.__data__=[],this.size=0}function mn(e,t){for(var o=e.length;o--;)if(lo(e[o][0],t))return o;return-1}var Xc=Array.prototype,ed=Xc.splice;function td(e){var t=this.__data__,o=mn(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():ed.call(t,o,1),--this.size,!0}function nd(e){var t=this.__data__,o=mn(t,e);return o<0?void 0:t[o][1]}function od(e){return mn(this.__data__,e)>-1}function ad(e,t){var o=this.__data__,a=mn(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}function Me(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}Me.prototype.clear=Qc,Me.prototype.delete=td,Me.prototype.get=nd,Me.prototype.has=od,Me.prototype.set=ad;var Dt=Ze(Ce,"Map");function rd(){this.size=0,this.__data__={hash:new Qe,map:new(Dt||Me),string:new Qe}}function id(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gn(e,t){var o=e.__data__;return id(t)?o[typeof t=="string"?"string":"hash"]:o.map}function sd(e){var t=gn(this,e).delete(e);return this.size-=t?1:0,t}function ld(e){return gn(this,e).get(e)}function cd(e){return gn(this,e).has(e)}function dd(e,t){var o=gn(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}function Be(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}Be.prototype.clear=rd,Be.prototype.delete=sd,Be.prototype.get=ld,Be.prototype.has=cd,Be.prototype.set=dd;var fd="Expected a function";function mo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fd);var o=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=o.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return o.cache=i.set(r,s)||i,s};return o.cache=new(mo.Cache||Be),o}mo.Cache=Be;var ud=500;function pd(e){var t=mo(e,function(a){return o.size===ud&&o.clear(),a}),o=t.cache;return t}var hd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,md=/\\(\\)?/g,gd=pd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hd,function(o,a,r,i){t.push(r?i.replace(md,"$1"):a||o)}),t});function yd(e){return e==null?"":Da(e)}function yn(e,t){return ge(e)?e:ho(e,t)?[e]:gd(yd(e))}var bd=1/0;function $t(e){if(typeof e=="string"||pn(e))return e;var t=e+"";return t=="0"&&1/e==-bd?"-0":t}function go(e,t){t=yn(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[$t(t[o++])];return o&&o==a?e:void 0}function xe(e,t,o){var a=e==null?void 0:go(e,t);return a===void 0?o:a}function nr(e,t){for(var o=-1,a=t.length,r=e.length;++o<a;)e[r+o]=t[o];return e}var or=ve?ve.isConcatSpreadable:void 0;function wd(e){return ge(e)||fo(e)||!!(or&&e&&e[or])}function Cd(e,t,o,a,r){var i=-1,s=e.length;for(o||(o=wd),r||(r=[]);++i<s;){var l=e[i];o(l)?nr(r,l):r[r.length]=l}return r}function vd(e){var t=e==null?0:e.length;return t?Cd(e):[]}function Sd(e){return Fl(Wl(e,void 0,vd),e+"")}function De(){if(!arguments.length)return[];var e=arguments[0];return ge(e)?e:[e]}function kd(){this.__data__=new Me,this.size=0}function Ed(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Id(e){return this.__data__.get(e)}function Td(e){return this.__data__.has(e)}var Ad=200;function Od(e,t){var o=this.__data__;if(o instanceof Me){var a=o.__data__;if(!Dt||a.length<Ad-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Be(a)}return o.set(e,t),this.size=o.size,this}function Ne(e){var t=this.__data__=new Me(e);this.size=t.size}Ne.prototype.clear=kd,Ne.prototype.delete=Ed,Ne.prototype.get=Id,Ne.prototype.has=Td,Ne.prototype.set=Od;function Md(e,t){for(var o=-1,a=e==null?0:e.length,r=0,i=[];++o<a;){var s=e[o];t(s,o,e)&&(i[r++]=s)}return i}function Bd(){return[]}var xd=Object.prototype,Nd=xd.propertyIsEnumerable,ar=Object.getOwnPropertySymbols,_d=ar?function(e){return e==null?[]:(e=Object(e),Md(ar(e),function(t){return Nd.call(e,t)}))}:Bd;function Pd(e,t,o){var a=t(e);return ge(e)?a:nr(a,o(e))}function rr(e){return Pd(e,tr,_d)}var yo=Ze(Ce,"DataView"),bo=Ze(Ce,"Promise"),wo=Ze(Ce,"Set"),ir="[object Map]",Ld="[object Object]",sr="[object Promise]",lr="[object Set]",cr="[object WeakMap]",dr="[object DataView]",Vd=Ye(yo),Rd=Ye(Dt),Fd=Ye(bo),Dd=Ye(wo),$d=Ye(io),$e=ft;(yo&&$e(new yo(new ArrayBuffer(1)))!=dr||Dt&&$e(new Dt)!=ir||bo&&$e(bo.resolve())!=sr||wo&&$e(new wo)!=lr||io&&$e(new io)!=cr)&&($e=function(e){var t=ft(e),o=t==Ld?e.constructor:void 0,a=o?Ye(o):"";if(a)switch(a){case Vd:return dr;case Rd:return ir;case Fd:return sr;case Dd:return lr;case $d:return cr}return t});var fr=Ce.Uint8Array,zd="__lodash_hash_undefined__";function jd(e){return this.__data__.set(e,zd),this}function Hd(e){return this.__data__.has(e)}function bn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Be;++t<o;)this.add(e[t])}bn.prototype.add=bn.prototype.push=jd,bn.prototype.has=Hd;function Kd(e,t){for(var o=-1,a=e==null?0:e.length;++o<a;)if(t(e[o],o,e))return!0;return!1}function Ud(e,t){return e.has(t)}var Wd=1,qd=2;function ur(e,t,o,a,r,i){var s=o&Wd,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var u=-1,p=!0,g=o&qd?new bn:void 0;for(i.set(e,t),i.set(t,e);++u<l;){var h=e[u],m=t[u];if(a)var y=s?a(m,h,u,t,e,i):a(h,m,u,e,t,i);if(y!==void 0){if(y)continue;p=!1;break}if(g){if(!Kd(t,function(b,C){if(!Ud(g,C)&&(h===b||r(h,b,o,a,i)))return g.push(C)})){p=!1;break}}else if(!(h===m||r(h,m,o,a,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function Gd(e){var t=-1,o=Array(e.size);return e.forEach(function(a,r){o[++t]=[r,a]}),o}function Jd(e){var t=-1,o=Array(e.size);return e.forEach(function(a){o[++t]=a}),o}var Yd=1,Zd=2,Qd="[object Boolean]",Xd="[object Date]",ef="[object Error]",tf="[object Map]",nf="[object Number]",of="[object RegExp]",af="[object Set]",rf="[object String]",sf="[object Symbol]",lf="[object ArrayBuffer]",cf="[object DataView]",pr=ve?ve.prototype:void 0,Co=pr?pr.valueOf:void 0;function df(e,t,o,a,r,i,s){switch(o){case cf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lf:return!(e.byteLength!=t.byteLength||!i(new fr(e),new fr(t)));case Qd:case Xd:case nf:return lo(+e,+t);case ef:return e.name==t.name&&e.message==t.message;case of:case rf:return e==t+"";case tf:var l=Gd;case af:var c=a&Yd;if(l||(l=Jd),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;a|=Zd,s.set(e,t);var f=ur(l(e),l(t),a,r,i,s);return s.delete(e),f;case sf:if(Co)return Co.call(e)==Co.call(t)}return!1}var ff=1,uf=Object.prototype,pf=uf.hasOwnProperty;function hf(e,t,o,a,r,i){var s=o&ff,l=rr(e),c=l.length,d=rr(t),f=d.length;if(c!=f&&!s)return!1;for(var u=c;u--;){var p=l[u];if(!(s?p in t:pf.call(t,p)))return!1}var g=i.get(e),h=i.get(t);if(g&&h)return g==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var y=s;++u<c;){p=l[u];var b=e[p],C=t[p];if(a)var I=s?a(C,b,p,t,e,i):a(b,C,p,e,t,i);if(!(I===void 0?b===C||r(b,C,o,a,i):I)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var k=e.constructor,v=t.constructor;k!=v&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof v=="function"&&v instanceof v)&&(m=!1)}return i.delete(e),i.delete(t),m}var mf=1,hr="[object Arguments]",mr="[object Array]",wn="[object Object]",gf=Object.prototype,gr=gf.hasOwnProperty;function yf(e,t,o,a,r,i){var s=ge(e),l=ge(t),c=s?mr:$e(e),d=l?mr:$e(t);c=c==hr?wn:c,d=d==hr?wn:d;var f=c==wn,u=d==wn,p=c==d;if(p&&uo(e)){if(!uo(t))return!1;s=!0,f=!1}if(p&&!f)return i||(i=new Ne),s||er(e)?ur(e,t,o,a,r,i):df(e,t,c,o,a,r,i);if(!(o&mf)){var g=f&&gr.call(e,"__wrapped__"),h=u&&gr.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,y=h?t.value():t;return i||(i=new Ne),r(m,y,o,a,i)}}return p?(i||(i=new Ne),hf(e,t,o,a,r,i)):!1}function Cn(e,t,o,a,r){return e===t?!0:e==null||t==null||!ut(e)&&!ut(t)?e!==e&&t!==t:yf(e,t,o,a,Cn,r)}var bf=1,wf=2;function Cf(e,t,o,a){var r=o.length,i=r;if(e==null)return!i;for(e=Object(e);r--;){var s=o[r];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<i;){s=o[r];var l=s[0],c=e[l],d=s[1];if(s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Ne,u;if(!(u===void 0?Cn(d,c,bf|wf,a,f):u))return!1}}return!0}function yr(e){return e===e&&!Fe(e)}function vf(e){for(var t=tr(e),o=t.length;o--;){var a=t[o],r=e[a];t[o]=[a,r,yr(r)]}return t}function br(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function Sf(e){var t=vf(e);return t.length==1&&t[0][2]?br(t[0][0],t[0][1]):function(o){return o===e||Cf(o,e,t)}}function kf(e,t){return e!=null&&t in Object(e)}function Ef(e,t,o){t=yn(t,e);for(var a=-1,r=t.length,i=!1;++a<r;){var s=$t(t[a]);if(!(i=e!=null&&o(e,s)))break;e=e[s]}return i||++a!=r?i:(r=e==null?0:e.length,!!r&&co(r)&&so(s,r)&&(ge(e)||fo(e)))}function wr(e,t){return e!=null&&Ef(e,t,kf)}var If=1,Tf=2;function Af(e,t){return ho(e)&&yr(t)?br($t(e),t):function(o){var a=xe(o,e);return a===void 0&&a===t?wr(o,e):Cn(t,a,If|Tf)}}function Of(e){return function(t){return t==null?void 0:t[e]}}function Mf(e){return function(t){return go(t,e)}}function Bf(e){return ho(e)?Of($t(e)):Mf(e)}function xf(e){return typeof e=="function"?e:e==null?ja:typeof e=="object"?ge(e)?Af(e[0],e[1]):Sf(e):Bf(e)}var vo=function(){return Ce.Date.now()},Nf="Expected a function",_f=Math.max,Pf=Math.min;function Lf(e,t,o){var a,r,i,s,l,c,d=0,f=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Nf);t=za(t)||0,Fe(o)&&(f=!!o.leading,u="maxWait"in o,i=u?_f(za(o.maxWait)||0,t):i,p="trailing"in o?!!o.trailing:p);function g(S){var E=a,O=r;return a=r=void 0,d=S,s=e.apply(O,E),s}function h(S){return d=S,l=setTimeout(b,t),f?g(S):s}function m(S){var E=S-c,O=S-d,B=t-E;return u?Pf(B,i-O):B}function y(S){var E=S-c,O=S-d;return c===void 0||E>=t||E<0||u&&O>=i}function b(){var S=vo();if(y(S))return C(S);l=setTimeout(b,m(S))}function C(S){return l=void 0,p&&a?g(S):(a=r=void 0,s)}function I(){l!==void 0&&clearTimeout(l),d=0,a=c=r=l=void 0}function k(){return l===void 0?s:C(vo())}function v(){var S=vo(),E=y(S);if(a=arguments,r=this,c=S,E){if(l===void 0)return h(c);if(u)return clearTimeout(l),l=setTimeout(b,t),g(c)}return l===void 0&&(l=setTimeout(b,t)),s}return v.cancel=I,v.flush=k,v}function Vf(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var r=a-1;return Dl(e,xf(t),r)}function So(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var r=e[t];a[r[0]]=r[1]}return a}function vn(e,t){return Cn(e,t)}function Sn(e){return e==null}function Cr(e){return e===void 0}function Rf(e,t,o,a){if(!Fe(e))return e;t=yn(t,e);for(var r=-1,i=t.length,s=i-1,l=e;l!=null&&++r<i;){var c=$t(t[r]),d=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(r!=s){var f=l[c];d=void 0,d===void 0&&(d=Fe(f)?f:so(t[r+1])?[]:{})}Ul(l,c,d),l=l[c]}return e}function Ff(e,t,o){for(var a=-1,r=t.length,i={};++a<r;){var s=t[a],l=go(e,s);o(l,s)&&Rf(i,yn(s,e),l)}return i}function Df(e,t){return Ff(e,t,function(o,a){return wr(e,a)})}var vr=Sd(function(e,t){return e==null?{}:Df(e,t)});const ze=e=>e===void 0,_e=e=>typeof e=="boolean",G=e=>typeof e=="number",Xe=e=>typeof Element>"u"?!1:e instanceof Element,zt=e=>Sn(e),$f=e=>me(e)?!Number.isNaN(Number(e)):!1,zf=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Sr=e=>Object.keys(e);class kr extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Er(e,t){throw new kr(`[${e}] ${t}`)}function ne(e,t){if(process.env.NODE_ENV!=="production"){const o=me(e)?new kr(`[${e}] ${t}`):e;console.warn(o)}}const jf="utils/dom/style",Ir=(e="")=>e.split(" ").filter(t=>!!t.trim()),Tr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},ko=(e,t)=>{!e||!t.trim()||e.classList.add(...Ir(t))},jt=(e,t)=>{!e||!t.trim()||e.classList.remove(...Ir(t))},pt=(e,t)=>{var o;if(!U||!e||!t)return"";let a=Ws(t);a==="float"&&(a="cssFloat");try{const r=e.style[a];if(r)return r;const i=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return i?i[a]:""}catch{return e.style[a]}};function et(e,t="px"){if(!e)return"";if(G(e)||$f(e))return`${e}${t}`;if(me(e))return e;ne(jf,"binding value must be a string or number")}let kn;const Hf=e=>{var t;if(!U)return 0;if(kn!==void 0)return kn;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const a=o.offsetWidth;o.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",o.appendChild(r);const i=r.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),kn=a-i,kn};function Kf(e,t){if(!U)return;if(!t){e.scrollTop=0;return}const o=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)o.push(a),a=a.offsetParent;const r=t.offsetTop+o.reduce((c,d)=>c+d.offsetTop,0),i=r+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;r<s?e.scrollTop=r:i>l&&(e.scrollTop=i-e.clientHeight)}const Ar="__epPropKey",_=e=>e,Uf=e=>te(e)&&!!e[Ar],En=(e,t)=>{if(!te(e)||Uf(e))return e;const{values:o,required:a,default:r,type:i,validator:s}=e,c={type:i,required:!!a,validator:o||s?d=>{let f=!1,u=[];if(o&&(u=Array.from(o),Na(e,"default")&&u.push(r),f||(f=u.includes(d))),s&&(f||(f=s(d))),!f&&u.length>0){const p=[...new Set(u)].map(g=>JSON.stringify(g)).join(", ");n.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(d)}.`)}return f}:void 0,[Ar]:!0};return Na(e,"default")&&(c.default=r),c},R=e=>So(Object.entries(e).map(([t,o])=>[t,En(o,t)])),ht=_([String,Object,Function]),Wf={Close:K.Close},qf={validating:K.Loading,success:K.CircleCheck,error:K.CircleClose},oe=(e,t)=>{if(e.install=o=>{for(const a of[e,...Object.values(t??{})])o.component(a.name,a)},t)for(const[o,a]of Object.entries(t))e[o]=a;return e},Gf=(e,t)=>(e.install=o=>{o.directive(t,e)},e),tt=e=>(e.install=Je,e),Jf=(...e)=>t=>{e.forEach(o=>{Q(o)?o(t):o.value=t})},Ht={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},X="update:modelValue",Eo="change",Or=["","default","small","large"];var In=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(In||{});const Yf=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Kt=e=>e,mt=({from:e,replacement:t,scope:o,version:a,ref:r,type:i="API"},s)=>{n.watch(()=>n.unref(s),l=>{l&&ne(o,`[${i}] ${e} is about to be deprecated in version ${a}, please use ${t} instead.
6
+ For more detail, please visit: ${r}
7
+ `)},{immediate:!0})},Zf=(e,t,o,a)=>{let r={offsetX:0,offsetY:0};const i=d=>{const f=d.clientX,u=d.clientY,{offsetX:p,offsetY:g}=r,h=e.value.getBoundingClientRect(),m=h.left,y=h.top,b=h.width,C=h.height,I=document.documentElement.clientWidth,k=document.documentElement.clientHeight,v=-m+p,S=-y+g,E=I-m-b+p,O=k-y-C+g,B=x=>{let T=p+x.clientX-f,P=g+x.clientY-u;a!=null&&a.value||(T=Math.min(Math.max(T,v),E),P=Math.min(Math.max(P,S),O)),r={offsetX:T,offsetY:P},e.value&&(e.value.style.transform=`translate(${et(T)}, ${et(P)})`)},N=()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",N)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)},c=()=>{r={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return n.onMounted(()=>{n.watchEffect(()=>{o.value?s():l()})}),n.onBeforeUnmount(()=>{l()}),{resetPosition:c}};var Qf={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Xf=e=>(t,o)=>eu(t,o,n.unref(e)),eu=(e,t,o)=>xe(o,e,e).replace(/\{(\w+)\}/g,(a,r)=>{var i;return`${(i=t==null?void 0:t[r])!=null?i:`{${r}}`}`}),tu=e=>{const t=n.computed(()=>n.unref(e).name),o=n.isRef(e)?e:n.ref(e);return{lang:t,locale:o,t:Xf(e)}},Mr=Symbol("localeContextKey"),Io=e=>{const t=e||n.inject(Mr,n.ref());return tu(n.computed(()=>t.value||Qf))},Ut="el",nu="is-",nt=(e,t,o,a,r)=>{let i=`${e}-${t}`;return o&&(i+=`-${o}`),a&&(i+=`__${a}`),r&&(i+=`--${r}`),i},Br=Symbol("namespaceContextKey"),To=e=>{const t=e||(n.getCurrentInstance()?n.inject(Br,n.ref(Ut)):n.ref(Ut));return n.computed(()=>n.unref(t)||Ut)},D=(e,t)=>{const o=To(t);return{namespace:o,b:(m="")=>nt(o.value,e,m,"",""),e:m=>m?nt(o.value,e,"",m,""):"",m:m=>m?nt(o.value,e,"","",m):"",be:(m,y)=>m&&y?nt(o.value,e,m,y,""):"",em:(m,y)=>m&&y?nt(o.value,e,"",m,y):"",bm:(m,y)=>m&&y?nt(o.value,e,m,"",y):"",bem:(m,y,b)=>m&&y&&b?nt(o.value,e,m,y,b):"",is:(m,...y)=>{const b=y.length>=1?y[0]:!0;return m&&b?`${nu}${m}`:""},cssVar:m=>{const y={};for(const b in m)m[b]&&(y[`--${o.value}-${b}`]=m[b]);return y},cssVarName:m=>`--${o.value}-${m}`,cssVarBlock:m=>{const y={};for(const b in m)m[b]&&(y[`--${o.value}-${e}-${b}`]=m[b]);return y},cssVarBlockName:m=>`--${o.value}-${e}-${m}`}},ou=(e,t={})=>{n.isRef(e)||Er("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||D("popup"),a=n.computed(()=>o.bm("parent","hidden"));if(!U||Tr(document.body,a.value))return;let r=0,i=!1,s="0";const l=()=>{setTimeout(()=>{jt(document==null?void 0:document.body,a.value),i&&document&&(document.body.style.width=s)},200)};n.watch(e,c=>{if(!c){l();return}i=!Tr(document.body,a.value),i&&(s=document.body.style.width),r=Hf(o.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=pt(document.body,"overflowY");r>0&&(d||f==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),ko(document.body,a.value)}),n.onScopeDispose(()=>l())},au=En({type:_(Boolean),default:null}),ru=En({type:_(Function)}),iu=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,a=[t],r={[e]:au,[o]:ru};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:d,onShow:f,onHide:u})=>{const p=n.getCurrentInstance(),{emit:g}=p,h=p.props,m=n.computed(()=>Q(h[o])),y=n.computed(()=>h[e]===null),b=E=>{s.value!==!0&&(s.value=!0,l&&(l.value=E),Q(f)&&f(E))},C=E=>{s.value!==!1&&(s.value=!1,l&&(l.value=E),Q(u)&&u(E))},I=E=>{if(h.disabled===!0||Q(d)&&!d())return;const O=m.value&&U;O&&g(t,!0),(y.value||!O)&&b(E)},k=E=>{if(h.disabled===!0||!U)return;const O=m.value&&U;O&&g(t,!1),(y.value||!O)&&C(E)},v=E=>{_e(E)&&(h.disabled&&E?m.value&&g(t,!1):s.value!==E&&(E?b():C()))},S=()=>{s.value?k():I()};return n.watch(()=>h[e],v),c&&p.appContext.config.globalProperties.$route!==void 0&&n.watch(()=>({...p.proxy.$route}),()=>{c.value&&s.value&&k()}),n.onMounted(()=>{v(h[e])}),{hide:k,show:I,toggle:S,hasUpdateHandler:m}},useModelToggleProps:r,useModelToggleEmits:a}},xr=e=>{const t=n.getCurrentInstance();return n.computed(()=>{var o,a;return(a=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:a[e]})};var ae="top",de="bottom",fe="right",re="left",Ao="auto",Wt=[ae,de,fe,re],gt="start",qt="end",su="clippingParents",Nr="viewport",Gt="popper",lu="reference",_r=Wt.reduce(function(e,t){return e.concat([t+"-"+gt,t+"-"+qt])},[]),Tn=[].concat(Wt,[Ao]).reduce(function(e,t){return e.concat([t,t+"-"+gt,t+"-"+qt])},[]),cu="beforeRead",du="read",fu="afterRead",uu="beforeMain",pu="main",hu="afterMain",mu="beforeWrite",gu="write",yu="afterWrite",bu=[cu,du,fu,uu,pu,hu,mu,gu,yu];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yt(e){var t=ye(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Oo(e){if(typeof ShadowRoot>"u")return!1;var t=ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wu(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var a=t.styles[o]||{},r=t.attributes[o]||{},i=t.elements[o];!ue(i)||!Se(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(s){var l=r[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function Cu(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},s=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:o[a]),l=s.reduce(function(c,d){return c[d]="",c},{});!ue(r)||!Se(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}var Pr={name:"applyStyles",enabled:!0,phase:"write",fn:wu,effect:Cu,requires:["computeStyles"]};function ke(e){return e.split("-")[0]}var ot=Math.max,An=Math.min,bt=Math.round;function wt(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),a=1,r=1;if(ue(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(a=bt(o.width)/s||1),i>0&&(r=bt(o.height)/i||1)}return{width:o.width/a,height:o.height/r,top:o.top/r,right:o.right/a,bottom:o.bottom/r,left:o.left/a,x:o.left/a,y:o.top/r}}function Mo(e){var t=wt(e),o=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:a}}function Lr(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&Oo(o)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Pe(e){return ye(e).getComputedStyle(e)}function vu(e){return["table","td","th"].indexOf(Se(e))>=0}function je(e){return((yt(e)?e.ownerDocument:e.document)||window.document).documentElement}function On(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(Oo(e)?e.host:null)||je(e)}function Vr(e){return!ue(e)||Pe(e).position==="fixed"?null:e.offsetParent}function Su(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&ue(e)){var a=Pe(e);if(a.position==="fixed")return null}var r=On(e);for(Oo(r)&&(r=r.host);ue(r)&&["html","body"].indexOf(Se(r))<0;){var i=Pe(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Jt(e){for(var t=ye(e),o=Vr(e);o&&vu(o)&&Pe(o).position==="static";)o=Vr(o);return o&&(Se(o)==="html"||Se(o)==="body"&&Pe(o).position==="static")?t:o||Su(e)||t}function Bo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yt(e,t,o){return ot(e,An(t,o))}function ku(e,t,o){var a=Yt(e,t,o);return a>o?o:a}function Rr(){return{top:0,right:0,bottom:0,left:0}}function Fr(e){return Object.assign({},Rr(),e)}function Dr(e,t){return t.reduce(function(o,a){return o[a]=e,o},{})}var Eu=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Fr(typeof e!="number"?e:Dr(e,Wt))};function Iu(e){var t,o=e.state,a=e.name,r=e.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,l=ke(o.placement),c=Bo(l),d=[re,fe].indexOf(l)>=0,f=d?"height":"width";if(!(!i||!s)){var u=Eu(r.padding,o),p=Mo(i),g=c==="y"?ae:re,h=c==="y"?de:fe,m=o.rects.reference[f]+o.rects.reference[c]-s[c]-o.rects.popper[f],y=s[c]-o.rects.reference[c],b=Jt(i),C=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,I=m/2-y/2,k=u[g],v=C-p[f]-u[h],S=C/2-p[f]/2+I,E=Yt(k,S,v),O=c;o.modifiersData[a]=(t={},t[O]=E,t.centerOffset=E-S,t)}}function Tu(e){var t=e.state,o=e.options,a=o.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!Lr(t.elements.popper,r)||(t.elements.arrow=r))}var Au={name:"arrow",enabled:!0,phase:"main",fn:Iu,effect:Tu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ct(e){return e.split("-")[1]}var Ou={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mu(e){var t=e.x,o=e.y,a=window,r=a.devicePixelRatio||1;return{x:bt(t*r)/r||0,y:bt(o*r)/r||0}}function $r(e){var t,o=e.popper,a=e.popperRect,r=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,u=e.isFixed,p=s.x,g=p===void 0?0:p,h=s.y,m=h===void 0?0:h,y=typeof f=="function"?f({x:g,y:m}):{x:g,y:m};g=y.x,m=y.y;var b=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),I=re,k=ae,v=window;if(d){var S=Jt(o),E="clientHeight",O="clientWidth";if(S===ye(o)&&(S=je(o),Pe(S).position!=="static"&&l==="absolute"&&(E="scrollHeight",O="scrollWidth")),S=S,r===ae||(r===re||r===fe)&&i===qt){k=de;var B=u&&S===v&&v.visualViewport?v.visualViewport.height:S[E];m-=B-a.height,m*=c?1:-1}if(r===re||(r===ae||r===de)&&i===qt){I=fe;var N=u&&S===v&&v.visualViewport?v.visualViewport.width:S[O];g-=N-a.width,g*=c?1:-1}}var x=Object.assign({position:l},d&&Ou),T=f===!0?Mu({x:g,y:m}):{x:g,y:m};if(g=T.x,m=T.y,c){var P;return Object.assign({},x,(P={},P[k]=C?"0":"",P[I]=b?"0":"",P.transform=(v.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",P))}return Object.assign({},x,(t={},t[k]=C?m+"px":"",t[I]=b?g+"px":"",t.transform="",t))}function Bu(e){var t=e.state,o=e.options,a=o.gpuAcceleration,r=a===void 0?!0:a,i=o.adaptive,s=i===void 0?!0:i,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:ke(t.placement),variation:Ct(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$r(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$r(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var zr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Bu,data:{}},Mn={passive:!0};function xu(e){var t=e.state,o=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,s=a.resize,l=s===void 0?!0:s,c=ye(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",o.update,Mn)}),l&&c.addEventListener("resize",o.update,Mn),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",o.update,Mn)}),l&&c.removeEventListener("resize",o.update,Mn)}}var jr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xu,data:{}},Nu={left:"right",right:"left",bottom:"top",top:"bottom"};function Bn(e){return e.replace(/left|right|bottom|top/g,function(t){return Nu[t]})}var _u={start:"end",end:"start"};function Hr(e){return e.replace(/start|end/g,function(t){return _u[t]})}function xo(e){var t=ye(e),o=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:o,scrollTop:a}}function No(e){return wt(je(e)).left+xo(e).scrollLeft}function Pu(e){var t=ye(e),o=je(e),a=t.visualViewport,r=o.clientWidth,i=o.clientHeight,s=0,l=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=a.offsetLeft,l=a.offsetTop)),{width:r,height:i,x:s+No(e),y:l}}function Lu(e){var t,o=je(e),a=xo(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=ot(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ot(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-a.scrollLeft+No(e),c=-a.scrollTop;return Pe(r||o).direction==="rtl"&&(l+=ot(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function _o(e){var t=Pe(e),o=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+a)}function Kr(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:ue(e)&&_o(e)?e:Kr(On(e))}function Zt(e,t){var o;t===void 0&&(t=[]);var a=Kr(e),r=a===((o=e.ownerDocument)==null?void 0:o.body),i=ye(a),s=r?[i].concat(i.visualViewport||[],_o(a)?a:[]):a,l=t.concat(s);return r?l:l.concat(Zt(On(s)))}function Po(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vu(e){var t=wt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ur(e,t){return t===Nr?Po(Pu(e)):yt(t)?Vu(t):Po(Lu(je(e)))}function Ru(e){var t=Zt(On(e)),o=["absolute","fixed"].indexOf(Pe(e).position)>=0,a=o&&ue(e)?Jt(e):e;return yt(a)?t.filter(function(r){return yt(r)&&Lr(r,a)&&Se(r)!=="body"}):[]}function Fu(e,t,o){var a=t==="clippingParents"?Ru(e):[].concat(t),r=[].concat(a,[o]),i=r[0],s=r.reduce(function(l,c){var d=Ur(e,c);return l.top=ot(d.top,l.top),l.right=An(d.right,l.right),l.bottom=An(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},Ur(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Wr(e){var t=e.reference,o=e.element,a=e.placement,r=a?ke(a):null,i=a?Ct(a):null,s=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(r){case ae:c={x:s,y:t.y-o.height};break;case de:c={x:s,y:t.y+t.height};break;case fe:c={x:t.x+t.width,y:l};break;case re:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=r?Bo(r):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case gt:c[d]=c[d]-(t[f]/2-o[f]/2);break;case qt:c[d]=c[d]+(t[f]/2-o[f]/2);break}}return c}function Qt(e,t){t===void 0&&(t={});var o=t,a=o.placement,r=a===void 0?e.placement:a,i=o.boundary,s=i===void 0?su:i,l=o.rootBoundary,c=l===void 0?Nr:l,d=o.elementContext,f=d===void 0?Gt:d,u=o.altBoundary,p=u===void 0?!1:u,g=o.padding,h=g===void 0?0:g,m=Fr(typeof h!="number"?h:Dr(h,Wt)),y=f===Gt?lu:Gt,b=e.rects.popper,C=e.elements[p?y:f],I=Fu(yt(C)?C:C.contextElement||je(e.elements.popper),s,c),k=wt(e.elements.reference),v=Wr({reference:k,element:b,strategy:"absolute",placement:r}),S=Po(Object.assign({},b,v)),E=f===Gt?S:k,O={top:I.top-E.top+m.top,bottom:E.bottom-I.bottom+m.bottom,left:I.left-E.left+m.left,right:E.right-I.right+m.right},B=e.modifiersData.offset;if(f===Gt&&B){var N=B[r];Object.keys(O).forEach(function(x){var T=[fe,de].indexOf(x)>=0?1:-1,P=[ae,de].indexOf(x)>=0?"y":"x";O[x]+=N[P]*T})}return O}function Du(e,t){t===void 0&&(t={});var o=t,a=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?Tn:c,f=Ct(a),u=f?l?_r:_r.filter(function(h){return Ct(h)===f}):Wt,p=u.filter(function(h){return d.indexOf(h)>=0});p.length===0&&(p=u);var g=p.reduce(function(h,m){return h[m]=Qt(e,{placement:m,boundary:r,rootBoundary:i,padding:s})[ke(m)],h},{});return Object.keys(g).sort(function(h,m){return g[h]-g[m]})}function $u(e){if(ke(e)===Ao)return[];var t=Bn(e);return[Hr(e),t,Hr(t)]}function zu(e){var t=e.state,o=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,l=s===void 0?!0:s,c=o.fallbackPlacements,d=o.padding,f=o.boundary,u=o.rootBoundary,p=o.altBoundary,g=o.flipVariations,h=g===void 0?!0:g,m=o.allowedAutoPlacements,y=t.options.placement,b=ke(y),C=b===y,I=c||(C||!h?[Bn(y)]:$u(y)),k=[y].concat(I).reduce(function(Ie,ie){return Ie.concat(ke(ie)===Ao?Du(t,{placement:ie,boundary:f,rootBoundary:u,padding:d,flipVariations:h,allowedAutoPlacements:m}):ie)},[]),v=t.rects.reference,S=t.rects.popper,E=new Map,O=!0,B=k[0],N=0;N<k.length;N++){var x=k[N],T=ke(x),P=Ct(x)===gt,q=[ae,de].indexOf(T)>=0,V=q?"width":"height",M=Qt(t,{placement:x,boundary:f,rootBoundary:u,altBoundary:p,padding:d}),$=q?P?fe:re:P?de:ae;v[V]>S[V]&&($=Bn($));var pe=Bn($),Y=[];if(i&&Y.push(M[T]<=0),l&&Y.push(M[$]<=0,M[pe]<=0),Y.every(function(Ie){return Ie})){B=x,O=!1;break}E.set(x,Y)}if(O)for(var Z=h?3:1,ce=function(Ie){var ie=k.find(function(W){var st=E.get(W);if(st)return st.slice(0,Ie).every(function(qe){return qe})});if(ie)return B=ie,"break"},Ee=Z;Ee>0;Ee--){var Bt=ce(Ee);if(Bt==="break")break}t.placement!==B&&(t.modifiersData[a]._skip=!0,t.placement=B,t.reset=!0)}}var ju={name:"flip",enabled:!0,phase:"main",fn:zu,requiresIfExists:["offset"],data:{_skip:!1}};function qr(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Gr(e){return[ae,fe,de,re].some(function(t){return e[t]>=0})}function Hu(e){var t=e.state,o=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,s=Qt(t,{elementContext:"reference"}),l=Qt(t,{altBoundary:!0}),c=qr(s,a),d=qr(l,r,i),f=Gr(c),u=Gr(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}var Ku={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hu};function Uu(e,t,o){var a=ke(e),r=[re,ae].indexOf(a)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,s=i[0],l=i[1];return s=s||0,l=(l||0)*r,[re,fe].indexOf(a)>=0?{x:l,y:s}:{x:s,y:l}}function Wu(e){var t=e.state,o=e.options,a=e.name,r=o.offset,i=r===void 0?[0,0]:r,s=Tn.reduce(function(f,u){return f[u]=Uu(u,t.rects,i),f},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[a]=s}var qu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wu};function Gu(e){var t=e.state,o=e.name;t.modifiersData[o]=Wr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Jr={name:"popperOffsets",enabled:!0,phase:"read",fn:Gu,data:{}};function Ju(e){return e==="x"?"y":"x"}function Yu(e){var t=e.state,o=e.options,a=e.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,l=s===void 0?!1:s,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,u=o.padding,p=o.tether,g=p===void 0?!0:p,h=o.tetherOffset,m=h===void 0?0:h,y=Qt(t,{boundary:c,rootBoundary:d,padding:u,altBoundary:f}),b=ke(t.placement),C=Ct(t.placement),I=!C,k=Bo(b),v=Ju(k),S=t.modifiersData.popperOffsets,E=t.rects.reference,O=t.rects.popper,B=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,N=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(S){if(i){var P,q=k==="y"?ae:re,V=k==="y"?de:fe,M=k==="y"?"height":"width",$=S[k],pe=$+y[q],Y=$-y[V],Z=g?-O[M]/2:0,ce=C===gt?E[M]:O[M],Ee=C===gt?-O[M]:-E[M],Bt=t.elements.arrow,Ie=g&&Bt?Mo(Bt):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rr(),W=ie[q],st=ie[V],qe=Yt(0,E[M],Ie[M]),Gn=I?E[M]/2-Z-qe-W-N.mainAxis:ce-qe-W-N.mainAxis,Jn=I?-E[M]/2+Z+qe+st+N.mainAxis:Ee+qe+st+N.mainAxis,on=t.elements.arrow&&Jt(t.elements.arrow),pa=on?k==="y"?on.clientTop||0:on.clientLeft||0:0,Yn=(P=x==null?void 0:x[k])!=null?P:0,ha=$+Gn-Yn-pa,ma=$+Jn-Yn,lt=Yt(g?An(pe,ha):pe,$,g?ot(Y,ma):Y);S[k]=lt,T[k]=lt-$}if(l){var an,xt=k==="x"?ae:re,Zn=k==="x"?de:fe,Ve=S[v],Nt=v==="y"?"height":"width",rn=Ve+y[xt],Qn=Ve-y[Zn],ct=[ae,re].indexOf(b)!==-1,sn=(an=x==null?void 0:x[v])!=null?an:0,ln=ct?rn:Ve-E[Nt]-O[Nt]-sn+N.altAxis,cn=ct?Ve+E[Nt]+O[Nt]-sn-N.altAxis:Qn,dn=g&&ct?ku(ln,Ve,cn):Yt(g?ln:rn,Ve,g?cn:Qn);S[v]=dn,T[v]=dn-Ve}t.modifiersData[a]=T}}var Zu={name:"preventOverflow",enabled:!0,phase:"main",fn:Yu,requiresIfExists:["offset"]};function Qu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xu(e){return e===ye(e)||!ue(e)?xo(e):Qu(e)}function ep(e){var t=e.getBoundingClientRect(),o=bt(t.width)/e.offsetWidth||1,a=bt(t.height)/e.offsetHeight||1;return o!==1||a!==1}function tp(e,t,o){o===void 0&&(o=!1);var a=ue(t),r=ue(t)&&ep(t),i=je(t),s=wt(e,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!o)&&((Se(t)!=="body"||_o(i))&&(l=Xu(t)),ue(t)?(c=wt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=No(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function np(e){var t=new Map,o=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&r(c)}}),a.push(i)}return e.forEach(function(i){o.has(i.name)||r(i)}),a}function op(e){var t=np(e);return bu.reduce(function(o,a){return o.concat(t.filter(function(r){return r.phase===a}))},[])}function ap(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function rp(e){var t=e.reduce(function(o,a){var r=o[a.name];return o[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,o},{});return Object.keys(t).map(function(o){return t[o]})}var Yr={placement:"bottom",modifiers:[],strategy:"absolute"};function Zr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Lo(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,a=o===void 0?[]:o,r=t.defaultOptions,i=r===void 0?Yr:r;return function(s,l,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yr,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],u=!1,p={state:d,setOptions:function(m){var y=typeof m=="function"?m(d.options):m;h(),d.options=Object.assign({},i,d.options,y),d.scrollParents={reference:yt(s)?Zt(s):s.contextElement?Zt(s.contextElement):[],popper:Zt(l)};var b=op(rp([].concat(a,d.options.modifiers)));return d.orderedModifiers=b.filter(function(C){return C.enabled}),g(),p.update()},forceUpdate:function(){if(!u){var m=d.elements,y=m.reference,b=m.popper;if(Zr(y,b)){d.rects={reference:tp(y,Jt(b),d.options.strategy==="fixed"),popper:Mo(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(O){return d.modifiersData[O.name]=Object.assign({},O.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var I=d.orderedModifiers[C],k=I.fn,v=I.options,S=v===void 0?{}:v,E=I.name;typeof k=="function"&&(d=k({state:d,options:S,name:E,instance:p})||d)}}}},update:ap(function(){return new Promise(function(m){p.forceUpdate(),m(d)})}),destroy:function(){h(),u=!0}};if(!Zr(s,l))return p;p.setOptions(c).then(function(m){!u&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){d.orderedModifiers.forEach(function(m){var y=m.name,b=m.options,C=b===void 0?{}:b,I=m.effect;if(typeof I=="function"){var k=I({state:d,name:y,instance:p,options:C}),v=function(){};f.push(k||v)}})}function h(){f.forEach(function(m){return m()}),f=[]}return p}}Lo();var ip=[jr,Jr,zr,Pr];Lo({defaultModifiers:ip});var sp=[jr,Jr,zr,Pr,qu,ju,Zu,Au,Ku],lp=Lo({defaultModifiers:sp});const cp=(e,t,o={})=>{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const d=dp(c);Object.assign(s.value,d)},requires:["computeStyles"]},r=n.computed(()=>{const{onFirstUpdate:c,placement:d,strategy:f,modifiers:u}=n.unref(o);return{onFirstUpdate:c,placement:d||"bottom",strategy:f||"absolute",modifiers:[...u||[],a,{name:"applyStyles",enabled:!1}]}}),i=n.shallowRef(),s=n.ref({styles:{popper:{position:n.unref(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return n.watch(r,c=>{const d=n.unref(i);d&&d.setOptions(c)},{deep:!0}),n.watch([e,t],([c,d])=>{l(),!(!c||!d)&&(i.value=lp(c,d,n.unref(r)))}),n.onBeforeUnmount(()=>{l()}),{state:n.computed(()=>{var c;return{...((c=n.unref(i))==null?void 0:c.state)||{}}}),styles:n.computed(()=>n.unref(s).styles),attributes:n.computed(()=>n.unref(s).attributes),update:()=>{var c;return(c=n.unref(i))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=n.unref(i))==null?void 0:c.forceUpdate()},instanceRef:n.computed(()=>n.unref(i))}};function dp(e){const t=Object.keys(e.elements),o=So(t.map(r=>[r,e.styles[r]||{}])),a=So(t.map(r=>[r,e.attributes[r]]));return{styles:o,attributes:a}}const Qr=e=>{if(!e)return{onClick:Je,onMousedown:Je,onMouseup:Je};let t=!1,o=!1;return{onClick:s=>{t&&o&&e(s),t=o=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{o=s.target===s.currentTarget}}};function Xr(){let e;const t=(a,r)=>{o(),e=window.setTimeout(a,r)},o=()=>window.clearTimeout(e);return Lt(()=>o()),{registerTimeout:t,cancelTimeout:o}}const Vo={prefix:Math.floor(Math.random()*1e4),current:0},fp=Symbol("elIdInjection"),ei=()=>n.getCurrentInstance()?n.inject(fp,Vo):Vo,at=e=>{const t=ei();!U&&t===Vo&&ne("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
8
8
  usage: app.provide(ID_INJECTION_KEY, {
9
9
  prefix: number,
10
10
  current: number,
11
- })`);const o=Io();return n.computed(()=>n.unref(e)||`${o.value}-id-${t.prefix}-${t.current++}`)};let vt=[];const Xa=e=>{const t=e;t.key===jt.esc&&vt.forEach(o=>o(t))},fp=e=>{n.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",Xa),U&&vt.push(e)}),n.onBeforeUnmount(()=>{vt=vt.filter(t=>t!==e),vt.length===0&&U&&document.removeEventListener("keydown",Xa)})};let er;const tr=()=>{const e=Io(),t=Qa(),o=n.computed(()=>`${e.value}-popper-container-${t.prefix}`),i=n.computed(()=>`#${o.value}`);return{id:o,selector:i}},up=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},pp=()=>{const{id:e,selector:t}=tr();return n.onBeforeMount(()=>{U&&(process.env.NODE_ENV==="test"||!er||!document.body.querySelector(t.value))&&(er=up(e.value))}),{id:e,selector:t}},hp=V({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),mp=({showAfter:e,hideAfter:t,autoClose:o,open:i,close:a})=>{const{registerTimeout:r}=Za(),{registerTimeout:s,cancelTimeout:l}=Za();return{onOpen:f=>{r(()=>{i(f);const u=n.unref(o);G(u)&&u>0&&s(()=>{a(f)},u)},n.unref(e))},onClose:f=>{l(),r(()=>{a(f)},n.unref(t))}}},nr=Symbol("elForwardRef"),gp=e=>{const t=o=>{e.value=o};n.provide(nr,{setForwardRef:t})},yp=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),or={current:0},ir=n.ref(0),ar=2e3,rr=Symbol("elZIndexContextKey"),sr=Symbol("zIndexContextKey"),Vo=e=>{const t=n.getCurrentInstance()?n.inject(rr,or):or,o=e||(n.getCurrentInstance()?n.inject(sr,void 0):void 0),i=n.computed(()=>{const s=n.unref(o);return G(s)?s:ar}),a=n.computed(()=>i.value+ir.value),r=()=>(t.current++,ir.value=t.current,a.value);return!U&&!n.inject(rr)&&ne("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
12
- usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:i,currentZIndex:a,nextZIndex:r}},St=En({type:String,values:Ta,required:!1}),lr=Symbol("size"),bp=()=>{const e=n.inject(lr,{});return n.computed(()=>n.unref(e.size)||"")};function wp(e,{beforeFocus:t,afterFocus:o,beforeBlur:i,afterBlur:a}={}){const r=n.getCurrentInstance(),{emit:s}=r,l=n.shallowRef(),c=n.ref(!1),d=p=>{Q(t)&&t(p)||c.value||(c.value=!0,s("focus",p),o==null||o())},f=p=>{var g;Q(i)&&i(p)||p.relatedTarget&&((g=l.value)!=null&&g.contains(p.relatedTarget))||(c.value=!1,s("blur",p),a==null||a())},u=()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return n.watch(l,p=>{p&&p.setAttribute("tabindex","-1")}),he(l,"focus",d,!0),he(l,"blur",f,!0),he(l,"click",u,!0),process.env.NODE_ENV==="test"&&n.onMounted(()=>{const p=Xe(e.value)?e.value:document.querySelector("input,textarea");p&&(he(p,"focus",d,!0),he(p,"blur",f,!0))}),{isFocused:c,wrapperRef:l,handleFocus:d,handleBlur:f}}function Cp({afterComposition:e,emit:t}){const o=n.ref(!1),i=l=>{t==null||t("compositionstart",l),o.value=!0},a=l=>{var c;t==null||t("compositionupdate",l);const d=(c=l.target)==null?void 0:c.value,f=d[d.length-1]||"";o.value=!Jf(f)},r=l=>{t==null||t("compositionend",l),o.value&&(o.value=!1,n.nextTick(()=>e(l)))};return{isComposing:o,handleComposition:l=>{l.type==="compositionend"?r(l):a(l)},handleCompositionStart:i,handleCompositionUpdate:a,handleCompositionEnd:r}}const cr=Symbol("emptyValuesContextKey"),vp="use-empty-values",Sp=["",void 0,null],kp=void 0,Ep=V({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Q(e)?!e():!e}}),Ip=(e,t)=>{const o=n.getCurrentInstance()?n.inject(cr,n.ref({})):n.ref({}),i=n.computed(()=>e.emptyValues||o.value.emptyValues||Sp),a=n.computed(()=>Q(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Q(o.value.valueOnClear)?o.value.valueOnClear():o.value.valueOnClear!==void 0?o.value.valueOnClear:kp),r=s=>i.value.includes(s);return i.value.includes(a.value)||ne(vp,"value-on-clear should be a value of empty-values"),{emptyValues:i,valueOnClear:a,isEmptyValue:r}},Tp=V({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),at=e=>wa(Tp,e),dr=Symbol(),Bn=n.ref();function Nn(e,t=void 0){const o=n.getCurrentInstance()?n.inject(dr,Bn):Bn;return e?n.computed(()=>{var i,a;return(a=(i=o.value)==null?void 0:i[e])!=null?a:t}):o}function Ap(e,t){const o=Nn(),i=D(e,n.computed(()=>{var l;return((l=o.value)==null?void 0:l.namespace)||Kt})),a=Eo(n.computed(()=>{var l;return(l=o.value)==null?void 0:l.locale})),r=Vo(n.computed(()=>{var l;return((l=o.value)==null?void 0:l.zIndex)||ar})),s=n.computed(()=>{var l;return n.unref(t)||((l=o.value)==null?void 0:l.size)||""});return Op(n.computed(()=>n.unref(o)||{})),{ns:i,locale:a,zIndex:r,size:s}}const Op=(e,t,o=!1)=>{var i;const a=!!n.getCurrentInstance(),r=a?Nn():void 0,s=(i=void 0)!=null?i:a?n.provide:void 0;if(!s){ne("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=n.computed(()=>{const c=n.unref(e);return r!=null&&r.value?Mp(r.value,c):c});return s(dr,l),s(Aa,n.computed(()=>l.value.locale)),s(Oa,n.computed(()=>l.value.namespace)),s(sr,n.computed(()=>l.value.zIndex)),s(lr,{size:n.computed(()=>l.value.size||"")}),s(cr,n.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(o||!Bn.value)&&(Bn.value=l.value),l},Mp=(e,t)=>{const o=[...new Set([...Ca(e),...Ca(t)])],i={};for(const a of o)i[a]=t[a]!==void 0?t[a]:e[a];return i};var R=(e,t)=>{const o=e.__vccOpts||e;for(const[i,a]of t)o[i]=a;return o};const xp=V({size:{type:N([Number,String])},color:{type:String}}),Bp=n.defineComponent({name:"ElIcon",inheritAttrs:!1}),Np=n.defineComponent({...Bp,props:xp,setup(e){const t=e,o=D("icon"),i=n.computed(()=>{const{size:a,color:r}=t;return!a&&!r?{}:{fontSize:ze(a)?void 0:et(a),"--color":r}});return(a,r)=>(n.openBlock(),n.createElementBlock("i",n.mergeProps({class:n.unref(o).b(),style:n.unref(i)},a.$attrs),[n.renderSlot(a.$slots,"default")],16))}});var Pp=R(Np,[["__file","icon.vue"]]);const ke=oe(Pp),Ro=Symbol("formContextKey"),Pn=Symbol("formItemContextKey"),kt=(e,t={})=>{const o=n.ref(void 0),i=t.prop?o:Ma("size"),a=t.global?o:bp(),r=t.form?{size:void 0}:n.inject(Ro,void 0),s=t.formItem?{size:void 0}:n.inject(Pn,void 0);return n.computed(()=>i.value||n.unref(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||a.value||"")},_n=e=>{const t=Ma("disabled"),o=n.inject(Ro,void 0);return n.computed(()=>t.value||n.unref(e)||(o==null?void 0:o.disabled)||!1)},Et=()=>{const e=n.inject(Ro,void 0),t=n.inject(Pn,void 0);return{form:e,formItem:t}},Ln=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:i})=>{o||(o=n.ref(!1)),i||(i=n.ref(!1));const a=n.ref();let r;const s=n.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return n.onMounted(()=>{r=n.watch([n.toRef(e,"id"),o],([l,c])=>{const d=l??(c?void 0:it().value);d!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(i!=null&&i.value)&&!c&&d&&t.addInputId(d)),a.value=d)},{immediate:!0})}),n.onUnmounted(()=>{r&&r(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:s,inputId:a}},It=4,_p={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Lp=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),Fo=Symbol("scrollbarContextKey"),Vp=V({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Rp="Thumb";var fr=R(n.defineComponent({__name:"thumb",props:Vp,setup(e){const t=e,o=n.inject(Fo),i=D("scrollbar");o||Sa(Rp,"can not inject scrollbar context");const a=n.ref(),r=n.ref(),s=n.ref({}),l=n.ref(!1);let c=!1,d=!1,f=U?document.onselectstart:null;const u=n.computed(()=>_p[t.vertical?"vertical":"horizontal"]),p=n.computed(()=>Lp({size:t.size,move:t.move,bar:u.value})),g=n.computed(()=>a.value[u.value.offset]**2/o.wrapElement[u.value.scrollSize]/t.ratio/r.value[u.value.offset]),h=E=>{var I;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(I=window.getSelection())==null||I.removeAllRanges(),y(E);const M=E.currentTarget;M&&(s.value[u.value.axis]=M[u.value.offset]-(E[u.value.client]-M.getBoundingClientRect()[u.value.direction]))},m=E=>{if(!r.value||!a.value||!o.wrapElement)return;const I=Math.abs(E.target.getBoundingClientRect()[u.value.direction]-E[u.value.client]),M=r.value[u.value.offset]/2,x=(I-M)*100*g.value/a.value[u.value.offset];o.wrapElement[u.value.scroll]=x*o.wrapElement[u.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",w),f=document.onselectstart,document.onselectstart=()=>!1},b=E=>{if(!a.value||!r.value||c===!1)return;const I=s.value[u.value.axis];if(!I)return;const M=(a.value.getBoundingClientRect()[u.value.direction]-E[u.value.client])*-1,x=r.value[u.value.offset]-I,B=(M-x)*100*g.value/a.value[u.value.offset];o.wrapElement[u.value.scroll]=B*o.wrapElement[u.value.scrollSize]/100},w=()=>{c=!1,s.value[u.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w),v(),d&&(l.value=!1)},T=()=>{d=!1,l.value=!!t.size},k=()=>{d=!0,l.value=c};n.onBeforeUnmount(()=>{v(),document.removeEventListener("mouseup",w)});const v=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return he(n.toRef(o,"scrollbarElement"),"mousemove",T),he(n.toRef(o,"scrollbarElement"),"mouseleave",k),(E,I)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(i).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref_key:"instance",ref:a,class:n.normalizeClass([n.unref(i).e("bar"),n.unref(i).is(n.unref(u).key)]),onMousedown:m},[n.createElementVNode("div",{ref_key:"thumb",ref:r,class:n.normalizeClass(n.unref(i).e("thumb")),style:n.normalizeStyle(n.unref(p)),onMousedown:h},null,38)],34),[[n.vShow,E.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const Fp=V({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Dp=R(n.defineComponent({__name:"bar",props:Fp,setup(e,{expose:t}){const o=e,i=n.inject(Fo),a=n.ref(0),r=n.ref(0),s=n.ref(""),l=n.ref(""),c=n.ref(1),d=n.ref(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-It,h=p.offsetWidth-It;r.value=p.scrollTop*100/g*c.value,a.value=p.scrollLeft*100/h*d.value}},update:()=>{const p=i==null?void 0:i.wrapElement;if(!p)return;const g=p.offsetHeight-It,h=p.offsetWidth-It,m=g**2/p.scrollHeight,y=h**2/p.scrollWidth,b=Math.max(m,o.minSize),w=Math.max(y,o.minSize);c.value=m/(g-m)/(b/(g-b)),d.value=y/(h-y)/(w/(h-w)),l.value=b+It<g?`${b}px`:"",s.value=w+It<h?`${w}px`:""}}),(p,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(fr,{move:a.value,ratio:d.value,size:s.value,always:p.always},null,8,["move","ratio","size","always"]),n.createVNode(fr,{move:r.value,ratio:c.value,size:l.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const $p=V({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:N([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...at(["ariaLabel","ariaOrientation"])}),zp={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(G)},Do="ElScrollbar",jp=n.defineComponent({name:Do}),Hp=n.defineComponent({...jp,props:$p,emits:zp,setup(e,{expose:t,emit:o}){const i=e,a=D("scrollbar");let r,s,l=0,c=0;const d=n.ref(),f=n.ref(),u=n.ref(),p=n.ref(),g=n.computed(()=>{const v={};return i.height&&(v.height=et(i.height)),i.maxHeight&&(v.maxHeight=et(i.maxHeight)),[i.wrapStyle,v]}),h=n.computed(()=>[i.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!i.native}]),m=n.computed(()=>[a.e("view"),i.viewClass]),y=()=>{var v;f.value&&((v=p.value)==null||v.handleScroll(f.value),l=f.value.scrollTop,c=f.value.scrollLeft,o("scroll",{scrollTop:f.value.scrollTop,scrollLeft:f.value.scrollLeft}))};function b(v,E){te(v)?f.value.scrollTo(v):G(v)&&G(E)&&f.value.scrollTo(v,E)}const w=v=>{if(!G(v)){ne(Do,"value must be a number");return}f.value.scrollTop=v},T=v=>{if(!G(v)){ne(Do,"value must be a number");return}f.value.scrollLeft=v},k=()=>{var v;(v=p.value)==null||v.update()};return n.watch(()=>i.noresize,v=>{v?(r==null||r(),s==null||s()):({stop:r}=Re(u,k),s=he("resize",k))},{immediate:!0}),n.watch(()=>[i.maxHeight,i.height],()=>{i.native||n.nextTick(()=>{var v;k(),f.value&&((v=p.value)==null||v.handleScroll(f.value))})}),n.provide(Fo,n.reactive({scrollbarElement:d,wrapElement:f})),n.onActivated(()=>{f.value&&(f.value.scrollTop=l,f.value.scrollLeft=c)}),n.onMounted(()=>{i.native||n.nextTick(()=>{k()})}),n.onUpdated(()=>k()),t({wrapRef:f,update:k,scrollTo:b,setScrollTop:w,setScrollLeft:T,handleScroll:y}),(v,E)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"scrollbarRef",ref:d,class:n.normalizeClass(n.unref(a).b())},[n.createElementVNode("div",{ref_key:"wrapRef",ref:f,class:n.normalizeClass(n.unref(h)),style:n.normalizeStyle(n.unref(g)),tabindex:v.tabindex,onScroll:y},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(v.tag),{id:v.id,ref_key:"resizeRef",ref:u,class:n.normalizeClass(n.unref(m)),style:n.normalizeStyle(v.viewStyle),role:v.role,"aria-label":v.ariaLabel,"aria-orientation":v.ariaOrientation},{default:n.withCtx(()=>[n.renderSlot(v.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),v.native?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(Dp,{key:0,ref_key:"barRef",ref:p,always:v.always,"min-size":v.minSize},null,8,["always","min-size"]))],2))}});var Kp=R(Hp,[["__file","scrollbar.vue"]]);const Up=oe(Kp),$o=Symbol("popper"),ur=Symbol("popperContent"),pr=V({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Wp=n.defineComponent({name:"ElPopper",inheritAttrs:!1}),qp=n.defineComponent({...Wp,props:pr,setup(e,{expose:t}){const o=e,i=n.ref(),a=n.ref(),r=n.ref(),s=n.ref(),l=n.computed(()=>o.role),c={triggerRef:i,popperInstanceRef:a,contentRef:r,referenceRef:s,role:l};return t(c),n.provide($o,c),(d,f)=>n.renderSlot(d.$slots,"default")}});var Gp=R(qp,[["__file","popper.vue"]]);const hr=V({arrowOffset:{type:Number,default:5}}),Jp=n.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),Yp=n.defineComponent({...Jp,props:hr,setup(e,{expose:t}){const o=e,i=D("popper"),{arrowOffset:a,arrowRef:r,arrowStyle:s}=n.inject(ur,void 0);return n.watch(()=>o.arrowOffset,l=>{a.value=l}),n.onBeforeUnmount(()=>{r.value=void 0}),t({arrowRef:r}),(l,c)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:r,class:n.normalizeClass(n.unref(i).e("arrow")),style:n.normalizeStyle(n.unref(s)),"data-popper-arrow":""},null,6))}});var Zp=R(Yp,[["__file","arrow.vue"]]);const zo="ElOnlyChild",Qp=n.defineComponent({name:zo,setup(e,{slots:t,attrs:o}){var i;const a=n.inject(nr),r=yp((i=a==null?void 0:a.setForwardRef)!=null?i:Je);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,o);if(!l)return null;if(l.length>1)return ne(zo,"requires exact only one valid child."),null;const c=mr(l);return c?n.withDirectives(n.cloneVNode(c,o),[[r]]):(ne(zo,"no valid child node found"),null)}}});function mr(e){if(!e)return null;const t=e;for(const o of t){if(te(o))switch(o.type){case n.Comment:continue;case n.Text:case"svg":return gr(o);case n.Fragment:return mr(o.children);default:return o}return gr(o)}return null}function gr(e){const t=D("only-child");return n.createVNode("span",{class:t.e("content")},[e])}const yr=V({virtualRef:{type:N(Object)},virtualTriggering:Boolean,onMouseenter:{type:N(Function)},onMouseleave:{type:N(Function)},onClick:{type:N(Function)},onKeydown:{type:N(Function)},onFocus:{type:N(Function)},onBlur:{type:N(Function)},onContextmenu:{type:N(Function)},id:String,open:Boolean}),Xp=n.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),eh=n.defineComponent({...Xp,props:yr,setup(e,{expose:t}){const o=e,{role:i,triggerRef:a}=n.inject($o,void 0);gp(a);const r=n.computed(()=>l.value?o.id:void 0),s=n.computed(()=>{if(i&&i.value==="tooltip")return o.open&&o.id?o.id:void 0}),l=n.computed(()=>{if(i&&i.value!=="tooltip")return i.value}),c=n.computed(()=>l.value?`${o.open}`:void 0);let d;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return n.onMounted(()=>{n.watch(()=>o.virtualRef,u=>{u&&(a.value=Oe(u))},{immediate:!0}),n.watch(a,(u,p)=>{d==null||d(),d=void 0,Xe(u)&&(f.forEach(g=>{var h;const m=o[g];m&&(u.addEventListener(g.slice(2).toLowerCase(),m),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,g.slice(2).toLowerCase(),m))}),d=n.watch([r,s,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{Sn(g[m])?u.removeAttribute(h):u.setAttribute(h,g[m])})},{immediate:!0})),Xe(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),n.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,a.value&&Xe(a.value)){const u=a.value;f.forEach(p=>{const g=o[p];g&&u.removeEventListener(p.slice(2).toLowerCase(),g)}),a.value=void 0}}),t({triggerRef:a}),(u,p)=>u.virtualTriggering?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(Qp),n.mergeProps({key:0},u.$attrs,{"aria-controls":n.unref(r),"aria-describedby":n.unref(s),"aria-expanded":n.unref(c),"aria-haspopup":n.unref(l)}),{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var th=R(eh,[["__file","trigger.vue"]]);const jo="focus-trap.focus-after-trapped",Ho="focus-trap.focus-after-released",nh="focus-trap.focusout-prevented",br={cancelable:!0,bubbles:!1},oh={cancelable:!0,bubbles:!1},wr="focusAfterTrapped",Cr="focusAfterReleased",vr=Symbol("elFocusTrap"),Ko=n.ref(),Vn=n.ref(0),Uo=n.ref(0);let Rn=0;const Sr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},kr=(e,t)=>{for(const o of e)if(!ih(o,t))return o},ih=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ah=e=>{const t=Sr(e),o=kr(t,e),i=kr(t.reverse(),e);return[o,i]},rh=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Uo.value=window.performance.now(),e!==o&&rh(e)&&t&&e.select()}};function Er(e,t){const o=[...e],i=e.indexOf(t);return i!==-1&&o.splice(i,1),o}const sh=()=>{let e=[];return{push:i=>{const a=e[0];a&&i!==a&&a.pause(),e=Er(e,i),e.unshift(i)},remove:i=>{var a,r;e=Er(e,i),(r=(a=e[0])==null?void 0:a.resume)==null||r.call(a)}}},lh=(e,t=!1)=>{const o=document.activeElement;for(const i of e)if(He(i,t),document.activeElement!==o)return},Ir=sh(),ch=()=>Vn.value>Uo.value,Fn=()=>{Ko.value="pointer",Vn.value=window.performance.now()},Tr=()=>{Ko.value="keyboard",Vn.value=window.performance.now()},dh=()=>(n.onMounted(()=>{Rn===0&&(document.addEventListener("mousedown",Fn),document.addEventListener("touchstart",Fn),document.addEventListener("keydown",Tr)),Rn++}),n.onBeforeUnmount(()=>{Rn--,Rn<=0&&(document.removeEventListener("mousedown",Fn),document.removeEventListener("touchstart",Fn),document.removeEventListener("keydown",Tr))}),{focusReason:Ko,lastUserFocusTimestamp:Vn,lastAutomatedFocusTimestamp:Uo}),Dn=e=>new CustomEvent(nh,{...oh,detail:e}),fh=n.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[wr,Cr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=n.ref();let i,a;const{focusReason:r}=dh();fp(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:m,altKey:y,ctrlKey:b,metaKey:w,currentTarget:T,shiftKey:k}=h,{loop:v}=e,E=m===jt.tab&&!y&&!b&&!w,I=document.activeElement;if(E&&I){const M=T,[x,B]=ah(M);if(x&&B){if(!k&&I===B){const P=Dn({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||(h.preventDefault(),v&&He(x,!0))}else if(k&&[x,M].includes(I)){const P=Dn({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||(h.preventDefault(),v&&He(B,!0))}}else if(I===M){const P=Dn({focusReason:r.value});t("focusout-prevented",P),P.defaultPrevented||h.preventDefault()}}};n.provide(vr,{focusTrapRef:o,onKeydown:l}),n.watch(()=>e.focusTrapEl,h=>{h&&(o.value=h)},{immediate:!0}),n.watch([o],([h],[m])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",f),h.addEventListener("focusout",u)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",f),m.removeEventListener("focusout",u))});const c=h=>{t(wr,h)},d=h=>t(Cr,h),f=h=>{const m=n.unref(o);if(!m)return;const y=h.target,b=h.relatedTarget,w=y&&m.contains(y);e.trapped||b&&m.contains(b)||(i=b),w&&t("focusin",h),!s.paused&&e.trapped&&(w?a=y:He(a,!0))},u=h=>{const m=n.unref(o);if(!(s.paused||!m))if(e.trapped){const y=h.relatedTarget;!Sn(y)&&!m.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const b=Dn({focusReason:r.value});t("focusout-prevented",b),b.defaultPrevented||He(a,!0)}},0)}else{const y=h.target;y&&m.contains(y)||t("focusout",h)}};async function p(){await n.nextTick();const h=n.unref(o);if(h){Ir.push(s);const m=h.contains(document.activeElement)?i:document.activeElement;if(i=m,!h.contains(m)){const b=new Event(jo,br);h.addEventListener(jo,c),h.dispatchEvent(b),b.defaultPrevented||n.nextTick(()=>{let w=e.focusStartEl;me(w)||(He(w),document.activeElement!==w&&(w="first")),w==="first"&&lh(Sr(h),!0),(document.activeElement===m||w==="container")&&He(h)})}}}function g(){const h=n.unref(o);if(h){h.removeEventListener(jo,c);const m=new CustomEvent(Ho,{...br,detail:{focusReason:r.value}});h.addEventListener(Ho,d),h.dispatchEvent(m),!m.defaultPrevented&&(r.value=="keyboard"||!ch()||h.contains(document.activeElement))&&He(i??document.body),h.removeEventListener(Ho,d),Ir.remove(s)}}return n.onMounted(()=>{e.trapped&&p(),n.watch(()=>e.trapped,h=>{h?p():g()})}),n.onBeforeUnmount(()=>{e.trapped&&g(),o.value&&(o.value.removeEventListener("keydown",l),o.value.removeEventListener("focusin",f),o.value.removeEventListener("focusout",u),o.value=void 0)}),{onKeydown:l}}});function uh(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ar=R(fh,[["render",uh],["__file","focus-trap.vue"]]);const ph=["fixed","absolute"],hh=V({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:N(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Tn,default:"bottom"},popperOptions:{type:N(Object),default:()=>({})},strategy:{type:String,values:ph,default:"absolute"}}),Or=V({...hh,id:String,style:{type:N([String,Array,Object])},className:{type:N([String,Array,Object])},effect:{type:N(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:N([String,Array,Object])},popperStyle:{type:N([String,Array,Object])},referenceEl:{type:N(Object)},triggerTargetEl:{type:N(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...at(["ariaLabel"])}),mh={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},gh=(e,t=[])=>{const{placement:o,strategy:i,popperOptions:a}=e,r={placement:o,strategy:i,...a,modifiers:[...bh(e),...t]};return wh(r,a==null?void 0:a.modifiers),r},yh=e=>{if(U)return Oe(e)};function bh(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:i}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:i}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function wh(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Ch=0,vh=e=>{const{popperInstanceRef:t,contentRef:o,triggerRef:i,role:a}=n.inject($o,void 0),r=n.ref(),s=n.ref(),l=n.computed(()=>({name:"eventListeners",enabled:!!e.visible})),c=n.computed(()=>{var b;const w=n.unref(r),T=(b=n.unref(s))!=null?b:Ch;return{name:"arrow",enabled:!ba(w),options:{element:w,padding:T}}}),d=n.computed(()=>({onFirstUpdate:()=>{h()},...gh(e,[n.unref(c),n.unref(l)])})),f=n.computed(()=>yh(e.referenceEl)||n.unref(i)),{attributes:u,state:p,styles:g,update:h,forceUpdate:m,instanceRef:y}=lp(f,o,d);return n.watch(y,b=>t.value=b),n.onMounted(()=>{n.watch(()=>{var b;return(b=n.unref(f))==null?void 0:b.getBoundingClientRect()},()=>{h()})}),{attributes:u,arrowRef:r,contentRef:o,instanceRef:y,state:p,styles:g,role:a,forceUpdate:m,update:h}},Sh=(e,{attributes:t,styles:o,role:i})=>{const{nextZIndex:a}=Vo(),r=D("popper"),s=n.computed(()=>n.unref(t).popper),l=n.ref(G(e.zIndex)?e.zIndex:a()),c=n.computed(()=>[r.b(),r.is("pure",e.pure),r.is(e.effect),e.popperClass]),d=n.computed(()=>[{zIndex:n.unref(l)},n.unref(o).popper,e.popperStyle||{}]),f=n.computed(()=>i.value==="dialog"?"false":void 0),u=n.computed(()=>n.unref(o).arrow||{});return{ariaModal:f,arrowStyle:u,contentAttrs:s,contentClass:c,contentStyle:d,contentZIndex:l,updateZIndex:()=>{l.value=G(e.zIndex)?e.zIndex:a()}}},kh=(e,t)=>{const o=n.ref(!1),i=n.ref();return{focusStartRef:i,trapped:o,onFocusAfterReleased:d=>{var f;((f=d.detail)==null?void 0:f.focusReason)!=="pointer"&&(i.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:d=>{e.visible&&!o.value&&(d.target&&(i.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{e.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,t("close")}}},Eh=n.defineComponent({name:"ElPopperContent"}),Ih=n.defineComponent({...Eh,props:Or,emits:mh,setup(e,{expose:t,emit:o}){const i=e,{focusStartRef:a,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=kh(i,o),{attributes:u,arrowRef:p,contentRef:g,styles:h,instanceRef:m,role:y,update:b}=vh(i),{ariaModal:w,arrowStyle:T,contentAttrs:k,contentClass:v,contentStyle:E,updateZIndex:I}=Sh(i,{styles:h,attributes:u,role:y}),M=n.inject(Pn,void 0),x=n.ref();n.provide(ur,{arrowStyle:T,arrowRef:p,arrowOffset:x}),M&&n.provide(Pn,{...M,addInputId:Je,removeInputId:Je});let B;const S=(L=!0)=>{b(),L&&I()},P=()=>{S(!1),i.visible&&i.focusOnShow?r.value=!0:i.visible===!1&&(r.value=!1)};return n.onMounted(()=>{n.watch(()=>i.triggerTargetEl,(L,q)=>{B==null||B(),B=void 0;const F=n.unref(L||g.value),O=n.unref(q||g.value);Xe(F)&&(B=n.watch([y,()=>i.ariaLabel,w,()=>i.id],$=>{["role","aria-label","aria-modal","id"].forEach((pe,Y)=>{Sn($[Y])?F.removeAttribute(pe):F.setAttribute(pe,$[Y])})},{immediate:!0})),O!==F&&Xe(O)&&["role","aria-label","aria-modal","id"].forEach($=>{O.removeAttribute($)})},{immediate:!0}),n.watch(()=>i.visible,P,{immediate:!0})}),n.onBeforeUnmount(()=>{B==null||B(),B=void 0}),t({popperContentRef:g,popperInstanceRef:m,updatePopper:S,contentStyle:E}),(L,q)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({ref_key:"contentRef",ref:g},n.unref(k),{style:n.unref(E),class:n.unref(v),tabindex:"-1",onMouseenter:F=>L.$emit("mouseenter",F),onMouseleave:F=>L.$emit("mouseleave",F)}),[n.createVNode(n.unref(Ar),{trapped:n.unref(r),"trap-on-focus-in":!0,"focus-trap-el":n.unref(g),"focus-start-el":n.unref(a),onFocusAfterTrapped:n.unref(l),onFocusAfterReleased:n.unref(s),onFocusin:n.unref(c),onFocusoutPrevented:n.unref(d),onReleaseRequested:n.unref(f)},{default:n.withCtx(()=>[n.renderSlot(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var Th=R(Ih,[["__file","content.vue"]]);const Ah=oe(Gp),Wo=Symbol("elTooltip"),se=V({...hp,...Or,appendTo:{type:N([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:N(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...at(["ariaLabel"])}),Qt=V({...yr,disabled:Boolean,trigger:{type:N([String,Array]),default:"hover"},triggerKeys:{type:N(Array),default:()=>[jt.enter,jt.space]}}),{useModelToggleProps:Oh,useModelToggleEmits:Mh,useModelToggle:xh}=au("visible"),Bh=V({...pr,...Oh,...se,...Qt,...hr,showArrow:{type:Boolean,default:!0}}),Nh=[...Mh,"before-show","before-hide","show","hide","open","close"],Ph=(e,t)=>ee(e)?e.includes(t):e===t,Tt=(e,t,o)=>i=>{Ph(n.unref(e),t)&&o(i)},_h=n.defineComponent({name:"ElTooltipTrigger"}),Lh=n.defineComponent({..._h,props:Qt,setup(e,{expose:t}){const o=e,i=D("tooltip"),{controlled:a,id:r,open:s,onOpen:l,onClose:c,onToggle:d}=n.inject(Wo,void 0),f=n.ref(null),u=()=>{if(n.unref(a)||o.disabled)return!0},p=n.toRef(o,"trigger"),g=Ae(u,Tt(p,"hover",l)),h=Ae(u,Tt(p,"hover",c)),m=Ae(u,Tt(p,"click",k=>{k.button===0&&d(k)})),y=Ae(u,Tt(p,"focus",l)),b=Ae(u,Tt(p,"focus",c)),w=Ae(u,Tt(p,"contextmenu",k=>{k.preventDefault(),d(k)})),T=Ae(u,k=>{const{code:v}=k;o.triggerKeys.includes(v)&&(k.preventDefault(),d(k))});return t({triggerRef:f}),(k,v)=>(n.openBlock(),n.createBlock(n.unref(th),{id:n.unref(r),"virtual-ref":k.virtualRef,open:n.unref(s),"virtual-triggering":k.virtualTriggering,class:n.normalizeClass(n.unref(i).e("trigger")),onBlur:n.unref(b),onClick:n.unref(m),onContextmenu:n.unref(w),onFocus:n.unref(y),onMouseenter:n.unref(g),onMouseleave:n.unref(h),onKeydown:n.unref(T)},{default:n.withCtx(()=>[n.renderSlot(k.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Vh=R(Lh,[["__file","trigger.vue"]]);const Rh=V({to:{type:N([String,Object]),required:!0},disabled:Boolean});var Fh=R(n.defineComponent({__name:"teleport",props:Rh,setup(e){return(t,o)=>t.disabled?n.renderSlot(t.$slots,"default",{key:0}):(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:t.to},[n.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const Mr=oe(Fh),Dh=n.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),$h=n.defineComponent({...Dh,props:se,setup(e,{expose:t}){const o=e,{selector:i}=tr(),a=D("tooltip"),r=n.ref(null);let s;const{controlled:l,id:c,open:d,trigger:f,onClose:u,onOpen:p,onShow:g,onHide:h,onBeforeShow:m,onBeforeHide:y}=n.inject(Wo,void 0),b=n.computed(()=>o.transition||`${a.namespace.value}-fade-in-linear`),w=n.computed(()=>process.env.NODE_ENV==="test"?!0:o.persistent);n.onBeforeUnmount(()=>{s==null||s()});const T=n.computed(()=>n.unref(w)?!0:n.unref(d)),k=n.computed(()=>o.disabled?!1:n.unref(d)),v=n.computed(()=>o.appendTo||i.value),E=n.computed(()=>{var O;return(O=o.style)!=null?O:{}}),I=n.ref(!0),M=()=>{h(),I.value=!0},x=()=>{if(n.unref(l))return!0},B=Ae(x,()=>{o.enterable&&n.unref(f)==="hover"&&p()}),S=Ae(x,()=>{n.unref(f)==="hover"&&u()}),P=()=>{var O,$;($=(O=r.value)==null?void 0:O.updatePopper)==null||$.call(O),m==null||m()},L=()=>{y==null||y()},q=()=>{g(),s=Ms(n.computed(()=>{var O;return(O=r.value)==null?void 0:O.popperContentRef}),()=>{if(n.unref(l))return;n.unref(f)!=="hover"&&u()})},F=()=>{o.virtualTriggering||u()};return n.watch(()=>n.unref(d),O=>{O?I.value=!1:s==null||s()},{flush:"post"}),n.watch(()=>o.content,()=>{var O,$;($=(O=r.value)==null?void 0:O.updatePopper)==null||$.call(O)}),t({contentRef:r}),(O,$)=>(n.openBlock(),n.createBlock(n.unref(Mr),{disabled:!O.teleported,to:n.unref(v)},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:n.unref(b),onAfterLeave:M,onBeforeEnter:P,onAfterEnter:q,onBeforeLeave:L},{default:n.withCtx(()=>[n.unref(T)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(Th),n.mergeProps({key:0,id:n.unref(c),ref_key:"contentRef",ref:r},O.$attrs,{"aria-label":O.ariaLabel,"aria-hidden":I.value,"boundaries-padding":O.boundariesPadding,"fallback-placements":O.fallbackPlacements,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,placement:O.placement,"popper-options":O.popperOptions,strategy:O.strategy,effect:O.effect,enterable:O.enterable,pure:O.pure,"popper-class":O.popperClass,"popper-style":[O.popperStyle,n.unref(E)],"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,visible:n.unref(k),"z-index":O.zIndex,onMouseenter:n.unref(B),onMouseleave:n.unref(S),onBlur:F,onClose:n.unref(u)}),{default:n.withCtx(()=>[n.renderSlot(O.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[n.vShow,n.unref(k)]]):n.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var zh=R($h,[["__file","content.vue"]]);const jh=n.defineComponent({name:"ElTooltip"}),Hh=n.defineComponent({...jh,props:Bh,emits:Nh,setup(e,{expose:t,emit:o}){const i=e;pp();const a=it(),r=n.ref(),s=n.ref(),l=()=>{var b;const w=n.unref(r);w&&((b=w.popperInstanceRef)==null||b.update())},c=n.ref(!1),d=n.ref(),{show:f,hide:u,hasUpdateHandler:p}=xh({indicator:c,toggleReason:d}),{onOpen:g,onClose:h}=mp({showAfter:n.toRef(i,"showAfter"),hideAfter:n.toRef(i,"hideAfter"),autoClose:n.toRef(i,"autoClose"),open:f,close:u}),m=n.computed(()=>Pe(i.visible)&&!p.value);n.provide(Wo,{controlled:m,id:a,open:n.readonly(c),trigger:n.toRef(i,"trigger"),onOpen:b=>{g(b)},onClose:b=>{h(b)},onToggle:b=>{n.unref(c)?h(b):g(b)},onShow:()=>{o("show",d.value)},onHide:()=>{o("hide",d.value)},onBeforeShow:()=>{o("before-show",d.value)},onBeforeHide:()=>{o("before-hide",d.value)},updatePopper:l}),n.watch(()=>i.disabled,b=>{b&&c.value&&(c.value=!1)});const y=b=>{var w,T;const k=(T=(w=s.value)==null?void 0:w.contentRef)==null?void 0:T.popperContentRef,v=(b==null?void 0:b.relatedTarget)||document.activeElement;return k&&k.contains(v)};return n.onDeactivated(()=>c.value&&u()),t({popperRef:r,contentRef:s,isFocusInsideContent:y,updatePopper:l,onOpen:g,onClose:h,hide:u}),(b,w)=>(n.openBlock(),n.createBlock(n.unref(Ah),{ref_key:"popperRef",ref:r,role:b.role},{default:n.withCtx(()=>[n.createVNode(Vh,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:n.withCtx(()=>[b.$slots.default?n.renderSlot(b.$slots,"default",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),n.createVNode(zh,{ref_key:"contentRef",ref:s,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":b.popperClass,"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"content",{},()=>[b.rawContent?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(b.content),1))]),b.showArrow?(n.openBlock(),n.createBlock(n.unref(Zp),{key:0,"arrow-offset":b.arrowOffset},null,8,["arrow-offset"])):n.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Kh=R(Hh,[["__file","tooltip.vue"]]);const xr=oe(Kh),Br=Symbol("buttonGroupContextKey"),Uh=(e,t)=>{mt({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},n.computed(()=>e.type==="text"));const o=n.inject(Br,void 0),i=Nn("button"),{form:a}=Et(),r=kt(n.computed(()=>o==null?void 0:o.size)),s=_n(),l=n.ref(),c=n.useSlots(),d=n.computed(()=>e.type||(o==null?void 0:o.type)||""),f=n.computed(()=>{var h,m,y;return(y=(m=e.autoInsertSpace)!=null?m:(h=i.value)==null?void 0:h.autoInsertSpace)!=null?y:!1}),u=n.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=n.computed(()=>{var h;const m=(h=c.default)==null?void 0:h.call(c);if(f.value&&(m==null?void 0:m.length)===1){const y=m[0];if((y==null?void 0:y.type)===n.Text){const b=y.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:s,_size:r,_type:d,_ref:l,_props:u,shouldAddSpace:p,handleClick:h=>{if(s.value||e.loading){h.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",h)}}},qo=V({size:St,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:ht},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:ht,default:()=>K.Loading},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:N([String,Object]),default:"button"}}),Wh={click:e=>e instanceof MouseEvent};function J(e,t){qh(e)&&(e="100%");var o=Gh(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function $n(e){return Math.min(1,Math.max(0,e))}function qh(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Gh(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Nr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function zn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rt(e){return e.length===1?"0"+e:String(e)}function Jh(e,t,o){return{r:J(e,255)*255,g:J(t,255)*255,b:J(o,255)*255}}function Pr(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),a=Math.min(e,t,o),r=0,s=0,l=(i+a)/2;if(i===a)s=0,r=0;else{var c=i-a;switch(s=l>.5?c/(2-i-a):c/(i+a),i){case e:r=(t-o)/c+(t<o?6:0);break;case t:r=(o-e)/c+2;break;case o:r=(e-t)/c+4;break}r/=6}return{h:r,s,l}}function Go(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Yh(e,t,o){var i,a,r;if(e=J(e,360),t=J(t,100),o=J(o,100),t===0)a=o,r=o,i=o;else{var s=o<.5?o*(1+t):o+t-o*t,l=2*o-s;i=Go(l,s,e+1/3),a=Go(l,s,e),r=Go(l,s,e-1/3)}return{r:i*255,g:a*255,b:r*255}}function _r(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),a=Math.min(e,t,o),r=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)r=0;else{switch(i){case e:r=(t-o)/l+(t<o?6:0);break;case t:r=(o-e)/l+2;break;case o:r=(e-t)/l+4;break}r/=6}return{h:r,s:c,v:s}}function Zh(e,t,o){e=J(e,360)*6,t=J(t,100),o=J(o,100);var i=Math.floor(e),a=e-i,r=o*(1-t),s=o*(1-a*t),l=o*(1-(1-a)*t),c=i%6,d=[o,s,r,r,l,o][c],f=[l,o,o,s,r,r][c],u=[r,r,l,o,o,s][c];return{r:d*255,g:f*255,b:u*255}}function Lr(e,t,o,i){var a=[rt(Math.round(e).toString(16)),rt(Math.round(t).toString(16)),rt(Math.round(o).toString(16))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Qh(e,t,o,i,a){var r=[rt(Math.round(e).toString(16)),rt(Math.round(t).toString(16)),rt(Math.round(o).toString(16)),rt(Xh(i))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))&&r[3].startsWith(r[3].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function Xh(e){return Math.round(parseFloat(e)*255).toString(16)}function Vr(e){return le(e)/255}function le(e){return parseInt(e,16)}function em(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Jo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function tm(e){var t={r:0,g:0,b:0},o=1,i=null,a=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=im(e)),typeof e=="object"&&(Le(e.r)&&Le(e.g)&&Le(e.b)?(t=Jh(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Le(e.h)&&Le(e.s)&&Le(e.v)?(i=zn(e.s),a=zn(e.v),t=Zh(e.h,i,a),s=!0,l="hsv"):Le(e.h)&&Le(e.s)&&Le(e.l)&&(i=zn(e.s),r=zn(e.l),t=Yh(e.h,i,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Nr(o),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:o}}var nm="[-\\+]?\\d+%?",om="[-\\+]?\\d*\\.\\d+%?",Ke="(?:".concat(om,")|(?:").concat(nm,")"),Yo="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),Zo="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),be={CSS_UNIT:new RegExp(Ke),rgb:new RegExp("rgb"+Yo),rgba:new RegExp("rgba"+Zo),hsl:new RegExp("hsl"+Yo),hsla:new RegExp("hsla"+Zo),hsv:new RegExp("hsv"+Yo),hsva:new RegExp("hsva"+Zo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function im(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Jo[e])e=Jo[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=be.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=be.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=be.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=be.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=be.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=be.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=be.hex8.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),a:Vr(o[4]),format:t?"name":"hex8"}:(o=be.hex6.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),format:t?"name":"hex"}:(o=be.hex4.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),a:Vr(o[4]+o[4]),format:t?"name":"hex8"}:(o=be.hex3.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Le(e){return!!be.CSS_UNIT.exec(String(e))}var am=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=em(t)),this.originalInput=t;var a=tm(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=o.format)!==null&&i!==void 0?i:a.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),o,i,a,r=t.r/255,s=t.g/255,l=t.b/255;return r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*o+.7152*i+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Nr(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=_r(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=_r(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(i,"%, ").concat(a,"%)"):"hsva(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Pr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Pr(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(i,"%, ").concat(a,"%)"):"hsla(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Lr(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Qh(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),o=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(i,")"):"rgba(".concat(t,", ").concat(o,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(J(o,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(o){return Math.round(J(o,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Lr(this.r,this.g,this.b,!1),o=0,i=Object.entries(Jo);o<i.length;o++){var a=i[o],r=a[0],s=a[1];if(t===s)return r}return!1},e.prototype.toString=function(t){var o=!!t;t=t??this.format;var i=!1,a=this.a<1&&this.a>=0,r=!o&&a&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l+=t/100,o.l=$n(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=$n(o.l),new e(o)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s-=t/100,o.s=$n(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=$n(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),i=(o.h+t)%360;return o.h=i<0?360+i:i,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var i=this.toRgb(),a=new e(t).toRgb(),r=o/100,s={r:(a.r-i.r)*r+i.r,g:(a.g-i.g)*r+i.g,b:(a.b-i.b)*r+i.b,a:(a.a-i.a)*r+i.a};return new e(s)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var i=this.toHsl(),a=360/o,r=[this];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,r.push(new e(i));return r},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var o=this.toHsv(),i=o.h,a=o.s,r=o.v,s=[],l=1/t;t--;)s.push(new e({h:i,s:a,v:r})),r=(r+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),i=new e(t).toRgb(),a=o.a+i.a*(1-o.a);return new e({r:(o.r*o.a+i.r*i.a*(1-o.a))/a,g:(o.g*o.a+i.g*i.a*(1-o.a))/a,b:(o.b*o.a+i.b*i.a*(1-o.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var o=this.toHsl(),i=o.h,a=[this],r=360/t,s=1;s<t;s++)a.push(new e({h:(i+s*r)%360,s:o.s,l:o.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ue(e,t=20){return e.mix("#141414",t).toString()}function rm(e){const t=_n(),o=D("button");return n.computed(()=>{let i={},a=e.color;if(a){const r=a.match(/var\((.*?)\)/);r&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(r[1]));const s=new am(a),l=e.dark?s.tint(20).toString():Ue(s,20);if(e.plain)i=o.cssVarBlock({"bg-color":e.dark?Ue(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?Ue(s,50):s.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":l,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(i[o.cssVarBlockName("disabled-bg-color")]=e.dark?Ue(s,90):s.tint(90).toString(),i[o.cssVarBlockName("disabled-text-color")]=e.dark?Ue(s,50):s.tint(50).toString(),i[o.cssVarBlockName("disabled-border-color")]=e.dark?Ue(s,80):s.tint(80).toString());else{const c=e.dark?Ue(s,30):s.tint(30).toString(),d=s.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(i=o.cssVarBlock({"bg-color":a,"text-color":d,"border-color":a,"hover-bg-color":c,"hover-text-color":d,"hover-border-color":c,"active-bg-color":l,"active-border-color":l}),t.value){const f=e.dark?Ue(s,50):s.tint(50).toString();i[o.cssVarBlockName("disabled-bg-color")]=f,i[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,i[o.cssVarBlockName("disabled-border-color")]=f}}}return i})}const sm=n.defineComponent({name:"ElButton"}),lm=n.defineComponent({...sm,props:qo,emits:Wh,setup(e,{expose:t,emit:o}){const i=e,a=rm(i),r=D("button"),{_ref:s,_size:l,_type:c,_disabled:d,_props:f,shouldAddSpace:u,handleClick:p}=Uh(i,o),g=n.computed(()=>[r.b(),r.m(c.value),r.m(l.value),r.is("disabled",d.value),r.is("loading",i.loading),r.is("plain",i.plain),r.is("round",i.round),r.is("circle",i.circle),r.is("text",i.text),r.is("link",i.link),r.is("has-bg",i.bg)]);return t({ref:s,size:l,type:c,disabled:d,shouldAddSpace:u}),(h,m)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.tag),n.mergeProps({ref_key:"_ref",ref:s},n.unref(f),{class:n.unref(g),style:n.unref(a),onClick:n.unref(p)}),{default:n.withCtx(()=>[h.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[h.$slots.loading?n.renderSlot(h.$slots,"loading",{key:0}):(n.openBlock(),n.createBlock(n.unref(ke),{key:1,class:n.normalizeClass(n.unref(r).is("loading"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(n.openBlock(),n.createBlock(n.unref(ke),{key:1},{default:n.withCtx(()=>[h.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.icon),{key:0})):n.renderSlot(h.$slots,"icon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0),h.$slots.default?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass({[n.unref(r).em("text","expand")]:n.unref(u)})},[n.renderSlot(h.$slots,"default")],2)):n.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var cm=R(lm,[["__file","button.vue"]]);const dm={size:qo.size,type:qo.type},fm=n.defineComponent({name:"ElButtonGroup"}),um=n.defineComponent({...fm,props:dm,setup(e){const t=e;n.provide(Br,n.reactive({size:n.toRef(t,"size"),type:n.toRef(t,"type")}));const o=D("button");return(i,a)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).b("group"))},[n.renderSlot(i.$slots,"default")],2))}});var Rr=R(um,[["__file","button-group.vue"]]);const Fr=oe(cm,{ButtonGroup:Rr});tt(Rr);var pm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const We=new Map;if(U){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const o of We.values())for(const{documentHandler:i}of o)i(t,e);e=void 0}})}function Dr(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:Xe(t.arg)&&o.push(t.arg),function(i,a){const r=t.instance.popperRef,s=i.target,l=a==null?void 0:a.target,c=!t||!t.instance,d=!s||!l,f=e.contains(s)||e.contains(l),u=e===s,p=o.length&&o.some(h=>h==null?void 0:h.contains(s))||o.length&&o.includes(l),g=r&&(r.contains(s)||r.contains(l));c||d||f||u||p||g||t.value(i,a)}}const mm={beforeMount(e,t){We.has(e)||We.set(e,[]),We.get(e).push({documentHandler:Dr(e,t),bindingFn:t.value})},updated(e,t){We.has(e)||We.set(e,[]);const o=We.get(e),i=o.findIndex(r=>r.bindingFn===t.oldValue),a={documentHandler:Dr(e,t),bindingFn:t.value};i>=0?o.splice(i,1,a):o.push(a)},unmounted(e){We.delete(e)}},$r={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:St,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...at(["ariaControls"])},zr={[X]:e=>me(e)||G(e)||Pe(e),change:e=>me(e)||G(e)||Pe(e)},At=Symbol("checkboxGroupContextKey"),gm=({model:e,isChecked:t})=>{const o=n.inject(At,void 0),i=n.computed(()=>{var r,s;const l=(r=o==null?void 0:o.max)==null?void 0:r.value,c=(s=o==null?void 0:o.min)==null?void 0:s.value;return!ze(l)&&e.value.length>=l&&!t.value||!ze(c)&&e.value.length<=c&&t.value});return{isDisabled:_n(n.computed(()=>(o==null?void 0:o.disabled.value)||i.value)),isLimitDisabled:i}},ym=(e,{model:t,isLimitExceeded:o,hasOwnLabel:i,isDisabled:a,isLabeledByFormItem:r})=>{const s=n.inject(At,void 0),{formItem:l}=Et(),{emit:c}=n.getCurrentInstance();function d(h){var m,y,b,w;return[!0,e.trueValue,e.trueLabel].includes(h)?(y=(m=e.trueValue)!=null?m:e.trueLabel)!=null?y:!0:(w=(b=e.falseValue)!=null?b:e.falseLabel)!=null?w:!1}function f(h,m){c("change",d(h),m)}function u(h){if(o.value)return;const m=h.target;c("change",d(m.checked),h)}async function p(h){o.value||!i.value&&!a.value&&r.value&&(h.composedPath().some(b=>b.tagName==="LABEL")||(t.value=d([!1,e.falseValue,e.falseLabel].includes(t.value)),await n.nextTick(),f(t.value,h)))}const g=n.computed(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return n.watch(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(h=>ne(h)))}),{handleChange:u,onClickRoot:p}},bm=e=>{const t=n.ref(!1),{emit:o}=n.getCurrentInstance(),i=n.inject(At,void 0),a=n.computed(()=>ze(i)===!1),r=n.ref(!1),s=n.computed({get(){var l,c;return a.value?(l=i==null?void 0:i.modelValue)==null?void 0:l.value:(c=e.modelValue)!=null?c:t.value},set(l){var c,d;a.value&&ee(l)?(r.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&l.length>(i==null?void 0:i.max.value)&&l.length>s.value.length,r.value===!1&&((d=i==null?void 0:i.changeEvent)==null||d.call(i,l))):(o(X,l),t.value=l)}});return{model:s,isGroup:a,isLimitExceeded:r}},wm=(e,t,{model:o})=>{const i=n.inject(At,void 0),a=n.ref(!1),r=n.computed(()=>$t(e.value)?e.label:e.value),s=n.computed(()=>{const f=o.value;return Pe(f)?f:ee(f)?te(r.value)?f.map(n.toRaw).some(u=>vn(u,r.value)):f.map(n.toRaw).includes(r.value):f!=null?f===e.trueValue||f===e.trueLabel:!!f}),l=kt(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value}),{prop:!0}),c=kt(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value})),d=n.computed(()=>!!t.default||!$t(r.value));return{checkboxButtonSize:l,isChecked:s,isFocused:a,checkboxSize:c,hasOwnLabel:d,actualValue:r}},jr=(e,t)=>{const{formItem:o}=Et(),{model:i,isGroup:a,isLimitExceeded:r}=bm(e),{isFocused:s,isChecked:l,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,actualValue:u}=wm(e,t,{model:i}),{isDisabled:p}=gm({model:i,isChecked:l}),{inputId:g,isLabeledByFormItem:h}=Ln(e,{formItemContext:o,disableIdGeneration:f,disableIdManagement:a}),{handleChange:m,onClickRoot:y}=ym(e,{model:i,isLimitExceeded:r,hasOwnLabel:f,isDisabled:p,isLabeledByFormItem:h});return(()=>{function w(){var T,k;ee(i.value)&&!i.value.includes(u.value)?i.value.push(u.value):i.value=(k=(T=e.trueValue)!=null?T:e.trueLabel)!=null?k:!0}e.checked&&w()})(),mt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>a.value&&$t(e.value))),mt({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.trueLabel)),mt({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:h,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,model:i,actualValue:u,handleChange:m,onClickRoot:y}},Cm=n.defineComponent({name:"ElCheckbox"}),vm=n.defineComponent({...Cm,props:$r,emits:zr,setup(e){const t=e,o=n.useSlots(),{inputId:i,isLabeledByFormItem:a,isChecked:r,isDisabled:s,isFocused:l,checkboxSize:c,hasOwnLabel:d,model:f,actualValue:u,handleChange:p,onClickRoot:g}=jr(t,o),h=D("checkbox"),m=n.computed(()=>[h.b(),h.m(c.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",r.value)]),y=n.computed(()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",r.value),h.is("indeterminate",t.indeterminate),h.is("focus",l.value)]);return(b,w)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(!n.unref(d)&&n.unref(a)?"span":"label"),{class:n.normalizeClass(n.unref(m)),"aria-controls":b.indeterminate?b.ariaControls:null,onClick:n.unref(g)},{default:n.withCtx(()=>{var T,k,v,E;return[n.createElementVNode("span",{class:n.normalizeClass(n.unref(y))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,id:n.unref(i),"onUpdate:modelValue":I=>n.isRef(f)?f.value=I:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:n.unref(s),"true-value":(k=(T=b.trueValue)!=null?T:b.trueLabel)!=null?k:!0,"false-value":(E=(v=b.falseValue)!=null?v:b.falseLabel)!=null?E:!1,onChange:n.unref(p),onFocus:I=>l.value=!0,onBlur:I=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,id:n.unref(i),"onUpdate:modelValue":I=>n.isRef(f)?f.value=I:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:n.unref(s),value:n.unref(u),name:b.name,tabindex:b.tabindex,onChange:n.unref(p),onFocus:I=>l.value=!0,onBlur:I=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(h).e("inner"))},null,2)],2),n.unref(d)?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(h).e("label"))},[n.renderSlot(b.$slots,"default"),b.$slots.default?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(b.label),1)],64))],2)):n.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var Sm=R(vm,[["__file","checkbox.vue"]]);const km=n.defineComponent({name:"ElCheckboxButton"}),Em=n.defineComponent({...km,props:$r,emits:zr,setup(e){const t=e,o=n.useSlots(),{isFocused:i,isChecked:a,isDisabled:r,checkboxButtonSize:s,model:l,actualValue:c,handleChange:d}=jr(t,o),f=n.inject(At,void 0),u=D("checkbox"),p=n.computed(()=>{var h,m,y,b;const w=(m=(h=f==null?void 0:f.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:w,borderColor:w,color:(b=(y=f==null?void 0:f.textColor)==null?void 0:y.value)!=null?b:"",boxShadow:w?`-1px 0 0 0 ${w}`:void 0}}),g=n.computed(()=>[u.b("button"),u.bm("button",s.value),u.is("disabled",r.value),u.is("checked",a.value),u.is("focus",i.value)]);return(h,m)=>{var y,b,w,T;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(n.unref(g))},[h.trueValue||h.falseValue||h.trueLabel||h.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":k=>n.isRef(l)?l.value=k:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(r),"true-value":(b=(y=h.trueValue)!=null?y:h.trueLabel)!=null?b:!0,"false-value":(T=(w=h.falseValue)!=null?w:h.falseLabel)!=null?T:!1,onChange:n.unref(d),onFocus:k=>i.value=!0,onBlur:k=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,"onUpdate:modelValue":k=>n.isRef(l)?l.value=k:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(r),value:n.unref(c),onChange:n.unref(d),onFocus:k=>i.value=!0,onBlur:k=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]),h.$slots.default||h.label?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(u).be("button","inner")),style:n.normalizeStyle(n.unref(a)?n.unref(p):void 0)},[n.renderSlot(h.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(h.label),1)])],6)):n.createCommentVNode("v-if",!0)],2)}}});var Hr=R(Em,[["__file","checkbox-button.vue"]]);const Im=V({modelValue:{type:N(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:St,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),Tm={[X]:e=>ee(e),change:e=>ee(e)},Am=n.defineComponent({name:"ElCheckboxGroup"}),Om=n.defineComponent({...Am,props:Im,emits:Tm,setup(e,{emit:t}){const o=e,i=D("checkbox"),{formItem:a}=Et(),{inputId:r,isLabeledByFormItem:s}=Ln(o,{formItemContext:a}),l=async d=>{t(X,d),await n.nextTick(),t("change",d)},c=n.computed({get(){return o.modelValue},set(d){l(d)}});return n.provide(At,{...wa(n.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(d=>ne(d)))}),(d,f)=>{var u;return n.openBlock(),n.createBlock(n.resolveDynamicComponent(d.tag),{id:n.unref(r),class:n.normalizeClass(n.unref(i).b("group")),role:"group","aria-label":n.unref(s)?void 0:d.ariaLabel||"checkbox-group","aria-labelledby":n.unref(s)?(u=n.unref(a))==null?void 0:u.labelId:void 0},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Kr=R(Om,[["__file","checkbox-group.vue"]]);const Ur=oe(Sm,{CheckboxButton:Hr,CheckboxGroup:Kr});tt(Hr);const Wr=tt(Kr),qr=V({modelValue:{type:[String,Number,Boolean],default:void 0},size:St,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Mm=V({...qr,border:Boolean}),Gr={[X]:e=>me(e)||G(e)||Pe(e),[ko]:e=>me(e)||G(e)||Pe(e)},Jr=Symbol("radioGroupKey"),Yr=(e,t)=>{const o=n.ref(),i=n.inject(Jr,void 0),a=n.computed(()=>!!i),r=n.computed(()=>$t(e.value)?e.label:e.value),s=n.computed({get(){return a.value?i.modelValue:e.modelValue},set(u){a.value?i.changeEvent(u):t&&t(X,u),o.value.checked=e.modelValue===r.value}}),l=kt(n.computed(()=>i==null?void 0:i.size)),c=_n(n.computed(()=>i==null?void 0:i.disabled)),d=n.ref(!1),f=n.computed(()=>c.value||a.value&&s.value!==r.value?-1:0);return mt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},n.computed(()=>a.value&&$t(e.value))),{radioRef:o,isGroup:a,radioGroup:i,focus:d,size:l,disabled:c,tabIndex:f,modelValue:s,actualValue:r}},xm=n.defineComponent({name:"ElRadio"}),Bm=n.defineComponent({...xm,props:Mm,emits:Gr,setup(e,{emit:t}){const o=e,i=D("radio"),{radioRef:a,radioGroup:r,focus:s,size:l,disabled:c,modelValue:d,actualValue:f}=Yr(o,t);function u(){n.nextTick(()=>t("change",d.value))}return(p,g)=>{var h;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(i).b(),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("focus",n.unref(s)),n.unref(i).is("bordered",p.border),n.unref(i).is("checked",n.unref(d)===n.unref(f)),n.unref(i).m(n.unref(l))])},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(i).e("input"),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("checked",n.unref(d)===n.unref(f))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":m=>n.isRef(d)?d.value=m:null,class:n.normalizeClass(n.unref(i).e("original")),value:n.unref(f),name:p.name||((h=n.unref(r))==null?void 0:h.name),disabled:n.unref(c),checked:n.unref(d)===n.unref(f),type:"radio",onFocus:m=>s.value=!0,onBlur:m=>s.value=!1,onChange:u,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(d)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("inner"))},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("label")),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(p.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(p.label),1)])],42,["onKeydown"])],2)}}});var Nm=R(Bm,[["__file","radio.vue"]]);const Pm=V({...qr}),_m=n.defineComponent({name:"ElRadioButton"}),Lm=n.defineComponent({..._m,props:Pm,setup(e){const t=e,o=D("radio"),{radioRef:i,focus:a,size:r,disabled:s,modelValue:l,radioGroup:c,actualValue:d}=Yr(t),f=n.computed(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(u,p)=>{var g;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(o).b("button"),n.unref(o).is("active",n.unref(l)===n.unref(d)),n.unref(o).is("disabled",n.unref(s)),n.unref(o).is("focus",n.unref(a)),n.unref(o).bm("button",n.unref(r))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":h=>n.isRef(l)?l.value=h:null,class:n.normalizeClass(n.unref(o).be("button","original-radio")),value:n.unref(d),type:"radio",name:u.name||((g=n.unref(c))==null?void 0:g.name),disabled:n.unref(s),onFocus:h=>a.value=!0,onBlur:h=>a.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(l)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(o).be("button","inner")),style:n.normalizeStyle(n.unref(l)===n.unref(d)?n.unref(f):{}),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(u.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.label),1)])],46,["onKeydown"])],2)}}});var Zr=R(Lm,[["__file","radio-button.vue"]]);const Vm=V({id:{type:String,default:void 0},size:St,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),Rm=Gr,Fm=n.defineComponent({name:"ElRadioGroup"}),Dm=n.defineComponent({...Fm,props:Vm,emits:Rm,setup(e,{emit:t}){const o=e,i=D("radio"),a=it(),r=n.ref(),{formItem:s}=Et(),{inputId:l,isLabeledByFormItem:c}=Ln(o,{formItemContext:s}),d=u=>{t(X,u),n.nextTick(()=>t("change",u))};n.onMounted(()=>{const u=r.value.querySelectorAll("[type=radio]"),p=u[0];!Array.from(u).some(g=>g.checked)&&p&&(p.tabIndex=0)});const f=n.computed(()=>o.name||a.value);return n.provide(Jr,n.reactive({...n.toRefs(o),changeEvent:d,name:f})),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(s==null||s.validate("change").catch(u=>ne(u)))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",{id:n.unref(l),ref_key:"radioGroupRef",ref:r,class:n.normalizeClass(n.unref(i).b("group")),role:"radiogroup","aria-label":n.unref(c)?void 0:u.ariaLabel||"radio-group","aria-labelledby":n.unref(c)?n.unref(s).labelId:void 0},[n.renderSlot(u.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Qr=R(Dm,[["__file","radio-group.vue"]]);const Xr=oe(Nm,{RadioButton:Zr,RadioGroup:Qr}),es=tt(Qr);tt(Zr);const Qo=V({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Ta},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),$m={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},zm=n.defineComponent({name:"ElTag"}),jm=n.defineComponent({...zm,props:Qo,emits:$m,setup(e,{emit:t}){const o=e,i=kt(),a=D("tag"),r=n.computed(()=>{const{type:d,hit:f,effect:u,closable:p,round:g}=o;return[a.b(),a.is("closable",p),a.m(d||"primary"),a.m(i.value),a.m(u),a.is("hit",f),a.is("round",g)]}),s=d=>{t("close",d)},l=d=>{t("click",d)},c=d=>{d.component.subTree.component.bum=null};return(d,f)=>d.disableTransitions?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(ke),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(K.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(n.Transition,{key:1,name:`${n.unref(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(ke),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(K.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Hm=R(jm,[["__file","tag.vue"]]);const Km=oe(Hm),ts=Symbol("rowContextKey"),Um=V({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),Wm=n.defineComponent({name:"ElRow"}),qm=n.defineComponent({...Wm,props:Um,setup(e){const t=e,o=D("row"),i=n.computed(()=>t.gutter);n.provide(ts,{gutter:i});const a=n.computed(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=n.computed(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle(n.unref(a))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Gm=R(qm,[["__file","row.vue"]]);const Xt=oe(Gm),Jm=V({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:N([Number,Object]),default:()=>Ht({})},sm:{type:N([Number,Object]),default:()=>Ht({})},md:{type:N([Number,Object]),default:()=>Ht({})},lg:{type:N([Number,Object]),default:()=>Ht({})},xl:{type:N([Number,Object]),default:()=>Ht({})}}),Ym=n.defineComponent({name:"ElCol"}),Zm=n.defineComponent({...Ym,props:Jm,setup(e){const t=e,{gutter:o}=n.inject(ts,{gutter:n.computed(()=>0)}),i=D("col"),a=n.computed(()=>{const s={};return o.value&&(s.paddingLeft=s.paddingRight=`${o.value/2}px`),s}),r=n.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(d=>{const f=t[d];G(f)&&(d==="span"?s.push(i.b(`${t[d]}`)):f>0&&s.push(i.b(`${d}-${t[d]}`)))}),["xs","sm","md","lg","xl"].forEach(d=>{G(t[d])?s.push(i.b(`${d}-${t[d]}`)):te(t[d])&&Object.entries(t[d]).forEach(([f,u])=>{s.push(f!=="span"?i.b(`${d}-${f}-${u}`):i.b(`${d}-${u}`))})}),o.value&&s.push(i.is("guttered")),[i.b(),s]});return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle(n.unref(a))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Qm=R(Zm,[["__file","col.vue"]]);const en=oe(Qm),Xm=V({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:N([String,Array,Object])},zIndex:{type:N([String,Number])}}),eg={click:e=>e instanceof MouseEvent},tg="overlay";var ng=n.defineComponent({name:"ElOverlay",props:Xm,emits:eg,setup(e,{slots:t,emit:o}){const i=D(tg),a=c=>{o("click",c)},{onClick:r,onMousedown:s,onMouseup:l}=Ya(e.customMaskEvent?void 0:a);return()=>e.mask?n.createVNode("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:l},[n.renderSlot(t,"default")],In.STYLE|In.CLASS|In.PROPS,["onClick","onMouseup","onMousedown"]):n.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[n.renderSlot(t,"default")])}});const og=ng,ns=Symbol("dialogInjectionKey"),os=V({center:Boolean,alignCenter:Boolean,closeIcon:{type:ht},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),ig={close:()=>!0},ag=n.defineComponent({name:"ElDialogContent"}),rg=n.defineComponent({...ag,props:os,emits:ig,setup(e,{expose:t}){const o=e,{t:i}=Eo(),{Close:a}=Uf,{dialogRef:r,headerRef:s,bodyId:l,ns:c,style:d}=n.inject(ns),{focusTrapRef:f}=n.inject(vr),u=n.computed(()=>[c.b(),c.is("fullscreen",o.fullscreen),c.is("draggable",o.draggable),c.is("align-center",o.alignCenter),{[c.m("center")]:o.center}]),p=Gf(f,r),g=n.computed(()=>o.draggable),h=n.computed(()=>o.overflow),{resetPosition:m}=Yf(r,s,g,h);return t({resetPosition:m}),(y,b)=>(n.openBlock(),n.createElementBlock("div",{ref:n.unref(p),class:n.normalizeClass(n.unref(u)),style:n.normalizeStyle(n.unref(d)),tabindex:"-1"},[n.createElementVNode("header",{ref_key:"headerRef",ref:s,class:n.normalizeClass([n.unref(c).e("header"),{"show-close":y.showClose}])},[n.renderSlot(y.$slots,"header",{},()=>[n.createElementVNode("span",{role:"heading","aria-level":y.ariaLevel,class:n.normalizeClass(n.unref(c).e("title"))},n.toDisplayString(y.title),11,["aria-level"])]),y.showClose?(n.openBlock(),n.createElementBlock("button",{key:0,"aria-label":n.unref(i)("el.dialog.close"),class:n.normalizeClass(n.unref(c).e("headerbtn")),type:"button",onClick:w=>y.$emit("close")},[n.createVNode(n.unref(ke),{class:n.normalizeClass(n.unref(c).e("close"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(y.closeIcon||n.unref(a))))]),_:1},8,["class"])],10,["aria-label","onClick"])):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{id:n.unref(l),class:n.normalizeClass(n.unref(c).e("body"))},[n.renderSlot(y.$slots,"default")],10,["id"]),y.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:0,class:n.normalizeClass(n.unref(c).e("footer"))},[n.renderSlot(y.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6))}});var sg=R(rg,[["__file","dialog-content.vue"]]);const lg=V({...os,appendToBody:Boolean,appendTo:{type:N([String,Object]),default:"body"},beforeClose:{type:N(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),cg={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[X]:e=>Pe(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},dg=(e,t)=>{var o;const a=n.getCurrentInstance().emit,{nextZIndex:r}=Vo();let s="";const l=it(),c=it(),d=n.ref(!1),f=n.ref(!1),u=n.ref(!1),p=n.ref((o=e.zIndex)!=null?o:r());let g,h;const m=Nn("namespace",Kt),y=n.computed(()=>{const F={},O=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(F[`${O}-margin-top`]=e.top),e.width&&(F[`${O}-width`]=et(e.width))),F}),b=n.computed(()=>e.alignCenter?{display:"flex"}:{});function w(){a("opened")}function T(){a("closed"),a(X,!1),e.destroyOnClose&&(u.value=!1)}function k(){a("close")}function v(){h==null||h(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Ci(()=>x(),e.openDelay):x()}function E(){g==null||g(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Ci(()=>B(),e.closeDelay):B()}function I(){function F(O){O||(f.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(F):E()}function M(){e.closeOnClickModal&&I()}function x(){U&&(d.value=!0)}function B(){d.value=!1}function S(){a("openAutoFocus")}function P(){a("closeAutoFocus")}function L(F){var O;((O=F.detail)==null?void 0:O.focusReason)==="pointer"&&F.preventDefault()}e.lockScroll&&nu(d);function q(){e.closeOnPressEscape&&I()}return n.watch(()=>e.modelValue,F=>{F?(f.value=!1,v(),u.value=!0,p.value=ba(e.zIndex)?r():p.value++,n.nextTick(()=>{a("open"),t.value&&(t.value.scrollTop=0)})):d.value&&E()}),n.watch(()=>e.fullscreen,F=>{t.value&&(F?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),n.onMounted(()=>{e.modelValue&&(d.value=!0,u.value=!0,v())}),{afterEnter:w,afterLeave:T,beforeLeave:k,handleClose:I,onModalClick:M,close:E,doClose:B,onOpenAutoFocus:S,onCloseAutoFocus:P,onCloseRequested:q,onFocusoutPrevented:L,titleId:l,bodyId:c,closed:f,style:y,overlayDialogStyle:b,rendered:u,visible:d,zIndex:p}},fg=n.defineComponent({name:"ElDialog",inheritAttrs:!1}),ug=n.defineComponent({...fg,props:lg,emits:cg,setup(e,{expose:t}){const o=e,i=n.useSlots();mt({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},n.computed(()=>!!i.title));const a=D("dialog"),r=n.ref(),s=n.ref(),l=n.ref(),{visible:c,titleId:d,bodyId:f,style:u,overlayDialogStyle:p,rendered:g,zIndex:h,afterEnter:m,afterLeave:y,beforeLeave:b,handleClose:w,onModalClick:T,onOpenAutoFocus:k,onCloseAutoFocus:v,onCloseRequested:E,onFocusoutPrevented:I}=dg(o,r);n.provide(ns,{dialogRef:r,headerRef:s,bodyId:f,ns:a,rendered:g,style:u});const M=Ya(T),x=n.computed(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var S;(S=l.value)==null||S.resetPosition()}}),(S,P)=>(n.openBlock(),n.createBlock(n.unref(Mr),{to:S.appendTo,disabled:S.appendTo!=="body"?!1:!S.appendToBody},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:"dialog-fade",onAfterEnter:n.unref(m),onAfterLeave:n.unref(y),onBeforeLeave:n.unref(b),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(og),{"custom-mask-event":"",mask:S.modal,"overlay-class":S.modalClass,"z-index":n.unref(h)},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":S.title||void 0,"aria-labelledby":S.title?void 0:n.unref(d),"aria-describedby":n.unref(f),class:n.normalizeClass(`${n.unref(a).namespace.value}-overlay-dialog`),style:n.normalizeStyle(n.unref(p)),onClick:n.unref(M).onClick,onMousedown:n.unref(M).onMousedown,onMouseup:n.unref(M).onMouseup},[n.createVNode(n.unref(Ar),{loop:"",trapped:n.unref(c),"focus-start-el":"container",onFocusAfterTrapped:n.unref(k),onFocusAfterReleased:n.unref(v),onFocusoutPrevented:n.unref(I),onReleaseRequested:n.unref(E)},{default:n.withCtx(()=>[n.unref(g)?(n.openBlock(),n.createBlock(sg,n.mergeProps({key:0,ref_key:"dialogContentRef",ref:l},S.$attrs,{center:S.center,"align-center":S.alignCenter,"close-icon":S.closeIcon,draggable:n.unref(x),overflow:S.overflow,fullscreen:S.fullscreen,"show-close":S.showClose,title:S.title,"aria-level":S.headerAriaLevel,onClose:n.unref(w)}),n.createSlots({header:n.withCtx(()=>[S.$slots.title?n.renderSlot(S.$slots,"title",{key:1}):n.renderSlot(S.$slots,"header",{key:0,close:n.unref(w),titleId:n.unref(d),titleClass:n.unref(a).e("title")})]),default:n.withCtx(()=>[n.renderSlot(S.$slots,"default")]),_:2},[S.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(S.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):n.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[n.vShow,n.unref(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var pg=R(ug,[["__file","dialog.vue"]]);const hg=oe(pg),mg=n.defineComponent({inheritAttrs:!1});function gg(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default")}var yg=R(mg,[["render",gg],["__file","collection.vue"]]);const bg=n.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function wg(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default")}var Cg=R(bg,[["render",wg],["__file","collection-item.vue"]]);const vg="data-el-collection-item",Sg=e=>{const t=`El${e}Collection`,o=`${t}Item`,i=Symbol(t),a=Symbol(o),r={...yg,name:t,setup(){const l=n.ref(null),c=new Map,d=()=>{const f=n.unref(l);if(!f)return[];const u=Array.from(f.querySelectorAll(`[${vg}]`));return[...c.values()].sort((g,h)=>u.indexOf(g.ref)-u.indexOf(h.ref))};n.provide(i,{itemMap:c,getItems:d,collectionRef:l})}},s={...Cg,name:o,setup(l,{attrs:c}){const d=n.ref(null),f=n.inject(i,void 0);n.provide(a,{collectionItemRef:d}),n.onMounted(()=>{const u=n.unref(d);u&&f.itemMap.set(u,{ref:u,...c})}),n.onBeforeUnmount(()=>{const u=n.unref(d);f.itemMap.delete(u)})}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:r,ElCollectionItem:s}},Xo=V({trigger:Qt.trigger,effect:{...se.effect,default:"light"},type:{type:N(String)},placement:{type:N(String),default:"bottom"},popperOptions:{type:N(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:N([Number,String]),default:0},maxHeight:{type:N([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:N(Object)},teleported:se.teleported});V({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ht}}),V({onKeydown:{type:N(Function)}}),Sg("Dropdown");const is=Symbol("ElSelectGroup"),jn=Symbol("ElSelect");function kg(e,t){const o=n.inject(jn),i=n.inject(is,{disabled:!1}),a=n.computed(()=>f(De(o.props.modelValue),e.value)),r=n.computed(()=>{var g;if(o.props.multiple){const h=De((g=o.props.modelValue)!=null?g:[]);return!a.value&&h.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),s=n.computed(()=>e.label||(te(e.value)?"":e.value)),l=n.computed(()=>e.value||e.label||""),c=n.computed(()=>e.disabled||t.groupDisabled||r.value),d=n.getCurrentInstance(),f=(g=[],h)=>{if(te(e.value)){const m=o.props.valueKey;return g&&g.some(y=>n.toRaw(Be(y,m))===Be(h,m))}else return g&&g.includes(h)},u=()=>{!e.disabled&&!i.disabled&&(o.states.hoveringIndex=o.optionsArray.indexOf(d.proxy))},p=g=>{const h=new RegExp($f(g),"i");t.visible=h.test(s.value)||e.created};return n.watch(()=>s.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),n.watch(()=>e.value,(g,h)=>{const{remote:m,valueKey:y}=o.props;if(g!==h&&(o.onOptionDestroy(h,d.proxy),o.onOptionCreate(d.proxy)),!e.created&&!m){if(y&&te(g)&&te(h)&&g[y]===h[y])return;o.setSelected()}}),n.watch(()=>i.disabled,()=>{t.groupDisabled=i.disabled},{immediate:!0}),{select:o,currentLabel:s,currentValue:l,itemSelected:a,isDisabled:c,hoverItem:u,updateOption:p}}const Eg=n.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=D("select"),o=it(),i=n.computed(()=>[t.be("dropdown","item"),t.is("disabled",n.unref(l)),t.is("selected",n.unref(s)),t.is("hovering",n.unref(p))]),a=n.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:r,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f}=kg(e,a),{visible:u,hover:p}=n.toRefs(a),g=n.getCurrentInstance().proxy;c.onOptionCreate(g),n.onBeforeUnmount(()=>{const m=g.value,{selected:y}=c.states,w=(c.props.multiple?y:[y]).some(T=>T.value===g.value);n.nextTick(()=>{c.states.cachedOptions.get(m)===g&&!w&&c.states.cachedOptions.delete(m)}),c.onOptionDestroy(m,g)});function h(){l.value||c.handleOptionSelect(g)}return{ns:t,id:o,containerKls:i,currentLabel:r,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f,visible:u,hover:p,selectOptionClick:h,states:a}}});function Ig(e,t,o,i,a,r){return n.withDirectives((n.openBlock(),n.createElementBlock("li",{id:e.id,class:n.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:n.withModifiers(e.selectOptionClick,["stop"])},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[n.vShow,e.visible]])}var ei=R(Eg,[["render",Ig],["__file","option.vue"]]);const Tg=n.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=n.inject(jn),t=D("select"),o=n.computed(()=>e.props.popperClass),i=n.computed(()=>e.props.multiple),a=n.computed(()=>e.props.fitInputWidth),r=n.ref("");function s(){var l;r.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return n.onMounted(()=>{s(),Re(e.selectRef,s)}),{ns:t,minWidth:r,popperClass:o,isMultiple:i,isFitInputWidth:a}}});function Ag(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:n.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("dropdown","header"))},[n.renderSlot(e.$slots,"header")],2)):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default"),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.be("dropdown","footer"))},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6)}var Og=R(Tg,[["render",Ag],["__file","select-dropdown.vue"]]);const Mg=11,xg=(e,t)=>{const{t:o}=Eo(),i=it(),a=D("select"),r=D("input"),s=n.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=n.ref(null),c=n.ref(null),d=n.ref(null),f=n.ref(null),u=n.ref(null),p=n.ref(null),g=n.ref(null),h=n.ref(null),m=n.ref(null),y=n.ref(null),b=n.ref(null),w=n.ref(null),{isComposing:T,handleCompositionStart:k,handleCompositionUpdate:v,handleCompositionEnd:E}=Cp({afterComposition:C=>cn(C)}),{wrapperRef:I,isFocused:M}=wp(u,{beforeFocus(){return O.value},afterFocus(){e.automaticDropdown&&!x.value&&(x.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(C){var A,_;return((A=d.value)==null?void 0:A.isFocusInsideContent(C))||((_=f.value)==null?void 0:_.isFocusInsideContent(C))},afterBlur(){x.value=!1,s.menuVisibleOnFocus=!1}}),x=n.ref(!1),B=n.ref(),{form:S,formItem:P}=Et(),{inputId:L}=Ln(e,{formItemContext:P}),{valueOnClear:q,isEmptyValue:F}=Ip(e),O=n.computed(()=>e.disabled||(S==null?void 0:S.disabled)),$=n.computed(()=>ee(e.modelValue)?e.modelValue.length>0:!F(e.modelValue)),pe=n.computed(()=>e.clearable&&!O.value&&s.inputHovering&&$.value),Y=n.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Z=n.computed(()=>a.is("reverse",Y.value&&x.value)),ce=n.computed(()=>(P==null?void 0:P.validateState)||""),Ee=n.computed(()=>Wf[ce.value]),Mt=n.computed(()=>e.remote?300:0),Ie=n.computed(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&re.value===0?e.noMatchText||o("el.select.noMatch"):s.options.size===0?e.noDataText||o("el.select.noData"):null),re=n.computed(()=>W.value.filter(C=>C.visible).length),W=n.computed(()=>{const C=Array.from(s.options.values()),A=[];return s.optionValues.forEach(_=>{const z=C.findIndex(Ge=>Ge.value===_);z>-1&&A.push(C[z])}),A.length>=C.length?A:C}),st=n.computed(()=>Array.from(s.cachedOptions.values())),qe=n.computed(()=>{const C=W.value.filter(A=>!A.created).some(A=>A.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!C}),qn=()=>{e.filterable&&Q(e.filterMethod)||e.filterable&&e.remote&&Q(e.remoteMethod)||W.value.forEach(C=>{var A;(A=C.updateOption)==null||A.call(C,s.inputValue)})},Gn=kt(),on=n.computed(()=>["small"].includes(Gn.value)?"small":"default"),fi=n.computed({get(){return x.value&&Ie.value!==!1},set(C){x.value=C}}),Jn=n.computed(()=>{if(e.multiple&&!ze(e.modelValue))return De(e.modelValue).length===0&&!s.inputValue;const C=ee(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ze(C)?!s.inputValue:!0}),ui=n.computed(()=>{var C;const A=(C=e.placeholder)!=null?C:o("el.select.placeholder");return e.multiple||!$.value?A:s.selectedLabel}),pi=n.computed(()=>to?null:"mouseenter");n.watch(()=>e.modelValue,(C,A)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",lt("")),xt(),!vn(C,A)&&e.validateEvent&&(P==null||P.validate("change").catch(_=>ne(_)))},{flush:"post",deep:!0}),n.watch(()=>x.value,C=>{C?lt(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",C)}),n.watch(()=>s.options.entries(),()=>{var C;if(!U)return;const A=((C=l.value)==null?void 0:C.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ze(e.modelValue)||!Array.from(A).includes(document.activeElement))&&xt(),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value&&an()},{flush:"post"}),n.watch(()=>s.hoveringIndex,C=>{G(C)&&C>-1?B.value=W.value[C]||{}:B.value={},W.value.forEach(A=>{A.hover=B.value===A})}),n.watchEffect(()=>{s.isBeforeHide||qn()});const lt=C=>{s.previousQuery===C||T.value||(s.previousQuery=C,e.filterable&&Q(e.filterMethod)?e.filterMethod(C):e.filterable&&e.remote&&Q(e.remoteMethod)&&e.remoteMethod(C),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value?n.nextTick(an):n.nextTick(Ve))},an=()=>{const C=W.value.filter(z=>z.visible&&!z.disabled&&!z.states.groupDisabled),A=C.find(z=>z.created),_=C[0];s.hoveringIndex=bs(W.value,A||_)},xt=()=>{if(e.multiple)s.selectedLabel="";else{const A=ee(e.modelValue)?e.modelValue[0]:e.modelValue,_=Yn(A);s.selectedLabel=_.currentLabel,s.selected=[_];return}const C=[];ze(e.modelValue)||De(e.modelValue).forEach(A=>{C.push(Yn(A))}),s.selected=C},Yn=C=>{let A;const _=oo(C).toLowerCase()==="object",z=oo(C).toLowerCase()==="null",Ge=oo(C).toLowerCase()==="undefined";for(let dt=s.cachedOptions.size-1;dt>=0;dt--){const Te=st.value[dt];if(_?Be(Te.value,e.valueKey)===Be(C,e.valueKey):Te.value===C){A={value:C,currentLabel:Te.currentLabel,get isDisabled(){return Te.isDisabled}};break}}if(A)return A;const Nt=_?C.label:!z&&!Ge?C:"";return{value:C,currentLabel:Nt}},Ve=()=>{s.hoveringIndex=W.value.findIndex(C=>s.selected.some(A=>hi(A)===hi(C)))},Bt=()=>{s.selectionWidth=c.value.getBoundingClientRect().width},rn=()=>{s.calculatorWidth=p.value.getBoundingClientRect().width},Zn=()=>{s.collapseItemWidth=b.value.getBoundingClientRect().width},ct=()=>{var C,A;(A=(C=d.value)==null?void 0:C.updatePopper)==null||A.call(C)},sn=()=>{var C,A;(A=(C=f.value)==null?void 0:C.updatePopper)==null||A.call(C)},ln=()=>{s.inputValue.length>0&&!x.value&&(x.value=!0),lt(s.inputValue)},cn=C=>{if(s.inputValue=C.target.value,e.remote)dn();else return ln()},dn=_f(()=>{ln()},Mt.value),fn=C=>{vn(e.modelValue,C)||t(ko,C)},Yy=C=>Lf(C,A=>!s.disabledOptions.has(A)),Zy=C=>{if(e.multiple&&C.code!==jt.delete&&C.target.value.length<=0){const A=De(e.modelValue).slice(),_=Yy(A);if(_<0)return;const z=A[_];A.splice(_,1),t(X,A),fn(A),t("remove-tag",z)}},Qy=(C,A)=>{const _=s.selected.indexOf(A);if(_>-1&&!O.value){const z=De(e.modelValue).slice();z.splice(_,1),t(X,z),fn(z),t("remove-tag",A.value)}C.stopPropagation(),Xn()},gs=C=>{C.stopPropagation();const A=e.multiple?[]:q.value;if(e.multiple)for(const _ of s.selected)_.isDisabled&&A.push(_.value);t(X,A),fn(A),s.hoveringIndex=-1,x.value=!1,t("clear"),Xn()},ys=C=>{var A;if(e.multiple){const _=De((A=e.modelValue)!=null?A:[]).slice(),z=bs(_,C.value);z>-1?_.splice(z,1):(e.multipleLimit<=0||_.length<e.multipleLimit)&&_.push(C.value),t(X,_),fn(_),C.created&&lt(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(X,C.value),fn(C.value),x.value=!1;Xn(),!x.value&&n.nextTick(()=>{Qn(C)})},bs=(C=[],A)=>{if(!te(A))return C.indexOf(A);const _=e.valueKey;let z=-1;return C.some((Ge,Nt)=>n.toRaw(Be(Ge,_))===Be(A,_)?(z=Nt,!0):!1),z},Qn=C=>{var A,_,z,Ge,Nt;const eo=ee(C)?C[0]:C;let dt=null;if(eo!=null&&eo.value){const Te=W.value.filter(Ss=>Ss.value===eo.value);Te.length>0&&(dt=Te[0].$el)}if(d.value&&dt){const Te=(Ge=(z=(_=(A=d.value)==null?void 0:A.popperRef)==null?void 0:_.contentRef)==null?void 0:z.querySelector)==null?void 0:Ge.call(z,`.${a.be("dropdown","wrap")}`);Te&&Hf(Te,dt)}(Nt=w.value)==null||Nt.handleScroll()},Xy=C=>{s.options.set(C.value,C),s.cachedOptions.set(C.value,C),C.disabled&&s.disabledOptions.set(C.value,C)},eb=(C,A)=>{s.options.get(C)===A&&s.options.delete(C)},tb=n.computed(()=>{var C,A;return(A=(C=d.value)==null?void 0:C.popperRef)==null?void 0:A.contentRef}),nb=()=>{s.isBeforeHide=!1,n.nextTick(()=>Qn(s.selected))},Xn=()=>{var C;(C=u.value)==null||C.focus()},ws=()=>{var C;(C=u.value)==null||C.blur()},ob=C=>{gs(C)},ib=()=>{x.value=!1,M.value&&ws()},ab=()=>{s.inputValue.length>0?s.inputValue="":x.value=!1},Cs=()=>{O.value||(to&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:x.value=!x.value)},rb=()=>{x.value?W.value[s.hoveringIndex]&&ys(W.value[s.hoveringIndex]):Cs()},hi=C=>te(C.value)?Be(C.value,e.valueKey):C.value,sb=n.computed(()=>W.value.filter(C=>C.visible).every(C=>C.disabled)),lb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),cb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),vs=C=>{if(!x.value){x.value=!0;return}if(!(s.options.size===0||s.filteredOptionsCount===0||T.value)&&!sb.value){C==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):C==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const A=W.value[s.hoveringIndex];(A.disabled===!0||A.states.groupDisabled===!0||!A.visible)&&vs(C),n.nextTick(()=>Qn(B.value))}},db=()=>{if(!c.value)return 0;const C=window.getComputedStyle(c.value);return Number.parseFloat(C.gap||"6px")},fb=n.computed(()=>{const C=db();return{maxWidth:`${b.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-C:s.selectionWidth}px`}}),ub=n.computed(()=>({maxWidth:`${s.selectionWidth}px`})),pb=n.computed(()=>({width:`${Math.max(s.calculatorWidth,Mg)}px`}));return Re(c,Bt),Re(p,rn),Re(m,ct),Re(I,ct),Re(y,sn),Re(b,Zn),n.onMounted(()=>{xt()}),{inputId:L,contentId:i,nsSelect:a,nsInput:r,states:s,isFocused:M,expanded:x,optionsArray:W,hoverOption:B,selectSize:Gn,filteredOptionsCount:re,resetCalculatorWidth:rn,updateTooltip:ct,updateTagTooltip:sn,debouncedOnInputChange:dn,onInput:cn,deletePrevTag:Zy,deleteTag:Qy,deleteSelected:gs,handleOptionSelect:ys,scrollToOption:Qn,hasModelValue:$,shouldShowPlaceholder:Jn,currentPlaceholder:ui,mouseEnterEventName:pi,showClose:pe,iconComponent:Y,iconReverse:Z,validateState:ce,validateIcon:Ee,showNewOption:qe,updateOptions:qn,collapseTagSize:on,setSelected:xt,selectDisabled:O,emptyText:Ie,handleCompositionStart:k,handleCompositionUpdate:v,handleCompositionEnd:E,onOptionCreate:Xy,onOptionDestroy:eb,handleMenuEnter:nb,focus:Xn,blur:ws,handleClearClick:ob,handleClickOutside:ib,handleEsc:ab,toggleMenu:Cs,selectOption:rb,getValueKey:hi,navigateOptions:vs,dropdownMenuVisible:fi,showTagList:lb,collapseTagList:cb,tagStyle:fb,collapseTagStyle:ub,inputStyle:pb,popperRef:tb,inputRef:u,tooltipRef:d,tagTooltipRef:f,calculatorRef:p,prefixRef:g,suffixRef:h,selectRef:l,wrapperRef:I,selectionRef:c,scrollbarRef:w,menuRef:m,tagMenuRef:y,collapseItemRef:b}};var Bg=n.defineComponent({name:"ElOptions",setup(e,{slots:t}){const o=n.inject(jn);let i=[];return()=>{var a,r;const s=(a=t.default)==null?void 0:a.call(t),l=[];function c(d){ee(d)&&d.forEach(f=>{var u,p,g,h;const m=(u=(f==null?void 0:f.type)||{})==null?void 0:u.name;m==="ElOptionGroup"?c(!me(f.children)&&!ee(f.children)&&Q((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):m==="ElOption"?l.push((h=f.props)==null?void 0:h.value):ee(f.children)&&c(f.children)})}return s.length&&c((r=s[0])==null?void 0:r.children),vn(l,i)||(i=l,o&&(o.states.optionValues=l)),s}}});const Ng=V({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:St,effect:{type:N(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:N(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:se.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ht,default:K.CircleClose},fitInputWidth:Boolean,suffixIcon:{type:ht,default:K.ArrowDown},tagType:{...Qo.type,default:"info"},tagEffect:{...Qo.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:N(String),values:Tn,default:"bottom-start"},fallbackPlacements:{type:N(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...Ep,...at(["ariaLabel"])}),as="ElSelect",Pg=n.defineComponent({name:as,componentName:as,components:{ElSelectMenu:Og,ElOption:ei,ElOptions:Bg,ElTag:Km,ElScrollbar:Up,ElTooltip:xr,ElIcon:ke},directives:{ClickOutside:mm},props:Ng,emits:[X,ko,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=n.computed(()=>{const{modelValue:r,multiple:s}=e,l=s?[]:void 0;return ee(r)?s?r:l:s?l:r}),i=n.reactive({...n.toRefs(e),modelValue:o}),a=xg(i,t);return n.provide(jn,n.reactive({props:i,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected})),{...a,modelValue:o}}});function _g(e,t,o,i,a,r){const s=n.resolveComponent("el-tag"),l=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-icon"),d=n.resolveComponent("el-option"),f=n.resolveComponent("el-options"),u=n.resolveComponent("el-scrollbar"),p=n.resolveComponent("el-select-menu"),g=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectRef",class:n.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[n.toHandlerKey(e.mouseEnterEventName)]:h=>e.states.inputHovering=!0,onMouseleave:h=>e.states.inputHovering=!1},[n.createVNode(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,onBeforeShow:e.handleMenuEnter,onHide:h=>e.states.isBeforeHide=!1},{default:n.withCtx(()=>{var h;return[n.createElementVNode("div",{ref:"wrapperRef",class:n.normalizeClass([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:n.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"prefixRef",class:n.normalizeClass(e.nsSelect.e("prefix"))},[n.renderSlot(e.$slots,"prefix")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{ref:"selectionRef",class:n.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?n.renderSlot(e.$slots,"tag",{key:0},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.showTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.tagStyle),onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(n.openBlock(),n.createBlock(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:n.withCtx(()=>[n.createElementVNode("div",{ref:"collapseItemRef",class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.collapseTagStyle)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))}," + "+n.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:n.withCtx(()=>[n.createElementVNode("div",{ref:"tagMenuRef",class:n.normalizeClass(e.nsSelect.e("selection"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.collapseTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):n.createCommentVNode("v-if",!0)]):n.createCommentVNode("v-if",!0),e.selectDisabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[n.withDirectives(n.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":m=>e.states.inputValue=m,type:"text",name:e.name,class:n.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:n.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[n.withKeys(n.withModifiers(m=>e.navigateOptions("next"),["stop","prevent"]),["down"]),n.withKeys(n.withModifiers(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),n.withKeys(n.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),n.withKeys(n.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),n.withKeys(n.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:n.withModifiers(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[n.vModelText,e.states.inputValue]]),e.filterable?(n.openBlock(),n.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:n.normalizeClass(e.nsSelect.e("input-calculator")),textContent:n.toDisplayString(e.states.inputValue)},null,10,["textContent"])):n.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?n.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentPlaceholder),1)]):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(e.currentPlaceholder),1))],2)):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{ref:"suffixRef",class:n.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(n.openBlock(),n.createBlock(c,{key:1,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(n.openBlock(),n.createBlock(c,{key:2,class:n.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:n.withCtx(()=>[n.createVNode(p,{ref:"menuRef"},{default:n.withCtx(()=>[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"header")],10,["onClick"])):n.createCommentVNode("v-if",!0),n.withDirectives(n.createVNode(u,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:n.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:n.withCtx(()=>[e.showNewOption?(n.openBlock(),n.createBlock(d,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):n.createCommentVNode("v-if",!0),n.createVNode(f,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[n.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.nsSelect.be("dropdown","loading"))},[n.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(e.nsSelect.be("dropdown","empty"))},[n.renderSlot(e.$slots,"empty",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.emptyText),1)])],2)):n.createCommentVNode("v-if",!0),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"footer")],10,["onClick"])):n.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var Lg=R(Pg,[["render",_g],["__file","select.vue"]]);const Vg=n.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=D("select"),o=n.ref(null),i=n.getCurrentInstance(),a=n.ref([]);n.provide(is,n.reactive({...n.toRefs(e)}));const r=n.computed(()=>a.value.some(d=>d.visible===!0)),s=d=>{var f,u;return((f=d.type)==null?void 0:f.name)==="ElOption"&&!!((u=d.component)!=null&&u.proxy)},l=d=>{const f=De(d),u=[];return f.forEach(p=>{var g,h;s(p)?u.push(p.component.proxy):(g=p.children)!=null&&g.length?u.push(...l(p.children)):(h=p.component)!=null&&h.subTree&&u.push(...l(p.component.subTree))}),u},c=()=>{a.value=l(i.subTree)};return n.onMounted(()=>{c()}),Vs(o,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:o,visible:r,ns:t}}});function Rg(e,t,o,i,a,r){return n.withDirectives((n.openBlock(),n.createElementBlock("ul",{ref:"groupRef",class:n.normalizeClass(e.ns.be("group","wrap"))},[n.createElementVNode("li",{class:n.normalizeClass(e.ns.be("group","title"))},n.toDisplayString(e.label),3),n.createElementVNode("li",null,[n.createElementVNode("ul",{class:n.normalizeClass(e.ns.b("group"))},[n.renderSlot(e.$slots,"default")],2)])],2)),[[n.vShow,e.visible]])}var rs=R(Vg,[["render",Rg],["__file","option-group.vue"]]);const Hn=oe(Lg,{Option:ei,OptionGroup:rs}),ti=tt(ei);tt(rs);const Fg=V({trigger:Qt.trigger,placement:Xo.placement,disabled:Qt.disabled,visible:se.visible,transition:se.transition,popperOptions:Xo.popperOptions,tabindex:Xo.tabindex,content:se.content,popperStyle:se.popperStyle,popperClass:se.popperClass,enterable:{...se.enterable,default:!0},effect:{...se.effect,default:"light"},teleported:se.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Dg={"update:visible":e=>Pe(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},$g="onUpdate:visible",zg=n.defineComponent({name:"ElPopover"}),jg=n.defineComponent({...zg,props:Fg,emits:Dg,setup(e,{expose:t,emit:o}){const i=e,a=n.computed(()=>i[$g]),r=D("popover"),s=n.ref(),l=n.computed(()=>{var y;return(y=n.unref(s))==null?void 0:y.popperRef}),c=n.computed(()=>[{width:et(i.width)},i.popperStyle]),d=n.computed(()=>[r.b(),i.popperClass,{[r.m("plain")]:!!i.content}]),f=n.computed(()=>i.transition===`${r.namespace.value}-fade-in-linear`),u=()=>{var y;(y=s.value)==null||y.hide()},p=()=>{o("before-enter")},g=()=>{o("before-leave")},h=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:l,hide:u}),(y,b)=>(n.openBlock(),n.createBlock(n.unref(xr),n.mergeProps({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":n.unref(d),"popper-style":n.unref(c),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":n.unref(f),"onUpdate:visible":n.unref(a),onBeforeShow:p,onBeforeHide:g,onShow:h,onHide:m}),{content:n.withCtx(()=>[y.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(r).e("title")),role:"title"},n.toDisplayString(y.title),3)):n.createCommentVNode("v-if",!0),n.renderSlot(y.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(y.content),1)])]),default:n.withCtx(()=>[y.$slots.reference?n.renderSlot(y.$slots,"reference",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Hg=R(jg,[["__file","popover.vue"]]);const ss=(e,t)=>{const o=t.arg||t.value,i=o==null?void 0:o.popperRef;i&&(i.triggerRef=e)};var Kg={mounted(e,t){ss(e,t)},updated(e,t){ss(e,t)}};const ls=qf(Kg,"popover"),Kn=oe(Hg,{directive:ls});function Ug(e){let t;const o=n.ref(!1),i=n.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(p){i.text=p}function r(){const p=i.parent,g=u.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(zt(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),zt(p,g.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,g;(g=(p=u.$el)==null?void 0:p.parentNode)==null||g.removeChild(u.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=setTimeout(c,400),i.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!o.value)return;const p=i.parent;o.value=!1,p.vLoadingAddClassList=void 0,r()}const d=n.defineComponent({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:m}=Ap("loading");return g({ns:h,zIndex:m}),()=>{const y=i.spinner||i.svg,b=n.h("svg",{class:"circular",viewBox:i.svgViewBox?i.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[n.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),w=i.text?n.h("p",{class:h.b("text")},[i.text]):void 0;return n.h(n.Transition,{name:h.b("fade"),onAfterLeave:c},{default:n.withCtx(()=>[n.withDirectives(n.createVNode("div",{style:{backgroundColor:i.background||""},class:[h.b("mask"),i.customClass,i.fullscreen?"is-fullscreen":""]},[n.h("div",{class:h.b("spinner")},[b,w])]),[[n.vShow,i.visible]])])})}}}),f=n.createApp(d),u=f.mount(document.createElement("div"));return{...n.toRefs(i),setText:a,removeElLoadingChild:s,close:l,handleAfterLeave:c,vm:u,get $el(){return u.$el}}}let Un;const ni=function(e={}){if(!U)return;const t=Wg(e);if(t.fullscreen&&Un)return Un;const o=Ug({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Un=void 0)}});qg(t,t.parent,o),cs(t,t.parent,o),t.parent.vLoadingAddClassList=()=>cs(t,t.parent,o);let i=t.parent.getAttribute("loading-number");return i?i=`${Number.parseInt(i)+1}`:i="1",t.parent.setAttribute("loading-number",i),t.parent.appendChild(o.$el),n.nextTick(()=>o.visible.value=t.visible),t.fullscreen&&(Un=o),o},Wg=e=>{var t,o,i,a;let r;return me(e.target)?r=(t=document.querySelector(e.target))!=null?t:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(i=e.lock)!=null?i:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},qg=async(e,t,o)=>{const{nextZIndex:i}=o.vm.zIndex||o.vm._.exposed.zIndex,a={};if(e.fullscreen)o.originalPosition.value=pt(document.body,"position"),o.originalOverflow.value=pt(document.body,"overflow"),a.zIndex=i();else if(e.parent===document.body){o.originalPosition.value=pt(document.body,"position"),await n.nextTick();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";a[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(pt(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])a[r]=`${e.target.getBoundingClientRect()[r]}px`}else o.originalPosition.value=pt(t,"position");for(const[r,s]of Object.entries(a))o.$el.style[r]=s},cs=(e,t,o)=>{const i=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?zt(t,i.bm("parent","relative")):So(t,i.bm("parent","relative")),e.fullscreen&&e.lock?So(t,i.bm("parent","hidden")):zt(t,i.bm("parent","hidden"))},Wn=Symbol("ElLoading"),ds=(e,t)=>{var o,i,a,r;const s=t.instance,l=p=>te(t.value)?t.value[p]:void 0,c=p=>{const g=me(p)&&(s==null?void 0:s[p])||p;return g&&n.ref(g)},d=p=>c(l(p)||e.getAttribute(`element-loading-${qs(p)}`)),f=(o=l("fullscreen"))!=null?o:t.modifiers.fullscreen,u={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:f,target:(i=l("target"))!=null?i:f?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(r=l("lock"))!=null?r:t.modifiers.lock};e[Wn]={options:u,instance:ni(u)}},Gg=(e,t)=>{for(const o of Object.keys(t))n.isRef(t[o])&&(t[o].value=e[o])},oi={mounted(e,t){t.value&&ds(e,t)},updated(e,t){const o=e[Wn];t.oldValue!==t.value&&(t.value&&!t.oldValue?ds(e,t):t.value&&t.oldValue?te(t.value)&&Gg(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[Wn])==null||t.instance.close(),e[Wn]=null}},Jg={install(e){e.directive("loading",oi),e.config.globalProperties.$loading=ni},directive:oi,service:ni},tn=(e,t)=>{const o=e.__vccOpts||e;for(const[i,a]of t)o[i]=a;return o},Yg={name:"SelectionsGroup",components:{Checkbox:Ur,CheckboxGroup:Wr,Col:en,Icon:ke,Row:Xt,ElIconWarning:K.Warning},methods:{reset:function(){this.checkAll=!0,this.checkedItems=[],this.selections.forEach(e=>{!("enabled"in e)||e.enabled===!0?this.checkedItems.push(e[this.identifierKey]):this.checkAll=!1})},setCheckboxActionData:function(e,t){if(e){const o=e.querySelector('input[type="checkbox"]'),i=e.querySelector(".el-checkbox__label"),r=e.closest(".selections-container").querySelector(".checkall-display-text");let s="";o&&(s=o.checked?"checked":"unchecked"),this.checkboxActionData={selectionsTitle:r?r.innerText:"",property:o&&t!=="all"?o.value:"",label:i?i.innerText:"",checked:s}}else this.checkboxActionData={selectionsTitle:"",property:"",label:"",checked:""}},onCheckboxNativeChange:function(e){const t=e.target.closest(".checkbox-container");this.setCheckboxActionData(t,"individual")},onAllCheckboxNativeChange:function(e){const t=e.target.closest(".all-checkbox");this.setCheckboxActionData(t,"all")},visibilityToggle:function(e,t){this.$emit("changed",{key:e,value:t}),e===this.checkboxActionData.property&&(this.checkboxActionData.checked=t?"checked":"unchecked"),this.$emit("selections-data-changed",this.checkboxActionData)},checkboxMouseEnterEmit:function(e,t){this.$emit("checkboxMouseEnter",{key:e,value:t,selections:this.selections,checked:this.checkedItems})},handleCheckedItemsChange:function(e){let t=e.length;this.checkAll=t===this.selections.length},handleCheckAllChange:function(e){this.checkedItems=e?this.selections.map(t=>t[this.identifierKey]):[],this.$emit("checkAll",{keys:this.selections.map(t=>t[this.identifierKey]),value:e}),this.checkboxActionData.property=this.identifierKey,this.checkboxActionData.checked=e?"checked":"unchecked",this.$emit("selections-data-changed",this.checkboxActionData)},getBackgroundStyles:function(e){return"colour"in e&&this.colourStyle==="background"?{background:e.colour}:{}},getState:function(){const t=this.checkedItems.length===this.selections.length;return{checkAll:t,checked:t?[]:this.checkedItems}},setState:function(e){var t;if(this.checkAll=e.checkAll,this.checkedItems.length=0,(t=e.checked)!=null&&t.length)this.checkedItems.push(...e.checked),this.selections.forEach(o=>{const i=o[this.identifierKey];this.$emit("changed",{key:i,value:this.checkedItems.includes(i)})});else{const o=this.selections.map(a=>a[this.identifierKey]);let i=!1;this.checkAll&&(i=!0,this.checkedItems.push(...o)),this.$emit("checkAll",{keys:o,value:i})}},hasLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"},getLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"?"dashed"in e&&e.dashed===!0?{background:`repeating-linear-gradient(90deg,${e.colour},${e.colour} 6px,transparent 0,transparent 9px)`}:{background:e.colour}:{display:"None"}}},props:{colourStyle:{type:String,default:"line"},helpMessage:{type:String,default:""},identifierKey:{type:String,default:"id"},labelKey:{type:String,default:"label"},title:{type:String,default:""},selections:{type:Array,default:function(){return[]}},showAsLegend:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return!(this.checkedItems.length===0||this.checkAll)}},data:function(){return{checkedItems:[],checkAll:!0,checkboxActionData:{selectionsTitle:"",property:"",label:"",checked:""}}},mounted:function(){this.reset()}},Zg={class:"selections-container"},Qg={class:"checkall-display-text"},Xg={style:{"word-break":"keep-all"}},ey={class:"checkbox-group-inner"},ty=["onMouseenter","onMouseleave"];function ny(e,t,o,i,a,r){const s=K.Warning,l=ke,c=Kn,d=en,f=Ur,u=Xt,p=Wr;return n.openBlock(),n.createElementBlock("div",Zg,[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(d,{span:12},{default:n.withCtx(()=>[n.createElementVNode("span",Qg,n.toDisplayString(o.title),1),o.helpMessage?(n.openBlock(),n.createBlock(c,{key:0,width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",Xg,n.toDisplayString(o.helpMessage),1)]),_:2},[o.helpMessage?{name:"reference",fn:n.withCtx(()=>[n.createVNode(l,{class:"info"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1})]),key:"0"}:void 0]),1024)):n.createCommentVNode("",!0)]),_:1}),n.createVNode(d,{span:12},{default:n.withCtx(()=>[o.selections&&o.selections.length>1&&!o.showAsLegend?(n.openBlock(),n.createBlock(f,{key:0,class:"all-checkbox",indeterminate:r.isIndeterminate,modelValue:e.checkAll,"onUpdate:modelValue":t[0]||(t[0]=g=>e.checkAll=g),onChange:r.handleCheckAllChange,onClick:r.onAllCheckboxNativeChange},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode("Display all")])),_:1},8,["indeterminate","modelValue","onChange","onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1}),n.createVNode(p,{class:n.normalizeClass({"show-as-legend":o.showAsLegend,"checkbox-group":!o.showAsLegend}),modelValue:e.checkedItems,"onUpdate:modelValue":t[1]||(t[1]=g=>e.checkedItems=g),size:"small",onChange:r.handleCheckedItemsChange},{default:n.withCtx(()=>[n.createElementVNode("div",ey,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.selections,g=>(n.openBlock(),n.createBlock(u,{key:g[o.identifierKey],label:g[o.identifierKey]},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"checkbox-container",onMouseenter:h=>r.checkboxMouseEnterEmit(g[o.identifierKey],!0),onMouseleave:h=>r.checkboxMouseEnterEmit(g[o.identifierKey],!1)},[n.createVNode(f,{class:"my-checkbox",label:g[o.identifierKey],value:g[o.identifierKey],onChange:h=>r.visibilityToggle(g[o.identifierKey],h),onClick:r.onCheckboxNativeChange,checked:!("enabled"in g)||g.enabled===!0},{default:n.withCtx(()=>[n.createVNode(u,{class:"checkbox-row"},{default:n.withCtx(()=>[r.hasLineStyles(g)?(n.openBlock(),n.createBlock(d,{key:0,span:4},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"path-visual",style:n.normalizeStyle(r.getLineStyles(g))},null,4)]),_:2},1024)):n.createCommentVNode("",!0),n.createVNode(d,{span:20},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle(r.getBackgroundStyles(g))},n.toDisplayString(g[o.labelKey]),5)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value","onChange","onClick","checked"])],40,ty)]),_:2},1032,["label"]))),128))])]),_:1},8,["class","modelValue","onChange"])])}const fs=tn(Yg,[["render",ny],["__scopeId","data-v-35fb97d0"]]),oy='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="<fillColor>" stroke="<borderColor>" stroke-width="<borderWidth>" d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z"/></svg>',iy={name:"DynamicLegends",props:{identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},title:{type:String,default:""},legends:{type:Array,default:function(){return[]}},showStarInLegend:{type:Boolean,default:!1}},computed:{clipPathLegends:function(){return["exoid","hexagon"]}},methods:{capitalise:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},customStyle:function(e){const t=e.color?e.color:e.colour;let o=t||"transparent",i=e.border?e.border:"black";if(t&&!e.border&&(i=o),e[this.styleKey]==="star"){let a=oy.replace("<fillColor>",o);return a=a.replace("<borderColor>",i),a=a.replace("<borderWidth>",i?"2":"0"),a="data:image/svg+xml,"+encodeURIComponent(a),{color:o,"background-image":`url(${a})`}}else return e[this.styleKey]==="line"?{color:o}:{"background-color":o,"border-color":i}},customClipPathStyle:function(e,t){const o=this.customStyle(e);return t?o["background-color"]=o["border-color"]:o.scale=.7,o},legendStyle:function(e){return e[this.styleKey]==="star"?e[this.identifierKey]==="Featured dataset marker"&&!this.showStarInLegend?void 0:"star":this.clipPathLegends.includes(e[this.styleKey])?e[this.styleKey]:e[this.styleKey]==="line"?[e[this.styleKey],e.dashed?"dashed":"",e.arrow?"arrow":""]:[e[this.styleKey],"shape"]}}},ay={class:"legend-group"},ry=["label"],sy={key:0,class:"legend-item"},ly={class:"label"};function cy(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",ay,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.legends,s=>(n.openBlock(),n.createElementBlock("div",{class:"legend-container",key:s[o.identifierKey],label:s[o.identifierKey]},[r.legendStyle(s)?(n.openBlock(),n.createElementBlock("div",sy,[r.clipPathLegends.includes(r.legendStyle(s))?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(r.legendStyle(s)),style:n.normalizeStyle(r.customClipPathStyle(s,!0))},[n.createElementVNode("div",{class:n.normalizeClass(r.legendStyle(s)),style:n.normalizeStyle(r.customClipPathStyle(s,!1))},null,6)],6)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(r.legendStyle(s)),style:n.normalizeStyle(r.customStyle(s))},null,6)),n.createElementVNode("div",ly,n.toDisplayString(r.capitalise(s[o.identifierKey])),1)])):n.createCommentVNode("",!0)],8,ry))),128))])}const dy=tn(iy,[["render",cy],["__scopeId","data-v-0c2b00a9"]]),fy={name:"SvgLegends"},uy={class:"legends-container"},py={version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 500 500",style:{"enable-background":"new 0 0 500 500"},xmlns:"http://www.w3.org/2000/svg","xmlns:bx":"https://boxy-svg.com"};function hy(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",uy,[(n.openBlock(),n.createElementBlock("svg",py,t[0]||(t[0]=[n.createStaticVNode('<defs data-v-88079d87><bx:grid height="30.447" width="32.516" x="0" y="0" data-v-88079d87></bx:grid></defs><path class="st0 st0-translate" d="M61.3,103.8c-15.9,0-28.8-12.3-28.8-27.3c0-15,13-27.3,28.8-27.3s28.8,12.3,28.8,27.3 C90.1,91.5,77.2,103.8,61.3,103.8z" data-v-88079d87></path><path class="st1" d="M40.3,356.1C29.5,345,29.8,328,41.5,317.5c11.7-10.5,29.6-9.9,40.7,1.1c11.1,11,10.5,28.1-1.2,38.5 C69.3,367.4,51.1,366.9,40.3,356.1z" data-v-88079d87></path><path class="st2" d="M61.2,396.9c-5.3,9.3-15.3,15.1-26.1,15.1l-0.4,0.6c5.1,9,5.1,20,0,29l0.4,0.6c10.7,0,20.8,5.8,26.1,15.1 c5.3-9.3,15.3-15.1,26.1-15.1c-5.3-9.3-5.3-20.9,0-30.4C76.6,412.1,66.7,406.3,61.2,396.9z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 171.7975)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Tissue region </text><path class="st6" d="M40.9,231.1c11.3-10.6,29.5-10.6,40.8,0c11.3,10.6,11.3,27.9,0,38.5c-11.3,10.6-29.5,10.6-40.8,0 C29.7,259,29.7,241.7,40.9,231.1z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Brain nuclei </text><text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglia </text><text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglionated nerve plexus </text>',9)]))),t[1]||(t[1]=n.createElementVNode("svg",{width:"72px",height:"72px",viewBox:"0 0 24 24",fill:"yellow"},null,-1))])}const my=tn(fy,[["render",hy],["__scopeId","data-v-88079d87"]]),gy=`<div class="flatmap-marker">
11
+ })`);const o=To();return n.computed(()=>n.unref(e)||`${o.value}-id-${t.prefix}-${t.current++}`)};let vt=[];const ti=e=>{const t=e;t.key===Ht.esc&&vt.forEach(o=>o(t))},up=e=>{n.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",ti),U&&vt.push(e)}),n.onBeforeUnmount(()=>{vt=vt.filter(t=>t!==e),vt.length===0&&U&&document.removeEventListener("keydown",ti)})};let ni;const oi=()=>{const e=To(),t=ei(),o=n.computed(()=>`${e.value}-popper-container-${t.prefix}`),a=n.computed(()=>`#${o.value}`);return{id:o,selector:a}},pp=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},hp=()=>{const{id:e,selector:t}=oi();return n.onBeforeMount(()=>{U&&(process.env.NODE_ENV==="test"||!ni||!document.body.querySelector(t.value))&&(ni=pp(e.value))}),{id:e,selector:t}},mp=R({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),gp=({showAfter:e,hideAfter:t,autoClose:o,open:a,close:r})=>{const{registerTimeout:i}=Xr(),{registerTimeout:s,cancelTimeout:l}=Xr();return{onOpen:f=>{i(()=>{a(f);const u=n.unref(o);G(u)&&u>0&&s(()=>{r(f)},u)},n.unref(e))},onClose:f=>{l(),i(()=>{r(f)},n.unref(t))}}},ai=Symbol("elForwardRef"),yp=e=>{const t=o=>{e.value=o};n.provide(ai,{setForwardRef:t})},bp=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),ri={current:0},ii=n.ref(0),si=2e3,li=Symbol("elZIndexContextKey"),ci=Symbol("zIndexContextKey"),Ro=e=>{const t=n.getCurrentInstance()?n.inject(li,ri):ri,o=e||(n.getCurrentInstance()?n.inject(ci,void 0):void 0),a=n.computed(()=>{const s=n.unref(o);return G(s)?s:si}),r=n.computed(()=>a.value+ii.value),i=()=>(t.current++,ii.value=t.current,r.value);return!U&&!n.inject(li)&&ne("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
12
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:r,nextZIndex:i}},St=En({type:String,values:Or,required:!1}),di=Symbol("size"),wp=()=>{const e=n.inject(di,{});return n.computed(()=>n.unref(e.size)||"")};function Cp(e,{beforeFocus:t,afterFocus:o,beforeBlur:a,afterBlur:r}={}){const i=n.getCurrentInstance(),{emit:s}=i,l=n.shallowRef(),c=n.ref(!1),d=p=>{Q(t)&&t(p)||c.value||(c.value=!0,s("focus",p),o==null||o())},f=p=>{var g;Q(a)&&a(p)||p.relatedTarget&&((g=l.value)!=null&&g.contains(p.relatedTarget))||(c.value=!1,s("blur",p),r==null||r())},u=()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return n.watch(l,p=>{p&&p.setAttribute("tabindex","-1")}),he(l,"focus",d,!0),he(l,"blur",f,!0),he(l,"click",u,!0),process.env.NODE_ENV==="test"&&n.onMounted(()=>{const p=Xe(e.value)?e.value:document.querySelector("input,textarea");p&&(he(p,"focus",d,!0),he(p,"blur",f,!0))}),{isFocused:c,wrapperRef:l,handleFocus:d,handleBlur:f}}function vp({afterComposition:e,emit:t}){const o=n.ref(!1),a=l=>{t==null||t("compositionstart",l),o.value=!0},r=l=>{var c;t==null||t("compositionupdate",l);const d=(c=l.target)==null?void 0:c.value,f=d[d.length-1]||"";o.value=!Yf(f)},i=l=>{t==null||t("compositionend",l),o.value&&(o.value=!1,n.nextTick(()=>e(l)))};return{isComposing:o,handleComposition:l=>{l.type==="compositionend"?i(l):r(l)},handleCompositionStart:a,handleCompositionUpdate:r,handleCompositionEnd:i}}const fi=Symbol("emptyValuesContextKey"),Sp="use-empty-values",kp=["",void 0,null],Ep=void 0,Ip=R({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Q(e)?!e():!e}}),Tp=(e,t)=>{const o=n.getCurrentInstance()?n.inject(fi,n.ref({})):n.ref({}),a=n.computed(()=>e.emptyValues||o.value.emptyValues||kp),r=n.computed(()=>Q(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Q(o.value.valueOnClear)?o.value.valueOnClear():o.value.valueOnClear!==void 0?o.value.valueOnClear:Ep),i=s=>a.value.includes(s);return a.value.includes(r.value)||ne(Sp,"value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:r,isEmptyValue:i}},Ap=R({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),rt=e=>vr(Ap,e),ui=Symbol(),xn=n.ref();function Nn(e,t=void 0){const o=n.getCurrentInstance()?n.inject(ui,xn):xn;return e?n.computed(()=>{var a,r;return(r=(a=o.value)==null?void 0:a[e])!=null?r:t}):o}function Op(e,t){const o=Nn(),a=D(e,n.computed(()=>{var l;return((l=o.value)==null?void 0:l.namespace)||Ut})),r=Io(n.computed(()=>{var l;return(l=o.value)==null?void 0:l.locale})),i=Ro(n.computed(()=>{var l;return((l=o.value)==null?void 0:l.zIndex)||si})),s=n.computed(()=>{var l;return n.unref(t)||((l=o.value)==null?void 0:l.size)||""});return Mp(n.computed(()=>n.unref(o)||{})),{ns:a,locale:r,zIndex:i,size:s}}const Mp=(e,t,o=!1)=>{var a;const r=!!n.getCurrentInstance(),i=r?Nn():void 0,s=(a=void 0)!=null?a:r?n.provide:void 0;if(!s){ne("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=n.computed(()=>{const c=n.unref(e);return i!=null&&i.value?Bp(i.value,c):c});return s(ui,l),s(Mr,n.computed(()=>l.value.locale)),s(Br,n.computed(()=>l.value.namespace)),s(ci,n.computed(()=>l.value.zIndex)),s(di,{size:n.computed(()=>l.value.size||"")}),s(fi,n.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(o||!xn.value)&&(xn.value=l.value),l},Bp=(e,t)=>{const o=[...new Set([...Sr(e),...Sr(t)])],a={};for(const r of o)a[r]=t[r]!==void 0?t[r]:e[r];return a};var F=(e,t)=>{const o=e.__vccOpts||e;for(const[a,r]of t)o[a]=r;return o};const xp=R({size:{type:_([Number,String])},color:{type:String}}),Np=n.defineComponent({name:"ElIcon",inheritAttrs:!1}),_p=n.defineComponent({...Np,props:xp,setup(e){const t=e,o=D("icon"),a=n.computed(()=>{const{size:r,color:i}=t;return!r&&!i?{}:{fontSize:ze(r)?void 0:et(r),"--color":i}});return(r,i)=>(n.openBlock(),n.createElementBlock("i",n.mergeProps({class:n.unref(o).b(),style:n.unref(a)},r.$attrs),[n.renderSlot(r.$slots,"default")],16))}});var Pp=F(_p,[["__file","icon.vue"]]);const be=oe(Pp),Fo=Symbol("formContextKey"),_n=Symbol("formItemContextKey"),kt=(e,t={})=>{const o=n.ref(void 0),a=t.prop?o:xr("size"),r=t.global?o:wp(),i=t.form?{size:void 0}:n.inject(Fo,void 0),s=t.formItem?{size:void 0}:n.inject(_n,void 0);return n.computed(()=>a.value||n.unref(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||r.value||"")},Pn=e=>{const t=xr("disabled"),o=n.inject(Fo,void 0);return n.computed(()=>t.value||n.unref(e)||(o==null?void 0:o.disabled)||!1)},Et=()=>{const e=n.inject(Fo,void 0),t=n.inject(_n,void 0);return{form:e,formItem:t}},Ln=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:a})=>{o||(o=n.ref(!1)),a||(a=n.ref(!1));const r=n.ref();let i;const s=n.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return n.onMounted(()=>{i=n.watch([n.toRef(e,"id"),o],([l,c])=>{const d=l??(c?void 0:at().value);d!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!c&&d&&t.addInputId(d)),r.value=d)},{immediate:!0})}),n.onUnmounted(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:s,inputId:r}},It=4,Lp={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Vp=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),Do=Symbol("scrollbarContextKey"),Rp=R({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Fp="Thumb";var pi=F(n.defineComponent({__name:"thumb",props:Rp,setup(e){const t=e,o=n.inject(Do),a=D("scrollbar");o||Er(Fp,"can not inject scrollbar context");const r=n.ref(),i=n.ref(),s=n.ref({}),l=n.ref(!1);let c=!1,d=!1,f=U?document.onselectstart:null;const u=n.computed(()=>Lp[t.vertical?"vertical":"horizontal"]),p=n.computed(()=>Vp({size:t.size,move:t.move,bar:u.value})),g=n.computed(()=>r.value[u.value.offset]**2/o.wrapElement[u.value.scrollSize]/t.ratio/i.value[u.value.offset]),h=S=>{var E;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(E=window.getSelection())==null||E.removeAllRanges(),y(S);const O=S.currentTarget;O&&(s.value[u.value.axis]=O[u.value.offset]-(S[u.value.client]-O.getBoundingClientRect()[u.value.direction]))},m=S=>{if(!i.value||!r.value||!o.wrapElement)return;const E=Math.abs(S.target.getBoundingClientRect()[u.value.direction]-S[u.value.client]),O=i.value[u.value.offset]/2,B=(E-O)*100*g.value/r.value[u.value.offset];o.wrapElement[u.value.scroll]=B*o.wrapElement[u.value.scrollSize]/100},y=S=>{S.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),f=document.onselectstart,document.onselectstart=()=>!1},b=S=>{if(!r.value||!i.value||c===!1)return;const E=s.value[u.value.axis];if(!E)return;const O=(r.value.getBoundingClientRect()[u.value.direction]-S[u.value.client])*-1,B=i.value[u.value.offset]-E,N=(O-B)*100*g.value/r.value[u.value.offset];o.wrapElement[u.value.scroll]=N*o.wrapElement[u.value.scrollSize]/100},C=()=>{c=!1,s.value[u.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),v(),d&&(l.value=!1)},I=()=>{d=!1,l.value=!!t.size},k=()=>{d=!0,l.value=c};n.onBeforeUnmount(()=>{v(),document.removeEventListener("mouseup",C)});const v=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return he(n.toRef(o,"scrollbarElement"),"mousemove",I),he(n.toRef(o,"scrollbarElement"),"mouseleave",k),(S,E)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(a).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref_key:"instance",ref:r,class:n.normalizeClass([n.unref(a).e("bar"),n.unref(a).is(n.unref(u).key)]),onMousedown:m},[n.createElementVNode("div",{ref_key:"thumb",ref:i,class:n.normalizeClass(n.unref(a).e("thumb")),style:n.normalizeStyle(n.unref(p)),onMousedown:h},null,38)],34),[[n.vShow,S.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const Dp=R({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var $p=F(n.defineComponent({__name:"bar",props:Dp,setup(e,{expose:t}){const o=e,a=n.inject(Do),r=n.ref(0),i=n.ref(0),s=n.ref(""),l=n.ref(""),c=n.ref(1),d=n.ref(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-It,h=p.offsetWidth-It;i.value=p.scrollTop*100/g*c.value,r.value=p.scrollLeft*100/h*d.value}},update:()=>{const p=a==null?void 0:a.wrapElement;if(!p)return;const g=p.offsetHeight-It,h=p.offsetWidth-It,m=g**2/p.scrollHeight,y=h**2/p.scrollWidth,b=Math.max(m,o.minSize),C=Math.max(y,o.minSize);c.value=m/(g-m)/(b/(g-b)),d.value=y/(h-y)/(C/(h-C)),l.value=b+It<g?`${b}px`:"",s.value=C+It<h?`${C}px`:""}}),(p,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(pi,{move:r.value,ratio:d.value,size:s.value,always:p.always},null,8,["move","ratio","size","always"]),n.createVNode(pi,{move:i.value,ratio:c.value,size:l.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const zp=R({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:_([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...rt(["ariaLabel","ariaOrientation"])}),jp={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(G)},$o="ElScrollbar",Hp=n.defineComponent({name:$o}),Kp=n.defineComponent({...Hp,props:zp,emits:jp,setup(e,{expose:t,emit:o}){const a=e,r=D("scrollbar");let i,s,l=0,c=0;const d=n.ref(),f=n.ref(),u=n.ref(),p=n.ref(),g=n.computed(()=>{const v={};return a.height&&(v.height=et(a.height)),a.maxHeight&&(v.maxHeight=et(a.maxHeight)),[a.wrapStyle,v]}),h=n.computed(()=>[a.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!a.native}]),m=n.computed(()=>[r.e("view"),a.viewClass]),y=()=>{var v;f.value&&((v=p.value)==null||v.handleScroll(f.value),l=f.value.scrollTop,c=f.value.scrollLeft,o("scroll",{scrollTop:f.value.scrollTop,scrollLeft:f.value.scrollLeft}))};function b(v,S){te(v)?f.value.scrollTo(v):G(v)&&G(S)&&f.value.scrollTo(v,S)}const C=v=>{if(!G(v)){ne($o,"value must be a number");return}f.value.scrollTop=v},I=v=>{if(!G(v)){ne($o,"value must be a number");return}f.value.scrollLeft=v},k=()=>{var v;(v=p.value)==null||v.update()};return n.watch(()=>a.noresize,v=>{v?(i==null||i(),s==null||s()):({stop:i}=Re(u,k),s=he("resize",k))},{immediate:!0}),n.watch(()=>[a.maxHeight,a.height],()=>{a.native||n.nextTick(()=>{var v;k(),f.value&&((v=p.value)==null||v.handleScroll(f.value))})}),n.provide(Do,n.reactive({scrollbarElement:d,wrapElement:f})),n.onActivated(()=>{f.value&&(f.value.scrollTop=l,f.value.scrollLeft=c)}),n.onMounted(()=>{a.native||n.nextTick(()=>{k()})}),n.onUpdated(()=>k()),t({wrapRef:f,update:k,scrollTo:b,setScrollTop:C,setScrollLeft:I,handleScroll:y}),(v,S)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"scrollbarRef",ref:d,class:n.normalizeClass(n.unref(r).b())},[n.createElementVNode("div",{ref_key:"wrapRef",ref:f,class:n.normalizeClass(n.unref(h)),style:n.normalizeStyle(n.unref(g)),tabindex:v.tabindex,onScroll:y},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(v.tag),{id:v.id,ref_key:"resizeRef",ref:u,class:n.normalizeClass(n.unref(m)),style:n.normalizeStyle(v.viewStyle),role:v.role,"aria-label":v.ariaLabel,"aria-orientation":v.ariaOrientation},{default:n.withCtx(()=>[n.renderSlot(v.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),v.native?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock($p,{key:0,ref_key:"barRef",ref:p,always:v.always,"min-size":v.minSize},null,8,["always","min-size"]))],2))}});var Up=F(Kp,[["__file","scrollbar.vue"]]);const Wp=oe(Up),zo=Symbol("popper"),hi=Symbol("popperContent"),mi=R({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),qp=n.defineComponent({name:"ElPopper",inheritAttrs:!1}),Gp=n.defineComponent({...qp,props:mi,setup(e,{expose:t}){const o=e,a=n.ref(),r=n.ref(),i=n.ref(),s=n.ref(),l=n.computed(()=>o.role),c={triggerRef:a,popperInstanceRef:r,contentRef:i,referenceRef:s,role:l};return t(c),n.provide(zo,c),(d,f)=>n.renderSlot(d.$slots,"default")}});var Jp=F(Gp,[["__file","popper.vue"]]);const gi=R({arrowOffset:{type:Number,default:5}}),Yp=n.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),Zp=n.defineComponent({...Yp,props:gi,setup(e,{expose:t}){const o=e,a=D("popper"),{arrowOffset:r,arrowRef:i,arrowStyle:s}=n.inject(hi,void 0);return n.watch(()=>o.arrowOffset,l=>{r.value=l}),n.onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),(l,c)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:i,class:n.normalizeClass(n.unref(a).e("arrow")),style:n.normalizeStyle(n.unref(s)),"data-popper-arrow":""},null,6))}});var Qp=F(Zp,[["__file","arrow.vue"]]);const jo="ElOnlyChild",Xp=n.defineComponent({name:jo,setup(e,{slots:t,attrs:o}){var a;const r=n.inject(ai),i=bp((a=r==null?void 0:r.setForwardRef)!=null?a:Je);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,o);if(!l)return null;if(l.length>1)return ne(jo,"requires exact only one valid child."),null;const c=yi(l);return c?n.withDirectives(n.cloneVNode(c,o),[[i]]):(ne(jo,"no valid child node found"),null)}}});function yi(e){if(!e)return null;const t=e;for(const o of t){if(te(o))switch(o.type){case n.Comment:continue;case n.Text:case"svg":return bi(o);case n.Fragment:return yi(o.children);default:return o}return bi(o)}return null}function bi(e){const t=D("only-child");return n.createVNode("span",{class:t.e("content")},[e])}const wi=R({virtualRef:{type:_(Object)},virtualTriggering:Boolean,onMouseenter:{type:_(Function)},onMouseleave:{type:_(Function)},onClick:{type:_(Function)},onKeydown:{type:_(Function)},onFocus:{type:_(Function)},onBlur:{type:_(Function)},onContextmenu:{type:_(Function)},id:String,open:Boolean}),eh=n.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),th=n.defineComponent({...eh,props:wi,setup(e,{expose:t}){const o=e,{role:a,triggerRef:r}=n.inject(zo,void 0);yp(r);const i=n.computed(()=>l.value?o.id:void 0),s=n.computed(()=>{if(a&&a.value==="tooltip")return o.open&&o.id?o.id:void 0}),l=n.computed(()=>{if(a&&a.value!=="tooltip")return a.value}),c=n.computed(()=>l.value?`${o.open}`:void 0);let d;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return n.onMounted(()=>{n.watch(()=>o.virtualRef,u=>{u&&(r.value=Oe(u))},{immediate:!0}),n.watch(r,(u,p)=>{d==null||d(),d=void 0,Xe(u)&&(f.forEach(g=>{var h;const m=o[g];m&&(u.addEventListener(g.slice(2).toLowerCase(),m),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,g.slice(2).toLowerCase(),m))}),d=n.watch([i,s,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{Sn(g[m])?u.removeAttribute(h):u.setAttribute(h,g[m])})},{immediate:!0})),Xe(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),n.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,r.value&&Xe(r.value)){const u=r.value;f.forEach(p=>{const g=o[p];g&&u.removeEventListener(p.slice(2).toLowerCase(),g)}),r.value=void 0}}),t({triggerRef:r}),(u,p)=>u.virtualTriggering?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(Xp),n.mergeProps({key:0},u.$attrs,{"aria-controls":n.unref(i),"aria-describedby":n.unref(s),"aria-expanded":n.unref(c),"aria-haspopup":n.unref(l)}),{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var nh=F(th,[["__file","trigger.vue"]]);const Ho="focus-trap.focus-after-trapped",Ko="focus-trap.focus-after-released",oh="focus-trap.focusout-prevented",Ci={cancelable:!0,bubbles:!1},ah={cancelable:!0,bubbles:!1},vi="focusAfterTrapped",Si="focusAfterReleased",ki=Symbol("elFocusTrap"),Uo=n.ref(),Vn=n.ref(0),Wo=n.ref(0);let Rn=0;const Ei=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Ii=(e,t)=>{for(const o of e)if(!rh(o,t))return o},rh=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ih=e=>{const t=Ei(e),o=Ii(t,e),a=Ii(t.reverse(),e);return[o,a]},sh=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Wo.value=window.performance.now(),e!==o&&sh(e)&&t&&e.select()}};function Ti(e,t){const o=[...e],a=e.indexOf(t);return a!==-1&&o.splice(a,1),o}const lh=()=>{let e=[];return{push:a=>{const r=e[0];r&&a!==r&&r.pause(),e=Ti(e,a),e.unshift(a)},remove:a=>{var r,i;e=Ti(e,a),(i=(r=e[0])==null?void 0:r.resume)==null||i.call(r)}}},ch=(e,t=!1)=>{const o=document.activeElement;for(const a of e)if(He(a,t),document.activeElement!==o)return},Ai=lh(),dh=()=>Vn.value>Wo.value,Fn=()=>{Uo.value="pointer",Vn.value=window.performance.now()},Oi=()=>{Uo.value="keyboard",Vn.value=window.performance.now()},fh=()=>(n.onMounted(()=>{Rn===0&&(document.addEventListener("mousedown",Fn),document.addEventListener("touchstart",Fn),document.addEventListener("keydown",Oi)),Rn++}),n.onBeforeUnmount(()=>{Rn--,Rn<=0&&(document.removeEventListener("mousedown",Fn),document.removeEventListener("touchstart",Fn),document.removeEventListener("keydown",Oi))}),{focusReason:Uo,lastUserFocusTimestamp:Vn,lastAutomatedFocusTimestamp:Wo}),Dn=e=>new CustomEvent(oh,{...ah,detail:e}),uh=n.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[vi,Si,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=n.ref();let a,r;const{focusReason:i}=fh();up(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:m,altKey:y,ctrlKey:b,metaKey:C,currentTarget:I,shiftKey:k}=h,{loop:v}=e,S=m===Ht.tab&&!y&&!b&&!C,E=document.activeElement;if(S&&E){const O=I,[B,N]=ih(O);if(B&&N){if(!k&&E===N){const T=Dn({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),v&&He(B,!0))}else if(k&&[B,O].includes(E)){const T=Dn({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),v&&He(N,!0))}}else if(E===O){const T=Dn({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||h.preventDefault()}}};n.provide(ki,{focusTrapRef:o,onKeydown:l}),n.watch(()=>e.focusTrapEl,h=>{h&&(o.value=h)},{immediate:!0}),n.watch([o],([h],[m])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",f),h.addEventListener("focusout",u)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",f),m.removeEventListener("focusout",u))});const c=h=>{t(vi,h)},d=h=>t(Si,h),f=h=>{const m=n.unref(o);if(!m)return;const y=h.target,b=h.relatedTarget,C=y&&m.contains(y);e.trapped||b&&m.contains(b)||(a=b),C&&t("focusin",h),!s.paused&&e.trapped&&(C?r=y:He(r,!0))},u=h=>{const m=n.unref(o);if(!(s.paused||!m))if(e.trapped){const y=h.relatedTarget;!Sn(y)&&!m.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const b=Dn({focusReason:i.value});t("focusout-prevented",b),b.defaultPrevented||He(r,!0)}},0)}else{const y=h.target;y&&m.contains(y)||t("focusout",h)}};async function p(){await n.nextTick();const h=n.unref(o);if(h){Ai.push(s);const m=h.contains(document.activeElement)?a:document.activeElement;if(a=m,!h.contains(m)){const b=new Event(Ho,Ci);h.addEventListener(Ho,c),h.dispatchEvent(b),b.defaultPrevented||n.nextTick(()=>{let C=e.focusStartEl;me(C)||(He(C),document.activeElement!==C&&(C="first")),C==="first"&&ch(Ei(h),!0),(document.activeElement===m||C==="container")&&He(h)})}}}function g(){const h=n.unref(o);if(h){h.removeEventListener(Ho,c);const m=new CustomEvent(Ko,{...Ci,detail:{focusReason:i.value}});h.addEventListener(Ko,d),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!dh()||h.contains(document.activeElement))&&He(a??document.body),h.removeEventListener(Ko,d),Ai.remove(s)}}return n.onMounted(()=>{e.trapped&&p(),n.watch(()=>e.trapped,h=>{h?p():g()})}),n.onBeforeUnmount(()=>{e.trapped&&g(),o.value&&(o.value.removeEventListener("keydown",l),o.value.removeEventListener("focusin",f),o.value.removeEventListener("focusout",u),o.value=void 0)}),{onKeydown:l}}});function ph(e,t,o,a,r,i){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Mi=F(uh,[["render",ph],["__file","focus-trap.vue"]]);const hh=["fixed","absolute"],mh=R({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:_(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Tn,default:"bottom"},popperOptions:{type:_(Object),default:()=>({})},strategy:{type:String,values:hh,default:"absolute"}}),Bi=R({...mh,id:String,style:{type:_([String,Array,Object])},className:{type:_([String,Array,Object])},effect:{type:_(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:_([String,Array,Object])},popperStyle:{type:_([String,Array,Object])},referenceEl:{type:_(Object)},triggerTargetEl:{type:_(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...rt(["ariaLabel"])}),gh={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},yh=(e,t=[])=>{const{placement:o,strategy:a,popperOptions:r}=e,i={placement:o,strategy:a,...r,modifiers:[...wh(e),...t]};return Ch(i,r==null?void 0:r.modifiers),i},bh=e=>{if(U)return Oe(e)};function wh(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function Ch(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const vh=0,Sh=e=>{const{popperInstanceRef:t,contentRef:o,triggerRef:a,role:r}=n.inject(zo,void 0),i=n.ref(),s=n.ref(),l=n.computed(()=>({name:"eventListeners",enabled:!!e.visible})),c=n.computed(()=>{var b;const C=n.unref(i),I=(b=n.unref(s))!=null?b:vh;return{name:"arrow",enabled:!Cr(C),options:{element:C,padding:I}}}),d=n.computed(()=>({onFirstUpdate:()=>{h()},...yh(e,[n.unref(c),n.unref(l)])})),f=n.computed(()=>bh(e.referenceEl)||n.unref(a)),{attributes:u,state:p,styles:g,update:h,forceUpdate:m,instanceRef:y}=cp(f,o,d);return n.watch(y,b=>t.value=b),n.onMounted(()=>{n.watch(()=>{var b;return(b=n.unref(f))==null?void 0:b.getBoundingClientRect()},()=>{h()})}),{attributes:u,arrowRef:i,contentRef:o,instanceRef:y,state:p,styles:g,role:r,forceUpdate:m,update:h}},kh=(e,{attributes:t,styles:o,role:a})=>{const{nextZIndex:r}=Ro(),i=D("popper"),s=n.computed(()=>n.unref(t).popper),l=n.ref(G(e.zIndex)?e.zIndex:r()),c=n.computed(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),d=n.computed(()=>[{zIndex:n.unref(l)},n.unref(o).popper,e.popperStyle||{}]),f=n.computed(()=>a.value==="dialog"?"false":void 0),u=n.computed(()=>n.unref(o).arrow||{});return{ariaModal:f,arrowStyle:u,contentAttrs:s,contentClass:c,contentStyle:d,contentZIndex:l,updateZIndex:()=>{l.value=G(e.zIndex)?e.zIndex:r()}}},Eh=(e,t)=>{const o=n.ref(!1),a=n.ref();return{focusStartRef:a,trapped:o,onFocusAfterReleased:d=>{var f;((f=d.detail)==null?void 0:f.focusReason)!=="pointer"&&(a.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:d=>{e.visible&&!o.value&&(d.target&&(a.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{e.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,t("close")}}},Ih=n.defineComponent({name:"ElPopperContent"}),Th=n.defineComponent({...Ih,props:Bi,emits:gh,setup(e,{expose:t,emit:o}){const a=e,{focusStartRef:r,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=Eh(a,o),{attributes:u,arrowRef:p,contentRef:g,styles:h,instanceRef:m,role:y,update:b}=Sh(a),{ariaModal:C,arrowStyle:I,contentAttrs:k,contentClass:v,contentStyle:S,updateZIndex:E}=kh(a,{styles:h,attributes:u,role:y}),O=n.inject(_n,void 0),B=n.ref();n.provide(hi,{arrowStyle:I,arrowRef:p,arrowOffset:B}),O&&n.provide(_n,{...O,addInputId:Je,removeInputId:Je});let N;const x=(P=!0)=>{b(),P&&E()},T=()=>{x(!1),a.visible&&a.focusOnShow?i.value=!0:a.visible===!1&&(i.value=!1)};return n.onMounted(()=>{n.watch(()=>a.triggerTargetEl,(P,q)=>{N==null||N(),N=void 0;const V=n.unref(P||g.value),M=n.unref(q||g.value);Xe(V)&&(N=n.watch([y,()=>a.ariaLabel,C,()=>a.id],$=>{["role","aria-label","aria-modal","id"].forEach((pe,Y)=>{Sn($[Y])?V.removeAttribute(pe):V.setAttribute(pe,$[Y])})},{immediate:!0})),M!==V&&Xe(M)&&["role","aria-label","aria-modal","id"].forEach($=>{M.removeAttribute($)})},{immediate:!0}),n.watch(()=>a.visible,T,{immediate:!0})}),n.onBeforeUnmount(()=>{N==null||N(),N=void 0}),t({popperContentRef:g,popperInstanceRef:m,updatePopper:x,contentStyle:S}),(P,q)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({ref_key:"contentRef",ref:g},n.unref(k),{style:n.unref(S),class:n.unref(v),tabindex:"-1",onMouseenter:V=>P.$emit("mouseenter",V),onMouseleave:V=>P.$emit("mouseleave",V)}),[n.createVNode(n.unref(Mi),{trapped:n.unref(i),"trap-on-focus-in":!0,"focus-trap-el":n.unref(g),"focus-start-el":n.unref(r),onFocusAfterTrapped:n.unref(l),onFocusAfterReleased:n.unref(s),onFocusin:n.unref(c),onFocusoutPrevented:n.unref(d),onReleaseRequested:n.unref(f)},{default:n.withCtx(()=>[n.renderSlot(P.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var Ah=F(Th,[["__file","content.vue"]]);const Oh=oe(Jp),qo=Symbol("elTooltip"),se=R({...mp,...Bi,appendTo:{type:_([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:_(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...rt(["ariaLabel"])}),Xt=R({...wi,disabled:Boolean,trigger:{type:_([String,Array]),default:"hover"},triggerKeys:{type:_(Array),default:()=>[Ht.enter,Ht.space]}}),{useModelToggleProps:Mh,useModelToggleEmits:Bh,useModelToggle:xh}=iu("visible"),Nh=R({...mi,...Mh,...se,...Xt,...gi,showArrow:{type:Boolean,default:!0}}),_h=[...Bh,"before-show","before-hide","show","hide","open","close"],Ph=(e,t)=>ee(e)?e.includes(t):e===t,Tt=(e,t,o)=>a=>{Ph(n.unref(e),t)&&o(a)},Lh=n.defineComponent({name:"ElTooltipTrigger"}),Vh=n.defineComponent({...Lh,props:Xt,setup(e,{expose:t}){const o=e,a=D("tooltip"),{controlled:r,id:i,open:s,onOpen:l,onClose:c,onToggle:d}=n.inject(qo,void 0),f=n.ref(null),u=()=>{if(n.unref(r)||o.disabled)return!0},p=n.toRef(o,"trigger"),g=Ae(u,Tt(p,"hover",l)),h=Ae(u,Tt(p,"hover",c)),m=Ae(u,Tt(p,"click",k=>{k.button===0&&d(k)})),y=Ae(u,Tt(p,"focus",l)),b=Ae(u,Tt(p,"focus",c)),C=Ae(u,Tt(p,"contextmenu",k=>{k.preventDefault(),d(k)})),I=Ae(u,k=>{const{code:v}=k;o.triggerKeys.includes(v)&&(k.preventDefault(),d(k))});return t({triggerRef:f}),(k,v)=>(n.openBlock(),n.createBlock(n.unref(nh),{id:n.unref(i),"virtual-ref":k.virtualRef,open:n.unref(s),"virtual-triggering":k.virtualTriggering,class:n.normalizeClass(n.unref(a).e("trigger")),onBlur:n.unref(b),onClick:n.unref(m),onContextmenu:n.unref(C),onFocus:n.unref(y),onMouseenter:n.unref(g),onMouseleave:n.unref(h),onKeydown:n.unref(I)},{default:n.withCtx(()=>[n.renderSlot(k.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Rh=F(Vh,[["__file","trigger.vue"]]);const Fh=R({to:{type:_([String,Object]),required:!0},disabled:Boolean});var Dh=F(n.defineComponent({__name:"teleport",props:Fh,setup(e){return(t,o)=>t.disabled?n.renderSlot(t.$slots,"default",{key:0}):(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:t.to},[n.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const xi=oe(Dh),$h=n.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),zh=n.defineComponent({...$h,props:se,setup(e,{expose:t}){const o=e,{selector:a}=oi(),r=D("tooltip"),i=n.ref(null);let s;const{controlled:l,id:c,open:d,trigger:f,onClose:u,onOpen:p,onShow:g,onHide:h,onBeforeShow:m,onBeforeHide:y}=n.inject(qo,void 0),b=n.computed(()=>o.transition||`${r.namespace.value}-fade-in-linear`),C=n.computed(()=>process.env.NODE_ENV==="test"?!0:o.persistent);n.onBeforeUnmount(()=>{s==null||s()});const I=n.computed(()=>n.unref(C)?!0:n.unref(d)),k=n.computed(()=>o.disabled?!1:n.unref(d)),v=n.computed(()=>o.appendTo||a.value),S=n.computed(()=>{var M;return(M=o.style)!=null?M:{}}),E=n.ref(!0),O=()=>{h(),E.value=!0},B=()=>{if(n.unref(l))return!0},N=Ae(B,()=>{o.enterable&&n.unref(f)==="hover"&&p()}),x=Ae(B,()=>{n.unref(f)==="hover"&&u()}),T=()=>{var M,$;($=(M=i.value)==null?void 0:M.updatePopper)==null||$.call(M),m==null||m()},P=()=>{y==null||y()},q=()=>{g(),s=Bs(n.computed(()=>{var M;return(M=i.value)==null?void 0:M.popperContentRef}),()=>{if(n.unref(l))return;n.unref(f)!=="hover"&&u()})},V=()=>{o.virtualTriggering||u()};return n.watch(()=>n.unref(d),M=>{M?E.value=!1:s==null||s()},{flush:"post"}),n.watch(()=>o.content,()=>{var M,$;($=(M=i.value)==null?void 0:M.updatePopper)==null||$.call(M)}),t({contentRef:i}),(M,$)=>(n.openBlock(),n.createBlock(n.unref(xi),{disabled:!M.teleported,to:n.unref(v)},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:n.unref(b),onAfterLeave:O,onBeforeEnter:T,onAfterEnter:q,onBeforeLeave:P},{default:n.withCtx(()=>[n.unref(I)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(Ah),n.mergeProps({key:0,id:n.unref(c),ref_key:"contentRef",ref:i},M.$attrs,{"aria-label":M.ariaLabel,"aria-hidden":E.value,"boundaries-padding":M.boundariesPadding,"fallback-placements":M.fallbackPlacements,"gpu-acceleration":M.gpuAcceleration,offset:M.offset,placement:M.placement,"popper-options":M.popperOptions,strategy:M.strategy,effect:M.effect,enterable:M.enterable,pure:M.pure,"popper-class":M.popperClass,"popper-style":[M.popperStyle,n.unref(S)],"reference-el":M.referenceEl,"trigger-target-el":M.triggerTargetEl,visible:n.unref(k),"z-index":M.zIndex,onMouseenter:n.unref(N),onMouseleave:n.unref(x),onBlur:V,onClose:n.unref(u)}),{default:n.withCtx(()=>[n.renderSlot(M.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[n.vShow,n.unref(k)]]):n.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var jh=F(zh,[["__file","content.vue"]]);const Hh=n.defineComponent({name:"ElTooltip"}),Kh=n.defineComponent({...Hh,props:Nh,emits:_h,setup(e,{expose:t,emit:o}){const a=e;hp();const r=at(),i=n.ref(),s=n.ref(),l=()=>{var b;const C=n.unref(i);C&&((b=C.popperInstanceRef)==null||b.update())},c=n.ref(!1),d=n.ref(),{show:f,hide:u,hasUpdateHandler:p}=xh({indicator:c,toggleReason:d}),{onOpen:g,onClose:h}=gp({showAfter:n.toRef(a,"showAfter"),hideAfter:n.toRef(a,"hideAfter"),autoClose:n.toRef(a,"autoClose"),open:f,close:u}),m=n.computed(()=>_e(a.visible)&&!p.value);n.provide(qo,{controlled:m,id:r,open:n.readonly(c),trigger:n.toRef(a,"trigger"),onOpen:b=>{g(b)},onClose:b=>{h(b)},onToggle:b=>{n.unref(c)?h(b):g(b)},onShow:()=>{o("show",d.value)},onHide:()=>{o("hide",d.value)},onBeforeShow:()=>{o("before-show",d.value)},onBeforeHide:()=>{o("before-hide",d.value)},updatePopper:l}),n.watch(()=>a.disabled,b=>{b&&c.value&&(c.value=!1)});const y=b=>{var C,I;const k=(I=(C=s.value)==null?void 0:C.contentRef)==null?void 0:I.popperContentRef,v=(b==null?void 0:b.relatedTarget)||document.activeElement;return k&&k.contains(v)};return n.onDeactivated(()=>c.value&&u()),t({popperRef:i,contentRef:s,isFocusInsideContent:y,updatePopper:l,onOpen:g,onClose:h,hide:u}),(b,C)=>(n.openBlock(),n.createBlock(n.unref(Oh),{ref_key:"popperRef",ref:i,role:b.role},{default:n.withCtx(()=>[n.createVNode(Rh,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:n.withCtx(()=>[b.$slots.default?n.renderSlot(b.$slots,"default",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),n.createVNode(jh,{ref_key:"contentRef",ref:s,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":b.popperClass,"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"content",{},()=>[b.rawContent?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(b.content),1))]),b.showArrow?(n.openBlock(),n.createBlock(n.unref(Qp),{key:0,"arrow-offset":b.arrowOffset},null,8,["arrow-offset"])):n.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Uh=F(Kh,[["__file","tooltip.vue"]]);const Ni=oe(Uh),_i=Symbol("buttonGroupContextKey"),Wh=(e,t)=>{mt({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},n.computed(()=>e.type==="text"));const o=n.inject(_i,void 0),a=Nn("button"),{form:r}=Et(),i=kt(n.computed(()=>o==null?void 0:o.size)),s=Pn(),l=n.ref(),c=n.useSlots(),d=n.computed(()=>e.type||(o==null?void 0:o.type)||""),f=n.computed(()=>{var h,m,y;return(y=(m=e.autoInsertSpace)!=null?m:(h=a.value)==null?void 0:h.autoInsertSpace)!=null?y:!1}),u=n.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=n.computed(()=>{var h;const m=(h=c.default)==null?void 0:h.call(c);if(f.value&&(m==null?void 0:m.length)===1){const y=m[0];if((y==null?void 0:y.type)===n.Text){const b=y.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:s,_size:i,_type:d,_ref:l,_props:u,shouldAddSpace:p,handleClick:h=>{if(s.value||e.loading){h.stopPropagation();return}e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",h)}}},Go=R({size:St,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:ht},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:ht,default:()=>K.Loading},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:_([String,Object]),default:"button"}}),qh={click:e=>e instanceof MouseEvent};function J(e,t){Gh(e)&&(e="100%");var o=Jh(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function $n(e){return Math.min(1,Math.max(0,e))}function Gh(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Jh(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Pi(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function zn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function it(e){return e.length===1?"0"+e:String(e)}function Yh(e,t,o){return{r:J(e,255)*255,g:J(t,255)*255,b:J(o,255)*255}}function Li(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var a=Math.max(e,t,o),r=Math.min(e,t,o),i=0,s=0,l=(a+r)/2;if(a===r)s=0,i=0;else{var c=a-r;switch(s=l>.5?c/(2-a-r):c/(a+r),a){case e:i=(t-o)/c+(t<o?6:0);break;case t:i=(o-e)/c+2;break;case o:i=(e-t)/c+4;break}i/=6}return{h:i,s,l}}function Jo(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Zh(e,t,o){var a,r,i;if(e=J(e,360),t=J(t,100),o=J(o,100),t===0)r=o,i=o,a=o;else{var s=o<.5?o*(1+t):o+t-o*t,l=2*o-s;a=Jo(l,s,e+1/3),r=Jo(l,s,e),i=Jo(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function Vi(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var a=Math.max(e,t,o),r=Math.min(e,t,o),i=0,s=a,l=a-r,c=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(t-o)/l+(t<o?6:0);break;case t:i=(o-e)/l+2;break;case o:i=(e-t)/l+4;break}i/=6}return{h:i,s:c,v:s}}function Qh(e,t,o){e=J(e,360)*6,t=J(t,100),o=J(o,100);var a=Math.floor(e),r=e-a,i=o*(1-t),s=o*(1-r*t),l=o*(1-(1-r)*t),c=a%6,d=[o,s,i,i,l,o][c],f=[l,o,o,s,i,i][c],u=[i,i,l,o,o,s][c];return{r:d*255,g:f*255,b:u*255}}function Ri(e,t,o,a){var r=[it(Math.round(e).toString(16)),it(Math.round(t).toString(16)),it(Math.round(o).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Xh(e,t,o,a,r){var i=[it(Math.round(e).toString(16)),it(Math.round(t).toString(16)),it(Math.round(o).toString(16)),it(em(a))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function em(e){return Math.round(parseFloat(e)*255).toString(16)}function Fi(e){return le(e)/255}function le(e){return parseInt(e,16)}function tm(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Yo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function nm(e){var t={r:0,g:0,b:0},o=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=rm(e)),typeof e=="object"&&(Le(e.r)&&Le(e.g)&&Le(e.b)?(t=Yh(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Le(e.h)&&Le(e.s)&&Le(e.v)?(a=zn(e.s),r=zn(e.v),t=Qh(e.h,a,r),s=!0,l="hsv"):Le(e.h)&&Le(e.s)&&Le(e.l)&&(a=zn(e.s),i=zn(e.l),t=Zh(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Pi(o),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:o}}var om="[-\\+]?\\d+%?",am="[-\\+]?\\d*\\.\\d+%?",Ke="(?:".concat(am,")|(?:").concat(om,")"),Zo="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),Qo="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),we={CSS_UNIT:new RegExp(Ke),rgb:new RegExp("rgb"+Zo),rgba:new RegExp("rgba"+Qo),hsl:new RegExp("hsl"+Zo),hsla:new RegExp("hsla"+Qo),hsv:new RegExp("hsv"+Zo),hsva:new RegExp("hsva"+Qo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function rm(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Yo[e])e=Yo[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=we.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=we.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=we.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=we.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=we.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=we.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=we.hex8.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),a:Fi(o[4]),format:t?"name":"hex8"}:(o=we.hex6.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),format:t?"name":"hex"}:(o=we.hex4.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),a:Fi(o[4]+o[4]),format:t?"name":"hex8"}:(o=we.hex3.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Le(e){return!!we.CSS_UNIT.exec(String(e))}var im=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var a;if(t instanceof e)return t;typeof t=="number"&&(t=tm(t)),this.originalInput=t;var r=nm(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=o.format)!==null&&a!==void 0?a:r.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),o,a,r,i=t.r/255,s=t.g/255,l=t.b/255;return i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*o+.7152*a+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Pi(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Vi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Vi(this.r,this.g,this.b),o=Math.round(t.h*360),a=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(a,"%, ").concat(r,"%)"):"hsva(".concat(o,", ").concat(a,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Li(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Li(this.r,this.g,this.b),o=Math.round(t.h*360),a=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(a,"%, ").concat(r,"%)"):"hsla(".concat(o,", ").concat(a,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ri(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Xh(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),o=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(a,")"):"rgba(".concat(t,", ").concat(o,", ").concat(a,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(J(o,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(o){return Math.round(J(o,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Ri(this.r,this.g,this.b,!1),o=0,a=Object.entries(Yo);o<a.length;o++){var r=a[o],i=r[0],s=r[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var o=!!t;t=t??this.format;var a=!1,r=this.a<1&&this.a>=0,i=!o&&r&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l+=t/100,o.l=$n(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=$n(o.l),new e(o)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s-=t/100,o.s=$n(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=$n(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),a=(o.h+t)%360;return o.h=a<0?360+a:a,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var a=this.toRgb(),r=new e(t).toRgb(),i=o/100,s={r:(r.r-a.r)*i+a.r,g:(r.g-a.g)*i+a.g,b:(r.b-a.b)*i+a.b,a:(r.a-a.a)*i+a.a};return new e(s)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var a=this.toHsl(),r=360/o,i=[this];for(a.h=(a.h-(r*t>>1)+720)%360;--t;)a.h=(a.h+r)%360,i.push(new e(a));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var o=this.toHsv(),a=o.h,r=o.s,i=o.v,s=[],l=1/t;t--;)s.push(new e({h:a,s:r,v:i})),i=(i+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),a=new e(t).toRgb(),r=o.a+a.a*(1-o.a);return new e({r:(o.r*o.a+a.r*a.a*(1-o.a))/r,g:(o.g*o.a+a.g*a.a*(1-o.a))/r,b:(o.b*o.a+a.b*a.a*(1-o.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var o=this.toHsl(),a=o.h,r=[this],i=360/t,s=1;s<t;s++)r.push(new e({h:(a+s*i)%360,s:o.s,l:o.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ue(e,t=20){return e.mix("#141414",t).toString()}function sm(e){const t=Pn(),o=D("button");return n.computed(()=>{let a={},r=e.color;if(r){const i=r.match(/var\((.*?)\)/);i&&(r=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new im(r),l=e.dark?s.tint(20).toString():Ue(s,20);if(e.plain)a=o.cssVarBlock({"bg-color":e.dark?Ue(s,90):s.tint(90).toString(),"text-color":r,"border-color":e.dark?Ue(s,50):s.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":l,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(a[o.cssVarBlockName("disabled-bg-color")]=e.dark?Ue(s,90):s.tint(90).toString(),a[o.cssVarBlockName("disabled-text-color")]=e.dark?Ue(s,50):s.tint(50).toString(),a[o.cssVarBlockName("disabled-border-color")]=e.dark?Ue(s,80):s.tint(80).toString());else{const c=e.dark?Ue(s,30):s.tint(30).toString(),d=s.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(a=o.cssVarBlock({"bg-color":r,"text-color":d,"border-color":r,"hover-bg-color":c,"hover-text-color":d,"hover-border-color":c,"active-bg-color":l,"active-border-color":l}),t.value){const f=e.dark?Ue(s,50):s.tint(50).toString();a[o.cssVarBlockName("disabled-bg-color")]=f,a[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,a[o.cssVarBlockName("disabled-border-color")]=f}}}return a})}const lm=n.defineComponent({name:"ElButton"}),cm=n.defineComponent({...lm,props:Go,emits:qh,setup(e,{expose:t,emit:o}){const a=e,r=sm(a),i=D("button"),{_ref:s,_size:l,_type:c,_disabled:d,_props:f,shouldAddSpace:u,handleClick:p}=Wh(a,o),g=n.computed(()=>[i.b(),i.m(c.value),i.m(l.value),i.is("disabled",d.value),i.is("loading",a.loading),i.is("plain",a.plain),i.is("round",a.round),i.is("circle",a.circle),i.is("text",a.text),i.is("link",a.link),i.is("has-bg",a.bg)]);return t({ref:s,size:l,type:c,disabled:d,shouldAddSpace:u}),(h,m)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.tag),n.mergeProps({ref_key:"_ref",ref:s},n.unref(f),{class:n.unref(g),style:n.unref(r),onClick:n.unref(p)}),{default:n.withCtx(()=>[h.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[h.$slots.loading?n.renderSlot(h.$slots,"loading",{key:0}):(n.openBlock(),n.createBlock(n.unref(be),{key:1,class:n.normalizeClass(n.unref(i).is("loading"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(n.openBlock(),n.createBlock(n.unref(be),{key:1},{default:n.withCtx(()=>[h.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.icon),{key:0})):n.renderSlot(h.$slots,"icon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0),h.$slots.default?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass({[n.unref(i).em("text","expand")]:n.unref(u)})},[n.renderSlot(h.$slots,"default")],2)):n.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var dm=F(cm,[["__file","button.vue"]]);const fm={size:Go.size,type:Go.type},um=n.defineComponent({name:"ElButtonGroup"}),pm=n.defineComponent({...um,props:fm,setup(e){const t=e;n.provide(_i,n.reactive({size:n.toRef(t,"size"),type:n.toRef(t,"type")}));const o=D("button");return(a,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).b("group"))},[n.renderSlot(a.$slots,"default")],2))}});var Di=F(pm,[["__file","button-group.vue"]]);const Xo=oe(dm,{ButtonGroup:Di});tt(Di);var hm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const We=new Map;if(U){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const o of We.values())for(const{documentHandler:a}of o)a(t,e);e=void 0}})}function $i(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:Xe(t.arg)&&o.push(t.arg),function(a,r){const i=t.instance.popperRef,s=a.target,l=r==null?void 0:r.target,c=!t||!t.instance,d=!s||!l,f=e.contains(s)||e.contains(l),u=e===s,p=o.length&&o.some(h=>h==null?void 0:h.contains(s))||o.length&&o.includes(l),g=i&&(i.contains(s)||i.contains(l));c||d||f||u||p||g||t.value(a,r)}}const gm={beforeMount(e,t){We.has(e)||We.set(e,[]),We.get(e).push({documentHandler:$i(e,t),bindingFn:t.value})},updated(e,t){We.has(e)||We.set(e,[]);const o=We.get(e),a=o.findIndex(i=>i.bindingFn===t.oldValue),r={documentHandler:$i(e,t),bindingFn:t.value};a>=0?o.splice(a,1,r):o.push(r)},unmounted(e){We.delete(e)}},zi={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:St,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...rt(["ariaControls"])},ji={[X]:e=>me(e)||G(e)||_e(e),change:e=>me(e)||G(e)||_e(e)},At=Symbol("checkboxGroupContextKey"),ym=({model:e,isChecked:t})=>{const o=n.inject(At,void 0),a=n.computed(()=>{var i,s;const l=(i=o==null?void 0:o.max)==null?void 0:i.value,c=(s=o==null?void 0:o.min)==null?void 0:s.value;return!ze(l)&&e.value.length>=l&&!t.value||!ze(c)&&e.value.length<=c&&t.value});return{isDisabled:Pn(n.computed(()=>(o==null?void 0:o.disabled.value)||a.value)),isLimitDisabled:a}},bm=(e,{model:t,isLimitExceeded:o,hasOwnLabel:a,isDisabled:r,isLabeledByFormItem:i})=>{const s=n.inject(At,void 0),{formItem:l}=Et(),{emit:c}=n.getCurrentInstance();function d(h){var m,y,b,C;return[!0,e.trueValue,e.trueLabel].includes(h)?(y=(m=e.trueValue)!=null?m:e.trueLabel)!=null?y:!0:(C=(b=e.falseValue)!=null?b:e.falseLabel)!=null?C:!1}function f(h,m){c("change",d(h),m)}function u(h){if(o.value)return;const m=h.target;c("change",d(m.checked),h)}async function p(h){o.value||!a.value&&!r.value&&i.value&&(h.composedPath().some(b=>b.tagName==="LABEL")||(t.value=d([!1,e.falseValue,e.falseLabel].includes(t.value)),await n.nextTick(),f(t.value,h)))}const g=n.computed(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return n.watch(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(h=>ne(h)))}),{handleChange:u,onClickRoot:p}},wm=e=>{const t=n.ref(!1),{emit:o}=n.getCurrentInstance(),a=n.inject(At,void 0),r=n.computed(()=>ze(a)===!1),i=n.ref(!1),s=n.computed({get(){var l,c;return r.value?(l=a==null?void 0:a.modelValue)==null?void 0:l.value:(c=e.modelValue)!=null?c:t.value},set(l){var c,d;r.value&&ee(l)?(i.value=((c=a==null?void 0:a.max)==null?void 0:c.value)!==void 0&&l.length>(a==null?void 0:a.max.value)&&l.length>s.value.length,i.value===!1&&((d=a==null?void 0:a.changeEvent)==null||d.call(a,l))):(o(X,l),t.value=l)}});return{model:s,isGroup:r,isLimitExceeded:i}},Cm=(e,t,{model:o})=>{const a=n.inject(At,void 0),r=n.ref(!1),i=n.computed(()=>zt(e.value)?e.label:e.value),s=n.computed(()=>{const f=o.value;return _e(f)?f:ee(f)?te(i.value)?f.map(n.toRaw).some(u=>vn(u,i.value)):f.map(n.toRaw).includes(i.value):f!=null?f===e.trueValue||f===e.trueLabel:!!f}),l=kt(n.computed(()=>{var f;return(f=a==null?void 0:a.size)==null?void 0:f.value}),{prop:!0}),c=kt(n.computed(()=>{var f;return(f=a==null?void 0:a.size)==null?void 0:f.value})),d=n.computed(()=>!!t.default||!zt(i.value));return{checkboxButtonSize:l,isChecked:s,isFocused:r,checkboxSize:c,hasOwnLabel:d,actualValue:i}},Hi=(e,t)=>{const{formItem:o}=Et(),{model:a,isGroup:r,isLimitExceeded:i}=wm(e),{isFocused:s,isChecked:l,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,actualValue:u}=Cm(e,t,{model:a}),{isDisabled:p}=ym({model:a,isChecked:l}),{inputId:g,isLabeledByFormItem:h}=Ln(e,{formItemContext:o,disableIdGeneration:f,disableIdManagement:r}),{handleChange:m,onClickRoot:y}=bm(e,{model:a,isLimitExceeded:i,hasOwnLabel:f,isDisabled:p,isLabeledByFormItem:h});return(()=>{function C(){var I,k;ee(a.value)&&!a.value.includes(u.value)?a.value.push(u.value):a.value=(k=(I=e.trueValue)!=null?I:e.trueLabel)!=null?k:!0}e.checked&&C()})(),mt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>r.value&&zt(e.value))),mt({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.trueLabel)),mt({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:h,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,model:a,actualValue:u,handleChange:m,onClickRoot:y}},vm=n.defineComponent({name:"ElCheckbox"}),Sm=n.defineComponent({...vm,props:zi,emits:ji,setup(e){const t=e,o=n.useSlots(),{inputId:a,isLabeledByFormItem:r,isChecked:i,isDisabled:s,isFocused:l,checkboxSize:c,hasOwnLabel:d,model:f,actualValue:u,handleChange:p,onClickRoot:g}=Hi(t,o),h=D("checkbox"),m=n.computed(()=>[h.b(),h.m(c.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",i.value)]),y=n.computed(()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",l.value)]);return(b,C)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(!n.unref(d)&&n.unref(r)?"span":"label"),{class:n.normalizeClass(n.unref(m)),"aria-controls":b.indeterminate?b.ariaControls:null,onClick:n.unref(g)},{default:n.withCtx(()=>{var I,k,v,S;return[n.createElementVNode("span",{class:n.normalizeClass(n.unref(y))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,id:n.unref(a),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:n.unref(s),"true-value":(k=(I=b.trueValue)!=null?I:b.trueLabel)!=null?k:!0,"false-value":(S=(v=b.falseValue)!=null?v:b.falseLabel)!=null?S:!1,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,id:n.unref(a),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:n.unref(s),value:n.unref(u),name:b.name,tabindex:b.tabindex,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(h).e("inner"))},null,2)],2),n.unref(d)?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(h).e("label"))},[n.renderSlot(b.$slots,"default"),b.$slots.default?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(b.label),1)],64))],2)):n.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var km=F(Sm,[["__file","checkbox.vue"]]);const Em=n.defineComponent({name:"ElCheckboxButton"}),Im=n.defineComponent({...Em,props:zi,emits:ji,setup(e){const t=e,o=n.useSlots(),{isFocused:a,isChecked:r,isDisabled:i,checkboxButtonSize:s,model:l,actualValue:c,handleChange:d}=Hi(t,o),f=n.inject(At,void 0),u=D("checkbox"),p=n.computed(()=>{var h,m,y,b;const C=(m=(h=f==null?void 0:f.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:C,borderColor:C,color:(b=(y=f==null?void 0:f.textColor)==null?void 0:y.value)!=null?b:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),g=n.computed(()=>[u.b("button"),u.bm("button",s.value),u.is("disabled",i.value),u.is("checked",r.value),u.is("focus",a.value)]);return(h,m)=>{var y,b,C,I;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(n.unref(g))},[h.trueValue||h.falseValue||h.trueLabel||h.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":k=>n.isRef(l)?l.value=k:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(i),"true-value":(b=(y=h.trueValue)!=null?y:h.trueLabel)!=null?b:!0,"false-value":(I=(C=h.falseValue)!=null?C:h.falseLabel)!=null?I:!1,onChange:n.unref(d),onFocus:k=>a.value=!0,onBlur:k=>a.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,"onUpdate:modelValue":k=>n.isRef(l)?l.value=k:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(i),value:n.unref(c),onChange:n.unref(d),onFocus:k=>a.value=!0,onBlur:k=>a.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]),h.$slots.default||h.label?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(u).be("button","inner")),style:n.normalizeStyle(n.unref(r)?n.unref(p):void 0)},[n.renderSlot(h.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(h.label),1)])],6)):n.createCommentVNode("v-if",!0)],2)}}});var Ki=F(Im,[["__file","checkbox-button.vue"]]);const Tm=R({modelValue:{type:_(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:St,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...rt(["ariaLabel"])}),Am={[X]:e=>ee(e),change:e=>ee(e)},Om=n.defineComponent({name:"ElCheckboxGroup"}),Mm=n.defineComponent({...Om,props:Tm,emits:Am,setup(e,{emit:t}){const o=e,a=D("checkbox"),{formItem:r}=Et(),{inputId:i,isLabeledByFormItem:s}=Ln(o,{formItemContext:r}),l=async d=>{t(X,d),await n.nextTick(),t("change",d)},c=n.computed({get(){return o.modelValue},set(d){l(d)}});return n.provide(At,{...vr(n.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(r==null||r.validate("change").catch(d=>ne(d)))}),(d,f)=>{var u;return n.openBlock(),n.createBlock(n.resolveDynamicComponent(d.tag),{id:n.unref(i),class:n.normalizeClass(n.unref(a).b("group")),role:"group","aria-label":n.unref(s)?void 0:d.ariaLabel||"checkbox-group","aria-labelledby":n.unref(s)?(u=n.unref(r))==null?void 0:u.labelId:void 0},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Ui=F(Mm,[["__file","checkbox-group.vue"]]);const Wi=oe(km,{CheckboxButton:Ki,CheckboxGroup:Ui});tt(Ki);const qi=tt(Ui),Gi=R({modelValue:{type:[String,Number,Boolean],default:void 0},size:St,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Bm=R({...Gi,border:Boolean}),Ji={[X]:e=>me(e)||G(e)||_e(e),[Eo]:e=>me(e)||G(e)||_e(e)},Yi=Symbol("radioGroupKey"),Zi=(e,t)=>{const o=n.ref(),a=n.inject(Yi,void 0),r=n.computed(()=>!!a),i=n.computed(()=>zt(e.value)?e.label:e.value),s=n.computed({get(){return r.value?a.modelValue:e.modelValue},set(u){r.value?a.changeEvent(u):t&&t(X,u),o.value.checked=e.modelValue===i.value}}),l=kt(n.computed(()=>a==null?void 0:a.size)),c=Pn(n.computed(()=>a==null?void 0:a.disabled)),d=n.ref(!1),f=n.computed(()=>c.value||r.value&&s.value!==i.value?-1:0);return mt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},n.computed(()=>r.value&&zt(e.value))),{radioRef:o,isGroup:r,radioGroup:a,focus:d,size:l,disabled:c,tabIndex:f,modelValue:s,actualValue:i}},xm=n.defineComponent({name:"ElRadio"}),Nm=n.defineComponent({...xm,props:Bm,emits:Ji,setup(e,{emit:t}){const o=e,a=D("radio"),{radioRef:r,radioGroup:i,focus:s,size:l,disabled:c,modelValue:d,actualValue:f}=Zi(o,t);function u(){n.nextTick(()=>t("change",d.value))}return(p,g)=>{var h;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(a).b(),n.unref(a).is("disabled",n.unref(c)),n.unref(a).is("focus",n.unref(s)),n.unref(a).is("bordered",p.border),n.unref(a).is("checked",n.unref(d)===n.unref(f)),n.unref(a).m(n.unref(l))])},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(a).e("input"),n.unref(a).is("disabled",n.unref(c)),n.unref(a).is("checked",n.unref(d)===n.unref(f))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":m=>n.isRef(d)?d.value=m:null,class:n.normalizeClass(n.unref(a).e("original")),value:n.unref(f),name:p.name||((h=n.unref(i))==null?void 0:h.name),disabled:n.unref(c),checked:n.unref(d)===n.unref(f),type:"radio",onFocus:m=>s.value=!0,onBlur:m=>s.value=!1,onChange:u,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(d)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("inner"))},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("label")),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(p.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(p.label),1)])],42,["onKeydown"])],2)}}});var _m=F(Nm,[["__file","radio.vue"]]);const Pm=R({...Gi}),Lm=n.defineComponent({name:"ElRadioButton"}),Vm=n.defineComponent({...Lm,props:Pm,setup(e){const t=e,o=D("radio"),{radioRef:a,focus:r,size:i,disabled:s,modelValue:l,radioGroup:c,actualValue:d}=Zi(t),f=n.computed(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(u,p)=>{var g;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(o).b("button"),n.unref(o).is("active",n.unref(l)===n.unref(d)),n.unref(o).is("disabled",n.unref(s)),n.unref(o).is("focus",n.unref(r)),n.unref(o).bm("button",n.unref(i))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":h=>n.isRef(l)?l.value=h:null,class:n.normalizeClass(n.unref(o).be("button","original-radio")),value:n.unref(d),type:"radio",name:u.name||((g=n.unref(c))==null?void 0:g.name),disabled:n.unref(s),onFocus:h=>r.value=!0,onBlur:h=>r.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(l)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(o).be("button","inner")),style:n.normalizeStyle(n.unref(l)===n.unref(d)?n.unref(f):{}),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(u.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.label),1)])],46,["onKeydown"])],2)}}});var Qi=F(Vm,[["__file","radio-button.vue"]]);const Rm=R({id:{type:String,default:void 0},size:St,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...rt(["ariaLabel"])}),Fm=Ji,Dm=n.defineComponent({name:"ElRadioGroup"}),$m=n.defineComponent({...Dm,props:Rm,emits:Fm,setup(e,{emit:t}){const o=e,a=D("radio"),r=at(),i=n.ref(),{formItem:s}=Et(),{inputId:l,isLabeledByFormItem:c}=Ln(o,{formItemContext:s}),d=u=>{t(X,u),n.nextTick(()=>t("change",u))};n.onMounted(()=>{const u=i.value.querySelectorAll("[type=radio]"),p=u[0];!Array.from(u).some(g=>g.checked)&&p&&(p.tabIndex=0)});const f=n.computed(()=>o.name||r.value);return n.provide(Yi,n.reactive({...n.toRefs(o),changeEvent:d,name:f})),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(s==null||s.validate("change").catch(u=>ne(u)))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",{id:n.unref(l),ref_key:"radioGroupRef",ref:i,class:n.normalizeClass(n.unref(a).b("group")),role:"radiogroup","aria-label":n.unref(c)?void 0:u.ariaLabel||"radio-group","aria-labelledby":n.unref(c)?n.unref(s).labelId:void 0},[n.renderSlot(u.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Xi=F($m,[["__file","radio-group.vue"]]);const es=oe(_m,{RadioButton:Qi,RadioGroup:Xi}),ts=tt(Xi);tt(Qi);const ea=R({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Or},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),zm={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},jm=n.defineComponent({name:"ElTag"}),Hm=n.defineComponent({...jm,props:ea,emits:zm,setup(e,{emit:t}){const o=e,a=kt(),r=D("tag"),i=n.computed(()=>{const{type:d,hit:f,effect:u,closable:p,round:g}=o;return[r.b(),r.is("closable",p),r.m(d||"primary"),r.m(a.value),r.m(u),r.is("hit",f),r.is("round",g)]}),s=d=>{t("close",d)},l=d=>{t("click",d)},c=d=>{d.component.subTree.component.bum=null};return(d,f)=>d.disableTransitions?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(i)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(r).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(K.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(n.Transition,{key:1,name:`${n.unref(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(i)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(r).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(K.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Km=F(Hm,[["__file","tag.vue"]]);const Um=oe(Km),ns=Symbol("rowContextKey"),Wm=R({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),qm=n.defineComponent({name:"ElRow"}),Gm=n.defineComponent({...qm,props:Wm,setup(e){const t=e,o=D("row"),a=n.computed(()=>t.gutter);n.provide(ns,{gutter:a});const r=n.computed(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),i=n.computed(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(i)),style:n.normalizeStyle(n.unref(r))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Jm=F(Gm,[["__file","row.vue"]]);const en=oe(Jm),Ym=R({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:_([Number,Object]),default:()=>Kt({})},sm:{type:_([Number,Object]),default:()=>Kt({})},md:{type:_([Number,Object]),default:()=>Kt({})},lg:{type:_([Number,Object]),default:()=>Kt({})},xl:{type:_([Number,Object]),default:()=>Kt({})}}),Zm=n.defineComponent({name:"ElCol"}),Qm=n.defineComponent({...Zm,props:Ym,setup(e){const t=e,{gutter:o}=n.inject(ns,{gutter:n.computed(()=>0)}),a=D("col"),r=n.computed(()=>{const s={};return o.value&&(s.paddingLeft=s.paddingRight=`${o.value/2}px`),s}),i=n.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(d=>{const f=t[d];G(f)&&(d==="span"?s.push(a.b(`${t[d]}`)):f>0&&s.push(a.b(`${d}-${t[d]}`)))}),["xs","sm","md","lg","xl"].forEach(d=>{G(t[d])?s.push(a.b(`${d}-${t[d]}`)):te(t[d])&&Object.entries(t[d]).forEach(([f,u])=>{s.push(f!=="span"?a.b(`${d}-${f}-${u}`):a.b(`${d}-${u}`))})}),o.value&&s.push(a.is("guttered")),[a.b(),s]});return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(i)),style:n.normalizeStyle(n.unref(r))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Xm=F(Qm,[["__file","col.vue"]]);const tn=oe(Xm),eg=R({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:_([String,Array,Object])},zIndex:{type:_([String,Number])}}),tg={click:e=>e instanceof MouseEvent},ng="overlay";var og=n.defineComponent({name:"ElOverlay",props:eg,emits:tg,setup(e,{slots:t,emit:o}){const a=D(ng),r=c=>{o("click",c)},{onClick:i,onMousedown:s,onMouseup:l}=Qr(e.customMaskEvent?void 0:r);return()=>e.mask?n.createVNode("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:l},[n.renderSlot(t,"default")],In.STYLE|In.CLASS|In.PROPS,["onClick","onMouseup","onMousedown"]):n.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[n.renderSlot(t,"default")])}});const ag=og,os=Symbol("dialogInjectionKey"),as=R({center:Boolean,alignCenter:Boolean,closeIcon:{type:ht},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),rg={close:()=>!0},ig=n.defineComponent({name:"ElDialogContent"}),sg=n.defineComponent({...ig,props:as,emits:rg,setup(e,{expose:t}){const o=e,{t:a}=Io(),{Close:r}=Wf,{dialogRef:i,headerRef:s,bodyId:l,ns:c,style:d}=n.inject(os),{focusTrapRef:f}=n.inject(ki),u=n.computed(()=>[c.b(),c.is("fullscreen",o.fullscreen),c.is("draggable",o.draggable),c.is("align-center",o.alignCenter),{[c.m("center")]:o.center}]),p=Jf(f,i),g=n.computed(()=>o.draggable),h=n.computed(()=>o.overflow),{resetPosition:m}=Zf(i,s,g,h);return t({resetPosition:m}),(y,b)=>(n.openBlock(),n.createElementBlock("div",{ref:n.unref(p),class:n.normalizeClass(n.unref(u)),style:n.normalizeStyle(n.unref(d)),tabindex:"-1"},[n.createElementVNode("header",{ref_key:"headerRef",ref:s,class:n.normalizeClass([n.unref(c).e("header"),{"show-close":y.showClose}])},[n.renderSlot(y.$slots,"header",{},()=>[n.createElementVNode("span",{role:"heading","aria-level":y.ariaLevel,class:n.normalizeClass(n.unref(c).e("title"))},n.toDisplayString(y.title),11,["aria-level"])]),y.showClose?(n.openBlock(),n.createElementBlock("button",{key:0,"aria-label":n.unref(a)("el.dialog.close"),class:n.normalizeClass(n.unref(c).e("headerbtn")),type:"button",onClick:C=>y.$emit("close")},[n.createVNode(n.unref(be),{class:n.normalizeClass(n.unref(c).e("close"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(y.closeIcon||n.unref(r))))]),_:1},8,["class"])],10,["aria-label","onClick"])):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{id:n.unref(l),class:n.normalizeClass(n.unref(c).e("body"))},[n.renderSlot(y.$slots,"default")],10,["id"]),y.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:0,class:n.normalizeClass(n.unref(c).e("footer"))},[n.renderSlot(y.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6))}});var lg=F(sg,[["__file","dialog-content.vue"]]);const cg=R({...as,appendToBody:Boolean,appendTo:{type:_([String,Object]),default:"body"},beforeClose:{type:_(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),dg={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[X]:e=>_e(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},fg=(e,t)=>{var o;const r=n.getCurrentInstance().emit,{nextZIndex:i}=Ro();let s="";const l=at(),c=at(),d=n.ref(!1),f=n.ref(!1),u=n.ref(!1),p=n.ref((o=e.zIndex)!=null?o:i());let g,h;const m=Nn("namespace",Ut),y=n.computed(()=>{const V={},M=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(V[`${M}-margin-top`]=e.top),e.width&&(V[`${M}-width`]=et(e.width))),V}),b=n.computed(()=>e.alignCenter?{display:"flex"}:{});function C(){r("opened")}function I(){r("closed"),r(X,!1),e.destroyOnClose&&(u.value=!1)}function k(){r("close")}function v(){h==null||h(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Sa(()=>B(),e.openDelay):B()}function S(){g==null||g(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Sa(()=>N(),e.closeDelay):N()}function E(){function V(M){M||(f.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(V):S()}function O(){e.closeOnClickModal&&E()}function B(){U&&(d.value=!0)}function N(){d.value=!1}function x(){r("openAutoFocus")}function T(){r("closeAutoFocus")}function P(V){var M;((M=V.detail)==null?void 0:M.focusReason)==="pointer"&&V.preventDefault()}e.lockScroll&&ou(d);function q(){e.closeOnPressEscape&&E()}return n.watch(()=>e.modelValue,V=>{V?(f.value=!1,v(),u.value=!0,p.value=Cr(e.zIndex)?i():p.value++,n.nextTick(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):d.value&&S()}),n.watch(()=>e.fullscreen,V=>{t.value&&(V?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),n.onMounted(()=>{e.modelValue&&(d.value=!0,u.value=!0,v())}),{afterEnter:C,afterLeave:I,beforeLeave:k,handleClose:E,onModalClick:O,close:S,doClose:N,onOpenAutoFocus:x,onCloseAutoFocus:T,onCloseRequested:q,onFocusoutPrevented:P,titleId:l,bodyId:c,closed:f,style:y,overlayDialogStyle:b,rendered:u,visible:d,zIndex:p}},ug=n.defineComponent({name:"ElDialog",inheritAttrs:!1}),pg=n.defineComponent({...ug,props:cg,emits:dg,setup(e,{expose:t}){const o=e,a=n.useSlots();mt({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},n.computed(()=>!!a.title));const r=D("dialog"),i=n.ref(),s=n.ref(),l=n.ref(),{visible:c,titleId:d,bodyId:f,style:u,overlayDialogStyle:p,rendered:g,zIndex:h,afterEnter:m,afterLeave:y,beforeLeave:b,handleClose:C,onModalClick:I,onOpenAutoFocus:k,onCloseAutoFocus:v,onCloseRequested:S,onFocusoutPrevented:E}=fg(o,i);n.provide(os,{dialogRef:i,headerRef:s,bodyId:f,ns:r,rendered:g,style:u});const O=Qr(I),B=n.computed(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var x;(x=l.value)==null||x.resetPosition()}}),(x,T)=>(n.openBlock(),n.createBlock(n.unref(xi),{to:x.appendTo,disabled:x.appendTo!=="body"?!1:!x.appendToBody},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:"dialog-fade",onAfterEnter:n.unref(m),onAfterLeave:n.unref(y),onBeforeLeave:n.unref(b),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(ag),{"custom-mask-event":"",mask:x.modal,"overlay-class":x.modalClass,"z-index":n.unref(h)},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":x.title||void 0,"aria-labelledby":x.title?void 0:n.unref(d),"aria-describedby":n.unref(f),class:n.normalizeClass(`${n.unref(r).namespace.value}-overlay-dialog`),style:n.normalizeStyle(n.unref(p)),onClick:n.unref(O).onClick,onMousedown:n.unref(O).onMousedown,onMouseup:n.unref(O).onMouseup},[n.createVNode(n.unref(Mi),{loop:"",trapped:n.unref(c),"focus-start-el":"container",onFocusAfterTrapped:n.unref(k),onFocusAfterReleased:n.unref(v),onFocusoutPrevented:n.unref(E),onReleaseRequested:n.unref(S)},{default:n.withCtx(()=>[n.unref(g)?(n.openBlock(),n.createBlock(lg,n.mergeProps({key:0,ref_key:"dialogContentRef",ref:l},x.$attrs,{center:x.center,"align-center":x.alignCenter,"close-icon":x.closeIcon,draggable:n.unref(B),overflow:x.overflow,fullscreen:x.fullscreen,"show-close":x.showClose,title:x.title,"aria-level":x.headerAriaLevel,onClose:n.unref(C)}),n.createSlots({header:n.withCtx(()=>[x.$slots.title?n.renderSlot(x.$slots,"title",{key:1}):n.renderSlot(x.$slots,"header",{key:0,close:n.unref(C),titleId:n.unref(d),titleClass:n.unref(r).e("title")})]),default:n.withCtx(()=>[n.renderSlot(x.$slots,"default")]),_:2},[x.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(x.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):n.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[n.vShow,n.unref(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var hg=F(pg,[["__file","dialog.vue"]]);const mg=oe(hg),gg=n.defineComponent({inheritAttrs:!1});function yg(e,t,o,a,r,i){return n.renderSlot(e.$slots,"default")}var bg=F(gg,[["render",yg],["__file","collection.vue"]]);const wg=n.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function Cg(e,t,o,a,r,i){return n.renderSlot(e.$slots,"default")}var vg=F(wg,[["render",Cg],["__file","collection-item.vue"]]);const Sg="data-el-collection-item",kg=e=>{const t=`El${e}Collection`,o=`${t}Item`,a=Symbol(t),r=Symbol(o),i={...bg,name:t,setup(){const l=n.ref(null),c=new Map,d=()=>{const f=n.unref(l);if(!f)return[];const u=Array.from(f.querySelectorAll(`[${Sg}]`));return[...c.values()].sort((g,h)=>u.indexOf(g.ref)-u.indexOf(h.ref))};n.provide(a,{itemMap:c,getItems:d,collectionRef:l})}},s={...vg,name:o,setup(l,{attrs:c}){const d=n.ref(null),f=n.inject(a,void 0);n.provide(r,{collectionItemRef:d}),n.onMounted(()=>{const u=n.unref(d);u&&f.itemMap.set(u,{ref:u,...c})}),n.onBeforeUnmount(()=>{const u=n.unref(d);f.itemMap.delete(u)})}};return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:i,ElCollectionItem:s}},ta=R({trigger:Xt.trigger,effect:{...se.effect,default:"light"},type:{type:_(String)},placement:{type:_(String),default:"bottom"},popperOptions:{type:_(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:_([Number,String]),default:0},maxHeight:{type:_([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:_(Object)},teleported:se.teleported});R({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ht}}),R({onKeydown:{type:_(Function)}}),kg("Dropdown");const rs=Symbol("ElSelectGroup"),jn=Symbol("ElSelect");function Eg(e,t){const o=n.inject(jn),a=n.inject(rs,{disabled:!1}),r=n.computed(()=>f(De(o.props.modelValue),e.value)),i=n.computed(()=>{var g;if(o.props.multiple){const h=De((g=o.props.modelValue)!=null?g:[]);return!r.value&&h.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),s=n.computed(()=>e.label||(te(e.value)?"":e.value)),l=n.computed(()=>e.value||e.label||""),c=n.computed(()=>e.disabled||t.groupDisabled||i.value),d=n.getCurrentInstance(),f=(g=[],h)=>{if(te(e.value)){const m=o.props.valueKey;return g&&g.some(y=>n.toRaw(xe(y,m))===xe(h,m))}else return g&&g.includes(h)},u=()=>{!e.disabled&&!a.disabled&&(o.states.hoveringIndex=o.optionsArray.indexOf(d.proxy))},p=g=>{const h=new RegExp(zf(g),"i");t.visible=h.test(s.value)||e.created};return n.watch(()=>s.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),n.watch(()=>e.value,(g,h)=>{const{remote:m,valueKey:y}=o.props;if(g!==h&&(o.onOptionDestroy(h,d.proxy),o.onOptionCreate(d.proxy)),!e.created&&!m){if(y&&te(g)&&te(h)&&g[y]===h[y])return;o.setSelected()}}),n.watch(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:o,currentLabel:s,currentValue:l,itemSelected:r,isDisabled:c,hoverItem:u,updateOption:p}}const Ig=n.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=D("select"),o=at(),a=n.computed(()=>[t.be("dropdown","item"),t.is("disabled",n.unref(l)),t.is("selected",n.unref(s)),t.is("hovering",n.unref(p))]),r=n.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f}=Eg(e,r),{visible:u,hover:p}=n.toRefs(r),g=n.getCurrentInstance().proxy;c.onOptionCreate(g),n.onBeforeUnmount(()=>{const m=g.value,{selected:y}=c.states,C=(c.props.multiple?y:[y]).some(I=>I.value===g.value);n.nextTick(()=>{c.states.cachedOptions.get(m)===g&&!C&&c.states.cachedOptions.delete(m)}),c.onOptionDestroy(m,g)});function h(){l.value||c.handleOptionSelect(g)}return{ns:t,id:o,containerKls:a,currentLabel:i,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f,visible:u,hover:p,selectOptionClick:h,states:r}}});function Tg(e,t,o,a,r,i){return n.withDirectives((n.openBlock(),n.createElementBlock("li",{id:e.id,class:n.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:n.withModifiers(e.selectOptionClick,["stop"])},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[n.vShow,e.visible]])}var na=F(Ig,[["render",Tg],["__file","option.vue"]]);const Ag=n.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=n.inject(jn),t=D("select"),o=n.computed(()=>e.props.popperClass),a=n.computed(()=>e.props.multiple),r=n.computed(()=>e.props.fitInputWidth),i=n.ref("");function s(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return n.onMounted(()=>{s(),Re(e.selectRef,s)}),{ns:t,minWidth:i,popperClass:o,isMultiple:a,isFitInputWidth:r}}});function Og(e,t,o,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:n.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("dropdown","header"))},[n.renderSlot(e.$slots,"header")],2)):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default"),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.be("dropdown","footer"))},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6)}var Mg=F(Ag,[["render",Og],["__file","select-dropdown.vue"]]);const Bg=11,xg=(e,t)=>{const{t:o}=Io(),a=at(),r=D("select"),i=D("input"),s=n.reactive({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=n.ref(null),c=n.ref(null),d=n.ref(null),f=n.ref(null),u=n.ref(null),p=n.ref(null),g=n.ref(null),h=n.ref(null),m=n.ref(null),y=n.ref(null),b=n.ref(null),C=n.ref(null),{isComposing:I,handleCompositionStart:k,handleCompositionUpdate:v,handleCompositionEnd:S}=vp({afterComposition:w=>cn(w)}),{wrapperRef:E,isFocused:O}=Cp(u,{beforeFocus(){return M.value},afterFocus(){e.automaticDropdown&&!B.value&&(B.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(w){var A,L;return((A=d.value)==null?void 0:A.isFocusInsideContent(w))||((L=f.value)==null?void 0:L.isFocusInsideContent(w))},afterBlur(){B.value=!1,s.menuVisibleOnFocus=!1}}),B=n.ref(!1),N=n.ref(),{form:x,formItem:T}=Et(),{inputId:P}=Ln(e,{formItemContext:T}),{valueOnClear:q,isEmptyValue:V}=Tp(e),M=n.computed(()=>e.disabled||(x==null?void 0:x.disabled)),$=n.computed(()=>ee(e.modelValue)?e.modelValue.length>0:!V(e.modelValue)),pe=n.computed(()=>e.clearable&&!M.value&&s.inputHovering&&$.value),Y=n.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Z=n.computed(()=>r.is("reverse",Y.value&&B.value)),ce=n.computed(()=>(T==null?void 0:T.validateState)||""),Ee=n.computed(()=>qf[ce.value]),Bt=n.computed(()=>e.remote?300:0),Ie=n.computed(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&ie.value===0?e.noMatchText||o("el.select.noMatch"):s.options.size===0?e.noDataText||o("el.select.noData"):null),ie=n.computed(()=>W.value.filter(w=>w.visible).length),W=n.computed(()=>{const w=Array.from(s.options.values()),A=[];return s.optionValues.forEach(L=>{const z=w.findIndex(Ge=>Ge.value===L);z>-1&&A.push(w[z])}),A.length>=w.length?A:w}),st=n.computed(()=>Array.from(s.cachedOptions.values())),qe=n.computed(()=>{const w=W.value.filter(A=>!A.created).some(A=>A.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!w}),Gn=()=>{e.filterable&&Q(e.filterMethod)||e.filterable&&e.remote&&Q(e.remoteMethod)||W.value.forEach(w=>{var A;(A=w.updateOption)==null||A.call(w,s.inputValue)})},Jn=kt(),on=n.computed(()=>["small"].includes(Jn.value)?"small":"default"),pa=n.computed({get(){return B.value&&Ie.value!==!1},set(w){B.value=w}}),Yn=n.computed(()=>{if(e.multiple&&!ze(e.modelValue))return De(e.modelValue).length===0&&!s.inputValue;const w=ee(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ze(w)?!s.inputValue:!0}),ha=n.computed(()=>{var w;const A=(w=e.placeholder)!=null?w:o("el.select.placeholder");return e.multiple||!$.value?A:s.selectedLabel}),ma=n.computed(()=>no?null:"mouseenter");n.watch(()=>e.modelValue,(w,A)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",lt("")),xt(),!vn(w,A)&&e.validateEvent&&(T==null||T.validate("change").catch(L=>ne(L)))},{flush:"post",deep:!0}),n.watch(()=>B.value,w=>{w?lt(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",w)}),n.watch(()=>s.options.entries(),()=>{var w;if(!U)return;const A=((w=l.value)==null?void 0:w.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ze(e.modelValue)||!Array.from(A).includes(document.activeElement))&&xt(),e.defaultFirstOption&&(e.filterable||e.remote)&&ie.value&&an()},{flush:"post"}),n.watch(()=>s.hoveringIndex,w=>{G(w)&&w>-1?N.value=W.value[w]||{}:N.value={},W.value.forEach(A=>{A.hover=N.value===A})}),n.watchEffect(()=>{s.isBeforeHide||Gn()});const lt=w=>{s.previousQuery===w||I.value||(s.previousQuery=w,e.filterable&&Q(e.filterMethod)?e.filterMethod(w):e.filterable&&e.remote&&Q(e.remoteMethod)&&e.remoteMethod(w),e.defaultFirstOption&&(e.filterable||e.remote)&&ie.value?n.nextTick(an):n.nextTick(Ve))},an=()=>{const w=W.value.filter(z=>z.visible&&!z.disabled&&!z.states.groupDisabled),A=w.find(z=>z.created),L=w[0];s.hoveringIndex=ws(W.value,A||L)},xt=()=>{if(e.multiple)s.selectedLabel="";else{const A=ee(e.modelValue)?e.modelValue[0]:e.modelValue,L=Zn(A);s.selectedLabel=L.currentLabel,s.selected=[L];return}const w=[];ze(e.modelValue)||De(e.modelValue).forEach(A=>{w.push(Zn(A))}),s.selected=w},Zn=w=>{let A;const L=ao(w).toLowerCase()==="object",z=ao(w).toLowerCase()==="null",Ge=ao(w).toLowerCase()==="undefined";for(let dt=s.cachedOptions.size-1;dt>=0;dt--){const Te=st.value[dt];if(L?xe(Te.value,e.valueKey)===xe(w,e.valueKey):Te.value===w){A={value:w,currentLabel:Te.currentLabel,get isDisabled(){return Te.isDisabled}};break}}if(A)return A;const _t=L?w.label:!z&&!Ge?w:"";return{value:w,currentLabel:_t}},Ve=()=>{s.hoveringIndex=W.value.findIndex(w=>s.selected.some(A=>ga(A)===ga(w)))},Nt=()=>{s.selectionWidth=c.value.getBoundingClientRect().width},rn=()=>{s.calculatorWidth=p.value.getBoundingClientRect().width},Qn=()=>{s.collapseItemWidth=b.value.getBoundingClientRect().width},ct=()=>{var w,A;(A=(w=d.value)==null?void 0:w.updatePopper)==null||A.call(w)},sn=()=>{var w,A;(A=(w=f.value)==null?void 0:w.updatePopper)==null||A.call(w)},ln=()=>{s.inputValue.length>0&&!B.value&&(B.value=!0),lt(s.inputValue)},cn=w=>{if(s.inputValue=w.target.value,e.remote)dn();else return ln()},dn=Lf(()=>{ln()},Bt.value),fn=w=>{vn(e.modelValue,w)||t(Eo,w)},ab=w=>Vf(w,A=>!s.disabledOptions.has(A)),rb=w=>{if(e.multiple&&w.code!==Ht.delete&&w.target.value.length<=0){const A=De(e.modelValue).slice(),L=ab(A);if(L<0)return;const z=A[L];A.splice(L,1),t(X,A),fn(A),t("remove-tag",z)}},ib=(w,A)=>{const L=s.selected.indexOf(A);if(L>-1&&!M.value){const z=De(e.modelValue).slice();z.splice(L,1),t(X,z),fn(z),t("remove-tag",A.value)}w.stopPropagation(),eo()},ys=w=>{w.stopPropagation();const A=e.multiple?[]:q.value;if(e.multiple)for(const L of s.selected)L.isDisabled&&A.push(L.value);t(X,A),fn(A),s.hoveringIndex=-1,B.value=!1,t("clear"),eo()},bs=w=>{var A;if(e.multiple){const L=De((A=e.modelValue)!=null?A:[]).slice(),z=ws(L,w.value);z>-1?L.splice(z,1):(e.multipleLimit<=0||L.length<e.multipleLimit)&&L.push(w.value),t(X,L),fn(L),w.created&&lt(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(X,w.value),fn(w.value),B.value=!1;eo(),!B.value&&n.nextTick(()=>{Xn(w)})},ws=(w=[],A)=>{if(!te(A))return w.indexOf(A);const L=e.valueKey;let z=-1;return w.some((Ge,_t)=>n.toRaw(xe(Ge,L))===xe(A,L)?(z=_t,!0):!1),z},Xn=w=>{var A,L,z,Ge,_t;const to=ee(w)?w[0]:w;let dt=null;if(to!=null&&to.value){const Te=W.value.filter(ks=>ks.value===to.value);Te.length>0&&(dt=Te[0].$el)}if(d.value&&dt){const Te=(Ge=(z=(L=(A=d.value)==null?void 0:A.popperRef)==null?void 0:L.contentRef)==null?void 0:z.querySelector)==null?void 0:Ge.call(z,`.${r.be("dropdown","wrap")}`);Te&&Kf(Te,dt)}(_t=C.value)==null||_t.handleScroll()},sb=w=>{s.options.set(w.value,w),s.cachedOptions.set(w.value,w),w.disabled&&s.disabledOptions.set(w.value,w)},lb=(w,A)=>{s.options.get(w)===A&&s.options.delete(w)},cb=n.computed(()=>{var w,A;return(A=(w=d.value)==null?void 0:w.popperRef)==null?void 0:A.contentRef}),db=()=>{s.isBeforeHide=!1,n.nextTick(()=>Xn(s.selected))},eo=()=>{var w;(w=u.value)==null||w.focus()},Cs=()=>{var w;(w=u.value)==null||w.blur()},fb=w=>{ys(w)},ub=()=>{B.value=!1,O.value&&Cs()},pb=()=>{s.inputValue.length>0?s.inputValue="":B.value=!1},vs=()=>{M.value||(no&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:B.value=!B.value)},hb=()=>{B.value?W.value[s.hoveringIndex]&&bs(W.value[s.hoveringIndex]):vs()},ga=w=>te(w.value)?xe(w.value,e.valueKey):w.value,mb=n.computed(()=>W.value.filter(w=>w.visible).every(w=>w.disabled)),gb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),yb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Ss=w=>{if(!B.value){B.value=!0;return}if(!(s.options.size===0||s.filteredOptionsCount===0||I.value)&&!mb.value){w==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):w==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const A=W.value[s.hoveringIndex];(A.disabled===!0||A.states.groupDisabled===!0||!A.visible)&&Ss(w),n.nextTick(()=>Xn(N.value))}},bb=()=>{if(!c.value)return 0;const w=window.getComputedStyle(c.value);return Number.parseFloat(w.gap||"6px")},wb=n.computed(()=>{const w=bb();return{maxWidth:`${b.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-w:s.selectionWidth}px`}}),Cb=n.computed(()=>({maxWidth:`${s.selectionWidth}px`})),vb=n.computed(()=>({width:`${Math.max(s.calculatorWidth,Bg)}px`}));return Re(c,Nt),Re(p,rn),Re(m,ct),Re(E,ct),Re(y,sn),Re(b,Qn),n.onMounted(()=>{xt()}),{inputId:P,contentId:a,nsSelect:r,nsInput:i,states:s,isFocused:O,expanded:B,optionsArray:W,hoverOption:N,selectSize:Jn,filteredOptionsCount:ie,resetCalculatorWidth:rn,updateTooltip:ct,updateTagTooltip:sn,debouncedOnInputChange:dn,onInput:cn,deletePrevTag:rb,deleteTag:ib,deleteSelected:ys,handleOptionSelect:bs,scrollToOption:Xn,hasModelValue:$,shouldShowPlaceholder:Yn,currentPlaceholder:ha,mouseEnterEventName:ma,showClose:pe,iconComponent:Y,iconReverse:Z,validateState:ce,validateIcon:Ee,showNewOption:qe,updateOptions:Gn,collapseTagSize:on,setSelected:xt,selectDisabled:M,emptyText:Ie,handleCompositionStart:k,handleCompositionUpdate:v,handleCompositionEnd:S,onOptionCreate:sb,onOptionDestroy:lb,handleMenuEnter:db,focus:eo,blur:Cs,handleClearClick:fb,handleClickOutside:ub,handleEsc:pb,toggleMenu:vs,selectOption:hb,getValueKey:ga,navigateOptions:Ss,dropdownMenuVisible:pa,showTagList:gb,collapseTagList:yb,tagStyle:wb,collapseTagStyle:Cb,inputStyle:vb,popperRef:cb,inputRef:u,tooltipRef:d,tagTooltipRef:f,calculatorRef:p,prefixRef:g,suffixRef:h,selectRef:l,wrapperRef:E,selectionRef:c,scrollbarRef:C,menuRef:m,tagMenuRef:y,collapseItemRef:b}};var Ng=n.defineComponent({name:"ElOptions",setup(e,{slots:t}){const o=n.inject(jn);let a=[];return()=>{var r,i;const s=(r=t.default)==null?void 0:r.call(t),l=[];function c(d){ee(d)&&d.forEach(f=>{var u,p,g,h;const m=(u=(f==null?void 0:f.type)||{})==null?void 0:u.name;m==="ElOptionGroup"?c(!me(f.children)&&!ee(f.children)&&Q((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):m==="ElOption"?l.push((h=f.props)==null?void 0:h.value):ee(f.children)&&c(f.children)})}return s.length&&c((i=s[0])==null?void 0:i.children),vn(l,a)||(a=l,o&&(o.states.optionValues=l)),s}}});const _g=R({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:St,effect:{type:_(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:_(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:se.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ht,default:K.CircleClose},fitInputWidth:Boolean,suffixIcon:{type:ht,default:K.ArrowDown},tagType:{...ea.type,default:"info"},tagEffect:{...ea.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:_(String),values:Tn,default:"bottom-start"},fallbackPlacements:{type:_(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...Ip,...rt(["ariaLabel"])}),is="ElSelect",Pg=n.defineComponent({name:is,componentName:is,components:{ElSelectMenu:Mg,ElOption:na,ElOptions:Ng,ElTag:Um,ElScrollbar:Wp,ElTooltip:Ni,ElIcon:be},directives:{ClickOutside:gm},props:_g,emits:[X,Eo,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=n.computed(()=>{const{modelValue:i,multiple:s}=e,l=s?[]:void 0;return ee(i)?s?i:l:s?l:i}),a=n.reactive({...n.toRefs(e),modelValue:o}),r=xg(a,t);return n.provide(jn,n.reactive({props:a,states:r.states,optionsArray:r.optionsArray,handleOptionSelect:r.handleOptionSelect,onOptionCreate:r.onOptionCreate,onOptionDestroy:r.onOptionDestroy,selectRef:r.selectRef,setSelected:r.setSelected})),{...r,modelValue:o}}});function Lg(e,t,o,a,r,i){const s=n.resolveComponent("el-tag"),l=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-icon"),d=n.resolveComponent("el-option"),f=n.resolveComponent("el-options"),u=n.resolveComponent("el-scrollbar"),p=n.resolveComponent("el-select-menu"),g=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectRef",class:n.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[n.toHandlerKey(e.mouseEnterEventName)]:h=>e.states.inputHovering=!0,onMouseleave:h=>e.states.inputHovering=!1},[n.createVNode(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,onBeforeShow:e.handleMenuEnter,onHide:h=>e.states.isBeforeHide=!1},{default:n.withCtx(()=>{var h;return[n.createElementVNode("div",{ref:"wrapperRef",class:n.normalizeClass([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:n.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"prefixRef",class:n.normalizeClass(e.nsSelect.e("prefix"))},[n.renderSlot(e.$slots,"prefix")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{ref:"selectionRef",class:n.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?n.renderSlot(e.$slots,"tag",{key:0},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.showTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.tagStyle),onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(n.openBlock(),n.createBlock(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:n.withCtx(()=>[n.createElementVNode("div",{ref:"collapseItemRef",class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.collapseTagStyle)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))}," + "+n.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:n.withCtx(()=>[n.createElementVNode("div",{ref:"tagMenuRef",class:n.normalizeClass(e.nsSelect.e("selection"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.collapseTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):n.createCommentVNode("v-if",!0)]):n.createCommentVNode("v-if",!0),e.selectDisabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[n.withDirectives(n.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":m=>e.states.inputValue=m,type:"text",name:e.name,class:n.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:n.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[n.withKeys(n.withModifiers(m=>e.navigateOptions("next"),["stop","prevent"]),["down"]),n.withKeys(n.withModifiers(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),n.withKeys(n.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),n.withKeys(n.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),n.withKeys(n.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:n.withModifiers(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[n.vModelText,e.states.inputValue]]),e.filterable?(n.openBlock(),n.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:n.normalizeClass(e.nsSelect.e("input-calculator")),textContent:n.toDisplayString(e.states.inputValue)},null,10,["textContent"])):n.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?n.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentPlaceholder),1)]):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(e.currentPlaceholder),1))],2)):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{ref:"suffixRef",class:n.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(n.openBlock(),n.createBlock(c,{key:1,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(n.openBlock(),n.createBlock(c,{key:2,class:n.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:n.withCtx(()=>[n.createVNode(p,{ref:"menuRef"},{default:n.withCtx(()=>[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"header")],10,["onClick"])):n.createCommentVNode("v-if",!0),n.withDirectives(n.createVNode(u,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:n.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:n.withCtx(()=>[e.showNewOption?(n.openBlock(),n.createBlock(d,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):n.createCommentVNode("v-if",!0),n.createVNode(f,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[n.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.nsSelect.be("dropdown","loading"))},[n.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(e.nsSelect.be("dropdown","empty"))},[n.renderSlot(e.$slots,"empty",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.emptyText),1)])],2)):n.createCommentVNode("v-if",!0),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"footer")],10,["onClick"])):n.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var Vg=F(Pg,[["render",Lg],["__file","select.vue"]]);const Rg=n.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=D("select"),o=n.ref(null),a=n.getCurrentInstance(),r=n.ref([]);n.provide(rs,n.reactive({...n.toRefs(e)}));const i=n.computed(()=>r.value.some(d=>d.visible===!0)),s=d=>{var f,u;return((f=d.type)==null?void 0:f.name)==="ElOption"&&!!((u=d.component)!=null&&u.proxy)},l=d=>{const f=De(d),u=[];return f.forEach(p=>{var g,h;s(p)?u.push(p.component.proxy):(g=p.children)!=null&&g.length?u.push(...l(p.children)):(h=p.component)!=null&&h.subTree&&u.push(...l(p.component.subTree))}),u},c=()=>{r.value=l(a.subTree)};return n.onMounted(()=>{c()}),Rs(o,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:o,visible:i,ns:t}}});function Fg(e,t,o,a,r,i){return n.withDirectives((n.openBlock(),n.createElementBlock("ul",{ref:"groupRef",class:n.normalizeClass(e.ns.be("group","wrap"))},[n.createElementVNode("li",{class:n.normalizeClass(e.ns.be("group","title"))},n.toDisplayString(e.label),3),n.createElementVNode("li",null,[n.createElementVNode("ul",{class:n.normalizeClass(e.ns.b("group"))},[n.renderSlot(e.$slots,"default")],2)])],2)),[[n.vShow,e.visible]])}var ss=F(Rg,[["render",Fg],["__file","option-group.vue"]]);const Hn=oe(Vg,{Option:na,OptionGroup:ss}),oa=tt(na);tt(ss);const Dg=R({trigger:Xt.trigger,placement:ta.placement,disabled:Xt.disabled,visible:se.visible,transition:se.transition,popperOptions:ta.popperOptions,tabindex:ta.tabindex,content:se.content,popperStyle:se.popperStyle,popperClass:se.popperClass,enterable:{...se.enterable,default:!0},effect:{...se.effect,default:"light"},teleported:se.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),$g={"update:visible":e=>_e(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},zg="onUpdate:visible",jg=n.defineComponent({name:"ElPopover"}),Hg=n.defineComponent({...jg,props:Dg,emits:$g,setup(e,{expose:t,emit:o}){const a=e,r=n.computed(()=>a[zg]),i=D("popover"),s=n.ref(),l=n.computed(()=>{var y;return(y=n.unref(s))==null?void 0:y.popperRef}),c=n.computed(()=>[{width:et(a.width)},a.popperStyle]),d=n.computed(()=>[i.b(),a.popperClass,{[i.m("plain")]:!!a.content}]),f=n.computed(()=>a.transition===`${i.namespace.value}-fade-in-linear`),u=()=>{var y;(y=s.value)==null||y.hide()},p=()=>{o("before-enter")},g=()=>{o("before-leave")},h=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:l,hide:u}),(y,b)=>(n.openBlock(),n.createBlock(n.unref(Ni),n.mergeProps({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":n.unref(d),"popper-style":n.unref(c),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":n.unref(f),"onUpdate:visible":n.unref(r),onBeforeShow:p,onBeforeHide:g,onShow:h,onHide:m}),{content:n.withCtx(()=>[y.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(i).e("title")),role:"title"},n.toDisplayString(y.title),3)):n.createCommentVNode("v-if",!0),n.renderSlot(y.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(y.content),1)])]),default:n.withCtx(()=>[y.$slots.reference?n.renderSlot(y.$slots,"reference",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Kg=F(Hg,[["__file","popover.vue"]]);const ls=(e,t)=>{const o=t.arg||t.value,a=o==null?void 0:o.popperRef;a&&(a.triggerRef=e)};var Ug={mounted(e,t){ls(e,t)},updated(e,t){ls(e,t)}};const cs=Gf(Ug,"popover"),Kn=oe(Kg,{directive:cs});function Wg(e){let t;const o=n.ref(!1),a=n.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(p){a.text=p}function i(){const p=a.parent,g=u.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(jt(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),jt(p,g.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,g;(g=(p=u.$el)==null?void 0:p.parentNode)==null||g.removeChild(u.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=setTimeout(c,400),a.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!o.value)return;const p=a.parent;o.value=!1,p.vLoadingAddClassList=void 0,i()}const d=n.defineComponent({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:m}=Op("loading");return g({ns:h,zIndex:m}),()=>{const y=a.spinner||a.svg,b=n.h("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[n.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=a.text?n.h("p",{class:h.b("text")},[a.text]):void 0;return n.h(n.Transition,{name:h.b("fade"),onAfterLeave:c},{default:n.withCtx(()=>[n.withDirectives(n.createVNode("div",{style:{backgroundColor:a.background||""},class:[h.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[n.h("div",{class:h.b("spinner")},[b,C])]),[[n.vShow,a.visible]])])})}}}),f=n.createApp(d),u=f.mount(document.createElement("div"));return{...n.toRefs(a),setText:r,removeElLoadingChild:s,close:l,handleAfterLeave:c,vm:u,get $el(){return u.$el}}}let Un;const aa=function(e={}){if(!U)return;const t=qg(e);if(t.fullscreen&&Un)return Un;const o=Wg({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(Un=void 0)}});Gg(t,t.parent,o),ds(t,t.parent,o),t.parent.vLoadingAddClassList=()=>ds(t,t.parent,o);let a=t.parent.getAttribute("loading-number");return a?a=`${Number.parseInt(a)+1}`:a="1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(o.$el),n.nextTick(()=>o.visible.value=t.visible),t.fullscreen&&(Un=o),o},qg=e=>{var t,o,a,r;let i;return me(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(a=e.lock)!=null?a:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},Gg=async(e,t,o)=>{const{nextZIndex:a}=o.vm.zIndex||o.vm._.exposed.zIndex,r={};if(e.fullscreen)o.originalPosition.value=pt(document.body,"position"),o.originalOverflow.value=pt(document.body,"overflow"),r.zIndex=a();else if(e.parent===document.body){o.originalPosition.value=pt(document.body,"position"),await n.nextTick();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";r[i]=`${e.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(pt(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])r[i]=`${e.target.getBoundingClientRect()[i]}px`}else o.originalPosition.value=pt(t,"position");for(const[i,s]of Object.entries(r))o.$el.style[i]=s},ds=(e,t,o)=>{const a=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?jt(t,a.bm("parent","relative")):ko(t,a.bm("parent","relative")),e.fullscreen&&e.lock?ko(t,a.bm("parent","hidden")):jt(t,a.bm("parent","hidden"))},Wn=Symbol("ElLoading"),fs=(e,t)=>{var o,a,r,i;const s=t.instance,l=p=>te(t.value)?t.value[p]:void 0,c=p=>{const g=me(p)&&(s==null?void 0:s[p])||p;return g&&n.ref(g)},d=p=>c(l(p)||e.getAttribute(`element-loading-${Gs(p)}`)),f=(o=l("fullscreen"))!=null?o:t.modifiers.fullscreen,u={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:f,target:(a=l("target"))!=null?a:f?void 0:e,body:(r=l("body"))!=null?r:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[Wn]={options:u,instance:aa(u)}},Jg=(e,t)=>{for(const o of Object.keys(t))n.isRef(t[o])&&(t[o].value=e[o])},ra={mounted(e,t){t.value&&fs(e,t)},updated(e,t){const o=e[Wn];t.oldValue!==t.value&&(t.value&&!t.oldValue?fs(e,t):t.value&&t.oldValue?te(t.value)&&Jg(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[Wn])==null||t.instance.close(),e[Wn]=null}},Yg={install(e){e.directive("loading",ra),e.config.globalProperties.$loading=aa},directive:ra,service:aa},Ot=(e,t)=>{const o=e.__vccOpts||e;for(const[a,r]of t)o[a]=r;return o},Zg={name:"SelectionsGroup",components:{Checkbox:Wi,CheckboxGroup:qi,Col:tn,Icon:be,Row:en,ElIconWarning:K.Warning},methods:{reset:function(){this.checkAll=!0,this.checkedItems=[],this.selections.forEach(e=>{!("enabled"in e)||e.enabled===!0?this.checkedItems.push(e[this.identifierKey]):this.checkAll=!1})},setCheckboxActionData:function(e,t){if(e){const o=e.querySelector('input[type="checkbox"]'),a=e.querySelector(".el-checkbox__label"),i=e.closest(".selections-container").querySelector(".checkall-display-text");let s="";o&&(s=o.checked?"checked":"unchecked"),this.checkboxActionData={selectionsTitle:i?i.innerText:"",property:o&&t!=="all"?o.value:"",label:a?a.innerText:"",checked:s}}else this.checkboxActionData={selectionsTitle:"",property:"",label:"",checked:""}},onCheckboxNativeChange:function(e){const t=e.target.closest(".checkbox-container");this.setCheckboxActionData(t,"individual")},onAllCheckboxNativeChange:function(e){const t=e.target.closest(".all-checkbox");this.setCheckboxActionData(t,"all")},visibilityToggle:function(e,t){this.$emit("changed",{key:e,value:t}),e===this.checkboxActionData.property&&(this.checkboxActionData.checked=t?"checked":"unchecked"),this.$emit("selections-data-changed",this.checkboxActionData)},checkboxMouseEnterEmit:function(e,t){this.$emit("checkboxMouseEnter",{key:e,value:t,selections:this.selections,checked:this.checkedItems})},handleCheckedItemsChange:function(e){let t=e.length;this.checkAll=t===this.selections.length},handleCheckAllChange:function(e){this.checkedItems=e?this.selections.map(t=>t[this.identifierKey]):[],this.$emit("checkAll",{keys:this.selections.map(t=>t[this.identifierKey]),value:e}),this.checkboxActionData.property=this.identifierKey,this.checkboxActionData.checked=e?"checked":"unchecked",this.$emit("selections-data-changed",this.checkboxActionData)},getBackgroundStyles:function(e){return"colour"in e&&this.colourStyle==="background"?{background:e.colour}:{}},getState:function(){const t=this.checkedItems.length===this.selections.length;return{checkAll:t,checked:t?[]:this.checkedItems}},setState:function(e){var t;if(this.checkAll=e.checkAll,this.checkedItems.length=0,(t=e.checked)!=null&&t.length)this.checkedItems.push(...e.checked),this.selections.forEach(o=>{const a=o[this.identifierKey];this.$emit("changed",{key:a,value:this.checkedItems.includes(a)})});else{const o=this.selections.map(r=>r[this.identifierKey]);let a=!1;this.checkAll&&(a=!0,this.checkedItems.push(...o)),this.$emit("checkAll",{keys:o,value:a})}},hasLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"},getLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"?"dashed"in e&&e.dashed===!0?{background:`repeating-linear-gradient(90deg,${e.colour},${e.colour} 6px,transparent 0,transparent 9px)`}:{background:e.colour}:{display:"None"}}},props:{colourStyle:{type:String,default:"line"},helpMessage:{type:String,default:""},identifierKey:{type:String,default:"id"},labelKey:{type:String,default:"label"},title:{type:String,default:""},selections:{type:Array,default:function(){return[]}},showAsLegend:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return!(this.checkedItems.length===0||this.checkAll)}},data:function(){return{checkedItems:[],checkAll:!0,checkboxActionData:{selectionsTitle:"",property:"",label:"",checked:""}}},mounted:function(){this.reset()}},Qg={class:"selections-container"},Xg={class:"checkall-display-text"},ey={style:{"word-break":"keep-all"}},ty={class:"checkbox-group-inner"},ny=["onMouseenter","onMouseleave"];function oy(e,t,o,a,r,i){const s=K.Warning,l=be,c=Kn,d=tn,f=Wi,u=en,p=qi;return n.openBlock(),n.createElementBlock("div",Qg,[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(d,{span:12},{default:n.withCtx(()=>[n.createElementVNode("span",Xg,n.toDisplayString(o.title),1),o.helpMessage?(n.openBlock(),n.createBlock(c,{key:0,width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",ey,n.toDisplayString(o.helpMessage),1)]),_:2},[o.helpMessage?{name:"reference",fn:n.withCtx(()=>[n.createVNode(l,{class:"info"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1})]),key:"0"}:void 0]),1024)):n.createCommentVNode("",!0)]),_:1}),n.createVNode(d,{span:12},{default:n.withCtx(()=>[o.selections&&o.selections.length>1&&!o.showAsLegend?(n.openBlock(),n.createBlock(f,{key:0,class:"all-checkbox",indeterminate:i.isIndeterminate,modelValue:e.checkAll,"onUpdate:modelValue":t[0]||(t[0]=g=>e.checkAll=g),onChange:i.handleCheckAllChange,onClick:i.onAllCheckboxNativeChange},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode("Display all")])),_:1},8,["indeterminate","modelValue","onChange","onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1}),n.createVNode(p,{class:n.normalizeClass({"show-as-legend":o.showAsLegend,"checkbox-group":!o.showAsLegend}),modelValue:e.checkedItems,"onUpdate:modelValue":t[1]||(t[1]=g=>e.checkedItems=g),size:"small",onChange:i.handleCheckedItemsChange},{default:n.withCtx(()=>[n.createElementVNode("div",ty,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.selections,g=>(n.openBlock(),n.createBlock(u,{key:g[o.identifierKey],label:g[o.identifierKey]},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"checkbox-container",onMouseenter:h=>i.checkboxMouseEnterEmit(g[o.identifierKey],!0),onMouseleave:h=>i.checkboxMouseEnterEmit(g[o.identifierKey],!1)},[n.createVNode(f,{class:"my-checkbox",label:g[o.identifierKey],value:g[o.identifierKey],onChange:h=>i.visibilityToggle(g[o.identifierKey],h),onClick:i.onCheckboxNativeChange,checked:!("enabled"in g)||g.enabled===!0},{default:n.withCtx(()=>[n.createVNode(u,{class:"checkbox-row"},{default:n.withCtx(()=>[i.hasLineStyles(g)?(n.openBlock(),n.createBlock(d,{key:0,span:4},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"path-visual",style:n.normalizeStyle(i.getLineStyles(g))},null,4)]),_:2},1024)):n.createCommentVNode("",!0),n.createVNode(d,{span:20},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle(i.getBackgroundStyles(g))},n.toDisplayString(g[o.labelKey]),5)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value","onChange","onClick","checked"])],40,ny)]),_:2},1032,["label"]))),128))])]),_:1},8,["class","modelValue","onChange"])])}const us=Ot(Zg,[["render",oy],["__scopeId","data-v-35fb97d0"]]),ay='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="<fillColor>" stroke="<borderColor>" stroke-width="<borderWidth>" d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z"/></svg>',ry={name:"DynamicLegends",props:{identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},title:{type:String,default:""},legends:{type:Array,default:function(){return[]}},showStarInLegend:{type:Boolean,default:!1}},computed:{clipPathLegends:function(){return["exoid","hexagon"]}},methods:{capitalise:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},customStyle:function(e){const t=e.color?e.color:e.colour;let o=t||"transparent",a=e.border?e.border:"black";if(t&&!e.border&&(a=o),e[this.styleKey]==="star"){let r=ay.replace("<fillColor>",o);return r=r.replace("<borderColor>",a),r=r.replace("<borderWidth>",a?"2":"0"),r="data:image/svg+xml,"+encodeURIComponent(r),{color:o,"background-image":`url(${r})`}}else return e[this.styleKey]==="line"?{color:o}:{"background-color":o,"border-color":a}},customClipPathStyle:function(e,t){const o=this.customStyle(e);return t?o["background-color"]=o["border-color"]:o.scale=.7,o},legendStyle:function(e){return e[this.styleKey]==="star"?e[this.identifierKey]==="Featured dataset marker"&&!this.showStarInLegend?void 0:"star":this.clipPathLegends.includes(e[this.styleKey])?e[this.styleKey]:e[this.styleKey]==="line"?[e[this.styleKey],e.dashed?"dashed":"",e.arrow?"arrow":""]:[e[this.styleKey],"shape"]}}},iy={class:"legend-group"},sy=["label"],ly={key:0,class:"legend-item"},cy={class:"label"};function dy(e,t,o,a,r,i){return n.openBlock(),n.createElementBlock("div",iy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.legends,s=>(n.openBlock(),n.createElementBlock("div",{class:"legend-container",key:s[o.identifierKey],label:s[o.identifierKey]},[i.legendStyle(s)?(n.openBlock(),n.createElementBlock("div",ly,[i.clipPathLegends.includes(i.legendStyle(s))?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(i.legendStyle(s)),style:n.normalizeStyle(i.customClipPathStyle(s,!0))},[n.createElementVNode("div",{class:n.normalizeClass(i.legendStyle(s)),style:n.normalizeStyle(i.customClipPathStyle(s,!1))},null,6)],6)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(i.legendStyle(s)),style:n.normalizeStyle(i.customStyle(s))},null,6)),n.createElementVNode("div",cy,n.toDisplayString(i.capitalise(s[o.identifierKey])),1)])):n.createCommentVNode("",!0)],8,sy))),128))])}const fy=Ot(ry,[["render",dy],["__scopeId","data-v-0c2b00a9"]]),uy={name:"FlatmapError",props:{flatmapError:{type:Object,default:()=>({})}}},py={class:"flatmap-error"},hy={class:"flatmap-error-title"},my={key:0},gy={key:0,class:"flatmap-error-message"},yy={key:1};function by(e,t,o,a,r,i){const s=K.DocumentDelete,l=be,c=Xo;return n.openBlock(),n.createElementBlock("div",py,[n.createElementVNode("div",hy,[n.createVNode(l,{size:"24"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1}),o.flatmapError.title?(n.openBlock(),n.createElementBlock("div",my,n.toDisplayString(o.flatmapError.title),1)):n.createCommentVNode("",!0)]),o.flatmapError.messages?(n.openBlock(),n.createElementBlock("div",gy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.flatmapError.messages,(d,f)=>(n.openBlock(),n.createElementBlock("div",{key:f},n.toDisplayString(d),1))),128))])):n.createCommentVNode("",!0),o.flatmapError.button?(n.openBlock(),n.createElementBlock("div",yy,[n.createVNode(c,{class:"button",type:"primary",onClick:o.flatmapError.button.callback},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(o.flatmapError.button.text),1)]),_:1},8,["onClick"])])):n.createCommentVNode("",!0)])}const ia=Ot(uy,[["render",by],["__scopeId","data-v-7cfcfa1f"]]),wy={name:"SvgLegends"},Cy={class:"legends-container"},vy={version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 500 500",style:{"enable-background":"new 0 0 500 500"},xmlns:"http://www.w3.org/2000/svg","xmlns:bx":"https://boxy-svg.com"};function Sy(e,t,o,a,r,i){return n.openBlock(),n.createElementBlock("div",Cy,[(n.openBlock(),n.createElementBlock("svg",vy,t[0]||(t[0]=[n.createStaticVNode('<defs data-v-88079d87><bx:grid height="30.447" width="32.516" x="0" y="0" data-v-88079d87></bx:grid></defs><path class="st0 st0-translate" d="M61.3,103.8c-15.9,0-28.8-12.3-28.8-27.3c0-15,13-27.3,28.8-27.3s28.8,12.3,28.8,27.3 C90.1,91.5,77.2,103.8,61.3,103.8z" data-v-88079d87></path><path class="st1" d="M40.3,356.1C29.5,345,29.8,328,41.5,317.5c11.7-10.5,29.6-9.9,40.7,1.1c11.1,11,10.5,28.1-1.2,38.5 C69.3,367.4,51.1,366.9,40.3,356.1z" data-v-88079d87></path><path class="st2" d="M61.2,396.9c-5.3,9.3-15.3,15.1-26.1,15.1l-0.4,0.6c5.1,9,5.1,20,0,29l0.4,0.6c10.7,0,20.8,5.8,26.1,15.1 c5.3-9.3,15.3-15.1,26.1-15.1c-5.3-9.3-5.3-20.9,0-30.4C76.6,412.1,66.7,406.3,61.2,396.9z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 171.7975)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Tissue region </text><path class="st6" d="M40.9,231.1c11.3-10.6,29.5-10.6,40.8,0c11.3,10.6,11.3,27.9,0,38.5c-11.3,10.6-29.5,10.6-40.8,0 C29.7,259,29.7,241.7,40.9,231.1z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Brain nuclei </text><text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglia </text><text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglionated nerve plexus </text>',9)]))),t[1]||(t[1]=n.createElementVNode("svg",{width:"72px",height:"72px",viewBox:"0 0 24 24",fill:"yellow"},null,-1))])}const ky=Ot(wy,[["render",Sy],["__scopeId","data-v-88079d87"]]),Ey=`<div class="flatmap-marker">
13
13
  <svg xmlns="http://www.w3.org/2000/svg" width="28" height="39" viewBox="-1 -1 27 42">
14
14
  <ellipse style="fill: rgb(0, 0, 0); fill-opacity: 0.2;" cx="12" cy="36" rx="8" ry="4"></ellipse>
15
15
  <path d="M12.25.25a12.254 12.254 0 0 0-12 12.494c0 6.444 6.488 12.109 11.059 22.564.549 1.256 1.333 1.256 1.882 0
@@ -17,8 +17,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:i,curr
17
17
  <circle cx="12.5" cy="12.5" r="9" fill="#fff"></circle>
18
18
  <text x="12" y="17.5" style="font-size:14px;fill:#000;text-anchor:middle">2</text>
19
19
  </svg>
20
- </div>`,nn=function(e){return e?[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):[]},ii=[],ai=async function(e,t){const o=t.filter(r=>ii.some(s=>s.taxon===r)),i=ii.filter(r=>o.includes(r.taxon)),a=t.filter(r=>!o.includes(r));if(a.length){const r=await e.queryLabels(a);if(r.length)return r.forEach(s=>{let{entity:l,label:c}=s;c==="Mammalia"&&(c="Mammalia not otherwise specified");const d={taxon:l,label:c};i.push(d),ii.push(d)}),i}else return i},ri=function(e,t){if(!e||!t)return!1;let o=JSON.stringify(e),i=JSON.stringify(t);return o.indexOf(i)!==-1},Ot=(e,t)=>{const o=e.name??e,i=t.name??t,a=o.toUpperCase(),r=i.toUpperCase();return a<r?-1:a>r?1:0};let yy=function(){this.initialise=function(e){this.flatmapAPI=e,this.destinations=[],this.origins=[],this.components=[],this.rawURLs=[],this.controller=void 0,this.uberons=[],this.lookUp=[],this.connectivitySource="map",this.noMapConnectivity=!1},this.createTooltipData=async function(e,t){let o=[];t.feature.hyperlinks&&t.feature.hyperlinks.length>0?o=t.feature.hyperlinks:o=this.rawURLs;let i;if(t.provenanceTaxonomy){i=[];try{const r=await ai(e,t.provenanceTaxonomy);r.length&&r.forEach(s=>{const{label:l}=s;i.push(l)})}catch(r){console.log(r)}}return{destinations:this.destinations,origins:this.origins,components:this.components,destinationsWithDatasets:this.destinationsWithDatasets,originsWithDatasets:this.originsWithDatasets,componentsWithDatasets:this.componentsWithDatasets,title:t.label,featureId:t.resource,hyperlinks:o,provenanceTaxonomy:t.provenanceTaxonomy,provenanceTaxonomyLabel:i,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.updateTooltipData=function(e){return{...e,origins:this.origins,originsWithDatasets:this.originsWithDatasets,components:this.components,componentsWithDatasets:this.componentsWithDatasets,destinations:this.destinations,destinationsWithDatasets:this.destinationsWithDatasets,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.createComponentsLabelList=function(e,t){let o=[];return e.forEach(i=>{o.push(this.createLabelFromNeuralNode(i[0]),t),i.length===2&&o.push(this.createLabelFromNeuralNode(i[1]),t)}),o},this.createLabelLookup=function(e,t){return new Promise(async o=>{let i={};this.uberons=[];const a=await ai(e,t);a.length&&(a.forEach(r=>{const{taxon:s,label:l}=r;i[s]=l,this.uberons.push({id:s,name:l})}),o(i))})},this.buildConnectivitySqlStatement=function(e){let t="select knowledge from knowledge where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildLabelSqlStatement=function(e){let t="select entity, label from labels where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.findAllIdsFromConnectivity=function(e){let t=e.connectivity.flat(),o=[...new Set(t)],i=[];return o.forEach(a=>{Array.isArray(a)?i.push(a.flat()):i.push(a)}),[...new Set(i.flat())]},this.flattenConnectivity=function(e){let t=e.flat(),o=[...new Set(t)],i=[];return o.forEach(a=>{Array.isArray(a)?i.push(a.flat()):i.push(a)}),i.flat()},this.findComponents=function(e,t,o,i){let a=e.connectivity.flat(),r=nn(a),s=[],l=!1;return r.forEach(c=>{l=!1,ri(t,c)&&(l=!0),i&&ri(i,c)&&(l=!0),ri(o,c)&&(l=!0),l||s.push(c)}),s},this.retrieveFlatmapKnowledgeForEvent=async function(e,t){this.controller&&this.controller.abort(),this.controller=new AbortController,this.controller.signal;const o=t.resource;if(this.destinations=[],this.origins=[],this.components=[],this.rawURLs=[],!o||o.length===0||!o[0])return;let i=this.queryForConnectivityNew(e,o[0]);return await Promise.all([i])},this.queryForConnectivityNew=function(e,t,o="map",i=!0){return this.connectivitySource=o,new Promise(a=>{(o==="map"?this.queryMapConnectivity(e.provenance.uuid,t):e.queryKnowledge(t)).then(s=>{if(this.checkConnectivityExists(s)){o==="map"&&(this.noMapConnectivity=!1);let l=s;i?this.processConnectivity(e,l).then(c=>{s.references&&(this.rawURLs=[...s.references]),a(c)}):a(l)}else o==="map"?(this.connectivitySource="sckan",this.noMapConnectivity=!0,e.queryKnowledge(t).then(l=>{if(this.checkConnectivityExists(l)){let c=l;i?this.processConnectivity(e,c).then(d=>{l.references&&(this.rawURLs=[...l.references]),a(d)}):a(c)}else a(!1)}).catch(()=>a(!1))):a(!1)}).catch(s=>{s.name==="AbortError"||console.warn(`Unable to get the knowledge for the entity ${t}.`),a(!1)})})},this.queryMapConnectivity=async function(e,t){const o=this.flatmapAPI+`flatmap/${e}/connectivity/${t}`;try{const i=await fetch(o);if(!i.ok)throw new Error(`Response status: ${i.status}`);return await i.json()}catch(i){throw new Error(i)}},this.queryForConnectivity=function(e,t,o,i=!0){const a={sql:this.buildConnectivitySqlStatement(t)},r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),...o?{signal:o}:{}};return new Promise(s=>{fetch(`${this.flatmapAPI}knowledge/query/`,r).then(l=>l.json()).then(l=>{if(this.connectivityExists(l)){let c=JSON.parse(l.values[0][0]);i?this.processConnectivity(e,c).then(d=>{s(d)}):s(c)}else s(!1)}).catch(l=>{l.name==="AbortError"||console.error("Error:",l),s(!1)})})},this.checkConnectivityExists=function(e){var t;return e&&((t=e.connectivity)==null?void 0:t.length)},this.connectivityExists=function(e){return!!(e.values&&e.values.length>0&&JSON.parse(e.values[0][0]).connectivity&&JSON.parse(e.values[0][0]).connectivity.length>0)},this.findIfNodeIsSingle=function(e){return e.length===1?(console.error("Server returns a single node",e),e[0]):e.length===2&&e[1].length===0?e[0]:!1},this.createLabelFromNeuralNode=function(e,t){let o=this.findIfNodeIsSingle(e);if(o)return t[o];let i=t[e[0]];return e.length===2&&e[1].length>0&&e[1].forEach(a=>{t[a]==null?i+=`, ${a}`:i+=`, ${t[a]}`}),i},this.flattenAndFindDatasets=function(e,t,o){let i=this.flattenConnectivity(e),a=this.flattenConnectivity(t),r=this.flattenConnectivity(o);this.originsWithDatasets=this.uberons.filter(s=>i.indexOf(s.id)!==-1).sort(Ot),this.componentsWithDatasets=this.uberons.filter(s=>a.indexOf(s.id)!==-1).sort(Ot),this.destinationsWithDatasets=this.uberons.filter(s=>r.indexOf(s.id)!==-1).sort(Ot)},this.processConnectivity=function(e,t){return new Promise(o=>{let i=[],a=[],r;if(t&&t["node-phenotypes"]){const c=["ilxtr:hasSomaLocatedIn"],d=["ilxtr:hasAxonPresynapticElementIn","ilxtr:hasAxonSensorySubcellularElementIn"];c.forEach(f=>{f in t["node-phenotypes"]&&i.push(...t["node-phenotypes"][f])}),i=nn(i),d.forEach(f=>{f in t["node-phenotypes"]&&a.push(...t["node-phenotypes"][f])}),a=nn(a)}else a=nn(t.axons),t.somas&&t.somas.length>0&&i.push(...t.somas),t.dendrites&&t.dendrites.length>0&&i.push(...t.dendrites),i=nn(i),r=t.somas;const s=this.findComponents(t,a,i,r),l=this.findAllIdsFromConnectivity(t);this.createLabelLookup(e,l).then(c=>{this.origins=i.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Ot),this.components=s.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Ot),this.destinations=a.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Ot),this.flattenAndFindDatasets(i,s,a),o({ids:{dendrites:i,components:s,axons:a},labels:{origins:this.origins,components:this.components,destinations:this.destinations}})})})},this.buildPubmedSqlStatement=function(e){let t="select distinct publication from publications where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildPubmedSqlStatementForModels=function(e){return`select distinct publication from publications where entity = '${e}'`},this.queryKnowledge=async(e,t)=>{const o=`${this.flatmapAPI}/knowledge/query/`,a=await fetch(o,{method:"POST",headers:{Accept:"application/json"},body:JSON.stringify({sql:e,params:t})});if(!a.ok)throw new Error(`Cannot access ${o}`);const r=await a.json();if("error"in r)throw new TypeError(r.error);return r.values}};async function by(e){const t=sessionStorage.getItem("flatmap-knowledge");if(t){const a=JSON.parse(t).filter(r=>r.references&&r.references.length).filter(r=>r.references.includes(e));if(a.length)return a.map(s=>s.id)}return[]}async function wy(e,t,o){const a=`select knowledge from knowledge
21
- where source="${si(e)}" and
22
- knowledge like "%${t}%" order by source desc`;return(await o.queryKnowledge(a)).map(c=>JSON.parse(c)).map(c=>c.id)}function si(e){return Cy(e.provenance)}function Cy(e){let t="";if(e!=null&&e.connectivity){const o=e.connectivity;"knowledge-source"in o?t=o["knowledge-source"]:"npo"in o&&(t=`${o.npo.release}-npo`)}return t}async function vy(e,t){const o=si(e),i=`select knowledge from knowledge
20
+ </div>`,nn=function(e){return e?[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):[]},sa=[],la=async function(e,t){const o=t.filter(i=>sa.some(s=>s.taxon===i)),a=sa.filter(i=>o.includes(i.taxon)),r=t.filter(i=>!o.includes(i));if(r.length){const i=await e.queryLabels(r);if(i.length)return i.forEach(s=>{let{entity:l,label:c}=s;c==="Mammalia"&&(c="Mammalia not otherwise specified");const d={taxon:l,label:c};a.push(d),sa.push(d)}),a}else return a},ca=function(e,t){if(!e||!t)return!1;let o=JSON.stringify(e),a=JSON.stringify(t);return o.indexOf(a)!==-1},Mt=(e,t)=>{const o=e.name??e,a=t.name??t,r=o.toUpperCase(),i=a.toUpperCase();return r<i?-1:r>i?1:0};let Iy=function(){this.initialise=function(e){this.flatmapAPI=e,this.destinations=[],this.origins=[],this.components=[],this.rawURLs=[],this.controller=void 0,this.uberons=[],this.lookUp=[],this.connectivitySource="map",this.noMapConnectivity=!1},this.createTooltipData=async function(e,t){let o=[];t.feature.hyperlinks&&t.feature.hyperlinks.length>0?o=t.feature.hyperlinks:o=this.rawURLs;let a;if(t.provenanceTaxonomy){a=[];try{const i=await la(e,t.provenanceTaxonomy);i.length&&i.forEach(s=>{const{label:l}=s;a.push(l)})}catch(i){console.log(i)}}return{destinations:this.destinations,origins:this.origins,components:this.components,destinationsWithDatasets:this.destinationsWithDatasets,originsWithDatasets:this.originsWithDatasets,componentsWithDatasets:this.componentsWithDatasets,title:t.label,featureId:t.resource,hyperlinks:o,provenanceTaxonomy:t.provenanceTaxonomy,provenanceTaxonomyLabel:a,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.updateTooltipData=function(e){return{...e,origins:this.origins,originsWithDatasets:this.originsWithDatasets,components:this.components,componentsWithDatasets:this.componentsWithDatasets,destinations:this.destinations,destinationsWithDatasets:this.destinationsWithDatasets,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.createComponentsLabelList=function(e,t){let o=[];return e.forEach(a=>{o.push(this.createLabelFromNeuralNode(a[0]),t),a.length===2&&o.push(this.createLabelFromNeuralNode(a[1]),t)}),o},this.createLabelLookup=function(e,t){return new Promise(async o=>{let a={};this.uberons=[];const r=await la(e,t);r.length&&(r.forEach(i=>{const{taxon:s,label:l}=i;a[s]=l,this.uberons.push({id:s,name:l})}),o(a))})},this.buildConnectivitySqlStatement=function(e){let t="select knowledge from knowledge where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildLabelSqlStatement=function(e){let t="select entity, label from labels where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.findAllIdsFromConnectivity=function(e){let t=e.connectivity.flat(),o=[...new Set(t)],a=[];return o.forEach(r=>{Array.isArray(r)?a.push(r.flat()):a.push(r)}),[...new Set(a.flat())]},this.flattenConnectivity=function(e){let t=e.flat(),o=[...new Set(t)],a=[];return o.forEach(r=>{Array.isArray(r)?a.push(r.flat()):a.push(r)}),a.flat()},this.findComponents=function(e,t,o,a){let r=e.connectivity.flat(),i=nn(r),s=[],l=!1;return i.forEach(c=>{l=!1,ca(t,c)&&(l=!0),a&&ca(a,c)&&(l=!0),ca(o,c)&&(l=!0),l||s.push(c)}),s},this.retrieveFlatmapKnowledgeForEvent=async function(e,t){this.controller&&this.controller.abort(),this.controller=new AbortController,this.controller.signal;const o=t.resource;if(this.destinations=[],this.origins=[],this.components=[],this.rawURLs=[],!o||o.length===0||!o[0])return;let a=this.queryForConnectivityNew(e,o[0]);return await Promise.all([a])},this.queryForConnectivityNew=function(e,t,o="map",a=!0){return this.connectivitySource=o,new Promise(r=>{(o==="map"?this.queryMapConnectivity(e.mapMetadata.uuid,t):e.queryKnowledge(t)).then(s=>{if(this.checkConnectivityExists(s)){o==="map"&&(this.noMapConnectivity=!1);let l=s;a?this.processConnectivity(e,l).then(c=>{s.references&&(this.rawURLs=[...s.references]),r(c)}):r(l)}else o==="map"?(this.connectivitySource="sckan",this.noMapConnectivity=!0,e.queryKnowledge(t).then(l=>{if(this.checkConnectivityExists(l)){let c=l;a?this.processConnectivity(e,c).then(d=>{l.references&&(this.rawURLs=[...l.references]),r(d)}):r(c)}else r(!1)}).catch(()=>r(!1))):r(!1)}).catch(s=>{s.name==="AbortError"||console.warn(`Unable to get the knowledge for the entity ${t}.`),r(!1)})})},this.queryMapConnectivity=async function(e,t){const o=this.flatmapAPI+`flatmap/${e}/connectivity/${t}`;try{const a=await fetch(o);if(!a.ok)throw new Error(`Response status: ${a.status}`);return await a.json()}catch(a){throw new Error(a)}},this.queryForConnectivity=function(e,t,o,a=!0){const r={sql:this.buildConnectivitySqlStatement(t)},i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),...o?{signal:o}:{}};return new Promise(s=>{fetch(`${this.flatmapAPI}knowledge/query/`,i).then(l=>l.json()).then(l=>{if(this.connectivityExists(l)){let c=JSON.parse(l.values[0][0]);a?this.processConnectivity(e,c).then(d=>{s(d)}):s(c)}else s(!1)}).catch(l=>{l.name==="AbortError"||console.error("Error:",l),s(!1)})})},this.checkConnectivityExists=function(e){var t;return e&&((t=e.connectivity)==null?void 0:t.length)},this.connectivityExists=function(e){return!!(e.values&&e.values.length>0&&JSON.parse(e.values[0][0]).connectivity&&JSON.parse(e.values[0][0]).connectivity.length>0)},this.findIfNodeIsSingle=function(e){return e.length===1?(console.error("Server returns a single node",e),e[0]):e.length===2&&e[1].length===0?e[0]:!1},this.createLabelFromNeuralNode=function(e,t){let o=this.findIfNodeIsSingle(e);if(o)return t[o];let a=t[e[0]];return e.length===2&&e[1].length>0&&e[1].forEach(r=>{t[r]==null?a+=`, ${r}`:a+=`, ${t[r]}`}),a},this.flattenAndFindDatasets=function(e,t,o){let a=this.flattenConnectivity(e),r=this.flattenConnectivity(t),i=this.flattenConnectivity(o);this.originsWithDatasets=this.uberons.filter(s=>a.indexOf(s.id)!==-1).sort(Mt),this.componentsWithDatasets=this.uberons.filter(s=>r.indexOf(s.id)!==-1).sort(Mt),this.destinationsWithDatasets=this.uberons.filter(s=>i.indexOf(s.id)!==-1).sort(Mt)},this.processConnectivity=function(e,t){return new Promise(o=>{let a=[],r=[],i;if(t&&t["node-phenotypes"]){const c=["ilxtr:hasSomaLocatedIn"],d=["ilxtr:hasAxonPresynapticElementIn","ilxtr:hasAxonSensorySubcellularElementIn"];c.forEach(f=>{f in t["node-phenotypes"]&&a.push(...t["node-phenotypes"][f])}),a=nn(a),d.forEach(f=>{f in t["node-phenotypes"]&&r.push(...t["node-phenotypes"][f])}),r=nn(r)}else r=nn(t.axons),t.somas&&t.somas.length>0&&a.push(...t.somas),t.dendrites&&t.dendrites.length>0&&a.push(...t.dendrites),a=nn(a),i=t.somas;const s=this.findComponents(t,r,a,i),l=this.findAllIdsFromConnectivity(t);this.createLabelLookup(e,l).then(c=>{this.origins=a.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Mt),this.components=s.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Mt),this.destinations=r.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Mt),this.flattenAndFindDatasets(a,s,r),o({ids:{dendrites:a,components:s,axons:r},labels:{origins:this.origins,components:this.components,destinations:this.destinations}})})})},this.buildPubmedSqlStatement=function(e){let t="select distinct publication from publications where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildPubmedSqlStatementForModels=function(e){return`select distinct publication from publications where entity = '${e}'`},this.queryKnowledge=async(e,t)=>{const o=`${this.flatmapAPI}/knowledge/query/`,r=await fetch(o,{method:"POST",headers:{Accept:"application/json"},body:JSON.stringify({sql:e,params:t})});if(!r.ok)throw new Error(`Cannot access ${o}`);const i=await r.json();if("error"in i)throw new TypeError(i.error);return i.values}};async function Ty(e){const t=sessionStorage.getItem("flatmap-knowledge");if(t){const r=JSON.parse(t).filter(i=>i.references&&i.references.length).filter(i=>i.references.includes(e));if(r.length)return r.map(s=>s.id)}return[]}async function Ay(e,t,o){const r=`select knowledge from knowledge
21
+ where source="${da(e)}" and
22
+ knowledge like "%${t}%" order by source desc`;return(await o.queryKnowledge(r)).map(c=>JSON.parse(c)).map(c=>c.id)}function da(e){return Oy(e.mapMetadata)}function Oy(e){let t="";if(e!=null&&e.connectivity){const o=e.connectivity;"knowledge-source"in o?t=o["knowledge-source"]:"npo"in o&&(t=`${o.npo.release}-npo`)}return t}async function My(e,t){const o=da(e),a=`select knowledge from knowledge
23
23
  where source="${o}"
24
- order by source desc`;us();const a=sessionStorage.getItem("flatmap-knowledge"),r=sessionStorage.getItem("flatmap-knowledge-source");if(!a||r!==o){const l=(await t.queryKnowledge(i)).map(c=>JSON.parse(c));return sessionStorage.setItem("flatmap-knowledge",JSON.stringify(l)),sessionStorage.setItem("flatmap-knowledge-source",o),Sy(),l}return JSON.parse(a)}function Sy(){const o=new Date().getTime()+864e5;sessionStorage.setItem("flatmap-knowledge-expiry",o)}function ky(){["flatmap-knowledge","flatmap-knowledge-expiry","flatmap-knowledge-source"].forEach(t=>{sessionStorage.removeItem(t)})}function us(){const e=sessionStorage.getItem("flatmap-knowledge-expiry");new Date().getTime()>e&&ky()}const li=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Ey='<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow"><path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/><text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text></svg>';var ps={exports:{}};(function(e,t){(function(o,i){e.exports=i()})(typeof window<"u"?window:pm,function(){if(typeof window>"u")return null;var o=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),i=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(f){return o.setTimeout(f,20)},a=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||function(f){o.clearTimeout(f)};function r(f,u){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,h=0,m=f.length;if(g)for(;h<m;h++)u(f[h]);else u(f)}function s(f){if(!f.getBoundingClientRect)return{width:f.offsetWidth,height:f.offsetHeight};var u=f.getBoundingClientRect();return{width:Math.round(u.width),height:Math.round(u.height)}}function l(f,u){Object.keys(u).forEach(function(p){f.style[p]=u[p]})}var c=function(f,u){var p=0;function g(){var m=[];this.add=function(w){m.push(w)};var y,b;this.call=function(w){for(y=0,b=m.length;y<b;y++)m[y].call(this,w)},this.remove=function(w){var T=[];for(y=0,b=m.length;y<b;y++)m[y]!==w&&T.push(m[y]);m=T},this.length=function(){return m.length}}function h(m,y){if(m){if(m.resizedAttached){m.resizedAttached.add(y);return}m.resizedAttached=new g,m.resizedAttached.add(y),m.resizeSensor=document.createElement("div"),m.resizeSensor.dir="ltr",m.resizeSensor.className="resize-sensor";var b={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},w={position:"absolute",left:"0px",top:"0px",transition:"0s"};l(m.resizeSensor,b);var T=document.createElement("div");T.className="resize-sensor-expand",l(T,b);var k=document.createElement("div");l(k,w),T.appendChild(k);var v=document.createElement("div");v.className="resize-sensor-shrink",l(v,b);var E=document.createElement("div");l(E,w),l(E,{width:"200%",height:"200%"}),v.appendChild(E),m.resizeSensor.appendChild(T),m.resizeSensor.appendChild(v),m.appendChild(m.resizeSensor);var I=window.getComputedStyle(m),M=I?I.getPropertyValue("position"):null;M!=="absolute"&&M!=="relative"&&M!=="fixed"&&M!=="sticky"&&(m.style.position="relative");var x=!1,B=0,S=s(m),P=0,L=0,q=!0;p=0;var F=function(){var Z=m.offsetWidth,ce=m.offsetHeight;k.style.width=Z+10+"px",k.style.height=ce+10+"px",T.scrollLeft=Z+10,T.scrollTop=ce+10,v.scrollLeft=Z+10,v.scrollTop=ce+10},O=function(){if(q){var Z=m.offsetWidth===0&&m.offsetHeight===0;if(Z){p||(p=i(function(){p=0,O()}));return}else q=!1}F()};m.resizeSensor.resetSensor=O;var $=function(){B=0,x&&(P=S.width,L=S.height,m.resizedAttached&&m.resizedAttached.call(S))},pe=function(){S=s(m),x=S.width!==P||S.height!==L,x&&!B&&(B=i($)),O()},Y=function(Z,ce,Ee){Z.attachEvent?Z.attachEvent("on"+ce,Ee):Z.addEventListener(ce,Ee)};Y(T,"scroll",pe),Y(v,"scroll",pe),p=i(function(){p=0,O()})}}r(f,function(m){h(m,u)}),this.detach=function(m){p||(a(p),p=0),c.detach(f,m)},this.reset=function(){f.resizeSensor.resetSensor()}};if(c.reset=function(f){r(f,function(u){u.resizeSensor.resetSensor()})},c.detach=function(f,u){r(f,function(p){p&&(p.resizedAttached&&typeof u=="function"&&(p.resizedAttached.remove(u),p.resizedAttached.length())||p.resizeSensor&&(p.contains(p.resizeSensor)&&p.removeChild(p.resizeSensor),delete p.resizeSensor,delete p.resizedAttached))})},typeof MutationObserver<"u"){var d=new MutationObserver(function(f){for(var u in f)if(f.hasOwnProperty(u))for(var p=f[u].addedNodes,g=0;g<p.length;g++)p[g].resizeSensor&&c.reset(p[g])});document.addEventListener("DOMContentLoaded",function(f){d.observe(document.body,{childList:!0,subtree:!0})})}return c})})(ps);var Iy=ps.exports;const Ty=hm(Iy),Ay=gi.defineStore("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}});function Oy(e){return{all:e=e||new Map,on:function(t,o){var i=e.get(t);i?i.push(o):e.set(t,[o])},off:function(t,o){var i=e.get(t);i&&(o?i.splice(i.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var i=e.get(t);i&&i.slice().map(function(a){a(o)}),(i=e.get("*"))&&i.slice().map(function(a){a(t,o)})}}}const ci=new Oy,My="cannot be found on the map.",xy=e=>{let t={lng:0,lat:0},o;return e.type==="Polygon"?e.coordinates.length&&(o=e.coordinates[0]):o=e.coordinates,o&&(e.type!=="Point"?(o.map(i=>{t.lng+=parseFloat(i[0]),t.lat+=parseFloat(i[1])}),t.lng=t.lng/o.length,t.lat=t.lat/o.length):(t.lng+=parseFloat(o[0]),t.lat+=parseFloat(o[1]))),t},hs=(e,t)=>{const o=[];let i=e.organs?e.organs:e.ftus;const a=i?i.filter((r,s)=>i.findIndex(l=>l.label===r.label)===s):void 0;return a&&a.forEach(r=>{const s={label:r.label,models:r.models,key:`${t}.${r.label}`},l=hs(r,s.key);l.length>0&&(s.children=l),o.push(s)}),o},By={name:"FlatmapVuer",components:{Button:Fr,Col:en,Loading:Jg,Radio:Xr,Icon:ke,RadioGroup:es,Row:Xt,Select:Hn,Dialog:hg,MapSvgIcon:mi.MapSvgIcon,MapSvgSpriteColor:mi.MapSvgSpriteColor,Tooltip:Pt.Tooltip,TreeControls:Pt.TreeControls,SelectionsGroup:fs,SvgLegends:my,ElIconWarningFilled:K.WarningFilled,ElIconArrowDown:K.ArrowDown,ElIconArrowLeft:K.ArrowLeft,DrawToolbar:Pt.DrawToolbar},beforeCreate:function(){this.setStateRequired=!1},setup(e){let t=n.inject("$annotator");return t||(t=n.markRaw(new Es.AnnotationService(`${e.flatmapAPI}annotator`)),n.provide("$annotator",t)),{annotator:t}},methods:{enableFeatureResetOnClick:function(e){this.mapImp&&this.mapImp.enableFeatureResetOnClick(e)},setVisibilityFilter:function(e){this.mapImp&&(e?this.mapImp.setVisibilityFilter(e):this.mapImp.clearVisibilityFilter())},manualAbortedOnClose:function(){this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEventCallback({},{type:"aborted"}),this.initialiseDrawing()},initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent={}},cancelDrawnFeature:function(){this.isValidDrawnCreated&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[{...this.drawnCreatedEvent.feature,resourceId:this.serverURL}],this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let i={feature:t?this.mapImp.featureProperties(t):{feature:this.existDrawnFeatures.find(a=>a.id===e.trim())}};this.checkAndCreatePopups([i],!1)}else this.closeTooltip()},confirmDrawnFeature:function(){this.isValidDrawnCreated&&(this.checkAndCreatePopups([this.drawnCreatedEvent],!1),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry[0].feature.connection=this.connectionEntry),this.initialiseDrawing())},toolbarEvent:function(e,t){if(!this.isValidDrawnCreated){if(this.manualAbortedOnClose(),this.doubleClickedFeature=!1,this.changeAnnotationDrawMode({mode:"simple_select"}),e==="mode")this.activeDrawMode=t;else if(e==="tool"){if(this.cancelDrawnFeature(),t){const o=t.replace(/[A-Z]/g,i=>`_${i.toLowerCase()}`);this.changeAnnotationDrawMode({mode:`draw${o}`})}this.activeDrawTool=t}}},annotationDrawModeEvent:function(e){this.activeDrawMode==="Edit"?this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1):this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((o,i)=>i!==0&&i!==e.length-1)};this.annotationEntry[0].body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.mapImp.clearAnnotationFeature()},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&this.annotationEntry.length>0&&["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry[0]),this.annotationEntry=[])},commitAnnotationEvent:function(e){this.mapImp&&(this.offlineAnnotationEnabled&&(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],this.offlineAnnotations.push(e),this.annotationEntry[0].type==="deleted"&&(this.offlineAnnotations=this.offlineAnnotations.filter(t=>t.resource!==this.serverURL||t.item.id!==e.item.id)),sessionStorage.setItem("anonymous-annotation",JSON.stringify(this.offlineAnnotations))),["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry[0]),e.body.comment==="Position Updated"?this.annotationEntry[0].positionUpdated=!1:this.annotationEntry[0].type==="deleted"&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[]),this.addAnnotationFeature()))},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let o;return this.offlineAnnotationEnabled?(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.resource===this.serverURL).map(i=>i.item.id)):(o=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t),"resource"in o&&(o=o.itemIds)),o},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){let o;if(this.offlineAnnotationEnabled)this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.feature&&i.resource===this.serverURL).map(i=>i.feature);else{const i=await this.fetchAnnotatedItemIds(e,t);o=await this.annotator.drawnFeatures(this.userToken,this.serverURL,i),"resource"in o&&(o=o.features)}return o},addAnnotationFeature:async function(){if(this.mapImp){this.featureAnnotationSubmitted||(this.clearAnnotationFeature(),this.loading=!0);const e=this.annotationFrom==="Anyone"?void 0:this.authorisedUser.orcid?this.authorisedUser.orcid:"0000-0000-0000-0000",t=this.annotationFrom==="Anyone"?void 0:this.annotationFrom==="Me",o=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=o,this.loading=!1,!this.featureAnnotationSubmitted)for(const i of o)this.mapImp.addAnnotationFeature(i)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setAnnotationFrom:function(e){this.annotationFrom=e,this.mapImp&&(this.manualAbortedOnClose(),this.addAnnotationFeature())},emitOfflineAnnotationUpdate:function(){this.$emit("update-offline-annotation-enabled",this.offlineAnnotationEnabled)},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(o=>{const i={colour:o.colour,enabled:o.enabled,label:o.id,key:o.id},a=hs(o,i.key);a.length>0&&(i.children=a),t.children.push(i)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,ai(this.mapImp,e).then(o=>{o.length&&o.forEach(i=>{let a=!0;t&&(a=t.checkAll?!0:t.checked.includes(i.taxon)),this.taxonConnectivity.push({...i,enabled:a}),this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(i.taxon,a)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:e,outlined:this.outlinesRadio})},setOutlines:function(e){this.outlinesRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:this.colourRadio,outlined:e})},setInitMapState:function(){if(this.mapImp){const e=this.mapImp.map,t=this.mapImp.options.bounds,o=[[t[0],t[1]],[t[2],t[3]]];e.setMaxBounds(null),e.setRenderWorldCopies(!1),this.initMapState=n.markRaw({initBounds:o})}},resetView:function(){if(this.mapImp){const e=this.mapImp.map,{initBounds:t}=this.initMapState;e.resetNorthPitch({animate:!1}),t&&e.fitBounds(t,{animate:!1}),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset()}},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},zoomToFeatures:function(e){this.mapImp&&this.mapImp.zoomToFeatures(e)},retrieveConnectedPaths:async function(e,t={}){var o,i,a,r,s;if(this.mapImp){let l=[],c=(o=t.target)!=null&&o.length?t.target:[];const d=[...this.mapImp.pathModelNodes(e)],f=await this.mapImp.queryPathsForFeatures(e);if(d.length){if(!c.length){const u=(i=t.type)!=null&&i.length?t.type:["all"],p=await this.flatmapQueries.queryForConnectivityNew(this.mapImp,e[0]),g=(a=p==null?void 0:p.ids)==null?void 0:a.dendrites.flat(1/0),h=(r=p==null?void 0:p.ids)==null?void 0:r.components.flat(1/0),m=(s=p==null?void 0:p.ids)==null?void 0:s.axons.flat(1/0);let y=[];u.includes("origins")&&y.push(...g),u.includes("components")&&y.push(...h),u.includes("destinations")&&y.push(...m),u.includes("all")&&y.push(...g,...h,...m),c=[...new Set(y)]}d.forEach(u=>{this.mapImp.nodePathModels(u).forEach(g=>{const m=this.mapImp.pathModelNodes(g).map(b=>this.mapImp.featureProperties(b).models);c.filter(b=>m.includes(b)).length&&!l.includes(g)&&l.push(g)})})}else f.length&&(c.length?f.forEach(u=>{const g=this.mapImp.pathModelNodes(u).map(m=>this.mapImp.featureProperties(m).models);c.filter(m=>g.includes(m)).length&&!l.includes(u)&&l.push(u)}):l=f);return l=[...new Set([...l,...e])],l}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;const o={"tile-layer":"pathways"},i={NOT:o};e.with&&!e.without?t={OR:[i,{AND:[o,{HAS:"alert"}]}]}:!e.with&&e.without?t={OR:[i,{AND:[o,{NOT:{HAS:"alert"}}]}]}:!e.with&&!e.without&&(t=i),this.setVisibilityFilter(t)},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;const o={"tile-layer":"pathways"},i={NOT:o};if(e.key==="alert"||e.key==="withoutAlert"){const a=e.key==="alert"?{HAS:"alert"}:{NOT:{HAS:"alert"}};t={OR:[i,{AND:[o,a]}]}}this.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){clearTimeout(this.taxonLeaveDelay);let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.taxonLeaveDelay=setTimeout(()=>{this.mapImp.unselectGeoJSONFeatures(),e.selections.forEach(t=>{let o=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,o)})},1e3)},checkAllTaxons:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.keys,e.value)},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent(),this.annotationEntry=[];else if(t.type==="modeChanged")t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0),this.annotationSidebar&&t.feature.mode==="simple_select"&&this.activeDrawMode==="Deleted"&&this.annotationEventCallback({},{type:"aborted"});else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool)if(this.connectionEntry={},this.selectedDrawnFeature){const o=this.existDrawnFeatures.find(i=>i.id===this.selectedDrawnFeature.id);o&&o.connection&&(this.connectionEntry=o.connection),this.annotationDrawModeEvent(e)}else this.annotationSidebar&&this.previousEditEvent.type==="updated"&&(this.annotationEntry=[{...this.previousEditEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.previousEditEvent={}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const o=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=o}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups([e])}t.type==="updated"&&(this.previousEditEvent=t),t.type==="deleted"?this.previousDeletedEvent=t:this.previousDeletedEvent={}},eventCallback:function(){return(e,t,...o)=>{if(e==="annotation"){const i={feature:t,userData:o,eventType:e};this.annotationEventCallback(i,t)}else if(e!=="pan-zoom"){const i=t.label,a=[t.models],r=this.entry,s=this.biologicalSex,l=t.alert;let c;t.taxons&&(typeof t.taxons!="object"?c=JSON.parse(t.taxons):c=t.taxons);let d=[{dataset:t.dataset,biologicalSex:s,taxonomy:r,resource:a,label:i,feature:t,userData:o,eventType:e,provenanceTaxonomy:c,alert:l}];if(e==="click"){const f=Object.keys(t).includes("id");if(!f){d=[];const p=t.mapUUID,g=new Set;for(let[h,m]of Object.entries(t))if(h!=="mapUUID"){const y=m.id,b=m.label,w=[m.models];let T;if(m.taxons&&(typeof m.taxons!="object"?T=JSON.parse(m.taxons):T=m.taxons),g.has(y))continue;g.add(y),d.push({dataset:m.dataset,biologicalSex:s,taxonomy:r,resource:w,label:b,feature:m,userData:o,eventType:e,provenanceTaxonomy:T,alert:m.alert,mapUUID:p})}}const u=f?t:t[0];if(this.setConnectivityDataSource(this.viewingMode,u),this.viewingMode!=="Neuron Connection"){if(this.currentActive=u.models?u.models:"",this.activeDrawTool&&!this.isValidDrawnCreated){const p=u.featureId||this.existDrawnFeatures.find(g=>g.id===u.id);if(this.activeDrawTool==="LineString"&&p){const g=u.featureId?u.featureId:u.id,h=u.label?u.label:`Feature ${u.id}`;this.connectionEntry[` ${g}`]=Object.assign({label:h},Object.fromEntries(Object.entries(u).filter(([m])=>["featureId","models"].includes(m)).map(([m,y])=>[m==="featureId"?"id":m,y])))}}}}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");t&&t.type!=="marker"&&e==="click"&&!this.activeDrawTool&&this.checkAndCreatePopups(d),this.$emit("resource-selected",d)}else this.$emit("pan-zoom-callback",t)}},setConnectivityDataSource:function(e,t){this.connectivityDataSource=t.source,(e==="Neuron Connection"||e==="Annotation")&&(this.connectivityDataSource=t.featureId)},changeViewingMode:function(e){e&&(this.viewingMode=e),this.manualAbortedOnClose()},removeActiveTooltips:function(){this.mapImp&&this.mapImp.removePopup(),this.$el.querySelectorAll(".flatmap-tooltip-popup").forEach(t=>t.remove())},createTooltipForConnectivity:function(e,t){const o=document.createElement("div");o.classList.add("flatmap-feature-label"),e.forEach((i,a)=>{const{label:r}=i;if(o.append(li(r)),a+1<e.length){const s=document.createElement("hr");o.appendChild(s)}}),this.mapImp.showPopup(t,o,{className:"custom-popup flatmap-tooltip-popup",positionAtLastClick:!1,preserveSelection:!0})},showConnectivityTooltips:function(e){const{connectivityInfo:t,data:o}=e,i=[],a=[],r=[],s=[];if(t&&t.featureId&&i.push(...t.featureId),this.mapImp){if(o.forEach(p=>{const g=this.mapImp.search(p.id);if(g!=null&&g.results.length){const h=g==null?void 0:g.results[0].featureId;r.push({featureId:h,...p})}else s.push(p)}),r.length){let p=r[0].featureId;this.mapImp.annotations.forEach(g=>{const h=g["anatomical-nodes"];if(h){const m=h.join("");r.every(b=>m.indexOf(b.id)!==-1)&&(p=g.featureId,a.push(p))}}),this.createTooltipForConnectivity(r,p)}else this.removeActiveTooltips();this.emitConnectivityError(s);const l=i.reduce((p,g)=>{const h=this.mapImp.pathways.paths[g],m=h?h.connectivity:null;if(m){const y=m.flat(1/0);p.push(...y)}return p},[]),c=[...new Set(l)],d=[...i,...c],u=[...this.mapImp.modelFeatureIdList(d),...a];this.mapImp.selectGeoJSONFeatures(u)}},showConnectivitiesByReference:function(e){this.searchConnectivitiesByReference(e).then(t=>{this.mapImp.selectFeatures(t)})},searchConnectivitiesByReference:async function(e){const t=sessionStorage.getItem("flatmap-knowledge");let o=[];return t?o=await by(e):o=await wy(this.mapImp,e,this.flatmapQueries),o},getFlatmapKnowledge:function(){let e=[];const t=sessionStorage.getItem("flatmap-knowledge");return t&&(e=JSON.parse(t)),e},emitConnectivityError:function(e){this.$emit("connectivity-error",{data:{errorData:e,errorMessage:My}})},checkConnectivityTooltipEntry:function(e){return e!=null&&e.length?e.find(t=>{var o,i;return((o=t==null?void 0:t.destinations)==null?void 0:o.length)||((i=t==null?void 0:t.components)==null?void 0:i.length)})!==void 0:!1},changeConnectivitySource:async function(e){const{entry:t,connectivitySource:o}=e;t.mapId===this.mapImp.id&&(await this.flatmapQueries.queryForConnectivityNew(this.mapImp,t.featureId[0],o),this.tooltipEntry=this.tooltipEntry.map(i=>i.featureId[0]===t.featureId[0]?this.flatmapQueries.updateTooltipData(i):i),this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry))},checkAndCreatePopups:async function(e,t=!0){var o;if(this.viewingMode==="Annotation"){const i=e.filter(a=>a.feature).map(a=>a.feature);if(i.length>0)if(this.annotationSidebar&&this.previousDeletedEvent.type==="deleted"&&(this.annotationEntry=[{...this.previousDeletedEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.annotationEntry=[],i.forEach(a=>{var r;this.annotationEntry.push({...a,resourceId:this.serverURL,featureId:a.featureId?a.featureId:(r=a.feature)==null?void 0:r.id,offline:this.offlineAnnotationEnabled})}),i[0].feature)this.activeDrawTool||this.activeDrawMode||this.isValidDrawnCreated?(this.featureAnnotationSubmitted=!1,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(i[0].feature.id,xy(i[0].feature.geometry))):this.rollbackAnnotationEvent();else{const a=this.annotationEntry.filter(r=>r.featureId&&r.models).map(r=>r.models);a.length>0&&this.displayTooltip(a)}else this.annotation={}}else if(this.viewingMode==="Neuron Connection"&&t){const i=e.map(r=>r.resource[0]);if(i.find(r=>!r.startsWith("ilxtr:"))){const r=Array.isArray(i)?[...i]:[i];r.length===1&&r.push([]);const s=(o=e[0].feature)==null?void 0:o.featureId,l=this.mapImp.annotations.get(s),c=l==null?void 0:l["anatomical-nodes"],d=l==null?void 0:l.models;let f,u=r;const p=l==null?void 0:l.models;c!=null&&c.length&&(f=c.find(v=>JSON.parse(v)[0]===d)),f?u=JSON.parse(f):p&&(u=[p,[]]);const g=u.flat(1/0),h=[...new Set(g)],y=(await Pt.fetchLabels(this.flatmapAPI,h)).reduce((v,E)=>{const I=E[0],M=JSON.parse(E[1]);return M.source===this.mapImp.knowledgeSource&&v.push({id:I,label:M.label}),v},[]),b=[];for(let v=0;v<h.length;v++){const E=y.find(I=>I.id===h[v]);E&&b.push(E.label)}const w=li(b.join(", ")),T={facet:JSON.stringify(u),facetPropPath:`flatmap.connectivity.source.${this.connectionType.toLowerCase()}`,tagLabel:w,term:this.connectionType};this.connectivityFilters.some(v=>v.facet===T.facet&&v.facetPropPath===T.facetPropPath)||this.connectivityFilters.push(T),this.$emit("neuron-connection-feature-click",{filters:this.connectivityFilters,search:""})}else{const r=i.join();this.connectionType.toLowerCase()==="all"&&this.$emit("neuron-connection-feature-click",{filters:[],search:r})}}else{vy(this.mapImp,this.flatmapQueries);let i=[];if(this.tooltipEntry=e.filter(a=>a.resource[0]in this.mapImp.pathways.paths).map(a=>({title:a.label,featureId:a.resource,ready:!1})),this.tooltipEntry.length){this.$emit("connectivity-info-open",this.tooltipEntry);for(let r=0;r<e.length;r++)i.push(await this.getKnowledgeTooltip(e[r]));this.tooltipEntry=await Promise.all(i);const a=this.tooltipEntry.map(r=>r.featureId[0]);a.length>0&&this.displayTooltip(a)}}},updateConnectivityFilters:function(e){e.length&&(this.connectivityFilters=e.filter(t=>t.facet.toLowerCase()!=="show all"))},resetConnectivityfilters:function(e){e.length?this.connectivityFilters=this.connectivityFilters.filter(t=>e.some(o=>o.facetPropPath===t.facetPropPath&&o.facet!==t.facet)):this.connectivityFilters=[]},getKnowledgeTooltip:async function(e){const t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(this.mapImp,e);let o=await this.flatmapQueries.createTooltipData(this.mapImp,e);return(t&&t[0]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(o.featuresAlert=e.alert,o.knowledgeSource=si(this.mapImp),o.mapId=this.mapImp.provenance.id,o.mapuuid=this.mapImp.provenance.uuid),o.ready=!0,o},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{this.$emit("connectivity-info-close"),e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.$el.style.display="none"),document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},showPopup:function(e,t,o){let i=o;this.mapImp&&(i?i.className||(i.className="custom-popup"):i={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,i))},showMarkerPopup:function(e,t,o){this.mapImp&&this.mapImp.showMarkerPopup(e,t,o)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,o=t-1,i=this.hoverVisibilities[this.helpModeActiveIndex];if(i){const a=i==null?void 0:i.refs,r=i==null?void 0:i.ref,s=this.$refs[a||r];if(s){const{parentElement:l,nextElementSibling:c}=s.$el,d=f=>f&&(f.classList.contains("pathway-container")||f.classList.contains("pathway-location"));(d(l)||d(c))&&(this.requiresDrawer?this.drawerOpen=!0:this.helpModeActiveIndex+=1)}else this.helpModeActiveIndex+=1}e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=o),e&&this.helpModeActiveIndex>=o&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(a=>{a.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(a=>{a.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(a=>{a.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){let o,i={className:"flatmapvuer-popover"};if(t)o=e,i.annotationFeatureGeometry=t;else{const a=Array.isArray(e)?e[0]:e;a&&(o=this.mapImp.modelFeatureIds(a)[0]),this.activeDrawTool||(i.positionAtLastClick=!0)}this.connectivityInfoSidebar&&this.tooltipEntry.length&&this.viewingMode!=="Annotation"&&this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry),this.annotationSidebar&&this.viewingMode==="Annotation"&&this.$emit("annotation-open",{annotationEntry:this.annotationEntry,commitCallback:this.commitAnnotationEvent}),o&&!this.disableUI&&(this.viewingMode==="Annotation"&&!this.annotationSidebar||this.viewingMode==="Exploration"&&!this.connectivityInfoSidebar)&&(this.tooltipDisplay=!0,this.$nextTick(()=>{this.mapImp.showPopup(o,this.$refs.tooltip.$el,i),this.popUpCssHacks()}))},moveMap:function(e,t={}){if(this.mapImp){const{offsetX:o=0,offsetY:i=0,zoom:a=4}=t,r=this.mapImp.map,s=this.mapImp.bounds.toArray();this.mapImp.zoomToFeatures(e,{noZoomIn:!0}),this.showPathwaysDrawer(!1),s!=null&&s.length&&setTimeout(()=>{r.fitBounds(s,{offset:[o,i],zoom:a,animate:!0})})}},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let o of t.values())o.label&&e.push(o.label);return Array.from(new Set(e))}},getVisibilityState:function(e){if(["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{let i=this.$refs[o];i&&(e[o]=i.getState())}),this.$refs.treeControls){const o=this.$refs.treeControls.$refs.regionTree.getCheckedKeys();e.systemsSelection=o.filter(i=>!i.includes("."))}},setVisibilityState:function(e){["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{const i=e[o];if(i){const a=this.$refs[o];a&&a.setState(i)}}),"systemsSelection"in e&&this.$refs.treeControls&&(this.$refs.treeControls.$refs.regionTree.setCheckedKeys(e.systemsSelection),this.systems[0].children.forEach(o=>{this.mapImp.enableSystem(o.key,e.systemsSelection.includes(o.key))}))},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e.viewingMode=this.viewingMode,e.searchTerm=this.searchTerm,e.flightPath3D=this.flightPath3DRadio,e.colour=this.colourRadio,e.outlines=this.outlinesRadio,e.background=this.currentBackground,this.offlineAnnotationEnabled&&(e.offlineAnnotations=sessionStorage.getItem("anonymous-annotation")),this.getVisibilityState(e),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?this.restoreMapState(e):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){if(e){if(e.viewport&&this.mapImp.setState(e.viewport),e.offlineAnnotations&&sessionStorage.setItem("anonymous-annotation",e.offlineAnnotations),e.viewingMode&&this.changeViewingMode(e.viewingMode),"flightPath3D"in e&&this.setFlightPath3D(e.flightPath3D),"colour"in e&&this.setColour(e.colour),"outlines"in e&&this.setOutlines(e.outlines),e.background&&this.backgroundChangeCallback(e.background),e.searchTerm){const t=e.searchTerm;this.searchAndShowResult(t,!0,!0)}this.setVisibilityState(e)}},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0;let t=!1;this.displayMinimap&&(t={position:"top-right"});let o={taxon:this.entry};this.uuid&&(o.uuid=this.uuid),e?(e.uuid?o={uuid:e.uuid}:e.entry&&(o.taxon=e.entry),e.biologicalSex?o.biologicalSex=e.biologicalSex:o.taxon==="NCBITaxon:9606"&&(o.biologicalSex="PATO:0000384")):this.biologicalSex&&(o.biologicalSex=this.biologicalSex),this.mapManagerRef.loadMap(o,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:t,container:this.$refs.display}).then(a=>{this.mapImp=a,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let r=this.mapImp.details.version;this.setFlightPathInfo(r);const s=this._stateToBeSet?this._stateToBeSet:e;this.onFlatmapReady(s),this.$nextTick(()=>this.restoreMapState(s))})}else e&&(this._stateToBeSet={...e},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),o=parseInt(t.paddingTop)+parseInt(t.paddingBottom),i=e.clientHeight-o;this.pathwaysMaxHeight=i-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&(this.mapImp.resize(),this.showMinimap(this.displayMinimap))}catch{console.error("Map resize error")}},getFilterSources:function(){const e=["kind","taxons"];let t=new Set,o=new Set,i=new Map;for(const r of this.mapImp.annotations.values())if(r.source){"alert"in r?t.add(r.source):o.add(r.source);for(const[s,l]of Object.entries(r))if(e.includes(s)){i.has(s)||i.set(s,new Map);const c=i.get(s),d=f=>{const u=f;c.has(u)||c.set(u,new Set),c.get(u).add(`${r.source}`)};Array.isArray(l)?l.forEach(d):d(l)}}let a={alert:{with:[...t],without:[...o]}};for(const[r,s]of i.entries()){a[r]={};for(const[l,c]of s.entries())a[r][l]=[...c.values()]}return a},getFilterOptions:async function(e,t){const o=t||this.getFlatmapKnowledge(),i=this.pathways;return await Pt.getFlatmapFilterOptions(this.flatmapAPI,e,o,i)},onFlatmapReady:function(e){var t;this.sensor=n.markRaw(new Ty(this.$refs.display,this.mapResize)),((t=this.mapImp.options)==null?void 0:t.style)==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.pathways=this.pathways.filter(o=>o.enabled&&o.type!=="other"),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.mapImp.taxonIdentifiers,e?e.taxonSelection:void 0),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.flatmapLegends=this.mapImp.flatmapLegend,this.addResizeButtonToMinimap(),this.loading=!1,this.computePathControlsMaximumHeight(),this.mapResize(),this.handleMapClick(),this.setInitMapState(),this.$emit("ready",this)},handleMapClick:function(){const e=this.mapImp.map;e&&e.on("click",t=>{this.connectivityDataSource||this.$emit("connectivity-info-close"),this.connectivityDataSource=""})},showMinimap:function(e){this.mapImp&&this.mapImp.showMinimap(e)},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t,o=!0){var i;if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),this.viewingMode==="Exploration"?this.$emit("connectivity-info-close"):this.viewingMode==="Annotation"&&this.manualAbortedOnClose(),this.searchTerm="",!0;{const a=this.mapImp.search(e);if((i=a==null?void 0:a.results)!=null&&i.length){if(this.mapImp.showSearchResults(a),t){let r;for(let s=0;s<a.results.length;s++){r=a.results[s].featureId;const l=this.mapImp.annotation(r);if(r&&(l!=null&&l.label))break}if(r){const s=this.mapImp.featureProperties(r),l={resource:[s.models],feature:s,label:s.label,provenanceTaxonomy:s.taxons,alert:s.alert};this.checkAndCreatePopups([l],o),this.mapImp.showPopup(r,li(s.label),{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}}return this.searchTerm=e,!0}else this.mapImp.clearSearchResults()}}return!1},highlightConnectedPaths:function(e){if(e.length){const t=e.filter(i=>i in this.mapImp.pathways.paths),o=this.mapImp.modelFeatureIdList(t);this.mapImp.selectGeoJSONFeatures(o)}},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]},onActionClick:function(e){ci.emit("onActionClick",e)},setConnectionType:function(e){this.connectionType=e}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:1},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:[]}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,userApiKey:this.userToken}},data:function(){return{sensor:null,mapManagerRef:void 0,flatmapQueries:void 0,annotationEntry:[],tooltipDisplay:!1,serverURL:void 0,layers:[],pathways:[],initMapState:n.markRaw({}),sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,tooltipWait:n.markRaw([]),hoverVisibilities:[{value:!1,ref:"markerPopover"},{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"toolbarPopover",ref:"editPopover"},{value:!1,refs:"toolbarPopover",ref:"deletePopover"},{value:!1,refs:"toolbarPopover",ref:"pointPopover"},{value:!1,refs:"toolbarPopover",ref:"lineStringPopover"},{value:!1,refs:"toolbarPopover",ref:"polygonPopover"},{value:!1,refs:"toolbarPopover",ref:"connectionPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:Ey,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:gy,tooltipEntry:[],connectivityDataSource:"",connectivityTooltipVisible:!1,drawerOpen:!1,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingMode:"Exploration",viewingModes:{Exploration:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources","Neuron Connection":"Discover Neuron connections by selecting a neuron and viewing its associated network connections",Annotation:["View feature annotations","Add, comment on and view feature annotations"]},connectionType:"All",offlineAnnotationEnabled:!1,offlineAnnotations:[],annotationFrom:"Anyone",annotatedSource:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,toolbarOptions:["Edit","Delete","Point","LineString","Polygon","Connection"],annotator:void 0,authorisedUser:void 0,activeDrawMode:void 0,activeDrawTool:void 0,featureAnnotationSubmitted:!1,drawnCreatedEvent:{},previousEditEvent:{},previousDeletedEvent:{},connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,containsAlert:!1,alertOptions:[{label:"Display Path With Alerts",key:"alert",enabled:!0},{label:"Display Path Without Alerts",key:"withoutAlert",enabled:!0}],mapFilters:n.markRaw({alert:{with:!0,without:!0}}),searchTerm:"",taxonLeaveDelay:void 0,connectivityFilters:[],flatmapLegends:[]}},computed:{...gi.mapState(Ay,["userToken"]),isValidDrawnCreated:function(){return Object.keys(this.drawnCreatedEvent).length>0},requiresDrawer:function(){var e,t,o,i;return this.loading?(this.drawerOpen=!1,!1):((e=this.systems)==null?void 0:e.length)>0||this.containsAlert&&this.alertOptions||((t=this.pathways)==null?void 0:t.length)>0||((o=this.taxonConnectivity)==null?void 0:o.length)>0||((i=this.legendEntry)==null?void 0:i.length)>0?(this.drawerOpen=!0,!0):(this.drawerOpen=!1,!1)},modeDescription:function(){let e=this.viewingModes[this.viewingMode];return this.viewingMode==="Annotation"?this.authorisedUser?e[1]:e[0]:e},legendEntry:function(){return[...this.flatmapLegends,...this.externalLegends]}},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},state:{handler:function(e,t){e!==t&&(this.mapManagerRef?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){this.clearAnnotationFeature(),e==="Annotation"&&(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&t.canUpdate?(this.authorisedUser=t,this.offlineAnnotationEnabled=!1):(this.authorisedUser=void 0,this.offlineAnnotationEnabled=!0),this.emitOfflineAnnotationUpdate(),this.setFeatureAnnotated(),this.addAnnotationFeature(),this.loading=!1}))},disableUI:function(e){e&&this.closeTooltip()},activeDrawTool:function(e){let t=[],o={x:null,y:null};const i=this.$el.querySelector(".maplibregl-canvas"),a=()=>{i.removeEventListener("keydown",r),i.removeEventListener("click",s)},r=l=>{if(!["Escape","Enter"].includes(l.key))return;const c=e==="Point"&&t.length===1||e==="LineString"&&t.length>=2||e==="Polygon"&&t.length>=3;(l.key==="Escape"||l.key==="Enter"&&!c)&&(this.activeDrawTool=void 0),a()},s=l=>{const c=i.getBoundingClientRect(),d=l.clientX-c.left,f=l.clientY-c.top;if(Math.sqrt((d-o.x)**2+(f-o.y)**2)<8){this.isValidDrawnCreated||(this.activeDrawTool=void 0),a();return}o={x:d,y:f},t.push(o)};e&&(a(),i.addEventListener("keydown",r),i.addEventListener("click",s))}},created:function(){this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new yi.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef))},mounted:function(){this.openMapRef=n.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=n.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait.length=this.hoverVisibilities.length,this.flatmapQueries=n.markRaw(new yy),this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap(),us()}},Ny={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},Py={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},_y={style:{height:"100%",width:"100%"},ref:"display"},Ly={class:"beta-popovers"},Vy={key:2,class:"warning-text"},Ry={class:"bottom-right-control"},Fy=["innerHTML"],Dy={style:{"margin-bottom":"2px"}},$y={key:0,class:"viewing-mode-title"},zy=["onClick"],jy=["onClick"];function Hy(e,t,o,i,a,r){const s=n.resolveComponent("map-svg-sprite-color"),l=K.WarningFilled,c=ke,d=Kn,f=K.ArrowDown,u=n.resolveComponent("DrawToolbar"),p=n.resolveComponent("map-svg-icon"),g=dy,h=n.resolveComponent("tree-controls"),m=fs,y=K.ArrowLeft,b=Fr,w=Xt,T=en,k=ti,v=Hn,E=Xr,I=es,M=n.resolveComponent("Tooltip"),x=ls,B=oi;return n.withDirectives((n.openBlock(),n.createElementBlock("div",Ny,[n.createVNode(s),n.createElementVNode("div",Py,[n.createElementVNode("div",_y,null,512),n.withDirectives(n.createElementVNode("div",Ly,[n.createElementVNode("div",null,[n.createVNode(d,{placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[7].value,ref:"warningPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"warning-icon",onMouseover:t[7]||(t[7]=S=>r.showTooltip(7)),onMouseout:t[8]||(t[8]=S=>r.hideTooltip(7))},[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(c,{key:0},{default:n.withCtx(()=>[n.createVNode(l)]),_:1})):n.createCommentVNode("",!0),o.isLegacy?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[33]||(t[33]=n.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),n.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...S)=>r.viewLatestMap&&r.viewLatestMap(...S))}," Click here for the latest map ")],64)):o.displayWarning?(n.openBlock(),n.createElementBlock("span",Vy,"Beta")):n.createCommentVNode("",!0)],32)]),default:n.withCtx(()=>[o.isLegacy?(n.openBlock(),n.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=S=>r.showTooltip(7)),onMouseout:t[1]||(t[1]=S=>r.hideTooltip(7))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(n.openBlock(),n.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=S=>r.showTooltip(7)),onMouseout:t[3]||(t[3]=S=>r.hideTooltip(7))},t[31]||(t[31]=[n.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". ")]),32)):(n.openBlock(),n.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=S=>r.showTooltip(7)),onMouseout:t[5]||(t[5]=S=>r.hideTooltip(7))},t[32]||(t[32]=[n.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")]),32))]),_:1},8,["visible"])]),o.displayLatestChanges?(n.openBlock(),n.createBlock(d,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[8].value,ref:"whatsNewPopover"},{reference:n.withCtx(()=>[o.displayLatestChanges?(n.openBlock(),n.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=S=>r.showTooltip(8)),onMouseout:t[10]||(t[10]=S=>r.hideTooltip(8))},[n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(l)]),_:1}),t[34]||(t[34]=n.createElementVNode("span",{class:"warning-text"},"What's new?",-1))],32)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>t[35]||(t[35]=[n.createElementVNode("b",null,"Connectivity References",-1),n.createElementVNode("p",null," Connectivity references have been improved and available in various formats. ",-1),n.createElementVNode("b",null,"Improved state storing",-1),n.createElementVNode("p",null," Current selection and visibility filters are now stored when creating a permalink. ",-1)])),_:1},8,["visible"])):n.createCommentVNode("",!0)],512),[[n.vShow,!o.disableUI]]),n.withDirectives(n.createVNode(c,{class:n.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:r.closeMinimap},{default:n.withCtx(()=>[n.createVNode(f)]),_:1},8,["class","onClick"]),[[n.vShow,e.minimapResizeShow]]),e.viewingMode==="Annotation"&&(e.authorisedUser||e.offlineAnnotationEnabled)&&!o.disableUI?(n.openBlock(),n.createBlock(u,{key:0,mapCanvas:{containerHTML:this.$el,class:".maplibregl-canvas"},toolbarOptions:e.toolbarOptions,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,newlyDrawnEntry:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,hoverVisibilities:e.hoverVisibilities,onClickToolbar:r.toolbarEvent,onFeatureTooltip:r.connectedFeatureTooltip,onConfirmDrawn:r.confirmDrawnFeature,onCancelDrawn:r.cancelDrawnFeature,onShowTooltip:r.showTooltip,onHideTooltip:r.hideTooltip,ref:"toolbarPopover"},null,8,["mapCanvas","toolbarOptions","activeDrawTool","activeDrawMode","newlyDrawnEntry","connectionEntry","hoverVisibilities","onClickToolbar","onFeatureTooltip","onConfirmDrawn","onCancelDrawn","onShowTooltip","onHideTooltip"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",Ry,[n.createVNode(d,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomInPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[11]||(t[11]=S=>r.zoomIn()),onMouseover:t[12]||(t[12]=S=>r.showTooltip(1)),onMouseout:t[13]||(t[13]=S=>r.hideTooltip(1))},[n.createVNode(p,{class:"icon-button zoomIn",icon:"zoomIn"})],32)]),_:1},8,["visible"]),n.createVNode(d,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value,ref:"zoomOutPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[14]||(t[14]=S=>r.zoomOut()),onMouseover:t[15]||(t[15]=S=>r.showTooltip(2)),onMouseout:t[16]||(t[16]=S=>r.hideTooltip(2))},[n.createVNode(p,{class:"icon-button zoomOut",icon:"zoomOut"})],32)]),_:1},8,["visible"]),n.createVNode(d,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[3].value,ref:"zoomFitPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[17]||(t[17]=S=>r.resetView()),onMouseover:t[18]||(t[18]=S=>r.showTooltip(3)),onMouseout:t[19]||(t[19]=S=>r.hideTooltip(3))},[n.createVNode(p,{class:"icon-button fitWindow",icon:"fitWindow"})],32)]),default:n.withCtx(()=>[t[36]||(t[36]=n.createElementVNode("div",null,[n.createTextVNode(" Fit to "),n.createElementVNode("br"),n.createTextVNode(" window ")],-1))]),_:1},8,["visible"])],512),[[n.vShow,!o.disableUI]]),n.createVNode(d,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[6].value,ref:"checkBoxPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:n.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[n.createVNode(d,{content:"Location of the featured dataset",placement:"bottom",teleported:!0,trigger:"manual",width:"max-content",offset:-10,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:e.hoverVisibilities[9].value&&o.showStarInLegend,ref:"featuredMarkerPopover"},{reference:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",{onMouseover:t[20]||(t[20]=S=>r.showTooltip(9)),onMouseout:t[21]||(t[21]=S=>r.hideTooltip(9))},[r.legendEntry.length?(n.openBlock(),n.createBlock(g,{key:0,identifierKey:"prompt",colourKey:"colour",styleKey:"style",legends:r.legendEntry,showStarInLegend:!0,class:"svg-legends-container"},null,8,["legends"])):n.createCommentVNode("",!0)],32)),[[x,void 0,"featuredMarkerPopover"]])]),_:1},8,["visible"]),n.createVNode(d,{content:"Find these markers for data. The number inside the markers is the number of datasets available for each marker.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[0].value,ref:"markerPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,Fy),[[n.vShow,e.hoverVisibilities[0].value],[x,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(n.openBlock(),n.createBlock(h,{key:0,class:"treeControls",mapType:"flatmap",title:"Systems",treeData:e.systems,active:e.currentActive,hover:e.currentHover,onCheckChanged:r.systemSelected,onCheckAll:r.checkAllSystems,onChangeActive:r.ftuSelected,ref:"treeControls"},null,8,["treeData","active","hover","onCheckChanged","onCheckAll","onChangeActive"])):n.createCommentVNode("",!0),e.containsAlert&&e.alertOptions&&o.showPathwayFilter?(n.openBlock(),n.createBlock(m,{title:"Alert",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:r.alertSelected,onCheckboxMouseEnter:r.alertMouseEnterEmitted,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(n.openBlock(),n.createBlock(m,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,showAsLegend:!o.showPathwayFilter,onChanged:r.pathwaysSelected,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","showAsLegend","onChanged","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.taxonConnectivity&&e.taxonConnectivity.length>0&&o.showPathwayFilter?(n.openBlock(),n.createBlock(m,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:r.taxonsSelected,onCheckboxMouseEnter:r.taxonMouseEnterEmitted,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0)],6)),[[x,void 0,"checkBoxPopover"]]),n.createElementVNode("div",{onClick:t[22]||(t[22]=(...S)=>r.toggleDrawer&&r.toggleDrawer(...S)),class:n.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.createVNode(c,null,{default:n.withCtx(()=>[n.createVNode(y)]),_:1})],2)],2),[[n.vShow,!o.disableUI&&r.requiresDrawer]])]),_:1},8,["visible"]),e.openMapRef?(n.openBlock(),n.createBlock(d,{key:1,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.openMapOptions,S=>(n.openBlock(),n.createBlock(w,{key:S.key},{default:n.withCtx(()=>[n.createVNode(b,{type:"primary",plain:"",onClick:P=>e.$emit("open-map",S.key)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(S.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):n.createCommentVNode("",!0),n.createVNode(d,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[37]||(t[37]=[n.createTextVNode("Viewing Mode")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createElementVNode("div",Dy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.viewingModes,(S,P,L)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:P},[P===e.viewingMode?(n.openBlock(),n.createElementBlock("span",$y,[n.createElementVNode("b",null,n.toDisplayString(P),1)])):(n.openBlock(),n.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:q=>r.changeViewingMode(P)},n.toDisplayString(P),9,zy))],64))),128))]),n.createVNode(w,{class:"viewing-mode-description"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(r.modeDescription),1)]),_:1}),e.viewingMode==="Annotation"&&e.offlineAnnotationEnabled?(n.openBlock(),n.createBlock(w,{key:0,class:"viewing-mode-description"},{default:n.withCtx(()=>t[38]||(t[38]=[n.createTextVNode(" (Anonymous annotate) ")])),_:1})):n.createCommentVNode("",!0)]),_:1}),e.viewingMode==="Annotation"&&e.authorisedUser?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[39]||(t[39]=[n.createTextVNode("Annotations From")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(v,{teleported:!1,modelValue:e.annotationFrom,"onUpdate:modelValue":t[23]||(t[23]=S=>e.annotationFrom=S),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:r.setAnnotationFrom},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.annotatedSource,S=>(n.openBlock(),n.createBlock(k,{key:S,label:S,value:S},{default:n.withCtx(()=>[n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(T,{span:12},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(S),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:1,class:"backgroundSpacer"})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:2,class:"backgroundText"},{default:n.withCtx(()=>t[40]||(t[40]=[n.createTextVNode("Flight path display")])),_:1})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:3,class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(I,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[24]||(t[24]=S=>e.flightPath3DRadio=S),class:"flatmap-radio",onChange:r.setFlightPath3D},{default:n.withCtx(()=>[n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[41]||(t[41]=[n.createTextVNode("2D")])),_:1}),n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[42]||(t[42]=[n.createTextVNode("3D")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):n.createCommentVNode("",!0),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[43]||(t[43]=[n.createTextVNode("Organs display")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(I,{modelValue:e.colourRadio,"onUpdate:modelValue":t[25]||(t[25]=S=>e.colourRadio=S),class:"flatmap-radio",onChange:r.setColour},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[44]||(t[44]=[n.createTextVNode("Colour")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[45]||(t[45]=[n.createTextVNode("Greyscale")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[46]||(t[46]=[n.createTextVNode("Outlines display")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(I,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[26]||(t[26]=S=>e.outlinesRadio=S),class:"flatmap-radio",onChange:r.setOutlines},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[47]||(t[47]=[n.createTextVNode("Show")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[48]||(t[48]=[n.createTextVNode("Hide")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[49]||(t[49]=[n.createTextVNode("Change background")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.availableBackground,S=>(n.openBlock(),n.createElementBlock("div",{key:S,class:n.normalizeClass(["backgroundChoice",S,S==e.currentBackground?"active":""]),onClick:P=>r.backgroundChangeCallback(S)},null,10,jy))),128))]),_:1})])]),_:1},8,["virtual-ref"]),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[o.showOpenMapButton?(n.openBlock(),n.createBlock(w,{key:0},{default:n.withCtx(()=>[n.createVNode(d,{visible:e.hoverVisibilities[4].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:n.withCtx(()=>[o.enableOpenMapUI&&o.openMapOptions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"openMapRef",class:"icon-button-container",onMouseover:t[27]||(t[27]=S=>r.showTooltip(4)),onMouseout:t[28]||(t[28]=S=>r.hideTooltip(4))},[n.createVNode(p,{icon:"openMap",class:"icon-button open-map-button"})],544)):n.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0),o.showLocalSettings?(n.openBlock(),n.createBlock(w,{key:1},{default:n.withCtx(()=>[n.createVNode(d,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[5].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{ref:"backgroundIconRef",class:"icon-button-container",onMouseover:t[29]||(t[29]=S=>r.showTooltip(5)),onMouseout:t[30]||(t[30]=S=>r.hideTooltip(5))},[n.createVNode(p,{icon:"changeBckgd",class:"icon-button"})],544)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0)],2),[[n.vShow,!o.disableUI]]),e.tooltipDisplay?(n.openBlock(),n.createBlock(M,{key:2,ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,tooltipEntry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation",onAnnotation:r.commitAnnotationEvent,onOnActionClick:r.onActionClick},null,8,["annotationEntry","tooltipEntry","annotationDisplay","onAnnotation","onOnActionClick"])):n.createCommentVNode("",!0)])])),[[B,e.loading]])}const di=tn(By,[["render",Hy],["__scopeId","data-v-6afc0531"]]),ms={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},Ky={name:"MultiFlatmapVuer",components:{Col:en,Row:Xt,Option:ti,Select:Hn,Popover:Kn,FlatmapVuer:di},created:function(){this.loadMapManager()},mounted:function(){this.initialise(),ci.on("onActionClick",e=>{this.resourceSelected(e)}),ci.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return new Promise(e=>{this.requireInitialisation?(this.requireInitialisation=!1,fetch(this.flatmapAPI).then(t=>t.json()).then(t=>{Object.keys(this.availableSpecies).forEach(i=>{const a=this.availableSpecies[i].uuid;if(a&&t.map(r=>r.uuid).indexOf(a)>0)this.speciesList[i]=this.availableSpecies[i];else for(let r=0;r<t.length;r++)if(this.availableSpecies[i].taxo===t[r].taxon)if(this.availableSpecies[i].biologicalSex){if(t[r].biologicalSex&&t[r].biologicalSex===this.availableSpecies[i].biologicalSex){this.speciesList[i]=this.availableSpecies[i];break}}else{this.speciesList[i]=this.availableSpecies[i];break}});let o=this.initial;if(this.state){const i=this.state.state;(!i||!i.uuid&&!i.entry)&&this.state.species?o=this.state.species:o=void 0}o&&(o&&this.speciesList[o]!==void 0?this.activeSpecies=o:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this.initialised=!0,e(),this.resolveList.forEach(i=>{i()})})):this.initialised?e():this.resolveList.push(e)})},loadMapManager:function(){this.mapManagerRef||(this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new yi.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef)))},resourceSelected:function(e){this.$emit("resource-selected",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onAnnotationClose:function(){this.$emit("annotation-close")},onAnnotationOpen:function(e){this.$emit("annotation-open",e)},updateOfflineAnnotationEnabled:function(e){this.$emit("update-offline-annotation-enabled",e)},onConnectivityInfoClose:function(){this.$emit("connectivity-info-close")},onConnectivityInfoOpen:function(e){this.$emit("connectivity-info-open",e)},onConnectivityError:function(e){this.$emit("connectivity-error",e)},onNeuronConnectionFeatureClick:function(e){this.$emit("neuron-connection-feature-click",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,o){this.getCurrentFlatmap().showPopup(e,t,o)},showMarkerPopup:function(e,t,o){this.getCurrentFlatmap().showMarkerPopup(e,t,o)},setSpecies:function(e,t,o){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(o){const i=o-1;i>=0&&this.$nextTick(()=>{this.setSpecies(e,t,i)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let o=0;o<t.length;o++){const i=this.speciesList[t[o]];if(!i.isLegacy&&i.taxo===e.entry&&i.biologicalSex===e.biologicalSex){this.setSpecies(t[o],e,0);return}}},createLegacyEntry:function(e,t,o){if(o&&t){let i="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?i=e.species:i=i+` ${e.species}`),this.speciesList[i]={taxo:t,isLegacy:!0,displayWarning:!0},{species:i,state:{entry:t,uuid:o,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const o=e.state;if(o.uuid){if(o.entry)return new Promise(()=>{const i={taxon:o.entry};o.biologicalSex&&(i.biologicalSex=o.biologicalSex),this.mapManagerRef.findMap(i).then(a=>{if(a.uuid!==o.uuid)return this.createLegacyEntry(e,o.entry,o.uuid)}).then(a=>{t(a||e)}).catch(()=>{t(e)})})}else if(o.entry){const i=o.entry in ms?ms[o.entry]:void 0,a=this.createLegacyEntry(e,o.entry,i);t(a||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&(this.loadMapManager(),this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})}))},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")},changeViewingMode:function(e){this.getCurrentFlatmap().changeViewingMode(e)},setConnectionType:function(e){this.getCurrentFlatmap().setConnectionType(e)}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:1},renderAtMounted:{type:Boolean,default:!1},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:[]}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0,resolveList:n.markRaw([]),initialised:!1,mapManagerRef:void 0}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0}}},Uy={class:"multi-container",ref:"multiContainer"},Wy={key:0,style:{position:"absolute","z-index":"100"}},qy={class:"select-box-icon"};function Gy(e,t,o,i,a,r){const s=ti,l=Hn,c=Kn,d=di;return n.openBlock(),n.createElementBlock("div",Uy,[o.disableUI?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Wy,[t[2]||(t[2]=n.createElementVNode("div",{class:"species-display-text"},"Species",-1)),n.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:r.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:n.withCtx(()=>[n.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=f=>e.activeSpecies=f),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:r.setSpecies},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(f,u)=>(n.openBlock(),n.createBlock(s,{key:u,label:u,value:u},{default:n.withCtx(()=>[n.createElementVNode("span",qy,[n.createElementVNode("i",{class:n.normalizeClass(f.iconClass)},null,2)]),n.createTextVNode(" "+n.toDisplayString(u),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(f,u)=>n.withDirectives((n.openBlock(),n.createBlock(d,{key:u,entry:f.taxo,uuid:f.uuid,biologicalSex:f.biologicalSex,displayWarning:f.displayWarning,displayLatestChanges:f.displayLatestChanges,isLegacy:f.isLegacy,ref_for:!0,ref:u,enableOpenMapUI:o.enableOpenMapUI,openMapOptions:o.openMapOptions,disableUI:o.disableUI,onViewLatestMap:r.viewLatestMap,onResourceSelected:r.resourceSelected,onReady:r.FlatmapReady,onPanZoomCallback:r.panZoomCallback,annotationSidebar:o.annotationSidebar,onAnnotationOpen:r.onAnnotationOpen,onAnnotationClose:r.onAnnotationClose,onUpdateOfflineAnnotationEnabled:r.updateOfflineAnnotationEnabled,connectivityInfoSidebar:o.connectivityInfoSidebar,onConnectivityInfoOpen:r.onConnectivityInfoOpen,onConnectivityInfoClose:r.onConnectivityInfoClose,onConnectivityError:r.onConnectivityError,onNeuronConnectionFeatureClick:r.onNeuronConnectionFeatureClick,onOpenMap:t[1]||(t[1]=p=>e.$emit("open-map",p)),onPathwaySelectionChanged:r.onSelectionsDataChanged,minZoom:o.minZoom,helpMode:e.activeSpecies==u&&o.helpMode,helpModeActiveItem:o.helpModeActiveItem,helpModeDialog:o.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:r.onHelpModeLastItem,onShownTooltip:r.onTooltipShown,onShownMapTooltip:r.onMapTooltipShown,renderAtMounted:o.renderAtMounted,displayMinimap:o.displayMinimap,showStarInLegend:o.showStarInLegend,style:{height:"100%"},mapManager:e.mapManagerRef,flatmapAPI:o.flatmapAPI,sparcAPI:o.sparcAPI,showLocalSettings:o.showLocalSettings,showOpenMapButton:o.showOpenMapButton,showPathwayFilter:o.showPathwayFilter,externalLegends:o.externalLegends},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","annotationSidebar","onAnnotationOpen","onAnnotationClose","onUpdateOfflineAnnotationEnabled","connectivityInfoSidebar","onConnectivityInfoOpen","onConnectivityInfoClose","onConnectivityError","onNeuronConnectionFeatureClick","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","displayMinimap","showStarInLegend","mapManager","flatmapAPI","sparcAPI","showLocalSettings","showOpenMapButton","showPathwayFilter","externalLegends"])),[[n.vShow,e.activeSpecies==u]])),128))],512)}const Jy=tn(Ky,[["render",Gy],["__scopeId","data-v-d3d2df18"]]);H.FlatmapVuer=di,H.MultiFlatmapVuer=Jy,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
24
+ order by source desc`;ps();const r=sessionStorage.getItem("flatmap-knowledge"),i=sessionStorage.getItem("flatmap-knowledge-source");if(!r||i!==o){const l=(await t.queryKnowledge(a)).map(c=>JSON.parse(c));return sessionStorage.setItem("flatmap-knowledge",JSON.stringify(l)),sessionStorage.setItem("flatmap-knowledge-source",o),By(),l}return JSON.parse(r)}function By(){const o=new Date().getTime()+864e5;sessionStorage.setItem("flatmap-knowledge-expiry",o)}function xy(){["flatmap-knowledge","flatmap-knowledge-expiry","flatmap-knowledge-source"].forEach(t=>{sessionStorage.removeItem(t)})}function ps(){const e=sessionStorage.getItem("flatmap-knowledge-expiry");new Date().getTime()>e&&xy()}const qn=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Ny='<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow"><path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/><text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text></svg>';var hs={exports:{}};(function(e,t){(function(o,a){e.exports=a()})(typeof window<"u"?window:hm,function(){if(typeof window>"u")return null;var o=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),a=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(f){return o.setTimeout(f,20)},r=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||function(f){o.clearTimeout(f)};function i(f,u){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,h=0,m=f.length;if(g)for(;h<m;h++)u(f[h]);else u(f)}function s(f){if(!f.getBoundingClientRect)return{width:f.offsetWidth,height:f.offsetHeight};var u=f.getBoundingClientRect();return{width:Math.round(u.width),height:Math.round(u.height)}}function l(f,u){Object.keys(u).forEach(function(p){f.style[p]=u[p]})}var c=function(f,u){var p=0;function g(){var m=[];this.add=function(C){m.push(C)};var y,b;this.call=function(C){for(y=0,b=m.length;y<b;y++)m[y].call(this,C)},this.remove=function(C){var I=[];for(y=0,b=m.length;y<b;y++)m[y]!==C&&I.push(m[y]);m=I},this.length=function(){return m.length}}function h(m,y){if(m){if(m.resizedAttached){m.resizedAttached.add(y);return}m.resizedAttached=new g,m.resizedAttached.add(y),m.resizeSensor=document.createElement("div"),m.resizeSensor.dir="ltr",m.resizeSensor.className="resize-sensor";var b={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},C={position:"absolute",left:"0px",top:"0px",transition:"0s"};l(m.resizeSensor,b);var I=document.createElement("div");I.className="resize-sensor-expand",l(I,b);var k=document.createElement("div");l(k,C),I.appendChild(k);var v=document.createElement("div");v.className="resize-sensor-shrink",l(v,b);var S=document.createElement("div");l(S,C),l(S,{width:"200%",height:"200%"}),v.appendChild(S),m.resizeSensor.appendChild(I),m.resizeSensor.appendChild(v),m.appendChild(m.resizeSensor);var E=window.getComputedStyle(m),O=E?E.getPropertyValue("position"):null;O!=="absolute"&&O!=="relative"&&O!=="fixed"&&O!=="sticky"&&(m.style.position="relative");var B=!1,N=0,x=s(m),T=0,P=0,q=!0;p=0;var V=function(){var Z=m.offsetWidth,ce=m.offsetHeight;k.style.width=Z+10+"px",k.style.height=ce+10+"px",I.scrollLeft=Z+10,I.scrollTop=ce+10,v.scrollLeft=Z+10,v.scrollTop=ce+10},M=function(){if(q){var Z=m.offsetWidth===0&&m.offsetHeight===0;if(Z){p||(p=a(function(){p=0,M()}));return}else q=!1}V()};m.resizeSensor.resetSensor=M;var $=function(){N=0,B&&(T=x.width,P=x.height,m.resizedAttached&&m.resizedAttached.call(x))},pe=function(){x=s(m),B=x.width!==T||x.height!==P,B&&!N&&(N=a($)),M()},Y=function(Z,ce,Ee){Z.attachEvent?Z.attachEvent("on"+ce,Ee):Z.addEventListener(ce,Ee)};Y(I,"scroll",pe),Y(v,"scroll",pe),p=a(function(){p=0,M()})}}i(f,function(m){h(m,u)}),this.detach=function(m){p||(r(p),p=0),c.detach(f,m)},this.reset=function(){f.resizeSensor.resetSensor()}};if(c.reset=function(f){i(f,function(u){u.resizeSensor.resetSensor()})},c.detach=function(f,u){i(f,function(p){p&&(p.resizedAttached&&typeof u=="function"&&(p.resizedAttached.remove(u),p.resizedAttached.length())||p.resizeSensor&&(p.contains(p.resizeSensor)&&p.removeChild(p.resizeSensor),delete p.resizeSensor,delete p.resizedAttached))})},typeof MutationObserver<"u"){var d=new MutationObserver(function(f){for(var u in f)if(f.hasOwnProperty(u))for(var p=f[u].addedNodes,g=0;g<p.length;g++)p[g].resizeSensor&&c.reset(p[g])});document.addEventListener("DOMContentLoaded",function(f){d.observe(document.body,{childList:!0,subtree:!0})})}return c})})(hs);var _y=hs.exports;const Py=mm(_y),Ly=ba.defineStore("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}});function Vy(e){return{all:e=e||new Map,on:function(t,o){var a=e.get(t);a?a.push(o):e.set(t,[o])},off:function(t,o){var a=e.get(t);a&&(o?a.splice(a.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var a=e.get(t);a&&a.slice().map(function(r){r(o)}),(a=e.get("*"))&&a.slice().map(function(r){r(t,o)})}}}const fa=new Vy,Ry="cannot be found on the map.",Fy=e=>{let t={lng:0,lat:0},o;return e.type==="Polygon"?e.coordinates.length&&(o=e.coordinates[0]):o=e.coordinates,o&&(e.type!=="Point"?(o.map(a=>{t.lng+=parseFloat(a[0]),t.lat+=parseFloat(a[1])}),t.lng=t.lng/o.length,t.lat=t.lat/o.length):(t.lng+=parseFloat(o[0]),t.lat+=parseFloat(o[1]))),t},ms=(e,t)=>{const o=[];let a=e.organs?e.organs:e.ftus;const r=a?a.filter((i,s)=>a.findIndex(l=>l.label===i.label)===s):void 0;return r&&r.forEach(i=>{const s={label:i.label,models:i.models,key:`${t}.${i.label}`},l=ms(i,s.key);l.length>0&&(s.children=l),o.push(s)}),o},Dy={name:"FlatmapVuer",components:{Button:Xo,Col:tn,Loading:Yg,Radio:es,Icon:be,RadioGroup:ts,Row:en,Select:Hn,Dialog:mg,MapSvgIcon:ya.MapSvgIcon,MapSvgSpriteColor:ya.MapSvgSpriteColor,Tooltip:Pt.Tooltip,TreeControls:Pt.TreeControls,SelectionsGroup:us,SvgLegends:ky,ElIconWarningFilled:K.WarningFilled,ElIconArrowDown:K.ArrowDown,ElIconArrowLeft:K.ArrowLeft,DrawToolbar:Pt.DrawToolbar,FlatmapError:ia},beforeCreate:function(){this.setStateRequired=!1},setup(e){let t=n.inject("$annotator");return t||(t=n.markRaw(new Is.AnnotationService(`${e.flatmapAPI}annotator`)),n.provide("$annotator",t)),{annotator:t}},methods:{enableFeatureResetOnClick:function(e){this.mapImp&&this.mapImp.enableFeatureResetOnClick(e)},setVisibilityFilter:function(e){this.mapImp&&(e?this.mapImp.setVisibilityFilter(e):this.mapImp.clearVisibilityFilter())},manualAbortedOnClose:function(){this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEventCallback({},{type:"aborted"}),this.initialiseDrawing()},initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent={}},cancelDrawnFeature:function(){this.isValidDrawnCreated&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[{...this.drawnCreatedEvent.feature,resourceId:this.serverURL}],this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let a={feature:t?this.mapImp.featureProperties(t):{feature:this.existDrawnFeatures.find(r=>r.id===e.trim())}};this.checkAndCreatePopups([a],!1)}else this.closeTooltip()},confirmDrawnFeature:function(){this.isValidDrawnCreated&&(this.checkAndCreatePopups([this.drawnCreatedEvent],!1),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry[0].feature.connection=this.connectionEntry),this.initialiseDrawing())},toolbarEvent:function(e,t){if(!this.isValidDrawnCreated){if(this.manualAbortedOnClose(),this.doubleClickedFeature=!1,this.changeAnnotationDrawMode({mode:"simple_select"}),e==="mode")this.activeDrawMode=t;else if(e==="tool"){if(this.cancelDrawnFeature(),t){const o=t.replace(/[A-Z]/g,a=>`_${a.toLowerCase()}`);this.changeAnnotationDrawMode({mode:`draw${o}`})}this.activeDrawTool=t}}},annotationDrawModeEvent:function(e){this.activeDrawMode==="Edit"?this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1):this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((o,a)=>a!==0&&a!==e.length-1)};this.annotationEntry[0].body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.mapImp.clearAnnotationFeature()},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&this.annotationEntry.length>0&&["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry[0]),this.annotationEntry=[])},commitAnnotationEvent:function(e){this.mapImp&&(this.offlineAnnotationEnabled&&(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],this.offlineAnnotations.push(e),this.annotationEntry[0].type==="deleted"&&(this.offlineAnnotations=this.offlineAnnotations.filter(t=>t.resource!==this.serverURL||t.item.id!==e.item.id)),sessionStorage.setItem("anonymous-annotation",JSON.stringify(this.offlineAnnotations))),["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry[0]),e.body.comment==="Position Updated"?this.annotationEntry[0].positionUpdated=!1:this.annotationEntry[0].type==="deleted"&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[]),this.addAnnotationFeature()))},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let o;return this.offlineAnnotationEnabled?(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(a=>a.resource===this.serverURL).map(a=>a.item.id)):(o=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t),"resource"in o&&(o=o.itemIds)),o},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){let o;if(this.offlineAnnotationEnabled)this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(a=>a.feature&&a.resource===this.serverURL).map(a=>a.feature);else{const a=await this.fetchAnnotatedItemIds(e,t);o=await this.annotator.drawnFeatures(this.userToken,this.serverURL,a),"resource"in o&&(o=o.features)}return o},addAnnotationFeature:async function(){if(this.mapImp){this.featureAnnotationSubmitted||(this.clearAnnotationFeature(),this.loading=!0);const e=this.annotationFrom==="Anyone"?void 0:this.authorisedUser.orcid?this.authorisedUser.orcid:"0000-0000-0000-0000",t=this.annotationFrom==="Anyone"?void 0:this.annotationFrom==="Me",o=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=o,this.loading=!1,!this.featureAnnotationSubmitted)for(const a of o)this.mapImp.addAnnotationFeature(a)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setAnnotationFrom:function(e){this.annotationFrom=e,this.mapImp&&(this.manualAbortedOnClose(),this.addAnnotationFeature())},emitOfflineAnnotationUpdate:function(){this.$emit("update-offline-annotation-enabled",this.offlineAnnotationEnabled)},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(o=>{const a={colour:o.colour,enabled:o.enabled,label:o.id,key:o.id},r=ms(o,a.key);r.length>0&&(a.children=r),t.children.push(a)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,la(this.mapImp,e).then(o=>{o.length&&o.forEach(a=>{let r=!0;t&&(r=t.checkAll?!0:t.checked.includes(a.taxon)),this.taxonConnectivity.push({...a,enabled:r}),this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(a.taxon,r)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:e,outlined:this.outlinesRadio})},setOutlines:function(e){this.outlinesRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:this.colourRadio,outlined:e})},setInitMapState:function(){if(this.mapImp){const e=this.mapImp.map,t=this.mapImp.options.bounds,o=[[t[0],t[1]],[t[2],t[3]]];e.setMaxBounds(null),e.setRenderWorldCopies(!1),this.initMapState=n.markRaw({initBounds:o})}},resetView:function(){if(this.mapImp){const e=this.mapImp.map,{initBounds:t}=this.initMapState;e.resetNorthPitch({animate:!1}),t&&e.fitBounds(t,{animate:!1}),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset()}},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},zoomToFeatures:function(e){this.mapImp&&this.mapImp.zoomToFeatures(e)},retrieveConnectedPaths:async function(e,t={}){var o,a,r,i,s;if(this.mapImp){let l=[],c=(o=t.target)!=null&&o.length?t.target:[];const d=[...this.mapImp.pathModelNodes(e)],f=await this.mapImp.queryPathsForFeatures(e);if(d.length){if(!c.length){const u=(a=t.type)!=null&&a.length?t.type:["all"],p=await this.flatmapQueries.queryForConnectivityNew(this.mapImp,e[0]),g=(r=p==null?void 0:p.ids)==null?void 0:r.dendrites.flat(1/0),h=(i=p==null?void 0:p.ids)==null?void 0:i.components.flat(1/0),m=(s=p==null?void 0:p.ids)==null?void 0:s.axons.flat(1/0);let y=[];u.includes("origins")&&y.push(...g),u.includes("components")&&y.push(...h),u.includes("destinations")&&y.push(...m),u.includes("all")&&y.push(...g,...h,...m),c=[...new Set(y)]}d.forEach(u=>{this.mapImp.nodePathModels(u).forEach(g=>{const m=this.mapImp.pathModelNodes(g).map(b=>this.mapImp.featureProperties(b).models);c.filter(b=>m.includes(b)).length&&!l.includes(g)&&l.push(g)})})}else f.length&&(c.length?f.forEach(u=>{const g=this.mapImp.pathModelNodes(u).map(m=>this.mapImp.featureProperties(m).models);c.filter(m=>g.includes(m)).length&&!l.includes(u)&&l.push(u)}):l=f);return l=[...new Set([...l,...e])],l}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;const o={"tile-layer":"pathways"},a={NOT:o};e.with&&!e.without?t={OR:[a,{AND:[o,{HAS:"alert"}]}]}:!e.with&&e.without?t={OR:[a,{AND:[o,{NOT:{HAS:"alert"}}]}]}:!e.with&&!e.without&&(t=a),this.setVisibilityFilter(t)},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;const o={"tile-layer":"pathways"},a={NOT:o};if(e.key==="alert"||e.key==="withoutAlert"){const r=e.key==="alert"?{HAS:"alert"}:{NOT:{HAS:"alert"}};t={OR:[a,{AND:[o,r]}]}}this.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){clearTimeout(this.taxonLeaveDelay);let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.taxonLeaveDelay=setTimeout(()=>{this.mapImp.unselectGeoJSONFeatures(),e.selections.forEach(t=>{let o=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,o)})},1e3)},checkAllTaxons:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.keys,e.value)},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent(),this.annotationEntry=[];else if(t.type==="modeChanged")t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0),this.annotationSidebar&&t.feature.mode==="simple_select"&&this.activeDrawMode==="Deleted"&&this.annotationEventCallback({},{type:"aborted"});else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool)if(this.connectionEntry={},this.selectedDrawnFeature){const o=this.existDrawnFeatures.find(a=>a.id===this.selectedDrawnFeature.id);o&&o.connection&&(this.connectionEntry=o.connection),this.annotationDrawModeEvent(e)}else this.annotationSidebar&&this.previousEditEvent.type==="updated"&&(this.annotationEntry=[{...this.previousEditEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.previousEditEvent={}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const o=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=o}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups([e])}t.type==="updated"&&(this.previousEditEvent=t),t.type==="deleted"?this.previousDeletedEvent=t:this.previousDeletedEvent={}},getTaxons:function(e){let t;return e.taxons&&(typeof e.taxons!="object"?t=JSON.parse(e.taxons):t=e.taxons),t},eventCallback:function(){return(e,t,...o)=>{if(e==="annotation"){const a={feature:t,userData:o,eventType:e};this.annotationEventCallback(a,t)}else if(e==="pan-zoom")this.$emit("pan-zoom-callback",t);else{const a=t.label,r=[t.models],i=this.entry,s=this.biologicalSex,l=t.alert,c=this.getTaxons(t);let d=[{dataset:t.dataset,biologicalSex:s,taxonomy:i,resource:r,label:a,feature:t,userData:o,eventType:e,provenanceTaxonomy:c,alert:l}];if(e==="click"){const f=!t[0];if(!f){d=[];const p=t.mapUUID,g=new Set;for(let[h,m]of Object.entries(t))if(h!=="mapUUID"){const y=m.featureId,b=m.label,C=[m.models],I=this.getTaxons(m);if(g.has(y))continue;g.add(y),d.push({dataset:m.dataset,biologicalSex:s,taxonomy:i,resource:C,label:b,feature:m,userData:o,eventType:e,provenanceTaxonomy:I,alert:m.alert,mapUUID:p})}}const u=f?t:t[0];if(this.setConnectivityDataSource(this.viewingMode,u),this.viewingMode!=="Neuron Connection"){if(this.currentActive=u.models?u.models:"",this.activeDrawTool&&!this.isValidDrawnCreated){const p=u.featureId||this.existDrawnFeatures.find(g=>g.id===u.id);if(this.activeDrawTool==="LineString"&&p){const g=u.featureId?u.featureId:u.id,h=u.label?u.label:`Feature ${u.id}`;this.connectionEntry[` ${g}`]=Object.assign({label:h},Object.fromEntries(Object.entries(u).filter(([m])=>["featureId","models"].includes(m)).map(([m,y])=>[m==="featureId"?"id":m,y])))}}}t&&t.type!=="marker"&&!this.activeDrawTool&&this.checkAndCreatePopups(d)}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");this.$emit("resource-selected",d)}}},setConnectivityDataSource:function(e,t){e==="Exploration"?this.connectivityDataSource=t.models.startsWith("ilxtr:")?t.models:"":this.connectivityDataSource=t.featureId||t.id},changeViewingMode:function(e){e&&(this.viewingMode=e),this.manualAbortedOnClose()},removeActiveTooltips:function(){this.mapImp&&this.mapImp.removePopup(),this.$el.querySelectorAll(".flatmap-tooltip-popup").forEach(t=>t.remove())},createTooltipForConnectivity:function(e,t){const o=document.createElement("div");o.classList.add("flatmap-feature-label"),e.forEach((a,r)=>{const{label:i}=a;if(o.append(qn(i)),r+1<e.length){const s=document.createElement("hr");o.appendChild(s)}}),this.mapImp.showPopup(t,o,{className:"custom-popup flatmap-tooltip-popup",positionAtLastClick:!1,preserveSelection:!0})},showConnectivityTooltips:function(e){const{connectivityInfo:t,data:o}=e,a=[],r=[],i=[],s=[];if(t&&t.featureId&&a.push(...t.featureId),this.mapImp){if(o.forEach(p=>{const g=this.mapImp.search(p.id);if(g!=null&&g.results.length){const h=g==null?void 0:g.results[0].featureId;i.push({featureId:h,...p})}else s.push(p)}),i.length){let p=i[0].featureId;this.mapImp.annotations.forEach(g=>{const h=g["anatomical-nodes"];if(h){const m=h.join("");i.every(b=>m.indexOf(b.id)!==-1)&&(p=g.featureId,r.push(p))}}),this.createTooltipForConnectivity(i,p)}else this.removeActiveTooltips();this.emitConnectivityError(s);const l=a.reduce((p,g)=>{const h=this.mapImp.pathways.paths[g],m=h?h.connectivity:null;if(m){const y=m.flat(1/0);p.push(...y)}return p},[]),c=[...new Set(l)],d=[...a,...c],u=[...this.mapImp.modelFeatureIdList(d),...r];this.mapImp.selectGeoJSONFeatures(u)}},showConnectivitiesByReference:function(e){this.searchConnectivitiesByReference(e).then(t=>{this.mapImp.selectFeatures(t)})},searchConnectivitiesByReference:async function(e){const t=sessionStorage.getItem("flatmap-knowledge");let o=[];return t?o=await Ty(e):o=await Ay(this.mapImp,e,this.flatmapQueries),o},getFlatmapKnowledge:function(){let e=[];const t=sessionStorage.getItem("flatmap-knowledge");return t&&(e=JSON.parse(t)),e},emitConnectivityError:function(e){this.$emit("connectivity-error",{data:{errorData:e,errorMessage:Ry}})},checkConnectivityTooltipEntry:function(e){return e!=null&&e.length?e.find(t=>{var o,a;return((o=t==null?void 0:t.destinations)==null?void 0:o.length)||((a=t==null?void 0:t.components)==null?void 0:a.length)})!==void 0:!1},changeConnectivitySource:async function(e){const{entry:t,connectivitySource:o}=e;t.mapId===this.mapImp.id&&(await this.flatmapQueries.queryForConnectivityNew(this.mapImp,t.featureId[0],o),this.tooltipEntry=this.tooltipEntry.map(a=>a.featureId[0]===t.featureId[0]?this.flatmapQueries.updateTooltipData(a):a),this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry))},checkAndCreatePopups:async function(e,t=!0){var o;if(this.viewingMode==="Annotation"){const a=e.filter(r=>r.feature).map(r=>r.feature);if(a.length>0)if(this.annotationSidebar&&this.previousDeletedEvent.type==="deleted"&&(this.annotationEntry=[{...this.previousDeletedEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.annotationEntry=[],a.forEach(r=>{var i;this.annotationEntry.push({...r,resourceId:this.serverURL,featureId:r.featureId?r.featureId:(i=r.feature)==null?void 0:i.id,offline:this.offlineAnnotationEnabled})}),a[0].feature)this.activeDrawTool||this.activeDrawMode||this.isValidDrawnCreated?(this.featureAnnotationSubmitted=!1,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(a[0].feature.id,Fy(a[0].feature.geometry))):this.rollbackAnnotationEvent();else{const r=this.annotationEntry.filter(i=>i.featureId&&i.models).map(i=>i.models);r.length>0&&this.displayTooltip(r)}else this.annotation={}}else if(this.viewingMode==="Neuron Connection"&&t){const a=e.map(i=>i.resource[0]);if(a.find(i=>!i.startsWith("ilxtr:"))){const i=Array.isArray(a)?[...a]:[a];i.length===1&&i.push([]);const s=(o=e[0].feature)==null?void 0:o.featureId,l=this.mapImp.annotations.get(s),c=l==null?void 0:l["anatomical-nodes"],d=l==null?void 0:l.models;let f,u=i;const p=l==null?void 0:l.models;c!=null&&c.length&&(f=c.find(S=>JSON.parse(S)[0]===d)),f?u=JSON.parse(f):p&&(u=[p,[]]);const g=this.mapImp.knowledgeSource,h=u.flat(1/0),m=[...new Set(h)],b=(await Pt.fetchLabels(this.flatmapAPI,m)).reduce((S,E)=>{const O=E[0],B=JSON.parse(E[1]);return S.push({id:O,label:B.label,source:B.source}),S},[]);b.sort((S,E)=>S.id===E.id?S.source===g&&E.source!==g?-1:S.source!==g&&E.source===g?1:0:S.id.localeCompare(E.id));const C=[];for(let S=0;S<m.length;S++){const E=b.find(O=>O.id===m[S]);E&&C.push(E.label)}const I=qn(C.join(", ")),k={facet:JSON.stringify(u),facetPropPath:`flatmap.connectivity.source.${this.connectionType.toLowerCase()}`,tagLabel:I,term:this.connectionType};this.connectivityFilters.some(S=>S.facet===k.facet&&S.facetPropPath===k.facetPropPath)||this.connectivityFilters.push(k),this.$emit("neuron-connection-feature-click",{filters:this.connectivityFilters,search:""})}else{const i=a.join();this.connectionType.toLowerCase()==="all"&&this.$emit("neuron-connection-feature-click",{filters:[],search:i})}}else{My(this.mapImp,this.flatmapQueries);let a=[];if(this.tooltipEntry=e.filter(r=>r.resource[0]in this.mapImp.pathways.paths).map(r=>({title:r.label,featureId:r.resource,ready:!1})),this.tooltipEntry.length){this.$emit("connectivity-info-open",this.tooltipEntry);for(let i=0;i<e.length;i++)a.push(await this.getKnowledgeTooltip(e[i]));this.tooltipEntry=await Promise.all(a);const r=this.tooltipEntry.map(i=>i.featureId[0]);r.length>0&&this.displayTooltip(r)}}},updateConnectivityFilters:function(e){e.length&&(this.connectivityFilters=e.filter(t=>t.facet.toLowerCase()!=="show all"))},resetConnectivityfilters:function(e){e.length?this.connectivityFilters=this.connectivityFilters.filter(t=>e.some(o=>o.facetPropPath===t.facetPropPath&&o.facet!==t.facet)):this.connectivityFilters=[]},getKnowledgeTooltip:async function(e){const t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(this.mapImp,e);let o=await this.flatmapQueries.createTooltipData(this.mapImp,e);return(t&&t[0]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(o.featuresAlert=e.alert,o.knowledgeSource=da(this.mapImp),o.mapId=this.mapImp.mapMetadata.id,o.mapuuid=this.mapImp.mapMetadata.uuid),o.ready=!0,o},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{this.$emit("connectivity-info-close"),e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.$el.style.display="none"),document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},showPopup:function(e,t,o){let a=o;this.mapImp&&(a?a.className||(a.className="custom-popup"):a={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,a))},showMarkerPopup:function(e,t,o){this.mapImp&&this.mapImp.showMarkerPopup(e,t,o)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,o=t-1,a=this.hoverVisibilities[this.helpModeActiveIndex];if(a){const r=a==null?void 0:a.refs,i=a==null?void 0:a.ref,s=this.$refs[r||i];if(s){const{parentElement:l,nextElementSibling:c}=s.$el,d=f=>f&&(f.classList.contains("pathway-container")||f.classList.contains("pathway-location"));(d(l)||d(c))&&(this.requiresDrawer?this.drawerOpen=!0:this.helpModeActiveIndex+=1)}else this.helpModeActiveIndex+=1}e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=o),e&&this.helpModeActiveIndex>=o&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(r=>{r.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(r=>{r.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(r=>{r.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){let o,a={className:"flatmapvuer-popover"};if(t)o=e,a.annotationFeatureGeometry=t,this.annotationEntry.length&&(a.annotationEvent={type:this.annotationEntry[0].type,feature:this.annotationEntry[0].feature});else{const r=Array.isArray(e)?e[0]:e;r&&(o=this.mapImp.modelFeatureIds(r)[0]),this.activeDrawTool||(a.positionAtLastClick=!0)}this.connectivityInfoSidebar&&this.tooltipEntry.length&&this.viewingMode!=="Annotation"&&this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry),this.annotationSidebar&&this.viewingMode==="Annotation"&&this.$emit("annotation-open",{annotationEntry:this.annotationEntry,commitCallback:this.commitAnnotationEvent}),o&&!this.disableUI&&(this.viewingMode==="Annotation"&&!this.annotationSidebar||this.viewingMode==="Exploration"&&!this.connectivityInfoSidebar)&&(this.tooltipDisplay=!0,this.$nextTick(()=>{this.mapImp.showPopup(o,this.$refs.tooltip.$el,a),this.popUpCssHacks()}))},moveMap:function(e,t={}){if(this.mapImp){const{offsetX:o=0,offsetY:a=0,zoom:r=4}=t,i=this.mapImp.map,s=this.mapImp.bounds.toArray();this.mapImp.zoomToFeatures(e,{noZoomIn:!0}),this.showPathwaysDrawer(!1),s!=null&&s.length&&setTimeout(()=>{i.fitBounds(s,{offset:[o,a],zoom:r,animate:!0})})}},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let o of t.values())o.label&&e.push(o.label);return Array.from(new Set(e))}},getVisibilityState:function(e){if(["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{let a=this.$refs[o];a&&(e[o]=a.getState())}),this.$refs.treeControls){const o=this.$refs.treeControls.$refs.regionTree.getCheckedKeys();e.systemsSelection=o.filter(a=>!a.includes("."))}},setVisibilityState:function(e){["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{const a=e[o];if(a){const r=this.$refs[o];r&&r.setState(a)}}),"systemsSelection"in e&&this.$refs.treeControls&&(this.$refs.treeControls.$refs.regionTree.setCheckedKeys(e.systemsSelection),this.systems[0].children.forEach(o=>{this.mapImp.enableSystem(o.key,e.systemsSelection.includes(o.key))}))},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e.viewingMode=this.viewingMode,e.searchTerm=this.searchTerm,e.flightPath3D=this.flightPath3DRadio,e.colour=this.colourRadio,e.outlines=this.outlinesRadio,e.background=this.currentBackground,this.offlineAnnotationEnabled&&(e.offlineAnnotations=sessionStorage.getItem("anonymous-annotation")),this.getVisibilityState(e),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?this.restoreMapState(e):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){if(e){if(e.viewport&&this.mapImp.setState(e.viewport),e.offlineAnnotations&&sessionStorage.setItem("anonymous-annotation",e.offlineAnnotations),e.viewingMode&&this.changeViewingMode(e.viewingMode),"flightPath3D"in e&&this.setFlightPath3D(e.flightPath3D),"colour"in e&&this.setColour(e.colour),"outlines"in e&&this.setOutlines(e.outlines),e.background&&this.backgroundChangeCallback(e.background),e.searchTerm){const t=e.searchTerm;this.searchAndShowResult(t,!0,!0)}this.setVisibilityState(e)}},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0,this.flatmapError=null;let t=!1;this.displayMinimap&&(t={position:"top-right"});let o={taxon:this.entry};this.uuid&&(o.uuid=this.uuid),e?(e.uuid?o={uuid:e.uuid}:e.entry&&(o.taxon=e.entry),e.biologicalSex?o.biologicalSex=e.biologicalSex:o.taxon==="NCBITaxon:9606"&&(o.biologicalSex="PATO:0000384")):this.biologicalSex&&(o.biologicalSex=this.biologicalSex),this.mapManagerRef.loadMap(o,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:t,container:this.$refs.display}).then(r=>{this.mapImp=r,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let i=this.mapImp.details.version;this.setFlightPathInfo(i);const s=this._stateToBeSet?this._stateToBeSet:e;this.onFlatmapReady(s),this.$nextTick(()=>this.restoreMapState(s))}).catch(r=>{var i,s;if(console.error("Flatmap loading error:",r),this.flatmapError={},r.message&&r.message.indexOf("Unknown map")!==-1?(this.flatmapError.title="Unknown Map!",this.flatmapError.messages=Object.keys(o).map(l=>`${l==="uuid"?"UUID":qn(l)}: ${o[l]}`)):(this.flatmapError.title="Error Loading Map!",this.flatmapError.messages=[r.message?r.message:r.toString(),"Please try again later or contact support if the problem persists."]),(s=(i=this.$parent)==null?void 0:i.$refs)!=null&&s.multiContainer){const l=this.$parent;this.flatmapError.button={text:"Load Default Map",callback:()=>{const c=l.initial;l.setSpecies(c,void 0,3)}}}this.loading=!1})}else e&&(this._stateToBeSet={...e},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),o=parseInt(t.paddingTop)+parseInt(t.paddingBottom),a=e.clientHeight-o;this.pathwaysMaxHeight=a-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&(this.mapImp.resize(),this.showMinimap(this.displayMinimap))}catch{console.error("Map resize error")}},getFilterSources:function(){const e=["kind","taxons"];let t=new Set,o=new Set,a=new Map;for(const i of this.mapImp.annotations.values())if(i.source){"alert"in i?t.add(i.source):o.add(i.source);for(const[s,l]of Object.entries(i))if(e.includes(s)){a.has(s)||a.set(s,new Map);const c=a.get(s),d=f=>{const u=f;c.has(u)||c.set(u,new Set),c.get(u).add(`${i.source}`)};Array.isArray(l)?l.forEach(d):d(l)}}let r={alert:{with:[...t],without:[...o]}};for(const[i,s]of a.entries()){r[i]={};for(const[l,c]of s.entries())r[i][l]=[...c.values()]}return r},getFilterOptions:async function(e,t){const o=t||this.getFlatmapKnowledge(),a=this.pathways;return await Pt.getFlatmapFilterOptions(this.flatmapAPI,e,o,a)},onFlatmapReady:function(e){var t;this.sensor=n.markRaw(new Py(this.$refs.display,this.mapResize)),((t=this.mapImp.options)==null?void 0:t.style)==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.pathways=this.pathways.filter(o=>o.enabled&&o.type!=="other"),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.mapImp.taxonIdentifiers,e?e.taxonSelection:void 0),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.flatmapLegends=this.mapImp.flatmapLegend,this.addResizeButtonToMinimap(),this.loading=!1,this.computePathControlsMaximumHeight(),this.mapResize(),this.handleMapClick(),this.setInitMapState(),this.$emit("ready",this)},handleMapClick:function(){const e=this.mapImp.map;e&&e.on("click",t=>{this.connectivityDataSource||this.$emit("connectivity-info-close"),this.connectivityDataSource=""})},showMinimap:function(e){this.mapImp&&this.mapImp.showMinimap(e)},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t,o=!0){var a;if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),this.viewingMode==="Exploration"?this.$emit("connectivity-info-close"):this.viewingMode==="Annotation"&&this.manualAbortedOnClose(),this.searchTerm="",!0;{const r=this.mapImp.search(e);if((a=r==null?void 0:r.results)!=null&&a.length){if(this.mapImp.showSearchResults(r),t){let i;for(let s=0;s<r.results.length;s++){i=r.results[s].featureId;const l=this.mapImp.annotation(i);if(i&&(l!=null&&l.label))break}if(i){const s=this.mapImp.featureProperties(i),l={resource:[s.models],feature:s,label:s.label,provenanceTaxonomy:s.taxons,alert:s.alert};this.checkAndCreatePopups([l],o),this.mapImp.showPopup(i,qn(s.label),{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}}return this.searchTerm=e,!0}else this.mapImp.clearSearchResults()}}return!1},highlightConnectedPaths:function(e){if(e.length){const t=e.filter(a=>a in this.mapImp.pathways.paths),o=this.mapImp.modelFeatureIdList(t);this.mapImp.selectGeoJSONFeatures(o)}},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]},onActionClick:function(e){fa.emit("onActionClick",e)},setConnectionType:function(e){this.connectionType=e}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:1},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,userApiKey:this.userToken}},data:function(){return{flatmapError:null,sensor:null,mapManagerRef:void 0,flatmapQueries:void 0,annotationEntry:[],tooltipDisplay:!1,serverURL:void 0,layers:[],pathways:[],initMapState:n.markRaw({}),sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,tooltipWait:n.markRaw([]),hoverVisibilities:[{value:!1,ref:"markerPopover"},{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"toolbarPopover",ref:"editPopover"},{value:!1,refs:"toolbarPopover",ref:"deletePopover"},{value:!1,refs:"toolbarPopover",ref:"pointPopover"},{value:!1,refs:"toolbarPopover",ref:"lineStringPopover"},{value:!1,refs:"toolbarPopover",ref:"polygonPopover"},{value:!1,refs:"toolbarPopover",ref:"connectionPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:Ny,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:Ey,tooltipEntry:[],connectivityDataSource:"",connectivityTooltipVisible:!1,drawerOpen:!1,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingMode:"Exploration",viewingModes:{Exploration:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources","Neuron Connection":"Discover Neuron connections by selecting a neuron and viewing its associated network connections",Annotation:["View feature annotations","Add, comment on and view feature annotations"]},connectionType:"All",offlineAnnotationEnabled:!1,offlineAnnotations:[],annotationFrom:"Anyone",annotatedSource:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,toolbarOptions:["Edit","Delete","Point","LineString","Polygon","Connection"],annotator:void 0,authorisedUser:void 0,activeDrawMode:void 0,activeDrawTool:void 0,featureAnnotationSubmitted:!1,drawnCreatedEvent:{},previousEditEvent:{},previousDeletedEvent:{},connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,containsAlert:!1,alertOptions:[{label:"Display Path With Alerts",key:"alert",enabled:!0},{label:"Display Path Without Alerts",key:"withoutAlert",enabled:!0}],mapFilters:n.markRaw({alert:{with:!0,without:!0}}),searchTerm:"",taxonLeaveDelay:void 0,connectivityFilters:[],flatmapLegends:[]}},computed:{...ba.mapState(Ly,["userToken"]),isValidDrawnCreated:function(){return Object.keys(this.drawnCreatedEvent).length>0},requiresDrawer:function(){var e,t,o,a;return this.loading?(this.drawerOpen=!1,!1):((e=this.systems)==null?void 0:e.length)>0||this.containsAlert&&this.alertOptions||((t=this.pathways)==null?void 0:t.length)>0||((o=this.taxonConnectivity)==null?void 0:o.length)>0||((a=this.legendEntry)==null?void 0:a.length)>0?(this.drawerOpen=!0,!0):(this.drawerOpen=!1,!1)},modeDescription:function(){let e=this.viewingModes[this.viewingMode];return this.viewingMode==="Annotation"?this.authorisedUser?e[1]:e[0]:e},legendEntry:function(){return[...this.flatmapLegends,...this.externalLegends]}},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},state:{handler:function(e,t){e!==t&&(this.mapManagerRef?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){this.clearAnnotationFeature(),e==="Annotation"&&(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&t.canUpdate?(this.authorisedUser=t,this.offlineAnnotationEnabled=!1):(this.authorisedUser=void 0,this.offlineAnnotationEnabled=!0),this.emitOfflineAnnotationUpdate(),this.setFeatureAnnotated(),this.addAnnotationFeature(),this.loading=!1}))},disableUI:function(e){e&&this.closeTooltip()},activeDrawTool:function(e){let t=[],o={x:null,y:null};const a=this.$el.querySelector(".maplibregl-canvas"),r=()=>{a.removeEventListener("keydown",i),a.removeEventListener("click",s)},i=l=>{if(!["Escape","Enter"].includes(l.key))return;const c=e==="Point"&&t.length===1||e==="LineString"&&t.length>=2||e==="Polygon"&&t.length>=3;(l.key==="Escape"||l.key==="Enter"&&!c)&&(this.activeDrawTool=void 0),r()},s=l=>{const c=a.getBoundingClientRect(),d=l.clientX-c.left,f=l.clientY-c.top;if(Math.sqrt((d-o.x)**2+(f-o.y)**2)<8){this.isValidDrawnCreated||(this.activeDrawTool=void 0),r();return}o={x:d,y:f},t.push(o)};e&&(r(),a.addEventListener("keydown",i),a.addEventListener("click",s))}},created:function(){this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new wa.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef))},mounted:function(){this.openMapRef=n.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=n.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait.length=this.hoverVisibilities.length,this.flatmapQueries=n.markRaw(new Iy),this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap(),ps()}},$y={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},zy={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},jy={style:{height:"100%",width:"100%"},ref:"display",class:"flatmap-display"},Hy={class:"beta-popovers"},Ky={key:2,class:"warning-text"},Uy={class:"bottom-right-control"},Wy=["innerHTML"],qy={style:{"margin-bottom":"2px"}},Gy={key:0,class:"viewing-mode-title"},Jy=["onClick"],Yy=["onClick"];function Zy(e,t,o,a,r,i){const s=n.resolveComponent("map-svg-sprite-color"),l=ia,c=K.WarningFilled,d=be,f=Kn,u=K.ArrowDown,p=n.resolveComponent("DrawToolbar"),g=n.resolveComponent("map-svg-icon"),h=fy,m=n.resolveComponent("tree-controls"),y=us,b=K.ArrowLeft,C=Xo,I=en,k=tn,v=oa,S=Hn,E=es,O=ts,B=n.resolveComponent("Tooltip"),N=cs,x=ra;return n.withDirectives((n.openBlock(),n.createElementBlock("div",$y,[n.createVNode(s),n.createElementVNode("div",zy,[n.createElementVNode("div",jy,null,512),e.flatmapError?(n.openBlock(),n.createBlock(l,{key:0,flatmapError:e.flatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",Hy,[n.createElementVNode("div",null,[n.createVNode(f,{placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[7].value,ref:"warningPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"warning-icon",onMouseover:t[7]||(t[7]=T=>i.showTooltip(7)),onMouseout:t[8]||(t[8]=T=>i.hideTooltip(7))},[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>[n.createVNode(c)]),_:1})):n.createCommentVNode("",!0),o.isLegacy?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[33]||(t[33]=n.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),n.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...T)=>i.viewLatestMap&&i.viewLatestMap(...T))}," Click here for the latest map ")],64)):o.displayWarning?(n.openBlock(),n.createElementBlock("span",Ky,"Beta")):n.createCommentVNode("",!0)],32)]),default:n.withCtx(()=>[o.isLegacy?(n.openBlock(),n.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=T=>i.showTooltip(7)),onMouseout:t[1]||(t[1]=T=>i.hideTooltip(7))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(n.openBlock(),n.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=T=>i.showTooltip(7)),onMouseout:t[3]||(t[3]=T=>i.hideTooltip(7))},t[31]||(t[31]=[n.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". ")]),32)):(n.openBlock(),n.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=T=>i.showTooltip(7)),onMouseout:t[5]||(t[5]=T=>i.hideTooltip(7))},t[32]||(t[32]=[n.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")]),32))]),_:1},8,["visible"])]),o.displayLatestChanges?(n.openBlock(),n.createBlock(f,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[8].value,ref:"whatsNewPopover"},{reference:n.withCtx(()=>[o.displayLatestChanges?(n.openBlock(),n.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=T=>i.showTooltip(8)),onMouseout:t[10]||(t[10]=T=>i.hideTooltip(8))},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(c)]),_:1}),t[34]||(t[34]=n.createElementVNode("span",{class:"warning-text"},"What's new?",-1))],32)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>t[35]||(t[35]=[n.createElementVNode("b",null,"Connectivity References",-1),n.createElementVNode("p",null," Connectivity references have been improved and available in various formats. ",-1),n.createElementVNode("b",null,"Improved state storing",-1),n.createElementVNode("p",null," Current selection and visibility filters are now stored when creating a permalink. ",-1)])),_:1},8,["visible"])):n.createCommentVNode("",!0)],512),[[n.vShow,!o.disableUI]]),n.withDirectives(n.createVNode(d,{class:n.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:i.closeMinimap},{default:n.withCtx(()=>[n.createVNode(u)]),_:1},8,["class","onClick"]),[[n.vShow,e.minimapResizeShow]]),e.viewingMode==="Annotation"&&(e.authorisedUser||e.offlineAnnotationEnabled)&&!o.disableUI?(n.openBlock(),n.createBlock(p,{key:1,mapCanvas:{containerHTML:this.$el,class:".maplibregl-canvas"},toolbarOptions:e.toolbarOptions,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,newlyDrawnEntry:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,hoverVisibilities:e.hoverVisibilities,onClickToolbar:i.toolbarEvent,onFeatureTooltip:i.connectedFeatureTooltip,onConfirmDrawn:i.confirmDrawnFeature,onCancelDrawn:i.cancelDrawnFeature,onShowTooltip:i.showTooltip,onHideTooltip:i.hideTooltip,ref:"toolbarPopover"},null,8,["mapCanvas","toolbarOptions","activeDrawTool","activeDrawMode","newlyDrawnEntry","connectionEntry","hoverVisibilities","onClickToolbar","onFeatureTooltip","onConfirmDrawn","onCancelDrawn","onShowTooltip","onHideTooltip"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",Uy,[n.createVNode(f,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomInPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[11]||(t[11]=T=>i.zoomIn()),onMouseover:t[12]||(t[12]=T=>i.showTooltip(1)),onMouseout:t[13]||(t[13]=T=>i.hideTooltip(1))},[n.createVNode(g,{class:"icon-button zoomIn",icon:"zoomIn"})],32)]),_:1},8,["visible"]),n.createVNode(f,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value,ref:"zoomOutPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[14]||(t[14]=T=>i.zoomOut()),onMouseover:t[15]||(t[15]=T=>i.showTooltip(2)),onMouseout:t[16]||(t[16]=T=>i.hideTooltip(2))},[n.createVNode(g,{class:"icon-button zoomOut",icon:"zoomOut"})],32)]),_:1},8,["visible"]),n.createVNode(f,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[3].value,ref:"zoomFitPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[17]||(t[17]=T=>i.resetView()),onMouseover:t[18]||(t[18]=T=>i.showTooltip(3)),onMouseout:t[19]||(t[19]=T=>i.hideTooltip(3))},[n.createVNode(g,{class:"icon-button fitWindow",icon:"fitWindow"})],32)]),default:n.withCtx(()=>[t[36]||(t[36]=n.createElementVNode("div",null,[n.createTextVNode(" Fit to "),n.createElementVNode("br"),n.createTextVNode(" window ")],-1))]),_:1},8,["visible"])],512),[[n.vShow,!o.disableUI]]),n.createVNode(f,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[6].value,ref:"checkBoxPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:n.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[n.createVNode(f,{content:"Location of the featured dataset",placement:"bottom",teleported:!0,trigger:"manual",width:"max-content",offset:-10,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:e.hoverVisibilities[9].value&&o.showStarInLegend,ref:"featuredMarkerPopover"},{reference:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",{onMouseover:t[20]||(t[20]=T=>i.showTooltip(9)),onMouseout:t[21]||(t[21]=T=>i.hideTooltip(9))},[i.legendEntry.length?(n.openBlock(),n.createBlock(h,{key:0,identifierKey:"prompt",colourKey:"colour",styleKey:"style",legends:i.legendEntry,showStarInLegend:!0,class:"svg-legends-container"},null,8,["legends"])):n.createCommentVNode("",!0)],32)),[[N,void 0,"featuredMarkerPopover"]])]),_:1},8,["visible"]),n.createVNode(f,{content:"Find these markers for data. The number inside the markers is the number of datasets available for each marker.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[0].value,ref:"markerPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,Wy),[[n.vShow,e.hoverVisibilities[0].value],[N,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(n.openBlock(),n.createBlock(m,{key:0,class:"treeControls",mapType:"flatmap",title:"Systems",treeData:e.systems,active:e.currentActive,hover:e.currentHover,onCheckChanged:i.systemSelected,onCheckAll:i.checkAllSystems,onChangeActive:i.ftuSelected,ref:"treeControls"},null,8,["treeData","active","hover","onCheckChanged","onCheckAll","onChangeActive"])):n.createCommentVNode("",!0),e.containsAlert&&e.alertOptions&&o.showPathwayFilter?(n.openBlock(),n.createBlock(y,{title:"Alert",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:i.alertSelected,onCheckboxMouseEnter:i.alertMouseEnterEmitted,onSelectionsDataChanged:i.onSelectionsDataChanged,onCheckAll:i.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(n.openBlock(),n.createBlock(y,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,showAsLegend:!o.showPathwayFilter,onChanged:i.pathwaysSelected,onSelectionsDataChanged:i.onSelectionsDataChanged,onCheckAll:i.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","showAsLegend","onChanged","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.taxonConnectivity&&e.taxonConnectivity.length>0&&o.showPathwayFilter?(n.openBlock(),n.createBlock(y,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:i.taxonsSelected,onCheckboxMouseEnter:i.taxonMouseEnterEmitted,onSelectionsDataChanged:i.onSelectionsDataChanged,onCheckAll:i.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0)],6)),[[N,void 0,"checkBoxPopover"]]),n.createElementVNode("div",{onClick:t[22]||(t[22]=(...T)=>i.toggleDrawer&&i.toggleDrawer(...T)),class:n.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(b)]),_:1})],2)],2),[[n.vShow,!o.disableUI&&i.requiresDrawer]])]),_:1},8,["visible"]),e.openMapRef?(n.openBlock(),n.createBlock(f,{key:2,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.openMapOptions,T=>(n.openBlock(),n.createBlock(I,{key:T.key},{default:n.withCtx(()=>[n.createVNode(C,{type:"primary",plain:"",onClick:P=>e.$emit("open-map",T.key)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(T.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):n.createCommentVNode("",!0),n.createVNode(f,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[37]||(t[37]=[n.createTextVNode("Viewing Mode")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createElementVNode("div",qy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.viewingModes,(T,P,q)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:P},[P===e.viewingMode?(n.openBlock(),n.createElementBlock("span",Gy,[n.createElementVNode("b",null,n.toDisplayString(P),1)])):(n.openBlock(),n.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:V=>i.changeViewingMode(P)},n.toDisplayString(P),9,Jy))],64))),128))]),n.createVNode(I,{class:"viewing-mode-description"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i.modeDescription),1)]),_:1}),e.viewingMode==="Annotation"&&e.offlineAnnotationEnabled?(n.openBlock(),n.createBlock(I,{key:0,class:"viewing-mode-description"},{default:n.withCtx(()=>t[38]||(t[38]=[n.createTextVNode(" (Anonymous annotate) ")])),_:1})):n.createCommentVNode("",!0)]),_:1}),e.viewingMode==="Annotation"&&e.authorisedUser?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[39]||(t[39]=[n.createTextVNode("Annotations From")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(S,{teleported:!1,modelValue:e.annotationFrom,"onUpdate:modelValue":t[23]||(t[23]=T=>e.annotationFrom=T),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:i.setAnnotationFrom},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.annotatedSource,T=>(n.openBlock(),n.createBlock(v,{key:T,label:T,value:T},{default:n.withCtx(()=>[n.createVNode(I,null,{default:n.withCtx(()=>[n.createVNode(k,{span:12},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(T),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:1,class:"backgroundSpacer"})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:2,class:"backgroundText"},{default:n.withCtx(()=>t[40]||(t[40]=[n.createTextVNode("Flight path display")])),_:1})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:3,class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[24]||(t[24]=T=>e.flightPath3DRadio=T),class:"flatmap-radio",onChange:i.setFlightPath3D},{default:n.withCtx(()=>[n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[41]||(t[41]=[n.createTextVNode("2D")])),_:1}),n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[42]||(t[42]=[n.createTextVNode("3D")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):n.createCommentVNode("",!0),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[43]||(t[43]=[n.createTextVNode("Organs display")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.colourRadio,"onUpdate:modelValue":t[25]||(t[25]=T=>e.colourRadio=T),class:"flatmap-radio",onChange:i.setColour},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[44]||(t[44]=[n.createTextVNode("Colour")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[45]||(t[45]=[n.createTextVNode("Greyscale")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[46]||(t[46]=[n.createTextVNode("Outlines display")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[26]||(t[26]=T=>e.outlinesRadio=T),class:"flatmap-radio",onChange:i.setOutlines},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[47]||(t[47]=[n.createTextVNode("Show")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[48]||(t[48]=[n.createTextVNode("Hide")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[49]||(t[49]=[n.createTextVNode("Change background")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.availableBackground,T=>(n.openBlock(),n.createElementBlock("div",{key:T,class:n.normalizeClass(["backgroundChoice",T,T==e.currentBackground?"active":""]),onClick:P=>i.backgroundChangeCallback(T)},null,10,Yy))),128))]),_:1})])]),_:1},8,["virtual-ref"]),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[o.showOpenMapButton?(n.openBlock(),n.createBlock(I,{key:0},{default:n.withCtx(()=>[n.createVNode(f,{visible:e.hoverVisibilities[4].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:n.withCtx(()=>[o.enableOpenMapUI&&o.openMapOptions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"openMapRef",class:"icon-button-container",onMouseover:t[27]||(t[27]=T=>i.showTooltip(4)),onMouseout:t[28]||(t[28]=T=>i.hideTooltip(4))},[n.createVNode(g,{icon:"openMap",class:"icon-button open-map-button"})],544)):n.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0),o.showLocalSettings?(n.openBlock(),n.createBlock(I,{key:1},{default:n.withCtx(()=>[n.createVNode(f,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[5].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{ref:"backgroundIconRef",class:"icon-button-container",onMouseover:t[29]||(t[29]=T=>i.showTooltip(5)),onMouseout:t[30]||(t[30]=T=>i.hideTooltip(5))},[n.createVNode(g,{icon:"changeBckgd",class:"icon-button"})],544)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0)],2),[[n.vShow,!o.disableUI]]),e.tooltipDisplay?(n.openBlock(),n.createBlock(B,{key:3,ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,tooltipEntry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation",onAnnotation:i.commitAnnotationEvent,onOnActionClick:i.onActionClick},null,8,["annotationEntry","tooltipEntry","annotationDisplay","onAnnotation","onOnActionClick"])):n.createCommentVNode("",!0)])])),[[x,e.loading]])}const ua=Ot(Dy,[["render",Zy],["__scopeId","data-v-bb2e160c"]]),gs={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},Qy={name:"MultiFlatmapVuer",components:{Col:tn,Row:en,Option:oa,Select:Hn,Popover:Kn,FlatmapVuer:ua},created:function(){this.loadMapManager()},mounted:function(){this.initialise(),fa.on("onActionClick",e=>{this.resourceSelected(e)}),fa.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return this.multiflatmapError=null,new Promise(e=>{this.requireInitialisation?(this.requireInitialisation=!1,fetch(this.flatmapAPI).then(t=>t.json()).then(t=>{t.status_code===404&&(console.error("Flatmap API endpoint is incorrect",t),this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded because the specified
25
+ flatmap API endpoint is incorrect. Please check the endpoint URL
26
+ or contact support if the problem persists.`]),Object.keys(this.availableSpecies).forEach(a=>{const r=this.availableSpecies[a].uuid;if(r&&t.length&&t.map(i=>i.uuid).indexOf(r)>0)this.speciesList[a]=this.availableSpecies[a];else for(let i=0;i<t.length;i++)if(this.availableSpecies[a].taxo===t[i].taxon)if(this.availableSpecies[a].biologicalSex){if(t[i].biologicalSex&&t[i].biologicalSex===this.availableSpecies[a].biologicalSex){this.speciesList[a]=this.availableSpecies[a];break}}else{this.speciesList[a]=this.availableSpecies[a];break}});let o=this.initial;if(this.state){const a=this.state.state;(!a||!a.uuid&&!a.entry)&&this.state.species?o=this.state.species:o=void 0}o&&(o&&this.speciesList[o]!==void 0?this.activeSpecies=o:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this.initialised=!0,e(),this.resolveList.forEach(a=>{a()})}).catch(t=>{console.error("Error fetching flatmap:",t),this.initialised=!0,this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded due to an unexpected error.
27
+ Please try again later or contact support if the problem persists.`],e(),this.resolveList.forEach(o=>{o()})})):this.initialised?e():this.resolveList.push(e)})},loadMapManager:function(){this.mapManagerRef||(this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new wa.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef)))},resourceSelected:function(e){this.$emit("resource-selected",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onAnnotationClose:function(){this.$emit("annotation-close")},onAnnotationOpen:function(e){this.$emit("annotation-open",e)},updateOfflineAnnotationEnabled:function(e){this.$emit("update-offline-annotation-enabled",e)},onConnectivityInfoClose:function(){this.$emit("connectivity-info-close")},onConnectivityInfoOpen:function(e){this.$emit("connectivity-info-open",e)},onConnectivityError:function(e){this.$emit("connectivity-error",e)},onNeuronConnectionFeatureClick:function(e){this.$emit("neuron-connection-feature-click",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,o){this.getCurrentFlatmap().showPopup(e,t,o)},showMarkerPopup:function(e,t,o){this.getCurrentFlatmap().showMarkerPopup(e,t,o)},setSpecies:function(e,t,o){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(o){const a=o-1;a>=0&&this.$nextTick(()=>{this.setSpecies(e,t,a)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let o=0;o<t.length;o++){const a=this.speciesList[t[o]];if(!a.isLegacy&&a.taxo===e.entry&&a.biologicalSex===e.biologicalSex){this.setSpecies(t[o],e,0);return}}},createLegacyEntry:function(e,t,o){if(o&&t){let a="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?a=e.species:a=a+` ${e.species}`),this.speciesList[a]={taxo:t,isLegacy:!0,displayWarning:!0},{species:a,state:{entry:t,uuid:o,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const o=e.state;if(o.uuid){if(o.entry)return new Promise(()=>{const a={taxon:o.entry};o.biologicalSex&&(a.biologicalSex=o.biologicalSex),this.mapManagerRef.findMap(a).then(r=>{if(r.uuid!==o.uuid)return this.createLegacyEntry(e,o.entry,o.uuid)}).then(r=>{t(r||e)}).catch(()=>{t(e)})})}else if(o.entry){const a=o.entry in gs?gs[o.entry]:void 0,r=this.createLegacyEntry(e,o.entry,a);t(r||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&(this.loadMapManager(),this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})}))},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")},changeViewingMode:function(e){this.getCurrentFlatmap().changeViewingMode(e)},setConnectionType:function(e){this.getCurrentFlatmap().setConnectionType(e)}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:1},renderAtMounted:{type:Boolean,default:!1},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0,resolveList:n.markRaw([]),initialised:!1,mapManagerRef:void 0,multiflatmapError:null}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0}}},Xy={class:"multi-container",ref:"multiContainer"},eb={key:0,style:{position:"absolute","z-index":"100"}},tb={class:"select-box-icon"};function nb(e,t,o,a,r,i){const s=oa,l=Hn,c=Kn,d=ua,f=ia;return n.openBlock(),n.createElementBlock("div",Xy,[o.disableUI?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",eb,[t[2]||(t[2]=n.createElementVNode("div",{class:"species-display-text"},"Species",-1)),n.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:i.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:n.withCtx(()=>[n.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=u=>e.activeSpecies=u),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:i.setSpecies},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(u,p)=>(n.openBlock(),n.createBlock(s,{key:p,label:p,value:p},{default:n.withCtx(()=>[n.createElementVNode("span",tb,[n.createElementVNode("i",{class:n.normalizeClass(u.iconClass)},null,2)]),n.createTextVNode(" "+n.toDisplayString(p),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(u,p)=>n.withDirectives((n.openBlock(),n.createBlock(d,{key:p,entry:u.taxo,uuid:u.uuid,biologicalSex:u.biologicalSex,displayWarning:u.displayWarning,displayLatestChanges:u.displayLatestChanges,isLegacy:u.isLegacy,ref_for:!0,ref:p,enableOpenMapUI:o.enableOpenMapUI,openMapOptions:o.openMapOptions,disableUI:o.disableUI,onViewLatestMap:i.viewLatestMap,onResourceSelected:i.resourceSelected,onReady:i.FlatmapReady,onPanZoomCallback:i.panZoomCallback,annotationSidebar:o.annotationSidebar,onAnnotationOpen:i.onAnnotationOpen,onAnnotationClose:i.onAnnotationClose,onUpdateOfflineAnnotationEnabled:i.updateOfflineAnnotationEnabled,connectivityInfoSidebar:o.connectivityInfoSidebar,onConnectivityInfoOpen:i.onConnectivityInfoOpen,onConnectivityInfoClose:i.onConnectivityInfoClose,onConnectivityError:i.onConnectivityError,onNeuronConnectionFeatureClick:i.onNeuronConnectionFeatureClick,onOpenMap:t[1]||(t[1]=g=>e.$emit("open-map",g)),onPathwaySelectionChanged:i.onSelectionsDataChanged,minZoom:o.minZoom,helpMode:e.activeSpecies==p&&o.helpMode,helpModeActiveItem:o.helpModeActiveItem,helpModeDialog:o.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:i.onHelpModeLastItem,onShownTooltip:i.onTooltipShown,onShownMapTooltip:i.onMapTooltipShown,renderAtMounted:o.renderAtMounted,displayMinimap:o.displayMinimap,showStarInLegend:o.showStarInLegend,style:{height:"100%"},mapManager:e.mapManagerRef,flatmapAPI:o.flatmapAPI,sparcAPI:o.sparcAPI,showLocalSettings:o.showLocalSettings,showOpenMapButton:o.showOpenMapButton,showPathwayFilter:o.showPathwayFilter,externalLegends:o.externalLegends},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","annotationSidebar","onAnnotationOpen","onAnnotationClose","onUpdateOfflineAnnotationEnabled","connectivityInfoSidebar","onConnectivityInfoOpen","onConnectivityInfoClose","onConnectivityError","onNeuronConnectionFeatureClick","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","displayMinimap","showStarInLegend","mapManager","flatmapAPI","sparcAPI","showLocalSettings","showOpenMapButton","showPathwayFilter","externalLegends"])),[[n.vShow,e.activeSpecies==p]])),128)),e.multiflatmapError?(n.openBlock(),n.createBlock(f,{key:1,flatmapError:e.multiflatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0)],512)}const ob=Ot(Qy,[["render",nb],["__scopeId","data-v-c2350470"]]);H.FlatmapVuer=ua,H.MultiFlatmapVuer=ob,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});