From 4d1d06e112b083b9d2bf396f5046293524ec929e Mon Sep 17 00:00:00 2001 From: moisbo Date: Tue, 20 Aug 2024 09:33:43 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20soil-and?= =?UTF-8?q?-land/socrates-web@d7680a930d418cf7bc1f34a9e705e68863ceb090=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CNAME | 1 + assets/index-74925e9d.js | 96 ++++++++++++++++++++++++++++++ assets/index-d8799daf.css | 1 + favicon.ico | Bin 0 -> 5430 bytes images/edit_help.png | Bin 0 -> 3330 bytes images/ife_main_colour-300x59.jpg | Bin 0 -> 6740 bytes index.html | 16 +++++ parameters.json | 52 ++++++++++++++++ sample-data-20-year.json | 65 ++++++++++++++++++++ spa_github.js | 20 +++++++ 10 files changed, 251 insertions(+) create mode 100644 CNAME create mode 100644 assets/index-74925e9d.js create mode 100644 assets/index-d8799daf.css create mode 100644 favicon.ico create mode 100644 images/edit_help.png create mode 100644 images/ife_main_colour-300x59.jpg create mode 100644 index.html create mode 100644 parameters.json create mode 100644 sample-data-20-year.json create mode 100644 spa_github.js diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..587e5be --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +socrates-soil.net \ No newline at end of file diff --git a/assets/index-74925e9d.js b/assets/index-74925e9d.js new file mode 100644 index 0000000..4ce9859 --- /dev/null +++ b/assets/index-74925e9d.js @@ -0,0 +1,96 @@ +var GL=Object.defineProperty;var XL=(e,t,n)=>t in e?GL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pe=(e,t,n)=>(XL(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function um(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const Jt={},ya=[],xn=()=>{},JL=()=>!1,ZL=/^on[^a-z]/,yd=e=>ZL.test(e),cm=e=>e.startsWith("onUpdate:"),gn=Object.assign,fm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},QL=Object.prototype.hasOwnProperty,wt=(e,t)=>QL.call(e,t),He=Array.isArray,_a=e=>ku(e)==="[object Map]",_d=e=>ku(e)==="[object Set]",y0=e=>ku(e)==="[object Date]",Je=e=>typeof e=="function",gt=e=>typeof e=="string",ru=e=>typeof e=="symbol",yt=e=>e!==null&&typeof e=="object",kx=e=>yt(e)&&Je(e.then)&&Je(e.catch),Lx=Object.prototype.toString,ku=e=>Lx.call(e),vf=e=>ku(e).slice(8,-1),Ix=e=>ku(e)==="[object Object]",dm=e=>gt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bf=um(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},eI=/-(\w)/g,ii=wd(e=>e.replace(eI,(t,n)=>n?n.toUpperCase():"")),tI=/\B([A-Z])/g,jo=wd(e=>e.replace(tI,"-$1").toLowerCase()),xd=wd(e=>e.charAt(0).toUpperCase()+e.slice(1)),yf=wd(e=>e?`on${xd(e)}`:""),iu=(e,t)=>!Object.is(e,t),_f=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Xp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nI=e=>{const t=gt(e)?Number(e):NaN;return isNaN(t)?e:t};let _0;const Jp=()=>_0||(_0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Nt(e){if(He(e)){const t={};for(let n=0;n{if(n){const r=n.split(iI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function be(e){let t="";if(gt(e))t=e;else if(He(e))for(let n=0;nCd(n,t))}const bt=e=>gt(e)?e:e==null?"":He(e)||yt(e)&&(e.toString===Lx||!Je(e.toString))?JSON.stringify(e,Dx,2):String(e),Dx=(e,t)=>t&&t.__v_isRef?Dx(e,t.value):_a(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:_d(t)?{[`Set(${t.size})`]:[...t.values()]}:yt(t)&&!He(t)&&!Ix(t)?String(t):t;let wr;class Nx{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=wr,!t&&wr&&(this.index=(wr.scopes||(wr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=wr;try{return wr=this,t()}finally{wr=n}}}on(){wr=this}off(){wr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},zx=e=>(e.w&Hs)>0,Hx=e=>(e.n&Hs)>0,fI=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=u)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":He(e)?dm(n)&&a.push(o.get("length")):(a.push(o.get(ko)),_a(e)&&a.push(o.get(Qp)));break;case"delete":He(e)||(a.push(o.get(ko)),_a(e)&&a.push(o.get(Qp)));break;case"set":_a(e)&&a.push(o.get(ko));break}if(a.length===1)a[0]&&eg(a[0]);else{const u=[];for(const c of a)c&&u.push(...c);eg(gm(u))}}function eg(e,t){const n=He(e)?e:[...e];for(const r of n)r.computed&&x0(r);for(const r of n)r.computed||x0(r)}function x0(e,t){(e!==Zr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function hI(e,t){var n;return(n=Uf.get(e))==null?void 0:n.get(t)}const pI=um("__proto__,__v_isRef,__isVue"),jx=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ru)),gI=vm(),mI=vm(!1,!0),vI=vm(!0),C0=bI();function bI(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ut(this);for(let s=0,o=this.length;s{e[t]=function(...n){Va();const r=ut(this)[t].apply(this,n);return ja(),r}}),e}function yI(e){const t=ut(this);return cr(t,"has",e),t.hasOwnProperty(e)}function vm(e=!1,t=!1){return function(r,i,s){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&s===(e?t?$I:Gx:t?Yx:qx).get(r))return r;const o=He(r);if(!e){if(o&&wt(C0,i))return Reflect.get(C0,i,s);if(i==="hasOwnProperty")return yI}const a=Reflect.get(r,i,s);return(ru(i)?jx.has(i):pI(i))||(e||cr(r,"get",i),t)?a:$t(a)?o&&dm(i)?a:a.value:yt(a)?e?Lu(a):mn(a):a}}const _I=Ux(),wI=Ux(!0);function Ux(e=!1){return function(n,r,i,s){let o=n[r];if(Sa(o)&&$t(o)&&!$t(i))return!1;if(!e&&(!Kf(i)&&!Sa(i)&&(o=ut(o),i=ut(i)),!He(n)&&$t(o)&&!$t(i)))return o.value=i,!0;const a=He(n)&&dm(r)?Number(r)e,Sd=e=>Reflect.getPrototypeOf(e);function Fc(e,t,n=!1,r=!1){e=e.__v_raw;const i=ut(e),s=ut(t);n||(t!==s&&cr(i,"get",t),cr(i,"get",s));const{has:o}=Sd(i),a=r?bm:n?wm:su;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function Dc(e,t=!1){const n=this.__v_raw,r=ut(n),i=ut(e);return t||(e!==i&&cr(r,"has",e),cr(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Nc(e,t=!1){return e=e.__v_raw,!t&&cr(ut(e),"iterate",ko),Reflect.get(e,"size",e)}function S0(e){e=ut(e);const t=ut(this);return Sd(t).has.call(t,e)||(t.add(e),Ji(t,"add",e,e)),this}function O0(e,t){t=ut(t);const n=ut(this),{has:r,get:i}=Sd(n);let s=r.call(n,e);s||(e=ut(e),s=r.call(n,e));const o=i.call(n,e);return n.set(e,t),s?iu(t,o)&&Ji(n,"set",e,t):Ji(n,"add",e,t),this}function E0(e){const t=ut(this),{has:n,get:r}=Sd(t);let i=n.call(t,e);i||(e=ut(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&Ji(t,"delete",e,void 0),s}function M0(){const e=ut(this),t=e.size!==0,n=e.clear();return t&&Ji(e,"clear",void 0,void 0),n}function Bc(e,t){return function(r,i){const s=this,o=s.__v_raw,a=ut(o),u=t?bm:e?wm:su;return!e&&cr(a,"iterate",ko),o.forEach((c,d)=>r.call(i,u(c),u(d),s))}}function zc(e,t,n){return function(...r){const i=this.__v_raw,s=ut(i),o=_a(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...r),d=n?bm:t?wm:su;return!t&&cr(s,"iterate",u?Qp:ko),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:a?[d(h[0]),d(h[1])]:d(h),done:g}},[Symbol.iterator](){return this}}}}function vs(e){return function(...t){return e==="delete"?!1:this}}function MI(){const e={get(s){return Fc(this,s)},get size(){return Nc(this)},has:Dc,add:S0,set:O0,delete:E0,clear:M0,forEach:Bc(!1,!1)},t={get(s){return Fc(this,s,!1,!0)},get size(){return Nc(this)},has:Dc,add:S0,set:O0,delete:E0,clear:M0,forEach:Bc(!1,!0)},n={get(s){return Fc(this,s,!0)},get size(){return Nc(this,!0)},has(s){return Dc.call(this,s,!0)},add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear"),forEach:Bc(!0,!1)},r={get(s){return Fc(this,s,!0,!0)},get size(){return Nc(this,!0)},has(s){return Dc.call(this,s,!0)},add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear"),forEach:Bc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=zc(s,!1,!1),n[s]=zc(s,!0,!1),t[s]=zc(s,!1,!0),r[s]=zc(s,!0,!0)}),[e,n,t,r]}const[TI,AI,PI,RI]=MI();function ym(e,t){const n=t?e?RI:PI:e?AI:TI;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(wt(n,i)&&i in r?n:r,i,s)}const kI={get:ym(!1,!1)},LI={get:ym(!1,!0)},II={get:ym(!0,!1)},qx=new WeakMap,Yx=new WeakMap,Gx=new WeakMap,$I=new WeakMap;function FI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function DI(e){return e.__v_skip||!Object.isExtensible(e)?0:FI(vf(e))}function mn(e){return Sa(e)?e:_m(e,!1,Kx,kI,qx)}function NI(e){return _m(e,!1,EI,LI,Yx)}function Lu(e){return _m(e,!0,OI,II,Gx)}function _m(e,t,n,r,i){if(!yt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=DI(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function $s(e){return Sa(e)?$s(e.__v_raw):!!(e&&e.__v_isReactive)}function Sa(e){return!!(e&&e.__v_isReadonly)}function Kf(e){return!!(e&&e.__v_isShallow)}function Xx(e){return $s(e)||Sa(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function Od(e){return jf(e,"__v_skip",!0),e}const su=e=>yt(e)?mn(e):e,wm=e=>yt(e)?Lu(e):e;function Jx(e){Is&&Zr&&(e=ut(e),Vx(e.dep||(e.dep=gm())))}function xm(e,t){e=ut(e);const n=e.dep;n&&eg(n)}function $t(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Zx(e,!1)}function Fs(e){return Zx(e,!0)}function Zx(e,t){return $t(e)?e:new BI(e,t)}class BI{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ut(t),this._value=n?t:su(t)}get value(){return Jx(this),this._value}set value(t){const n=this.__v_isShallow||Kf(t)||Sa(t);t=n?t:ut(t),iu(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:su(t),xm(this))}}function bl(e){xm(e)}function O(e){return $t(e)?e.value:e}const zI={get:(e,t,n)=>O(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return $t(i)&&!$t(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Qx(e){return $s(e)?e:new Proxy(e,zI)}function Gs(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=eC(e,n);return t}class HI{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return hI(ut(this._object),this._key)}}class WI{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Dr(e,t,n){return $t(e)?e:Je(e)?new WI(e):yt(e)&&arguments.length>1?eC(e,t,n):X(e)}function eC(e,t,n){const r=e[t];return $t(r)?r:new HI(e,t,n)}class VI{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new mm(t,()=>{this._dirty||(this._dirty=!0,xm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=ut(this);return Jx(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function tC(e,t,n=!1){let r,i;const s=Je(e);return s?(r=e,i=xn):(r=e.get,i=e.set),new VI(r,i,s||!i,n)}function jI(e,...t){}function Ds(e,t,n,r){let i;try{i=r?e(...r):e()}catch(s){Ed(s,t,n)}return i}function Nr(e,t,n,r){if(Je(e)){const s=Ds(e,t,n,r);return s&&kx(s)&&s.catch(o=>{Ed(o,t,n)}),s}const i=[];for(let s=0;s>>1;au(Hn[r])bi&&Hn.splice(t,1)}function YI(e){He(e)?wa.push(...e):(!Ui||!Ui.includes(e,e.allowRecurse?_o+1:_o))&&wa.push(e),rC()}function T0(e,t=ou?bi+1:0){for(;tau(n)-au(r)),_o=0;_oe.id==null?1/0:e.id,GI=(e,t)=>{const n=au(e)-au(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function sC(e){tg=!1,ou=!0,Hn.sort(GI);const t=xn;try{for(bi=0;bigt(m)?m.trim():m)),h&&(i=n.map(Xp))}let a,u=r[a=yf(t)]||r[a=yf(ii(t))];!u&&s&&(u=r[a=yf(jo(t))]),u&&Nr(u,e,6,i);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Nr(c,e,6,i)}}function oC(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!Je(e)){const u=c=>{const d=oC(c,t,!0);d&&(a=!0,gn(o,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!a?(yt(e)&&r.set(e,null),null):(He(s)?s.forEach(u=>o[u]=null):gn(o,s),yt(e)&&r.set(e,o),o)}function Md(e,t){return!e||!yd(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,jo(t))||wt(e,t))}let En=null,aC=null;function qf(e){const t=En;return En=e,aC=e&&e.type.__scopeId||null,t}function D(e,t=En,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&H0(-1);const s=qf(t);let o;try{o=e(...i)}finally{qf(s),r._d&&H0(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function dp(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:u,emit:c,render:d,renderCache:h,data:g,setupState:m,ctx:b,inheritAttrs:v}=e;let _,y;const C=qf(e);try{if(n.shapeFlag&4){const x=i||r;_=mi(d.call(x,x,h,s,m,g,b)),y=u}else{const x=t;_=mi(x.length>1?x(s,{attrs:u,slots:a,emit:c}):x(s,null)),y=t.props?u:JI(u)}}catch(x){Wl.length=0,Ed(x,e,1),_=B(ar)}let A=_;if(y&&v!==!1){const x=Object.keys(y),{shapeFlag:S}=A;x.length&&S&7&&(o&&x.some(cm)&&(y=ZI(y,o)),A=Zi(A,y))}return n.dirs&&(A=Zi(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),_=A,qf(C),_}const JI=e=>{let t;for(const n in e)(n==="class"||n==="style"||yd(n))&&((t||(t={}))[n]=e[n]);return t},ZI=(e,t)=>{const n={};for(const r in e)(!cm(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function QI(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:u}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?A0(r,o,c):!!o;if(u&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function n$(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):YI(e)}function Ns(e,t){return Om(e,null,t)}const Hc={};function Re(e,t,n){return Om(e,t,n)}function Om(e,t,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=Jt){var a;const u=hm()===((a=_n)==null?void 0:a.scope)?_n:null;let c,d=!1,h=!1;if($t(e)?(c=()=>e.value,d=Kf(e)):$s(e)?(c=()=>e,r=!0):He(e)?(h=!0,d=e.some(x=>$s(x)||Kf(x)),c=()=>e.map(x=>{if($t(x))return x.value;if($s(x))return Eo(x);if(Je(x))return Ds(x,u,2)})):Je(e)?t?c=()=>Ds(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return g&&g(),Nr(e,u,3,[m])}:c=xn,t&&r){const x=c;c=()=>Eo(x())}let g,m=x=>{g=C.onStop=()=>{Ds(x,u,4)}},b;if(du)if(m=xn,t?n&&Nr(t,u,3,[c(),h?[]:void 0,m]):c(),i==="sync"){const x=Y$();b=x.__watcherHandles||(x.__watcherHandles=[])}else return xn;let v=h?new Array(e.length).fill(Hc):Hc;const _=()=>{if(C.active)if(t){const x=C.run();(r||d||(h?x.some((S,M)=>iu(S,v[M])):iu(x,v)))&&(g&&g(),Nr(t,u,3,[x,v===Hc?void 0:h&&v[0]===Hc?[]:v,m]),v=x)}else C.run()};_.allowRecurse=!!t;let y;i==="sync"?y=_:i==="post"?y=()=>sr(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),y=()=>Sm(_));const C=new mm(c,y);t?n?_():v=C.run():i==="post"?sr(C.run.bind(C),u&&u.suspense):C.run();const A=()=>{C.stop(),u&&u.scope&&fm(u.scope.effects,C)};return b&&b.push(A),A}function r$(e,t,n){const r=this.proxy,i=gt(e)?e.includes(".")?lC(r,e):()=>r[e]:e.bind(r,r);let s;Je(t)?s=t:(s=t.handler,n=t);const o=_n;Ea(this);const a=Om(i,s.bind(r),n);return o?Ea(o):Lo(),a}function lC(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Eo(n,t)});else if(Ix(e))for(const n in e)Eo(e[n],t);return e}function vn(e,t){const n=En;if(n===null)return e;const r=Rd(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),Tn(()=>{e.isUnmounting=!0}),e}const $r=[Function,Array],cC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$r,onEnter:$r,onAfterEnter:$r,onEnterCancelled:$r,onBeforeLeave:$r,onLeave:$r,onAfterLeave:$r,onLeaveCancelled:$r,onBeforeAppear:$r,onAppear:$r,onAfterAppear:$r,onAppearCancelled:$r},i$={name:"BaseTransition",props:cC,setup(e,{slots:t}){const n=kt(),r=uC();let i;return()=>{const s=t.default&&Em(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const v of s)if(v.type!==ar){o=v;break}}const a=ut(e),{mode:u}=a;if(r.isLeaving)return hp(o);const c=P0(o);if(!c)return hp(o);const d=lu(c,a,r,n);uu(c,d);const h=n.subTree,g=h&&P0(h);let m=!1;const{getTransitionKey:b}=c.type;if(b){const v=b();i===void 0?i=v:v!==i&&(i=v,m=!0)}if(g&&g.type!==ar&&(!wo(c,g)||m)){const v=lu(g,a,r,n);if(uu(g,v),u==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},hp(o);u==="in-out"&&c.type!==ar&&(v.delayLeave=(_,y,C)=>{const A=fC(r,g);A[String(g.key)]=g,_._leaveCb=()=>{y(),_._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=C})}return o}}},s$=i$;function fC(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function lu(e,t,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:g,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:v,onAppear:_,onAfterAppear:y,onAppearCancelled:C}=t,A=String(e.key),x=fC(n,e),S=(T,$)=>{T&&Nr(T,r,9,$)},M=(T,$)=>{const z=$[1];S(T,$),He(T)?T.every(V=>V.length<=1)&&z():T.length<=1&&z()},P={mode:s,persisted:o,beforeEnter(T){let $=a;if(!n.isMounted)if(i)$=v||a;else return;T._leaveCb&&T._leaveCb(!0);const z=x[A];z&&wo(e,z)&&z.el._leaveCb&&z.el._leaveCb(),S($,[T])},enter(T){let $=u,z=c,V=d;if(!n.isMounted)if(i)$=_||u,z=y||c,V=C||d;else return;let R=!1;const j=T._enterCb=ue=>{R||(R=!0,ue?S(V,[T]):S(z,[T]),P.delayedLeave&&P.delayedLeave(),T._enterCb=void 0)};$?M($,[T,j]):j()},leave(T,$){const z=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return $();S(h,[T]);let V=!1;const R=T._leaveCb=j=>{V||(V=!0,$(),j?S(b,[T]):S(m,[T]),T._leaveCb=void 0,x[z]===e&&delete x[z])};x[z]=e,g?M(g,[T,R]):R()},clone(T){return lu(T,t,n,r)}};return P}function hp(e){if(Td(e))return e=Zi(e),e.children=null,e}function P0(e){return Td(e)?e.children?e.children[0]:void 0:e}function uu(e,t){e.shapeFlag&6&&e.component?uu(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Em(e,t=!1,n){let r=[],i=0;for(let s=0;s1)for(let s=0;sgn({name:e.name},t,{setup:e}))():e}const Bl=e=>!!e.type.__asyncLoader,Td=e=>e.type.__isKeepAlive;function o$(e,t){hC(e,"a",t)}function dC(e,t){hC(e,"da",t)}function hC(e,t,n=_n){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ad(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Td(i.parent.vnode)&&a$(r,t,n,i),i=i.parent}}function a$(e,t,n,r){const i=Ad(t,e,r,!0);qa(()=>{fm(r[t],i)},n)}function Ad(e,t,n=_n,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Va(),Ea(n);const a=Nr(t,n,e,o);return Lo(),ja(),a});return r?i.unshift(s):i.push(s),s}}const rs=e=>(t,n=_n)=>(!du||e==="sp")&&Ad(e,(...r)=>t(...r),n),Ua=rs("bm"),Lt=rs("m"),l$=rs("bu"),Ka=rs("u"),Tn=rs("bum"),qa=rs("um"),u$=rs("sp"),c$=rs("rtg"),f$=rs("rtc");function d$(e,t=_n){Ad("ec",e,t)}const Mm="components",h$="directives";function Yt(e,t){return Am(Mm,e,!0,t)||e}const pC=Symbol.for("v-ndc");function Vn(e){return gt(e)?Am(Mm,e,!1)||e:e||pC}function Tm(e){return Am(h$,e)}function Am(e,t,n=!0,r=!1){const i=En||_n;if(i){const s=i.type;if(e===Mm){const a=U$(s,!1);if(a&&(a===t||a===ii(t)||a===xd(ii(t))))return s}const o=R0(i[e]||s[e],t)||R0(i.appContext[e],t);return!o&&r?s:o}}function R0(e,t){return e&&(e[t]||e[ii(t)]||e[xd(ii(t))])}function On(e,t,n,r){let i;const s=n&&n[r];if(He(e)||gt(e)){i=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,u=o.length;a{const s=r.fn(...i);return s&&(s.key=r.key),s}:r.fn)}return e}function je(e,t,n={},r,i){if(En.isCE||En.parent&&Bl(En.parent)&&En.parent.isCE)return t!=="default"&&(n.name=t),B("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),K();const o=s&&mC(s(n)),a=Ie(it,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function mC(e){return e.some(t=>Oa(t)?!(t.type===ar||t.type===it&&!mC(t.children)):!0)?e:null}function p$(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:yf(r)]=e[r];return n}const ng=e=>e?TC(e)?Rd(e)||e.proxy:ng(e.parent):null,zl=gn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ng(e.parent),$root:e=>ng(e.root),$emit:e=>e.emit,$options:e=>Pm(e),$forceUpdate:e=>e.f||(e.f=()=>Sm(e.update)),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>r$.bind(e)}),pp=(e,t)=>e!==Jt&&!e.__isScriptSetup&&wt(e,t),g$={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:u}=e;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(pp(r,t))return o[t]=1,r[t];if(i!==Jt&&wt(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&wt(c,t))return o[t]=3,s[t];if(n!==Jt&&wt(n,t))return o[t]=4,n[t];rg&&(o[t]=0)}}const d=zl[t];let h,g;if(d)return t==="$attrs"&&cr(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Jt&&wt(n,t))return o[t]=4,n[t];if(g=u.config.globalProperties,wt(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return pp(i,t)?(i[t]=n,!0):r!==Jt&&wt(r,t)?(r[t]=n,!0):wt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==Jt&&wt(e,o)||pp(t,o)||(a=s[0])&&wt(a,o)||wt(r,o)||wt(zl,o)||wt(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:wt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ya(){return vC().slots}function m$(){return vC().attrs}function vC(){const e=kt();return e.setupContext||(e.setupContext=PC(e))}function k0(e){return He(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let rg=!0;function v$(e){const t=Pm(e),n=e.proxy,r=e.ctx;rg=!1,t.beforeCreate&&L0(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:u,inject:c,created:d,beforeMount:h,mounted:g,beforeUpdate:m,updated:b,activated:v,deactivated:_,beforeDestroy:y,beforeUnmount:C,destroyed:A,unmounted:x,render:S,renderTracked:M,renderTriggered:P,errorCaptured:T,serverPrefetch:$,expose:z,inheritAttrs:V,components:R,directives:j,filters:ue}=t;if(c&&b$(c,r,null),o)for(const Q in o){const ie=o[Q];Je(ie)&&(r[Q]=ie.bind(n))}if(i){const Q=i.call(n,n);yt(Q)&&(e.data=mn(Q))}if(rg=!0,s)for(const Q in s){const ie=s[Q],ee=Je(ie)?ie.bind(n,n):Je(ie.get)?ie.get.bind(n,n):xn,ye=!Je(ie)&&Je(ie.set)?ie.set.bind(n):xn,Ee=H({get:ee,set:ye});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:ke=>Ee.value=ke})}if(a)for(const Q in a)bC(a[Q],r,n,Q);if(u){const Q=Je(u)?u.call(n):u;Reflect.ownKeys(Q).forEach(ie=>{on(ie,Q[ie])})}d&&L0(d,e,"c");function ne(Q,ie){He(ie)?ie.forEach(ee=>Q(ee.bind(n))):ie&&Q(ie.bind(n))}if(ne(Ua,h),ne(Lt,g),ne(l$,m),ne(Ka,b),ne(o$,v),ne(dC,_),ne(d$,T),ne(f$,M),ne(c$,P),ne(Tn,C),ne(qa,x),ne(u$,$),He(z))if(z.length){const Q=e.exposed||(e.exposed={});z.forEach(ie=>{Object.defineProperty(Q,ie,{get:()=>n[ie],set:ee=>n[ie]=ee})})}else e.exposed||(e.exposed={});S&&e.render===xn&&(e.render=S),V!=null&&(e.inheritAttrs=V),R&&(e.components=R),j&&(e.directives=j)}function b$(e,t,n=xn){He(e)&&(e=ig(e));for(const r in e){const i=e[r];let s;yt(i)?"default"in i?s=qe(i.from||r,i.default,!0):s=qe(i.from||r):s=qe(i),$t(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function L0(e,t,n){Nr(He(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bC(e,t,n,r){const i=r.includes(".")?lC(n,r):()=>n[r];if(gt(e)){const s=t[e];Je(s)&&Re(i,s)}else if(Je(e))Re(i,e.bind(n));else if(yt(e))if(He(e))e.forEach(s=>bC(s,t,n,r));else{const s=Je(e.handler)?e.handler.bind(n):t[e.handler];Je(s)&&Re(i,s,e)}}function Pm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let u;return a?u=a:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(c=>Yf(u,c,o,!0)),Yf(u,t,o)),yt(t)&&s.set(t,u),u}function Yf(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Yf(e,s,n,!0),i&&i.forEach(o=>Yf(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=y$[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const y$={data:I0,props:$0,emits:$0,methods:Pl,computed:Pl,beforeCreate:Xn,created:Xn,beforeMount:Xn,mounted:Xn,beforeUpdate:Xn,updated:Xn,beforeDestroy:Xn,beforeUnmount:Xn,destroyed:Xn,unmounted:Xn,activated:Xn,deactivated:Xn,errorCaptured:Xn,serverPrefetch:Xn,components:Pl,directives:Pl,watch:w$,provide:I0,inject:_$};function I0(e,t){return t?e?function(){return gn(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function _$(e,t){return Pl(ig(e),ig(t))}function ig(e){if(He(e)){const t={};for(let n=0;n1)return n&&Je(t)?t.call(r&&r.proxy):t}}function S$(){return!!(_n||En||cu)}function O$(e,t,n,r=!1){const i={},s={};jf(s,Pd,1),e.propsDefaults=Object.create(null),_C(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:NI(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function E$(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=ut(i),[u]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let h=0;h{u=!0;const[g,m]=wC(h,t,!0);gn(o,g),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!u)return yt(e)&&r.set(e,ya),ya;if(He(s))for(let d=0;d-1,m[1]=v<0||b-1||wt(m,"default"))&&a.push(h)}}}const c=[o,a];return yt(e)&&r.set(e,c),c}function F0(e){return e[0]!=="$"}function D0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function N0(e,t){return D0(e)===D0(t)}function B0(e,t){return He(t)?t.findIndex(n=>N0(n,e)):Je(t)&&N0(t,e)?0:-1}const xC=e=>e[0]==="_"||e==="$stable",Rm=e=>He(e)?e.map(mi):[mi(e)],M$=(e,t,n)=>{if(t._n)return t;const r=D((...i)=>Rm(t(...i)),n);return r._c=!1,r},CC=(e,t,n)=>{const r=e._ctx;for(const i in e){if(xC(i))continue;const s=e[i];if(Je(s))t[i]=M$(i,s,r);else if(s!=null){const o=Rm(s);t[i]=()=>o}}},SC=(e,t)=>{const n=Rm(t);e.slots.default=()=>n},T$=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ut(t),jf(t,"_",n)):CC(t,e.slots={})}else e.slots={},t&&SC(e,t);jf(e.slots,Pd,1)},A$=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=Jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(gn(i,t),!n&&a===1&&delete i._):(s=!t.$stable,CC(t,i)),o=t}else t&&(SC(e,t),o={default:1});if(s)for(const a in i)!xC(a)&&!(a in o)&&delete i[a]};function og(e,t,n,r,i=!1){if(He(e)){e.forEach((g,m)=>og(g,t&&(He(t)?t[m]:t),n,r,i));return}if(Bl(r)&&!i)return;const s=r.shapeFlag&4?Rd(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:u}=e,c=t&&t.r,d=a.refs===Jt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==u&&(gt(c)?(d[c]=null,wt(h,c)&&(h[c]=null)):$t(c)&&(c.value=null)),Je(u))Ds(u,a,12,[o,d]);else{const g=gt(u),m=$t(u);if(g||m){const b=()=>{if(e.f){const v=g?wt(h,u)?h[u]:d[u]:u.value;i?He(v)&&fm(v,s):He(v)?v.includes(s)||v.push(s):g?(d[u]=[s],wt(h,u)&&(h[u]=d[u])):(u.value=[s],e.k&&(d[e.k]=u.value))}else g?(d[u]=o,wt(h,u)&&(h[u]=o)):m&&(u.value=o,e.k&&(d[e.k]=o))};o?(b.id=-1,sr(b,n)):b()}}}const sr=n$;function P$(e){return R$(e)}function R$(e,t){const n=Jp();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:u,setText:c,setElementText:d,parentNode:h,nextSibling:g,setScopeId:m=xn,insertStaticContent:b}=e,v=(F,W,q,se=null,he=null,ge=null,Te=!1,Se=null,Ce=!!W.dynamicChildren)=>{if(F===W)return;F&&!wo(F,W)&&(se=Y(F),ke(F,he,ge,!0),F=null),W.patchFlag===-2&&(Ce=!1,W.dynamicChildren=null);const{type:pe,ref:Be,shapeFlag:Ae}=W;switch(pe){case Ga:_(F,W,q,se);break;case ar:y(F,W,q,se);break;case gp:F==null&&C(W,q,se,Te);break;case it:R(F,W,q,se,he,ge,Te,Se,Ce);break;default:Ae&1?S(F,W,q,se,he,ge,Te,Se,Ce):Ae&6?j(F,W,q,se,he,ge,Te,Se,Ce):(Ae&64||Ae&128)&&pe.process(F,W,q,se,he,ge,Te,Se,Ce,de)}Be!=null&&he&&og(Be,F&&F.ref,ge,W||F,!W)},_=(F,W,q,se)=>{if(F==null)r(W.el=a(W.children),q,se);else{const he=W.el=F.el;W.children!==F.children&&c(he,W.children)}},y=(F,W,q,se)=>{F==null?r(W.el=u(W.children||""),q,se):W.el=F.el},C=(F,W,q,se)=>{[F.el,F.anchor]=b(F.children,W,q,se,F.el,F.anchor)},A=({el:F,anchor:W},q,se)=>{let he;for(;F&&F!==W;)he=g(F),r(F,q,se),F=he;r(W,q,se)},x=({el:F,anchor:W})=>{let q;for(;F&&F!==W;)q=g(F),i(F),F=q;i(W)},S=(F,W,q,se,he,ge,Te,Se,Ce)=>{Te=Te||W.type==="svg",F==null?M(W,q,se,he,ge,Te,Se,Ce):$(F,W,he,ge,Te,Se,Ce)},M=(F,W,q,se,he,ge,Te,Se)=>{let Ce,pe;const{type:Be,props:Ae,shapeFlag:re,transition:Me,dirs:Ue}=F;if(Ce=F.el=o(F.type,ge,Ae&&Ae.is,Ae),re&8?d(Ce,F.children):re&16&&T(F.children,Ce,null,se,he,ge&&Be!=="foreignObject",Te,Se),Ue&&ao(F,null,se,"created"),P(Ce,F,F.scopeId,Te,se),Ae){for(const ot in Ae)ot!=="value"&&!bf(ot)&&s(Ce,ot,null,Ae[ot],ge,F.children,se,he,Ne);"value"in Ae&&s(Ce,"value",null,Ae.value),(pe=Ae.onVnodeBeforeMount)&&hi(pe,se,F)}Ue&&ao(F,null,se,"beforeMount");const at=(!he||he&&!he.pendingBranch)&&Me&&!Me.persisted;at&&Me.beforeEnter(Ce),r(Ce,W,q),((pe=Ae&&Ae.onVnodeMounted)||at||Ue)&&sr(()=>{pe&&hi(pe,se,F),at&&Me.enter(Ce),Ue&&ao(F,null,se,"mounted")},he)},P=(F,W,q,se,he)=>{if(q&&m(F,q),se)for(let ge=0;ge{for(let pe=Ce;pe{const Se=W.el=F.el;let{patchFlag:Ce,dynamicChildren:pe,dirs:Be}=W;Ce|=F.patchFlag&16;const Ae=F.props||Jt,re=W.props||Jt;let Me;q&&lo(q,!1),(Me=re.onVnodeBeforeUpdate)&&hi(Me,q,W,F),Be&&ao(W,F,q,"beforeUpdate"),q&&lo(q,!0);const Ue=he&&W.type!=="foreignObject";if(pe?z(F.dynamicChildren,pe,Se,q,se,Ue,ge):Te||ie(F,W,Se,null,q,se,Ue,ge,!1),Ce>0){if(Ce&16)V(Se,W,Ae,re,q,se,he);else if(Ce&2&&Ae.class!==re.class&&s(Se,"class",null,re.class,he),Ce&4&&s(Se,"style",Ae.style,re.style,he),Ce&8){const at=W.dynamicProps;for(let ot=0;ot{Me&&hi(Me,q,W,F),Be&&ao(W,F,q,"updated")},se)},z=(F,W,q,se,he,ge,Te)=>{for(let Se=0;Se{if(q!==se){if(q!==Jt)for(const Se in q)!bf(Se)&&!(Se in se)&&s(F,Se,q[Se],null,Te,W.children,he,ge,Ne);for(const Se in se){if(bf(Se))continue;const Ce=se[Se],pe=q[Se];Ce!==pe&&Se!=="value"&&s(F,Se,pe,Ce,Te,W.children,he,ge,Ne)}"value"in se&&s(F,"value",q.value,se.value)}},R=(F,W,q,se,he,ge,Te,Se,Ce)=>{const pe=W.el=F?F.el:a(""),Be=W.anchor=F?F.anchor:a("");let{patchFlag:Ae,dynamicChildren:re,slotScopeIds:Me}=W;Me&&(Se=Se?Se.concat(Me):Me),F==null?(r(pe,q,se),r(Be,q,se),T(W.children,q,Be,he,ge,Te,Se,Ce)):Ae>0&&Ae&64&&re&&F.dynamicChildren?(z(F.dynamicChildren,re,q,he,ge,Te,Se),(W.key!=null||he&&W===he.subTree)&&km(F,W,!0)):ie(F,W,q,Be,he,ge,Te,Se,Ce)},j=(F,W,q,se,he,ge,Te,Se,Ce)=>{W.slotScopeIds=Se,F==null?W.shapeFlag&512?he.ctx.activate(W,q,se,Te,Ce):ue(W,q,se,he,ge,Te,Ce):ce(F,W,Ce)},ue=(F,W,q,se,he,ge,Te)=>{const Se=F.component=H$(F,se,he);if(Td(F)&&(Se.ctx.renderer=de),W$(Se),Se.asyncDep){if(he&&he.registerDep(Se,ne),!F.el){const Ce=Se.subTree=B(ar);y(null,Ce,W,q)}return}ne(Se,F,W,q,he,ge,Te)},ce=(F,W,q)=>{const se=W.component=F.component;if(QI(F,W,q))if(se.asyncDep&&!se.asyncResolved){Q(se,W,q);return}else se.next=W,qI(se.update),se.update();else W.el=F.el,se.vnode=W},ne=(F,W,q,se,he,ge,Te)=>{const Se=()=>{if(F.isMounted){let{next:Be,bu:Ae,u:re,parent:Me,vnode:Ue}=F,at=Be,ot;lo(F,!1),Be?(Be.el=Ue.el,Q(F,Be,Te)):Be=Ue,Ae&&_f(Ae),(ot=Be.props&&Be.props.onVnodeBeforeUpdate)&&hi(ot,Me,Be,Ue),lo(F,!0);const zt=dp(F),Le=F.subTree;F.subTree=zt,v(Le,zt,h(Le.el),Y(Le),F,he,ge),Be.el=zt.el,at===null&&e$(F,zt.el),re&&sr(re,he),(ot=Be.props&&Be.props.onVnodeUpdated)&&sr(()=>hi(ot,Me,Be,Ue),he)}else{let Be;const{el:Ae,props:re}=W,{bm:Me,m:Ue,parent:at}=F,ot=Bl(W);if(lo(F,!1),Me&&_f(Me),!ot&&(Be=re&&re.onVnodeBeforeMount)&&hi(Be,at,W),lo(F,!0),Ae&&We){const zt=()=>{F.subTree=dp(F),We(Ae,F.subTree,F,he,null)};ot?W.type.__asyncLoader().then(()=>!F.isUnmounted&&zt()):zt()}else{const zt=F.subTree=dp(F);v(null,zt,q,se,F,he,ge),W.el=zt.el}if(Ue&&sr(Ue,he),!ot&&(Be=re&&re.onVnodeMounted)){const zt=W;sr(()=>hi(Be,at,zt),he)}(W.shapeFlag&256||at&&Bl(at.vnode)&&at.vnode.shapeFlag&256)&&F.a&&sr(F.a,he),F.isMounted=!0,W=q=se=null}},Ce=F.effect=new mm(Se,()=>Sm(pe),F.scope),pe=F.update=()=>Ce.run();pe.id=F.uid,lo(F,!0),pe()},Q=(F,W,q)=>{W.component=F;const se=F.vnode.props;F.vnode=W,F.next=null,E$(F,W.props,se,q),A$(F,W.children,q),Va(),T0(),ja()},ie=(F,W,q,se,he,ge,Te,Se,Ce=!1)=>{const pe=F&&F.children,Be=F?F.shapeFlag:0,Ae=W.children,{patchFlag:re,shapeFlag:Me}=W;if(re>0){if(re&128){ye(pe,Ae,q,se,he,ge,Te,Se,Ce);return}else if(re&256){ee(pe,Ae,q,se,he,ge,Te,Se,Ce);return}}Me&8?(Be&16&&Ne(pe,he,ge),Ae!==pe&&d(q,Ae)):Be&16?Me&16?ye(pe,Ae,q,se,he,ge,Te,Se,Ce):Ne(pe,he,ge,!0):(Be&8&&d(q,""),Me&16&&T(Ae,q,se,he,ge,Te,Se,Ce))},ee=(F,W,q,se,he,ge,Te,Se,Ce)=>{F=F||ya,W=W||ya;const pe=F.length,Be=W.length,Ae=Math.min(pe,Be);let re;for(re=0;reBe?Ne(F,he,ge,!0,!1,Ae):T(W,q,se,he,ge,Te,Se,Ce,Ae)},ye=(F,W,q,se,he,ge,Te,Se,Ce)=>{let pe=0;const Be=W.length;let Ae=F.length-1,re=Be-1;for(;pe<=Ae&&pe<=re;){const Me=F[pe],Ue=W[pe]=Ce?Os(W[pe]):mi(W[pe]);if(wo(Me,Ue))v(Me,Ue,q,null,he,ge,Te,Se,Ce);else break;pe++}for(;pe<=Ae&&pe<=re;){const Me=F[Ae],Ue=W[re]=Ce?Os(W[re]):mi(W[re]);if(wo(Me,Ue))v(Me,Ue,q,null,he,ge,Te,Se,Ce);else break;Ae--,re--}if(pe>Ae){if(pe<=re){const Me=re+1,Ue=Mere)for(;pe<=Ae;)ke(F[pe],he,ge,!0),pe++;else{const Me=pe,Ue=pe,at=new Map;for(pe=Ue;pe<=re;pe++){const St=W[pe]=Ce?Os(W[pe]):mi(W[pe]);St.key!=null&&at.set(St.key,pe)}let ot,zt=0;const Le=re-Ue+1;let Ke=!1,ct=0;const Qe=new Array(Le);for(pe=0;pe=Le){ke(St,he,ge,!0);continue}let Ft;if(St.key!=null)Ft=at.get(St.key);else for(ot=Ue;ot<=re;ot++)if(Qe[ot-Ue]===0&&wo(St,W[ot])){Ft=ot;break}Ft===void 0?ke(St,he,ge,!0):(Qe[Ft-Ue]=pe+1,Ft>=ct?ct=Ft:Ke=!0,v(St,W[Ft],q,null,he,ge,Te,Se,Ce),zt++)}const xt=Ke?k$(Qe):ya;for(ot=xt.length-1,pe=Le-1;pe>=0;pe--){const St=Ue+pe,Ft=W[St],te=St+1{const{el:ge,type:Te,transition:Se,children:Ce,shapeFlag:pe}=F;if(pe&6){Ee(F.component.subTree,W,q,se);return}if(pe&128){F.suspense.move(W,q,se);return}if(pe&64){Te.move(F,W,q,de);return}if(Te===it){r(ge,W,q);for(let Ae=0;AeSe.enter(ge),he);else{const{leave:Ae,delayLeave:re,afterLeave:Me}=Se,Ue=()=>r(ge,W,q),at=()=>{Ae(ge,()=>{Ue(),Me&&Me()})};re?re(ge,Ue,at):at()}else r(ge,W,q)},ke=(F,W,q,se=!1,he=!1)=>{const{type:ge,props:Te,ref:Se,children:Ce,dynamicChildren:pe,shapeFlag:Be,patchFlag:Ae,dirs:re}=F;if(Se!=null&&og(Se,null,q,F,!0),Be&256){W.ctx.deactivate(F);return}const Me=Be&1&&re,Ue=!Bl(F);let at;if(Ue&&(at=Te&&Te.onVnodeBeforeUnmount)&&hi(at,W,F),Be&6)Ye(F.component,q,se);else{if(Be&128){F.suspense.unmount(q,se);return}Me&&ao(F,null,W,"beforeUnmount"),Be&64?F.type.remove(F,W,q,he,de,se):pe&&(ge!==it||Ae>0&&Ae&64)?Ne(pe,W,q,!1,!0):(ge===it&&Ae&384||!he&&Be&16)&&Ne(Ce,W,q),se&&Ze(F)}(Ue&&(at=Te&&Te.onVnodeUnmounted)||Me)&&sr(()=>{at&&hi(at,W,F),Me&&ao(F,null,W,"unmounted")},q)},Ze=F=>{const{type:W,el:q,anchor:se,transition:he}=F;if(W===it){le(q,se);return}if(W===gp){x(F);return}const ge=()=>{i(q),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(F.shapeFlag&1&&he&&!he.persisted){const{leave:Te,delayLeave:Se}=he,Ce=()=>Te(q,ge);Se?Se(F.el,ge,Ce):Ce()}else ge()},le=(F,W)=>{let q;for(;F!==W;)q=g(F),i(F),F=q;i(W)},Ye=(F,W,q)=>{const{bum:se,scope:he,update:ge,subTree:Te,um:Se}=F;se&&_f(se),he.stop(),ge&&(ge.active=!1,ke(Te,F,W,q)),Se&&sr(Se,W),sr(()=>{F.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Ne=(F,W,q,se=!1,he=!1,ge=0)=>{for(let Te=ge;TeF.shapeFlag&6?Y(F.component.subTree):F.shapeFlag&128?F.suspense.next():g(F.anchor||F.el),oe=(F,W,q)=>{F==null?W._vnode&&ke(W._vnode,null,null,!0):v(W._vnode||null,F,W,null,null,null,q),T0(),iC(),W._vnode=F},de={p:v,um:ke,m:Ee,r:Ze,mt:ue,mc:T,pc:ie,pbc:z,n:Y,o:e};let Oe,We;return t&&([Oe,We]=t(de)),{render:oe,hydrate:Oe,createApp:C$(oe,Oe)}}function lo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function km(e,t,n=!1){const r=e.children,i=t.children;if(He(r)&&He(i))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}const L$=e=>e.__isTeleport,Hl=e=>e&&(e.disabled||e.disabled===""),z0=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ag=(e,t)=>{const n=e&&e.to;return gt(n)?t?t(n):null:n},I$={__isTeleport:!0,process(e,t,n,r,i,s,o,a,u,c){const{mc:d,pc:h,pbc:g,o:{insert:m,querySelector:b,createText:v,createComment:_}}=c,y=Hl(t.props);let{shapeFlag:C,children:A,dynamicChildren:x}=t;if(e==null){const S=t.el=v(""),M=t.anchor=v("");m(S,n,r),m(M,n,r);const P=t.target=ag(t.props,b),T=t.targetAnchor=v("");P&&(m(T,P),o=o||z0(P));const $=(z,V)=>{C&16&&d(A,z,V,i,s,o,a,u)};y?$(n,M):P&&$(P,T)}else{t.el=e.el;const S=t.anchor=e.anchor,M=t.target=e.target,P=t.targetAnchor=e.targetAnchor,T=Hl(e.props),$=T?n:M,z=T?S:P;if(o=o||z0(M),x?(g(e.dynamicChildren,x,$,i,s,o,a),km(e,t,!0)):u||h(e,t,$,z,i,s,o,a,!1),y)T||Wc(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=ag(t.props,b);V&&Wc(t,V,null,c,0)}else T&&Wc(t,M,P,c,1)}OC(t)},remove(e,t,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:u,anchor:c,targetAnchor:d,target:h,props:g}=e;if(h&&s(d),(o||!Hl(g))&&(s(c),a&16))for(let m=0;m0?Qr||ya:null,F$(),fu>0&&Qr&&Qr.push(e),e}function _e(e,t,n,r,i,s){return EC(L(e,t,n,r,i,s,!0))}function Ie(e,t,n,r,i){return EC(B(e,t,n,r,i,!0))}function Oa(e){return e?e.__v_isVNode===!0:!1}function wo(e,t){return e.type===t.type&&e.key===t.key}const Pd="__vInternal",MC=({key:e})=>e??null,wf=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?gt(e)||$t(e)||Je(e)?{i:En,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,s=e===it?0:1,o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&MC(t),ref:t&&wf(t),scopeId:aC,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:En};return a?(Im(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=gt(n)?8:16),fu>0&&!o&&Qr&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&Qr.push(u),u}const B=D$;function D$(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===pC)&&(e=ar),Oa(e)){const a=Zi(e,t,!0);return n&&Im(a,n),fu>0&&!s&&Qr&&(a.shapeFlag&6?Qr[Qr.indexOf(e)]=a:Qr.push(a)),a.patchFlag|=-2,a}if(K$(e)&&(e=e.__vccOpts),t){t=N$(t);let{class:a,style:u}=t;a&&!gt(a)&&(t.class=be(a)),yt(u)&&(Xx(u)&&!He(u)&&(u=gn({},u)),t.style=Nt(u))}const o=gt(e)?1:t$(e)?128:L$(e)?64:yt(e)?4:Je(e)?2:0;return L(e,t,n,r,i,o,s,!0)}function N$(e){return e?Xx(e)||Pd in e?gn({},e):e:null}function Zi(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=e,a=t?Er(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&MC(a),ref:t&&t.ref?n&&i?He(i)?i.concat(wf(t)):[i,wf(t)]:wf(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==it?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Z(e=" ",t=0){return B(Ga,null,e,t)}function Fe(e="",t=!1){return t?(K(),Ie(ar,null,e)):B(ar,null,e)}function mi(e){return e==null||typeof e=="boolean"?B(ar):He(e)?B(it,null,e.slice()):typeof e=="object"?Os(e):B(Ga,null,String(e))}function Os(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zi(e)}function Im(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Im(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Pd in t)?t._ctx=En:i===3&&En&&(En.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:En},n=32):(t=String(t),r&64?(n=16,t=[Z(t)]):n=8);e.children=t,e.shapeFlag|=n}function Er(...e){const t={};for(let n=0;n_n||En;let $m,ca,W0="__VUE_INSTANCE_SETTERS__";(ca=Jp()[W0])||(ca=Jp()[W0]=[]),ca.push(e=>_n=e),$m=e=>{ca.length>1?ca.forEach(t=>t(e)):ca[0](e)};const Ea=e=>{$m(e),e.scope.on()},Lo=()=>{_n&&_n.scope.off(),$m(null)};function TC(e){return e.vnode.shapeFlag&4}let du=!1;function W$(e,t=!1){du=t;const{props:n,children:r}=e.vnode,i=TC(e);O$(e,n,i,t),T$(e,r);const s=i?V$(e,t):void 0;return du=!1,s}function V$(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Od(new Proxy(e.ctx,g$));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?PC(e):null;Ea(e),Va();const s=Ds(r,e,0,[e.props,i]);if(ja(),Lo(),kx(s)){if(s.then(Lo,Lo),t)return s.then(o=>{V0(e,o,t)}).catch(o=>{Ed(o,e,0)});e.asyncDep=s}else V0(e,s,t)}else AC(e,t)}function V0(e,t,n){Je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:yt(t)&&(e.setupState=Qx(t)),AC(e,n)}let j0;function AC(e,t,n){const r=e.type;if(!e.render){if(!t&&j0&&!r.render){const i=r.template||Pm(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:u}=r,c=gn(gn({isCustomElement:s,delimiters:a},o),u);r.render=j0(i,c)}}e.render=r.render||xn}Ea(e),Va(),v$(e),ja(),Lo()}function j$(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return cr(e,"get","$attrs"),t[n]}}))}function PC(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return j$(e)},slots:e.slots,emit:e.emit,expose:t}}function Rd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qx(Od(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zl)return zl[n](e)},has(t,n){return n in t||n in zl}}))}function U$(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function K$(e){return Je(e)&&"__vccOpts"in e}const H=(e,t)=>tC(e,t,du);function Ge(e,t,n){const r=arguments.length;return r===2?yt(t)&&!He(t)?Oa(t)?B(e,null,[t]):B(e,t):B(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Oa(n)&&(n=[n]),B(e,t,n))}const q$=Symbol.for("v-scx"),Y$=()=>qe(q$),G$="3.3.4",X$="http://www.w3.org/2000/svg",xo=typeof document<"u"?document:null,U0=xo&&xo.createElement("template"),J$={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?xo.createElementNS(X$,e):xo.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>xo.createTextNode(e),createComment:e=>xo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{U0.innerHTML=r?`${e}`:e;const a=U0.content;if(r){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Z$(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Q$(e,t,n){const r=e.style,i=gt(n);if(n&&!i){if(t&&!gt(t))for(const s in t)n[s]==null&&lg(r,s,"");for(const s in n)lg(r,s,n[s])}else{const s=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const K0=/\s*!important$/;function lg(e,t,n){if(He(n))n.forEach(r=>lg(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=eF(e,t);K0.test(n)?e.setProperty(jo(r),n.replace(K0,""),"important"):e[r]=n}}const q0=["Webkit","Moz","ms"],mp={};function eF(e,t){const n=mp[t];if(n)return n;let r=ii(t);if(r!=="filter"&&r in e)return mp[t]=r;r=xd(r);for(let i=0;ivp||(oF.then(()=>vp=0),vp=Date.now());function lF(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Nr(uF(r,n.value),t,5,[r])};return n.value=e,n.attached=aF(),n}function uF(e,t){if(He(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const X0=/^on[a-z]/,cF=(e,t,n,r,i=!1,s,o,a,u)=>{t==="class"?Z$(e,r,i):t==="style"?Q$(e,n,r):yd(t)?cm(t)||iF(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fF(e,t,r,i))?nF(e,t,r,s,o,a,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),tF(e,t,r,i))};function fF(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&X0.test(t)&&Je(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||X0.test(t)&>(n)?!1:t in e}const bs="transition",yl="animation",si=(e,{slots:t})=>Ge(s$,kC(e),t);si.displayName="Transition";const RC={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},dF=si.props=gn({},cC,RC),uo=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},J0=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function kC(e){const t={};for(const R in e)R in RC||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,b=hF(i),v=b&&b[0],_=b&&b[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:A,onLeave:x,onLeaveCancelled:S,onBeforeAppear:M=y,onAppear:P=C,onAppearCancelled:T=A}=t,$=(R,j,ue)=>{ws(R,j?d:a),ws(R,j?c:o),ue&&ue()},z=(R,j)=>{R._isLeaving=!1,ws(R,h),ws(R,m),ws(R,g),j&&j()},V=R=>(j,ue)=>{const ce=R?P:C,ne=()=>$(j,R,ue);uo(ce,[j,ne]),Z0(()=>{ws(j,R?u:s),Hi(j,R?d:a),J0(ce)||Q0(j,r,v,ne)})};return gn(t,{onBeforeEnter(R){uo(y,[R]),Hi(R,s),Hi(R,o)},onBeforeAppear(R){uo(M,[R]),Hi(R,u),Hi(R,c)},onEnter:V(!1),onAppear:V(!0),onLeave(R,j){R._isLeaving=!0;const ue=()=>z(R,j);Hi(R,h),IC(),Hi(R,g),Z0(()=>{R._isLeaving&&(ws(R,h),Hi(R,m),J0(x)||Q0(R,r,_,ue))}),uo(x,[R,ue])},onEnterCancelled(R){$(R,!1),uo(A,[R])},onAppearCancelled(R){$(R,!0),uo(T,[R])},onLeaveCancelled(R){z(R),uo(S,[R])}})}function hF(e){if(e==null)return null;if(yt(e))return[bp(e.enter),bp(e.leave)];{const t=bp(e);return[t,t]}}function bp(e){return nI(e)}function Hi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ws(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Z0(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pF=0;function Q0(e,t,n,r){const i=e._endId=++pF,s=()=>{i===e._endId&&r()};if(n)return setTimeout(s,n);const{type:o,timeout:a,propCount:u}=LC(e,t);if(!o)return r();const c=o+"end";let d=0;const h=()=>{e.removeEventListener(c,g),s()},g=m=>{m.target===e&&++d>=u&&h()};setTimeout(()=>{d(n[b]||"").split(", "),i=r(`${bs}Delay`),s=r(`${bs}Duration`),o=e_(i,s),a=r(`${yl}Delay`),u=r(`${yl}Duration`),c=e_(a,u);let d=null,h=0,g=0;t===bs?o>0&&(d=bs,h=o,g=s.length):t===yl?c>0&&(d=yl,h=c,g=u.length):(h=Math.max(o,c),d=h>0?o>c?bs:yl:null,g=d?d===bs?s.length:u.length:0);const m=d===bs&&/\b(transform|all)(,|$)/.test(r(`${bs}Property`).toString());return{type:d,timeout:h,propCount:g,hasTransform:m}}function e_(e,t){for(;e.lengtht_(n)+t_(e[r])))}function t_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function IC(){return document.body.offsetHeight}const $C=new WeakMap,FC=new WeakMap,DC={name:"TransitionGroup",props:gn({},dF,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=kt(),r=uC();let i,s;return Ka(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!_F(i[0].el,n.vnode.el,o))return;i.forEach(vF),i.forEach(bF);const a=i.filter(yF);IC(),a.forEach(u=>{const c=u.el,d=c.style;Hi(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=c._moveCb=g=>{g&&g.target!==c||(!g||/transform$/.test(g.propertyName))&&(c.removeEventListener("transitionend",h),c._moveCb=null,ws(c,o))};c.addEventListener("transitionend",h)})}),()=>{const o=ut(e),a=kC(o);let u=o.tag||it;i=s,s=t.default?Em(t.default()):[];for(let c=0;cdelete e.mode;DC.props;const mF=DC;function vF(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function bF(e){FC.set(e,e.el.getBoundingClientRect())}function yF(e){const t=$C.get(e),n=FC.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${i}px)`,s.transitionDuration="0s",e}}function _F(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=LC(r);return i.removeChild(r),s}const Gf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>_f(t,n):t};function wF(e){e.target.composing=!0}function n_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xF={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Gf(i);const s=r||i.props&&i.props.type==="number";Co(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Xp(a)),e._assign(a)}),n&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",wF),Co(e,"compositionend",n_),Co(e,"change",n_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},s){if(e._assign=Gf(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Xp(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Xf={deep:!0,created(e,t,n){e._assign=Gf(n),Co(e,"change",()=>{const r=e._modelValue,i=CF(e),s=e.checked,o=e._assign;if(He(r)){const a=Fx(r,i),u=a!==-1;if(s&&!u)o(r.concat(i));else if(!s&&u){const c=[...r];c.splice(a,1),o(c)}}else if(_d(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o(NC(e,s))})},mounted:r_,beforeUpdate(e,t,n){e._assign=Gf(n),r_(e,t,n)}};function r_(e,{value:t,oldValue:n},r){e._modelValue=t,He(t)?e.checked=Fx(t,r.props.value)>-1:_d(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Cd(t,NC(e,!0)))}function CF(e){return"_value"in e?e._value:e.value}function NC(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const SF=["ctrl","shift","alt","meta"],OF={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>SF.some(n=>e[`${n}Key`]&&!t.includes(n))},xr=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=jo(n.key);if(t.some(i=>i===r||EF[i]===r))return e(n)},oi={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_l(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),_l(e,!0),r.enter(e)):r.leave(e,()=>{_l(e,!1)}):_l(e,t))},beforeUnmount(e,{value:t}){_l(e,t)}};function _l(e,t){e.style.display=t?e._vod:"none"}const MF=gn({patchProp:cF},J$);let i_;function TF(){return i_||(i_=P$(MF))}const AF=(...e)=>{const t=TF().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=PF(r);if(!i)return;const s=t._component;!Je(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function PF(e){return gt(e)?document.querySelector(e):e}const xf=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},Ki=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const s=e==null?void 0:e(i);if(n===!1||!s)return t==null?void 0:t(i)};var s_;const tn=typeof window<"u",RF=e=>typeof e=="function",kF=e=>typeof e=="string",Jf=()=>{},BC=tn&&((s_=window==null?void 0:window.navigator)==null?void 0:s_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ws(e){return typeof e=="function"?e():O(e)}function zC(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const HC=e=>e();function LF(e,t={}){let n,r,i=Jf;const s=a=>{clearTimeout(a),i(),i=Jf};return a=>{const u=Ws(e),c=Ws(t.maxWait);return n&&s(n),u<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((d,h)=>{i=t.rejectOnCancel?h:d,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,d(a())},u)})}}function IF(e=HC){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:Lu(t),pause:n,resume:r,eventFilter:i}}function $F(e){return e}function Iu(e){return hm()?(pm(e),!0):!1}function FF(e,t=200,n={}){return zC(LF(t,n),e)}function DF(e,t=200,n={}){const r=X(e.value),i=FF(()=>{r.value=e.value},t,n);return Re(e,()=>i()),r}function NF(e){return typeof e=="function"?H(e):X(e)}function WC(e,t=!0){kt()?Lt(e):t?e():vt(e)}function Zf(e,t,n={}){const{immediate:r=!0}=n,i=X(!1);let s=null;function o(){s&&(clearTimeout(s),s=null)}function a(){i.value=!1,o()}function u(...c){o(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=null,e(...c)},Ws(t))}return r&&(i.value=!0,tn&&u()),Iu(a),{isPending:Lu(i),start:u,stop:a}}function BF(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,i=$t(e),s=X(e);function o(a){if(arguments.length)return s.value=a,s.value;{const u=Ws(n);return s.value=s.value===u?Ws(r):u,s.value}}return i?o:[s,o]}var o_=Object.getOwnPropertySymbols,zF=Object.prototype.hasOwnProperty,HF=Object.prototype.propertyIsEnumerable,WF=(e,t)=>{var n={};for(var r in e)zF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&o_)for(var r of o_(e))t.indexOf(r)<0&&HF.call(e,r)&&(n[r]=e[r]);return n};function VF(e,t,n={}){const r=n,{eventFilter:i=HC}=r,s=WF(r,["eventFilter"]);return Re(e,zC(i,t),s)}var jF=Object.defineProperty,UF=Object.defineProperties,KF=Object.getOwnPropertyDescriptors,Qf=Object.getOwnPropertySymbols,VC=Object.prototype.hasOwnProperty,jC=Object.prototype.propertyIsEnumerable,a_=(e,t,n)=>t in e?jF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qF=(e,t)=>{for(var n in t||(t={}))VC.call(t,n)&&a_(e,n,t[n]);if(Qf)for(var n of Qf(t))jC.call(t,n)&&a_(e,n,t[n]);return e},YF=(e,t)=>UF(e,KF(t)),GF=(e,t)=>{var n={};for(var r in e)VC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Qf)for(var r of Qf(e))t.indexOf(r)<0&&jC.call(e,r)&&(n[r]=e[r]);return n};function XF(e,t,n={}){const r=n,{eventFilter:i}=r,s=GF(r,["eventFilter"]),{eventFilter:o,pause:a,resume:u,isActive:c}=IF(i);return{stop:VF(e,t,YF(qF({},s),{eventFilter:o})),pause:a,resume:u,isActive:c}}function Ms(e){var t;const n=Ws(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vs=tn?window:void 0;function yi(...e){let t,n,r,i;if(kF(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=Vs):[t,n,r,i]=e,!t)return Jf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(d=>d()),s.length=0},a=(d,h,g,m)=>(d.addEventListener(h,g,m),()=>d.removeEventListener(h,g,m)),u=Re(()=>[Ms(t),Ws(i)],([d,h])=>{o(),d&&s.push(...n.flatMap(g=>r.map(m=>a(d,g,m,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return Iu(c),c}let l_=!1;function JF(e,t,n={}){const{window:r=Vs,ignore:i=[],capture:s=!0,detectIframe:o=!1}=n;if(!r)return;BC&&!l_&&(l_=!0,Array.from(r.document.body.children).forEach(g=>g.addEventListener("click",Jf)));let a=!0;const u=g=>i.some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(b=>b===g.target||g.composedPath().includes(b));{const b=Ms(m);return b&&(g.target===b||g.composedPath().includes(b))}}),d=[yi(r,"click",g=>{const m=Ms(e);if(!(!m||m===g.target||g.composedPath().includes(m))){if(g.detail===0&&(a=!u(g)),!a){a=!0;return}t(g)}},{passive:!0,capture:s}),yi(r,"pointerdown",g=>{const m=Ms(e);m&&(a=!g.composedPath().includes(m)&&!u(g))},{passive:!0}),o&&yi(r,"blur",g=>{var m;const b=Ms(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&t(g)})].filter(Boolean);return()=>d.forEach(g=>g())}function UC(e,t=!1){const n=X(),r=()=>n.value=!!e();return r(),WC(r,t),n}function ZF(e,t={}){const{window:n=Vs}=t,r=UC(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const s=X(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},a=()=>{r.value&&(o(),i=n.matchMedia(NF(e).value),s.value=i.matches,"addEventListener"in i?i.addEventListener("change",a):i.addListener(a))};return Ns(a),Iu(()=>o()),s}const ug=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cg="__vueuse_ssr_handlers__";ug[cg]=ug[cg]||{};const QF=ug[cg];function KC(e,t){return QF[e]||t}function eD(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var tD=Object.defineProperty,u_=Object.getOwnPropertySymbols,nD=Object.prototype.hasOwnProperty,rD=Object.prototype.propertyIsEnumerable,c_=(e,t,n)=>t in e?tD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f_=(e,t)=>{for(var n in t||(t={}))nD.call(t,n)&&c_(e,n,t[n]);if(u_)for(var n of u_(t))rD.call(t,n)&&c_(e,n,t[n]);return e};const iD={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},d_="vueuse-storage";function sD(e,t,n,r={}){var i;const{flush:s="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:d,window:h=Vs,eventFilter:g,onError:m=T=>{console.error(T)}}=r,b=(d?Fs:X)(t);if(!n)try{n=KC("getDefaultStorage",()=>{var T;return(T=Vs)==null?void 0:T.localStorage})()}catch(T){m(T)}if(!n)return b;const v=Ws(t),_=eD(v),y=(i=r.serializer)!=null?i:iD[_],{pause:C,resume:A}=XF(b,()=>x(b.value),{flush:s,deep:o,eventFilter:g});return h&&a&&(yi(h,"storage",P),yi(h,d_,M)),P(),b;function x(T){try{if(T==null)n.removeItem(e);else{const $=y.write(T),z=n.getItem(e);z!==$&&(n.setItem(e,$),h&&h.dispatchEvent(new CustomEvent(d_,{detail:{key:e,oldValue:z,newValue:$,storageArea:n}})))}}catch($){m($)}}function S(T){const $=T?T.newValue:n.getItem(e);if($==null)return u&&v!==null&&n.setItem(e,y.write(v)),v;if(!T&&c){const z=y.read($);return RF(c)?c(z,v):_==="object"&&!Array.isArray(z)?f_(f_({},v),z):z}else return typeof $!="string"?$:y.read($)}function M(T){P(T.detail)}function P(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){b.value=v;return}if(!(T&&T.key!==e)){C();try{b.value=S(T)}catch($){m($)}finally{T?vt(A):A()}}}}}function qC(e){return ZF("(prefers-color-scheme: dark)",e)}var oD=Object.defineProperty,h_=Object.getOwnPropertySymbols,aD=Object.prototype.hasOwnProperty,lD=Object.prototype.propertyIsEnumerable,p_=(e,t,n)=>t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uD=(e,t)=>{for(var n in t||(t={}))aD.call(t,n)&&p_(e,n,t[n]);if(h_)for(var n of h_(t))lD.call(t,n)&&p_(e,n,t[n]);return e};function cD(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=Vs,storage:s,storageKey:o="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:u,emitAuto:c}=e,d=uD({auto:"",light:"light",dark:"dark"},e.modes||{}),h=qC({window:i}),g=H(()=>h.value?"dark":"light"),m=u||(o==null?X(r):sD(o,r,s,{window:i,listenToStorageChanges:a})),b=H({get(){return m.value==="auto"&&!c?g.value:m.value},set(C){m.value=C}}),v=KC("updateHTMLAttrs",(C,A,x)=>{const S=i==null?void 0:i.document.querySelector(C);if(S)if(A==="class"){const M=x.split(/\s/g);Object.values(d).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{M.includes(P)?S.classList.add(P):S.classList.remove(P)})}else S.setAttribute(A,x)});function _(C){var A;const x=C==="auto"?g.value:C;v(t,n,(A=d[x])!=null?A:x)}function y(C){e.onChanged?e.onChanged(C,_):_(C)}return Re(b,y,{flush:"post",immediate:!0}),c&&Re(g,()=>y(b.value),{flush:"post"}),WC(()=>y(b.value)),b}var fD=Object.defineProperty,dD=Object.defineProperties,hD=Object.getOwnPropertyDescriptors,g_=Object.getOwnPropertySymbols,pD=Object.prototype.hasOwnProperty,gD=Object.prototype.propertyIsEnumerable,m_=(e,t,n)=>t in e?fD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mD=(e,t)=>{for(var n in t||(t={}))pD.call(t,n)&&m_(e,n,t[n]);if(g_)for(var n of g_(t))gD.call(t,n)&&m_(e,n,t[n]);return e},vD=(e,t)=>dD(e,hD(t));function bD(e={}){const{valueDark:t="dark",valueLight:n="",window:r=Vs}=e,i=cD(vD(mD({},e),{onChanged:(a,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark"):u(a)},modes:{dark:t,light:n}})),s=qC({window:r});return H({get(){return i.value==="dark"},set(a){a===s.value?i.value="auto":i.value=a?"dark":"light"}})}var v_=Object.getOwnPropertySymbols,yD=Object.prototype.hasOwnProperty,_D=Object.prototype.propertyIsEnumerable,wD=(e,t)=>{var n={};for(var r in e)yD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&v_)for(var r of v_(e))t.indexOf(r)<0&&_D.call(e,r)&&(n[r]=e[r]);return n};function js(e,t,n={}){const r=n,{window:i=Vs}=r,s=wD(r,["window"]);let o;const a=UC(()=>i&&"ResizeObserver"in i),u=()=>{o&&(o.disconnect(),o=void 0)},c=Re(()=>Ms(e),h=>{u(),a.value&&i&&h&&(o=new ResizeObserver(t),o.observe(h,s))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return Iu(d),{isSupported:a,stop:d}}var b_;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(b_||(b_={}));var xD=Object.defineProperty,y_=Object.getOwnPropertySymbols,CD=Object.prototype.hasOwnProperty,SD=Object.prototype.propertyIsEnumerable,__=(e,t,n)=>t in e?xD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OD=(e,t)=>{for(var n in t||(t={}))CD.call(t,n)&&__(e,n,t[n]);if(y_)for(var n of y_(t))SD.call(t,n)&&__(e,n,t[n]);return e};const ED={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]};OD({linear:$F},ED);const MD=()=>tn&&/firefox/i.test(window.navigator.userAgent);var TD=typeof global=="object"&&global&&global.Object===Object&&global;const YC=TD;var AD=typeof self=="object"&&self&&self.Object===Object&&self,PD=YC||AD||Function("return this")();const li=PD;var RD=li.Symbol;const zr=RD;var GC=Object.prototype,kD=GC.hasOwnProperty,LD=GC.toString,wl=zr?zr.toStringTag:void 0;function ID(e){var t=kD.call(e,wl),n=e[wl];try{e[wl]=void 0;var r=!0}catch{}var i=LD.call(e);return r&&(t?e[wl]=n:delete e[wl]),i}var $D=Object.prototype,FD=$D.toString;function DD(e){return FD.call(e)}var ND="[object Null]",BD="[object Undefined]",w_=zr?zr.toStringTag:void 0;function Uo(e){return e==null?e===void 0?BD:ND:w_&&w_ in Object(e)?ID(e):DD(e)}function xi(e){return e!=null&&typeof e=="object"}var zD="[object Symbol]";function kd(e){return typeof e=="symbol"||xi(e)&&Uo(e)==zD}function XC(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=b4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function x4(e){return function(){return e}}var C4=function(){try{var e=qo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ed=C4;var S4=ed?function(e,t){return ed(e,"toString",{configurable:!0,enumerable:!1,value:x4(t),writable:!0})}:Fm;const O4=S4;var E4=w4(O4);const QC=E4;function M4(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=L4}function Xa(e){return e!=null&&zm(e.length)&&!Dm(e)}function I4(e,t,n){if(!fr(n))return!1;var r=typeof t;return(r=="number"?Xa(n)&&Ld(t,n.length):r=="string"&&t in n)?$u(n[t],e):!1}function $4(e){return k4(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&I4(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r-1}function JN(e,t){var n=this.__data__,r=Id(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function is(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?Ym(a,t-1,n,r,i):qm(i,a):r||(i[i.length]=a)}return i}function g3(e){var t=e==null?0:e.length;return t?Ym(e,1):[]}function m3(e){return QC(eS(e,void 0,g3),e+"")}var v3=sS(Object.getPrototypeOf,Object);const Gm=v3;var b3="[object Object]",y3=Function.prototype,_3=Object.prototype,oS=y3.toString,w3=_3.hasOwnProperty,x3=oS.call(Object);function C3(e){if(!xi(e)||Uo(e)!=b3)return!1;var t=Gm(e);if(t===null)return!0;var n=w3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&oS.call(n)==x3}function dg(){if(!arguments.length)return[];var e=arguments[0];return Jn(e)?e:[e]}function S3(){this.__data__=new is,this.size=0}function O3(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function E3(e){return this.__data__.get(e)}function M3(e){return this.__data__.has(e)}var T3=200;function A3(e,t){var n=this.__data__;if(n instanceof is){var r=n.__data__;if(!mu||r.lengtha))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,g=!0,m=n&d8?new nd:void 0;for(s.set(e,t),s.set(t,e);++h=t||P<0||h&&T>=s}function y(){var M=xp();if(_(M))return C(M);a=setTimeout(y,v(M))}function C(M){return a=void 0,g&&r?m(M):(r=i=void 0,o)}function A(){a!==void 0&&clearTimeout(a),c=0,r=u=i=a=void 0}function x(){return a===void 0?o:C(xp())}function S(){var M=xp(),P=_(M);if(r=arguments,i=this,u=M,P){if(a===void 0)return b(u);if(h)return clearTimeout(a),a=setTimeout(y,t),m(u)}return a===void 0&&(a=setTimeout(y,t)),o}return S.cancel=A,S.flush=x,S}function vg(e,t,n){(n!==void 0&&!$u(e[t],n)||n===void 0&&!(t in e))&&Nm(e,t,n)}function o5(e){return xi(e)&&Xa(e)}function bg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function a5(e){return Fu(e,Nu(e))}function l5(e,t,n,r,i,s,o){var a=bg(e,n),u=bg(t,n),c=o.get(u);if(c){vg(e,n,c);return}var d=s?s(a,u,n+"",e,t,o):void 0,h=d===void 0;if(h){var g=Jn(u),m=!g&&pu(u),b=!g&&!m&&Vm(u);d=u,g||m||b?Jn(a)?d=a:o5(a)?d=ZC(a):m?(h=!1,d=lS(u,!0)):b?(h=!1,d=dS(u,!0)):d=[]:C3(u)||hu(u)?(d=a,hu(a)?d=a5(a):(!fr(a)||Dm(a))&&(d=hS(u))):h=!1}h&&(o.set(u,d),i(d,u,r,s,o),o.delete(u)),vg(e,n,d)}function xS(e,t,n,r,i){e!==t&&wS(t,function(s,o){if(i||(i=new ni),fr(s))l5(e,t,o,n,xS,r,i);else{var a=r?r(bg(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),vg(e,o,a)}},Nu)}function u5(e,t){var n=-1,r=Xa(e)?Array(e.length):[];return t5(e,function(i,s,o){r[++n]=t(i,s,o)}),r}function c5(e,t){var n=Jn(e)?XC:u5;return n(e,G8(t))}function f5(e,t){return Ym(c5(e,t),1)}function rd(e){for(var t=-1,n=e==null?0:e.length,r={};++te===void 0,Qi=e=>typeof e=="boolean",jn=e=>typeof e=="number",Pa=e=>typeof Element>"u"?!1:e instanceof Element,y5=e=>gt(e)?!Number.isNaN(Number(e)):!1,_5=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Z_=e=>Object.keys(e),Sf=(e,t,n)=>({get value(){return zn(e,t,n)},set value(r){b5(e,t,r)}});class w5 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Us(e,t){throw new w5(`[${e}] ${t}`)}const OS=(e="")=>e.split(" ").filter(t=>!!t.trim()),Io=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Mo=(e,t)=>{!e||!t.trim()||e.classList.add(...OS(t))},$o=(e,t)=>{!e||!t.trim()||e.classList.remove(...OS(t))},_g=(e,t)=>{var n;if(!tn||!e||!t)return"";let r=ii(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[r]:""}catch{return e.style[r]}};function es(e,t="px"){if(!e)return"";if(jn(e)||y5(e))return`${e}${t}`;if(gt(e))return e}let jc;const x5=e=>{var t;if(!tn)return 0;if(jc!==void 0)return jc;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const s=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),jc=r-s,jc};function C5(e,t){if(!tn)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),s=i+t.offsetHeight,o=e.scrollTop,a=o+e.clientHeight;ia&&(e.scrollTop=s-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var Si=(e,t)=>{let n=e.__vccOpts||e;for(let[r,i]of t)n[r]=i;return n},S5={name:"ArrowDown"},O5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},E5=L("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),M5=[E5];function T5(e,t,n,r,i,s){return K(),_e("svg",O5,M5)}var Zm=Si(S5,[["render",T5],["__file","arrow-down.vue"]]),A5={name:"ArrowRight"},P5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},R5=L("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),k5=[R5];function L5(e,t,n,r,i,s){return K(),_e("svg",P5,k5)}var Qm=Si(A5,[["render",L5],["__file","arrow-right.vue"]]),I5={name:"ArrowUp"},$5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},F5=L("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),D5=[F5];function N5(e,t,n,r,i,s){return K(),_e("svg",$5,D5)}var B5=Si(I5,[["render",N5],["__file","arrow-up.vue"]]),z5={name:"CircleCheck"},H5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},W5=L("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),V5=L("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),j5=[W5,V5];function U5(e,t,n,r,i,s){return K(),_e("svg",H5,j5)}var K5=Si(z5,[["render",U5],["__file","circle-check.vue"]]),q5={name:"CircleClose"},Y5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},G5=L("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),X5=L("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),J5=[G5,X5];function Z5(e,t,n,r,i,s){return K(),_e("svg",Y5,J5)}var ev=Si(q5,[["render",Z5],["__file","circle-close.vue"]]),Q5={name:"Close"},e6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},t6=L("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),n6=[t6];function r6(e,t,n,r,i,s){return K(),_e("svg",e6,n6)}var sd=Si(Q5,[["render",r6],["__file","close.vue"]]),i6={name:"Hide"},s6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},o6=L("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),a6=L("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),l6=[o6,a6];function u6(e,t,n,r,i,s){return K(),_e("svg",s6,l6)}var c6=Si(i6,[["render",u6],["__file","hide.vue"]]),f6={name:"Loading"},d6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},h6=L("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),p6=[h6];function g6(e,t,n,r,i,s){return K(),_e("svg",d6,p6)}var tv=Si(f6,[["render",g6],["__file","loading.vue"]]),m6={name:"More"},v6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},b6=L("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),y6=[b6];function _6(e,t,n,r,i,s){return K(),_e("svg",v6,y6)}var w6=Si(m6,[["render",_6],["__file","more.vue"]]),x6={name:"View"},C6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},S6=L("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),O6=[S6];function E6(e,t,n,r,i,s){return K(),_e("svg",C6,O6)}var M6=Si(x6,[["render",E6],["__file","view.vue"]]);const ES="__epPropKey",st=e=>e,T6=e=>yt(e)&&!!e[ES],Nd=(e,t)=>{if(!yt(e)||T6(e))return e;const{values:n,required:r,default:i,type:s,validator:o}=e,u={type:s,required:!!r,validator:n||o?c=>{let d=!1,h=[];if(n&&(h=Array.from(n),wt(e,"default")&&h.push(i),d||(d=h.includes(c))),o&&(d||(d=o(c))),!d&&h.length>0){const g=[...new Set(h)].map(m=>JSON.stringify(m)).join(", ");jI(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${g}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[ES]:!0};return wt(e,"default")&&(u.default=i),u},Bt=e=>rd(Object.entries(e).map(([t,n])=>[t,Nd(n,t)])),ei=st([String,Object,Function]),A6={Close:sd},P6={validating:tv,success:K5,error:ev},$n=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Oi=e=>(e.install=xn,e),R6=(...e)=>t=>{e.forEach(n=>{Je(n)?n(t):n.value=t})},Wn={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"},Rn="update:modelValue",MS="change",zu=["","default","small","large"],k6={large:40,default:32,small:24},L6=e=>k6[e||"default"],I6=e=>["",...zu].includes(e);var Of=(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))(Of||{});const Ef=e=>{const t=He(e)?e:[e],n=[];return t.forEach(r=>{var i;He(r)?n.push(...Ef(r)):Oa(r)&&He(r.children)?n.push(...Ef(r.children)):(n.push(r),Oa(r)&&((i=r.component)!=null&&i.subTree)&&n.push(...Ef(r.component.subTree)))}),n},TS=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),So=e=>e,$6=["class","style"],F6=/^on[A-Z]/,D6=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=H(()=>((n==null?void 0:n.value)||[]).concat($6)),i=kt();return H(i?()=>{var s;return rd(Object.entries((s=i.proxy)==null?void 0:s.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&F6.test(o))))}:()=>({}))},zo=({from:e,replacement:t,scope:n,version:r,ref:i,type:s="API"},o)=>{Re(()=>O(o),a=>{},{immediate:!0})},N6=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=a=>{const u=a.clientX,c=a.clientY,{offsetX:d,offsetY:h}=r,g=e.value.getBoundingClientRect(),m=g.left,b=g.top,v=g.width,_=g.height,y=document.documentElement.clientWidth,C=document.documentElement.clientHeight,A=-m+d,x=-b+h,S=y-m-v+d,M=C-b-_+h,P=$=>{const z=Math.min(Math.max(d+$.clientX-u,A),S),V=Math.min(Math.max(h+$.clientY-c,x),M);r={offsetX:z,offsetY:V},e.value.style.transform=`translate(${es(z)}, ${es(V)})`},T=()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",T)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};Lt(()=>{Ns(()=>{n.value?s():o()})}),Tn(()=>{o()})},B6=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var z6={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},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"},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"},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"}}};const H6=e=>(t,n)=>W6(t,n,O(e)),W6=(e,t,n)=>zn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var s;return`${(s=t==null?void 0:t[i])!=null?s:`{${i}}`}`}),V6=e=>{const t=H(()=>O(e).name),n=$t(e)?e:X(e);return{lang:t,locale:n,t:H6(e)}},AS=Symbol("localeContextKey"),Yo=e=>{const t=e||qe(AS,X());return V6(H(()=>t.value||z6))},wg="el",j6="is-",co=(e,t,n,r,i)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),i&&(s+=`--${i}`),s},PS=Symbol("namespaceContextKey"),nv=e=>{const t=e||qe(PS,X(wg));return H(()=>O(t)||wg)},et=(e,t)=>{const n=nv(t);return{namespace:n,b:(v="")=>co(n.value,e,v,"",""),e:v=>v?co(n.value,e,"",v,""):"",m:v=>v?co(n.value,e,"","",v):"",be:(v,_)=>v&&_?co(n.value,e,v,_,""):"",em:(v,_)=>v&&_?co(n.value,e,"",v,_):"",bm:(v,_)=>v&&_?co(n.value,e,v,"",_):"",bem:(v,_,y)=>v&&_&&y?co(n.value,e,v,_,y):"",is:(v,..._)=>{const y=_.length>=1?_[0]:!0;return v&&y?`${j6}${v}`:""},cssVar:v=>{const _={};for(const y in v)v[y]&&(_[`--${n.value}-${y}`]=v[y]);return _},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const _={};for(const y in v)v[y]&&(_[`--${n.value}-${e}-${y}`]=v[y]);return _},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},U6=(e,t={})=>{$t(e)||Us("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||et("popup"),r=tC(()=>n.bm("parent","hidden"));if(!tn||Io(document.body,r.value))return;let i=0,s=!1,o="0";const a=()=>{setTimeout(()=>{$o(document==null?void 0:document.body,r.value),s&&document&&(document.body.style.width=o)},200)};Re(e,u=>{if(!u){a();return}s=!Io(document.body,r.value),s&&(o=document.body.style.width),i=x5(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||d==="scroll")&&s&&(document.body.style.width=`calc(100% - ${i}px)`),Mo(document.body,r.value)}),pm(()=>a())},K6=Nd({type:st(Boolean),default:null}),q6=Nd({type:st(Function)}),RS=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:K6,[n]:q6};return{useModelToggle:({indicator:o,toggleReason:a,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:h})=>{const g=kt(),{emit:m}=g,b=g.props,v=H(()=>Je(b[n])),_=H(()=>b[e]===null),y=P=>{o.value!==!0&&(o.value=!0,a&&(a.value=P),Je(d)&&d(P))},C=P=>{o.value!==!1&&(o.value=!1,a&&(a.value=P),Je(h)&&h(P))},A=P=>{if(b.disabled===!0||Je(c)&&!c())return;const T=v.value&&tn;T&&m(t,!0),(_.value||!T)&&y(P)},x=P=>{if(b.disabled===!0||!tn)return;const T=v.value&&tn;T&&m(t,!1),(_.value||!T)&&C(P)},S=P=>{Qi(P)&&(b.disabled&&P?v.value&&m(t,!1):o.value!==P&&(P?y():C()))},M=()=>{o.value?x():A()};return Re(()=>b[e],S),u&&g.appContext.config.globalProperties.$route!==void 0&&Re(()=>({...g.proxy.$route}),()=>{u.value&&o.value&&x()}),Lt(()=>{S(b[e])}),{hide:x,show:A,toggle:M,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}};RS("modelValue");const kS=e=>{const t=kt();return H(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var lr="top",Hr="bottom",Wr="right",ur="left",rv="auto",Hu=[lr,Hr,Wr,ur],Ra="start",bu="end",Y6="clippingParents",LS="viewport",xl="popper",G6="reference",Q_=Hu.reduce(function(e,t){return e.concat([t+"-"+Ra,t+"-"+bu])},[]),Bd=[].concat(Hu,[rv]).reduce(function(e,t){return e.concat([t,t+"-"+Ra,t+"-"+bu])},[]),X6="beforeRead",J6="read",Z6="afterRead",Q6="beforeMain",ez="main",tz="afterMain",nz="beforeWrite",rz="write",iz="afterWrite",sz=[X6,J6,Z6,Q6,ez,tz,nz,rz,iz];function Ci(e){return e?(e.nodeName||"").toLowerCase():null}function ui(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ka(e){var t=ui(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=ui(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function iv(e){if(typeof ShadowRoot>"u")return!1;var t=ui(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!Br(s)||!Ci(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function az(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(u,c){return u[c]="",u},{});!Br(i)||!Ci(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}var IS={name:"applyStyles",enabled:!0,phase:"write",fn:oz,effect:az,requires:["computeStyles"]};function _i(e){return e.split("-")[0]}var Fo=Math.max,od=Math.min,La=Math.round;function Ia(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(Br(e)&&t){var s=e.offsetHeight,o=e.offsetWidth;o>0&&(r=La(n.width)/o||1),s>0&&(i=La(n.height)/s||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function sv(e){var t=Ia(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $S(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return ui(e).getComputedStyle(e)}function lz(e){return["table","td","th"].indexOf(Ci(e))>=0}function Xs(e){return((ka(e)?e.ownerDocument:e.document)||window.document).documentElement}function zd(e){return Ci(e)==="html"?e:e.assignedSlot||e.parentNode||(iv(e)?e.host:null)||Xs(e)}function e1(e){return!Br(e)||ts(e).position==="fixed"?null:e.offsetParent}function uz(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Br(e)){var r=ts(e);if(r.position==="fixed")return null}var i=zd(e);for(iv(i)&&(i=i.host);Br(i)&&["html","body"].indexOf(Ci(i))<0;){var s=ts(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Wu(e){for(var t=ui(e),n=e1(e);n&&lz(n)&&ts(n).position==="static";)n=e1(n);return n&&(Ci(n)==="html"||Ci(n)==="body"&&ts(n).position==="static")?t:n||uz(e)||t}function ov(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jl(e,t,n){return Fo(e,od(t,n))}function cz(e,t,n){var r=jl(e,t,n);return r>n?n:r}function FS(){return{top:0,right:0,bottom:0,left:0}}function DS(e){return Object.assign({},FS(),e)}function NS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,DS(typeof e!="number"?e:NS(e,Hu))};function dz(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=_i(n.placement),u=ov(a),c=[ur,Wr].indexOf(a)>=0,d=c?"height":"width";if(!(!s||!o)){var h=fz(i.padding,n),g=sv(s),m=u==="y"?lr:ur,b=u==="y"?Hr:Wr,v=n.rects.reference[d]+n.rects.reference[u]-o[u]-n.rects.popper[d],_=o[u]-n.rects.reference[u],y=Wu(s),C=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,A=v/2-_/2,x=h[m],S=C-g[d]-h[b],M=C/2-g[d]/2+A,P=jl(x,M,S),T=u;n.modifiersData[r]=(t={},t[T]=P,t.centerOffset=P-M,t)}}function hz(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!$S(t.elements.popper,i)||(t.elements.arrow=i))}var pz={name:"arrow",enabled:!0,phase:"main",fn:dz,effect:hz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $a(e){return e.split("-")[1]}var gz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mz(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:La(t*i)/i||0,y:La(n*i)/i||0}}function t1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,g=o.x,m=g===void 0?0:g,b=o.y,v=b===void 0?0:b,_=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=_.x,v=_.y;var y=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),A=ur,x=lr,S=window;if(c){var M=Wu(n),P="clientHeight",T="clientWidth";if(M===ui(n)&&(M=Xs(n),ts(M).position!=="static"&&a==="absolute"&&(P="scrollHeight",T="scrollWidth")),M=M,i===lr||(i===ur||i===Wr)&&s===bu){x=Hr;var $=h&&M===S&&S.visualViewport?S.visualViewport.height:M[P];v-=$-r.height,v*=u?1:-1}if(i===ur||(i===lr||i===Hr)&&s===bu){A=Wr;var z=h&&M===S&&S.visualViewport?S.visualViewport.width:M[T];m-=z-r.width,m*=u?1:-1}}var V=Object.assign({position:a},c&&gz),R=d===!0?mz({x:m,y:v}):{x:m,y:v};if(m=R.x,v=R.y,u){var j;return Object.assign({},V,(j={},j[x]=C?"0":"",j[A]=y?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",j))}return Object.assign({},V,(t={},t[x]=C?v+"px":"",t[A]=y?m+"px":"",t.transform="",t))}function vz(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,u=a===void 0?!0:a,c={placement:_i(t.placement),variation:$a(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,t1(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,t1(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var BS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vz,data:{}},Uc={passive:!0};function bz(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,u=ui(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",n.update,Uc)}),a&&u.addEventListener("resize",n.update,Uc),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Uc)}),a&&u.removeEventListener("resize",n.update,Uc)}}var zS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bz,data:{}},yz={left:"right",right:"left",bottom:"top",top:"bottom"};function Mf(e){return e.replace(/left|right|bottom|top/g,function(t){return yz[t]})}var _z={start:"end",end:"start"};function n1(e){return e.replace(/start|end/g,function(t){return _z[t]})}function av(e){var t=ui(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function lv(e){return Ia(Xs(e)).left+av(e).scrollLeft}function wz(e){var t=ui(e),n=Xs(e),r=t.visualViewport,i=n.clientWidth,s=n.clientHeight,o=0,a=0;return r&&(i=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,a=r.offsetTop)),{width:i,height:s,x:o+lv(e),y:a}}function xz(e){var t,n=Xs(e),r=av(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Fo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Fo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+lv(e),u=-r.scrollTop;return ts(i||n).direction==="rtl"&&(a+=Fo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:u}}function uv(e){var t=ts(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function HS(e){return["html","body","#document"].indexOf(Ci(e))>=0?e.ownerDocument.body:Br(e)&&uv(e)?e:HS(zd(e))}function Ul(e,t){var n;t===void 0&&(t=[]);var r=HS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ui(r),o=i?[s].concat(s.visualViewport||[],uv(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Ul(zd(o)))}function xg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cz(e){var t=Ia(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 r1(e,t){return t===LS?xg(wz(e)):ka(t)?Cz(t):xg(xz(Xs(e)))}function Sz(e){var t=Ul(zd(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&Br(e)?Wu(e):e;return ka(r)?t.filter(function(i){return ka(i)&&$S(i,r)&&Ci(i)!=="body"}):[]}function Oz(e,t,n){var r=t==="clippingParents"?Sz(e):[].concat(t),i=[].concat(r,[n]),s=i[0],o=i.reduce(function(a,u){var c=r1(e,u);return a.top=Fo(c.top,a.top),a.right=od(c.right,a.right),a.bottom=od(c.bottom,a.bottom),a.left=Fo(c.left,a.left),a},r1(e,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function WS(e){var t=e.reference,n=e.element,r=e.placement,i=r?_i(r):null,s=r?$a(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(i){case lr:u={x:o,y:t.y-n.height};break;case Hr:u={x:o,y:t.y+t.height};break;case Wr:u={x:t.x+t.width,y:a};break;case ur:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=i?ov(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case Ra:u[c]=u[c]-(t[d]/2-n[d]/2);break;case bu:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function yu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.boundary,o=s===void 0?Y6:s,a=n.rootBoundary,u=a===void 0?LS:a,c=n.elementContext,d=c===void 0?xl:c,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,v=DS(typeof b!="number"?b:NS(b,Hu)),_=d===xl?G6:xl,y=e.rects.popper,C=e.elements[g?_:d],A=Oz(ka(C)?C:C.contextElement||Xs(e.elements.popper),o,u),x=Ia(e.elements.reference),S=WS({reference:x,element:y,strategy:"absolute",placement:i}),M=xg(Object.assign({},y,S)),P=d===xl?M:x,T={top:A.top-P.top+v.top,bottom:P.bottom-A.bottom+v.bottom,left:A.left-P.left+v.left,right:P.right-A.right+v.right},$=e.modifiersData.offset;if(d===xl&&$){var z=$[i];Object.keys(T).forEach(function(V){var R=[Wr,Hr].indexOf(V)>=0?1:-1,j=[lr,Hr].indexOf(V)>=0?"y":"x";T[V]+=z[j]*R})}return T}function Ez(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Bd:u,d=$a(r),h=d?a?Q_:Q_.filter(function(b){return $a(b)===d}):Hu,g=h.filter(function(b){return c.indexOf(b)>=0});g.length===0&&(g=h);var m=g.reduce(function(b,v){return b[v]=yu(e,{placement:v,boundary:i,rootBoundary:s,padding:o})[_i(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Mz(e){if(_i(e)===rv)return[];var t=Mf(e);return[n1(e),t,n1(t)]}function Tz(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,u=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,g=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,_=t.options.placement,y=_i(_),C=y===_,A=u||(C||!b?[Mf(_)]:Mz(_)),x=[_].concat(A).reduce(function(le,Ye){return le.concat(_i(Ye)===rv?Ez(t,{placement:Ye,boundary:d,rootBoundary:h,padding:c,flipVariations:b,allowedAutoPlacements:v}):Ye)},[]),S=t.rects.reference,M=t.rects.popper,P=new Map,T=!0,$=x[0],z=0;z=0,ce=ue?"width":"height",ne=yu(t,{placement:V,boundary:d,rootBoundary:h,altBoundary:g,padding:c}),Q=ue?j?Wr:ur:j?Hr:lr;S[ce]>M[ce]&&(Q=Mf(Q));var ie=Mf(Q),ee=[];if(s&&ee.push(ne[R]<=0),a&&ee.push(ne[Q]<=0,ne[ie]<=0),ee.every(function(le){return le})){$=V,T=!1;break}P.set(V,ee)}if(T)for(var ye=b?3:1,Ee=function(le){var Ye=x.find(function(Ne){var Y=P.get(Ne);if(Y)return Y.slice(0,le).every(function(oe){return oe})});if(Ye)return $=Ye,"break"},ke=ye;ke>0;ke--){var Ze=Ee(ke);if(Ze==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}var Az={name:"flip",enabled:!0,phase:"main",fn:Tz,requiresIfExists:["offset"],data:{_skip:!1}};function i1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s1(e){return[lr,Wr,Hr,ur].some(function(t){return e[t]>=0})}function Pz(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=yu(t,{elementContext:"reference"}),a=yu(t,{altBoundary:!0}),u=i1(o,r),c=i1(a,i,s),d=s1(u),h=s1(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var Rz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Pz};function kz(e,t,n){var r=_i(e),i=[ur,lr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[ur,Wr].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Lz(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=Bd.reduce(function(d,h){return d[h]=kz(h,t.rects,s),d},{}),a=o[t.placement],u=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}var Iz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lz};function $z(e){var t=e.state,n=e.name;t.modifiersData[n]=WS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var VS={name:"popperOffsets",enabled:!0,phase:"read",fn:$z,data:{}};function Fz(e){return e==="x"?"y":"x"}function Dz(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,g=n.tether,m=g===void 0?!0:g,b=n.tetherOffset,v=b===void 0?0:b,_=yu(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:d}),y=_i(t.placement),C=$a(t.placement),A=!C,x=ov(y),S=Fz(x),M=t.modifiersData.popperOffsets,P=t.rects.reference,T=t.rects.popper,$=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,z=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(M){if(s){var j,ue=x==="y"?lr:ur,ce=x==="y"?Hr:Wr,ne=x==="y"?"height":"width",Q=M[x],ie=Q+_[ue],ee=Q-_[ce],ye=m?-T[ne]/2:0,Ee=C===Ra?P[ne]:T[ne],ke=C===Ra?-T[ne]:-P[ne],Ze=t.elements.arrow,le=m&&Ze?sv(Ze):{width:0,height:0},Ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:FS(),Ne=Ye[ue],Y=Ye[ce],oe=jl(0,P[ne],le[ne]),de=A?P[ne]/2-ye-oe-Ne-z.mainAxis:Ee-oe-Ne-z.mainAxis,Oe=A?-P[ne]/2+ye+oe+Y+z.mainAxis:ke+oe+Y+z.mainAxis,We=t.elements.arrow&&Wu(t.elements.arrow),F=We?x==="y"?We.clientTop||0:We.clientLeft||0:0,W=(j=V==null?void 0:V[x])!=null?j:0,q=Q+de-W-F,se=Q+Oe-W,he=jl(m?od(ie,q):ie,Q,m?Fo(ee,se):ee);M[x]=he,R[x]=he-Q}if(a){var ge,Te=x==="x"?lr:ur,Se=x==="x"?Hr:Wr,Ce=M[S],pe=S==="y"?"height":"width",Be=Ce+_[Te],Ae=Ce-_[Se],re=[lr,ur].indexOf(y)!==-1,Me=(ge=V==null?void 0:V[S])!=null?ge:0,Ue=re?Be:Ce-P[pe]-T[pe]-Me+z.altAxis,at=re?Ce+P[pe]+T[pe]-Me-z.altAxis:Ae,ot=m&&re?cz(Ue,Ce,at):jl(m?Ue:Be,Ce,m?at:Ae);M[S]=ot,R[S]=ot-Ce}t.modifiersData[r]=R}}var Nz={name:"preventOverflow",enabled:!0,phase:"main",fn:Dz,requiresIfExists:["offset"]};function Bz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zz(e){return e===ui(e)||!Br(e)?av(e):Bz(e)}function Hz(e){var t=e.getBoundingClientRect(),n=La(t.width)/e.offsetWidth||1,r=La(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Wz(e,t,n){n===void 0&&(n=!1);var r=Br(t),i=Br(t)&&Hz(t),s=Xs(t),o=Ia(e,i),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Ci(t)!=="body"||uv(s))&&(a=zz(t)),Br(t)?(u=Ia(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=lv(s))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function Vz(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var u=t.get(a);u&&i(u)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function jz(e){var t=Vz(e);return sz.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Uz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Kz(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var o1={placement:"bottom",modifiers:[],strategy:"absolute"};function a1(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=Xz(u);Object.assign(o.value,c)},requires:["computeStyles"]},i=H(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:h}=O(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...h||[],r,{name:"applyStyles",enabled:!1}]}}),s=Fs(),o=X({styles:{popper:{position:O(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return Re(i,u=>{const c=O(s);c&&c.setOptions(u)},{deep:!0}),Re([e,t],([u,c])=>{a(),!(!u||!c)&&(s.value=jS(u,c,O(i)))}),Tn(()=>{a()}),{state:H(()=>{var u;return{...((u=O(s))==null?void 0:u.state)||{}}}),styles:H(()=>O(o).styles),attributes:H(()=>O(o).attributes),update:()=>{var u;return(u=O(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=O(s))==null?void 0:u.forceUpdate()},instanceRef:H(()=>O(s))}};function Xz(e){const t=Object.keys(e.elements),n=rd(t.map(i=>[i,e.styles[i]||{}])),r=rd(t.map(i=>[i,e.attributes[i]]));return{styles:n,attributes:r}}const US=e=>{if(!e)return{onClick:xn,onMousedown:xn,onMouseup:xn};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}};function l1(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return Iu(()=>n()),{registerTimeout:t,cancelTimeout:n}}const u1={prefix:Math.floor(Math.random()*1e4),current:0},Jz=Symbol("elIdInjection"),KS=()=>kt()?qe(Jz,u1):u1,_u=e=>{const t=KS(),n=nv();return H(()=>O(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ma=[];const c1=e=>{const t=e;t.key===Wn.esc&&ma.forEach(n=>n(t))},Zz=e=>{Lt(()=>{ma.length===0&&document.addEventListener("keydown",c1),tn&&ma.push(e)}),Tn(()=>{ma=ma.filter(t=>t!==e),ma.length===0&&tn&&document.removeEventListener("keydown",c1)})};let f1;const qS=()=>{const e=nv(),t=KS(),n=H(()=>`${e.value}-popper-container-${t.prefix}`),r=H(()=>`#${n.value}`);return{id:n,selector:r}},Qz=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},eH=()=>{const{id:e,selector:t}=qS();return Ua(()=>{tn&&!f1&&!document.body.querySelector(t.value)&&(f1=Qz(e.value))}),{id:e,selector:t}},tH=Bt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),YS=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:s}=l1(),{registerTimeout:o,cancelTimeout:a}=l1();return{onOpen:d=>{s(()=>{r(d);const h=O(n);jn(h)&&h>0&&o(()=>{i(d)},h)},O(e))},onClose:d=>{a(),s(()=>{i(d)},O(t))}}},GS=Symbol("elForwardRef"),nH=e=>{on(GS,{setForwardRef:n=>{e.value=n}})},rH=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),d1=X(0),iH=2e3,XS=Symbol("zIndexContextKey"),fv=e=>{const t=e||qe(XS,void 0),n=H(()=>{const s=O(t);return jn(s)?s:iH}),r=H(()=>n.value+d1.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(d1.value++,r.value)}};function sH(e){const t=X();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:s,value:o}=e.value;if(i==null||s==null)return;const a=o.slice(0,Math.max(0,i)),u=o.slice(Math.max(0,s));t.value={selectionStart:i,selectionEnd:s,value:o,beforeTxt:a,afterTxt:u}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:s,afterTxt:o,selectionStart:a}=t.value;if(s==null||o==null||a==null)return;let u=i.length;if(i.endsWith(o))u=i.length-o.length;else if(i.startsWith(s))u=s.length;else{const c=s[a-1],d=i.indexOf(c,a-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,r]}const Ja=Nd({type:String,values:zu,required:!1}),JS=Symbol("size"),oH=()=>{const e=qe(JS,{});return H(()=>O(e.size)||"")},ZS=Symbol(),ad=X();function dv(e,t=void 0){const n=kt()?qe(ZS,ad):ad;return e?H(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}const aH=(e,t,n=!1)=>{var r;const i=!!kt(),s=i?dv():void 0,o=(r=t==null?void 0:t.provide)!=null?r:i?on:void 0;if(!o)return;const a=H(()=>{const u=O(e);return s!=null&&s.value?lH(s.value,u):u});return o(ZS,a),o(AS,H(()=>a.value.locale)),o(PS,H(()=>a.value.namespace)),o(XS,H(()=>a.value.zIndex)),o(JS,{size:H(()=>a.value.size||"")}),(n||!ad.value)&&(ad.value=a.value),a},lH=(e,t)=>{var n;const r=[...new Set([...Z_(e),...Z_(t)])],i={};for(const s of r)i[s]=(n=t[s])!=null?n:e[s];return i},uH=Bt({a11y:{type:Boolean,default:!0},locale:{type:st(Object)},size:Ja,button:{type:st(Object)},experimentalFeatures:{type:st(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:st(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),cH={},fH=De({name:"ElConfigProvider",props:uH,setup(e,{slots:t}){Re(()=>e.message,r=>{Object.assign(cH,r??{})},{immediate:!0,deep:!0});const n=aH(e);return()=>je(t,"default",{config:n==null?void 0:n.value})}}),dH=$n(fH);var At=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const hH=Bt({size:{type:st([Number,String])},color:{type:String}}),pH=De({name:"ElIcon",inheritAttrs:!1}),gH=De({...pH,props:hH,setup(e){const t=e,n=et("icon"),r=H(()=>{const{size:i,color:s}=t;return!i&&!s?{}:{fontSize:id(i)?void 0:es(i),"--color":s}});return(i,s)=>(K(),_e("i",Er({class:O(n).b(),style:O(r)},i.$attrs),[je(i.$slots,"default")],16))}});var mH=At(gH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const kn=$n(mH),Za=Symbol("formContextKey"),Ho=Symbol("formItemContextKey"),ns=(e,t={})=>{const n=X(void 0),r=t.prop?n:kS("size"),i=t.global?n:oH(),s=t.form?{size:void 0}:qe(Za,void 0),o=t.formItem?{size:void 0}:qe(Ho,void 0);return H(()=>r.value||O(e)||(o==null?void 0:o.size)||(s==null?void 0:s.size)||i.value||"")},Hd=e=>{const t=kS("disabled"),n=qe(Za,void 0);return H(()=>t.value||O(e)||(n==null?void 0:n.disabled)||!1)},Qa=()=>{const e=qe(Za,void 0),t=qe(Ho,void 0);return{form:e,formItem:t}},hv=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=X(!1)),r||(r=X(!1));const i=X();let s;const o=H(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return Lt(()=>{s=Re([Dr(e,"id"),n],([a,u])=>{const c=a??(u?void 0:_u().value);c!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!u&&c&&t.addInputId(c)),i.value=c)},{immediate:!0})}),qa(()=>{s&&s(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}},vH=Bt({size:{type:String,values:zu},disabled:Boolean}),bH=Bt({...vH,model:Object,rules:{type:st(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),yH={validate:(e,t,n)=>(He(e)||gt(e))&&Qi(t)&>(n)};function _H(){const e=X([]),t=H(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function n(s){const o=e.value.indexOf(s);return o===-1&&t.value,o}function r(s,o){if(s&&o){const a=n(o);e.value.splice(a,1,s)}else s&&e.value.push(s)}function i(s){const o=n(s);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const Kc=(e,t)=>{const n=dg(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},wH="ElForm",xH=De({name:wH}),CH=De({...xH,props:bH,emits:yH,setup(e,{expose:t,emit:n}){const r=e,i=[],s=ns(),o=et("form"),a=H(()=>{const{labelPosition:C,inline:A}=r;return[o.b(),o.m(s.value||"default"),{[o.m(`label-${C}`)]:C,[o.m("inline")]:A}]}),u=C=>{i.push(C)},c=C=>{C.prop&&i.splice(i.indexOf(C),1)},d=(C=[])=>{r.model&&Kc(i,C).forEach(A=>A.resetField())},h=(C=[])=>{Kc(i,C).forEach(A=>A.clearValidate())},g=H(()=>!!r.model),m=C=>{if(i.length===0)return[];const A=Kc(i,C);return A.length?A:[]},b=async C=>_(void 0,C),v=async(C=[])=>{if(!g.value)return!1;const A=m(C);if(A.length===0)return!0;let x={};for(const S of A)try{await S.validate("")}catch(M){x={...x,...M}}return Object.keys(x).length===0?!0:Promise.reject(x)},_=async(C=[],A)=>{const x=!Je(A);try{const S=await v(C);return S===!0&&(A==null||A(S)),S}catch(S){if(S instanceof Error)throw S;const M=S;return r.scrollToError&&y(Object.keys(M)[0]),A==null||A(!1,M),x&&Promise.reject(M)}},y=C=>{var A;const x=Kc(i,C)[0];x&&((A=x.$el)==null||A.scrollIntoView(r.scrollIntoViewOptions))};return Re(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch(C=>void 0)},{deep:!0}),on(Za,mn({...Gs(r),emit:n,resetFields:d,clearValidate:h,validateField:_,addField:u,removeField:c,..._H()})),t({validate:b,validateField:_,resetFields:d,clearValidate:h,scrollToField:y}),(C,A)=>(K(),_e("form",{class:be(O(a))},[je(C.$slots,"default")],2))}});var SH=At(CH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tf(e,t,n){return EH()?Tf=Reflect.construct.bind():Tf=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&wu(c,o.prototype),c},Tf.apply(null,arguments)}function MH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sg(e){var t=typeof Map=="function"?new Map:void 0;return Sg=function(r){if(r===null||!MH(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Tf(r,arguments,Cg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),wu(i,r)},Sg(e)}var TH=/%[sdj%]/g,AH=function(){};typeof process<"u"&&process.env;function Og(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Sr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=s)return a;switch(a){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return a}});return o}return e}function PH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Cn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||PH(t)&&typeof e=="string"&&!e)}function RH(e,t,n){var r=[],i=0,s=e.length;function o(a){r.push.apply(r,a||[]),i++,i===s&&n(r)}e.forEach(function(a){t(a,o)})}function h1(e,t,n){var r=0,i=e.length;function s(o){if(o&&o.length){n(o);return}var a=r;r=r+1,a()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Rl={integer:function(t){return Rl.number(t)&&parseInt(t,10)===t},float:function(t){return Rl.number(t)&&!Rl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Rl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(v1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(DH())},hex:function(t){return typeof t=="string"&&!!t.match(v1.hex)}},NH=function(t,n,r,i,s){if(t.required&&n===void 0){QS(t,n,r,i,s);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;o.indexOf(a)>-1?Rl[a](n)||i.push(Sr(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&i.push(Sr(s.messages.types[a],t.fullField,t.type))},BH=function(t,n,r,i,s){var o=typeof t.len=="number",a=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,g=typeof n=="number",m=typeof n=="string",b=Array.isArray(n);if(g?h="number":m?h="string":b&&(h="array"),!h)return!1;b&&(d=n.length),m&&(d=n.replace(c,"_").length),o?d!==t.len&&i.push(Sr(s.messages[h].len,t.fullField,t.len)):a&&!u&&dt.max?i.push(Sr(s.messages[h].max,t.fullField,t.max)):a&&u&&(dt.max)&&i.push(Sr(s.messages[h].range,t.fullField,t.min,t.max))},fa="enum",zH=function(t,n,r,i,s){t[fa]=Array.isArray(t[fa])?t[fa]:[],t[fa].indexOf(n)===-1&&i.push(Sr(s.messages[fa],t.fullField,t[fa].join(", ")))},HH=function(t,n,r,i,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Sr(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(Sr(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Mt={required:QS,whitespace:FH,type:NH,range:BH,enum:zH,pattern:HH},WH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n,"string")&&!t.required)return r();Mt.required(t,n,i,o,s,"string"),Cn(n,"string")||(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s),Mt.pattern(t,n,i,o,s),t.whitespace===!0&&Mt.whitespace(t,n,i,o,s))}r(o)},VH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&Mt.type(t,n,i,o,s)}r(o)},jH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s))}r(o)},UH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&Mt.type(t,n,i,o,s)}r(o)},KH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),Cn(n)||Mt.type(t,n,i,o,s)}r(o)},qH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s))}r(o)},YH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s))}r(o)},GH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Mt.required(t,n,i,o,s,"array"),n!=null&&(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s))}r(o)},XH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&Mt.type(t,n,i,o,s)}r(o)},JH="enum",ZH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&Mt[JH](t,n,i,o,s)}r(o)},QH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n,"string")&&!t.required)return r();Mt.required(t,n,i,o,s),Cn(n,"string")||Mt.pattern(t,n,i,o,s)}r(o)},eW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n,"date")&&!t.required)return r();if(Mt.required(t,n,i,o,s),!Cn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Mt.type(t,u,i,o,s),u&&Mt.range(t,u.getTime(),i,o,s)}}r(o)},tW=function(t,n,r,i,s){var o=[],a=Array.isArray(n)?"array":typeof n;Mt.required(t,n,i,o,s,a),r(o)},Cp=function(t,n,r,i,s){var o=t.type,a=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Cn(n,o)&&!t.required)return r();Mt.required(t,n,i,a,s,o),Cn(n,o)||Mt.type(t,n,i,a,s)}r(a)},nW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s)}r(o)},Kl={string:WH,method:VH,number:jH,boolean:UH,regexp:KH,integer:qH,float:YH,array:GH,object:XH,enum:ZH,pattern:QH,date:eW,url:Cp,hex:Cp,email:Cp,required:tW,any:nW};function Eg(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Mg=Eg(),Vu=function(){function e(n){this.rules=null,this._messages=Mg,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var o=r[s];i.rules[s]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=m1(Eg(),r)),this._messages},t.validate=function(r,i,s){var o=this;i===void 0&&(i={}),s===void 0&&(s=function(){});var a=r,u=i,c=s;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function d(v){var _=[],y={};function C(x){if(Array.isArray(x)){var S;_=(S=_).concat.apply(S,x)}else _.push(x)}for(var A=0;A");const i=et("form"),s=X(),o=X(0),a=()=>{var d;if((d=s.value)!=null&&d.firstElementChild){const h=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(h))}else return 0},u=(d="update")=>{vt(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=a():d==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},c=()=>u("update");return Lt(()=>{c()}),Tn(()=>{u("remove")}),Ka(()=>c()),Re(o,(d,h)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,h))}),js(H(()=>{var d,h;return(h=(d=s.value)==null?void 0:d.firstElementChild)!=null?h:null}),c),()=>{var d,h;if(!t)return null;const{isAutoWidth:g}=e;if(g){const m=n==null?void 0:n.autoLabelWidth,b=r==null?void 0:r.hasLabel,v={};if(b&&m&&m!=="auto"){const _=Math.max(0,Number.parseInt(m,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";_&&(v[y]=`${_}px`)}return B("div",{ref:s,class:[i.be("item","label-wrap")],style:v},[(d=t.default)==null?void 0:d.call(t)])}else return B(it,{ref:s},[(h=t.default)==null?void 0:h.call(t)])}}});const oW=["role","aria-labelledby"],aW=De({name:"ElFormItem"}),lW=De({...aW,props:iW,setup(e,{expose:t}){const n=e,r=Ya(),i=qe(Za,void 0),s=qe(Ho,void 0),o=ns(void 0,{formItem:!1}),a=et("form-item"),u=_u().value,c=X([]),d=X(""),h=DF(d,100),g=X(""),m=X();let b,v=!1;const _=H(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const Y=es(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return Y?{width:Y}:{}}),y=H(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!n.label&&!n.labelWidth&&$)return{};const Y=es(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Y}:{}}),C=H(()=>[a.b(),a.m(o.value),a.is("error",d.value==="error"),a.is("validating",d.value==="validating"),a.is("success",d.value==="success"),a.is("required",ue.value||n.required),a.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:i==null?void 0:i.statusIcon}]),A=H(()=>Qi(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),x=H(()=>[a.e("error"),{[a.em("error","inline")]:A.value}]),S=H(()=>n.prop?gt(n.prop)?n.prop:n.prop.join("."):""),M=H(()=>!!(n.label||r.label)),P=H(()=>n.for||c.value.length===1?c.value[0]:void 0),T=H(()=>!P.value&&M.value),$=!!s,z=H(()=>{const Y=i==null?void 0:i.model;if(!(!Y||!n.prop))return Sf(Y,n.prop).value}),V=H(()=>{const{required:Y}=n,oe=[];n.rules&&oe.push(...dg(n.rules));const de=i==null?void 0:i.rules;if(de&&n.prop){const Oe=Sf(de,n.prop).value;Oe&&oe.push(...dg(Oe))}if(Y!==void 0){const Oe=oe.map((We,F)=>[We,F]).filter(([We])=>Object.keys(We).includes("required"));if(Oe.length>0)for(const[We,F]of Oe)We.required!==Y&&(oe[F]={...We,required:Y});else oe.push({required:Y})}return oe}),R=H(()=>V.value.length>0),j=Y=>V.value.filter(de=>!de.trigger||!Y?!0:Array.isArray(de.trigger)?de.trigger.includes(Y):de.trigger===Y).map(({trigger:de,...Oe})=>Oe),ue=H(()=>V.value.some(Y=>Y.required)),ce=H(()=>{var Y;return h.value==="error"&&n.showMessage&&((Y=i==null?void 0:i.showMessage)!=null?Y:!0)}),ne=H(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),Q=Y=>{d.value=Y},ie=Y=>{var oe,de;const{errors:Oe,fields:We}=Y;(!Oe||!We)&&console.error(Y),Q("error"),g.value=Oe?(de=(oe=Oe==null?void 0:Oe[0])==null?void 0:oe.message)!=null?de:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,g.value)},ee=()=>{Q("success"),i==null||i.emit("validate",n.prop,!0,"")},ye=async Y=>{const oe=S.value;return new Vu({[oe]:Y}).validate({[oe]:z.value},{firstFields:!0}).then(()=>(ee(),!0)).catch(Oe=>(ie(Oe),Promise.reject(Oe)))},Ee=async(Y,oe)=>{if(v||!n.prop)return!1;const de=Je(oe);if(!R.value)return oe==null||oe(!1),!1;const Oe=j(Y);return Oe.length===0?(oe==null||oe(!0),!0):(Q("validating"),ye(Oe).then(()=>(oe==null||oe(!0),!0)).catch(We=>{const{fields:F}=We;return oe==null||oe(!1,F),de?!1:Promise.reject(F)}))},ke=()=>{Q(""),g.value="",v=!1},Ze=async()=>{const Y=i==null?void 0:i.model;if(!Y||!n.prop)return;const oe=Sf(Y,n.prop);v=!0,oe.value=q_(b),await vt(),ke(),v=!1},le=Y=>{c.value.includes(Y)||c.value.push(Y)},Ye=Y=>{c.value=c.value.filter(oe=>oe!==Y)};Re(()=>n.error,Y=>{g.value=Y||"",Q(Y?"error":"")},{immediate:!0}),Re(()=>n.validateStatus,Y=>Q(Y||""));const Ne=mn({...Gs(n),$el:m,size:o,validateState:d,labelId:u,inputIds:c,isGroup:T,hasLabel:M,addInputId:le,removeInputId:Ye,resetField:Ze,clearValidate:ke,validate:Ee});return on(Ho,Ne),Lt(()=>{n.prop&&(i==null||i.addField(Ne),b=q_(z.value))}),Tn(()=>{i==null||i.removeField(Ne)}),t({size:o,validateMessage:g,validateState:d,validate:Ee,clearValidate:ke,resetField:Ze}),(Y,oe)=>{var de;return K(),_e("div",{ref_key:"formItemRef",ref:m,class:be(O(C)),role:O(T)?"group":void 0,"aria-labelledby":O(T)?O(u):void 0},[B(O(sW),{"is-auto-width":O(_).width==="auto","update-all":((de=O(i))==null?void 0:de.labelWidth)==="auto"},{default:D(()=>[O(M)?(K(),Ie(Vn(O(P)?"label":"div"),{key:0,id:O(u),for:O(P),class:be(O(a).e("label")),style:Nt(O(_))},{default:D(()=>[je(Y.$slots,"label",{label:O(ne)},()=>[Z(bt(O(ne)),1)])]),_:3},8,["id","for","class","style"])):Fe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),L("div",{class:be(O(a).e("content")),style:Nt(O(y))},[je(Y.$slots,"default"),B(mF,{name:`${O(a).namespace.value}-zoom-in-top`},{default:D(()=>[O(ce)?je(Y.$slots,"error",{key:0,error:g.value},()=>[L("div",{class:be(O(x))},bt(g.value),3)]):Fe("v-if",!0)]),_:3},8,["name"])],6)],10,oW)}}});var e2=At(lW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const uW=$n(SH,{FormItem:e2});Oi(e2);let Xr;const cW=` + height:0 !important; + visibility:hidden !important; + ${MD()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,fW=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function dW(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:fW.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function y1(e,t=1,n){var r;Xr||(Xr=document.createElement("textarea"),document.body.appendChild(Xr));const{paddingSize:i,borderSize:s,boxSizing:o,contextStyle:a}=dW(e);Xr.setAttribute("style",`${a};${cW}`),Xr.value=e.value||e.placeholder||"";let u=Xr.scrollHeight;const c={};o==="border-box"?u=u+s:o==="content-box"&&(u=u-i),Xr.value="";const d=Xr.scrollHeight-i;if(jn(t)){let h=d*t;o==="border-box"&&(h=h+i+s),u=Math.max(h,u),c.minHeight=`${h}px`}if(jn(n)){let h=d*n;o==="border-box"&&(h=h+i+s),u=Math.min(h,u)}return c.height=`${u}px`,(r=Xr.parentNode)==null||r.removeChild(Xr),Xr=void 0,c}const hW=Bt({id:{type:String,default:void 0},size:Ja,disabled:Boolean,modelValue:{type:st([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:st([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:ei},prefixIcon:{type:ei},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:st([Object,Array,String]),default:()=>So({})}}),pW={[Rn]:e=>gt(e),input:e=>gt(e),change:e=>gt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},gW=["role"],mW=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],vW=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],bW=De({name:"ElInput",inheritAttrs:!1}),yW=De({...bW,props:hW,emits:pW,setup(e,{expose:t,emit:n}){const r=e,i=m$(),s=Ya(),o=H(()=>{const re={};return r.containerRole==="combobox"&&(re["aria-haspopup"]=i["aria-haspopup"],re["aria-owns"]=i["aria-owns"],re["aria-expanded"]=i["aria-expanded"]),re}),a=H(()=>[r.type==="textarea"?_.b():v.b(),v.m(m.value),v.is("disabled",b.value),v.is("exceed",Ee.value),{[v.b("group")]:s.prepend||s.append,[v.bm("group","append")]:s.append,[v.bm("group","prepend")]:s.prepend,[v.m("prefix")]:s.prefix||r.prefixIcon,[v.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:Q.value&&ie.value},i.class]),u=H(()=>[v.e("wrapper"),v.is("focus",A.value)]),c=D6({excludeKeys:H(()=>Object.keys(o.value))}),{form:d,formItem:h}=Qa(),{inputId:g}=hv(r,{formItemContext:h}),m=ns(),b=Hd(),v=et("input"),_=et("textarea"),y=Fs(),C=Fs(),A=X(!1),x=X(!1),S=X(!1),M=X(!1),P=X(),T=Fs(r.inputStyle),$=H(()=>y.value||C.value),z=H(()=>{var re;return(re=d==null?void 0:d.statusIcon)!=null?re:!1}),V=H(()=>(h==null?void 0:h.validateState)||""),R=H(()=>V.value&&P6[V.value]),j=H(()=>M.value?M6:c6),ue=H(()=>[i.style,r.inputStyle]),ce=H(()=>[r.inputStyle,T.value,{resize:r.resize}]),ne=H(()=>Aa(r.modelValue)?"":String(r.modelValue)),Q=H(()=>r.clearable&&!b.value&&!r.readonly&&!!ne.value&&(A.value||x.value)),ie=H(()=>r.showPassword&&!b.value&&!r.readonly&&!!ne.value&&(!!ne.value||A.value)),ee=H(()=>r.showWordLimit&&!!c.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!b.value&&!r.readonly&&!r.showPassword),ye=H(()=>ne.value.length),Ee=H(()=>!!ee.value&&ye.value>Number(c.value.maxlength)),ke=H(()=>!!s.suffix||!!r.suffixIcon||Q.value||r.showPassword||ee.value||!!V.value&&z.value),[Ze,le]=sH(y);js(C,re=>{if(Y(),!ee.value||r.resize!=="both")return;const Me=re[0],{width:Ue}=Me.contentRect;P.value={right:`calc(100% - ${Ue+15+6}px)`}});const Ye=()=>{const{type:re,autosize:Me}=r;if(!(!tn||re!=="textarea"||!C.value))if(Me){const Ue=yt(Me)?Me.minRows:void 0,at=yt(Me)?Me.maxRows:void 0,ot=y1(C.value,Ue,at);T.value={overflowY:"hidden",...ot},vt(()=>{C.value.offsetHeight,T.value=ot})}else T.value={minHeight:y1(C.value).minHeight}},Y=(re=>{let Me=!1;return()=>{var Ue;if(Me||!r.autosize)return;((Ue=C.value)==null?void 0:Ue.offsetParent)===null||(re(),Me=!0)}})(Ye),oe=()=>{const re=$.value;!re||re.value===ne.value||(re.value=ne.value)},de=async re=>{Ze();let{value:Me}=re.target;if(r.formatter&&(Me=r.parser?r.parser(Me):Me,Me=r.formatter(Me)),!S.value){if(Me===ne.value){oe();return}n(Rn,Me),n("input",Me),await vt(),oe(),le()}},Oe=re=>{n("change",re.target.value)},We=re=>{n("compositionstart",re),S.value=!0},F=re=>{var Me;n("compositionupdate",re);const Ue=(Me=re.target)==null?void 0:Me.value,at=Ue[Ue.length-1]||"";S.value=!TS(at)},W=re=>{n("compositionend",re),S.value&&(S.value=!1,de(re))},q=()=>{M.value=!M.value,se()},se=async()=>{var re;await vt(),(re=$.value)==null||re.focus()},he=()=>{var re;return(re=$.value)==null?void 0:re.blur()},ge=re=>{A.value=!0,n("focus",re)},Te=re=>{var Me;A.value=!1,n("blur",re),r.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"blur").catch(Ue=>void 0))},Se=re=>{x.value=!1,n("mouseleave",re)},Ce=re=>{x.value=!0,n("mouseenter",re)},pe=re=>{n("keydown",re)},Be=()=>{var re;(re=$.value)==null||re.select()},Ae=()=>{n(Rn,""),n("change",""),n("clear"),n("input","")};return Re(()=>r.modelValue,()=>{var re;vt(()=>Ye()),r.validateEvent&&((re=h==null?void 0:h.validate)==null||re.call(h,"change").catch(Me=>void 0))}),Re(ne,()=>oe()),Re(()=>r.type,async()=>{await vt(),oe(),Ye()}),Lt(()=>{!r.formatter&&r.parser,oe(),vt(Ye)}),t({input:y,textarea:C,ref:$,textareaStyle:ce,autosize:Dr(r,"autosize"),focus:se,blur:he,select:Be,clear:Ae,resizeTextarea:Ye}),(re,Me)=>vn((K(),_e("div",Er(O(o),{class:O(a),style:O(ue),role:re.containerRole,onMouseenter:Ce,onMouseleave:Se}),[Fe(" input "),re.type!=="textarea"?(K(),_e(it,{key:0},[Fe(" prepend slot "),re.$slots.prepend?(K(),_e("div",{key:0,class:be(O(v).be("group","prepend"))},[je(re.$slots,"prepend")],2)):Fe("v-if",!0),L("div",{class:be(O(u))},[Fe(" prefix slot "),re.$slots.prefix||re.prefixIcon?(K(),_e("span",{key:0,class:be(O(v).e("prefix"))},[L("span",{class:be(O(v).e("prefix-inner")),onClick:se},[je(re.$slots,"prefix"),re.prefixIcon?(K(),Ie(O(kn),{key:0,class:be(O(v).e("icon"))},{default:D(()=>[(K(),Ie(Vn(re.prefixIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],2)],2)):Fe("v-if",!0),L("input",Er({id:O(g),ref_key:"input",ref:y,class:O(v).e("inner")},O(c),{type:re.showPassword?M.value?"text":"password":re.type,disabled:O(b),formatter:re.formatter,parser:re.parser,readonly:re.readonly,autocomplete:re.autocomplete,tabindex:re.tabindex,"aria-label":re.label,placeholder:re.placeholder,style:re.inputStyle,form:r.form,onCompositionstart:We,onCompositionupdate:F,onCompositionend:W,onInput:de,onFocus:ge,onBlur:Te,onChange:Oe,onKeydown:pe}),null,16,mW),Fe(" suffix slot "),O(ke)?(K(),_e("span",{key:1,class:be(O(v).e("suffix"))},[L("span",{class:be(O(v).e("suffix-inner")),onClick:se},[!O(Q)||!O(ie)||!O(ee)?(K(),_e(it,{key:0},[je(re.$slots,"suffix"),re.suffixIcon?(K(),Ie(O(kn),{key:0,class:be(O(v).e("icon"))},{default:D(()=>[(K(),Ie(Vn(re.suffixIcon)))]),_:1},8,["class"])):Fe("v-if",!0)],64)):Fe("v-if",!0),O(Q)?(K(),Ie(O(kn),{key:1,class:be([O(v).e("icon"),O(v).e("clear")]),onMousedown:xr(O(xn),["prevent"]),onClick:Ae},{default:D(()=>[B(O(ev))]),_:1},8,["class","onMousedown"])):Fe("v-if",!0),O(ie)?(K(),Ie(O(kn),{key:2,class:be([O(v).e("icon"),O(v).e("password")]),onClick:q},{default:D(()=>[(K(),Ie(Vn(O(j))))]),_:1},8,["class"])):Fe("v-if",!0),O(ee)?(K(),_e("span",{key:3,class:be(O(v).e("count"))},[L("span",{class:be(O(v).e("count-inner"))},bt(O(ye))+" / "+bt(O(c).maxlength),3)],2)):Fe("v-if",!0),O(V)&&O(R)&&O(z)?(K(),Ie(O(kn),{key:4,class:be([O(v).e("icon"),O(v).e("validateIcon"),O(v).is("loading",O(V)==="validating")])},{default:D(()=>[(K(),Ie(Vn(O(R))))]),_:1},8,["class"])):Fe("v-if",!0)],2)],2)):Fe("v-if",!0)],2),Fe(" append slot "),re.$slots.append?(K(),_e("div",{key:1,class:be(O(v).be("group","append"))},[je(re.$slots,"append")],2)):Fe("v-if",!0)],64)):(K(),_e(it,{key:1},[Fe(" textarea "),L("textarea",Er({id:O(g),ref_key:"textarea",ref:C,class:O(_).e("inner")},O(c),{tabindex:re.tabindex,disabled:O(b),readonly:re.readonly,autocomplete:re.autocomplete,style:O(ce),"aria-label":re.label,placeholder:re.placeholder,form:r.form,onCompositionstart:We,onCompositionupdate:F,onCompositionend:W,onInput:de,onFocus:ge,onBlur:Te,onChange:Oe,onKeydown:pe}),null,16,vW),O(ee)?(K(),_e("span",{key:0,style:Nt(P.value),class:be(O(v).e("count"))},bt(O(ye))+" / "+bt(O(c).maxlength),7)):Fe("v-if",!0)],64))],16,gW)),[[oi,re.type!=="hidden"]])}});var _W=At(yW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const el=$n(_W),ba=4,wW={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"}},xW=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),t2=Symbol("scrollbarContextKey"),CW=Bt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),SW="Thumb",OW=De({__name:"thumb",props:CW,setup(e){const t=e,n=qe(t2),r=et("scrollbar");n||Us(SW,"can not inject scrollbar context");const i=X(),s=X(),o=X({}),a=X(!1);let u=!1,c=!1,d=tn?document.onselectstart:null;const h=H(()=>wW[t.vertical?"vertical":"horizontal"]),g=H(()=>xW({size:t.size,move:t.move,bar:h.value})),m=H(()=>i.value[h.value.offset]**2/n.wrapElement[h.value.scrollSize]/t.ratio/s.value[h.value.offset]),b=M=>{var P;if(M.stopPropagation(),M.ctrlKey||[1,2].includes(M.button))return;(P=window.getSelection())==null||P.removeAllRanges(),_(M);const T=M.currentTarget;T&&(o.value[h.value.axis]=T[h.value.offset]-(M[h.value.client]-T.getBoundingClientRect()[h.value.direction]))},v=M=>{if(!s.value||!i.value||!n.wrapElement)return;const P=Math.abs(M.target.getBoundingClientRect()[h.value.direction]-M[h.value.client]),T=s.value[h.value.offset]/2,$=(P-T)*100*m.value/i.value[h.value.offset];n.wrapElement[h.value.scroll]=$*n.wrapElement[h.value.scrollSize]/100},_=M=>{M.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),d=document.onselectstart,document.onselectstart=()=>!1},y=M=>{if(!i.value||!s.value||u===!1)return;const P=o.value[h.value.axis];if(!P)return;const T=(i.value.getBoundingClientRect()[h.value.direction]-M[h.value.client])*-1,$=s.value[h.value.offset]-P,z=(T-$)*100*m.value/i.value[h.value.offset];n.wrapElement[h.value.scroll]=z*n.wrapElement[h.value.scrollSize]/100},C=()=>{u=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),S(),c&&(a.value=!1)},A=()=>{c=!1,a.value=!!t.size},x=()=>{c=!0,a.value=u};Tn(()=>{S(),document.removeEventListener("mouseup",C)});const S=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return yi(Dr(n,"scrollbarElement"),"mousemove",A),yi(Dr(n,"scrollbarElement"),"mouseleave",x),(M,P)=>(K(),Ie(si,{name:O(r).b("fade"),persisted:""},{default:D(()=>[vn(L("div",{ref_key:"instance",ref:i,class:be([O(r).e("bar"),O(r).is(O(h).key)]),onMousedown:v},[L("div",{ref_key:"thumb",ref:s,class:be(O(r).e("thumb")),style:Nt(O(g)),onMousedown:b},null,38)],34),[[oi,M.always||a.value]])]),_:1},8,["name"]))}});var _1=At(OW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const EW=Bt({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),MW=De({__name:"bar",props:EW,setup(e,{expose:t}){const n=e,r=X(0),i=X(0);return t({handleScroll:o=>{if(o){const a=o.offsetHeight-ba,u=o.offsetWidth-ba;i.value=o.scrollTop*100/a*n.ratioY,r.value=o.scrollLeft*100/u*n.ratioX}}}),(o,a)=>(K(),_e(it,null,[B(_1,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),B(_1,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var TW=At(MW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const AW=Bt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:st([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}}),PW={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(jn)},RW="ElScrollbar",kW=De({name:RW}),LW=De({...kW,props:AW,emits:PW,setup(e,{expose:t,emit:n}){const r=e,i=et("scrollbar");let s,o;const a=X(),u=X(),c=X(),d=X("0"),h=X("0"),g=X(),m=X(1),b=X(1),v=H(()=>{const P={};return r.height&&(P.height=es(r.height)),r.maxHeight&&(P.maxHeight=es(r.maxHeight)),[r.wrapStyle,P]}),_=H(()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}]),y=H(()=>[i.e("view"),r.viewClass]),C=()=>{var P;u.value&&((P=g.value)==null||P.handleScroll(u.value),n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function A(P,T){yt(P)?u.value.scrollTo(P):jn(P)&&jn(T)&&u.value.scrollTo(P,T)}const x=P=>{jn(P)&&(u.value.scrollTop=P)},S=P=>{jn(P)&&(u.value.scrollLeft=P)},M=()=>{if(!u.value)return;const P=u.value.offsetHeight-ba,T=u.value.offsetWidth-ba,$=P**2/u.value.scrollHeight,z=T**2/u.value.scrollWidth,V=Math.max($,r.minSize),R=Math.max(z,r.minSize);m.value=$/(P-$)/(V/(P-V)),b.value=z/(T-z)/(R/(T-R)),h.value=V+bar.noresize,P=>{P?(s==null||s(),o==null||o()):({stop:s}=js(c,M),o=yi("resize",M))},{immediate:!0}),Re(()=>[r.maxHeight,r.height],()=>{r.native||vt(()=>{var P;M(),u.value&&((P=g.value)==null||P.handleScroll(u.value))})}),on(t2,mn({scrollbarElement:a,wrapElement:u})),Lt(()=>{r.native||vt(()=>{M()})}),Ka(()=>M()),t({wrapRef:u,update:M,scrollTo:A,setScrollTop:x,setScrollLeft:S,handleScroll:C}),(P,T)=>(K(),_e("div",{ref_key:"scrollbarRef",ref:a,class:be(O(i).b())},[L("div",{ref_key:"wrapRef",ref:u,class:be(O(_)),style:Nt(O(v)),onScroll:C},[(K(),Ie(Vn(P.tag),{ref_key:"resizeRef",ref:c,class:be(O(y)),style:Nt(P.viewStyle)},{default:D(()=>[je(P.$slots,"default")]),_:3},8,["class","style"]))],38),P.native?Fe("v-if",!0):(K(),Ie(TW,{key:0,ref_key:"barRef",ref:g,height:h.value,width:d.value,always:P.always,"ratio-x":b.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var IW=At(LW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const pv=$n(IW),gv=Symbol("popper"),n2=Symbol("popperContent"),$W=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],r2=Bt({role:{type:String,values:$W,default:"tooltip"}}),FW=De({name:"ElPopper",inheritAttrs:!1}),DW=De({...FW,props:r2,setup(e,{expose:t}){const n=e,r=X(),i=X(),s=X(),o=X(),a=H(()=>n.role),u={triggerRef:r,popperInstanceRef:i,contentRef:s,referenceRef:o,role:a};return t(u),on(gv,u),(c,d)=>je(c.$slots,"default")}});var NW=At(DW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const i2=Bt({arrowOffset:{type:Number,default:5}}),BW=De({name:"ElPopperArrow",inheritAttrs:!1}),zW=De({...BW,props:i2,setup(e,{expose:t}){const n=e,r=et("popper"),{arrowOffset:i,arrowRef:s,arrowStyle:o}=qe(n2,void 0);return Re(()=>n.arrowOffset,a=>{i.value=a}),Tn(()=>{s.value=void 0}),t({arrowRef:s}),(a,u)=>(K(),_e("span",{ref_key:"arrowRef",ref:s,class:be(O(r).e("arrow")),style:Nt(O(o)),"data-popper-arrow":""},null,6))}});var HW=At(zW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const WW="ElOnlyChild",VW=De({name:WW,setup(e,{slots:t,attrs:n}){var r;const i=qe(GS),s=rH((r=i==null?void 0:i.setForwardRef)!=null?r:xn);return()=>{var o;const a=(o=t.default)==null?void 0:o.call(t,n);if(!a||a.length>1)return null;const u=s2(a);return u?vn(Zi(u,n),[[s]]):null}}});function s2(e){if(!e)return null;const t=e;for(const n of t){if(yt(n))switch(n.type){case ar:continue;case Ga:case"svg":return w1(n);case it:return s2(n.children);default:return n}return w1(n)}return null}function w1(e){const t=et("only-child");return B("span",{class:t.e("content")},[e])}const o2=Bt({virtualRef:{type:st(Object)},virtualTriggering:Boolean,onMouseenter:{type:st(Function)},onMouseleave:{type:st(Function)},onClick:{type:st(Function)},onKeydown:{type:st(Function)},onFocus:{type:st(Function)},onBlur:{type:st(Function)},onContextmenu:{type:st(Function)},id:String,open:Boolean}),jW=De({name:"ElPopperTrigger",inheritAttrs:!1}),UW=De({...jW,props:o2,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=qe(gv,void 0);nH(i);const s=H(()=>a.value?n.id:void 0),o=H(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=H(()=>{if(r&&r.value!=="tooltip")return r.value}),u=H(()=>a.value?`${n.open}`:void 0);let c;return Lt(()=>{Re(()=>n.virtualRef,d=>{d&&(i.value=Ms(d))},{immediate:!0}),Re(i,(d,h)=>{c==null||c(),c=void 0,Pa(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var m;const b=n[g];b&&(d.addEventListener(g.slice(2).toLowerCase(),b),(m=h==null?void 0:h.removeEventListener)==null||m.call(h,g.slice(2).toLowerCase(),b))}),c=Re([s,o,a,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,b)=>{Aa(g[b])?d.removeAttribute(m):d.setAttribute(m,g[b])})},{immediate:!0})),Pa(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),Tn(()=>{c==null||c(),c=void 0}),t({triggerRef:i}),(d,h)=>d.virtualTriggering?Fe("v-if",!0):(K(),Ie(O(VW),Er({key:0},d.$attrs,{"aria-controls":O(s),"aria-describedby":O(o),"aria-expanded":O(u),"aria-haspopup":O(a)}),{default:D(()=>[je(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var KW=At(UW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Sp="focus-trap.focus-after-trapped",Op="focus-trap.focus-after-released",qW="focus-trap.focusout-prevented",x1={cancelable:!0,bubbles:!1},YW={cancelable:!0,bubbles:!1},C1="focusAfterTrapped",S1="focusAfterReleased",a2=Symbol("elFocusTrap"),mv=X(),Wd=X(0),vv=X(0);let Yc=0;const l2=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},O1=(e,t)=>{for(const n of e)if(!GW(n,t))return n},GW=(e,t)=>{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},XW=e=>{const t=l2(e),n=O1(t,e),r=O1(t.reverse(),e);return[n,r]},JW=e=>e instanceof HTMLInputElement&&"select"in e,xs=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),vv.value=window.performance.now(),e!==n&&JW(e)&&t&&e.select()}};function E1(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const ZW=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=E1(e,r),e.unshift(r)},remove:r=>{var i,s;e=E1(e,r),(s=(i=e[0])==null?void 0:i.resume)==null||s.call(i)}}},QW=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(xs(r,t),document.activeElement!==n)return},M1=ZW(),eV=()=>Wd.value>vv.value,Gc=()=>{mv.value="pointer",Wd.value=window.performance.now()},T1=()=>{mv.value="keyboard",Wd.value=window.performance.now()},tV=()=>(Lt(()=>{Yc===0&&(document.addEventListener("mousedown",Gc),document.addEventListener("touchstart",Gc),document.addEventListener("keydown",T1)),Yc++}),Tn(()=>{Yc--,Yc<=0&&(document.removeEventListener("mousedown",Gc),document.removeEventListener("touchstart",Gc),document.removeEventListener("keydown",T1))}),{focusReason:mv,lastUserFocusTimestamp:Wd,lastAutomatedFocusTimestamp:vv}),Xc=e=>new CustomEvent(qW,{...YW,detail:e}),nV=De({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[C1,S1,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=X();let r,i;const{focusReason:s}=tV();Zz(b=>{e.trapped&&!o.paused&&t("release-requested",b)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=b=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:v,altKey:_,ctrlKey:y,metaKey:C,currentTarget:A,shiftKey:x}=b,{loop:S}=e,M=v===Wn.tab&&!_&&!y&&!C,P=document.activeElement;if(M&&P){const T=A,[$,z]=XW(T);if($&&z){if(!x&&P===z){const R=Xc({focusReason:s.value});t("focusout-prevented",R),R.defaultPrevented||(b.preventDefault(),S&&xs($,!0))}else if(x&&[$,T].includes(P)){const R=Xc({focusReason:s.value});t("focusout-prevented",R),R.defaultPrevented||(b.preventDefault(),S&&xs(z,!0))}}else if(P===T){const R=Xc({focusReason:s.value});t("focusout-prevented",R),R.defaultPrevented||b.preventDefault()}}};on(a2,{focusTrapRef:n,onKeydown:a}),Re(()=>e.focusTrapEl,b=>{b&&(n.value=b)},{immediate:!0}),Re([n],([b],[v])=>{b&&(b.addEventListener("keydown",a),b.addEventListener("focusin",d),b.addEventListener("focusout",h)),v&&(v.removeEventListener("keydown",a),v.removeEventListener("focusin",d),v.removeEventListener("focusout",h))});const u=b=>{t(C1,b)},c=b=>t(S1,b),d=b=>{const v=O(n);if(!v)return;const _=b.target,y=b.relatedTarget,C=_&&v.contains(_);e.trapped||y&&v.contains(y)||(r=y),C&&t("focusin",b),!o.paused&&e.trapped&&(C?i=_:xs(i,!0))},h=b=>{const v=O(n);if(!(o.paused||!v))if(e.trapped){const _=b.relatedTarget;!Aa(_)&&!v.contains(_)&&setTimeout(()=>{if(!o.paused&&e.trapped){const y=Xc({focusReason:s.value});t("focusout-prevented",y),y.defaultPrevented||xs(i,!0)}},0)}else{const _=b.target;_&&v.contains(_)||t("focusout",b)}};async function g(){await vt();const b=O(n);if(b){M1.push(o);const v=b.contains(document.activeElement)?r:document.activeElement;if(r=v,!b.contains(v)){const y=new Event(Sp,x1);b.addEventListener(Sp,u),b.dispatchEvent(y),y.defaultPrevented||vt(()=>{let C=e.focusStartEl;gt(C)||(xs(C),document.activeElement!==C&&(C="first")),C==="first"&&QW(l2(b),!0),(document.activeElement===v||C==="container")&&xs(b)})}}}function m(){const b=O(n);if(b){b.removeEventListener(Sp,u);const v=new CustomEvent(Op,{...x1,detail:{focusReason:s.value}});b.addEventListener(Op,c),b.dispatchEvent(v),!v.defaultPrevented&&(s.value=="keyboard"||!eV()||b.contains(document.activeElement))&&xs(r??document.body),b.removeEventListener(Op,u),M1.remove(o)}}return Lt(()=>{e.trapped&&g(),Re(()=>e.trapped,b=>{b?g():m()})}),Tn(()=>{e.trapped&&m()}),{onKeydown:a}}});function rV(e,t,n,r,i,s){return je(e.$slots,"default",{handleKeydown:e.onKeydown})}var bv=At(nV,[["render",rV],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const iV=["fixed","absolute"],sV=Bt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:st(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Bd,default:"bottom"},popperOptions:{type:st(Object),default:()=>({})},strategy:{type:String,values:iV,default:"absolute"}}),u2=Bt({...sV,id:String,style:{type:st([String,Array,Object])},className:{type:st([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:st([String,Array,Object])},popperStyle:{type:st([String,Array,Object])},referenceEl:{type:st(Object)},triggerTargetEl:{type:st(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),oV={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},aV=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,s={placement:n,strategy:r,...i,modifiers:[...uV(e),...t]};return cV(s,i==null?void 0:i.modifiers),s},lV=e=>{if(tn)return Ms(e)};function uV(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=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:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function cV(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const fV=0,dV=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=qe(gv,void 0),s=X(),o=X(),a=H(()=>({name:"eventListeners",enabled:!!e.visible})),u=H(()=>{var y;const C=O(s),A=(y=O(o))!=null?y:fV;return{name:"arrow",enabled:!d5(C),options:{element:C,padding:A}}}),c=H(()=>({onFirstUpdate:()=>{b()},...aV(e,[O(u),O(a)])})),d=H(()=>lV(e.referenceEl)||O(r)),{attributes:h,state:g,styles:m,update:b,forceUpdate:v,instanceRef:_}=Gz(d,n,c);return Re(_,y=>t.value=y),Lt(()=>{Re(()=>{var y;return(y=O(d))==null?void 0:y.getBoundingClientRect()},()=>{b()})}),{attributes:h,arrowRef:s,contentRef:n,instanceRef:_,state:g,styles:m,role:i,forceUpdate:v,update:b}},hV=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=fv(),s=et("popper"),o=H(()=>O(t).popper),a=X(e.zIndex||i()),u=H(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),c=H(()=>[{zIndex:O(a)},e.popperStyle||{},O(n).popper]),d=H(()=>r.value==="dialog"?"false":void 0),h=H(()=>O(n).arrow||{});return{ariaModal:d,arrowStyle:h,contentAttrs:o,contentClass:u,contentStyle:c,contentZIndex:a,updateZIndex:()=>{a.value=e.zIndex||i()}}},pV=(e,t)=>{const n=X(!1),r=X();return{focusStartRef:r,trapped:n,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(r.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},gV=De({name:"ElPopperContent"}),mV=De({...gV,props:u2,emits:oV,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:i,trapped:s,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=pV(r,n),{attributes:h,arrowRef:g,contentRef:m,styles:b,instanceRef:v,role:_,update:y}=dV(r),{ariaModal:C,arrowStyle:A,contentAttrs:x,contentClass:S,contentStyle:M,updateZIndex:P}=hV(r,{styles:b,attributes:h,role:_}),T=qe(Ho,void 0),$=X();on(n2,{arrowStyle:A,arrowRef:g,arrowOffset:$}),T&&(T.addInputId||T.removeInputId)&&on(Ho,{...T,addInputId:xn,removeInputId:xn});let z;const V=(j=!0)=>{y(),j&&P()},R=()=>{V(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return Lt(()=>{Re(()=>r.triggerTargetEl,(j,ue)=>{z==null||z(),z=void 0;const ce=O(j||m.value),ne=O(ue||m.value);Pa(ce)&&(z=Re([_,()=>r.ariaLabel,C,()=>r.id],Q=>{["role","aria-label","aria-modal","id"].forEach((ie,ee)=>{Aa(Q[ee])?ce.removeAttribute(ie):ce.setAttribute(ie,Q[ee])})},{immediate:!0})),ne!==ce&&Pa(ne)&&["role","aria-label","aria-modal","id"].forEach(Q=>{ne.removeAttribute(Q)})},{immediate:!0}),Re(()=>r.visible,R,{immediate:!0})}),Tn(()=>{z==null||z(),z=void 0}),t({popperContentRef:m,popperInstanceRef:v,updatePopper:V,contentStyle:M}),(j,ue)=>(K(),_e("div",Er({ref_key:"contentRef",ref:m},O(x),{style:O(M),class:O(S),tabindex:"-1",onMouseenter:ue[0]||(ue[0]=ce=>j.$emit("mouseenter",ce)),onMouseleave:ue[1]||(ue[1]=ce=>j.$emit("mouseleave",ce))}),[B(O(bv),{trapped:O(s),"trap-on-focus-in":!0,"focus-trap-el":O(m),"focus-start-el":O(i),onFocusAfterTrapped:O(a),onFocusAfterReleased:O(o),onFocusin:O(u),onFocusoutPrevented:O(c),onReleaseRequested:O(d)},{default:D(()=>[je(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var vV=At(mV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const bV=$n(NW),yv=Symbol("elTooltip"),_v=Bt({...tH,...u2,appendTo:{type:st([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:st(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),c2=Bt({...o2,disabled:Boolean,trigger:{type:st([String,Array]),default:"hover"},triggerKeys:{type:st(Array),default:()=>[Wn.enter,Wn.space]}}),{useModelToggleProps:yV,useModelToggleEmits:_V,useModelToggle:wV}=RS("visible"),xV=Bt({...r2,...yV,..._v,...c2,...i2,showArrow:{type:Boolean,default:!0}}),CV=[..._V,"before-show","before-hide","show","hide","open","close"],SV=(e,t)=>He(e)?e.includes(t):e===t,da=(e,t,n)=>r=>{SV(O(e),t)&&n(r)},OV=De({name:"ElTooltipTrigger"}),EV=De({...OV,props:c2,setup(e,{expose:t}){const n=e,r=et("tooltip"),{controlled:i,id:s,open:o,onOpen:a,onClose:u,onToggle:c}=qe(yv,void 0),d=X(null),h=()=>{if(O(i)||n.disabled)return!0},g=Dr(n,"trigger"),m=Ki(h,da(g,"hover",a)),b=Ki(h,da(g,"hover",u)),v=Ki(h,da(g,"click",x=>{x.button===0&&c(x)})),_=Ki(h,da(g,"focus",a)),y=Ki(h,da(g,"focus",u)),C=Ki(h,da(g,"contextmenu",x=>{x.preventDefault(),c(x)})),A=Ki(h,x=>{const{code:S}=x;n.triggerKeys.includes(S)&&(x.preventDefault(),c(x))});return t({triggerRef:d}),(x,S)=>(K(),Ie(O(KW),{id:O(s),"virtual-ref":x.virtualRef,open:O(o),"virtual-triggering":x.virtualTriggering,class:be(O(r).e("trigger")),onBlur:O(y),onClick:O(v),onContextmenu:O(C),onFocus:O(_),onMouseenter:O(m),onMouseleave:O(b),onKeydown:O(A)},{default:D(()=>[je(x.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var MV=At(EV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const TV=De({name:"ElTooltipContent",inheritAttrs:!1}),AV=De({...TV,props:_v,setup(e,{expose:t}){const n=e,{selector:r}=qS(),i=et("tooltip"),s=X(null),o=X(!1),{controlled:a,id:u,open:c,trigger:d,onClose:h,onOpen:g,onShow:m,onHide:b,onBeforeShow:v,onBeforeHide:_}=qe(yv,void 0),y=H(()=>n.transition||`${i.namespace.value}-fade-in-linear`),C=H(()=>n.persistent);Tn(()=>{o.value=!0});const A=H(()=>O(C)?!0:O(c)),x=H(()=>n.disabled?!1:O(c)),S=H(()=>n.appendTo||r.value),M=H(()=>{var Q;return(Q=n.style)!=null?Q:{}}),P=H(()=>!O(c)),T=()=>{b()},$=()=>{if(O(a))return!0},z=Ki($,()=>{n.enterable&&O(d)==="hover"&&g()}),V=Ki($,()=>{O(d)==="hover"&&h()}),R=()=>{var Q,ie;(ie=(Q=s.value)==null?void 0:Q.updatePopper)==null||ie.call(Q),v==null||v()},j=()=>{_==null||_()},ue=()=>{m(),ne=JF(H(()=>{var Q;return(Q=s.value)==null?void 0:Q.popperContentRef}),()=>{if(O(a))return;O(d)!=="hover"&&h()})},ce=()=>{n.virtualTriggering||h()};let ne;return Re(()=>O(c),Q=>{Q||ne==null||ne()},{flush:"post"}),Re(()=>n.content,()=>{var Q,ie;(ie=(Q=s.value)==null?void 0:Q.updatePopper)==null||ie.call(Q)}),t({contentRef:s}),(Q,ie)=>(K(),Ie(Lm,{disabled:!Q.teleported,to:O(S)},[B(si,{name:O(y),onAfterLeave:T,onBeforeEnter:R,onAfterEnter:ue,onBeforeLeave:j},{default:D(()=>[O(A)?vn((K(),Ie(O(vV),Er({key:0,id:O(u),ref_key:"contentRef",ref:s},Q.$attrs,{"aria-label":Q.ariaLabel,"aria-hidden":O(P),"boundaries-padding":Q.boundariesPadding,"fallback-placements":Q.fallbackPlacements,"gpu-acceleration":Q.gpuAcceleration,offset:Q.offset,placement:Q.placement,"popper-options":Q.popperOptions,strategy:Q.strategy,effect:Q.effect,enterable:Q.enterable,pure:Q.pure,"popper-class":Q.popperClass,"popper-style":[Q.popperStyle,O(M)],"reference-el":Q.referenceEl,"trigger-target-el":Q.triggerTargetEl,visible:O(x),"z-index":Q.zIndex,onMouseenter:O(z),onMouseleave:O(V),onBlur:ce,onClose:O(h)}),{default:D(()=>[o.value?Fe("v-if",!0):je(Q.$slots,"default",{key:0})]),_: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"])),[[oi,O(x)]]):Fe("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var PV=At(AV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const RV=["innerHTML"],kV={key:1},LV=De({name:"ElTooltip"}),IV=De({...LV,props:xV,emits:CV,setup(e,{expose:t,emit:n}){const r=e;eH();const i=_u(),s=X(),o=X(),a=()=>{var y;const C=O(s);C&&((y=C.popperInstanceRef)==null||y.update())},u=X(!1),c=X(),{show:d,hide:h,hasUpdateHandler:g}=wV({indicator:u,toggleReason:c}),{onOpen:m,onClose:b}=YS({showAfter:Dr(r,"showAfter"),hideAfter:Dr(r,"hideAfter"),autoClose:Dr(r,"autoClose"),open:d,close:h}),v=H(()=>Qi(r.visible)&&!g.value);on(yv,{controlled:v,id:i,open:Lu(u),trigger:Dr(r,"trigger"),onOpen:y=>{m(y)},onClose:y=>{b(y)},onToggle:y=>{O(u)?b(y):m(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:a}),Re(()=>r.disabled,y=>{y&&u.value&&(u.value=!1)});const _=()=>{var y,C;const A=(C=(y=o.value)==null?void 0:y.contentRef)==null?void 0:C.popperContentRef;return A&&A.contains(document.activeElement)};return dC(()=>u.value&&h()),t({popperRef:s,contentRef:o,isFocusInsideContent:_,updatePopper:a,onOpen:m,onClose:b,hide:h}),(y,C)=>(K(),Ie(O(bV),{ref_key:"popperRef",ref:s,role:y.role},{default:D(()=>[B(MV,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:D(()=>[y.$slots.default?je(y.$slots,"default",{key:0}):Fe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),B(PV,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:D(()=>[je(y.$slots,"content",{},()=>[y.rawContent?(K(),_e("span",{key:0,innerHTML:y.content},null,8,RV)):(K(),_e("span",kV,bt(y.content),1))]),y.showArrow?(K(),Ie(O(HW),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):Fe("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 $V=At(IV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Vd=$n($V),f2=Symbol("buttonGroupContextKey"),FV=(e,t)=>{zo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},H(()=>e.type==="text"));const n=qe(f2,void 0),r=dv("button"),{form:i}=Qa(),s=ns(H(()=>n==null?void 0:n.size)),o=Hd(),a=X(),u=Ya(),c=H(()=>e.type||(n==null?void 0:n.type)||""),d=H(()=>{var b,v,_;return(_=(v=e.autoInsertSpace)!=null?v:(b=r.value)==null?void 0:b.autoInsertSpace)!=null?_:!1}),h=H(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=H(()=>{var b;const v=(b=u.default)==null?void 0:b.call(u);if(d.value&&(v==null?void 0:v.length)===1){const _=v[0];if((_==null?void 0:_.type)===Ga){const y=_.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:o,_size:s,_type:c,_ref:a,_props:h,shouldAddSpace:g,handleClick:b=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",b)}}},DV=["default","primary","success","warning","info","danger","text",""],NV=["button","submit","reset"],Tg=Bt({size:Ja,disabled:Boolean,type:{type:String,values:DV,default:""},icon:{type:ei},nativeType:{type:String,values:NV,default:"button"},loading:Boolean,loadingIcon:{type:ei,default:()=>tv},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:st([String,Object]),default:"button"}}),BV={click:e=>e instanceof MouseEvent};function In(e,t){zV(e)&&(e="100%");var n=HV(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(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 Jc(e){return Math.min(1,Math.max(0,e))}function zV(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function HV(e){return typeof e=="string"&&e.indexOf("%")!==-1}function d2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Zc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ao(e){return e.length===1?"0"+e:String(e)}function WV(e,t,n){return{r:In(e,255)*255,g:In(t,255)*255,b:In(n,255)*255}}function A1(e,t,n){e=In(e,255),t=In(t,255),n=In(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,o=0,a=(r+i)/2;if(r===i)o=0,s=0;else{var u=r-i;switch(o=a>.5?u/(2-r-i):u/(r+i),r){case e:s=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function VV(e,t,n){var r,i,s;if(e=In(e,360),t=In(t,100),n=In(n,100),t===0)i=n,s=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,a=2*n-o;r=Ep(a,o,e+1/3),i=Ep(a,o,e),s=Ep(a,o,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function P1(e,t,n){e=In(e,255),t=In(t,255),n=In(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,o=r,a=r-i,u=r===0?0:a/r;if(r===i)s=0;else{switch(r){case e:s=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var Ag={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 YV(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,s=null,o=!1,a=!1;return typeof e=="string"&&(e=JV(e)),typeof e=="object"&&(Di(e.r)&&Di(e.g)&&Di(e.b)?(t=WV(e.r,e.g,e.b),o=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Di(e.h)&&Di(e.s)&&Di(e.v)?(r=Zc(e.s),i=Zc(e.v),t=jV(e.h,r,i),o=!0,a="hsv"):Di(e.h)&&Di(e.s)&&Di(e.l)&&(r=Zc(e.s),s=Zc(e.l),t=VV(e.h,r,s),o=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=d2(n),{ok:o,format:e.format||a,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:n}}var GV="[-\\+]?\\d+%?",XV="[-\\+]?\\d*\\.\\d+%?",Ts="(?:".concat(XV,")|(?:").concat(GV,")"),Mp="[\\s|\\(]+(".concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")\\s*\\)?"),Tp="[\\s|\\(]+(".concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")\\s*\\)?"),Jr={CSS_UNIT:new RegExp(Ts),rgb:new RegExp("rgb"+Mp),rgba:new RegExp("rgba"+Tp),hsl:new RegExp("hsl"+Mp),hsla:new RegExp("hsla"+Tp),hsv:new RegExp("hsv"+Mp),hsva:new RegExp("hsva"+Tp),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 JV(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ag[e])e=Ag[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Jr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Jr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Jr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Jr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Jr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Jr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Jr.hex8.exec(e),n?{r:yr(n[1]),g:yr(n[2]),b:yr(n[3]),a:k1(n[4]),format:t?"name":"hex8"}:(n=Jr.hex6.exec(e),n?{r:yr(n[1]),g:yr(n[2]),b:yr(n[3]),format:t?"name":"hex"}:(n=Jr.hex4.exec(e),n?{r:yr(n[1]+n[1]),g:yr(n[2]+n[2]),b:yr(n[3]+n[3]),a:k1(n[4]+n[4]),format:t?"name":"hex8"}:(n=Jr.hex3.exec(e),n?{r:yr(n[1]+n[1]),g:yr(n[2]+n[2]),b:yr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Di(e){return!!Jr.CSS_UNIT.exec(String(e))}var h2=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=qV(t)),this.originalInput=t;var i=YV(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.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=i.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(),n,r,i,s=t.r/255,o=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=d2(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=P1(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=P1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=A1(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=A1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),R1(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),UV(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),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(In(n,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(n){return Math.round(In(n,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="#"+R1(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ag);n=0,s=!n&&i&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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 n=this.toHsl();return n.l+=t/100,n.l=Jc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Jc(n.l),new e(n)},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 n=this.toHsl();return n.s-=t/100,n.s=Jc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Jc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),s=n/100,o={r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,s=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,s.push(new e(r));return s},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 n=this.toHsv(),r=n.h,i=n.s,s=n.v,o=[],a=1/t;t--;)o.push(new e({h:r,s:i,v:s})),s=(s+a)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],s=360/t,o=1;o{let r={};const i=e.color;if(i){const s=new h2(i),o=e.dark?s.tint(20).toString():ys(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ys(s,90):s.tint(90).toString(),"text-color":i,"border-color":e.dark?ys(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?ys(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ys(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ys(s,80):s.tint(80).toString());else{const a=e.dark?ys(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":a,"hover-text-color":u,"hover-border-color":a,"active-bg-color":o,"active-border-color":o}),t.value){const c=e.dark?ys(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const QV=De({name:"ElButton"}),ej=De({...QV,props:Tg,emits:BV,setup(e,{expose:t,emit:n}){const r=e,i=ZV(r),s=et("button"),{_ref:o,_size:a,_type:u,_disabled:c,_props:d,shouldAddSpace:h,handleClick:g}=FV(r,n);return t({ref:o,size:a,type:u,disabled:c,shouldAddSpace:h}),(m,b)=>(K(),Ie(Vn(m.tag),Er({ref_key:"_ref",ref:o},O(d),{class:[O(s).b(),O(s).m(O(u)),O(s).m(O(a)),O(s).is("disabled",O(c)),O(s).is("loading",m.loading),O(s).is("plain",m.plain),O(s).is("round",m.round),O(s).is("circle",m.circle),O(s).is("text",m.text),O(s).is("link",m.link),O(s).is("has-bg",m.bg)],style:O(i),onClick:O(g)}),{default:D(()=>[m.loading?(K(),_e(it,{key:0},[m.$slots.loading?je(m.$slots,"loading",{key:0}):(K(),Ie(O(kn),{key:1,class:be(O(s).is("loading"))},{default:D(()=>[(K(),Ie(Vn(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(K(),Ie(O(kn),{key:1},{default:D(()=>[m.icon?(K(),Ie(Vn(m.icon),{key:0})):je(m.$slots,"icon",{key:1})]),_:3})):Fe("v-if",!0),m.$slots.default?(K(),_e("span",{key:2,class:be({[O(s).em("text","expand")]:O(h)})},[je(m.$slots,"default")],2)):Fe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var tj=At(ej,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const nj={size:Tg.size,type:Tg.type},rj=De({name:"ElButtonGroup"}),ij=De({...rj,props:nj,setup(e){const t=e;on(f2,mn({size:Dr(t,"size"),type:Dr(t,"type")}));const n=et("button");return(r,i)=>(K(),_e("div",{class:be(`${O(n).b("group")}`)},[je(r.$slots,"default")],2))}});var p2=At(ij,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const g2=$n(tj,{ButtonGroup:p2});Oi(p2);var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Cs=new Map;let L1;tn&&(document.addEventListener("mousedown",e=>L1=e),document.addEventListener("mouseup",e=>{for(const t of Cs.values())for(const{documentHandler:n}of t)n(e,L1)}));function I1(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Pa(t.arg)&&n.push(t.arg),function(r,i){const s=t.instance.popperRef,o=r.target,a=i==null?void 0:i.target,u=!t||!t.instance,c=!o||!a,d=e.contains(o)||e.contains(a),h=e===o,g=n.length&&n.some(b=>b==null?void 0:b.contains(o))||n.length&&n.includes(a),m=s&&(s.contains(o)||s.contains(a));u||c||d||h||g||m||t.value(r,i)}}const m2={beforeMount(e,t){Cs.has(e)||Cs.set(e,[]),Cs.get(e).push({documentHandler:I1(e,t),bindingFn:t.value})},updated(e,t){Cs.has(e)||Cs.set(e,[]);const n=Cs.get(e),r=n.findIndex(s=>s.bindingFn===t.oldValue),i={documentHandler:I1(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){Cs.delete(e)}};var $1=!1,Oo,Pg,Rg,Af,Pf,v2,Rf,kg,Lg,Ig,b2,$g,Fg,y2,_2;function rr(){if(!$1){$1=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if($g=/\b(iPhone|iP[ao]d)/.exec(e),Fg=/\b(iP[ao]d)/.exec(e),Ig=/Android/i.exec(e),y2=/FBAN\/\w+;/i.exec(e),_2=/Mobile/i.exec(e),b2=!!/Win64/.exec(e),t){Oo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Oo&&document&&document.documentMode&&(Oo=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);v2=r?parseFloat(r[1])+4:Oo,Pg=t[2]?parseFloat(t[2]):NaN,Rg=t[3]?parseFloat(t[3]):NaN,Af=t[4]?parseFloat(t[4]):NaN,Af?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Pf=t&&t[1]?parseFloat(t[1]):NaN):Pf=NaN}else Oo=Pg=Rg=Pf=Af=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Rf=i?parseFloat(i[1].replace("_",".")):!0}else Rf=!1;kg=!!n[2],Lg=!!n[3]}else Rf=kg=Lg=!1}}var Dg={ie:function(){return rr()||Oo},ieCompatibilityMode:function(){return rr()||v2>Oo},ie64:function(){return Dg.ie()&&b2},firefox:function(){return rr()||Pg},opera:function(){return rr()||Rg},webkit:function(){return rr()||Af},safari:function(){return Dg.webkit()},chrome:function(){return rr()||Pf},windows:function(){return rr()||kg},osx:function(){return rr()||Rf},linux:function(){return rr()||Lg},iphone:function(){return rr()||$g},mobile:function(){return rr()||$g||Fg||Ig||_2},nativeApp:function(){return rr()||y2},android:function(){return rr()||Ig},ipad:function(){return rr()||Fg}},oj=Dg,Qc=!!(typeof window<"u"&&window.document&&window.document.createElement),aj={canUseDOM:Qc,canUseWorkers:typeof Worker<"u",canUseEventListeners:Qc&&!!(window.addEventListener||window.attachEvent),canUseViewport:Qc&&!!window.screen,isInWorker:!Qc},w2=aj,x2;w2.canUseDOM&&(x2=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function lj(e,t){if(!w2.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&x2&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var uj=lj,F1=10,D1=40,N1=800;function C2(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*F1,i=n*F1,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=D1,i*=D1):(r*=N1,i*=N1)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}C2.getEventType=function(){return oj.firefox()?"DOMMouseScroll":uj("wheel")?"wheel":"mousewheel"};var cj=C2;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const fj=function(e,t){if(e&&e.addEventListener){const n=function(r){const i=cj(r);t&&Reflect.apply(t,this,[r,i])};e.addEventListener("wheel",n,{passive:!0})}},dj={beforeMount(e,t){fj(e,t.value)}},S2={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ja,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},O2={[Rn]:e=>gt(e)||jn(e)||Qi(e),change:e=>gt(e)||jn(e)||Qi(e)},tl=Symbol("checkboxGroupContextKey"),hj=({model:e,isChecked:t})=>{const n=qe(tl,void 0),r=H(()=>{var s,o;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,u=(o=n==null?void 0:n.min)==null?void 0:o.value;return!id(a)&&e.value.length>=a&&!t.value||!id(u)&&e.value.length<=u&&t.value});return{isDisabled:Hd(H(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},pj=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:s})=>{const o=qe(tl,void 0),{formItem:a}=Qa(),{emit:u}=kt();function c(b){var v,_;return b===e.trueLabel||b===!0?(v=e.trueLabel)!=null?v:!0:(_=e.falseLabel)!=null?_:!1}function d(b,v){u("change",c(b),v)}function h(b){if(n.value)return;const v=b.target;u("change",c(v.checked),b)}async function g(b){n.value||!r.value&&!i.value&&s.value&&(b.composedPath().some(y=>y.tagName==="LABEL")||(t.value=c([!1,e.falseLabel].includes(t.value)),await vt(),d(t.value,b)))}const m=H(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Re(()=>e.modelValue,()=>{m.value&&(a==null||a.validate("change").catch(b=>void 0))}),{handleChange:h,onClickRoot:g}},gj=e=>{const t=X(!1),{emit:n}=kt(),r=qe(tl,void 0),i=H(()=>id(r)===!1),s=X(!1);return{model:H({get(){var a,u;return i.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(u=e.modelValue)!=null?u:t.value},set(a){var u,c;i.value&&He(a)?(s.value=((u=r==null?void 0:r.max)==null?void 0:u.value)!==void 0&&a.length>(r==null?void 0:r.max.value),s.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,a))):(n(Rn,a),t.value=a)}}),isGroup:i,isLimitExceeded:s}},mj=(e,t,{model:n})=>{const r=qe(tl,void 0),i=X(!1),s=H(()=>{const c=n.value;return Qi(c)?c:He(c)?yt(e.label)?c.map(ut).some(d=>yg(d,e.label)):c.map(ut).includes(e.label):c!=null?c===e.trueLabel:!!c}),o=ns(H(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),a=ns(H(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=H(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:s,isFocused:i,checkboxSize:a,hasOwnLabel:u}},vj=(e,{model:t})=>{function n(){He(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},E2=(e,t)=>{const{formItem:n}=Qa(),{model:r,isGroup:i,isLimitExceeded:s}=gj(e),{isFocused:o,isChecked:a,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d}=mj(e,t,{model:r}),{isDisabled:h}=hj({model:r,isChecked:a}),{inputId:g,isLabeledByFormItem:m}=hv(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:i}),{handleChange:b,onClickRoot:v}=pj(e,{model:r,isLimitExceeded:s,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:m});return vj(e,{model:r}),{inputId:g,isLabeledByFormItem:m,isChecked:a,isDisabled:h,isFocused:o,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:r,handleChange:b,onClickRoot:v}},bj=["tabindex","role","aria-checked"],yj=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_j=["id","aria-hidden","disabled","value","name","tabindex"],wj=De({name:"ElCheckbox"}),xj=De({...wj,props:S2,emits:O2,setup(e){const t=e,n=Ya(),{inputId:r,isLabeledByFormItem:i,isChecked:s,isDisabled:o,isFocused:a,checkboxSize:u,hasOwnLabel:c,model:d,handleChange:h,onClickRoot:g}=E2(t,n),m=et("checkbox"),b=H(()=>[m.b(),m.m(u.value),m.is("disabled",o.value),m.is("bordered",t.border),m.is("checked",s.value)]),v=H(()=>[m.e("input"),m.is("disabled",o.value),m.is("checked",s.value),m.is("indeterminate",t.indeterminate),m.is("focus",a.value)]);return(_,y)=>(K(),Ie(Vn(!O(c)&&O(i)?"span":"label"),{class:be(O(b)),"aria-controls":_.indeterminate?_.controls:null,onClick:O(g)},{default:D(()=>[L("span",{class:be(O(v)),tabindex:_.indeterminate?0:void 0,role:_.indeterminate?"checkbox":void 0,"aria-checked":_.indeterminate?"mixed":void 0},[_.trueLabel||_.falseLabel?vn((K(),_e("input",{key:0,id:O(r),"onUpdate:modelValue":y[0]||(y[0]=C=>$t(d)?d.value=C:null),class:be(O(m).e("original")),type:"checkbox","aria-hidden":_.indeterminate?"true":"false",name:_.name,tabindex:_.tabindex,disabled:O(o),"true-value":_.trueLabel,"false-value":_.falseLabel,onChange:y[1]||(y[1]=(...C)=>O(h)&&O(h)(...C)),onFocus:y[2]||(y[2]=C=>a.value=!0),onBlur:y[3]||(y[3]=C=>a.value=!1)},null,42,yj)),[[Xf,O(d)]]):vn((K(),_e("input",{key:1,id:O(r),"onUpdate:modelValue":y[4]||(y[4]=C=>$t(d)?d.value=C:null),class:be(O(m).e("original")),type:"checkbox","aria-hidden":_.indeterminate?"true":"false",disabled:O(o),value:_.label,name:_.name,tabindex:_.tabindex,onChange:y[5]||(y[5]=(...C)=>O(h)&&O(h)(...C)),onFocus:y[6]||(y[6]=C=>a.value=!0),onBlur:y[7]||(y[7]=C=>a.value=!1)},null,42,_j)),[[Xf,O(d)]]),L("span",{class:be(O(m).e("inner"))},null,2)],10,bj),O(c)?(K(),_e("span",{key:0,class:be(O(m).e("label"))},[je(_.$slots,"default"),_.$slots.default?Fe("v-if",!0):(K(),_e(it,{key:0},[Z(bt(_.label),1)],64))],2)):Fe("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Cj=At(xj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Sj=["name","tabindex","disabled","true-value","false-value"],Oj=["name","tabindex","disabled","value"],Ej=De({name:"ElCheckboxButton"}),Mj=De({...Ej,props:S2,emits:O2,setup(e){const t=e,n=Ya(),{isFocused:r,isChecked:i,isDisabled:s,checkboxButtonSize:o,model:a,handleChange:u}=E2(t,n),c=qe(tl,void 0),d=et("checkbox"),h=H(()=>{var m,b,v,_;const y=(b=(m=c==null?void 0:c.fill)==null?void 0:m.value)!=null?b:"";return{backgroundColor:y,borderColor:y,color:(_=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?_:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),g=H(()=>[d.b("button"),d.bm("button",o.value),d.is("disabled",s.value),d.is("checked",i.value),d.is("focus",r.value)]);return(m,b)=>(K(),_e("label",{class:be(O(g))},[m.trueLabel||m.falseLabel?vn((K(),_e("input",{key:0,"onUpdate:modelValue":b[0]||(b[0]=v=>$t(a)?a.value=v:null),class:be(O(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:O(s),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:b[1]||(b[1]=(...v)=>O(u)&&O(u)(...v)),onFocus:b[2]||(b[2]=v=>r.value=!0),onBlur:b[3]||(b[3]=v=>r.value=!1)},null,42,Sj)),[[Xf,O(a)]]):vn((K(),_e("input",{key:1,"onUpdate:modelValue":b[4]||(b[4]=v=>$t(a)?a.value=v:null),class:be(O(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:O(s),value:m.label,onChange:b[5]||(b[5]=(...v)=>O(u)&&O(u)(...v)),onFocus:b[6]||(b[6]=v=>r.value=!0),onBlur:b[7]||(b[7]=v=>r.value=!1)},null,42,Oj)),[[Xf,O(a)]]),m.$slots.default||m.label?(K(),_e("span",{key:2,class:be(O(d).be("button","inner")),style:Nt(O(i)?O(h):void 0)},[je(m.$slots,"default",{},()=>[Z(bt(m.label),1)])],6)):Fe("v-if",!0)],2))}});var M2=At(Mj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Tj=Bt({modelValue:{type:st(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ja,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Aj={[Rn]:e=>He(e),change:e=>He(e)},Pj=De({name:"ElCheckboxGroup"}),Rj=De({...Pj,props:Tj,emits:Aj,setup(e,{emit:t}){const n=e,r=et("checkbox"),{formItem:i}=Qa(),{inputId:s,isLabeledByFormItem:o}=hv(n,{formItemContext:i}),a=async c=>{t(Rn,c),await vt(),t("change",c)},u=H({get(){return n.modelValue},set(c){a(c)}});return on(tl,{...v5(Gs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:a}),Re(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(c=>void 0))}),(c,d)=>{var h;return K(),Ie(Vn(c.tag),{id:O(s),class:be(O(r).b("group")),role:"group","aria-label":O(o)?void 0:c.label||"checkbox-group","aria-labelledby":O(o)?(h=O(i))==null?void 0:h.labelId:void 0},{default:D(()=>[je(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var T2=At(Rj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Fa=$n(Cj,{CheckboxButton:M2,CheckboxGroup:T2});Oi(M2);Oi(T2);const A2=Bt({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:zu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),kj={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Lj=De({name:"ElTag"}),Ij=De({...Lj,props:A2,emits:kj,setup(e,{emit:t}){const n=e,r=ns(),i=et("tag"),s=H(()=>{const{type:u,hit:c,effect:d,closable:h,round:g}=n;return[i.b(),i.is("closable",h),i.m(u),i.m(r.value),i.m(d),i.is("hit",c),i.is("round",g)]}),o=u=>{t("close",u)},a=u=>{t("click",u)};return(u,c)=>u.disableTransitions?(K(),_e("span",{key:0,class:be(O(s)),style:Nt({backgroundColor:u.color}),onClick:a},[L("span",{class:be(O(i).e("content"))},[je(u.$slots,"default")],2),u.closable?(K(),Ie(O(kn),{key:0,class:be(O(i).e("close")),onClick:xr(o,["stop"])},{default:D(()=>[B(O(sd))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)):(K(),Ie(si,{key:1,name:`${O(i).namespace.value}-zoom-in-center`,appear:""},{default:D(()=>[L("span",{class:be(O(s)),style:Nt({backgroundColor:u.color}),onClick:a},[L("span",{class:be(O(i).e("content"))},[je(u.$slots,"default")],2),u.closable?(K(),Ie(O(kn),{key:0,class:be(O(i).e("close")),onClick:xr(o,["stop"])},{default:D(()=>[B(O(sd))]),_:1},8,["class","onClick"])):Fe("v-if",!0)],6)]),_:3},8,["name"]))}});var $j=At(Ij,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const Fj=$n($j),P2=Symbol("rowContextKey"),Dj=["start","center","end","space-around","space-between","space-evenly"],Nj=["top","middle","bottom"],Bj=Bt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Dj,default:"start"},align:{type:String,values:Nj,default:"top"}}),zj=De({name:"ElRow"}),Hj=De({...zj,props:Bj,setup(e){const t=e,n=et("row"),r=H(()=>t.gutter);on(P2,{gutter:r});const i=H(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),s=H(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(o,a)=>(K(),Ie(Vn(o.tag),{class:be(O(s)),style:Nt(O(i))},{default:D(()=>[je(o.$slots,"default")]),_:3},8,["class","style"]))}});var Wj=At(Hj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Vr=$n(Wj),Vj=Bt({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:st([Number,Object]),default:()=>So({})},sm:{type:st([Number,Object]),default:()=>So({})},md:{type:st([Number,Object]),default:()=>So({})},lg:{type:st([Number,Object]),default:()=>So({})},xl:{type:st([Number,Object]),default:()=>So({})}}),jj=De({name:"ElCol"}),Uj=De({...jj,props:Vj,setup(e){const t=e,{gutter:n}=qe(P2,{gutter:H(()=>0)}),r=et("col"),i=H(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),s=H(()=>{const o=[];return["span","offset","pull","push"].forEach(c=>{const d=t[c];jn(d)&&(c==="span"?o.push(r.b(`${t[c]}`)):d>0&&o.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{jn(t[c])?o.push(r.b(`${c}-${t[c]}`)):yt(t[c])&&Object.entries(t[c]).forEach(([d,h])=>{o.push(d!=="span"?r.b(`${c}-${d}-${h}`):r.b(`${c}-${h}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,a)=>(K(),Ie(Vn(o.tag),{class:be(O(s)),style:Nt(O(i))},{default:D(()=>[je(o.$slots,"default")]),_:3},8,["class","style"]))}});var Kj=At(Uj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const os=$n(Kj),qj=De({name:"ElCollapseTransition"}),Yj=De({...qj,setup(e){const t=et("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,i)=>(K(),Ie(si,Er({name:O(t).b()},p$(n)),{default:D(()=>[je(r.$slots,"default")]),_:3},16,["name"]))}});var kf=At(Yj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);kf.install=e=>{e.component(kf.name,kf)};const Gj=kf,Xj=Bt({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:st([String,Array,Object])},zIndex:{type:st([String,Number])}}),Jj={click:e=>e instanceof MouseEvent},Zj="overlay";var Qj=De({name:"ElOverlay",props:Xj,emits:Jj,setup(e,{slots:t,emit:n}){const r=et(Zj),i=u=>{n("click",u)},{onClick:s,onMousedown:o,onMouseup:a}=US(e.customMaskEvent?void 0:i);return()=>e.mask?B("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:o,onMouseup:a},[je(t,"default")],Of.STYLE|Of.CLASS|Of.PROPS,["onClick","onMouseup","onMousedown"]):Ge("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[je(t,"default")])}});const R2=Qj,k2=Symbol("dialogInjectionKey"),L2=Bt({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:ei},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),e9={close:()=>!0},t9=["aria-label"],n9=["id"],r9=De({name:"ElDialogContent"}),i9=De({...r9,props:L2,emits:e9,setup(e){const t=e,{t:n}=Yo(),{Close:r}=A6,{dialogRef:i,headerRef:s,bodyId:o,ns:a,style:u}=qe(k2),{focusTrapRef:c}=qe(a2),d=R6(c,i),h=H(()=>t.draggable);return N6(i,s,h),(g,m)=>(K(),_e("div",{ref:O(d),class:be([O(a).b(),O(a).is("fullscreen",g.fullscreen),O(a).is("draggable",O(h)),O(a).is("align-center",g.alignCenter),{[O(a).m("center")]:g.center},g.customClass]),style:Nt(O(u)),tabindex:"-1"},[L("header",{ref_key:"headerRef",ref:s,class:be(O(a).e("header"))},[je(g.$slots,"header",{},()=>[L("span",{role:"heading",class:be(O(a).e("title"))},bt(g.title),3)]),g.showClose?(K(),_e("button",{key:0,"aria-label":O(n)("el.dialog.close"),class:be(O(a).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=b=>g.$emit("close"))},[B(O(kn),{class:be(O(a).e("close"))},{default:D(()=>[(K(),Ie(Vn(g.closeIcon||O(r))))]),_:1},8,["class"])],10,t9)):Fe("v-if",!0)],2),L("div",{id:O(o),class:be(O(a).e("body"))},[je(g.$slots,"default")],10,n9),g.$slots.footer?(K(),_e("footer",{key:0,class:be(O(a).e("footer"))},[je(g.$slots,"footer")],2)):Fe("v-if",!0)],6))}});var s9=At(i9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const I2=Bt({...L2,appendToBody:{type:Boolean,default:!1},beforeClose:{type:st(Function)},destroyOnClose:{type:Boolean,default:!1},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:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),$2={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Rn]:e=>Qi(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},F2=(e,t)=>{const r=kt().emit,{nextZIndex:i}=fv();let s="";const o=_u(),a=_u(),u=X(!1),c=X(!1),d=X(!1),h=X(e.zIndex||i());let g,m;const b=dv("namespace",wg),v=H(()=>{const ue={},ce=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(ue[`${ce}-margin-top`]=e.top),e.width&&(ue[`${ce}-width`]=es(e.width))),ue}),_=H(()=>e.alignCenter?{display:"flex"}:{});function y(){r("opened")}function C(){r("closed"),r(Rn,!1),e.destroyOnClose&&(d.value=!1)}function A(){r("close")}function x(){m==null||m(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Zf(()=>T(),e.openDelay):T()}function S(){g==null||g(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Zf(()=>$(),e.closeDelay):$()}function M(){function ue(ce){ce||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(ue):S()}function P(){e.closeOnClickModal&&M()}function T(){tn&&(u.value=!0)}function $(){u.value=!1}function z(){r("openAutoFocus")}function V(){r("closeAutoFocus")}function R(ue){var ce;((ce=ue.detail)==null?void 0:ce.focusReason)==="pointer"&&ue.preventDefault()}e.lockScroll&&U6(u);function j(){e.closeOnPressEscape&&M()}return Re(()=>e.modelValue,ue=>{ue?(c.value=!1,x(),d.value=!0,h.value=e.zIndex?h.value++:i(),vt(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):u.value&&S()}),Re(()=>e.fullscreen,ue=>{t.value&&(ue?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Lt(()=>{e.modelValue&&(u.value=!0,d.value=!0,x())}),{afterEnter:y,afterLeave:C,beforeLeave:A,handleClose:M,onModalClick:P,close:S,doClose:$,onOpenAutoFocus:z,onCloseAutoFocus:V,onCloseRequested:j,onFocusoutPrevented:R,titleId:o,bodyId:a,closed:c,style:v,overlayDialogStyle:_,rendered:d,visible:u,zIndex:h}},o9=["aria-label","aria-labelledby","aria-describedby"],a9=De({name:"ElDialog",inheritAttrs:!1}),l9=De({...a9,props:I2,emits:$2,setup(e,{expose:t}){const n=e,r=Ya();zo({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"},H(()=>!!r.title)),zo({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},H(()=>!!n.customClass));const i=et("dialog"),s=X(),o=X(),a=X(),{visible:u,titleId:c,bodyId:d,style:h,overlayDialogStyle:g,rendered:m,zIndex:b,afterEnter:v,afterLeave:_,beforeLeave:y,handleClose:C,onModalClick:A,onOpenAutoFocus:x,onCloseAutoFocus:S,onCloseRequested:M,onFocusoutPrevented:P}=F2(n,s);on(k2,{dialogRef:s,headerRef:o,bodyId:d,ns:i,rendered:m,style:h});const T=US(A),$=H(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:a}),(z,V)=>(K(),Ie(Lm,{to:"body",disabled:!z.appendToBody},[B(si,{name:"dialog-fade",onAfterEnter:O(v),onAfterLeave:O(_),onBeforeLeave:O(y),persisted:""},{default:D(()=>[vn(B(O(R2),{"custom-mask-event":"",mask:z.modal,"overlay-class":z.modalClass,"z-index":O(b)},{default:D(()=>[L("div",{role:"dialog","aria-modal":"true","aria-label":z.title||void 0,"aria-labelledby":z.title?void 0:O(c),"aria-describedby":O(d),class:be(`${O(i).namespace.value}-overlay-dialog`),style:Nt(O(g)),onClick:V[0]||(V[0]=(...R)=>O(T).onClick&&O(T).onClick(...R)),onMousedown:V[1]||(V[1]=(...R)=>O(T).onMousedown&&O(T).onMousedown(...R)),onMouseup:V[2]||(V[2]=(...R)=>O(T).onMouseup&&O(T).onMouseup(...R))},[B(O(bv),{loop:"",trapped:O(u),"focus-start-el":"container",onFocusAfterTrapped:O(x),onFocusAfterReleased:O(S),onFocusoutPrevented:O(P),onReleaseRequested:O(M)},{default:D(()=>[O(m)?(K(),Ie(s9,Er({key:0,ref_key:"dialogContentRef",ref:a},z.$attrs,{"custom-class":z.customClass,center:z.center,"align-center":z.alignCenter,"close-icon":z.closeIcon,draggable:O($),fullscreen:z.fullscreen,"show-close":z.showClose,title:z.title,onClose:O(C)}),gC({header:D(()=>[z.$slots.title?je(z.$slots,"title",{key:1}):je(z.$slots,"header",{key:0,close:O(C),titleId:O(c),titleClass:O(i).e("title")})]),default:D(()=>[je(z.$slots,"default")]),_:2},[z.$slots.footer?{name:"footer",fn:D(()=>[je(z.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Fe("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,o9)]),_:3},8,["mask","overlay-class","z-index"]),[[oi,O(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var u9=At(l9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const c9=$n(u9),f9=Bt({...I2,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),d9=$2,h9=De({name:"ElDrawer",components:{ElOverlay:R2,ElFocusTrap:bv,ElIcon:kn,Close:sd},inheritAttrs:!1,props:f9,emits:d9,setup(e,{slots:t}){zo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},H(()=>!!t.title)),zo({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},H(()=>!!e.customClass));const n=X(),r=X(),i=et("drawer"),{t:s}=Yo(),o=H(()=>e.direction==="rtl"||e.direction==="ltr"),a=H(()=>es(e.size));return{...F2(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:a,ns:i,t:s}}}),p9=["aria-label","aria-labelledby","aria-describedby"],g9=["id"],m9=["aria-label"],v9=["id"];function b9(e,t,n,r,i,s){const o=Yt("close"),a=Yt("el-icon"),u=Yt("el-focus-trap"),c=Yt("el-overlay");return K(),Ie(Lm,{to:"body",disabled:!e.appendToBody},[B(si,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:D(()=>[vn(B(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:D(()=>[B(u,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:D(()=>[L("div",Er({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=xr(()=>{},["stop"]))}),[L("span",{ref:"focusStartRef",class:be(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(K(),_e("header",{key:0,class:be(e.ns.e("header"))},[e.$slots.title?je(e.$slots,"title",{key:1},()=>[Fe(" DEPRECATED SLOT ")]):je(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?Fe("v-if",!0):(K(),_e("span",{key:0,id:e.titleId,role:"heading",class:be(e.ns.e("title"))},bt(e.title),11,g9))]),e.showClose?(K(),_e("button",{key:2,"aria-label":e.t("el.drawer.close"),class:be(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[B(a,{class:be(e.ns.e("close"))},{default:D(()=>[B(o)]),_:1},8,["class"])],10,m9)):Fe("v-if",!0)],2)):Fe("v-if",!0),e.rendered?(K(),_e("div",{key:1,id:e.bodyId,class:be(e.ns.e("body"))},[je(e.$slots,"default")],10,v9)):Fe("v-if",!0),e.$slots.footer?(K(),_e("div",{key:2,class:be(e.ns.e("footer"))},[je(e.$slots,"footer")],2)):Fe("v-if",!0)],16,p9)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[oi,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var y9=At(h9,[["render",b9],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const _9=$n(y9);let w9=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let i=!1;switch(r.code){case Wn.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Wn.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Wn.tab:{xf(t,"mouseleave");break}case Wn.enter:case Wn.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}},x9=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new w9(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Wn.down:{xf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Wn.up:{xf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Wn.tab:{xf(t.currentTarget,"mouseleave");break}case Wn.enter:case Wn.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},C9=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new x9(r,t)})}};const S9=De({name:"ElMenuCollapseTransition",setup(){const e=et("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Mo(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){$o(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Io(n,e.m("collapse"))?($o(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Mo(n,e.m("collapse"))):(Mo(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),$o(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Mo(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function O9(e,t,n,r,i,s){return K(),Ie(si,Er({mode:"out-in"},e.listeners),{default:D(()=>[je(e.$slots,"default")]),_:3},16)}var E9=At(S9,[["render",O9],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function D2(e,t){const n=H(()=>{let i=e.parent;const s=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&s.unshift(i.props.index),i=i.parent;return s});return{parentMenu:H(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function M9(e){return H(()=>{const n=e.backgroundColor;return n?new h2(n).shade(20).toString():""})}const N2=(e,t)=>{const n=et("menu");return H(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":M9(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},T9=Bt({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:ei},expandOpenIcon:{type:ei},collapseCloseIcon:{type:ei},collapseOpenIcon:{type:ei}}),ef="ElSubMenu";var wv=De({name:ef,props:T9,setup(e,{slots:t,expose:n}){zo({from:"popper-append-to-body",replacement:"teleported",scope:ef,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},H(()=>e.popperAppendToBody!==void 0));const r=kt(),{indexPath:i,parentMenu:s}=D2(r,H(()=>e.index)),o=et("menu"),a=et("sub-menu"),u=qe("rootMenu");u||Us(ef,"can not inject root menu");const c=qe(`subMenu:${s.value.uid}`);c||Us(ef,"can not inject sub menu");const d=X({}),h=X({});let g;const m=X(!1),b=X(),v=X(null),_=H(()=>V.value==="horizontal"&&C.value?"bottom-start":"right-start"),y=H(()=>V.value==="horizontal"&&C.value||V.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?M.value?e.expandOpenIcon:e.expandCloseIcon:Zm:e.collapseCloseIcon&&e.collapseOpenIcon?M.value?e.collapseOpenIcon:e.collapseCloseIcon:Qm),C=H(()=>c.level===0),A=H(()=>{var ye;const Ee=(ye=e.teleported)!=null?ye:e.popperAppendToBody;return Ee===void 0?C.value:Ee}),x=H(()=>u.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),S=H(()=>V.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),M=H(()=>u.openedMenus.includes(e.index)),P=H(()=>{let ye=!1;return Object.values(d.value).forEach(Ee=>{Ee.active&&(ye=!0)}),Object.values(h.value).forEach(Ee=>{Ee.active&&(ye=!0)}),ye}),T=H(()=>u.props.backgroundColor||""),$=H(()=>u.props.activeTextColor||""),z=H(()=>u.props.textColor||""),V=H(()=>u.props.mode),R=mn({index:e.index,indexPath:i,active:P}),j=N2(u.props,c.level+1),ue=H(()=>V.value!=="horizontal"?{color:z.value}:{borderBottomColor:P.value?u.props.activeTextColor?$.value:"":"transparent",color:P.value?$.value:z.value}),ce=()=>{var ye,Ee,ke;return(ke=(Ee=(ye=v.value)==null?void 0:ye.popperRef)==null?void 0:Ee.popperInstanceRef)==null?void 0:ke.destroy()},ne=ye=>{ye||ce()},Q=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:i.value,active:P.value})},ie=(ye,Ee=e.showTimeout)=>{var ke;ye.type!=="focus"&&(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,g==null||g(),{stop:g}=Zf(()=>{u.openMenu(e.index,i.value)},Ee),A.value&&((ke=s.value.vnode.el)==null||ke.dispatchEvent(new MouseEvent("mouseenter")))))},ee=(ye=!1)=>{var Ee,ke;u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||(g==null||g(),c.mouseInChild.value=!1,{stop:g}=Zf(()=>!m.value&&u.closeMenu(e.index,i.value),e.hideTimeout),A.value&&ye&&((Ee=r.parent)==null?void 0:Ee.type.name)==="ElSubMenu"&&((ke=c.handleMouseleave)==null||ke.call(c,!0)))};Re(()=>u.props.collapse,ye=>ne(!!ye));{const ye=ke=>{h.value[ke.index]=ke},Ee=ke=>{delete h.value[ke.index]};on(`subMenu:${r.uid}`,{addSubMenu:ye,removeSubMenu:Ee,handleMouseleave:ee,mouseInChild:m,level:c.level+1})}return n({opened:M}),Lt(()=>{u.addSubMenu(R),c.addSubMenu(R)}),Tn(()=>{c.removeSubMenu(R),u.removeSubMenu(R)}),()=>{var ye;const Ee=[(ye=t.title)==null?void 0:ye.call(t),Ge(kn,{class:a.e("icon-arrow"),style:{transform:M.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>gt(y.value)?Ge(r.appContext.components[y.value]):Ge(y.value)})],ke=u.isMenuPopup?Ge(Vd,{ref:v,visible:M.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:_.value,teleported:A.value,fallbackPlacements:S.value,transition:x.value,gpuAcceleration:!1},{content:()=>{var Ze;return Ge("div",{class:[o.m(V.value),o.m("popup-container"),e.popperClass],onMouseenter:le=>ie(le,100),onMouseleave:()=>ee(!0),onFocus:le=>ie(le,100)},[Ge("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${_.value}`)],style:j.value},[(Ze=t.default)==null?void 0:Ze.call(t)])])},default:()=>Ge("div",{class:a.e("title"),style:[ue.value,{backgroundColor:T.value}],onClick:Q},Ee)}):Ge(it,{},[Ge("div",{class:a.e("title"),style:[ue.value,{backgroundColor:T.value}],ref:b,onClick:Q},Ee),Ge(Gj,{},{default:()=>{var Ze;return vn(Ge("ul",{role:"menu",class:[o.b(),o.m("inline")],style:j.value},[(Ze=t.default)==null?void 0:Ze.call(t)]),[[oi,M.value]])}})]);return Ge("li",{class:[a.b(),a.is("active",P.value),a.is("opened",M.value),a.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:M.value,onMouseenter:ie,onMouseleave:()=>ee(!0),onFocus:ie},[ke])}}});const A9=Bt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:st(Array),default:()=>So([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),Ap=e=>Array.isArray(e)&&e.every(t=>gt(t)),P9={close:(e,t)=>gt(e)&&Ap(t),open:(e,t)=>gt(e)&&Ap(t),select:(e,t,n,r)=>gt(e)&&Ap(t)&&yt(n)&&(r===void 0||r instanceof Promise)};var R9=De({name:"ElMenu",props:A9,emits:P9,setup(e,{emit:t,slots:n,expose:r}){const i=kt(),s=i.appContext.config.globalProperties.$router,o=X(),a=et("menu"),u=et("sub-menu"),c=X(-1),d=X(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),h=X(e.defaultActive),g=X({}),m=X({}),b=H(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const V=h.value&&g.value[h.value];if(!V||e.mode==="horizontal"||e.collapse)return;V.indexPath.forEach(j=>{const ue=m.value[j];ue&&_(j,ue.indexPath)})},_=(V,R)=>{d.value.includes(V)||(e.uniqueOpened&&(d.value=d.value.filter(j=>R.includes(j))),d.value.push(V),t("open",V,R))},y=V=>{const R=d.value.indexOf(V);R!==-1&&d.value.splice(R,1)},C=(V,R)=>{y(V),t("close",V,R)},A=({index:V,indexPath:R})=>{d.value.includes(V)?C(V,R):_(V,R)},x=V=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:R,indexPath:j}=V;if(!(Aa(R)||Aa(j)))if(e.router&&s){const ue=V.route||R,ce=s.push(ue).then(ne=>(ne||(h.value=R),ne));t("select",R,j,{index:R,indexPath:j,route:ue},ce)}else h.value=R,t("select",R,j,{index:R,indexPath:j})},S=V=>{const R=g.value,j=R[V]||h.value&&R[h.value]||R[e.defaultActive];j?h.value=j.index:h.value=V},M=()=>{var V,R;if(!o.value)return-1;const j=Array.from((R=(V=o.value)==null?void 0:V.childNodes)!=null?R:[]).filter(ye=>ye.nodeName!=="#comment"&&(ye.nodeName!=="#text"||ye.nodeValue)),ue=64,ce=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),ne=Number.parseInt(getComputedStyle(o.value).paddingRight,10),Q=o.value.clientWidth-ce-ne;let ie=0,ee=0;return j.forEach((ye,Ee)=>{ie+=ye.offsetWidth||0,ie<=Q-ue&&(ee=Ee+1)}),ee===j.length?-1:ee},P=(V,R=33.34)=>{let j;return()=>{j&&clearTimeout(j),j=setTimeout(()=>{V()},R)}};let T=!0;const $=()=>{const V=()=>{c.value=-1,vt(()=>{c.value=M()})};T?V():P(V)(),T=!1};Re(()=>e.defaultActive,V=>{g.value[V]||(h.value=""),S(V)}),Re(()=>e.collapse,V=>{V&&(d.value=[])}),Re(g.value,v);let z;Ns(()=>{e.mode==="horizontal"&&e.ellipsis?z=js(o,$).stop:z==null||z()});{const V=ce=>{m.value[ce.index]=ce},R=ce=>{delete m.value[ce.index]};on("rootMenu",mn({props:e,openedMenus:d,items:g,subMenus:m,activeIndex:h,isMenuPopup:b,addMenuItem:ce=>{g.value[ce.index]=ce},removeMenuItem:ce=>{delete g.value[ce.index]},addSubMenu:V,removeSubMenu:R,openMenu:_,closeMenu:C,handleMenuItemClick:x,handleSubMenuClick:A})),on(`subMenu:${i.uid}`,{addSubMenu:V,removeSubMenu:R,mouseInChild:X(!1),level:0})}return Lt(()=>{e.mode==="horizontal"&&new C9(i.vnode.el,a.namespace.value)}),r({open:R=>{const{indexPath:j}=m.value[R];j.forEach(ue=>_(ue,j))},close:y,handleResize:$}),()=>{var V,R;let j=(R=(V=n.default)==null?void 0:V.call(n))!=null?R:[];const ue=[];if(e.mode==="horizontal"&&o.value){const Q=Ef(j),ie=c.value===-1?Q:Q.slice(0,c.value),ee=c.value===-1?[]:Q.slice(c.value);ee!=null&&ee.length&&e.ellipsis&&(j=ie,ue.push(Ge(wv,{index:"sub-menu-more",class:u.e("hide-arrow")},{title:()=>Ge(kn,{class:u.e("icon-more")},{default:()=>Ge(w6)}),default:()=>ee})))}const ce=N2(e,0),ne=Ge("ul",{key:String(e.collapse),role:"menubar",ref:o,style:ce.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...j,...ue]);return e.collapseTransition&&e.mode==="vertical"?Ge(E9,()=>ne):ne}}});const k9=Bt({index:{type:st([String,null]),default:null},route:{type:st([String,Object])},disabled:Boolean}),L9={click:e=>gt(e.index)&&Array.isArray(e.indexPath)},Pp="ElMenuItem",I9=De({name:Pp,components:{ElTooltip:Vd},props:k9,emits:L9,setup(e,{emit:t}){const n=kt(),r=qe("rootMenu"),i=et("menu"),s=et("menu-item");r||Us(Pp,"can not inject root menu");const{parentMenu:o,indexPath:a}=D2(n,Dr(e,"index")),u=qe(`subMenu:${o.value.uid}`);u||Us(Pp,"can not inject sub menu");const c=H(()=>e.index===r.activeIndex),d=mn({index:e.index,indexPath:a,active:c}),h=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:a.value,route:e.route}),t("click",d))};return Lt(()=>{u.addSubMenu(d),r.addMenuItem(d)}),Tn(()=>{u.removeSubMenu(d),r.removeMenuItem(d)}),{parentMenu:o,rootMenu:r,active:c,nsMenu:i,nsMenuItem:s,handleClick:h}}});function $9(e,t,n,r,i,s){const o=Yt("el-tooltip");return K(),_e("li",{class:be([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(K(),Ie(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:D(()=>[je(e.$slots,"title")]),default:D(()=>[L("div",{class:be(e.nsMenu.be("tooltip","trigger"))},[je(e.$slots,"default")],2)]),_:3},8,["effect"])):(K(),_e(it,{key:1},[je(e.$slots,"default"),je(e.$slots,"title")],64))],2)}var B2=At(I9,[["render",$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const F9={title:String},D9="ElMenuItemGroup",N9=De({name:D9,props:F9,setup(){return{ns:et("menu-item-group")}}});function B9(e,t,n,r,i,s){return K(),_e("li",{class:be(e.ns.b())},[L("div",{class:be(e.ns.e("title"))},[e.$slots.title?je(e.$slots,"title",{key:1}):(K(),_e(it,{key:0},[Z(bt(e.title),1)],64))],2),L("ul",null,[je(e.$slots,"default")])],2)}var z2=At(N9,[["render",B9],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const z9=$n(R9,{MenuItem:B2,MenuItemGroup:z2,SubMenu:wv}),H9=Oi(B2);Oi(z2);Oi(wv);const H2=Symbol("ElSelectGroup"),jd=Symbol("ElSelect");function W9(e,t){const n=qe(jd),r=qe(H2,{disabled:!1}),i=H(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=H(()=>n.props.multiple?h(n.props.modelValue,e.value):g(e.value,n.props.modelValue)),o=H(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!s.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=H(()=>e.label||(i.value?"":e.value)),u=H(()=>e.value||e.label||""),c=H(()=>e.disabled||t.groupDisabled||o.value),d=kt(),h=(v=[],_)=>{if(i.value){const y=n.props.valueKey;return v&&v.some(C=>ut(zn(C,y))===zn(_,y))}else return v&&v.includes(_)},g=(v,_)=>{if(i.value){const{valueKey:y}=n.props;return zn(v,y)===zn(_,y)}else return v===_},m=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};Re(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Re(()=>e.value,(v,_)=>{const{remote:y,valueKey:C}=n.props;if(Object.is(v,_)||(n.onOptionDestroy(_,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!y){if(C&&typeof v=="object"&&typeof _=="object"&&v[C]===_[C])return;n.setSelected()}}),Re(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:b}=ut(n);return Re(b,v=>{const{query:_}=O(v),y=new RegExp(_5(_),"i");t.visible=y.test(a.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:a,currentValue:u,itemSelected:s,isDisabled:c,hoverItem:m}}const V9=De({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=et("select"),n=mn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:s,select:o,hoverItem:a}=W9(e,n),{visible:u,hover:c}=Gs(n),d=kt().proxy;o.onOptionCreate(d),Tn(()=>{const g=d.value,{selected:m}=o,v=(o.props.multiple?m:[m]).some(_=>_.value===d.value);vt(()=>{o.cachedOptions.get(g)===d&&!v&&o.cachedOptions.delete(g)}),o.onOptionDestroy(g,d)});function h(){e.disabled!==!0&&n.groupDisabled!==!0&&o.handleOptionSelect(d,!0)}return{ns:t,currentLabel:r,itemSelected:i,isDisabled:s,select:o,hoverItem:a,visible:u,hover:c,selectOptionClick:h,states:n}}});function j9(e,t,n,r,i,s){return vn((K(),_e("li",{class:be([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=xr((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[je(e.$slots,"default",{},()=>[L("span",null,bt(e.currentLabel),1)])],34)),[[oi,e.visible]])}var xv=At(V9,[["render",j9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const U9=De({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=qe(jd),t=et("select"),n=H(()=>e.props.popperClass),r=H(()=>e.props.multiple),i=H(()=>e.props.fitInputWidth),s=X("");function o(){var a;s.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return Lt(()=>{o(),js(e.selectWrapper,o)}),{ns:t,minWidth:s,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function K9(e,t,n,r,i,s){return K(),_e("div",{class:be([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Nt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[je(e.$slots,"default")],6)}var q9=At(U9,[["render",K9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function Y9(e){const{t}=Yo();return mn({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const G9=(e,t,n)=>{const{t:r}=Yo(),i=et("select");zo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},H(()=>e.suffixTransition===!1));const s=X(null),o=X(null),a=X(null),u=X(null),c=X(null),d=X(null),h=X(null),g=X(-1),m=Fs({query:""}),b=Fs(""),v=X([]);let _=0;const{form:y,formItem:C}=Qa(),A=H(()=>!e.filterable||e.multiple||!t.visible),x=H(()=>e.disabled||(y==null?void 0:y.disabled)),S=H(()=>{const te=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!x.value&&t.inputHovering&&te}),M=H(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),P=H(()=>i.is("reverse",M.value&&t.visible&&e.suffixTransition)),T=H(()=>e.remote?300:0),$=H(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),z=H(()=>{const te=Array.from(t.options.values()),we=[];return v.value.forEach(Xe=>{const ft=te.findIndex(rn=>rn.currentLabel===Xe);ft>-1&&we.push(te[ft])}),we.length?we:te}),V=H(()=>Array.from(t.cachedOptions.values())),R=H(()=>{const te=z.value.filter(we=>!we.created).some(we=>we.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!te}),j=ns(),ue=H(()=>["small"].includes(j.value)?"small":"default"),ce=H({get(){return t.visible&&$.value!==!1},set(te){t.visible=te}});Re([()=>x.value,()=>j.value,()=>y==null?void 0:y.size],()=>{vt(()=>{ne()})}),Re(()=>e.placeholder,te=>{t.cachedPlaceHolder=t.currentPlaceholder=te,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Re(()=>e.modelValue,(te,we)=>{e.multiple&&(ne(),te&&te.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",Q(t.query))),ye(),e.filterable&&!e.multiple&&(t.inputLength=20),!yg(te,we)&&e.validateEvent&&(C==null||C.validate("change").catch(Xe=>void 0))},{flush:"post",deep:!0}),Re(()=>t.visible,te=>{var we,Xe,ft,rn,an;te?((Xe=(we=u.value)==null?void 0:we.updatePopper)==null||Xe.call(we),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(rn=(ft=a.value)==null?void 0:ft.focus)==null||rn.call(ft),e.multiple?(an=o.value)==null||an.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),Q(t.query),!e.multiple&&!e.remote&&(m.value.query="",bl(m),bl(b)))):(e.filterable&&(Je(e.filterMethod)&&e.filterMethod(""),Je(e.remoteMethod)&&e.remoteMethod("")),o.value&&o.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ke(),vt(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",te)}),Re(()=>t.options.entries(),()=>{var te,we,Xe;if(!tn)return;(we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te),e.multiple&&ne();const ft=((Xe=d.value)==null?void 0:Xe.querySelectorAll("input"))||[];Array.from(ft).includes(document.activeElement)||ye(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&ee()},{flush:"post"}),Re(()=>t.hoverIndex,te=>{jn(te)&&te>-1?g.value=z.value[te]||{}:g.value={},z.value.forEach(we=>{we.hover=g.value===we})});const ne=()=>{vt(()=>{var te,we;if(!s.value)return;const Xe=s.value.$el.querySelector("input");_=_||(Xe.clientHeight>0?Xe.clientHeight+2:0);const ft=c.value,rn=L6(j.value||(y==null?void 0:y.size)),an=j.value||rn===_||_<=0?rn:_;!(Xe.offsetParent===null)&&(Xe.style.height=`${(t.selected.length===0?an:Math.max(ft?ft.clientHeight+(ft.clientHeight>an?6:0):0,an))-2}px`),t.tagInMultiLine=Number.parseFloat(Xe.style.height)>=an,t.visible&&$.value!==!1&&((we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te))})},Q=async te=>{if(!(t.previousQuery===te||t.isOnComposition)){if(t.previousQuery===null&&(Je(e.filterMethod)||Je(e.remoteMethod))){t.previousQuery=te;return}t.previousQuery=te,vt(()=>{var we,Xe;t.visible&&((Xe=(we=u.value)==null?void 0:we.updatePopper)==null||Xe.call(we))}),t.hoverIndex=-1,e.multiple&&e.filterable&&vt(()=>{const we=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,we):we,ie(),ne()}),e.remote&&Je(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(te)):Je(e.filterMethod)?(e.filterMethod(te),bl(b)):(t.filteredOptionsCount=t.optionsCount,m.value.query=te,bl(m),bl(b)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await vt(),ee())}},ie=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},ee=()=>{const te=z.value.filter(ft=>ft.visible&&!ft.disabled&&!ft.states.groupDisabled),we=te.find(ft=>ft.created),Xe=te[0];t.hoverIndex=W(z.value,we||Xe)},ye=()=>{var te;if(e.multiple)t.selectedLabel="";else{const Xe=Ee(e.modelValue);(te=Xe.props)!=null&&te.created?(t.createdLabel=Xe.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Xe.currentLabel,t.selected=Xe,e.filterable&&(t.query=t.selectedLabel);return}const we=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Xe=>{we.push(Ee(Xe))}),t.selected=we,vt(()=>{ne()})},Ee=te=>{let we;const Xe=vf(te).toLowerCase()==="object",ft=vf(te).toLowerCase()==="null",rn=vf(te).toLowerCase()==="undefined";for(let jr=t.cachedOptions.size-1;jr>=0;jr--){const Zn=V.value[jr];if(Xe?zn(Zn.value,e.valueKey)===zn(te,e.valueKey):Zn.value===te){we={value:te,currentLabel:Zn.currentLabel,isDisabled:Zn.isDisabled};break}}if(we)return we;const an=Xe?te.label:!ft&&!rn?te:"",dr={value:te,currentLabel:an};return e.multiple&&(dr.hitState=!1),dr},ke=()=>{setTimeout(()=>{const te=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(we=>z.value.findIndex(Xe=>zn(Xe,te)===zn(we,te)))):t.hoverIndex=-1:t.hoverIndex=z.value.findIndex(we=>Le(we)===Le(t.selected))},300)},Ze=()=>{var te,we;le(),(we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te),e.multiple&&ne()},le=()=>{var te;t.inputWidth=(te=s.value)==null?void 0:te.$el.offsetWidth},Ye=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,Q(t.query))},Ne=Ta(()=>{Ye()},T.value),Y=Ta(te=>{Q(te.target.value)},T.value),oe=te=>{yg(e.modelValue,te)||n.emit(MS,te)},de=te=>{if(te.code!==Wn.delete){if(te.target.value.length<=0&&!Se()){const we=e.modelValue.slice();we.pop(),n.emit(Rn,we),oe(we)}te.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},Oe=(te,we)=>{const Xe=t.selected.indexOf(we);if(Xe>-1&&!x.value){const ft=e.modelValue.slice();ft.splice(Xe,1),n.emit(Rn,ft),oe(ft),n.emit("remove-tag",we.value)}te.stopPropagation()},We=te=>{te.stopPropagation();const we=e.multiple?[]:"";if(!gt(we))for(const Xe of t.selected)Xe.isDisabled&&we.push(Xe.value);n.emit(Rn,we),oe(we),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},F=(te,we)=>{var Xe;if(e.multiple){const ft=(e.modelValue||[]).slice(),rn=W(ft,te.value);rn>-1?ft.splice(rn,1):(e.multipleLimit<=0||ft.length{se(te)})},W=(te=[],we)=>{if(!yt(we))return te.indexOf(we);const Xe=e.valueKey;let ft=-1;return te.some((rn,an)=>ut(zn(rn,Xe))===zn(we,Xe)?(ft=an,!0):!1),ft},q=()=>{t.softFocus=!0;const te=o.value||s.value;te&&(te==null||te.focus())},se=te=>{var we,Xe,ft,rn,an;const dr=Array.isArray(te)?te[0]:te;let jr=null;if(dr!=null&&dr.value){const Zn=z.value.filter(nl=>nl.value===dr.value);Zn.length>0&&(jr=Zn[0].$el)}if(u.value&&jr){const Zn=(rn=(ft=(Xe=(we=u.value)==null?void 0:we.popperRef)==null?void 0:Xe.contentRef)==null?void 0:ft.querySelector)==null?void 0:rn.call(ft,`.${i.be("dropdown","wrap")}`);Zn&&C5(Zn,jr)}(an=h.value)==null||an.handleScroll()},he=te=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(te.value,te),t.cachedOptions.set(te.value,te)},ge=(te,we)=>{t.options.get(te)===we&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(te))},Te=te=>{te.code!==Wn.backspace&&Se(!1),t.inputLength=o.value.value.length*15+20,ne()},Se=te=>{if(!Array.isArray(t.selected))return;const we=t.selected[t.selected.length-1];if(we)return te===!0||te===!1?(we.hitState=te,te):(we.hitState=!we.hitState,we.hitState)},Ce=te=>{const we=te.target.value;if(te.type==="compositionend")t.isOnComposition=!1,vt(()=>Q(we));else{const Xe=we[we.length-1]||"";t.isOnComposition=!TS(Xe)}},pe=()=>{vt(()=>se(t.selected))},Be=te=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",te))},Ae=()=>{var te,we,Xe;t.visible=!1,(te=s.value)==null||te.blur(),(Xe=(we=a.value)==null?void 0:we.blur)==null||Xe.call(we)},re=te=>{vt(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",te)}),t.softFocus=!1},Me=te=>{We(te)},Ue=()=>{t.visible=!1},at=te=>{t.visible&&(te.preventDefault(),te.stopPropagation(),t.visible=!1)},ot=te=>{var we;te&&!t.mouseEnter||x.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!u.value||!u.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((we=o.value||s.value)==null||we.focus()))},zt=()=>{t.visible?z.value[t.hoverIndex]&&F(z.value[t.hoverIndex],void 0):ot()},Le=te=>yt(te.value)?zn(te.value,e.valueKey):te.value,Ke=H(()=>z.value.filter(te=>te.visible).every(te=>te.disabled)),ct=H(()=>t.selected.slice(0,e.maxCollapseTags)),Qe=H(()=>t.selected.slice(e.maxCollapseTags)),xt=te=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Ke.value){te==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):te==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const we=z.value[t.hoverIndex];(we.disabled===!0||we.states.groupDisabled===!0||!we.visible)&&xt(te),vt(()=>se(g.value))}};return{optionList:v,optionsArray:z,selectSize:j,handleResize:Ze,debouncedOnInputChange:Ne,debouncedQueryChange:Y,deletePrevTag:de,deleteTag:Oe,deleteSelected:We,handleOptionSelect:F,scrollToOption:se,readonly:A,resetInputHeight:ne,showClose:S,iconComponent:M,iconReverse:P,showNewOption:R,collapseTagSize:ue,setSelected:ye,managePlaceholder:ie,selectDisabled:x,emptyText:$,toggleLastOptionHitState:Se,resetInputState:Te,handleComposition:Ce,onOptionCreate:he,onOptionDestroy:ge,handleMenuEnter:pe,handleFocus:Be,blur:Ae,handleBlur:re,handleClearClick:Me,handleClose:Ue,handleKeydownEscape:at,toggleMenu:ot,selectOption:zt,getValueKey:Le,navigateOptions:xt,dropMenuVisible:ce,queryChange:m,groupQueryChange:b,showTagList:ct,collapseTagList:Qe,reference:s,input:o,iOSInput:a,tooltipRef:u,tags:c,selectWrapper:d,scrollbar:h,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var X9=De({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function i(s,o){if(s.length!==o.length)return!1;for(const[a]of s.entries())if(s[a]!=o[a])return!1;return!0}return()=>{var s,o;const a=(s=t.default)==null?void 0:s.call(t),u=[];function c(d){Array.isArray(d)&&d.forEach(h=>{var g,m,b,v;const _=(g=(h==null?void 0:h.type)||{})==null?void 0:g.name;_==="ElOptionGroup"?c(!gt(h.children)&&!Array.isArray(h.children)&&Je((m=h.children)==null?void 0:m.default)?(b=h.children)==null?void 0:b.default():h.children):_==="ElOption"?u.push((v=h.props)==null?void 0:v.label):Array.isArray(h.children)&&c(h.children)})}return a.length&&c((o=a[0])==null?void 0:o.children),i(u,r)||(r=u,n("update-options",u)),a}}});const B1="ElSelect",J9=De({name:B1,componentName:B1,components:{ElInput:el,ElSelectMenu:q9,ElOption:xv,ElOptions:X9,ElTag:Fj,ElScrollbar:pv,ElTooltip:Vd,ElIcon:kn},directives:{ClickOutside:m2},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:I6},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:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:_v.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ei,default:ev},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:ei,default:Zm},tagType:{...A2.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Bd,default:"bottom-start"}},emits:[Rn,MS,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=et("select"),r=et("input"),{t:i}=Yo(),s=Y9(e),{optionList:o,optionsArray:a,selectSize:u,readonly:c,handleResize:d,collapseTagSize:h,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:b,deleteTag:v,deleteSelected:_,handleOptionSelect:y,scrollToOption:C,setSelected:A,resetInputHeight:x,managePlaceholder:S,showClose:M,selectDisabled:P,iconComponent:T,iconReverse:$,showNewOption:z,emptyText:V,toggleLastOptionHitState:R,resetInputState:j,handleComposition:ue,onOptionCreate:ce,onOptionDestroy:ne,handleMenuEnter:Q,handleFocus:ie,blur:ee,handleBlur:ye,handleClearClick:Ee,handleClose:ke,handleKeydownEscape:Ze,toggleMenu:le,selectOption:Ye,getValueKey:Ne,navigateOptions:Y,dropMenuVisible:oe,reference:de,input:Oe,iOSInput:We,tooltipRef:F,tags:W,selectWrapper:q,scrollbar:se,queryChange:he,groupQueryChange:ge,handleMouseEnter:Te,handleMouseLeave:Se,showTagList:Ce,collapseTagList:pe}=G9(e,s,t),{focus:Be}=B6(de),{inputWidth:Ae,selected:re,inputLength:Me,filteredOptionsCount:Ue,visible:at,softFocus:ot,selectedLabel:zt,hoverIndex:Le,query:Ke,inputHovering:ct,currentPlaceholder:Qe,menuVisibleOnFocus:xt,isOnComposition:St,isSilentBlur:Ft,options:te,cachedOptions:we,optionsCount:Xe,prefixWidth:ft,tagInMultiLine:rn}=Gs(s),an=H(()=>{const Fn=[n.b()],Mi=O(u);return Mi&&Fn.push(n.m(Mi)),e.disabled&&Fn.push(n.m("disabled")),Fn}),dr=H(()=>({maxWidth:`${O(Ae)-32}px`,width:"100%"})),jr=H(()=>({maxWidth:`${O(Ae)>123?O(Ae)-123:O(Ae)-75}px`}));on(jd,mn({props:e,options:te,optionsArray:a,cachedOptions:we,optionsCount:Xe,filteredOptionsCount:Ue,hoverIndex:Le,handleOptionSelect:y,onOptionCreate:ce,onOptionDestroy:ne,selectWrapper:q,selected:re,setSelected:A,queryChange:he,groupQueryChange:ge})),Lt(()=>{s.cachedPlaceHolder=Qe.value=e.placeholder||(()=>i("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Qe.value=""),js(q,d),e.remote&&e.multiple&&x(),vt(()=>{const Fn=de.value&&de.value.$el;if(Fn&&(Ae.value=Fn.getBoundingClientRect().width,t.slots.prefix)){const Mi=Fn.querySelector(`.${r.e("prefix")}`);ft.value=Math.max(Mi.getBoundingClientRect().width+5,30)}}),A()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Rn,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Rn,"");const Zn=H(()=>{var Fn,Mi;return(Mi=(Fn=F.value)==null?void 0:Fn.popperRef)==null?void 0:Mi.contentRef});return{isIOS:BC,onOptionsRendered:Fn=>{o.value=Fn},tagInMultiLine:rn,prefixWidth:ft,selectSize:u,readonly:c,handleResize:d,collapseTagSize:h,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:b,deleteTag:v,deleteSelected:_,handleOptionSelect:y,scrollToOption:C,inputWidth:Ae,selected:re,inputLength:Me,filteredOptionsCount:Ue,visible:at,softFocus:ot,selectedLabel:zt,hoverIndex:Le,query:Ke,inputHovering:ct,currentPlaceholder:Qe,menuVisibleOnFocus:xt,isOnComposition:St,isSilentBlur:Ft,options:te,resetInputHeight:x,managePlaceholder:S,showClose:M,selectDisabled:P,iconComponent:T,iconReverse:$,showNewOption:z,emptyText:V,toggleLastOptionHitState:R,resetInputState:j,handleComposition:ue,handleMenuEnter:Q,handleFocus:ie,blur:ee,handleBlur:ye,handleClearClick:Ee,handleClose:ke,handleKeydownEscape:Ze,toggleMenu:le,selectOption:Ye,getValueKey:Ne,navigateOptions:Y,dropMenuVisible:oe,focus:Be,reference:de,input:Oe,iOSInput:We,tooltipRef:F,popperPaneRef:Zn,tags:W,selectWrapper:q,scrollbar:se,wrapperKls:an,selectTagsStyle:dr,nsSelect:n,tagTextStyle:jr,handleMouseEnter:Te,handleMouseLeave:Se,showTagList:Ce,collapseTagList:pe}}}),Z9=["disabled","autocomplete"],Q9=["disabled"],eU={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function tU(e,t,n,r,i,s){const o=Yt("el-tag"),a=Yt("el-tooltip"),u=Yt("el-icon"),c=Yt("el-input"),d=Yt("el-option"),h=Yt("el-options"),g=Yt("el-scrollbar"),m=Yt("el-select-menu"),b=Tm("click-outside");return vn((K(),_e("div",{ref:"selectWrapper",class:be(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...v)=>e.handleMouseEnter&&e.handleMouseEnter(...v)),onMouseleave:t[22]||(t[22]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v)),onClick:t[23]||(t[23]=xr((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[B(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],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,onShow:e.handleMenuEnter},{default:D(()=>[L("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=v=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=v=>e.inputHovering=!1)},[e.multiple?(K(),_e("div",{key:0,ref:"tags",class:be([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:Nt(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(K(),Ie(si,{key:0,onAfterLeave:e.resetInputHeight},{default:D(()=>[L("span",{class:be([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(K(!0),_e(it,null,On(e.showTagList,v=>(K(),Ie(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:_=>e.deleteTag(_,v)},{default:D(()=>[L("span",{class:be(e.nsSelect.e("tags-text")),style:Nt(e.tagTextStyle)},bt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(K(),Ie(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:D(()=>[e.collapseTagsTooltip?(K(),Ie(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:D(()=>[L("span",{class:be(e.nsSelect.e("tags-text"))},"+ "+bt(e.selected.length-e.maxCollapseTags),3)]),content:D(()=>[L("div",{class:be(e.nsSelect.e("collapse-tags"))},[(K(!0),_e(it,null,On(e.collapseTagList,v=>(K(),_e("div",{key:e.getValueKey(v),class:be(e.nsSelect.e("collapse-tag"))},[B(o,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:_=>e.deleteTag(_,v)},{default:D(()=>[L("span",{class:be(e.nsSelect.e("tags-text")),style:Nt({maxWidth:e.inputWidth-75+"px"})},bt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(K(),_e("span",{key:1,class:be(e.nsSelect.e("tags-text"))},"+ "+bt(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):Fe("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):Fe("v-if",!0),e.collapseTags?Fe("v-if",!0):(K(),Ie(si,{key:1,onAfterLeave:e.resetInputHeight},{default:D(()=>[L("span",{class:be([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(K(!0),_e(it,null,On(e.selected,v=>(K(),Ie(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:_=>e.deleteTag(_,v)},{default:D(()=>[L("span",{class:be(e.nsSelect.e("tags-text")),style:Nt({maxWidth:e.inputWidth-75+"px"})},bt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?vn((K(),_e("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=v=>e.query=v),type:"text",class:be([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Nt({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[2]||(t[2]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[3]||(t[3]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[4]||(t[4]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[5]||(t[5]=Gr(xr(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Gr(xr(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Gr((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[8]||(t[8]=Gr(xr((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[9]||(t[9]=Gr((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[10]||(t[10]=Gr(v=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[14]||(t[14]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,Z9)),[[xF,e.query]]):Fe("v-if",!0)],6)):Fe("v-if",!0),Fe(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(K(),_e("input",{key:1,ref:"iOSInput",class:be([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,Q9)):Fe("v-if",!0),B(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=v=>e.selectedLabel=v),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:be([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=Gr(xr(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=Gr(xr(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Gr(xr(e.selectOption,["stop","prevent"]),["enter"]),Gr(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=Gr(v=>e.visible=!1,["tab"]))]},gC({suffix:D(()=>[e.iconComponent&&!e.showClose?(K(),Ie(u,{key:0,class:be([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:D(()=>[(K(),Ie(Vn(e.iconComponent)))]),_:1},8,["class"])):Fe("v-if",!0),e.showClose&&e.clearIcon?(K(),Ie(u,{key:1,class:be([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:D(()=>[(K(),Ie(Vn(e.clearIcon)))]),_:1},8,["class","onClick"])):Fe("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:D(()=>[L("div",eU,[je(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:D(()=>[B(m,null,{default:D(()=>[vn(B(g,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:be([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:D(()=>[e.showNewOption?(K(),Ie(d,{key:0,value:e.query,created:!0},null,8,["value"])):Fe("v-if",!0),B(h,{onUpdateOptions:e.onOptionsRendered},{default:D(()=>[je(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[oi,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(K(),_e(it,{key:0},[e.$slots.empty?je(e.$slots,"empty",{key:0}):(K(),_e("p",{key:1,class:be(e.nsSelect.be("dropdown","empty"))},bt(e.emptyText),3))],64)):Fe("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[b,e.handleClose,e.popperPaneRef]])}var nU=At(J9,[["render",tU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const rU=De({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=et("select"),n=X(!0),r=kt(),i=X([]);on(H2,mn({...Gs(e)}));const s=qe(jd);Lt(()=>{i.value=o(r.subTree)});const o=u=>{const c=[];return Array.isArray(u.children)&&u.children.forEach(d=>{var h;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?c.push(d.component.proxy):(h=d.children)!=null&&h.length&&c.push(...o(d))}),c},{groupQueryChange:a}=ut(s);return Re(a,()=>{n.value=i.value.some(u=>u.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function iU(e,t,n,r,i,s){return vn((K(),_e("ul",{class:be(e.ns.be("group","wrap"))},[L("li",{class:be(e.ns.be("group","title"))},bt(e.label),3),L("li",null,[L("ul",{class:be(e.ns.b("group"))},[je(e.$slots,"default")],2)])],2)),[[oi,e.visible]])}var W2=At(rU,[["render",iU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const V2=$n(nU,{Option:xv,OptionGroup:W2}),j2=Oi(xv);Oi(W2);/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var sU=/["'&<>]/,oU=aU;function aU(e){var t=""+e,n=sU.exec(t);if(!n)return t;var r,i="",s=0,o=0;for(s=n.index;stypeof c=="string"?zn(a,c):c(a,u,e))):(t!=="$key"&&yt(a)&&"$value"in a&&(a=a.$value),[yt(a)?zn(a,t):a])},o=function(a,u){if(r)return r(a.value,u.value);for(let c=0,d=a.key.length;cu.key[c])return 1}return 0};return e.map((a,u)=>({value:a,index:u,key:s?s(a,u):null})).sort((a,u)=>{let c=o(a,u);return c||(c=a.index-u.index),c*+n}).map(a=>a.value)},U2=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},cU=function(e,t){let n=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const i of n)r=r[i];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Po=function(e,t){const n={};return(e||[]).forEach((r,i)=>{n[Ln(r,t)]={row:r,index:i}}),n};function fU(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(wt(t,r)){const i=t[r];typeof i<"u"&&(n[r]=i)}return n}function Cv(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function K2(e){return e===""||e!==void 0&&(e=Cv(e),Number.isNaN(e)&&(e=80)),e}function dU(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function hU(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function ql(e,t,n){let r=!1;const i=e.indexOf(t),s=i!==-1,o=a=>{a==="add"?e.push(t):e.splice(i,1),r=!0,He(t.children)&&t.children.forEach(u=>{ql(e,u,n??!s)})};return Qi(n)?n&&!s?o("add"):!n&&s&&o("remove"):o(s?"remove":"add"),r}function pU(e,t,n="children",r="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function s(o,a,u){t(o,a,u),a.forEach(c=>{if(c[r]){t(c,null,u+1);return}const d=c[n];i(d)||s(c,d,u+1)})}e.forEach(o=>{if(o[r]){t(o,null,0);return}const a=o[n];i(a)||s(o,a,0)})}let Wi;function gU(e,t,n,r,i){i=CS({enterable:!0,showArrow:!0},i);const s=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function a(){const _=i.effect==="light",y=document.createElement("div");return y.className=[`${s}-popper`,_?"is-light":"is-dark",i.popperClass||""].join(" "),n=lU(n),y.innerHTML=n,y.style.zIndex=String(r()),e==null||e.appendChild(y),y}function u(){const _=document.createElement("div");return _.className=`${s}-popper__arrow`,_}function c(){d&&d.update()}Wi==null||Wi(),Wi=()=>{try{d&&d.destroy(),m&&(e==null||e.removeChild(m)),t.removeEventListener("mouseenter",h),t.removeEventListener("mouseleave",g),o==null||o.removeEventListener("scroll",Wi),Wi=void 0}catch{}};let d=null,h=c,g=Wi;i.enterable&&({onOpen:h,onClose:g}=YS({showAfter:i.showAfter,hideAfter:i.hideAfter,open:c,close:Wi}));const m=a();m.onmouseenter=h,m.onmouseleave=g;const b=[];if(i.offset&&b.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const _=m.appendChild(u());b.push({name:"arrow",options:{element:_,padding:10}})}const v=i.popperOptions||{};return d=jS(t,m,{placement:i.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?b.concat(v.modifiers):b}),t.addEventListener("mouseenter",h),t.addEventListener("mouseleave",g),o==null||o.addEventListener("scroll",Wi),d}function q2(e){return e.children?f5(e.children,q2):[e]}function H1(e,t){return e+t.colSpan}const Y2=(e,t,n,r)=>{let i=0,s=e;const o=n.states.columns.value;if(r){const u=q2(r[e]);i=o.slice(0,o.indexOf(u[0])).reduce(H1,0),s=i+u.reduce(H1,0)-1}else i=e;let a;switch(t){case"left":s=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:s=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right")}return a?{direction:a,start:i,after:s}:{}},Sv=(e,t,n,r,i,s=0)=>{const o=[],{direction:a,start:u,after:c}=Y2(t,n,r,i);if(a){const d=a==="left";o.push(`${e}-fixed-column--${a}`),d&&c+s===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!d&&u-s===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function W1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Ov=(e,t,n,r)=>{const{direction:i,start:s=0,after:o=0}=Y2(e,t,n,r);if(!i)return;const a={},u=i==="left",c=n.states.columns.value;return u?a.left=c.slice(0,s).reduce(W1,0):a.right=c.slice(o+1).reverse().reduce(W1,0),a},Da=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function mU(e){const t=kt(),n=X(!1),r=X([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)r.value=u.slice();else if(c){const d=Po(r.value,c);r.value=u.reduce((h,g)=>{const m=Ln(g,c);return d[m]&&h.push(g),h},[])}else r.value=[]},toggleRowExpansion:(u,c)=>{ql(r.value,u,c)&&t.emit("expand-change",u,r.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,h=Po(c,d);r.value=u.reduce((g,m)=>{const b=h[m];return b&&g.push(b.row),g},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Po(r.value,c)[Ln(u,c)]:r.value.includes(u)},states:{expandRows:r,defaultExpandAll:n}}}function vU(e){const t=kt(),n=X(null),r=X(null),i=c=>{t.store.assertRowKey(),n.value=c,o(c)},s=()=>{n.value=null},o=c=>{const{data:d,rowKey:h}=e;let g=null;h.value&&(g=(O(d)||[]).find(m=>Ln(m,h.value)===c)),r.value=g,t.emit("current-change",r.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:s,setCurrentRowByKey:o,updateCurrentRow:c=>{const d=r.value;if(c&&c!==d){r.value=c,t.emit("current-change",r.value,d);return}!c&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],h=r.value;if(!d.includes(h)&&h){if(c){const g=Ln(h,c);o(g)}else r.value=null;r.value===null&&t.emit("current-change",null,h)}else n.value&&(o(n.value),s())},states:{_currentRowKey:n,currentRow:r}}}function bU(e){const t=X([]),n=X({}),r=X(16),i=X(!1),s=X({}),o=X("hasChildren"),a=X("children"),u=kt(),c=H(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return h(y)}),d=H(()=>{const y=e.rowKey.value,C=Object.keys(s.value),A={};return C.length&&C.forEach(x=>{if(s.value[x].length){const S={children:[]};s.value[x].forEach(M=>{const P=Ln(M,y);S.children.push(P),M[o.value]&&!A[P]&&(A[P]={children:[]})}),A[x]=S}}),A}),h=y=>{const C=e.rowKey.value,A={};return pU(y,(x,S,M)=>{const P=Ln(x,C);Array.isArray(S)?A[P]={children:S.map(T=>Ln(T,C)),level:M}:i.value&&(A[P]={children:[],lazy:!0,level:M})},a.value,o.value),A},g=(y=!1,C=(A=>(A=u.store)==null?void 0:A.states.defaultExpandAll.value)())=>{var A;const x=c.value,S=d.value,M=Object.keys(x),P={};if(M.length){const T=O(n),$=[],z=(R,j)=>{if(y)return t.value?C||t.value.includes(j):!!(C||R!=null&&R.expanded);{const ue=C||t.value&&t.value.includes(j);return!!(R!=null&&R.expanded||ue)}};M.forEach(R=>{const j=T[R],ue={...x[R]};if(ue.expanded=z(j,R),ue.lazy){const{loaded:ce=!1,loading:ne=!1}=j||{};ue.loaded=!!ce,ue.loading=!!ne,$.push(R)}P[R]=ue});const V=Object.keys(S);i.value&&V.length&&$.length&&V.forEach(R=>{const j=T[R],ue=S[R].children;if($.includes(R)){if(P[R].children.length!==0)throw new Error("[ElTable]children must be an empty array.");P[R].children=ue}else{const{loaded:ce=!1,loading:ne=!1}=j||{};P[R]={lazy:!0,loaded:!!ce,loading:!!ne,expanded:z(j,R),children:ue,level:""}}})}n.value=P,(A=u.store)==null||A.updateTableScrollY()};Re(()=>t.value,()=>{g(!0)}),Re(()=>c.value,()=>{g()}),Re(()=>d.value,()=>{g()});const m=y=>{t.value=y,g()},b=(y,C)=>{u.store.assertRowKey();const A=e.rowKey.value,x=Ln(y,A),S=x&&n.value[x];if(x&&S&&"expanded"in S){const M=S.expanded;C=typeof C>"u"?!S.expanded:C,n.value[x].expanded=C,M!==C&&u.emit("expand-change",y,C),u.store.updateTableScrollY()}},v=y=>{u.store.assertRowKey();const C=e.rowKey.value,A=Ln(y,C),x=n.value[A];i.value&&x&&"loaded"in x&&!x.loaded?_(y,A,x):b(y,void 0)},_=(y,C,A)=>{const{load:x}=u.props;x&&!n.value[C].loaded&&(n.value[C].loading=!0,x(y,A,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,S.length&&(s.value[C]=S),u.emit("expand-change",y,!0)}))};return{loadData:_,loadOrToggle:v,toggleTreeExpansion:b,updateTreeExpandKeys:m,updateTreeData:g,normalize:h,states:{expandRowKeys:t,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:s,lazyColumnIdentifier:o,childrenColumnName:a}}}const yU=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:uU(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Lf=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,Lf(n.children)):t.push(n)}),t};function _U(){var e;const t=kt(),{size:n}=Gs((e=t.proxy)==null?void 0:e.$props),r=X(null),i=X([]),s=X([]),o=X(!1),a=X([]),u=X([]),c=X([]),d=X([]),h=X([]),g=X([]),m=X([]),b=X([]),v=[],_=X(0),y=X(0),C=X(0),A=X(!1),x=X([]),S=X(!1),M=X(!1),P=X(null),T=X({}),$=X(null),z=X(null),V=X(null),R=X(null),j=X(null);Re(i,()=>t.state&&Q(!1),{deep:!0});const ue=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},ce=Le=>{var Ke;(Ke=Le.children)==null||Ke.forEach(ct=>{ct.fixed=Le.fixed,ce(ct)})},ne=()=>{a.value.forEach(xt=>{ce(xt)}),d.value=a.value.filter(xt=>xt.fixed===!0||xt.fixed==="left"),h.value=a.value.filter(xt=>xt.fixed==="right"),d.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,d.value.unshift(a.value[0]));const Le=a.value.filter(xt=>!xt.fixed);u.value=[].concat(d.value).concat(Le).concat(h.value);const Ke=Lf(Le),ct=Lf(d.value),Qe=Lf(h.value);_.value=Ke.length,y.value=ct.length,C.value=Qe.length,c.value=[].concat(ct).concat(Ke).concat(Qe),o.value=d.value.length>0||h.value.length>0},Q=(Le,Ke=!1)=>{Le&&ne(),Ke?t.state.doLayout():t.state.debouncedUpdateLayout()},ie=Le=>x.value.includes(Le),ee=()=>{A.value=!1,x.value.length&&(x.value=[],t.emit("selection-change",[]))},ye=()=>{let Le;if(r.value){Le=[];const Ke=Po(x.value,r.value),ct=Po(i.value,r.value);for(const Qe in Ke)wt(Ke,Qe)&&!ct[Qe]&&Le.push(Ke[Qe].row)}else Le=x.value.filter(Ke=>!i.value.includes(Ke));if(Le.length){const Ke=x.value.filter(ct=>!Le.includes(ct));x.value=Ke,t.emit("selection-change",Ke.slice())}},Ee=()=>(x.value||[]).slice(),ke=(Le,Ke=void 0,ct=!0)=>{if(ql(x.value,Le,Ke)){const xt=(x.value||[]).slice();ct&&t.emit("select",xt,Le),t.emit("selection-change",xt)}},Ze=()=>{var Le,Ke;const ct=M.value?!A.value:!(A.value||x.value.length);A.value=ct;let Qe=!1,xt=0;const St=(Ke=(Le=t==null?void 0:t.store)==null?void 0:Le.states)==null?void 0:Ke.rowKey.value;i.value.forEach((Ft,te)=>{const we=te+xt;P.value?P.value.call(null,Ft,we)&&ql(x.value,Ft,ct)&&(Qe=!0):ql(x.value,Ft,ct)&&(Qe=!0),xt+=Ne(Ln(Ft,St))}),Qe&&t.emit("selection-change",x.value?x.value.slice():[]),t.emit("select-all",x.value)},le=()=>{const Le=Po(x.value,r.value);i.value.forEach(Ke=>{const ct=Ln(Ke,r.value),Qe=Le[ct];Qe&&(x.value[Qe.index]=Ke)})},Ye=()=>{var Le,Ke,ct;if(((Le=i.value)==null?void 0:Le.length)===0){A.value=!1;return}let Qe;r.value&&(Qe=Po(x.value,r.value));const xt=function(we){return Qe?!!Qe[Ln(we,r.value)]:x.value.includes(we)};let St=!0,Ft=0,te=0;for(let we=0,Xe=(i.value||[]).length;we{var Ke;if(!t||!t.store)return 0;const{treeData:ct}=t.store.states;let Qe=0;const xt=(Ke=ct.value[Le])==null?void 0:Ke.children;return xt&&(Qe+=xt.length,xt.forEach(St=>{Qe+=Ne(St)})),Qe},Y=(Le,Ke)=>{Array.isArray(Le)||(Le=[Le]);const ct={};return Le.forEach(Qe=>{T.value[Qe.id]=Ke,ct[Qe.columnKey||Qe.id]=Ke}),ct},oe=(Le,Ke,ct)=>{z.value&&z.value!==Le&&(z.value.order=null),z.value=Le,V.value=Ke,R.value=ct},de=()=>{let Le=O(s);Object.keys(T.value).forEach(Ke=>{const ct=T.value[Ke];if(!ct||ct.length===0)return;const Qe=U2({columns:c.value},Ke);Qe&&Qe.filterMethod&&(Le=Le.filter(xt=>ct.some(St=>Qe.filterMethod.call(null,St,xt,Qe))))}),$.value=Le},Oe=()=>{i.value=yU($.value,{sortingColumn:z.value,sortProp:V.value,sortOrder:R.value})},We=(Le=void 0)=>{Le&&Le.filter||de(),Oe()},F=Le=>{const{tableHeaderRef:Ke}=t.refs;if(!Ke)return;const ct=Object.assign({},Ke.filterPanels),Qe=Object.keys(ct);if(Qe.length)if(typeof Le=="string"&&(Le=[Le]),Array.isArray(Le)){const xt=Le.map(St=>cU({columns:c.value},St));Qe.forEach(St=>{const Ft=xt.find(te=>te.id===St);Ft&&(Ft.filteredValue=[])}),t.store.commit("filterChange",{column:xt,values:[],silent:!0,multi:!0})}else Qe.forEach(xt=>{const St=c.value.find(Ft=>Ft.id===xt);St&&(St.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},W=()=>{z.value&&(oe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:q,toggleRowExpansion:se,updateExpandRows:he,states:ge,isRowExpanded:Te}=mU({data:i,rowKey:r}),{updateTreeExpandKeys:Se,toggleTreeExpansion:Ce,updateTreeData:pe,loadOrToggle:Be,states:Ae}=bU({data:i,rowKey:r}),{updateCurrentRowData:re,updateCurrentRow:Me,setCurrentRowKey:Ue,states:at}=vU({data:i,rowKey:r});return{assertRowKey:ue,updateColumns:ne,scheduleLayout:Q,isSelected:ie,clearSelection:ee,cleanSelection:ye,getSelectionRows:Ee,toggleRowSelection:ke,_toggleAllSelection:Ze,toggleAllSelection:null,updateSelectionByRowKey:le,updateAllSelected:Ye,updateFilters:Y,updateCurrentRow:Me,updateSort:oe,execFilter:de,execSort:Oe,execQuery:We,clearFilter:F,clearSort:W,toggleRowExpansion:se,setExpandRowKeysAdapter:Le=>{q(Le),Se(Le)},setCurrentRowKey:Ue,toggleRowExpansionAdapter:(Le,Ke)=>{c.value.some(({type:Qe})=>Qe==="expand")?se(Le,Ke):Ce(Le,Ke)},isRowExpanded:Te,updateExpandRows:he,updateCurrentRowData:re,loadOrToggle:Be,updateTreeData:pe,states:{tableSize:n,rowKey:r,data:i,_data:s,isComplex:o,_columns:a,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:h,leafColumns:g,fixedLeafColumns:m,rightFixedLeafColumns:b,updateOrderFns:v,leafColumnsLength:_,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:C,isAllSelected:A,selection:x,reserveSelection:S,selectOnIndeterminate:M,selectable:P,filters:T,filteredData:$,sortingColumn:z,sortProp:V,sortOrder:R,hoverRow:j,...ge,...Ae,...at}}}function Ng(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=Ng(n.children,t)),n)})}function Bg(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&Bg(t.children)}),e.sort((t,n)=>t.no-n.no)}function wU(){const e=kt(),t=_U();return{ns:et("table"),...t,mutations:{setData(o,a){const u=O(o._data)!==a;o.data.value=a,o._data.value=a,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),O(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,a,u,c){const d=O(o._columns);let h=[];u?(u&&!u.children&&(u.children=[]),u.children.push(a),h=Ng(d,u)):(d.push(a),h=d),Bg(h),o._columns.value=h,o.updateOrderFns.push(c),a.type==="selection"&&(o.selectable.value=a.selectable,o.reserveSelection.value=a.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,a){var u;((u=a.getColumnIndex)==null?void 0:u.call(a))!==a.no&&(Bg(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,a,u,c){const d=O(o._columns)||[];if(u)u.children.splice(u.children.findIndex(g=>g.id===a.id),1),vt(()=>{var g;((g=u.children)==null?void 0:g.length)===0&&delete u.children}),o._columns.value=Ng(d,u);else{const g=d.indexOf(a);g>-1&&(d.splice(g,1),o._columns.value=d)}const h=o.updateOrderFns.indexOf(c);h>-1&&o.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,a){const{prop:u,order:c,init:d}=a;if(u){const h=O(o.columns).find(g=>g.property===u);h&&(h.order=c,e.store.updateSort(h,u,c),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(o,a){const{sortingColumn:u,sortProp:c,sortOrder:d}=o,h=O(u),g=O(c),m=O(d);m===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const b={filter:!0};e.store.execQuery(b),(!a||!(a.silent||a.init))&&e.emit("sort-change",{column:h,prop:g,order:m}),e.store.updateTableScrollY()},filterChange(o,a){const{column:u,values:c,silent:d}=a,h=e.store.updateFilters(u,c);e.store.execQuery(),d||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,a){e.store.toggleRowSelection(a),e.store.updateAllSelected()},setHoverRow(o,a){o.hoverRow.value=a},setCurrentRow(o,a){e.store.updateCurrentRow(a)}},commit:function(o,...a){const u=e.store.mutations;if(u[o])u[o].apply(e,[e.store.states].concat(a));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){vt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Yl={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function xU(e,t){if(!e)throw new Error("Table is required.");const n=wU();return n.toggleAllSelection=Ta(n._toggleAllSelection,10),Object.keys(Yl).forEach(r=>{G2(X2(t,r),r,n)}),CU(n,t),n}function CU(e,t){Object.keys(Yl).forEach(n=>{Re(()=>X2(t,n),r=>{G2(r,n,e)})})}function G2(e,t,n){let r=e,i=Yl[t];typeof Yl[t]=="object"&&(i=i.key,r=r||Yl[t].default),n.states[i].value=r}function X2(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(i=>{r=r[i]}),r}else return e[t]}class SU{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=X(null),this.scrollX=X(!1),this.scrollY=X(!1),this.bodyWidth=X(null),this.fixedWidth=X(null),this.rightFixedWidth=X(null),this.gutterWidth=0;for(const n in t)wt(t,n)&&($t(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const i=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,i!==r}return!1}setHeight(t,n="height"){if(!tn)return;const r=this.table.vnode.el;if(t=dU(t),this.height.value=Number(t),!r&&(t||t===0))return vt(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!tn)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const i=this.getFlattenColumns(),s=i.filter(u=>typeof u.width!="number");if(i.forEach(u=>{typeof u.width=="number"&&u.realWidth&&(u.realWidth=null)}),s.length>0&&t){if(i.forEach(u=>{r+=Number(u.width||u.minWidth||80)}),r<=n){this.scrollX.value=!1;const u=n-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+u;else{const c=s.reduce((g,m)=>g+Number(m.minWidth||80),0),d=u/c;let h=0;s.forEach((g,m)=>{if(m===0)return;const b=Math.floor(Number(g.minWidth||80)*d);h+=b,g.realWidth=Number(g.minWidth||80)+b}),s[0].realWidth=Number(s[0].minWidth||80)+u-h}}else this.scrollX.value=!0,s.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),r+=u.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let u=0;o.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let u=0;a.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var i,s;switch(t){case"columns":(i=r.state)==null||i.onColumnsChange(this);break;case"scrollable":(s=r.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:OU}=Fa,EU=De({name:"ElTableFilterPanel",components:{ElCheckbox:Fa,ElCheckboxGroup:OU,ElScrollbar:pv,ElTooltip:Vd,ElIcon:kn,ArrowDown:Zm,ArrowUp:B5},directives:{ClickOutside:m2},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=kt(),{t:n}=Yo(),r=et("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const s=X(!1),o=X(null),a=H(()=>e.column&&e.column.filters),u=H({get:()=>{var x;return(((x=e.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{c.value&&(typeof x<"u"&&x!==null?c.value.splice(0,1,x):c.value.splice(0,1))}}),c=H({get(){return e.column?e.column.filteredValue||[]:[]},set(x){e.column&&e.upDataColumn("filteredValue",x)}}),d=H(()=>e.column?e.column.filterMultiple:!0),h=x=>x.value===u.value,g=()=>{s.value=!1},m=x=>{x.stopPropagation(),s.value=!s.value},b=()=>{s.value=!1},v=()=>{C(c.value),g()},_=()=>{c.value=[],C(c.value),g()},y=x=>{u.value=x,C(typeof x<"u"&&x!==null?c.value:[]),g()},C=x=>{e.store.commit("filterChange",{column:e.column,values:x}),e.store.updateAllSelected()};Re(s,x=>{e.column&&e.upDataColumn("filterOpened",x)},{immediate:!0});const A=H(()=>{var x,S;return(S=(x=o.value)==null?void 0:x.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:s,multiple:d,filteredValue:c,filterValue:u,filters:a,handleConfirm:v,handleReset:_,handleSelect:y,isActive:h,t:n,ns:r,showFilterPanel:m,hideFilterPanel:b,popperPaneRef:A,tooltip:o}}}),MU={key:0},TU=["disabled"],AU=["label","onClick"];function PU(e,t,n,r,i,s){const o=Yt("el-checkbox"),a=Yt("el-checkbox-group"),u=Yt("el-scrollbar"),c=Yt("arrow-up"),d=Yt("arrow-down"),h=Yt("el-icon"),g=Yt("el-tooltip"),m=Tm("click-outside");return K(),Ie(g,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:D(()=>[e.multiple?(K(),_e("div",MU,[L("div",{class:be(e.ns.e("content"))},[B(u,{"wrap-class":e.ns.e("wrap")},{default:D(()=>[B(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=b=>e.filteredValue=b),class:be(e.ns.e("checkbox-group"))},{default:D(()=>[(K(!0),_e(it,null,On(e.filters,b=>(K(),Ie(o,{key:b.value,label:b.value},{default:D(()=>[Z(bt(b.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),L("div",{class:be(e.ns.e("bottom"))},[L("button",{class:be({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...b)=>e.handleConfirm&&e.handleConfirm(...b))},bt(e.t("el.table.confirmFilter")),11,TU),L("button",{type:"button",onClick:t[2]||(t[2]=(...b)=>e.handleReset&&e.handleReset(...b))},bt(e.t("el.table.resetFilter")),1)],2)])):(K(),_e("ul",{key:1,class:be(e.ns.e("list"))},[L("li",{class:be([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=b=>e.handleSelect(null))},bt(e.t("el.table.clearFilter")),3),(K(!0),_e(it,null,On(e.filters,b=>(K(),_e("li",{key:b.value,class:be([e.ns.e("list-item"),e.ns.is("active",e.isActive(b))]),label:b.value,onClick:v=>e.handleSelect(b.value)},bt(b.text),11,AU))),128))],2))]),default:D(()=>[vn((K(),_e("span",{class:be([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...b)=>e.showFilterPanel&&e.showFilterPanel(...b))},[B(h,null,{default:D(()=>[e.column.filterOpened?(K(),Ie(c,{key:0})):(K(),Ie(d,{key:1}))]),_:1})],2)),[[m,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var RU=At(EU,[["render",PU],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function J2(e){const t=kt();Ua(()=>{n.value.addObserver(t)}),Lt(()=>{r(n.value),i(n.value)}),Ka(()=>{r(n.value),i(n.value)}),qa(()=>{n.value.removeObserver(t)});const n=H(()=>{const s=e.layout;if(!s)throw new Error("Can not find table layout.");return s}),r=s=>{var o;const a=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const u=s.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,h=a.length;d{var o,a;const u=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,h=u.length;d{v.stopPropagation()},s=(v,_)=>{!_.filters&&_.sortable?b(v,_,!1):_.filterable&&!_.sortable&&i(v),r==null||r.emit("header-click",_,v)},o=(v,_)=>{r==null||r.emit("header-contextmenu",_,v)},a=X(null),u=X(!1),c=X({}),d=(v,_)=>{if(tn&&!(_.children&&_.children.length>0)&&a.value&&e.border){u.value=!0;const y=r;t("set-drag-visible",!0);const A=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,x=n.vnode.el.querySelector(`th.${_.id}`),S=x.getBoundingClientRect(),M=S.left-A+30;Mo(x,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:S.right-A,startColumnLeft:S.left-A,tableLeft:A};const P=y==null?void 0:y.refs.resizeProxy;P.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=z=>{const V=z.clientX-c.value.startMouseLeft,R=c.value.startLeft+V;P.style.left=`${Math.max(M,R)}px`},$=()=>{if(u.value){const{startColumnLeft:z,startLeft:V}=c.value,j=Number.parseInt(P.style.left,10)-z;_.width=_.realWidth=j,y==null||y.emit("header-dragend",_.width,V-z,_,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,a.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",$),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{$o(x,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",$)}},h=(v,_)=>{if(_.children&&_.children.length>0)return;const y=v.target;if(!Pa(y))return;const C=y==null?void 0:y.closest("th");if(!(!_||!_.resizable)&&!u.value&&e.border){const A=C.getBoundingClientRect(),x=document.body.style;A.width>12&&A.right-v.pageX<8?(x.cursor="col-resize",Io(C,"is-sortable")&&(C.style.cursor="col-resize"),a.value=_):u.value||(x.cursor="",Io(C,"is-sortable")&&(C.style.cursor="pointer"),a.value=null)}},g=()=>{tn&&(document.body.style.cursor="")},m=({order:v,sortOrders:_})=>{if(v==="")return _[0];const y=_.indexOf(v||null);return _[y>_.length-2?0:y+1]},b=(v,_,y)=>{var C;v.stopPropagation();const A=_.order===y?null:y||m(_),x=(C=v.target)==null?void 0:C.closest("th");if(x&&Io(x,"noclick")){$o(x,"noclick");return}if(!_.sortable)return;const S=e.store.states;let M=S.sortProp.value,P;const T=S.sortingColumn.value;(T!==_||T===_&&T.order===null)&&(T&&(T.order=null),S.sortingColumn.value=_,M=_.property),A?P=_.order=A:P=_.order=null,S.sortProp.value=M,S.sortOrder.value=P,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:o,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:b,handleFilterClick:i}}function LU(e){const t=qe(Ei),n=et("table");return{getHeaderRowStyle:a=>{const u=t==null?void 0:t.props.headerRowStyle;return typeof u=="function"?u.call(null,{rowIndex:a}):u},getHeaderRowClass:a=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?u.push(c):typeof c=="function"&&u.push(c.call(null,{rowIndex:a})),u.join(" ")},getHeaderCellStyle:(a,u,c,d)=>{var h;let g=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};typeof g=="function"&&(g=g.call(null,{rowIndex:a,columnIndex:u,row:c,column:d}));const m=Ov(u,d.fixed,e.store,c);return Da(m,"left"),Da(m,"right"),Object.assign({},g,m)},getHeaderCellClass:(a,u,c,d)=>{const h=Sv(n.b(),u,d.fixed,e.store,c),g=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...h];d.children||g.push("is-leaf"),d.sortable&&g.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return typeof m=="string"?g.push(m):typeof m=="function"&&g.push(m.call(null,{rowIndex:a,columnIndex:u,row:c,column:d})),g.push(n.e("cell")),g.filter(b=>!!b).join(" ")}}}const Z2=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,Z2(n.children))):t.push(n)}),t},IU=e=>{let t=1;const n=(s,o)=>{if(o&&(s.level=o.level+1,t{n(u,s),a+=u.colSpan}),s.colSpan=a}else s.colSpan=1};e.forEach(s=>{s.level=1,n(s,void 0)});const r=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(o=>o.isSubColumn=!0)):s.rowSpan=t-s.level+1,r[s.level-1].push(s)}),r};function $U(e){const t=qe(Ei),n=H(()=>IU(e.store.states.originColumns.value));return{isGroup:H(()=>{const s=n.value.length>1;return s&&t&&(t.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var FU=De({name:"ElTableHeader",components:{ElCheckbox:Fa},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=kt(),r=qe(Ei),i=et("table"),s=X({}),{onColumnsChange:o,onScrollableChange:a}=J2(r);Lt(async()=>{await vt(),await vt();const{prop:M,order:P}=e.defaultSort;r==null||r.store.commit("sort",{prop:M,order:P,init:!0})});const{handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:m,handleFilterClick:b}=kU(e,t),{getHeaderRowStyle:v,getHeaderRowClass:_,getHeaderCellStyle:y,getHeaderCellClass:C}=LU(e),{isGroup:A,toggleAllSelection:x,columnRows:S}=$U(e);return n.state={onColumnsChange:o,onScrollableChange:a},n.filterPanels=s,{ns:i,filterPanels:s,onColumnsChange:o,onScrollableChange:a,columnRows:S,getHeaderRowClass:_,getHeaderRowStyle:v,getHeaderCellClass:C,getHeaderCellStyle:y,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:m,handleFilterClick:b,isGroup:A,toggleAllSelection:x}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:s,getHeaderRowStyle:o,handleHeaderClick:a,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleSortClick:h,handleMouseOut:g,store:m,$parent:b}=this;let v=1;return Ge("thead",{class:{[e.is("group")]:t}},n.map((_,y)=>Ge("tr",{class:s(y),key:y,style:o(y)},_.map((C,A)=>(C.rowSpan>v&&(v=C.rowSpan),Ge("th",{class:i(y,A,_,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:r(y,A,_,C),onClick:x=>a(x,C),onContextmenu:x=>u(x,C),onMousedown:x=>c(x,C),onMousemove:x=>d(x,C),onMouseout:g},[Ge("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":""]},[C.renderHeader?C.renderHeader({column:C,$index:A,store:m,_self:b}):C.label,C.sortable&&Ge("span",{onClick:x=>h(x,C),class:"caret-wrapper"},[Ge("i",{onClick:x=>h(x,C,"ascending"),class:"sort-caret ascending"}),Ge("i",{onClick:x=>h(x,C,"descending"),class:"sort-caret descending"})]),C.filterable&&Ge(RU,{store:m,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(x,S)=>{C[x]=S}})])]))))))}});function DU(e){const t=qe(Ei),n=X(""),r=X(Ge("div")),{nextZIndex:i}=fv(),s=(m,b,v)=>{var _;const y=t,C=Rp(m);let A;const x=(_=y==null?void 0:y.vnode.el)==null?void 0:_.dataset.prefix;C&&(A=z1({columns:e.store.states.columns.value},C,x),A&&(y==null||y.emit(`cell-${v}`,b,A,C,m))),y==null||y.emit(`row-${v}`,b,A,m)},o=(m,b)=>{s(m,b,"dblclick")},a=(m,b)=>{e.store.commit("setCurrentRow",b),s(m,b,"click")},u=(m,b)=>{s(m,b,"contextmenu")},c=Ta(m=>{e.store.commit("setHoverRow",m)},30),d=Ta(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:a,handleContextMenu:u,handleMouseEnter:c,handleMouseLeave:d,handleCellMouseEnter:(m,b,v)=>{var _;const y=t,C=Rp(m),A=(_=y==null?void 0:y.vnode.el)==null?void 0:_.dataset.prefix;if(C){const T=z1({columns:e.store.states.columns.value},C,A),$=y.hoverState={cell:C,column:T,row:b};y==null||y.emit("cell-mouse-enter",$.row,$.column,$.cell,m)}if(!v)return;const x=m.target.querySelector(".cell");if(!(Io(x,`${A}-tooltip`)&&x.childNodes.length))return;const S=document.createRange();S.setStart(x,0),S.setEnd(x,x.childNodes.length);const M=Math.round(S.getBoundingClientRect().width),P=(Number.parseInt(_g(x,"paddingLeft"),10)||0)+(Number.parseInt(_g(x,"paddingRight"),10)||0);(M+P>x.offsetWidth||x.scrollWidth>x.offsetWidth)&&gU(t==null?void 0:t.refs.tableWrapper,C,C.innerText||C.textContent,i,v)},handleCellMouseLeave:m=>{if(!Rp(m))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,m)},tooltipContent:n,tooltipTrigger:r}}function NU(e){const t=qe(Ei),n=et("table");return{getRowStyle:(c,d)=>{const h=t==null?void 0:t.props.rowStyle;return typeof h=="function"?h.call(null,{row:c,rowIndex:d}):h||null},getRowClass:(c,d)=>{const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&h.push("current-row"),e.stripe&&d%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return typeof g=="string"?h.push(g):typeof g=="function"&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,h,g)=>{const m=t==null?void 0:t.props.cellStyle;let b=m??{};typeof m=="function"&&(b=m.call(null,{rowIndex:c,columnIndex:d,row:h,column:g}));const v=Ov(d,e==null?void 0:e.fixed,e.store);return Da(v,"left"),Da(v,"right"),Object.assign({},b,v)},getCellClass:(c,d,h,g,m)=>{const b=Sv(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),v=[g.id,g.align,g.className,...b],_=t==null?void 0:t.props.cellClassName;return typeof _=="string"?v.push(_):typeof _=="function"&&v.push(_.call(null,{rowIndex:c,columnIndex:d,row:h,column:g})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,h,g)=>{let m=1,b=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const _=v({row:c,column:d,rowIndex:h,columnIndex:g});Array.isArray(_)?(m=_[0],b=_[1]):typeof _=="object"&&(m=_.rowspan,b=_.colspan)}return{rowspan:m,colspan:b}},getColspanRealWidth:(c,d,h)=>{if(d<1)return c[h].realWidth;const g=c.map(({realWidth:m,width:b})=>m||b).slice(h,h+d);return Number(g.reduce((m,b)=>Number(m)+Number(b),-1))}}}function BU(e){const t=qe(Ei),n=et("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:s,handleMouseEnter:o,handleMouseLeave:a,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:h}=DU(e),{getRowStyle:g,getRowClass:m,getCellStyle:b,getCellClass:v,getSpan:_,getColspanRealWidth:y}=NU(e),C=H(()=>e.store.states.columns.value.findIndex(({type:P})=>P==="default")),A=(P,T)=>{const $=t.props.rowKey;return $?Ln(P,$):T},x=(P,T,$,z=!1)=>{const{tooltipEffect:V,tooltipOptions:R,store:j}=e,{indent:ue,columns:ce}=j.states,ne=m(P,T);let Q=!0;return $&&(ne.push(n.em("row",`level-${$.level}`)),Q=$.display),Ge("tr",{style:[Q?null:{display:"none"},g(P,T)],class:ne,key:A(P,T),onDblclick:ee=>r(ee,P),onClick:ee=>i(ee,P),onContextmenu:ee=>s(ee,P),onMouseenter:()=>o(T),onMouseleave:a},ce.value.map((ee,ye)=>{const{rowspan:Ee,colspan:ke}=_(P,ee,T,ye);if(!Ee||!ke)return null;const Ze={...ee};Ze.realWidth=y(ce.value,ke,ye);const le={store:e.store,_self:e.context||t,column:Ze,row:P,$index:T,cellIndex:ye,expanded:z};ye===C.value&&$&&(le.treeNode={indent:$.level*ue.value,level:$.level},typeof $.expanded=="boolean"&&(le.treeNode.expanded=$.expanded,"loading"in $&&(le.treeNode.loading=$.loading),"noLazyChildren"in $&&(le.treeNode.noLazyChildren=$.noLazyChildren)));const Ye=`${T},${ye}`,Ne=Ze.columnKey||Ze.rawColumnKey||"",Y=S(ye,ee,le),oe=ee.showOverflowTooltip&&CS({effect:V},R,ee.showOverflowTooltip);return Ge("td",{style:b(T,ye,P,ee),class:v(T,ye,P,ee,ke-1),key:`${Ne}${Ye}`,rowspan:Ee,colspan:ke,onMouseenter:de=>u(de,P,oe),onMouseleave:c},[Y])}))},S=(P,T,$)=>T.renderCell($);return{wrappedRowRender:(P,T)=>{const $=e.store,{isRowExpanded:z,assertRowKey:V}=$,{treeData:R,lazyTreeNodeMap:j,childrenColumnName:ue,rowKey:ce}=$.states,ne=$.states.columns.value;if(ne.some(({type:ie})=>ie==="expand")){const ie=z(P),ee=x(P,T,void 0,ie),ye=t.renderExpanded;return ie?ye?[[ee,Ge("tr",{key:`expanded-row__${ee.key}`},[Ge("td",{colspan:ne.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[ye({row:P,$index:T,store:$,expanded:ie})])])]]:(console.error("[Element Error]renderExpanded is required."),ee):[[ee]]}else if(Object.keys(R.value).length){V();const ie=Ln(P,ce.value);let ee=R.value[ie],ye=null;ee&&(ye={expanded:ee.expanded,level:ee.level,display:!0},typeof ee.lazy=="boolean"&&(typeof ee.loaded=="boolean"&&ee.loaded&&(ye.noLazyChildren=!(ee.children&&ee.children.length)),ye.loading=ee.loading));const Ee=[x(P,T,ye)];if(ee){let ke=0;const Ze=(Ye,Ne)=>{Ye&&Ye.length&&Ne&&Ye.forEach(Y=>{const oe={display:Ne.display&&Ne.expanded,level:Ne.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Ln(Y,ce.value);if(de==null)throw new Error("For nested data item, row-key is required.");if(ee={...R.value[de]},ee&&(oe.expanded=ee.expanded,ee.level=ee.level||oe.level,ee.display=!!(ee.expanded&&oe.display),typeof ee.lazy=="boolean"&&(typeof ee.loaded=="boolean"&&ee.loaded&&(oe.noLazyChildren=!(ee.children&&ee.children.length)),oe.loading=ee.loading)),ke++,Ee.push(x(Y,T+ke,oe)),ee){const Oe=j.value[de]||Y[ue.value];Ze(Oe,ee)}})};ee.display=!0;const le=j.value[ie]||P[ue.value];Ze(le,ee)}return Ee}else return x(P,T,void 0)},tooltipContent:d,tooltipTrigger:h}}const zU={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var HU=De({name:"ElTableBody",props:zU,setup(e){const t=kt(),n=qe(Ei),r=et("table"),{wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}=BU(e),{onColumnsChange:a,onScrollableChange:u}=J2(n);return Re(e.store.states.hoverRow,(c,d)=>{if(!e.store.states.isComplex.value||!tn)return;let h=window.requestAnimationFrame;h||(h=g=>window.setTimeout(g,16)),h(()=>{const g=t==null?void 0:t.vnode.el,m=Array.from((g==null?void 0:g.children)||[]).filter(_=>_==null?void 0:_.classList.contains(`${r.e("row")}`)),b=m[d],v=m[c];b&&$o(b,"hover-row"),v&&Mo(v,"hover-row")})}),qa(()=>{var c;(c=Wi)==null||c()}),{ns:r,onColumnsChange:a,onScrollableChange:u,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ge("tbody",{},[n.reduce((r,i)=>r.concat(e(i,r.length)),[])])}});function Ev(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(i=>i.width===void 0)&&(n=[]);const r=i=>{const s={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?s.style={width:`${i.width}px`}:s.name=i.id,s};return Ge("colgroup",{},n.map(i=>Ge("col",r(i))))}Ev.props=["columns","tableLayout"];function WU(){const e=qe(Ei),t=e==null?void 0:e.store,n=H(()=>t.states.fixedLeafColumnsLength.value),r=H(()=>t.states.rightFixedColumns.value.length),i=H(()=>t.states.columns.value.length),s=H(()=>t.states.fixedColumns.value.length),o=H(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:i,leftFixedCount:s,rightFixedCount:o,columns:t.states.columns}}function VU(e){const{columns:t}=WU(),n=et("table");return{getCellClasses:(s,o)=>{const a=s[o],u=[n.e("cell"),a.id,a.align,a.labelClassName,...Sv(n.b(),o,a.fixed,e.store)];return a.className&&u.push(a.className),a.children||u.push(n.is("leaf")),u},getCellStyles:(s,o)=>{const a=Ov(o,s.fixed,e.store);return Da(a,"left"),Da(a,"right"),a},columns:t}}var jU=De({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=VU(e);return{ns:et("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:i,ns:s}=this,o=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:o}):e.forEach((u,c)=>{if(c===0){a[c]=i;return}const d=o.map(b=>Number(b[u.property])),h=[];let g=!0;d.forEach(b=>{if(!Number.isNaN(+b)){g=!1;const v=`${b}`.split(".")[1];h.push(v?v.length:0)}});const m=Math.max.apply(null,h);g?a[c]="":a[c]=d.reduce((b,v)=>{const _=Number(v);return Number.isNaN(+_)?b:Number.parseFloat((b+v).toFixed(Math.min(m,20)))},0)}),Ge("table",{class:s.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Ev({columns:e}),Ge("tbody",[Ge("tr",{},[...e.map((u,c)=>Ge("td",{key:c,colspan:u.colSpan,rowspan:u.rowSpan,class:n(e,c),style:t(u,c)},[Ge("div",{class:["cell",u.labelClassName]},[a[c]])]))])])])}});function UU(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,h)=>{e.toggleRowSelection(d,h,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,h)=>{e.toggleRowExpansionAdapter(d,h)},clearSort:()=>{e.clearSort()},sort:(d,h)=>{e.commit("sort",{prop:d,order:h})}}}function KU(e,t,n,r){const i=X(!1),s=X(null),o=X(!1),a=ie=>{o.value=ie},u=X({width:null,height:null,headerHeight:null}),c=X(!1),d={display:"inline-block",verticalAlign:"middle"},h=X(),g=X(0),m=X(0),b=X(0),v=X(0);Ns(()=>{t.setHeight(e.height)}),Ns(()=>{t.setMaxHeight(e.maxHeight)}),Re(()=>[e.currentRowKey,n.states.rowKey],([ie,ee])=>{!O(ee)||!O(ie)||n.setCurrentRowKey(`${ie}`)},{immediate:!0}),Re(()=>e.data,ie=>{r.store.commit("setData",ie)},{immediate:!0,deep:!0}),Ns(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const _=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},y=(ie,ee)=>{const{pixelX:ye,pixelY:Ee}=ee;Math.abs(ye)>=Math.abs(Ee)&&(r.refs.bodyWrapper.scrollLeft+=ee.pixelX/5)},C=H(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),A=H(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(T)};Lt(async()=>{await vt(),n.updateColumns(),$(),requestAnimationFrame(x);const ie=r.vnode.el,ee=r.refs.headerWrapper;e.flexible&&ie&&ie.parentElement&&(ie.parentElement.style.minWidth="0"),u.value={width:h.value=ie.offsetWidth,height:ie.offsetHeight,headerHeight:e.showHeader&&ee?ee.offsetHeight:null},n.states.columns.value.forEach(ye=>{ye.filteredValue&&ye.filteredValue.length&&r.store.commit("filterChange",{column:ye,values:ye.filteredValue,silent:!0})}),r.$ready=!0});const S=(ie,ee)=>{if(!ie)return;const ye=Array.from(ie.classList).filter(Ee=>!Ee.startsWith("is-scrolling-"));ye.push(t.scrollX.value?ee:"is-scrolling-none"),ie.className=ye.join(" ")},M=ie=>{const{tableWrapper:ee}=r.refs;S(ee,ie)},P=ie=>{const{tableWrapper:ee}=r.refs;return!!(ee&&ee.classList.contains(ie))},T=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Ye="is-scrolling-none";P(Ye)||M(Ye);return}const ie=r.refs.scrollBarRef.wrapRef;if(!ie)return;const{scrollLeft:ee,offsetWidth:ye,scrollWidth:Ee}=ie,{headerWrapper:ke,footerWrapper:Ze}=r.refs;ke&&(ke.scrollLeft=ee),Ze&&(Ze.scrollLeft=ee);const le=Ee-ye-1;ee>=le?M("is-scrolling-right"):M(ee===0?"is-scrolling-left":"is-scrolling-middle")},$=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&yi(r.refs.scrollBarRef.wrapRef,"scroll",T,{passive:!0}),e.fit?js(r.vnode.el,z):yi(window,"resize",z),js(r.refs.bodyWrapper,()=>{var ie,ee;z(),(ee=(ie=r.refs)==null?void 0:ie.scrollBarRef)==null||ee.update()}))},z=()=>{var ie,ee,ye;const Ee=r.vnode.el;if(!r.$ready||!Ee)return;let ke=!1;const{width:Ze,height:le,headerHeight:Ye}=u.value,Ne=h.value=Ee.offsetWidth;Ze!==Ne&&(ke=!0);const Y=Ee.offsetHeight;(e.height||C.value)&&le!==Y&&(ke=!0);const oe=e.tableLayout==="fixed"?r.refs.headerWrapper:(ie=r.refs.tableHeaderRef)==null?void 0:ie.$el;e.showHeader&&(oe==null?void 0:oe.offsetHeight)!==Ye&&(ke=!0),g.value=((ee=r.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,b.value=(oe==null?void 0:oe.scrollHeight)||0,v.value=((ye=r.refs.footerWrapper)==null?void 0:ye.offsetHeight)||0,m.value=g.value-b.value-v.value,ke&&(u.value={width:Ne,height:Y,headerHeight:e.showHeader&&(oe==null?void 0:oe.offsetHeight)||0},x())},V=ns(),R=H(()=>{const{bodyWidth:ie,scrollY:ee,gutterWidth:ye}=t;return ie.value?`${ie.value-(ee.value?ye:0)}px`:""}),j=H(()=>e.maxHeight?"fixed":e.tableLayout),ue=H(()=>{if(e.data&&e.data.length)return null;let ie="100%";e.height&&m.value&&(ie=`${m.value}px`);const ee=h.value;return{width:ee?`${ee}px`:"",height:ie}}),ce=H(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),ne=H(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${b.value+v.value}px)`};{const ie=e.maxHeight;if(g.value>=Number(ie))return{maxHeight:`${g.value-b.value-v.value}px`}}}return{}});return{isHidden:i,renderExpanded:s,setDragVisible:a,isGroup:c,handleMouseLeave:_,handleHeaderFooterMousewheel:y,tableSize:V,emptyBlockStyle:ue,handleFixedMousewheel:(ie,ee)=>{const ye=r.refs.bodyWrapper;if(Math.abs(ee.spinY)>0){const Ee=ye.scrollTop;ee.pixelY<0&&Ee!==0&&ie.preventDefault(),ee.pixelY>0&&ye.scrollHeight-ye.clientHeight>Ee&&ie.preventDefault(),ye.scrollTop+=Math.ceil(ee.pixelY/5)}else ye.scrollLeft+=Math.ceil(ee.pixelX/5)},resizeProxyVisible:o,bodyWidth:R,resizeState:u,doLayout:x,tableBodyStyles:A,tableLayout:j,scrollbarViewStyle:d,tableInnerStyle:ce,scrollbarStyle:ne}}function qU(e){const t=X(),n=()=>{const i=e.vnode.el.querySelector(".hidden-columns"),s={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(a=>a())}),t.value.observe(i,s)};Lt(()=>{n()}),qa(()=>{var r;(r=t.value)==null||r.disconnect()})}var YU={data:{type:Array,default:()=>[]},size:Ja,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const GU=()=>{const e=X(),t=(s,o)=>{const a=e.value;a&&a.scrollTo(s,o)},n=(s,o)=>{const a=e.value;a&&jn(o)&&["Top","Left"].includes(s)&&a[`setScroll${s}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:s=>n("Top",s),setScrollLeft:s=>n("Left",s)}};let XU=1;const JU=De({name:"ElTable",directives:{Mousewheel:dj},components:{TableHeader:FU,TableBody:HU,TableFooter:jU,ElScrollbar:pv,hColgroup:Ev},props:YU,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Yo(),n=et("table"),r=kt();on(Ei,r);const i=xU(r,e);r.store=i;const s=new SU({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=s;const o=H(()=>(i.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:m,clearSort:b,sort:v}=UU(i),{isHidden:_,renderExpanded:y,setDragVisible:C,isGroup:A,handleMouseLeave:x,handleHeaderFooterMousewheel:S,tableSize:M,emptyBlockStyle:P,handleFixedMousewheel:T,resizeProxyVisible:$,bodyWidth:z,resizeState:V,doLayout:R,tableBodyStyles:j,tableLayout:ue,scrollbarViewStyle:ce,tableInnerStyle:ne,scrollbarStyle:Q}=KU(e,s,i,r),{scrollBarRef:ie,scrollTo:ee,setScrollLeft:ye,setScrollTop:Ee}=GU(),ke=Ta(R,50),Ze=`${n.namespace.value}-table_${XU++}`;r.tableId=Ze,r.state={isGroup:A,resizeState:V,doLayout:R,debouncedUpdateLayout:ke};const le=H(()=>e.sumText||t("el.table.sumText")),Ye=H(()=>e.emptyText||t("el.table.emptyText"));return qU(r),{ns:n,layout:s,store:i,handleHeaderFooterMousewheel:S,handleMouseLeave:x,tableId:Ze,tableSize:M,isHidden:_,isEmpty:o,renderExpanded:y,resizeProxyVisible:$,resizeState:V,isGroup:A,bodyWidth:z,tableBodyStyles:j,emptyBlockStyle:P,debouncedUpdateLayout:ke,handleFixedMousewheel:T,setCurrentRow:a,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:m,clearSort:b,doLayout:R,sort:v,t,setDragVisible:C,context:r,computedSumText:le,computedEmptyText:Ye,tableLayout:ue,scrollbarViewStyle:ce,tableInnerStyle:ne,scrollbarStyle:Q,scrollBarRef:ie,scrollTo:ee,setScrollLeft:ye,setScrollTop:Ee}}}),ZU=["data-prefix"],QU={ref:"hiddenColumns",class:"hidden-columns"};function e7(e,t,n,r,i,s){const o=Yt("hColgroup"),a=Yt("table-header"),u=Yt("table-body"),c=Yt("el-scrollbar"),d=Yt("table-footer"),h=Tm("mousewheel");return K(),_e("div",{ref:"tableWrapper",class:be([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Nt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[L("div",{class:be(e.ns.e("inner-wrapper")),style:Nt(e.tableInnerStyle)},[L("div",QU,[je(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?vn((K(),_e("div",{key:0,ref:"headerWrapper",class:be(e.ns.e("header-wrapper"))},[L("table",{ref:"tableHeader",class:be(e.ns.e("header")),style:Nt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[B(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),B(a,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[h,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),L("div",{ref:"bodyWrapper",class:be(e.ns.e("body-wrapper"))},[B(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:D(()=>[L("table",{ref:"tableBody",class:be(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Nt({width:e.bodyWidth,tableLayout:e.tableLayout})},[B(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(K(),Ie(a,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):Fe("v-if",!0),B(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(K(),_e("div",{key:0,ref:"emptyBlock",style:Nt(e.emptyBlockStyle),class:be(e.ns.e("empty-block"))},[L("span",{class:be(e.ns.e("empty-text"))},[je(e.$slots,"empty",{},()=>[Z(bt(e.computedEmptyText),1)])],2)],6)):Fe("v-if",!0),e.$slots.append?(K(),_e("div",{key:1,ref:"appendWrapper",class:be(e.ns.e("append-wrapper"))},[je(e.$slots,"append")],2)):Fe("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?vn((K(),_e("div",{key:1,ref:"footerWrapper",class:be(e.ns.e("footer-wrapper"))},[B(d,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Nt(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[oi,!e.isEmpty],[h,e.handleHeaderFooterMousewheel]]):Fe("v-if",!0),e.border||e.isGroup?(K(),_e("div",{key:2,class:be(e.ns.e("border-left-patch"))},null,2)):Fe("v-if",!0)],6),vn(L("div",{ref:"resizeProxy",class:be(e.ns.e("column-resize-proxy"))},null,2),[[oi,e.resizeProxyVisible]])],46,ZU)}var t7=At(JU,[["render",e7],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const n7={selection:"table-column--selection",expand:"table__expand-column"},r7={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},i7=e=>n7[e]||"",s7={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ge(Fa,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:r}){return Ge(Fa,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Ge("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,i=[r.e("expand-icon")];return n&&i.push(r.em("expand-icon","expanded")),Ge("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ge(kn,null,{default:()=>[Ge(Qm)]})]})},sortable:!1,resizable:!1}};function o7({row:e,column:t,$index:n}){var r;const i=t.property,s=i&&Sf(e,i).value;return t&&t.formatter?t.formatter(e,t,s,n):((r=s==null?void 0:s.toString)==null?void 0:r.call(s))||""}function a7({row:e,treeNode:t,store:n},r=!1){const{ns:i}=n;if(!t)return r?[Ge("span",{class:i.e("placeholder")})]:null;const s=[],o=function(a){a.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&s.push(Ge("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const a=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let u=Qm;t.loading&&(u=tv),s.push(Ge("div",{class:a,onClick:o},{default:()=>[Ge(kn,{class:{[i.is("loading")]:t.loading}},{default:()=>[Ge(u)]})]}))}else s.push(Ge("span",{class:i.e("placeholder")}));return s}function V1(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function l7(e,t){const n=kt();return{registerComplexWatchers:()=>{const s=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},a=V1(s,o);Object.keys(a).forEach(u=>{const c=o[u];wt(t,c)&&Re(()=>t[c],d=>{let h=d;c==="width"&&u==="realWidth"&&(h=Cv(d)),c==="minWidth"&&u==="realMinWidth"&&(h=K2(d)),n.columnConfig.value[c]=h,n.columnConfig.value[u]=h;const g=c==="fixed";e.value.store.scheduleLayout(g)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=V1(s,o);Object.keys(a).forEach(u=>{const c=o[u];wt(t,c)&&Re(()=>t[c],d=>{n.columnConfig.value[u]=d})})}}}function u7(e,t,n){const r=kt(),i=X(""),s=X(!1),o=X(),a=X(),u=et("table");Ns(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Ns(()=>{a.value=e.headerAlign?`is-${e.headerAlign}`:o.value,a.value});const c=H(()=>{let x=r.vnode.vParent||r.parent;for(;x&&!x.tableId&&!x.columnId;)x=x.vnode.vParent||x.parent;return x}),d=H(()=>{const{store:x}=r.parent;if(!x)return!1;const{treeData:S}=x.states,M=S.value;return M&&Object.keys(M).length>0}),h=X(Cv(e.width)),g=X(K2(e.minWidth)),m=x=>(h.value&&(x.width=h.value),g.value&&(x.minWidth=g.value),!h.value&&g.value&&(x.width=void 0),x.minWidth||(x.minWidth=80),x.realWidth=Number(x.width===void 0?x.minWidth:x.width),x),b=x=>{const S=x.type,M=s7[S]||{};Object.keys(M).forEach(T=>{const $=M[T];T!=="className"&&$!==void 0&&(x[T]=$)});const P=i7(S);if(P){const T=`${O(u.namespace)}-${P}`;x.className=x.className?`${x.className} ${T}`:T}return x},v=x=>{Array.isArray(x)?x.forEach(M=>S(M)):S(x);function S(M){var P;((P=M==null?void 0:M.type)==null?void 0:P.name)==="ElTableColumn"&&(M.vParent=r)}};return{columnId:i,realAlign:o,isSubColumn:s,realHeaderAlign:a,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:b,setColumnRenders:x=>{e.renderHeader||x.type!=="selection"&&(x.renderHeader=M=>{r.columnConfig.value.label;const P=t.header;return P?P(M):x.label});let S=x.renderCell;return x.type==="expand"?(x.renderCell=M=>Ge("div",{class:"cell"},[S(M)]),n.value.renderExpanded=M=>t.default?t.default(M):t.default):(S=S||o7,x.renderCell=M=>{let P=null;if(t.default){const j=t.default(M);P=j.some(ue=>ue.type!==ar)?j:S(M)}else P=S(M);const{columns:T}=n.value.store.states,$=T.value.findIndex(j=>j.type==="default"),z=d.value&&M.cellIndex===$,V=a7(M,z),R={class:"cell",style:{}};return x.showOverflowTooltip&&(R.class=`${R.class} ${O(u.namespace)}-tooltip`,R.style={width:`${(M.column.realWidth||Number(M.column.width))-1}px`}),v(P),Ge("div",R,[V,P])}),x},getPropsData:(...x)=>x.reduce((S,M)=>(Array.isArray(M)&&M.forEach(P=>{S[P]=e[P]}),S),{}),getColumnElIndex:(x,S)=>Array.prototype.indexOf.call(x,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var c7={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let f7=1;var Q2=De({name:"ElTableColumn",components:{ElCheckbox:Fa},props:c7,setup(e,{slots:t}){const n=kt(),r=X({}),i=H(()=>{let A=n.parent;for(;A&&!A.tableId;)A=A.parent;return A}),{registerNormalWatchers:s,registerComplexWatchers:o}=l7(i,e),{columnId:a,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:m,getPropsData:b,getColumnElIndex:v,realAlign:_,updateColumnOrder:y}=u7(e,t,i),C=d.value;a.value=`${C.tableId||C.columnId}_column_${f7++}`,Ua(()=>{u.value=i.value!==C;const A=e.type||"default",x=e.sortable===""?!0:e.sortable,S={...r7[A],id:a.value,type:A,property:e.prop||e.property,align:_,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:x,index:e.index,rawColumnKey:n.vnode.key};let z=b(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);z=fU(S,z),z=hU(m,h,g)(z),r.value=z,s(),o()}),Lt(()=>{var A;const x=d.value,S=u.value?x.vnode.el.children:(A=x.refs.hiddenColumns)==null?void 0:A.children,M=()=>v(S||[],n.vnode.el);r.value.getColumnIndex=M,M()>-1&&i.value.store.commit("insertColumn",r.value,u.value?x.columnConfig.value:null,y)}),Tn(()=>{i.value.store.commit("removeColumn",r.value,u.value?C.columnConfig.value:null,y)}),n.columnId=a.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===it&&Array.isArray(o.children)&&o.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!gt(a==null?void 0:a.children)&&i.push(a)});return Ge("div",i)}catch{return Ge("div",[])}}});const eO=$n(t7,{TableColumn:Q2}),tO=Oi(Q2);const d7=bD(),h7=BF(d7),p7=L("button",{class:"border-none w-full bg-transparent cursor-pointer",style:{height:"var(--ep-menu-item-height)"}},[L("i",{"inline-flex":"",i:"dark:ep-moon ep-sunny"})],-1),g7={__name:"BaseHeader",setup(e){return(t,n)=>{const r=H9,i=z9;return K(),Ie(i,{class:"sticky top-0 z-50 bg-opacity-100",mode:"horizontal",router:!0},{default:D(()=>[B(r,{index:"/input"},{default:D(()=>[Z("SOCRATES")]),_:1}),B(r,{index:"/about"},{default:D(()=>[Z("About")]),_:1}),B(r,{index:"/help"},{default:D(()=>[Z("Help")]),_:1}),B(r,{index:"/contact"},{default:D(()=>[Z("Contact")]),_:1}),B(r,{h:"full",onClick:n[0]||(n[0]=s=>O(h7)())},{default:D(()=>[p7]),_:1})]),_:1})}}};/*! + * vue-router v4.2.1 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const va=typeof window<"u";function m7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Wt=Object.assign;function kp(e,t){const n={};for(const r in t){const i=t[r];n[r]=ai(i)?i.map(e):e(i)}return n}const Gl=()=>{},ai=Array.isArray,v7=/\/$/,b7=e=>e.replace(v7,"");function Lp(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let u=t.indexOf("?");return a=0&&(u=-1),u>-1&&(r=t.slice(0,u),s=t.slice(u+1,a>-1?a:t.length),i=e(s)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=x7(r??t,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function y7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function j1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _7(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Na(t.matched[r],n.matched[i])&&nO(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Na(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nO(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!w7(e[n],t[n]))return!1;return!0}function w7(e,t){return ai(e)?U1(e,t):ai(t)?U1(t,e):e===t}function U1(e,t){return ai(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function x7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var xu;(function(e){e.pop="pop",e.push="push"})(xu||(xu={}));var Xl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xl||(Xl={}));function C7(e){if(!e)if(va){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),b7(e)}const S7=/^[^#]+#/;function O7(e,t){return e.replace(S7,"#")+t}function E7(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Ud=()=>({left:window.pageXOffset,top:window.pageYOffset});function M7(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=E7(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function K1(e,t){return(history.state?history.state.position-t:-1)+e}const zg=new Map;function T7(e,t){zg.set(e,t)}function A7(e){const t=zg.get(e);return zg.delete(e),t}let P7=()=>location.protocol+"//"+location.host;function rO(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let a=i.includes(e.slice(s))?e.slice(s).length:1,u=i.slice(a);return u[0]!=="/"&&(u="/"+u),j1(u,"")}return j1(n,e)+r+i}function R7(e,t,n,r){let i=[],s=[],o=null;const a=({state:g})=>{const m=rO(e,location),b=n.value,v=t.value;let _=0;if(g){if(n.value=m,t.value=g,o&&o===b){o=null;return}_=v?g.position-v.position:0}else r(m);i.forEach(y=>{y(n.value,b,{delta:_,type:xu.pop,direction:_?_>0?Xl.forward:Xl.back:Xl.unknown})})};function u(){o=n.value}function c(g){i.push(g);const m=()=>{const b=i.indexOf(g);b>-1&&i.splice(b,1)};return s.push(m),m}function d(){const{history:g}=window;g.state&&g.replaceState(Wt({},g.state,{scroll:Ud()}),"")}function h(){for(const g of s)g();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:h}}function q1(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Ud():null}}function k7(e){const{history:t,location:n}=window,r={value:rO(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,d){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+u:P7()+e+u;try{t[d?"replaceState":"pushState"](c,"",g),i.value=c}catch(m){console.error(m),n[d?"replace":"assign"](g)}}function o(u,c){const d=Wt({},t.state,q1(i.value.back,u,i.value.forward,!0),c,{position:i.value.position});s(u,d,!0),r.value=u}function a(u,c){const d=Wt({},i.value,t.state,{forward:u,scroll:Ud()});s(d.current,d,!0);const h=Wt({},q1(r.value,u,null),{position:d.position+1},c);s(u,h,!1),r.value=u}return{location:r,state:i,push:a,replace:o}}function L7(e){e=C7(e);const t=k7(e),n=R7(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Wt({location:"",base:e,go:r,createHref:O7.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function I7(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),L7(e)}function $7(e){return typeof e=="string"||e&&typeof e=="object"}function iO(e){return typeof e=="string"||typeof e=="symbol"}const _s={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},sO=Symbol("");var Y1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Y1||(Y1={}));function Ba(e,t){return Wt(new Error,{type:e,[sO]:!0},t)}function Ni(e,t){return e instanceof Error&&sO in e&&(t==null||!!(e.type&t))}const G1="[^/]+?",F7={sensitive:!1,strict:!1,start:!0,end:!0},D7=/[.+*?^${}()[\]/\\]/g;function N7(e,t){const n=Wt({},F7,t),r=[];let i=n.start?"^":"";const s=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function z7(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const H7={type:0,value:""},W7=/[a-zA-Z0-9_]/;function V7(e){if(!e)return[[]];if(e==="/")return[[H7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,u,c="",d="";function h(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function g(){c+=u}for(;a{o(C)}:Gl}function o(d){if(iO(d)){const h=r.get(d);h&&(r.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function u(d){let h=0;for(;h=0&&(d.record.path!==n[h].record.path||!oO(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!Z1(d)&&r.set(d.record.name,d)}function c(d,h){let g,m={},b,v;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw Ba(1,{location:d});v=g.record.name,m=Wt(J1(h.params,g.keys.filter(C=>!C.optional).map(C=>C.name)),d.params&&J1(d.params,g.keys.map(C=>C.name))),b=g.stringify(m)}else if("path"in d)b=d.path,g=n.find(C=>C.re.test(b)),g&&(m=g.parse(b),v=g.record.name);else{if(g=h.name?r.get(h.name):n.find(C=>C.re.test(h.path)),!g)throw Ba(1,{location:d,currentLocation:h});v=g.record.name,m=Wt({},h.params,d.params),b=g.stringify(m)}const _=[];let y=g;for(;y;)_.unshift(y.record),y=y.parent;return{name:v,path:b,params:m,matched:_,meta:Y7(_)}}return e.forEach(d=>s(d)),{addRoute:s,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function J1(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function K7(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:q7(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function q7(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Z1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Y7(e){return e.reduce((t,n)=>Wt(t,n.meta),{})}function Q1(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function oO(e,t){return t.children.some(n=>n===e||oO(e,n))}const aO=/#/g,G7=/&/g,X7=/\//g,J7=/=/g,Z7=/\?/g,lO=/\+/g,Q7=/%5B/g,eK=/%5D/g,uO=/%5E/g,tK=/%60/g,cO=/%7B/g,nK=/%7C/g,fO=/%7D/g,rK=/%20/g;function Mv(e){return encodeURI(""+e).replace(nK,"|").replace(Q7,"[").replace(eK,"]")}function iK(e){return Mv(e).replace(cO,"{").replace(fO,"}").replace(uO,"^")}function Hg(e){return Mv(e).replace(lO,"%2B").replace(rK,"+").replace(aO,"%23").replace(G7,"%26").replace(tK,"`").replace(cO,"{").replace(fO,"}").replace(uO,"^")}function sK(e){return Hg(e).replace(J7,"%3D")}function oK(e){return Mv(e).replace(aO,"%23").replace(Z7,"%3F")}function aK(e){return e==null?"":oK(e).replace(X7,"%2F")}function ld(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function lK(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;is&&Hg(s)):[r&&Hg(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function uK(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ai(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const cK=Symbol(""),tw=Symbol(""),Tv=Symbol(""),dO=Symbol(""),Wg=Symbol("");function Cl(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Es(e,t,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const u=h=>{h===!1?a(Ba(4,{from:n,to:t})):h instanceof Error?a(h):$7(h)?a(Ba(2,{from:t,to:h})):(s&&r.enterCallbacks[i]===s&&typeof h=="function"&&s.push(h),o())},c=e.call(r&&r.instances[i],t,n,u);let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(h=>a(h))})}function Ip(e,t,n,r){const i=[];for(const s of e)for(const o in s.components){let a=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(fK(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Es(c,n,r,s,o))}else{let u=a();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const d=m7(c)?c.default:c;s.components[o]=d;const g=(d.__vccOpts||d)[t];return g&&Es(g,n,r,s,o)()}))}}return i}function fK(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function nw(e){const t=qe(Tv),n=qe(dO),r=H(()=>t.resolve(O(e.to))),i=H(()=>{const{matched:u}=r.value,{length:c}=u,d=u[c-1],h=n.matched;if(!d||!h.length)return-1;const g=h.findIndex(Na.bind(null,d));if(g>-1)return g;const m=rw(u[c-2]);return c>1&&rw(d)===m&&h[h.length-1].path!==m?h.findIndex(Na.bind(null,u[c-2])):g}),s=H(()=>i.value>-1&&gK(n.params,r.value.params)),o=H(()=>i.value>-1&&i.value===n.matched.length-1&&nO(n.params,r.value.params));function a(u={}){return pK(u)?t[O(e.replace)?"replace":"push"](O(e.to)).catch(Gl):Promise.resolve()}return{route:r,href:H(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const dK=De({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:nw,setup(e,{slots:t}){const n=mn(nw(e)),{options:r}=qe(Tv),i=H(()=>({[iw(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[iw(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Ge("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),hK=dK;function pK(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function gK(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!ai(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function rw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const iw=(e,t,n)=>e??t??n,mK=De({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=qe(Wg),i=H(()=>e.route||r.value),s=qe(tw,0),o=H(()=>{let c=O(s);const{matched:d}=i.value;let h;for(;(h=d[c])&&!h.components;)c++;return c}),a=H(()=>i.value.matched[o.value]);on(tw,H(()=>o.value+1)),on(cK,a),on(Wg,i);const u=X();return Re(()=>[u.value,a.value,e.name],([c,d,h],[g,m,b])=>{d&&(d.instances[h]=c,m&&m!==d&&c&&c===g&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),c&&d&&(!m||!Na(d,m)||!g)&&(d.enterCallbacks[h]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=i.value,d=e.name,h=a.value,g=h&&h.components[d];if(!g)return sw(n.default,{Component:g,route:c});const m=h.props[d],b=m?m===!0?c.params:typeof m=="function"?m(c):m:null,_=Ge(g,Wt({},b,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(h.instances[d]=null)},ref:u}));return sw(n.default,{Component:_,route:c})||_}}});function sw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const hO=mK;function vK(e){const t=U7(e.routes,e),n=e.parseQuery||lK,r=e.stringifyQuery||ew,i=e.history,s=Cl(),o=Cl(),a=Cl(),u=Fs(_s);let c=_s;va&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=kp.bind(null,Y=>""+Y),h=kp.bind(null,aK),g=kp.bind(null,ld);function m(Y,oe){let de,Oe;return iO(Y)?(de=t.getRecordMatcher(Y),Oe=oe):Oe=Y,t.addRoute(Oe,de)}function b(Y){const oe=t.getRecordMatcher(Y);oe&&t.removeRoute(oe)}function v(){return t.getRoutes().map(Y=>Y.record)}function _(Y){return!!t.getRecordMatcher(Y)}function y(Y,oe){if(oe=Wt({},oe||u.value),typeof Y=="string"){const q=Lp(n,Y,oe.path),se=t.resolve({path:q.path},oe),he=i.createHref(q.fullPath);return Wt(q,se,{params:g(se.params),hash:ld(q.hash),redirectedFrom:void 0,href:he})}let de;if("path"in Y)de=Wt({},Y,{path:Lp(n,Y.path,oe.path).path});else{const q=Wt({},Y.params);for(const se in q)q[se]==null&&delete q[se];de=Wt({},Y,{params:h(q)}),oe.params=h(oe.params)}const Oe=t.resolve(de,oe),We=Y.hash||"";Oe.params=d(g(Oe.params));const F=y7(r,Wt({},Y,{hash:iK(We),path:Oe.path})),W=i.createHref(F);return Wt({fullPath:F,hash:We,query:r===ew?uK(Y.query):Y.query||{}},Oe,{redirectedFrom:void 0,href:W})}function C(Y){return typeof Y=="string"?Lp(n,Y,u.value.path):Wt({},Y)}function A(Y,oe){if(c!==Y)return Ba(8,{from:oe,to:Y})}function x(Y){return P(Y)}function S(Y){return x(Wt(C(Y),{replace:!0}))}function M(Y){const oe=Y.matched[Y.matched.length-1];if(oe&&oe.redirect){const{redirect:de}=oe;let Oe=typeof de=="function"?de(Y):de;return typeof Oe=="string"&&(Oe=Oe.includes("?")||Oe.includes("#")?Oe=C(Oe):{path:Oe},Oe.params={}),Wt({query:Y.query,hash:Y.hash,params:"path"in Oe?{}:Y.params},Oe)}}function P(Y,oe){const de=c=y(Y),Oe=u.value,We=Y.state,F=Y.force,W=Y.replace===!0,q=M(de);if(q)return P(Wt(C(q),{state:typeof q=="object"?Wt({},We,q.state):We,force:F,replace:W}),oe||de);const se=de;se.redirectedFrom=oe;let he;return!F&&_7(r,Oe,de)&&(he=Ba(16,{to:se,from:Oe}),Ee(Oe,Oe,!0,!1)),(he?Promise.resolve(he):z(se,Oe)).catch(ge=>Ni(ge)?Ni(ge,2)?ge:ye(ge):ie(ge,se,Oe)).then(ge=>{if(ge){if(Ni(ge,2))return P(Wt({replace:W},C(ge.to),{state:typeof ge.to=="object"?Wt({},We,ge.to.state):We,force:F}),oe||se)}else ge=R(se,Oe,!0,W,We);return V(se,Oe,ge),ge})}function T(Y,oe){const de=A(Y,oe);return de?Promise.reject(de):Promise.resolve()}function $(Y){const oe=le.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(Y):Y()}function z(Y,oe){let de;const[Oe,We,F]=bK(Y,oe);de=Ip(Oe.reverse(),"beforeRouteLeave",Y,oe);for(const q of Oe)q.leaveGuards.forEach(se=>{de.push(Es(se,Y,oe))});const W=T.bind(null,Y,oe);return de.push(W),Ne(de).then(()=>{de=[];for(const q of s.list())de.push(Es(q,Y,oe));return de.push(W),Ne(de)}).then(()=>{de=Ip(We,"beforeRouteUpdate",Y,oe);for(const q of We)q.updateGuards.forEach(se=>{de.push(Es(se,Y,oe))});return de.push(W),Ne(de)}).then(()=>{de=[];for(const q of Y.matched)if(q.beforeEnter&&!oe.matched.includes(q))if(ai(q.beforeEnter))for(const se of q.beforeEnter)de.push(Es(se,Y,oe));else de.push(Es(q.beforeEnter,Y,oe));return de.push(W),Ne(de)}).then(()=>(Y.matched.forEach(q=>q.enterCallbacks={}),de=Ip(F,"beforeRouteEnter",Y,oe),de.push(W),Ne(de))).then(()=>{de=[];for(const q of o.list())de.push(Es(q,Y,oe));return de.push(W),Ne(de)}).catch(q=>Ni(q,8)?q:Promise.reject(q))}function V(Y,oe,de){for(const Oe of a.list())$(()=>Oe(Y,oe,de))}function R(Y,oe,de,Oe,We){const F=A(Y,oe);if(F)return F;const W=oe===_s,q=va?history.state:{};de&&(Oe||W?i.replace(Y.fullPath,Wt({scroll:W&&q&&q.scroll},We)):i.push(Y.fullPath,We)),u.value=Y,Ee(Y,oe,de,W),ye()}let j;function ue(){j||(j=i.listen((Y,oe,de)=>{if(!Ye.listening)return;const Oe=y(Y),We=M(Oe);if(We){P(Wt(We,{replace:!0}),Oe).catch(Gl);return}c=Oe;const F=u.value;va&&T7(K1(F.fullPath,de.delta),Ud()),z(Oe,F).catch(W=>Ni(W,12)?W:Ni(W,2)?(P(W.to,Oe).then(q=>{Ni(q,20)&&!de.delta&&de.type===xu.pop&&i.go(-1,!1)}).catch(Gl),Promise.reject()):(de.delta&&i.go(-de.delta,!1),ie(W,Oe,F))).then(W=>{W=W||R(Oe,F,!1),W&&(de.delta&&!Ni(W,8)?i.go(-de.delta,!1):de.type===xu.pop&&Ni(W,20)&&i.go(-1,!1)),V(Oe,F,W)}).catch(Gl)}))}let ce=Cl(),ne=Cl(),Q;function ie(Y,oe,de){ye(Y);const Oe=ne.list();return Oe.length?Oe.forEach(We=>We(Y,oe,de)):console.error(Y),Promise.reject(Y)}function ee(){return Q&&u.value!==_s?Promise.resolve():new Promise((Y,oe)=>{ce.add([Y,oe])})}function ye(Y){return Q||(Q=!Y,ue(),ce.list().forEach(([oe,de])=>Y?de(Y):oe()),ce.reset()),Y}function Ee(Y,oe,de,Oe){const{scrollBehavior:We}=e;if(!va||!We)return Promise.resolve();const F=!de&&A7(K1(Y.fullPath,0))||(Oe||!de)&&history.state&&history.state.scroll||null;return vt().then(()=>We(Y,oe,F)).then(W=>W&&M7(W)).catch(W=>ie(W,Y,oe))}const ke=Y=>i.go(Y);let Ze;const le=new Set,Ye={currentRoute:u,listening:!0,addRoute:m,removeRoute:b,hasRoute:_,getRoutes:v,resolve:y,options:e,push:x,replace:S,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:ne.add,isReady:ee,install(Y){const oe=this;Y.component("RouterLink",hK),Y.component("RouterView",hO),Y.config.globalProperties.$router=oe,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>O(u)}),va&&!Ze&&u.value===_s&&(Ze=!0,x(i.location).catch(We=>{}));const de={};for(const We in _s)de[We]=H(()=>u.value[We]);Y.provide(Tv,oe),Y.provide(dO,mn(de)),Y.provide(Wg,u);const Oe=Y.unmount;le.add(Y),Y.unmount=function(){le.delete(Y),le.size<1&&(c=_s,j&&j(),j=null,u.value=_s,Ze=!1,Q=!1),Oe()}}};function Ne(Y){return Y.reduce((oe,de)=>oe.then(()=>$(de)),Promise.resolve())}return Ye}function bK(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;oNa(c,a))?r.push(a):n.push(a));const u=e.matched[o];u&&(t.matched.find(c=>Na(c,u))||i.push(u))}return[n,r,i]}const yK=De({__name:"App",setup(e){return(t,n)=>{const r=g7,i=dH;return K(),Ie(i,{namespace:"ep"},{default:D(()=>[B(r),B(O(hO))]),_:1})}}});const ju=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},_K=ju(yK,[["__scopeId","data-v-aa3fa0a7"]]);const wK={},xK={class:"mx-4"},CK=L("h2",{class:"center",style:{"word-break":"break-all"}}," ",-1),SK=L("div",{class:"col-md-1"},null,-1),OK=L("div",{class:"col-md-9"},[L("div",{class:"basic-form"},[L("h3",{class:"center text-3xl"},[Z("S.O.C.R.A.T.E.S."),L("br"),Z("Soil Organic Carbon Reserves And Transformations in EcoSystems")])])],-1),EK=L("div",{class:"row"},[L("div",{class:"col-md-1"}),L("div",{class:"col-md-9"},[L("div",{class:"basic-form border-noshadow"},[L("h4",{class:"text-1xl"},"A simple model for predicting long-term changes in soil organic carbon in terrestrial ecosystems"),L("p",null,"The maintenance of soil organic carbon (SOC) in terrestrial ecosystems is critical for long-term productivity."),L("p",null,"Simulation models of SOC dynamics are valuable tools in predicting the impacts of climate on carbon storage and developing management strategies for the mitigation of greenhouse gas emissions, however, their utility is generally reduced due to need for specific data. "),L("p",null,"The SOCRATES model is a simple process based representation of SOC dynamics in terrestrial ecosystems, which requires minimal data inputs and specifically designed to examine the impact of land use and land use change on soil carbon storage. It also contains a simple yield calculator."),L("p",null,[Z("SOCRATES was successful in predicting SOC change at eighteen long-term non-irrigated crop, pasture and forestry trials from North America, Europe and Australasia. These trials ranged from 8 to 86 years in duration, over a wide range of climates and soil types. See "),L("a",{target:"_blank",rel:"noreferrer noopener",href:"http://doi.org/10.1016/j.soilbio.2005.09.013"},"Grace et al (2006) SOCRATES—a simple model for predicting long-term changes in soil organic carbon in terrestrial ecosystems. Soil Biology and Biochemistry, 38, 1172-1176.")])])])],-1);function MK(e,t){const n=os,r=Vr;return K(),_e("div",xK,[B(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[B(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[CK]),_:1}),B(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[SK,OK,EK]),_:1})]),_:1})])}const pO=ju(wK,[["render",MK]]),TK={};function AK(e,t){const n=pO,r=g2,i=Yt("router-link"),s=Vr,o=os;return K(),Ie(s,null,{default:D(()=>[B(o,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[B(n),B(s,{class:"m-4 p-4"},{default:D(()=>[B(i,{to:"/input"},{default:D(({href:a,route:u,navigate:c})=>[B(r,{href:a,onClick:c,class:"btn btn-custom btn-lg btn-block",role:"button"},{default:D(()=>[Z("Start Model ")]),_:2},1032,["href","onClick"])]),_:1})]),_:1})]),_:1})]),_:1})}const PK=ju(TK,[["render",AK]]);/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function Uu(e){return e+.5|0}const As=(e,t,n)=>Math.max(Math.min(e,n),t);function kl(e){return As(Uu(e*2.55),0,255)}function Bs(e){return As(Uu(e*255),0,255)}function qi(e){return As(Uu(e/2.55)/100,0,1)}function ow(e){return As(Uu(e*100),0,100)}const Fr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Vg=[..."0123456789ABCDEF"],RK=e=>Vg[e&15],kK=e=>Vg[(e&240)>>4]+Vg[e&15],tf=e=>(e&240)>>4===(e&15),LK=e=>tf(e.r)&&tf(e.g)&&tf(e.b)&&tf(e.a);function IK(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Fr[e[1]]*17,g:255&Fr[e[2]]*17,b:255&Fr[e[3]]*17,a:t===5?Fr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Fr[e[1]]<<4|Fr[e[2]],g:Fr[e[3]]<<4|Fr[e[4]],b:Fr[e[5]]<<4|Fr[e[6]],a:t===9?Fr[e[7]]<<4|Fr[e[8]]:255})),n}const $K=(e,t)=>e<255?t(e):"";function FK(e){var t=LK(e)?RK:kK;return e?"#"+t(e.r)+t(e.g)+t(e.b)+$K(e.a,t):void 0}const DK=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function gO(e,t,n){const r=t*Math.min(n,1-n),i=(s,o=(s+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function NK(e,t,n){const r=(i,s=(i+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function BK(e,t,n){const r=gO(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function zK(e,t,n,r,i){return e===i?(t-n)/r+(t.5?d/(2-s-o):d/(s+o),u=zK(n,r,i,d,s),u=u*60+.5),[u|0,c||0,a]}function Pv(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Bs)}function Rv(e,t,n){return Pv(gO,e,t,n)}function HK(e,t,n){return Pv(BK,e,t,n)}function WK(e,t,n){return Pv(NK,e,t,n)}function mO(e){return(e%360+360)%360}function VK(e){const t=DK.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?kl(+t[5]):Bs(+t[5]));const i=mO(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=HK(i,s,o):t[1]==="hsv"?r=WK(i,s,o):r=Rv(i,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function jK(e,t){var n=Av(e);n[0]=mO(n[0]+t),n=Rv(n),e.r=n[0],e.g=n[1],e.b=n[2]}function UK(e){if(!e)return;const t=Av(e),n=t[0],r=ow(t[1]),i=ow(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${qi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const aw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function KK(){const e={},t=Object.keys(lw),n=Object.keys(aw);let r,i,s,o,a;for(r=0;r>16&255,s>>8&255,s&255]}return e}let nf;function qK(e){nf||(nf=KK(),nf.transparent=[0,0,0,0]);const t=nf[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const YK=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function GK(e){const t=YK.exec(e);let n=255,r,i,s;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?kl(o):As(o*255,0,255)}return r=+t[1],i=+t[3],s=+t[5],r=255&(t[2]?kl(r):As(r,0,255)),i=255&(t[4]?kl(i):As(i,0,255)),s=255&(t[6]?kl(s):As(s,0,255)),{r,g:i,b:s,a:n}}}function XK(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const $p=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ha=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function JK(e,t,n){const r=ha(qi(e.r)),i=ha(qi(e.g)),s=ha(qi(e.b));return{r:Bs($p(r+n*(ha(qi(t.r))-r))),g:Bs($p(i+n*(ha(qi(t.g))-i))),b:Bs($p(s+n*(ha(qi(t.b))-s))),a:e.a+n*(t.a-e.a)}}function rf(e,t,n){if(e){let r=Av(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Rv(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function vO(e,t){return e&&Object.assign(t||{},e)}function uw(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Bs(e[3]))):(t=vO(e,{r:0,g:0,b:0,a:1}),t.a=Bs(t.a)),t}function ZK(e){return e.charAt(0)==="r"?GK(e):VK(e)}class Cu{constructor(t){if(t instanceof Cu)return t;const n=typeof t;let r;n==="object"?r=uw(t):n==="string"&&(r=IK(t)||qK(t)||ZK(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=vO(this._rgb);return t&&(t.a=qi(t.a)),t}set rgb(t){this._rgb=uw(t)}rgbString(){return this._valid?XK(this._rgb):void 0}hexString(){return this._valid?FK(this._rgb):void 0}hslString(){return this._valid?UK(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let s;const o=n===s?.5:n,a=2*o-1,u=r.a-i.a,c=((a*u===-1?a:(a+u)/(1+a*u))+1)/2;s=1-c,r.r=255&c*r.r+s*i.r+.5,r.g=255&c*r.g+s*i.g+.5,r.b=255&c*r.b+s*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=JK(this._rgb,t._rgb,n)),this}clone(){return new Cu(this.rgb)}alpha(t){return this._rgb.a=Bs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Uu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return rf(this._rgb,2,t),this}darken(t){return rf(this._rgb,2,-t),this}saturate(t){return rf(this._rgb,1,t),this}desaturate(t){return rf(this._rgb,1,-t),this}rotate(t){return jK(this._rgb,t),this}}/*! + * Chart.js v4.4.1 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */function Bi(){}const QK=(()=>{let e=0;return()=>e++})();function Rt(e){return e===null||typeof e>"u"}function Qt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Tt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function cn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function _r(e,t){return cn(e)?e:t}function pt(e,t){return typeof e>"u"?t:e}const eq=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,bO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function qt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Vt(e,t,n,r){let i,s,o;if(Qt(e))if(s=e.length,r)for(i=s-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function rq(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function iq(e){const t=rq(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Ks(e,t){return(cw[t]||(cw[t]=iq(t)))(e)}function kv(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ou=e=>typeof e<"u",qs=e=>typeof e=="function",fw=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function sq(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const nn=Math.PI,en=2*nn,oq=en+nn,fd=Number.POSITIVE_INFINITY,aq=nn/180,pn=nn/2,fo=nn/4,dw=nn*2/3,Ps=Math.log10,wi=Math.sign;function Zl(e,t,n){return Math.abs(e-t)i-s).pop(),t}function za(e){return!isNaN(parseFloat(e))&&isFinite(e)}function uq(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function _O(e,t,n){let r,i,s;for(r=0,i=e.length;ru&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Iv(e,t,n){n=n||(o=>e[o]1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const Gi=(e,t,n,r)=>Iv(e,n,r?i=>{const s=e[i][t];return se[i][t]Iv(e,n,r=>e[r][t]>=n);function hq(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+kv(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const o=i.apply(this,s);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...s)}),o}})})}function gw(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(xO.forEach(s=>{delete e[s]}),delete e._chartjs)}function CO(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const SO=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function OO(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,SO.call(window,()=>{r=!1,e.apply(t,n)}))}}function gq(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const $v=e=>e==="start"?"left":e==="end"?"right":"center",Bn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,mq=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function EO(e,t,n){const r=t.length;let i=0,s=r;if(e._sorted){const{iScale:o,_parsed:a}=e,u=o.axis,{min:c,max:d,minDefined:h,maxDefined:g}=o.getUserBounds();h&&(i=Mn(Math.min(Gi(a,u,c).lo,n?r:Gi(t,u,o.getPixelForValue(c)).lo),0,r-1)),g?s=Mn(Math.max(Gi(a,o.axis,d,!0).hi+1,n?0:Gi(t,u,o.getPixelForValue(d),!0).hi+1),i,r)-i:s=r-i}return{start:i,count:s}}function MO(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const sf=e=>e===0||e===1,mw=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*en/n)),vw=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*en/n)+1,Ql={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*pn)+1,easeOutSine:e=>Math.sin(e*pn),easeInOutSine:e=>-.5*(Math.cos(nn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>sf(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>sf(e)?e:mw(e,.075,.3),easeOutElastic:e=>sf(e)?e:vw(e,.075,.3),easeInOutElastic(e){return sf(e)?e:e<.5?.5*mw(e*2,.1125,.45):.5+.5*vw(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ql.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ql.easeInBounce(e*2)*.5:Ql.easeOutBounce(e*2-1)*.5+.5};function Fv(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function bw(e){return Fv(e)?e:new Cu(e)}function Fp(e){return Fv(e)?e:new Cu(e).saturate(.5).darken(.1).hexString()}const vq=["x","y","borderWidth","radius","tension"],bq=["color","borderColor","backgroundColor"];function yq(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:bq},numbers:{type:"number",properties:vq}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function _q(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const yw=new Map;function wq(e,t){t=t||{};const n=e+JSON.stringify(t);let r=yw.get(n);return r||(r=new Intl.NumberFormat(e,t),yw.set(n,r)),r}function Ku(e,t,n){return wq(t,n).format(e)}const TO={values(e){return Qt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,s=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),s=xq(e,n)}const o=Ps(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(u,this.options.ticks.format),Ku(e,r,u)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Ps(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?TO.numeric.call(this,e,t,n):""}};function xq(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Kd={formatters:TO};function Cq(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Kd.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Wo=Object.create(null),Ug=Object.create(null);function eu(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Fp(i.backgroundColor),this.hoverBorderColor=(r,i)=>Fp(i.borderColor),this.hoverColor=(r,i)=>Fp(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Dp(this,t,n)}get(t){return eu(this,t)}describe(t,n){return Dp(Ug,t,n)}override(t,n){return Dp(Wo,t,n)}route(t,n,r,i){const s=eu(this,t),o=eu(this,r),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const u=this[a],c=o[i];return Tt(u)?Object.assign({},c,u):pt(u,c)},set(u){this[a]=u}}})}apply(t){t.forEach(n=>n(this))}};var fn=new Sq({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[yq,_q,Cq]);function Oq(e){return!e||Rt(e.size)||Rt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function dd(e,t,n,r,i){let s=t[i];return s||(s=t[i]=e.measureText(i).width,n.push(i)),s>r&&(r=s),r}function Eq(e,t,n,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},s=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const a=n.length;let u,c,d,h,g;for(u=0;un.length){for(u=0;u0&&e.stroke()}}function Xi(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&s.strokeColor!=="";let u,c;for(e.save(),e.font=i.string,Aq(e,s),u=0;u+e||0;function Dv(e,t){const n={},r=Tt(t),i=r?Object.keys(t):t,s=Tt(e)?r?o=>pt(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=$q(s(o));return n}function PO(e){return Dv(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Do(e){return Dv(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Kn(e){const t=PO(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function wn(e,t){e=e||{},t=t||fn.font;let n=pt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=pt(e.style,t.style);r&&!(""+r).match(Lq)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:pt(e.family,t.family),lineHeight:Iq(pt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:pt(e.weight,t.weight),string:""};return i.string=Oq(i),i}function Ll(e,t,n,r){let i=!0,s,o,a;for(s=0,o=e.length;sn&&a===0?0:a+u;return{min:o(r,-Math.abs(s)),max:o(i,s)}}function Js(e,t){return Object.assign(Object.create(e),t)}function Nv(e,t=[""],n,r,i=()=>e[0]){const s=n||e;typeof r>"u"&&(r=IO("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:r,_getTarget:i,override:a=>Nv([a,...e],t,s,r)};return new Proxy(o,{deleteProperty(a,u){return delete a[u],delete a._keys,delete e[0][u],!0},get(a,u){return kO(a,u,()=>jq(u,t,e,a))},getOwnPropertyDescriptor(a,u){return Reflect.getOwnPropertyDescriptor(a._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,u){return xw(a).includes(u)},ownKeys(a){return xw(a)},set(a,u,c){const d=a._storage||(a._storage=i());return a[u]=d[u]=c,delete a._keys,!0}})}function Ha(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:RO(e,r),setContext:s=>Ha(e,s,n,r),override:s=>Ha(e.override(s),t,n,r)};return new Proxy(i,{deleteProperty(s,o){return delete s[o],delete e[o],!0},get(s,o,a){return kO(s,o,()=>Nq(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(s,o,a){return e[o]=a,delete s[o],!0}})}function RO(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:qs(n)?n:()=>n,isIndexable:qs(r)?r:()=>r}}const Dq=(e,t)=>e?e+kv(t):t,Bv=(e,t)=>Tt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function kO(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Nq(e,t,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=e;let a=r[t];return qs(a)&&o.isScriptable(t)&&(a=Bq(t,a,e,n)),Qt(a)&&a.length&&(a=zq(t,a,e,o.isIndexable)),Bv(t,a)&&(a=Ha(a,i,s&&s[t],o)),a}function Bq(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let u=t(s,o||r);return a.delete(e),Bv(e,u)&&(u=zv(i._scopes,i,e,u)),u}function zq(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index<"u"&&r(e))return t[s.index%t.length];if(Tt(t[0])){const u=t,c=i._scopes.filter(d=>d!==u);t=[];for(const d of u){const h=zv(c,i,e,d);t.push(Ha(h,s,o&&o[e],a))}}return t}function LO(e,t,n){return qs(e)?e(t,n):e}const Hq=(e,t)=>e===!0?t:typeof e=="string"?Ks(t,e):void 0;function Wq(e,t,n,r,i){for(const s of t){const o=Hq(n,s);if(o){e.add(o);const a=LO(o._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function zv(e,t,n,r){const i=t._rootScopes,s=LO(t._fallback,n,r),o=[...e,...i],a=new Set;a.add(r);let u=ww(a,o,n,s||n,r);return u===null||typeof s<"u"&&s!==n&&(u=ww(a,o,s,u,r),u===null)?!1:Nv(Array.from(a),[""],i,s,()=>Vq(t,n,r))}function ww(e,t,n,r,i){for(;n;)n=Wq(e,t,n,r,i);return n}function Vq(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Qt(i)&&Tt(n)?n:i||{}}function jq(e,t,n,r){let i;for(const s of t)if(i=IO(Dq(s,e),n),typeof i<"u")return Bv(e,i)?zv(n,r,e,i):i}function IO(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function xw(e){let t=e._keys;return t||(t=e._keys=Uq(e._scopes)),t}function Uq(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function $O(e,t,n,r){const{iScale:i}=e,{key:s="r"}=this._parsing,o=new Array(r);let a,u,c,d;for(a=0,u=r;ate==="x"?"y":"x";function qq(e,t,n,r){const i=e.skip?t:e,s=t,o=n.skip?t:n,a=jg(s,i),u=jg(o,s);let c=a/(a+u),d=u/(a+u);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=r*c,g=r*d;return{previous:{x:s.x-h*(o.x-i.x),y:s.y-h*(o.y-i.y)},next:{x:s.x+g*(o.x-i.x),y:s.y+g*(o.y-i.y)}}}function Yq(e,t,n){const r=e.length;let i,s,o,a,u,c=Wa(e,0);for(let d=0;d!c.skip)),t.cubicInterpolationMode==="monotone")Xq(e,i);else{let c=r?e[e.length-1]:e[0];for(s=0,o=e.length;se.ownerDocument.defaultView.getComputedStyle(e,null);function Qq(e,t){return Gd(e).getPropertyValue(t)}const eY=["top","right","bottom","left"];function No(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=eY[i];r[s]=parseFloat(e[t+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const tY=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function nY(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:s}=r;let o=!1,a,u;if(tY(i,s,e.target))a=i,u=s;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,u=r.clientY-c.top,o=!0}return{x:a,y:u,box:o}}function bo(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Gd(n),s=i.boxSizing==="border-box",o=No(i,"padding"),a=No(i,"border","width"),{x:u,y:c,box:d}=nY(e,n),h=o.left+(d&&a.left),g=o.top+(d&&a.top);let{width:m,height:b}=t;return s&&(m-=o.width+a.width,b-=o.height+a.height),{x:Math.round((u-h)/m*n.width/r),y:Math.round((c-g)/b*n.height/r)}}function rY(e,t,n){let r,i;if(t===void 0||n===void 0){const s=Wv(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const o=s.getBoundingClientRect(),a=Gd(s),u=No(a,"border","width"),c=No(a,"padding");t=o.width-c.width-u.width,n=o.height-c.height-u.height,r=hd(a.maxWidth,s,"clientWidth"),i=hd(a.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:r||fd,maxHeight:i||fd}}const af=e=>Math.round(e*10)/10;function iY(e,t,n,r){const i=Gd(e),s=No(i,"margin"),o=hd(i.maxWidth,e,"clientWidth")||fd,a=hd(i.maxHeight,e,"clientHeight")||fd,u=rY(e,t,n);let{width:c,height:d}=u;if(i.boxSizing==="content-box"){const g=No(i,"border","width"),m=No(i,"padding");c-=m.width+g.width,d-=m.height+g.height}return c=Math.max(0,c-s.width),d=Math.max(0,r?c/r:d-s.height),c=af(Math.min(c,o,u.maxWidth)),d=af(Math.min(d,a,u.maxHeight)),c&&!d&&(d=af(c/2)),(t!==void 0||n!==void 0)&&r&&u.height&&d>u.height&&(d=u.height,c=af(Math.floor(d*r))),{width:c,height:d}}function Cw(e,t,n){const r=t||1,i=Math.floor(e.height*r),s=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==s?(e.currentDevicePixelRatio=r,o.height=i,o.width=s,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const sY=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Hv()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Sw(e,t){const n=Qq(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function yo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function oY(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function aY(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},o=yo(e,i,n),a=yo(i,s,n),u=yo(s,t,n),c=yo(o,a,n),d=yo(a,u,n);return yo(c,d,n)}const lY=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},uY=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function xa(e,t,n){return e?lY(t,n):uY()}function DO(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function NO(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function BO(e){return e==="angle"?{between:Eu,compare:cq,normalize:Cr}:{between:Yi,compare:(t,n)=>t-n,normalize:t=>t}}function Ow({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function cY(e,t,n){const{property:r,start:i,end:s}=n,{between:o,normalize:a}=BO(r),u=t.length;let{start:c,end:d,loop:h}=e,g,m;if(h){for(c+=u,d+=u,g=0,m=u;gu(i,A,y)&&a(i,A)!==0,S=()=>a(s,y)===0||u(s,A,y),M=()=>v||x(),P=()=>!v||S();for(let T=d,$=d;T<=h;++T)C=t[T%o],!C.skip&&(y=c(C[r]),y!==A&&(v=u(y,i,s),_===null&&M()&&(_=a(y,i)===0?T:$),_!==null&&P()&&(b.push(Ow({start:_,end:T,loop:g,count:o,style:m})),_=null),$=T,A=y));return _!==null&&b.push(Ow({start:_,end:h,loop:g,count:o,style:m})),b}function HO(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[s%t].skip;)s--;return s%=t,{start:i,end:s}}function dY(e,t,n,r){const i=e.length,s=[];let o=t,a=e[t],u;for(u=t+1;u<=n;++u){const c=e[u%i];c.skip||c.stop?a.skip||(r=!1,s.push({start:t%i,end:(u-1)%i,loop:r}),t=o=c.stop?u:null):(o=u,a.skip&&(t=u)),a=c}return o!==null&&s.push({start:t%i,end:o%i,loop:r}),s}function hY(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const s=!!e._loop,{start:o,end:a}=fY(n,i,s,r);if(r===!0)return Ew(e,[{start:o,end:a,loop:s}],n,t);const u=aa({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=SO.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,a=!1,u;for(;o>=0;--o)u=s[o],u._active?(u._total>r.duration&&(r.duration=u._total),u.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),s.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Vi=new mY;const Tw="transparent",vY={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=bw(e||Tw),i=r.valid&&bw(t||Tw);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class bY{constructor(t,n,r,i){const s=n[r];i=Ll([t.to,i,s,t.from]);const o=Ll([t.from,s,i]);this._active=!0,this._fn=t.fn||vY[t.type||typeof o],this._easing=Ql[t.easing]||Ql.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Ll([t.to,n,i,t.from]),this._from=Ll([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,s=this._from,o=this._loop,a=this._to;let u;if(this._active=s!==a&&(o||n1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[i]=this._fn(s,a,u)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const s=t[i];if(!Tt(s))return;const o={};for(const a of n)o[a]=s[a];(Qt(s.properties)&&s.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,o)})})}_animateOptions(t,n){const r=n.options,i=_Y(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&yY(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,n){const r=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let u;for(u=o.length-1;u>=0;--u){const c=o[u];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[c];let h=s[c];const g=r.get(c);if(h)if(g&&h.active()){h.update(g,d,a);continue}else h.cancel();if(!g||!g.duration){t[c]=d;continue}s[c]=h=new bY(g,t,c,d),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Vi.add(this._chart,r),!0}}function yY(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&s<0)return i.index}return null}function Lw(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=r,u=s.axis,c=o.axis,d=SY(s,o,r),h=t.length;let g;for(let m=0;mn[r].axis===t).shift()}function MY(e,t){return Js(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function TY(e,t,n){return Js(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Sl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const Bp=e=>e==="reset"||e==="none",Iw=(e,t)=>t?e:Object.assign({},e),AY=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:VO(n,!0),values:null};class ri{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Rw(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Sl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,g,m,b)=>h==="x"?g:h==="r"?b:m,s=n.xAxisID=pt(r.xAxisID,Np(t,"x")),o=n.yAxisID=pt(r.yAxisID,Np(t,"y")),a=n.rAxisID=pt(r.rAxisID,Np(t,"r")),u=n.indexAxis,c=n.iAxisID=i(u,s,o,a),d=n.vAxisID=i(u,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&gw(this._data,this),t._stacked&&Sl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Tt(n))this._data=CY(n);else if(r!==n){if(r){gw(r,this);const i=this._cachedMeta;Sl(i),i._parsed=[]}n&&Object.isExtensible(n)&&pq(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=Rw(n.vScale,n),n.stack!==r.stack&&(i=!0,Sl(n),n.stack=r.stack),this._resyncElements(t),(i||s!==n._stacked)&&Lw(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:o}=r,a=s.axis;let u=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,h,g;if(this._parsing===!1)r._parsed=i,r._sorted=!0,g=i;else{Qt(i[t])?g=this.parseArrayData(r,i,t,n):Tt(i[t])?g=this.parseObjectData(r,i,t,n):g=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]v||h=0;--g)if(!b()){this.updateRangeFromParsed(c,t,m,u);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,s,o;for(i=0,s=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(g,m,b,h);return v.$shared&&(v.$shared=u,s[o]=Object.freeze(Iw(v,u))),v}_resolveAnimations(t,n,r){const i=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let u;if(i.options.animation!==!1){const d=this.chart.config,h=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),h);u=d.createResolver(g,this.getContext(t,r,n))}const c=new WO(i,u&&u.animations);return u&&u._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Bp(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(t,n,r,i){Bp(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Bp(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,u,c]of this._syncList)this[a](u,c);this._syncList=[];const i=r.length,s=n.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(u(s),a=t;ai-s))}return e._cache.$bar}function RY(e){const t=e.iScale,n=PY(t,e.type);let r=t._length,i,s,o,a;const u=()=>{o===32767||o===-32768||(Ou(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(i=0,s=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(u=a,c=o),t[n.axis]=c,t._custom={barStart:u,barEnd:c,start:i,end:s,min:o,max:a}}function jO(e,t,n,r){return Qt(e)?IY(e,t,n,r):t[n.axis]=n.parse(e,r),t}function $w(e,t,n,r){const i=e.iScale,s=e.vScale,o=i.getLabels(),a=i===s,u=[];let c,d,h,g;for(c=n,d=n+r;c=n?1:-1)}function FY(e){let t,n,r,i,s;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.baseu.controller.options.grouped),s=r.options.stacked,o=[],a=u=>{const c=u.controller.getParsed(n),d=c&&c[u.vScale.axis];if(Rt(d)||isNaN(d))return!0};for(const u of i)if(!(n!==void 0&&a(u))&&((s===!1||o.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),s=n!==void 0?i.indexOf(n):-1;return s===-1?i.length-1:s}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let s,o;for(s=0,o=n.data.length;s=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:s}=n,o=this.getParsed(t),a=i.getLabelForValue(o.x),u=s.getLabelForValue(o.y),c=o._custom;return{label:r[t]||"",value:"("+a+", "+u+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(n,i),d=o.axis,h=a.axis;for(let g=n;gEu(A,a,u,!0)?1:Math.max(x,x*n,S,S*n),b=(A,x,S)=>Eu(A,a,u,!0)?-1:Math.min(x,x*n,S,S*n),v=m(0,c,h),_=m(pn,d,g),y=b(nn,c,h),C=b(nn+pn,d,g);r=(v-y)/2,i=(_-C)/2,s=-(v+y)/2,o=-(_+C)/2}return{ratioX:r,ratioY:i,offsetX:s,offsetY:o}}class Ro extends ri{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let s=u=>+r[u];if(Tt(r[t])){const{key:u="value"}=this._parsing;s=c=>+Ks(r[c],u)}let o,a;for(o=t,a=t+n;o0&&!isNaN(t)?en*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=Ku(n._parsed[t],r.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,s,o,a,u;if(!t){for(i=0,s=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Pe(Ro,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((s,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Ff extends ri{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,o=this.chart._animationsDisabled;let{start:a,count:u}=EO(n,i,o);this._drawStart=a,this._drawCount=u,MO(n)&&(a=0,u=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:c},t),this.updateElements(i,a,u,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a,_stacked:u,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i),g=o.axis,m=a.axis,{spanGaps:b,segment:v}=this.options,_=za(b)?b:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||s||i==="none",C=n+r,A=t.length;let x=n>0&&this.getParsed(n-1);for(let S=0;S=C){P.skip=!0;continue}const T=this.getParsed(S),$=Rt(T[m]),z=P[g]=o.getPixelForValue(T[g],S),V=P[m]=s||$?a.getBasePixel():a.getPixelForValue(u?this.applyStack(a,T,u):T[m],S);P.skip=isNaN(z)||isNaN(V)||$,P.stop=S>0&&Math.abs(T[g]-x[g])>_,v&&(P.parsed=T,P.raw=c.data[S]),h&&(P.options=d||this.resolveDataElementOptions(S,M.active?"active":i)),y||this.updateElement(M,S,P,i),x=T}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Pe(Ff,"id","line"),Pe(Ff,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Pe(Ff,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class tu extends ri{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=Ku(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,n,r,i){return $O.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(sn.max&&(n.max=s))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(i/2,0),o=Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0),a=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const s=i==="reset",o=this.chart,u=o.options.animation,c=this._cachedMeta.rScale,d=c.xCenter,h=c.yCenter,g=c.getIndexAngle(0)-.5*nn;let m=g,b;const v=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?ti(this.resolveDataElementOptions(t,n).angle||r):0}}Pe(tu,"id","polarArea"),Pe(tu,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Pe(tu,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((s,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class qg extends Ro{}Pe(qg,"id","pie"),Pe(qg,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Df extends ri{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return $O.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],s=n.iScale.getLabels();if(r.points=i,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:s.length===i.length,options:o};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const s=this._cachedMeta.rScale,o=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let x=n;x0&&Math.abs(M[m]-A[m])>y,_&&(P.parsed=M,P.raw=c.data[x]),g&&(P.options=h||this.resolveDataElementOptions(x,S.active?"active":i)),C||this.updateElement(S,x,P,i),A=M}this.updateSharedOptions(h,i,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let u=n.length-1;u>=0;--u)a=Math.max(a,n[u].size(this.resolveDataElementOptions(u))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}}Pe(Nf,"id","scatter"),Pe(Nf,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Pe(Nf,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var HY=Object.freeze({__proto__:null,BarController:If,BubbleController:$f,DoughnutController:Ro,LineController:Ff,PieController:qg,PolarAreaController:tu,RadarController:Df,ScatterController:Nf});function po(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Vv{constructor(t){Pe(this,"options");this.options=t||{}}static override(t){Object.assign(Vv.prototype,t)}init(){}formats(){return po()}parse(){return po()}format(){return po()}add(){return po()}diff(){return po()}startOf(){return po()}endOf(){return po()}}var WY={_date:Vv};function VY(e,t,n,r){const{controller:i,data:s,_sorted:o}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&o&&s.length){const u=a._reversePixels?dq:Gi;if(r){if(i._sharedOptions){const c=s[0],d=typeof c.getRange=="function"&&c.getRange(t);if(d){const h=u(s,t,n-d),g=u(s,t,n+d);return{lo:h.lo,hi:g.hi}}}}else return u(s,t,n)}return{lo:0,hi:s.length-1}}function qu(e,t,n,r,i){const s=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,u=s.length;a{u[o](t[n],i)&&(s.push({element:u,datasetIndex:c,index:d}),a=a||u.inRange(t.x,t.y,i))}),r&&!a?[]:s}var qY={evaluateInteractionItems:qu,modes:{index(e,t,n,r){const i=bo(t,e),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?Hp(e,i,s,r,o):Wp(e,i,s,!1,r,o),u=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,h=c.data[d];h&&!h.skip&&u.push({element:h,datasetIndex:c.index,index:d})}),u):[]},dataset(e,t,n,r){const i=bo(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?Hp(e,i,s,r,o):Wp(e,i,s,!1,r,o);if(a.length>0){const u=a[0].datasetIndex,c=e.getDatasetMeta(u).data;a=[];for(let d=0;dn.pos===t)}function Bw(e,t){return e.filter(n=>UO.indexOf(n.pos)===-1&&n.box.axis===t)}function El(e,t){return e.sort((n,r)=>{const i=t?r:n,s=t?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function YY(e){const t=[];let n,r,i,s,o,a;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=El(Ol(t,"left"),!0),i=El(Ol(t,"right")),s=El(Ol(t,"top"),!0),o=El(Ol(t,"bottom")),a=Bw(t,"x"),u=Bw(t,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(u).concat(o).concat(a),chartArea:Ol(t,"chartArea"),vertical:r.concat(i).concat(u),horizontal:s.concat(o).concat(a)}}function zw(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function KO(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function ZY(e,t,n,r){const{pos:i,box:s}=n,o=e.maxPadding;if(!Tt(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?s.height:s.width),n.size=h.size/h.count,e[i]+=n.size}s.getPadding&&KO(o,s.getPadding());const a=Math.max(0,t.outerWidth-zw(o,e,"left","right")),u=Math.max(0,t.outerHeight-zw(o,e,"top","bottom")),c=a!==e.w,d=u!==e.h;return e.w=a,e.h=u,n.horizontal?{same:c,other:d}:{same:d,other:c}}function QY(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function eG(e,t){const n=t.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{s[o]=Math.max(t[o],n[o])}),s}return r(e?["left","right"]:["top","bottom"])}function Il(e,t,n,r){const i=[];let s,o,a,u,c,d;for(s=0,o=e.length,c=0;s{typeof v.beforeLayout=="function"&&v.beforeLayout()});const d=u.reduce((v,_)=>_.box.options&&_.box.options.display===!1?v:v+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),g=Object.assign({},i);KO(g,Kn(r));const m=Object.assign({maxPadding:g,w:s,h:o,x:i.left,y:i.top},i),b=XY(u.concat(c),h);Il(a.fullSize,m,h,b),Il(u,m,h,b),Il(c,m,h,b)&&Il(u,m,h,b),QY(m),Hw(a.leftAndTop,m,h,b),m.x+=m.w,m.y+=m.h,Hw(a.rightAndBottom,m,h,b),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Vt(a.chartArea,v=>{const _=v.box;Object.assign(_,e.chartArea),_.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class qO{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class tG extends qO{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Bf="$chartjs",nG={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ww=e=>e===null||e==="";function rG(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Bf]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ww(i)){const s=Sw(e,"width");s!==void 0&&(e.width=s)}if(Ww(r))if(e.style.height==="")e.height=e.width/(t||2);else{const s=Sw(e,"height");s!==void 0&&(e.height=s)}return e}const YO=sY?{passive:!0}:!1;function iG(e,t,n){e.addEventListener(t,n,YO)}function sG(e,t,n){e.canvas.removeEventListener(t,n,YO)}function oG(e,t){const n=nG[e.type]||e.type,{x:r,y:i}=bo(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function pd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function aG(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||pd(a.addedNodes,r),o=o&&!pd(a.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function lG(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||pd(a.removedNodes,r),o=o&&!pd(a.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Tu=new Map;let Vw=0;function GO(){const e=window.devicePixelRatio;e!==Vw&&(Vw=e,Tu.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function uG(e,t){Tu.size||window.addEventListener("resize",GO),Tu.set(e,t)}function cG(e){Tu.delete(e),Tu.size||window.removeEventListener("resize",GO)}function fG(e,t,n){const r=e.canvas,i=r&&Wv(r);if(!i)return;const s=OO((a,u)=>{const c=i.clientWidth;n(a,u),c{const u=a[0],c=u.contentRect.width,d=u.contentRect.height;c===0&&d===0||s(c,d)});return o.observe(i),uG(e,s),o}function Vp(e,t,n){n&&n.disconnect(),t==="resize"&&cG(e)}function dG(e,t,n){const r=e.canvas,i=OO(s=>{e.ctx!==null&&n(oG(s,e))},e);return iG(r,t,i),i}class hG extends qO{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(rG(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Bf])return!1;const r=n[Bf].initial;["height","width"].forEach(s=>{const o=r[s];Rt(o)?n.removeAttribute(s):n.setAttribute(s,o)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[Bf],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:aG,detach:lG,resize:fG}[n]||dG;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Vp,detach:Vp,resize:Vp}[n]||sG)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return iY(t,n,r,i)}isAttached(t){const n=Wv(t);return!!(n&&n.isConnected)}}function pG(e){return!Hv()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?tG:hG}var mf;let as=(mf=class{constructor(){Pe(this,"x");Pe(this,"y");Pe(this,"active",!1);Pe(this,"options");Pe(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return za(this.x)&&za(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}},Pe(mf,"defaults",{}),Pe(mf,"defaultRoutes"),mf);function gG(e,t){const n=e.options.ticks,r=mG(e),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?bG(t):[],o=s.length,a=s[0],u=s[o-1],c=[];if(o>i)return yG(t,c,s,o/i),c;const d=vG(s,t,i);if(o>0){let h,g;const m=o>1?Math.round((u-a)/(o-1)):null;for(uf(t,c,d,Rt(m)?0:a-m,a),h=0,g=o-1;hi)return u}return Math.max(i,1)}function bG(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,jw=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Uw=(e,t)=>Math.min(t||e,e);function Kw(e,t){const n=[],r=e.length/t,i=e.length;let s=0;for(;so+a)))return u}function CG(e,t){Vt(e,n=>{const r=n.gc,i=r.length/2;let s;if(i>t){for(s=0;sr?r:n,r=i&&n>r?n:r,{min:_r(n,_r(r,n)),max:_r(r,_r(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){qt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Fq(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=a=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),h=d.widest.width,g=d.highest.height,m=Mn(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),u=this.maxHeight-Ml(t.grid)-n.padding-qw(t.title,this.chart.options.font),c=Math.sqrt(h*h+g*g),o=Lv(Math.min(Math.asin(Mn((d.highest.height+6)/a,-1,1)),Math.asin(Mn(u/c,-1,1))-Math.asin(Mn(g/c,-1,1)))),o=Math.max(i,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){qt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){qt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const u=qw(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Ml(s)+u):(t.height=this.maxHeight,t.width=Ml(s)+u),r.display&&this.ticks.length){const{first:c,last:d,widest:h,highest:g}=this._getLabelSizes(),m=r.padding*2,b=ti(this.labelRotation),v=Math.cos(b),_=Math.sin(b);if(a){const y=r.mirror?0:_*h.width+v*g.height;t.height=Math.min(this.maxHeight,t.height+y+m)}else{const y=r.mirror?0:v*h.width+_*g.height;t.width=Math.min(this.maxWidth,t.width+y+m)}this._calculatePadding(c,d,_,v)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:s,padding:o},position:a}=this.options,u=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,m=0;u?c?(g=i*t.width,m=r*n.height):(g=r*t.height,m=i*n.width):s==="start"?m=n.width:s==="end"?g=t.width:s!=="inner"&&(g=t.width/2,m=n.width/2),this.paddingLeft=Math.max((g-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-h+o)*this.width/(this.width-h),0)}else{let d=n.height/2,h=t.height/2;s==="start"?(d=0,h=t.height):s==="end"&&(d=n.height,h=0),this.paddingTop=d+o,this.paddingBottom=h+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){qt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:o[$]||0,height:a[$]||0});return{first:T(0),last:T(n-1),widest:T(M),highest:T(P),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return fq(this._alignToPixels?ho(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:u/i:u*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:o,border:a}=i,u=s.offset,c=this.isHorizontal(),h=this.ticks.length+(u?1:0),g=Ml(s),m=[],b=a.setContext(this.getContext()),v=b.display?b.width:0,_=v/2,y=function(ne){return ho(r,ne,v)};let C,A,x,S,M,P,T,$,z,V,R,j;if(o==="top")C=y(this.bottom),P=this.bottom-g,$=C-_,V=y(t.top)+_,j=t.bottom;else if(o==="bottom")C=y(this.top),V=t.top,j=y(t.bottom)-_,P=C+_,$=this.top+g;else if(o==="left")C=y(this.right),M=this.right-g,T=C-_,z=y(t.left)+_,R=t.right;else if(o==="right")C=y(this.left),z=t.left,R=y(t.right)-_,M=C+_,T=this.left+g;else if(n==="x"){if(o==="center")C=y((t.top+t.bottom)/2+.5);else if(Tt(o)){const ne=Object.keys(o)[0],Q=o[ne];C=y(this.chart.scales[ne].getPixelForValue(Q))}V=t.top,j=t.bottom,P=C+_,$=P+g}else if(n==="y"){if(o==="center")C=y((t.left+t.right)/2);else if(Tt(o)){const ne=Object.keys(o)[0],Q=o[ne];C=y(this.chart.scales[ne].getPixelForValue(Q))}M=C-_,T=M-g,z=t.left,R=t.right}const ue=pt(i.ticks.maxTicksLimit,h),ce=Math.max(1,Math.ceil(h/ue));for(A=0;A0&&(Ne-=le/2);break}Ee={left:Ne,top:Ye,width:le+ke.width,height:Ze+ke.height,color:ce.backdropColor}}_.push({label:x,font:$,textOffset:R,options:{rotation:v,color:Q,strokeColor:ie,strokeWidth:ee,textAlign:ye,textBaseline:j,translation:[S,M],backdrop:Ee}})}return _}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-ti(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,o=this._getLabelSizes(),a=t+s,u=o.widest.width;let c,d;return n==="left"?i?(d=this.right+s,r==="near"?c="left":r==="center"?(c="center",d+=u/2):(c="right",d+=u)):(d=this.right-a,r==="near"?c="right":r==="center"?(c="center",d-=u/2):(c="left",d=this.left)):n==="right"?i?(d=this.left+s,r==="near"?c="right":r==="center"?(c="center",d-=u/2):(c="left",d-=u)):(d=this.left+a,r==="near"?c="left":r==="center"?(c="center",d+=u/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:s,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,s,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(s=>s.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const a=(u,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(u.x,u.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=i.length;s{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,o;for(s=0,o=n.length;s{const r=n.split("."),i=r.pop(),s=[e].concat(r).join("."),o=t[n].split("."),a=o.pop(),u=o.join(".");fn.route(s,i,u,a)})}function PG(e){return"id"in e&&"defaults"in e}class RG{constructor(){this.controllers=new cf(ri,"datasets",!0),this.elements=new cf(as,"elements"),this.plugins=new cf(Object,"plugins"),this.scales=new cf(Go,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(t,s,i):Vt(i,o=>{const a=r||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,r){const i=kv(t);qt(r["before"+i],[],r),n[t](r),qt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;ns.filter(a=>!o.some(u=>a.plugin.id===u.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function LG(e){const t={},n=[],r=Object.keys(gi.plugins.items);for(let s=0;s1&&Yw(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Gw(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function zG(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Gw(e,"x",n[0])||Gw(e,"y",n[0])}return{}}function HG(e,t){const n=Wo[e.type]||{scales:{}},r=t.scales||{},i=Yg(e.type,t),s=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!Tt(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const u=Gg(o,a,zG(o,e),fn.scales[a.type]),c=NG(u,i),d=n.scales||{};s[o]=Jl(Object.create(null),[{axis:u},a,d[u],d[c]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,u=o.indexAxis||Yg(a,t),d=(Wo[a]||{}).scales||{};Object.keys(d).forEach(h=>{const g=DG(h,u),m=o[g+"AxisID"]||g;s[m]=s[m]||Object.create(null),Jl(s[m],[{axis:g},r[m],d[h]])})}),Object.keys(s).forEach(o=>{const a=s[o];Jl(a,[fn.scales[a.type],fn.scale])}),s}function XO(e){const t=e.options||(e.options={});t.plugins=pt(t.plugins,{}),t.scales=HG(e,t)}function JO(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function WG(e){return e=e||{},e.data=JO(e.data),XO(e),e}const Xw=new Map,ZO=new Set;function ff(e,t){let n=Xw.get(e);return n||(n=t(),Xw.set(e,n),ZO.add(n)),n}const Tl=(e,t,n)=>{const r=Ks(t,n);r!==void 0&&e.add(r)};class VG{constructor(t){this._config=WG(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=JO(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),XO(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ff(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return ff(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return ff(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return ff(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:s}=this,o=this._cachedScopes(t,r),a=o.get(n);if(a)return a;const u=new Set;n.forEach(d=>{t&&(u.add(t),d.forEach(h=>Tl(u,t,h))),d.forEach(h=>Tl(u,i,h)),d.forEach(h=>Tl(u,Wo[s]||{},h)),d.forEach(h=>Tl(u,fn,h)),d.forEach(h=>Tl(u,Ug,h))});const c=Array.from(u);return c.length===0&&c.push(Object.create(null)),ZO.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Wo[n]||{},fn.datasets[n]||{},{type:n},fn,Ug]}resolveNamedOptions(t,n,r,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=Jw(this._resolverCache,t,i);let u=o;if(UG(o,n)){s.$shared=!1,r=qs(r)?r():r;const c=this.createResolver(t,r,a);u=Ha(o,r,c)}for(const c of n)s[c]=u[c];return s}createResolver(t,n,r=[""],i){const{resolver:s}=Jw(this._resolverCache,t,r);return Tt(n)?Ha(s,n,void 0,i):s}}function Jw(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let s=r.get(i);return s||(s={resolver:Nv(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,s)),s}const jG=e=>Tt(e)&&Object.getOwnPropertyNames(e).some(t=>qs(e[t]));function UG(e,t){const{isScriptable:n,isIndexable:r}=RO(e);for(const i of t){const s=n(i),o=r(i),a=(o||s)&&e[i];if(s&&(qs(a)||jG(a))||o&&Qt(a))return!0}return!1}var KG="4.4.1";const qG=["top","bottom","left","right","chartArea"];function Zw(e,t){return e==="top"||e==="bottom"||qG.indexOf(e)===-1&&t==="x"}function Qw(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function ex(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),qt(n&&n.onComplete,[e],t)}function YG(e){const t=e.chart,n=t.options.animation;qt(n&&n.onProgress,[e],t)}function QO(e){return Hv()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const zf={},tx=e=>{const t=QO(e);return Object.values(zf).filter(n=>n.canvas===t).pop()};function GG(e,t,n){const r=Object.keys(e);for(const i of r){const s=+i;if(s>=t){const o=e[i];delete e[i],(n>0||s>t)&&(e[s+n]=o)}}}function XG(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function df(e,t,n){return e.options.clip?e[n]:t[n]}function JG(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:df(n,t,"left"),right:df(n,t,"right"),top:df(r,t,"top"),bottom:df(r,t,"bottom")}:t}class vi{static register(...t){gi.add(...t),nx()}static unregister(...t){gi.remove(...t),nx()}constructor(t,n){const r=this.config=new VG(n),i=QO(t),s=tx(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||pG(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,o.aspectRatio),u=a&&a.canvas,c=u&&u.height,d=u&&u.width;if(this.id=QK(),this.ctx=a,this.canvas=u,this.width=d,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new kG,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=gq(h=>this.update(h),o.resizeDelay||0),this._dataChanges=[],zf[this.id]=this,!a||!u){console.error("Failed to create chart: can't acquire context from the given item");return}Vi.listen(this,"complete",ex),Vi.listen(this,"progress",YG),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return Rt(t)?n&&s?s:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return gi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Cw(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return _w(this.canvas,this.ctx),this}stop(){return Vi.stop(this),this}resize(t,n){Vi.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,s),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Cw(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),qt(r.onResize,[this,o],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Vt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],u=Gg(o,a),c=u==="r",d=u==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Vt(s,o=>{const a=o.options,u=a.id,c=Gg(u,a),d=pt(a.type,o.dtype);(a.position===void 0||Zw(a.position,c)!==Zw(o.dposition))&&(a.position=o.dposition),i[u]=!0;let h=null;if(u in r&&r[u].type===d)h=r[u];else{const g=gi.getScale(d);h=new g({id:u,type:d,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),Vt(i,(o,a)=>{o||delete r[a]}),Vt(r,o=>{Un.configure(this,o,o.options),Un.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,s)=>i.index-s.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Qw("z","_idx"));const{_active:a,_lastEvent:u}=this;u?this._eventHandler(u,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Vt(this.scales,t=>{Un.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!fw(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const o=r==="_removeElements"?-s:s;GG(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),i=r(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Un.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Vt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,s=JG(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&qd(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),t.controller.draw(),i&&Yd(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Xi(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const s=qY.modes[n];return typeof s=="function"?s(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Js(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,i);Ou(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(s,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Vi.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,s,o),t[s]=o},i=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};Vt(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(u,c)=>{n.addEventListener(this,u,c),t[u]=c},i=(u,c)=>{t[u]&&(n.removeEventListener(this,u,c),delete t[u])},s=(u,c)=>{this.canvas&&this.resize(u,c)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){Vt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Vt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let s,o,a,u;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),a=0,u=t.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!ud(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,s=(u,c)=>u.filter(d=>!c.some(h=>d.datasetIndex===h.datasetIndex&&d.index===h.index)),o=s(n,t),a=r?t:s(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:s}=this,o=n,a=this._getActiveElements(t,i,r,o),u=sq(t),c=XG(t,this._lastEvent,r,u);r&&(this._lastEvent=null,qt(s.onHover,[t,a,this],this),u&&qt(s.onClick,[t,a,this],this));const d=!ud(a,i);return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}Pe(vi,"defaults",fn),Pe(vi,"instances",zf),Pe(vi,"overrides",Wo),Pe(vi,"registry",gi),Pe(vi,"version",KG),Pe(vi,"getChart",tx);function nx(){return Vt(vi.instances,e=>e._plugins.invalidate())}function ZG(e,t,n){const{startAngle:r,pixelMargin:i,x:s,y:o,outerRadius:a,innerRadius:u}=t;let c=i/a;e.beginPath(),e.arc(s,o,a,r-c,n+c),u>i?(c=i/u,e.arc(s,o,u,n+c,r-c,!0)):e.arc(s,o,i,n+pn,r-pn),e.closePath(),e.clip()}function QG(e){return Dv(e,["outerStart","outerEnd","innerStart","innerEnd"])}function eX(e,t,n,r){const i=QG(e.options.borderRadius),s=(n-t)/2,o=Math.min(s,r*t/2),a=u=>{const c=(n-Math.min(s,u))*r/2;return Mn(u,0,Math.min(s,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Mn(i.innerStart,0,o),innerEnd:Mn(i.innerEnd,0,o)}}function pa(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function gd(e,t,n,r,i,s){const{x:o,y:a,startAngle:u,pixelMargin:c,innerRadius:d}=t,h=Math.max(t.outerRadius+r+n-c,0),g=d>0?d+r+n+c:0;let m=0;const b=i-u;if(r){const ce=d>0?d-r:0,ne=h>0?h-r:0,Q=(ce+ne)/2,ie=Q!==0?b*Q/(Q+r):b;m=(b-ie)/2}const v=Math.max(.001,b*h-n/nn)/h,_=(b-v)/2,y=u+_+m,C=i-_-m,{outerStart:A,outerEnd:x,innerStart:S,innerEnd:M}=eX(t,g,h,C-y),P=h-A,T=h-x,$=y+A/P,z=C-x/T,V=g+S,R=g+M,j=y+S/V,ue=C-M/R;if(e.beginPath(),s){const ce=($+z)/2;if(e.arc(o,a,h,$,ce),e.arc(o,a,h,ce,z),x>0){const ee=pa(T,z,o,a);e.arc(ee.x,ee.y,x,z,C+pn)}const ne=pa(R,C,o,a);if(e.lineTo(ne.x,ne.y),M>0){const ee=pa(R,ue,o,a);e.arc(ee.x,ee.y,M,C+pn,ue+Math.PI)}const Q=(C-M/g+(y+S/g))/2;if(e.arc(o,a,g,C-M/g,Q,!0),e.arc(o,a,g,Q,y+S/g,!0),S>0){const ee=pa(V,j,o,a);e.arc(ee.x,ee.y,S,j+Math.PI,y-pn)}const ie=pa(P,y,o,a);if(e.lineTo(ie.x,ie.y),A>0){const ee=pa(P,$,o,a);e.arc(ee.x,ee.y,A,y-pn,$)}}else{e.moveTo(o,a);const ce=Math.cos($)*h+o,ne=Math.sin($)*h+a;e.lineTo(ce,ne);const Q=Math.cos(z)*h+o,ie=Math.sin(z)*h+a;e.lineTo(Q,ie)}e.closePath()}function tX(e,t,n,r,i){const{fullCircles:s,startAngle:o,circumference:a}=t;let u=t.endAngle;if(s){gd(e,t,n,r,u,i);for(let c=0;c=en||Eu(o,u,c),_=Yi(a,d+m,h+m);return v&&_}getCenterPoint(n){const{x:r,y:i,startAngle:s,endAngle:o,innerRadius:a,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,h=(s+o)/2,g=(a+u+d+c)/2;return{x:r+Math.cos(h)*g,y:i+Math.sin(h)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,s=(r.offset||0)/4,o=(r.spacing||0)/2,a=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>en?Math.floor(i/en):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const u=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(u)*s,Math.sin(u)*s);const c=1-Math.sin(Math.min(nn,i||0)),d=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,tX(n,this,d,o,a),nX(n,this,d,o,a),n.restore()}}Pe($l,"id","arc"),Pe($l,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Pe($l,"defaultRoutes",{backgroundColor:"backgroundColor"}),Pe($l,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function eE(e,t,n=t){e.lineCap=pt(n.borderCapStyle,t.borderCapStyle),e.setLineDash(pt(n.borderDash,t.borderDash)),e.lineDashOffset=pt(n.borderDashOffset,t.borderDashOffset),e.lineJoin=pt(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=pt(n.borderWidth,t.borderWidth),e.strokeStyle=pt(n.borderColor,t.borderColor)}function rX(e,t,n){e.lineTo(n.x,n.y)}function iX(e){return e.stepped?Mq:e.tension||e.cubicInterpolationMode==="monotone"?Tq:rX}function tE(e,t,n={}){const r=e.length,{start:i=0,end:s=r-1}=n,{start:o,end:a}=t,u=Math.max(i,o),c=Math.min(s,a),d=ia&&s>a;return{count:r,start:u,loop:t.loop,ilen:c(o+(c?a-x:x))%s,A=()=>{v!==_&&(e.lineTo(d,_),e.lineTo(d,v),e.lineTo(d,y))};for(u&&(m=i[C(0)],e.moveTo(m.x,m.y)),g=0;g<=a;++g){if(m=i[C(g)],m.skip)continue;const x=m.x,S=m.y,M=x|0;M===b?(S_&&(_=S),d=(h*d+x)/++h):(A(),e.lineTo(x,S),b=M,h=0,v=_=S),y=S}A()}function Xg(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?oX:sX}function aX(e){return e.stepped?oY:e.tension||e.cubicInterpolationMode==="monotone"?aY:yo}function lX(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),eE(e,t.options),e.stroke(i)}function uX(e,t,n,r){const{segments:i,options:s}=t,o=Xg(t);for(const a of i)eE(e,s,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const cX=typeof Path2D=="function";function fX(e,t,n,r){cX&&!t.options.segment?lX(e,t,n,r):uX(e,t,n,r)}class Rs extends as{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Zq(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=hY(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],s=this.points,o=HO(this,{property:n,start:i,end:i});if(!o.length)return;const a=[],u=aX(r);let c,d;for(c=0,d=o.length;ct!=="borderDash"&&t!=="fill"});function rx(e,t,n,r){const i=e.options,{[n]:s}=e.getProps([n],r);return Math.abs(t-s)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function rE(e){return Jg[e%Jg.length]}function iE(e){return ix[e%ix.length]}function bX(e,t){return e.borderColor=rE(t),e.backgroundColor=iE(t),++t}function yX(e,t){return e.backgroundColor=e.data.map(()=>rE(t++)),t}function _X(e,t){return e.backgroundColor=e.data.map(()=>iE(t++)),t}function wX(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof Ro?t=yX(n,t):i instanceof tu?t=_X(n,t):i&&(t=bX(n,t))}}function sx(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function xX(e){return e&&(e.borderColor||e.backgroundColor)}var CX={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:s}=i;if(!n.forceOverride&&(sx(r)||xX(i)||s&&sx(s)))return;const o=wX(e);r.forEach(o)}};function SX(e,t,n,r,i){const s=i.samples||r;if(s>=n)return e.slice(t,t+n);const o=[],a=(n-2)/(s-2);let u=0;const c=t+n-1;let d=t,h,g,m,b,v;for(o[u++]=e[d],h=0;hm&&(m=b,g=e[C],v=C);o[u++]=g,d=v}return o[u++]=e[c],o}function OX(e,t,n,r){let i=0,s=0,o,a,u,c,d,h,g,m,b,v;const _=[],y=t+n-1,C=e[t].x,x=e[y].x-C;for(o=t;ov&&(v=c,g=o),i=(s*i+a.x)/++s;else{const M=o-1;if(!Rt(h)&&!Rt(g)){const P=Math.min(h,g),T=Math.max(h,g);P!==m&&P!==M&&_.push({...e[P],x:i}),T!==m&&T!==M&&_.push({...e[T],x:i})}o>0&&M!==m&&_.push(e[M]),_.push(a),d=S,s=0,b=v=c,h=g=m=o}}return _}function sE(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function ox(e){e.data.datasets.forEach(t=>{sE(t)})}function EX(e,t){const n=t.length;let r=0,i;const{iScale:s}=e,{min:o,max:a,minDefined:u,maxDefined:c}=s.getUserBounds();return u&&(r=Mn(Gi(t,s.axis,o).lo,0,n-1)),c?i=Mn(Gi(t,s.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var MX={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){ox(e);return}const r=e.width;e.data.datasets.forEach((i,s)=>{const{_data:o,indexAxis:a}=i,u=e.getDatasetMeta(s),c=o||i.data;if(Ll([a,e.options.indexAxis])==="y"||!u.controller.supportsDecimation)return;const d=e.scales[u.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:h,count:g}=EX(u,c);const m=n.threshold||4*r;if(g<=m){sE(i);return}Rt(o)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let b;switch(n.algorithm){case"lttb":b=SX(c,h,g,r,n);break;case"min-max":b=OX(c,h,g,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=b})},destroy(e){ox(e)}};function TX(e,t,n){const r=e.segments,i=e.points,s=t.points,o=[];for(const a of r){let{start:u,end:c}=a;c=jv(u,c,i);const d=Zg(n,i[u],i[c],a.loop);if(!t.segments){o.push({source:a,target:d,start:i[u],end:i[c]});continue}const h=HO(t,d);for(const g of h){const m=Zg(n,s[g.start],s[g.end],g.loop),b=zO(a,i,m);for(const v of b)o.push({source:v,target:g,start:{[n]:ax(d,m,"start",Math.max)},end:{[n]:ax(d,m,"end",Math.min)}})}}return o}function Zg(e,t,n,r){if(r)return;let i=t[e],s=n[e];return e==="angle"&&(i=Cr(i),s=Cr(s)),{property:e,start:i,end:s}}function AX(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,s=[];return t.segments.forEach(({start:o,end:a})=>{a=jv(o,a,i);const u=i[o],c=i[a];r!==null?(s.push({x:u.x,y:r}),s.push({x:c.x,y:r})):n!==null&&(s.push({x:n,y:u.y}),s.push({x:n,y:c.y}))}),s}function jv(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function ax(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function oE(e,t){let n=[],r=!1;return Qt(e)?(r=!0,n=e):n=AX(e,t),n.length?new Rs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function lx(e){return e&&e.fill!==!1}function PX(e,t,n){let i=e[t].fill;const s=[t];let o;if(!n)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!cn(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;s.push(i),i=o.fill}return!1}function RX(e,t,n){const r=$X(e);if(Tt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return cn(i)&&Math.floor(i)===i?kX(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function kX(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function LX(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Tt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function IX(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:Tt(e)?r=e.value:r=t.getBaseValue(),r}function $X(e){const t=e.options,n=t.fill;let r=pt(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function FX(e){const{scale:t,index:n,line:r}=e,i=[],s=r.segments,o=r.points,a=DX(t,n);a.push(oE({x:null,y:t.bottom},r));for(let u=0;u=0;--o){const a=i[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),r&&a.fill&&Kp(e.ctx,a,s))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;lx(s)&&Kp(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!lx(r)||n.drawTime!=="beforeDatasetDraw"||Kp(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const dx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},YX=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class hx extends as{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=qt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=wn(r.font),s=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:u}=dx(r,s);let c,d;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,s,a,u)+10):(d=this.maxHeight,c=this._fitCols(o,i,a,u)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,u=this.legendHitBoxes=[],c=this.lineWidths=[0],d=i+a;let h=t;s.textAlign="left",s.textBaseline="middle";let g=-1,m=-d;return this.legendItems.forEach((b,v)=>{const _=r+n/2+s.measureText(b.text).width;(v===0||c[c.length-1]+_+2*a>o)&&(h+=d,c[c.length-(v>0?0:1)]=0,m+=d,g++),u[v]={left:0,top:m,row:g,width:_,height:i},c[c.length-1]+=_+a}),h}_fitCols(t,n,r,i){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,u=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-t;let h=a,g=0,m=0,b=0,v=0;return this.legendItems.forEach((_,y)=>{const{itemWidth:C,itemHeight:A}=GX(r,n,s,_,i);y>0&&m+A+2*a>d&&(h+=g+a,c.push({width:g,height:m}),b+=g+a,v++,g=m=0),u[y]={left:b,top:m,col:v,width:C,height:A},g=Math.max(g,C),m+=A+a}),h+=g,c.push({width:g,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,o=xa(s,this.left,this.width);if(this.isHorizontal()){let a=0,u=Bn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,u=Bn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(u),c.width),u+=c.width+i}else{let a=0,u=Bn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,u=Bn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=u,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),u+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;qd(t,this),this._draw(),Yd(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:o}=t,a=fn.color,u=xa(t.rtl,this.left,this.width),c=wn(o.font),{padding:d}=o,h=c.size,g=h/2;let m;this.drawTitle(),i.textAlign=u.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:b,boxHeight:v,itemHeight:_}=dx(o,h),y=function(M,P,T){if(isNaN(b)||b<=0||isNaN(v)||v<0)return;i.save();const $=pt(T.lineWidth,1);if(i.fillStyle=pt(T.fillStyle,a),i.lineCap=pt(T.lineCap,"butt"),i.lineDashOffset=pt(T.lineDashOffset,0),i.lineJoin=pt(T.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=pt(T.strokeStyle,a),i.setLineDash(pt(T.lineDash,[])),o.usePointStyle){const z={radius:v*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:$},V=u.xPlus(M,b/2),R=P+g;AO(i,z,V,R,o.pointStyleWidth&&b)}else{const z=P+Math.max((h-v)/2,0),V=u.leftForLtr(M,b),R=Do(T.borderRadius);i.beginPath(),Object.values(R).some(j=>j!==0)?Mu(i,{x:V,y:z,w:b,h:v,radius:R}):i.rect(V,z,b,v),i.fill(),$!==0&&i.stroke()}i.restore()},C=function(M,P,T){Vo(i,T.text,M,P+_/2,c,{strikethrough:T.hidden,textAlign:u.textAlign(T.textAlign)})},A=this.isHorizontal(),x=this._computeTitleHeight();A?m={x:Bn(s,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:m={x:this.left+d,y:Bn(s,this.top+x+d,this.bottom-n[0].height),line:0},DO(this.ctx,t.textDirection);const S=_+d;this.legendItems.forEach((M,P)=>{i.strokeStyle=M.fontColor,i.fillStyle=M.fontColor;const T=i.measureText(M.text).width,$=u.textAlign(M.textAlign||(M.textAlign=o.textAlign)),z=b+g+T;let V=m.x,R=m.y;u.setWidth(this.width),A?P>0&&V+z+d>this.right&&(R=m.y+=S,m.line++,V=m.x=Bn(s,this.left+d,this.right-r[m.line])):P>0&&R+S>this.bottom&&(V=m.x=V+n[m.line].width+d,m.line++,R=m.y=Bn(s,this.top+x+d,this.bottom-n[m.line].height));const j=u.x(V);if(y(j,R,M),V=mq($,V+b+g,A?V+z:this.right,t.rtl),C(u.x(V),R,M),A)m.x+=z+d;else if(typeof M.text!="string"){const ue=c.lineHeight;m.y+=lE(M,ue)+d}else m.y+=S}),NO(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=wn(n.font),i=Kn(n.padding);if(!n.display)return;const s=xa(t.rtl,this.left,this.width),o=this.ctx,a=n.position,u=r.size/2,c=i.top+u;let d,h=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),d=this.top+c,h=Bn(t.align,h,this.right-g);else{const b=this.columnSizes.reduce((v,_)=>Math.max(v,_.height),0);d=c+Bn(t.align,this.top,this.bottom-b-t.labels.padding-this._computeTitleHeight())}const m=Bn(a,h,h+g);o.textAlign=s.textAlign($v(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Vo(o,n.text,m,d,r)}_computeTitleHeight(){const t=this.options.title,n=wn(t.font),r=Kn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,s;if(Yi(t,this.left,this.right)&&Yi(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;rs.length>o.length?s:o)),t+n.size/2+r.measureText(i).width}function JX(e,t,n){let r=e;return typeof t.text!="string"&&(r=lE(t,n)),r}function lE(e,t){const n=e.text?e.text.length:0;return t*n}function ZX(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var QX={id:"legend",_element:hx,start(e,t,n){const r=e.legend=new hx({ctx:e.ctx,options:n,chart:e});Un.configure(e,r,n),Un.addBox(e,r)},stop(e){Un.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Un.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(u=>{const c=u.controller.getStyle(n?0:void 0),d=Kn(c.borderWidth);return{text:t[u.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!u.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:u.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Uv extends as{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Qt(r.text)?r.text.length:1;this._padding=Kn(r.padding);const s=i*wn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:s,options:o}=this,a=o.align;let u=0,c,d,h;return this.isHorizontal()?(d=Bn(a,r,s),h=n+t,c=s-r):(o.position==="left"?(d=r+t,h=Bn(a,i,n),u=nn*-.5):(d=s-t,h=Bn(a,n,i),u=nn*.5),c=i-n),{titleX:d,titleY:h,maxWidth:c,rotation:u}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=wn(n.font),s=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:u,rotation:c}=this._drawArgs(s);Vo(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:c,textAlign:$v(n.align),textBaseline:"middle",translation:[o,a]})}}function eJ(e,t){const n=new Uv({ctx:e.ctx,options:t,chart:e});Un.configure(e,n,t),Un.addBox(e,n),e.titleBlock=n}var tJ={id:"title",_element:Uv,start(e,t,n){eJ(e,n)},stop(e){const t=e.titleBlock;Un.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Un.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hf=new WeakMap;var nJ={id:"subtitle",start(e,t,n){const r=new Uv({ctx:e.ctx,options:n,chart:e});Un.configure(e,r,n),Un.addBox(e,r),hf.set(e,r)},stop(e){Un.removeBox(e,hf.get(e)),hf.delete(e)},beforeUpdate(e,t,n){const r=hf.get(e);Un.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Fl={average(e){if(!e.length)return!1;let t,n,r=0,i=0,s=0;for(t=0,n=e.length;t-1?e.split(` +`):e}function rJ(e,t){const{element:n,datasetIndex:r,index:i}=t,s=e.getDatasetMeta(r).controller,{label:o,value:a}=s.getLabelAndValue(i);return{chart:e,label:o,parsed:s.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function px(e,t){const n=e.chart.ctx,{body:r,footer:i,title:s}=e,{boxWidth:o,boxHeight:a}=t,u=wn(t.bodyFont),c=wn(t.titleFont),d=wn(t.footerFont),h=s.length,g=i.length,m=r.length,b=Kn(t.padding);let v=b.height,_=0,y=r.reduce((x,S)=>x+S.before.length+S.lines.length+S.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,h&&(v+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),y){const x=t.displayColors?Math.max(a,u.lineHeight):u.lineHeight;v+=m*x+(y-m)*u.lineHeight+(y-1)*t.bodySpacing}g&&(v+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let C=0;const A=function(x){_=Math.max(_,n.measureText(x).width+C)};return n.save(),n.font=c.string,Vt(e.title,A),n.font=u.string,Vt(e.beforeBody.concat(e.afterBody),A),C=t.displayColors?o+2+t.boxPadding:0,Vt(r,x=>{Vt(x.before,A),Vt(x.lines,A),Vt(x.after,A)}),C=0,n.font=d.string,Vt(e.footer,A),n.restore(),_+=b.width,{width:_,height:v}}function iJ(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function sJ(e,t,n,r){const{x:i,width:s}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+s+o>t.width||e==="right"&&i-s-o<0)return!0}function oJ(e,t,n,r){const{x:i,width:s}=n,{width:o,chartArea:{left:a,right:u}}=e;let c="center";return r==="center"?c=i<=(a+u)/2?"left":"right":i<=s/2?c="left":i>=o-s/2&&(c="right"),sJ(c,e,t,n)&&(c="center"),c}function gx(e,t,n){const r=n.yAlign||t.yAlign||iJ(e,n);return{xAlign:n.xAlign||t.xAlign||oJ(e,t,n,r),yAlign:r}}function aJ(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function lJ(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function mx(e,t,n,r){const{caretSize:i,caretPadding:s,cornerRadius:o}=e,{xAlign:a,yAlign:u}=n,c=i+s,{topLeft:d,topRight:h,bottomLeft:g,bottomRight:m}=Do(o);let b=aJ(t,a);const v=lJ(t,u,c);return u==="center"?a==="left"?b+=c:a==="right"&&(b-=c):a==="left"?b-=Math.max(d,g)+i:a==="right"&&(b+=Math.max(h,m)+i),{x:Mn(b,0,r.width-t.width),y:Mn(v,0,r.height-t.height)}}function pf(e,t,n){const r=Kn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function vx(e){return pi([],ji(e))}function uJ(e,t,n){return Js(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function bx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const uE={beforeTitle:Bi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?uE[t].call(n,r):i}class Qg extends as{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new WO(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=uJ(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=ir(r,"beforeTitle",this,t),s=ir(r,"title",this,t),o=ir(r,"afterTitle",this,t);let a=[];return a=pi(a,ji(i)),a=pi(a,ji(s)),a=pi(a,ji(o)),a}getBeforeBody(t,n){return vx(ir(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Vt(t,s=>{const o={before:[],lines:[],after:[]},a=bx(r,s);pi(o.before,ji(ir(a,"beforeLabel",this,s))),pi(o.lines,ir(a,"label",this,s)),pi(o.after,ji(ir(a,"afterLabel",this,s))),i.push(o)}),i}getAfterBody(t,n){return vx(ir(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=ir(r,"beforeFooter",this,t),s=ir(r,"footer",this,t),o=ir(r,"afterFooter",this,t);let a=[];return a=pi(a,ji(i)),a=pi(a,ji(s)),a=pi(a,ji(o)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],s=[],o=[];let a=[],u,c;for(u=0,c=n.length;ut.filter(d,h,g,r))),t.itemSort&&(a=a.sort((d,h)=>t.itemSort(d,h,r))),Vt(a,d=>{const h=bx(t.callbacks,d);i.push(ir(h,"labelColor",this,d)),s.push(ir(h,"labelPointStyle",this,d)),o.push(ir(h,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const a=Fl[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const u=this._size=px(this,r),c=Object.assign({},a,u),d=gx(this.chart,r,c),h=mx(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:h.x,y:h.y,width:u.width,height:u.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const s=this.getCaretPosition(t,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:u,topRight:c,bottomLeft:d,bottomRight:h}=Do(a),{x:g,y:m}=t,{width:b,height:v}=n;let _,y,C,A,x,S;return s==="center"?(x=m+v/2,i==="left"?(_=g,y=_-o,A=x+o,S=x-o):(_=g+b,y=_+o,A=x-o,S=x+o),C=_):(i==="left"?y=g+Math.max(u,d)+o:i==="right"?y=g+b-Math.max(c,h)-o:y=this.caretX,s==="top"?(A=m,x=A-o,_=y-o,C=y+o):(A=m+v,x=A+o,_=y+o,C=y-o),S=A),{x1:_,x2:y,x3:C,y1:A,y2:x,y3:S}}drawTitle(t,n,r){const i=this.title,s=i.length;let o,a,u;if(s){const c=xa(r.rtl,this.x,this.width);for(t.x=pf(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=wn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,u=0;uC!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Mu(t,{x:v,y:b,w:c,h:u,radius:y}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Mu(t,{x:_,y:b+1,w:c-2,h:u-2,radius:y}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(v,b,c,u),t.strokeRect(v,b,c,u),t.fillStyle=o.backgroundColor,t.fillRect(_,b+1,c-2,u-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:u,boxWidth:c,boxPadding:d}=r,h=wn(r.bodyFont);let g=h.lineHeight,m=0;const b=xa(r.rtl,this.x,this.width),v=function(T){n.fillText(T,b.x(t.x+m),t.y+g/2),t.y+=g+s},_=b.textAlign(o);let y,C,A,x,S,M,P;for(n.textAlign=o,n.textBaseline="middle",n.font=h.string,t.x=pf(this,_,r),n.fillStyle=r.bodyColor,Vt(this.beforeBody,v),m=a&&_!=="right"?o==="center"?c/2+d:c+2+d:0,x=0,M=i.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const o=Fl[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=px(this,t),u=Object.assign({},o,this._size),c=gx(n,t,u),d=mx(t,u,c,n);(i._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Kn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,i,n),DO(t,n.textDirection),s.y+=o.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),NO(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:u})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[u],index:u}}),s=!ud(r,i),o=this._positionChanged(i,n);(s||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(t,s,n,r),a=this._positionChanged(o,t),u=n||!ud(o,s)||a;return u&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),u}_getActiveElements(t,n,r,i){const s=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:s}=this,o=Fl[s.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}Pe(Qg,"positioners",Fl);var cJ={id:"tooltip",_element:Qg,positioners:Fl,afterInit(e,t,n){n&&(e.tooltip=new Qg({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:uE},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},fJ=Object.freeze({__proto__:null,Colors:CX,Decimation:MX,Filler:qX,Legend:QX,SubTitle:nJ,Title:tJ,Tooltip:cJ});const dJ=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function hJ(e,t,n,r){const i=e.indexOf(t);if(i===-1)return dJ(e,t,n,r);const s=e.lastIndexOf(t);return i!==s?n:i}const pJ=(e,t)=>e===null?null:Mn(Math.round(e),0,t);function yx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Pe(em,"id","category"),Pe(em,"defaults",{ticks:{callback:yx}});function gJ(e,t){const n=[],{bounds:i,step:s,min:o,max:a,precision:u,count:c,maxTicks:d,maxDigits:h,includeBounds:g}=e,m=s||1,b=d-1,{min:v,max:_}=t,y=!Rt(o),C=!Rt(a),A=!Rt(c),x=(_-v)/(h+1);let S=hw((_-v)/b/m)*m,M,P,T,$;if(S<1e-14&&!y&&!C)return[{value:v},{value:_}];$=Math.ceil(_/S)-Math.floor(v/S),$>b&&(S=hw($*S/b/m)*m),Rt(u)||(M=Math.pow(10,u),S=Math.ceil(S*M)/M),i==="ticks"?(P=Math.floor(v/S)*S,T=Math.ceil(_/S)*S):(P=v,T=_),y&&C&&s&&uq((a-o)/s,S/1e3)?($=Math.round(Math.min((a-o)/S,d)),S=(a-o)/$,P=o,T=a):A?(P=y?o:P,T=C?a:T,$=c-1,S=(T-P)/$):($=(T-P)/S,Zl($,Math.round($),S/1e3)?$=Math.round($):$=Math.ceil($));const z=Math.max(pw(S),pw(P));M=Math.pow(10,Rt(u)?z:u),P=Math.round(P*M)/M,T=Math.round(T*M)/M;let V=0;for(y&&(g&&P!==o?(n.push({value:o}),Pa)break;n.push({value:R})}return C&&g&&T!==a?n.length&&Zl(n[n.length-1].value,a,_x(a,x,e))?n[n.length-1].value=a:n.push({value:a}):(!C||T===a)&&n.push({value:T}),n}function _x(e,t,{horizontal:n,minRotation:r}){const i=ti(r),s=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}class md extends Go{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Rt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const o=u=>i=n?i:u,a=u=>s=r?s:u;if(t){const u=wi(i),c=wi(s);u<0&&c<0?a(0):u>0&&c>0&&o(0)}if(i===s){let u=s===0?1:Math.abs(s*.05);a(s+u),t||o(i-u)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=gJ(i,s);return t.bounds==="ticks"&&_O(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Ku(t,this.chart.options.locale,this.options.ticks.format)}}class tm extends md{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=cn(t)?t:0,this.max=cn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ti(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Pe(tm,"id","linear"),Pe(tm,"defaults",{ticks:{callback:Kd.formatters.numeric}});const Au=e=>Math.floor(Ps(e)),go=(e,t)=>Math.pow(10,Au(e)+t);function wx(e){return e/Math.pow(10,Au(e))===1}function xx(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function mJ(e,t){const n=t-e;let r=Au(n);for(;xx(e,t,r)>10;)r++;for(;xx(e,t,r)<10;)r--;return Math.min(r,Au(e))}function vJ(e,{min:t,max:n}){t=_r(e.min,t);const r=[],i=Au(t);let s=mJ(t,n),o=s<0?Math.pow(10,Math.abs(s)):1;const a=Math.pow(10,s),u=i>s?Math.pow(10,i):0,c=Math.round((t-u)*o)/o,d=Math.floor((t-u)/a/10)*a*10;let h=Math.floor((c-d)/Math.pow(10,s)),g=_r(e.min,Math.round((u+d+h*Math.pow(10,s))*o)/o);for(;g=10?h=h<15?15:20:h++,h>=20&&(s++,h=2,o=s>=0?1:o),g=Math.round((u+d+h*Math.pow(10,s))*o)/o;const m=_r(e.max,g);return r.push({value:m,major:wx(m),significand:h}),r}class nm extends Go{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=md.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return cn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=cn(t)?Math.max(0,t):null,this.max=cn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!cn(this._userMin)&&(this.min=t===go(this.min,0)?go(this.min,-1):go(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const s=a=>r=t?r:a,o=a=>i=n?i:a;r===i&&(r<=0?(s(1),o(10)):(s(go(r,-1)),o(go(i,1)))),r<=0&&s(go(i,-1)),i<=0&&o(go(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=vJ(n,this);return t.bounds==="ticks"&&_O(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Ku(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ps(t),this._valueRange=Ps(this.max)-Ps(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ps(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Pe(nm,"id","logarithmic"),Pe(nm,"defaults",{ticks:{callback:Kd.formatters.logarithmic,major:{enabled:!0}}});function rm(e){const t=e.ticks;if(t.display&&e.display){const n=Kn(t.backdropPadding);return pt(t.font&&t.font.size,fn.font.size)+n.height}return 0}function bJ(e,t,n){return n=Qt(n)?n:[n],{w:Eq(e,t.string,n),h:n.length*t.lineHeight}}function Cx(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function yJ(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],s=e._pointLabels.length,o=e.options.pointLabels,a=o.centerPointLabels?nn/s:0;for(let u=0;ut.r&&(a=(r.end-t.r)/s,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(u=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+u))}function wJ(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:s,padding:o,size:a}=n,u=e.getPointPosition(t,r+i+o,s),c=Math.round(Lv(Cr(u.angle+pn))),d=EJ(u.y,a.h,c),h=SJ(c),g=OJ(u.x,a.w,h);return{visible:!0,x:u.x,y:d,textAlign:h,left:g,top:d,right:g+a.w,bottom:d+a.h}}function xJ(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:s}=e;return!(Xi({x:n,y:r},t)||Xi({x:n,y:s},t)||Xi({x:i,y:r},t)||Xi({x:i,y:s},t))}function CJ(e,t,n){const r=[],i=e._pointLabels.length,s=e.options,{centerPointLabels:o,display:a}=s.pointLabels,u={extra:rm(s)/2,additionalAngle:o?nn/i:0};let c;for(let d=0;d270||n<90)&&(e-=t),e}function MJ(e,t,n){const{left:r,top:i,right:s,bottom:o}=n,{backdropColor:a}=t;if(!Rt(a)){const u=Do(t.borderRadius),c=Kn(t.backdropPadding);e.fillStyle=a;const d=r-c.left,h=i-c.top,g=s-r+c.width,m=o-i+c.height;Object.values(u).some(b=>b!==0)?(e.beginPath(),Mu(e,{x:d,y:h,w:g,h:m,radius:u}),e.fill()):e.fillRect(d,h,g,m)}}function TJ(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const s=e._pointLabelItems[i];if(!s.visible)continue;const o=r.setContext(e.getPointLabelContext(i));MJ(n,o,s);const a=wn(o.font),{x:u,y:c,textAlign:d}=s;Vo(n,e._pointLabels[i],u,c+a.lineHeight/2,a,{color:o.color,textAlign:d,textBaseline:"middle"})}}function cE(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,en);else{let s=e.getPointPosition(0,t);i.moveTo(s.x,s.y);for(let o=1;o{const i=qt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?yJ(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=en/(this._pointLabels.length||1),r=this.options.startAngle||0;return Cr(t*n+ti(r))}getDistanceFromCenterForValue(t){if(Rt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Rt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(h!==0){u=this.getDistanceFromCenterForValue(d.value);const g=this.getContext(h),m=i.setContext(g),b=s.setContext(g);AJ(this,m,u,o,b)}}),r.display){for(t.save(),a=o-1;a>=0;a--){const d=r.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:g}=d;!g||!h||(t.lineWidth=g,t.strokeStyle=h,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,u=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,u),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,u)=>{if(u===0&&!n.reverse)return;const c=r.setContext(this.getContext(u)),d=wn(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[u].value),c.showLabelBackdrop){t.font=d.string,o=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=Kn(c.backdropPadding);t.fillRect(-o/2-h.left,-s-d.size/2-h.top,o+h.width,d.size+h.height)}Vo(t,a.label,0,-s,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}Pe(Dl,"id","radialLinear"),Pe(Dl,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Kd.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Pe(Dl,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Pe(Dl,"descriptors",{angleLines:{_fallback:"grid"}});const Xd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},or=Object.keys(Xd);function Sx(e,t){return e-t}function Ox(e,t){if(Rt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:s}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),cn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(za(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,i)),+o)}function Ex(e,t,n,r){const i=or.length;for(let s=or.indexOf(e);s=or.indexOf(n);s--){const o=or[s];if(Xd[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return or[n?or.indexOf(n):0]}function kJ(e){for(let t=or.indexOf(e)+1,n=or.length;t=t?n[r]:n[i];e[s]=!0}}function LJ(e,t,n,r){const i=e._adapter,s=+i.startOf(t[0].value,r),o=t[t.length-1].value;let a,u;for(a=s;a<=o;a=+i.add(a,1,r))u=n[a],u>=0&&(t[u].major=!0);return t}function Tx(e,t,n){const r=[],i={},s=t.length;let o,a;for(o=0;o+t.value))}initOffsets(t=[]){let n=0,r=0,i,s;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Mn(n,0,o),r=Mn(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,o=s.unit||Ex(s.minUnit,n,r,this._getLabelCapacity(n)),a=pt(i.ticks.stepSize,1),u=o==="week"?s.isoWeekday:!1,c=za(u)||u===!0,d={};let h=n,g,m;if(c&&(h=+t.startOf(h,"isoWeek",u)),h=+t.startOf(h,c?"day":o),t.diff(r,n,o)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+o);const b=i.ticks.source==="data"&&this.getDataTimestamps();for(g=h,m=0;g+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,s=this._unit,o=n||i[s];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const s=this.options,o=s.ticks.callback;if(o)return qt(o,[t,n,r],this);const a=s.time.displayFormats,u=this._unit,c=this._majorUnit,d=u&&a[u],h=c&&a[c],g=r[n],m=c&&h&&g&&g.major;return this._adapter.format(t,i||(m?h:d))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Gi(e,"pos",t)),{pos:s,time:a}=e[r],{pos:o,time:u}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Gi(e,"time",t)),{time:s,pos:a}=e[r],{time:o,pos:u}=e[i]);const c=o-s;return c?a+(u-a)*(t-s)/c:a}class im extends Pu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=gf(n,this.min),this._tableRange=gf(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],s=[];let o,a,u,c,d;for(o=0,a=t.length;o=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,a=i.length;oi-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(gf(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return gf(this._table,r*this._tableRange+this._minPos,!0)}}Pe(im,"id","timeseries"),Pe(im,"defaults",Pu.defaults);var IJ=Object.freeze({__proto__:null,CategoryScale:em,LinearScale:tm,LogarithmicScale:nm,RadialLinearScale:Dl,TimeScale:Pu,TimeSeriesScale:im});const $J=[HY,vX,fJ,IJ];vi.register(...$J);const FJ={class:"flex flex-row p-2"},DJ={class:"pl-2"},NJ={class:"pl-2"},BJ=["innerHTML"],zJ=L("div",{class:"sm:w-full md:w-full lg:w-full xl:w-40% 2xl:w-40%"},[L("canvas",{id:"barChartCanvas",height:"400"})],-1),HJ={__name:"BarChart",props:["label","data"],setup(e){const t=e;let n,r,i=mn({bar:[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]],labels:[{name:"Soil C (0-30 cm)",color:"rgb(44,55,166)",unit:"kg CO2-eq/ha"},{name:"Nitrous Oxide (Fertiliser)",color:"rgb(255, 99, 132)",unit:"kg CO2-eq/ha"},{name:"Nitrous Oxide (Mineralised)",color:"rgb(54, 162, 235)",unit:"kg CO2-eq/ha"},{name:"Nitrous Oxide (Residues)",color:"rgb(255, 205, 86)",unit:"kg CO2-eq/ha"},{name:"Nitrous Oxide (Indirect)",color:"rgb(79,73,79)",unit:"kg CO2-eq/ha"},{name:"Nitrous Oxide (Urine)",color:"rgb(206,58,31)",unit:"kg CO2-eq/ha"},{name:"Methane (Animal)",color:"rgb(217,109,62)",unit:"kg CO2-eq/ha"}]});const s=()=>{n=new vi(r,{type:"bar",data:{labels:["Soil C (0-30 cm)","Nitrous Oxide (Fertiliser)","Nitrous Oxide (Mineralised)","Nitrous Oxide (Residues)","Nitrous Oxide (Indirect)","Nitrous Oxide (Urine)","Methane (Animal)"],datasets:[{label:" ",backgroundColor:["rgb(44,55,166)","rgb(255, 99, 132)","rgb(54, 162, 235)","rgb(255, 205, 86)","rgb(79,73,79)","rgb(206,58,31)","rgb(217,109,62)"],fontSize:24,data:[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]]}]},hoverOffset:1,options:{responsive:!0,maintainAspectRatio:!0,plugins:{legend:{display:!1}},scales:{y:{beginAtZero:!0,suggestedMin:a(),max:o()}}}})};Lt(()=>{r=document.getElementById("barChartCanvas"),s()});const o=()=>Math.max(...i.bar),a=()=>{let u=Math.min(...i.bar);return u>=0?u=0:u=u-100,u};return Re(()=>t.data,(u,c)=>{n&&(i.bar=[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]],n.data={labels:["Soil C (0-30 cm)","Nitrous Oxide (Fertiliser)","Nitrous Oxide (Mineralised)","Nitrous Oxide (Residues)","Nitrous Oxide (Indirect)","Nitrous Oxide (Urine)","Methane (Animal)"],datasets:[{label:" ",backgroundColor:["rgb(44,55,166)","rgb(255, 99, 132)","rgb(54, 162, 235)","rgb(255, 205, 86)","rgb(79,73,79)","rgb(206,58,31)","rgb(217,109,62)"],data:i.bar}]},n.options.scales={y:{suggestedMin:a(),max:o()}},n.update())}),(u,c)=>{const d=Vr;return K(),_e(it,null,[B(d,{span:24,gutter:10},{default:D(()=>[(K(!0),_e(it,null,On(O(i).labels,(h,g)=>(K(),_e("div",FJ,[L("div",{class:"w-8 h-4",style:Nt(`background-color: ${h.color}`)},null,4),L("span",DJ,bt(h.name),1),L("span",NJ,bt(O(i).bar[g]),1),L("span",{class:"px-2",innerHTML:h.unit},null,8,BJ)]))),256))]),_:1}),zJ],64)}}};const WJ=L("h3",null,"Simulation Results",-1),VJ=L("br",null,null,-1),jJ=L("br",null,null,-1),UJ=L("br",null,null,-1),KJ=L("br",null,null,-1),qJ=L("br",null,null,-1),YJ=L("br",null,null,-1),GJ=L("br",null,null,-1),XJ=L("br",null,null,-1),JJ=L("br",null,null,-1),ZJ=L("sub",null,"2",-1),QJ=L("sub",null,"2",-1),eZ=L("br",null,null,-1),tZ=L("br",null,null,-1),nZ=L("sub",null,"2",-1),rZ=L("sub",null,"2",-1),iZ=L("br",null,null,-1),sZ=L("br",null,null,-1),oZ=L("sub",null,"2",-1),aZ=L("sub",null,"2",-1),lZ=L("br",null,null,-1),uZ=L("br",null,null,-1),cZ=L("sub",null,"2",-1),fZ=L("sub",null,"2",-1),dZ=L("br",null,null,-1),hZ=L("br",null,null,-1),pZ=L("sub",null,"2",-1),gZ=L("sub",null,"2",-1),mZ=L("br",null,null,-1),vZ=L("br",null,null,-1),bZ=L("sub",null,"2",-1),yZ=L("sub",null,"4",-1),_Z=L("br",null,null,-1),wZ=L("br",null,null,-1),xZ=L("sub",null,"2",-1),CZ=L("br",null,null,-1),SZ=L("sub",null,"2",-1),OZ=L("div",{class:"table-error"},null,-1),EZ={__name:"ResultsTable",props:["results","initialOC"],setup(e){const t=e,n=H(()=>{const r=ut(t.results),i=[];i.push({year:r.years[0]-1,oc:t.initialOC});for(let s=0;s{const s=tO,o=eO,a=Vr;return K(),_e(it,null,[WJ,B(a,null,{default:D(()=>[B(o,{data:n.value,border:"",style:{width:"100%"}},{default:D(()=>[B(s,{prop:"year",label:"Year"}),B(s,{prop:"crop",label:"Crop"}),B(s,{prop:"rain"},{header:D(()=>[Z("Rain "),VJ,Z("mm")]),_:1}),B(s,{prop:"yields","min-width":"90px"},{header:D(()=>[Z("Yield "),jJ,Z("kg DM/ha")]),_:1}),B(s,{prop:"biomass","min-width":"90px"},{header:D(()=>[Z("Biomass "),UJ,Z("kg C/ha")]),_:1}),B(s,{prop:"nitrogen","min-width":"90px"},{header:D(()=>[Z("Fert "),KJ,Z("kg N/ha")]),_:1}),B(s,{prop:"urine","min-width":"90px"},{header:D(()=>[Z("Urine "),qJ,Z("kg N/ha")]),_:1}),B(s,{prop:"oc","min-width":"100px"},{header:D(()=>[Z("OC"),YJ,Z("(0-10 cm)"),GJ,Z("%")]),_:1}),B(s,{prop:"co2","min-width":"130px"},{header:D(()=>[Z("Soil C "),XJ,Z("(0-30 cm)"),JJ,Z("kg CO"),ZJ,Z("-eq/ha")]),_:1}),B(s,{prop:"n2o_fert","min-width":"130px"},{header:D(()=>[Z("N"),QJ,Z("O"),eZ,Z("(Fertiliser)"),tZ,Z("kg CO"),nZ,Z("-eq/ha")]),_:1}),B(s,{prop:"n2o_min","min-width":"130px"},{header:D(()=>[Z("N"),rZ,Z("O"),iZ,Z("(Mineralised)"),sZ,Z("kg CO"),oZ,Z("-eq/ha")]),_:1}),B(s,{prop:"n2o_res","min-width":"130px"},{header:D(()=>[Z("N"),aZ,Z("O"),lZ,Z("(Residues)"),uZ,Z("kg CO"),cZ,Z("-eq/ha")]),_:1}),B(s,{prop:"n2o_indirect","min-width":"130px"},{header:D(()=>[Z("N"),fZ,Z("O"),dZ,Z("(Indirect)"),hZ,Z("kg CO"),pZ,Z("-eq/ha")]),_:1}),B(s,{prop:"n2o_urine","min-width":"130px"},{header:D(()=>[Z("N"),gZ,Z("O"),mZ,Z("(Urine)"),vZ,Z("kg CO"),bZ,Z("-eq/ha")]),_:1}),B(s,{prop:"ch4_animal","min-width":"130px"},{header:D(()=>[Z("CH"),yZ,_Z,Z("(Animal)"),wZ,Z("kg CO"),xZ,Z("-eq/ha")]),_:1}),B(s,{prop:"total","min-width":"130px"},{header:D(()=>[Z("TOTAL"),CZ,Z("kg CO"),SZ,Z("-eq/ha")]),_:1})]),_:1},8,["data"]),OZ]),_:1})],64)}}},MZ=L("h3",null,"Table of management",-1),TZ=L("div",{class:"table-error"},null,-1),AZ={__name:"ManagementTable",props:["results"],setup(e){const t=e,n=H(()=>{const r=ut(t.results),i=[],s=["crop","nitrogen","stubble","grazing"];for(let o of s){const a={};a.year=o.charAt(0).toUpperCase()+o.slice(1);for(let u=0;u{const s=tO,o=eO,a=Vr;return K(),_e(it,null,[MZ,B(a,null,{default:D(()=>[B(o,{data:n.value,border:"",style:{width:"100%"}},{default:D(()=>[B(s,{prop:"year",label:"Year",width:"100px"}),(K(!0),_e(it,null,On(e.results.years,u=>(K(),Ie(s,{prop:`'${u}'`},{header:D(()=>[Z(bt(u),1)]),_:2},1032,["prop"]))),256))]),_:1},8,["data"]),TZ]),_:1})],64)}}},PZ=L("canvas",{id:"lineChartCanvas",style:{position:"relative",height:"40vh",width:"80vw"}},null,-1),RZ=[PZ],kZ={__name:"LineChart",props:["label","xAxis","data"],setup(e){const t=e;let n,r;const i=({min:s,max:o})=>{n=new vi(r,{type:"line",data:{labels:t.xAxis,datasets:[{label:t.label,backgroundColor:"rgba(220,220,220,0.26)",borderColor:"rgb(53,148,126)",data:t.data}]},options:{responsive:!0,maintainAspectRatio:!1,lineTension:0,scales:{y:{ticks:{beginAtZero:!1,padding:25},suggestedMin:s,suggestedMax:o},x:{}}}})};return Lt(()=>{r=document.getElementById("lineChartCanvas");const s=t.data[0]+t.data[0]*.01,o=t.data[t.data.length-1]-t.data[t.data.length-1]*.01;i({min:o,max:s,data:t.data})}),Ka(()=>{const s=t.data[0]+t.data[0]*.01,o=t.data[t.data.length-1]-t.data[t.data.length-1]*.01;n.options={responsive:!0,maintainAspectRatio:!0,lineTension:0,scales:{y:{ticks:{beginAtZero:!1,padding:25},suggestedMin:o,suggestedMax:s},x:{}}},n.data={labels:t.xAxis,datasets:[{label:t.label,backgroundColor:"rgba(220,220,220,0.26)",borderColor:"rgb(53,148,126)",data:t.data}]},n.update()}),(s,o)=>(K(),_e("div",null,RZ))}};var vd={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */vd.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",h=1,g=2,m=4,b=1,v=2,_=1,y=2,C=4,A=8,x=16,S=32,M=64,P=128,T=256,$=512,z=30,V="...",R=800,j=16,ue=1,ce=2,ne=3,Q=1/0,ie=9007199254740991,ee=17976931348623157e292,ye=0/0,Ee=4294967295,ke=Ee-1,Ze=Ee>>>1,le=[["ary",P],["bind",_],["bindKey",y],["curry",A],["curryRight",x],["flip",$],["partial",S],["partialRight",M],["rearg",T]],Ye="[object Arguments]",Ne="[object Array]",Y="[object AsyncFunction]",oe="[object Boolean]",de="[object Date]",Oe="[object DOMException]",We="[object Error]",F="[object Function]",W="[object GeneratorFunction]",q="[object Map]",se="[object Number]",he="[object Null]",ge="[object Object]",Te="[object Promise]",Se="[object Proxy]",Ce="[object RegExp]",pe="[object Set]",Be="[object String]",Ae="[object Symbol]",re="[object Undefined]",Me="[object WeakMap]",Ue="[object WeakSet]",at="[object ArrayBuffer]",ot="[object DataView]",zt="[object Float32Array]",Le="[object Float64Array]",Ke="[object Int8Array]",ct="[object Int16Array]",Qe="[object Int32Array]",xt="[object Uint8Array]",St="[object Uint8ClampedArray]",Ft="[object Uint16Array]",te="[object Uint32Array]",we=/\b__p \+= '';/g,Xe=/\b(__p \+=) '' \+/g,ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rn=/&(?:amp|lt|gt|quot|#39);/g,an=/[&<>"']/g,dr=RegExp(rn.source),jr=RegExp(an.source),Zn=/<%-([\s\S]+?)%>/g,nl=/<%([\s\S]+?)%>/g,Fn=/<%=([\s\S]+?)%>/g,Mi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SE=/^\w*$/,OE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eh=/[\\^$.*+?()[\]{}|]/g,EE=RegExp(eh.source),th=/^\s+/,ME=/\s/,TE=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,AE=/\{\n\/\* \[wrapped with (.+)\] \*/,PE=/,? & /,RE=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kE=/[()=,{}\[\]\/\s]/,LE=/\\(\\)?/g,IE=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qv=/\w*$/,$E=/^[-+]0x[0-9a-f]+$/i,FE=/^0b[01]+$/i,DE=/^\[object .+?Constructor\]$/,NE=/^0o[0-7]+$/i,BE=/^(?:0|[1-9]\d*)$/,zE=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yu=/($^)/,HE=/['\n\r\u2028\u2029\\]/g,Gu="\\ud800-\\udfff",WE="\\u0300-\\u036f",VE="\\ufe20-\\ufe2f",jE="\\u20d0-\\u20ff",Yv=WE+VE+jE,Gv="\\u2700-\\u27bf",Xv="a-z\\xdf-\\xf6\\xf8-\\xff",UE="\\xac\\xb1\\xd7\\xf7",KE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qE="\\u2000-\\u206f",YE=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jv="A-Z\\xc0-\\xd6\\xd8-\\xde",Zv="\\ufe0e\\ufe0f",Qv=UE+KE+qE+YE,nh="['’]",GE="["+Gu+"]",eb="["+Qv+"]",Xu="["+Yv+"]",tb="\\d+",XE="["+Gv+"]",nb="["+Xv+"]",rb="[^"+Gu+Qv+tb+Gv+Xv+Jv+"]",rh="\\ud83c[\\udffb-\\udfff]",JE="(?:"+Xu+"|"+rh+")",ib="[^"+Gu+"]",ih="(?:\\ud83c[\\udde6-\\uddff]){2}",sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Xo="["+Jv+"]",sb="\\u200d",ob="(?:"+nb+"|"+rb+")",ZE="(?:"+Xo+"|"+rb+")",ab="(?:"+nh+"(?:d|ll|m|re|s|t|ve))?",lb="(?:"+nh+"(?:D|LL|M|RE|S|T|VE))?",ub=JE+"?",cb="["+Zv+"]?",QE="(?:"+sb+"(?:"+[ib,ih,sh].join("|")+")"+cb+ub+")*",eM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fb=cb+ub+QE,nM="(?:"+[XE,ih,sh].join("|")+")"+fb,rM="(?:"+[ib+Xu+"?",Xu,ih,sh,GE].join("|")+")",iM=RegExp(nh,"g"),sM=RegExp(Xu,"g"),oh=RegExp(rh+"(?="+rh+")|"+rM+fb,"g"),oM=RegExp([Xo+"?"+nb+"+"+ab+"(?="+[eb,Xo,"$"].join("|")+")",ZE+"+"+lb+"(?="+[eb,Xo+ob,"$"].join("|")+")",Xo+"?"+ob+"+"+ab,Xo+"+"+lb,tM,eM,tb,nM].join("|"),"g"),aM=RegExp("["+sb+Gu+Yv+Zv+"]"),lM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],cM=-1,Gt={};Gt[zt]=Gt[Le]=Gt[Ke]=Gt[ct]=Gt[Qe]=Gt[xt]=Gt[St]=Gt[Ft]=Gt[te]=!0,Gt[Ye]=Gt[Ne]=Gt[at]=Gt[oe]=Gt[ot]=Gt[de]=Gt[We]=Gt[F]=Gt[q]=Gt[se]=Gt[ge]=Gt[Ce]=Gt[pe]=Gt[Be]=Gt[Me]=!1;var Ut={};Ut[Ye]=Ut[Ne]=Ut[at]=Ut[ot]=Ut[oe]=Ut[de]=Ut[zt]=Ut[Le]=Ut[Ke]=Ut[ct]=Ut[Qe]=Ut[q]=Ut[se]=Ut[ge]=Ut[Ce]=Ut[pe]=Ut[Be]=Ut[Ae]=Ut[xt]=Ut[St]=Ut[Ft]=Ut[te]=!0,Ut[We]=Ut[F]=Ut[Me]=!1;var fM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},dM={"&":"&","<":"<",">":">",'"':""","'":"'"},hM={"&":"&","<":"<",">":">",""":'"',"'":"'"},pM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gM=parseFloat,mM=parseInt,db=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,vM=typeof self=="object"&&self&&self.Object===Object&&self,An=db||vM||Function("return this")(),ah=t&&!t.nodeType&&t,Zs=ah&&!0&&e&&!e.nodeType&&e,hb=Zs&&Zs.exports===ah,lh=hb&&db.process,Mr=function(){try{var G=Zs&&Zs.require&&Zs.require("util").types;return G||lh&&lh.binding&&lh.binding("util")}catch{}}(),pb=Mr&&Mr.isArrayBuffer,gb=Mr&&Mr.isDate,mb=Mr&&Mr.isMap,vb=Mr&&Mr.isRegExp,bb=Mr&&Mr.isSet,yb=Mr&&Mr.isTypedArray;function hr(G,fe,ae){switch(ae.length){case 0:return G.call(fe);case 1:return G.call(fe,ae[0]);case 2:return G.call(fe,ae[0],ae[1]);case 3:return G.call(fe,ae[0],ae[1],ae[2])}return G.apply(fe,ae)}function bM(G,fe,ae,ze){for(var dt=-1,It=G==null?0:G.length;++dt-1}function uh(G,fe,ae){for(var ze=-1,dt=G==null?0:G.length;++ze-1;);return ae}function Mb(G,fe){for(var ae=G.length;ae--&&Jo(fe,G[ae],0)>-1;);return ae}function MM(G,fe){for(var ae=G.length,ze=0;ae--;)G[ae]===fe&&++ze;return ze}var TM=hh(fM),AM=hh(dM);function PM(G){return"\\"+pM[G]}function RM(G,fe){return G==null?n:G[fe]}function Zo(G){return aM.test(G)}function kM(G){return lM.test(G)}function LM(G){for(var fe,ae=[];!(fe=G.next()).done;)ae.push(fe.value);return ae}function vh(G){var fe=-1,ae=Array(G.size);return G.forEach(function(ze,dt){ae[++fe]=[dt,ze]}),ae}function Tb(G,fe){return function(ae){return G(fe(ae))}}function cs(G,fe){for(var ae=-1,ze=G.length,dt=0,It=[];++ae-1}function _T(l,f){var p=this.__data__,w=pc(p,l);return w<0?(++this.size,p.push([l,f])):p[w][1]=f,this}Ti.prototype.clear=mT,Ti.prototype.delete=vT,Ti.prototype.get=bT,Ti.prototype.has=yT,Ti.prototype.set=_T;function Ai(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f=f?l:f)),l}function Rr(l,f,p,w,E,I){var N,U=f&h,J=f&g,me=f&m;if(p&&(N=E?p(l,w,E,I):p(l)),N!==n)return N;if(!ln(l))return l;var ve=ht(l);if(ve){if(N=SA(l),!U)return Qn(l,N)}else{var xe=Nn(l),$e=xe==F||xe==W;if(ms(l))return cy(l,U);if(xe==ge||xe==Ye||$e&&!E){if(N=J||$e?{}:Ay(l),!U)return J?hA(l,FT(N,l)):dA(l,zb(N,l))}else{if(!Ut[xe])return E?l:{};N=OA(l,xe,U)}}I||(I=new Kr);var Ve=I.get(l);if(Ve)return Ve;I.set(l,N),i0(l)?l.forEach(function(rt){N.add(Rr(rt,f,p,rt,l,I))}):n0(l)&&l.forEach(function(rt,Ot){N.set(Ot,Rr(rt,f,p,Ot,l,I))});var nt=me?J?Vh:Wh:J?tr:Sn,_t=ve?n:nt(l);return Tr(_t||l,function(rt,Ot){_t&&(Ot=rt,rt=l[Ot]),ul(N,Ot,Rr(rt,f,p,Ot,l,I))}),N}function DT(l){var f=Sn(l);return function(p){return Hb(p,l,f)}}function Hb(l,f,p){var w=p.length;if(l==null)return!w;for(l=jt(l);w--;){var E=p[w],I=f[E],N=l[E];if(N===n&&!(E in l)||!I(N))return!1}return!0}function Wb(l,f,p){if(typeof l!="function")throw new Ar(o);return ml(function(){l.apply(n,p)},f)}function cl(l,f,p,w){var E=-1,I=Ju,N=!0,U=l.length,J=[],me=f.length;if(!U)return J;p&&(f=sn(f,pr(p))),w?(I=uh,N=!1):f.length>=i&&(I=rl,N=!1,f=new to(f));e:for(;++EE?0:E+p),w=w===n||w>E?E:mt(w),w<0&&(w+=E),w=p>w?0:o0(w);p0&&p(U)?f>1?Pn(U,f-1,p,w,E):us(E,U):w||(E[E.length]=U)}return E}var Sh=my(),Ub=my(!0);function ci(l,f){return l&&Sh(l,f,Sn)}function Oh(l,f){return l&&Ub(l,f,Sn)}function mc(l,f){return ls(f,function(p){return Ii(l[p])})}function ro(l,f){f=ps(f,l);for(var p=0,w=f.length;l!=null&&pf}function zT(l,f){return l!=null&&Ht.call(l,f)}function HT(l,f){return l!=null&&f in jt(l)}function WT(l,f,p){return l>=Dn(f,p)&&l=120&&ve.length>=120)?new to(N&&ve):n}ve=l[0];var xe=-1,$e=U[0];e:for(;++xe-1;)U!==l&&ac.call(U,J,1),ac.call(l,J,1);return l}function ny(l,f){for(var p=l?f.length:0,w=p-1;p--;){var E=f[p];if(p==w||E!==I){var I=E;Li(E)?ac.call(l,E,1):$h(l,E)}}return l}function kh(l,f){return l+cc(Fb()*(f-l+1))}function tA(l,f,p,w){for(var E=-1,I=yn(uc((f-l)/(p||1)),0),N=ae(I);I--;)N[w?I:++E]=l,l+=p;return N}function Lh(l,f){var p="";if(!l||f<1||f>ie)return p;do f%2&&(p+=l),f=cc(f/2),f&&(l+=l);while(f);return p}function Ct(l,f){return Xh(ky(l,f,nr),l+"")}function nA(l){return Bb(ua(l))}function rA(l,f){var p=ua(l);return Mc(p,no(f,0,p.length))}function hl(l,f,p,w){if(!ln(l))return l;f=ps(f,l);for(var E=-1,I=f.length,N=I-1,U=l;U!=null&&++EE?0:E+f),p=p>E?E:p,p<0&&(p+=E),E=f>p?0:p-f>>>0,f>>>=0;for(var I=ae(E);++w>>1,N=l[I];N!==null&&!mr(N)&&(p?N<=f:N=i){var me=f?null:vA(l);if(me)return Qu(me);N=!1,E=rl,J=new to}else J=f?[]:U;e:for(;++w=w?l:kr(l,f,p)}var uy=YM||function(l){return An.clearTimeout(l)};function cy(l,f){if(f)return l.slice();var p=l.length,w=Rb?Rb(p):new l.constructor(p);return l.copy(w),w}function Bh(l){var f=new l.constructor(l.byteLength);return new sc(f).set(new sc(l)),f}function lA(l,f){var p=f?Bh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function uA(l){var f=new l.constructor(l.source,qv.exec(l));return f.lastIndex=l.lastIndex,f}function cA(l){return ll?jt(ll.call(l)):{}}function fy(l,f){var p=f?Bh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function dy(l,f){if(l!==f){var p=l!==n,w=l===null,E=l===l,I=mr(l),N=f!==n,U=f===null,J=f===f,me=mr(f);if(!U&&!me&&!I&&l>f||I&&N&&J&&!U&&!me||w&&N&&J||!p&&J||!E)return 1;if(!w&&!I&&!me&&l=U)return J;var me=p[w];return J*(me=="desc"?-1:1)}}return l.index-f.index}function hy(l,f,p,w){for(var E=-1,I=l.length,N=p.length,U=-1,J=f.length,me=yn(I-N,0),ve=ae(J+me),xe=!w;++U1?p[E-1]:n,N=E>2?p[2]:n;for(I=l.length>3&&typeof I=="function"?(E--,I):n,N&&Yn(p[0],p[1],N)&&(I=E<3?n:I,E=1),f=jt(f);++w-1?E[I?f[N]:N]:n}}function yy(l){return ki(function(f){var p=f.length,w=p,E=Pr.prototype.thru;for(l&&f.reverse();w--;){var I=f[w];if(typeof I!="function")throw new Ar(o);if(E&&!N&&Oc(I)=="wrapper")var N=new Pr([],!0)}for(w=N?w:p;++w1&&Pt.reverse(),ve&&JU))return!1;var me=I.get(l),ve=I.get(f);if(me&&ve)return me==f&&ve==l;var xe=-1,$e=!0,Ve=p&v?new to:n;for(I.set(l,f),I.set(f,l);++xe1?"& ":"")+f[w],f=f.join(p>2?", ":" "),l.replace(TE,`{ +/* [wrapped with `+f+`] */ +`)}function MA(l){return ht(l)||oo(l)||!!(Ib&&l&&l[Ib])}function Li(l,f){var p=typeof l;return f=f??ie,!!f&&(p=="number"||p!="symbol"&&BE.test(l))&&l>-1&&l%1==0&&l0){if(++f>=R)return arguments[0]}else f=0;return l.apply(n,arguments)}}function Mc(l,f){var p=-1,w=l.length,E=w-1;for(f=f===n?w:f;++p1?l[f-1]:n;return p=typeof p=="function"?(l.pop(),p):n,jy(l,p)});function Uy(l){var f=k(l);return f.__chain__=!0,f}function NP(l,f){return f(l),l}function Tc(l,f){return f(l)}var BP=ki(function(l){var f=l.length,p=f?l[0]:0,w=this.__wrapped__,E=function(I){return Ch(I,l)};return f>1||this.__actions__.length||!(w instanceof Et)||!Li(p)?this.thru(E):(w=w.slice(p,+p+(f?1:0)),w.__actions__.push({func:Tc,args:[E],thisArg:n}),new Pr(w,this.__chain__).thru(function(I){return f&&!I.length&&I.push(n),I}))});function zP(){return Uy(this)}function HP(){return new Pr(this.value(),this.__chain__)}function WP(){this.__values__===n&&(this.__values__=s0(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function VP(){return this}function jP(l){for(var f,p=this;p instanceof hc;){var w=Ny(p);w.__index__=0,w.__values__=n,f?E.__wrapped__=w:f=w;var E=w;p=p.__wrapped__}return E.__wrapped__=l,f}function UP(){var l=this.__wrapped__;if(l instanceof Et){var f=l;return this.__actions__.length&&(f=new Et(this)),f=f.reverse(),f.__actions__.push({func:Tc,args:[Jh],thisArg:n}),new Pr(f,this.__chain__)}return this.thru(Jh)}function KP(){return ay(this.__wrapped__,this.__actions__)}var qP=_c(function(l,f,p){Ht.call(l,p)?++l[p]:Pi(l,p,1)});function YP(l,f,p){var w=ht(l)?_b:NT;return p&&Yn(l,f,p)&&(f=n),w(l,tt(f,3))}function GP(l,f){var p=ht(l)?ls:jb;return p(l,tt(f,3))}var XP=by(By),JP=by(zy);function ZP(l,f){return Pn(Ac(l,f),1)}function QP(l,f){return Pn(Ac(l,f),Q)}function eR(l,f,p){return p=p===n?1:mt(p),Pn(Ac(l,f),p)}function Ky(l,f){var p=ht(l)?Tr:ds;return p(l,tt(f,3))}function qy(l,f){var p=ht(l)?yM:Vb;return p(l,tt(f,3))}var tR=_c(function(l,f,p){Ht.call(l,p)?l[p].push(f):Pi(l,p,[f])});function nR(l,f,p,w){l=er(l)?l:ua(l),p=p&&!w?mt(p):0;var E=l.length;return p<0&&(p=yn(E+p,0)),Ic(l)?p<=E&&l.indexOf(f,p)>-1:!!E&&Jo(l,f,p)>-1}var rR=Ct(function(l,f,p){var w=-1,E=typeof f=="function",I=er(l)?ae(l.length):[];return ds(l,function(N){I[++w]=E?hr(f,N,p):fl(N,f,p)}),I}),iR=_c(function(l,f,p){Pi(l,p,f)});function Ac(l,f){var p=ht(l)?sn:Xb;return p(l,tt(f,3))}function sR(l,f,p,w){return l==null?[]:(ht(f)||(f=f==null?[]:[f]),p=w?n:p,ht(p)||(p=p==null?[]:[p]),ey(l,f,p))}var oR=_c(function(l,f,p){l[p?0:1].push(f)},function(){return[[],[]]});function aR(l,f,p){var w=ht(l)?ch:Sb,E=arguments.length<3;return w(l,tt(f,4),p,E,ds)}function lR(l,f,p){var w=ht(l)?_M:Sb,E=arguments.length<3;return w(l,tt(f,4),p,E,Vb)}function uR(l,f){var p=ht(l)?ls:jb;return p(l,kc(tt(f,3)))}function cR(l){var f=ht(l)?Bb:nA;return f(l)}function fR(l,f,p){(p?Yn(l,f,p):f===n)?f=1:f=mt(f);var w=ht(l)?LT:rA;return w(l,f)}function dR(l){var f=ht(l)?IT:sA;return f(l)}function hR(l){if(l==null)return 0;if(er(l))return Ic(l)?Qo(l):l.length;var f=Nn(l);return f==q||f==pe?l.size:Ah(l).length}function pR(l,f,p){var w=ht(l)?fh:oA;return p&&Yn(l,f,p)&&(f=n),w(l,tt(f,3))}var gR=Ct(function(l,f){if(l==null)return[];var p=f.length;return p>1&&Yn(l,f[0],f[1])?f=[]:p>2&&Yn(f[0],f[1],f[2])&&(f=[f[0]]),ey(l,Pn(f,1),[])}),Pc=GM||function(){return An.Date.now()};function mR(l,f){if(typeof f!="function")throw new Ar(o);return l=mt(l),function(){if(--l<1)return f.apply(this,arguments)}}function Yy(l,f,p){return f=p?n:f,f=l&&f==null?l.length:f,Ri(l,P,n,n,n,n,f)}function Gy(l,f){var p;if(typeof f!="function")throw new Ar(o);return l=mt(l),function(){return--l>0&&(p=f.apply(this,arguments)),l<=1&&(f=n),p}}var Qh=Ct(function(l,f,p){var w=_;if(p.length){var E=cs(p,aa(Qh));w|=S}return Ri(l,w,f,p,E)}),Xy=Ct(function(l,f,p){var w=_|y;if(p.length){var E=cs(p,aa(Xy));w|=S}return Ri(f,w,l,p,E)});function Jy(l,f,p){f=p?n:f;var w=Ri(l,A,n,n,n,n,n,f);return w.placeholder=Jy.placeholder,w}function Zy(l,f,p){f=p?n:f;var w=Ri(l,x,n,n,n,n,n,f);return w.placeholder=Zy.placeholder,w}function Qy(l,f,p){var w,E,I,N,U,J,me=0,ve=!1,xe=!1,$e=!0;if(typeof l!="function")throw new Ar(o);f=Ir(f)||0,ln(p)&&(ve=!!p.leading,xe="maxWait"in p,I=xe?yn(Ir(p.maxWait)||0,f):I,$e="trailing"in p?!!p.trailing:$e);function Ve(hn){var Yr=w,Fi=E;return w=E=n,me=hn,N=l.apply(Fi,Yr),N}function nt(hn){return me=hn,U=ml(Ot,f),ve?Ve(hn):N}function _t(hn){var Yr=hn-J,Fi=hn-me,b0=f-Yr;return xe?Dn(b0,I-Fi):b0}function rt(hn){var Yr=hn-J,Fi=hn-me;return J===n||Yr>=f||Yr<0||xe&&Fi>=I}function Ot(){var hn=Pc();if(rt(hn))return Pt(hn);U=ml(Ot,_t(hn))}function Pt(hn){return U=n,$e&&w?Ve(hn):(w=E=n,N)}function vr(){U!==n&&uy(U),me=0,w=J=E=U=n}function Gn(){return U===n?N:Pt(Pc())}function br(){var hn=Pc(),Yr=rt(hn);if(w=arguments,E=this,J=hn,Yr){if(U===n)return nt(J);if(xe)return uy(U),U=ml(Ot,f),Ve(J)}return U===n&&(U=ml(Ot,f)),N}return br.cancel=vr,br.flush=Gn,br}var vR=Ct(function(l,f){return Wb(l,1,f)}),bR=Ct(function(l,f,p){return Wb(l,Ir(f)||0,p)});function yR(l){return Ri(l,$)}function Rc(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new Ar(o);var p=function(){var w=arguments,E=f?f.apply(this,w):w[0],I=p.cache;if(I.has(E))return I.get(E);var N=l.apply(this,w);return p.cache=I.set(E,N)||I,N};return p.cache=new(Rc.Cache||Ai),p}Rc.Cache=Ai;function kc(l){if(typeof l!="function")throw new Ar(o);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function _R(l){return Gy(2,l)}var wR=aA(function(l,f){f=f.length==1&&ht(f[0])?sn(f[0],pr(tt())):sn(Pn(f,1),pr(tt()));var p=f.length;return Ct(function(w){for(var E=-1,I=Dn(w.length,p);++E=f}),oo=qb(function(){return arguments}())?qb:function(l){return un(l)&&Ht.call(l,"callee")&&!Lb.call(l,"callee")},ht=ae.isArray,FR=pb?pr(pb):jT;function er(l){return l!=null&&Lc(l.length)&&!Ii(l)}function dn(l){return un(l)&&er(l)}function DR(l){return l===!0||l===!1||un(l)&&qn(l)==oe}var ms=JM||fp,NR=gb?pr(gb):UT;function BR(l){return un(l)&&l.nodeType===1&&!vl(l)}function zR(l){if(l==null)return!0;if(er(l)&&(ht(l)||typeof l=="string"||typeof l.splice=="function"||ms(l)||la(l)||oo(l)))return!l.length;var f=Nn(l);if(f==q||f==pe)return!l.size;if(gl(l))return!Ah(l).length;for(var p in l)if(Ht.call(l,p))return!1;return!0}function HR(l,f){return dl(l,f)}function WR(l,f,p){p=typeof p=="function"?p:n;var w=p?p(l,f):n;return w===n?dl(l,f,n,p):!!w}function tp(l){if(!un(l))return!1;var f=qn(l);return f==We||f==Oe||typeof l.message=="string"&&typeof l.name=="string"&&!vl(l)}function VR(l){return typeof l=="number"&&$b(l)}function Ii(l){if(!ln(l))return!1;var f=qn(l);return f==F||f==W||f==Y||f==Se}function t0(l){return typeof l=="number"&&l==mt(l)}function Lc(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=ie}function ln(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function un(l){return l!=null&&typeof l=="object"}var n0=mb?pr(mb):qT;function jR(l,f){return l===f||Th(l,f,Uh(f))}function UR(l,f,p){return p=typeof p=="function"?p:n,Th(l,f,Uh(f),p)}function KR(l){return r0(l)&&l!=+l}function qR(l){if(PA(l))throw new dt(s);return Yb(l)}function YR(l){return l===null}function GR(l){return l==null}function r0(l){return typeof l=="number"||un(l)&&qn(l)==se}function vl(l){if(!un(l)||qn(l)!=ge)return!1;var f=oc(l);if(f===null)return!0;var p=Ht.call(f,"constructor")&&f.constructor;return typeof p=="function"&&p instanceof p&&nc.call(p)==UM}var np=vb?pr(vb):YT;function XR(l){return t0(l)&&l>=-ie&&l<=ie}var i0=bb?pr(bb):GT;function Ic(l){return typeof l=="string"||!ht(l)&&un(l)&&qn(l)==Be}function mr(l){return typeof l=="symbol"||un(l)&&qn(l)==Ae}var la=yb?pr(yb):XT;function JR(l){return l===n}function ZR(l){return un(l)&&Nn(l)==Me}function QR(l){return un(l)&&qn(l)==Ue}var ek=Sc(Ph),tk=Sc(function(l,f){return l<=f});function s0(l){if(!l)return[];if(er(l))return Ic(l)?Ur(l):Qn(l);if(il&&l[il])return LM(l[il]());var f=Nn(l),p=f==q?vh:f==pe?Qu:ua;return p(l)}function $i(l){if(!l)return l===0?l:0;if(l=Ir(l),l===Q||l===-Q){var f=l<0?-1:1;return f*ee}return l===l?l:0}function mt(l){var f=$i(l),p=f%1;return f===f?p?f-p:f:0}function o0(l){return l?no(mt(l),0,Ee):0}function Ir(l){if(typeof l=="number")return l;if(mr(l))return ye;if(ln(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=ln(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=Ob(l);var p=FE.test(l);return p||NE.test(l)?mM(l.slice(2),p?2:8):$E.test(l)?ye:+l}function a0(l){return fi(l,tr(l))}function nk(l){return l?no(mt(l),-ie,ie):l===0?l:0}function Dt(l){return l==null?"":gr(l)}var rk=sa(function(l,f){if(gl(f)||er(f)){fi(f,Sn(f),l);return}for(var p in f)Ht.call(f,p)&&ul(l,p,f[p])}),l0=sa(function(l,f){fi(f,tr(f),l)}),$c=sa(function(l,f,p,w){fi(f,tr(f),l,w)}),ik=sa(function(l,f,p,w){fi(f,Sn(f),l,w)}),sk=ki(Ch);function ok(l,f){var p=ia(l);return f==null?p:zb(p,f)}var ak=Ct(function(l,f){l=jt(l);var p=-1,w=f.length,E=w>2?f[2]:n;for(E&&Yn(f[0],f[1],E)&&(w=1);++p1),I}),fi(l,Vh(l),p),w&&(p=Rr(p,h|g|m,bA));for(var E=f.length;E--;)$h(p,f[E]);return p});function Ok(l,f){return c0(l,kc(tt(f)))}var Ek=ki(function(l,f){return l==null?{}:QT(l,f)});function c0(l,f){if(l==null)return{};var p=sn(Vh(l),function(w){return[w]});return f=tt(f),ty(l,p,function(w,E){return f(w,E[0])})}function Mk(l,f,p){f=ps(f,l);var w=-1,E=f.length;for(E||(E=1,l=n);++wf){var w=l;l=f,f=w}if(p||l%1||f%1){var E=Fb();return Dn(l+E*(f-l+gM("1e-"+((E+"").length-1))),f)}return kh(l,f)}var Nk=oa(function(l,f,p){return f=f.toLowerCase(),l+(p?h0(f):f)});function h0(l){return sp(Dt(l).toLowerCase())}function p0(l){return l=Dt(l),l&&l.replace(zE,TM).replace(sM,"")}function Bk(l,f,p){l=Dt(l),f=gr(f);var w=l.length;p=p===n?w:no(mt(p),0,w);var E=p;return p-=f.length,p>=0&&l.slice(p,E)==f}function zk(l){return l=Dt(l),l&&jr.test(l)?l.replace(an,AM):l}function Hk(l){return l=Dt(l),l&&EE.test(l)?l.replace(eh,"\\$&"):l}var Wk=oa(function(l,f,p){return l+(p?"-":"")+f.toLowerCase()}),Vk=oa(function(l,f,p){return l+(p?" ":"")+f.toLowerCase()}),jk=vy("toLowerCase");function Uk(l,f,p){l=Dt(l),f=mt(f);var w=f?Qo(l):0;if(!f||w>=f)return l;var E=(f-w)/2;return Cc(cc(E),p)+l+Cc(uc(E),p)}function Kk(l,f,p){l=Dt(l),f=mt(f);var w=f?Qo(l):0;return f&&w>>0,p?(l=Dt(l),l&&(typeof f=="string"||f!=null&&!np(f))&&(f=gr(f),!f&&Zo(l))?gs(Ur(l),0,p):l.split(f,p)):[]}var Qk=oa(function(l,f,p){return l+(p?" ":"")+sp(f)});function eL(l,f,p){return l=Dt(l),p=p==null?0:no(mt(p),0,l.length),f=gr(f),l.slice(p,p+f.length)==f}function tL(l,f,p){var w=k.templateSettings;p&&Yn(l,f,p)&&(f=n),l=Dt(l),f=$c({},f,w,Sy);var E=$c({},f.imports,w.imports,Sy),I=Sn(E),N=mh(E,I),U,J,me=0,ve=f.interpolate||Yu,xe="__p += '",$e=bh((f.escape||Yu).source+"|"+ve.source+"|"+(ve===Fn?IE:Yu).source+"|"+(f.evaluate||Yu).source+"|$","g"),Ve="//# sourceURL="+(Ht.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cM+"]")+` +`;l.replace($e,function(rt,Ot,Pt,vr,Gn,br){return Pt||(Pt=vr),xe+=l.slice(me,br).replace(HE,PM),Ot&&(U=!0,xe+=`' + +__e(`+Ot+`) + +'`),Gn&&(J=!0,xe+=`'; +`+Gn+`; +__p += '`),Pt&&(xe+=`' + +((__t = (`+Pt+`)) == null ? '' : __t) + +'`),me=br+rt.length,rt}),xe+=`'; +`;var nt=Ht.call(f,"variable")&&f.variable;if(!nt)xe=`with (obj) { +`+xe+` +} +`;else if(kE.test(nt))throw new dt(a);xe=(J?xe.replace(we,""):xe).replace(Xe,"$1").replace(ft,"$1;"),xe="function("+(nt||"obj")+`) { +`+(nt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(J?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+xe+`return __p +}`;var _t=m0(function(){return It(I,Ve+"return "+xe).apply(n,N)});if(_t.source=xe,tp(_t))throw _t;return _t}function nL(l){return Dt(l).toLowerCase()}function rL(l){return Dt(l).toUpperCase()}function iL(l,f,p){if(l=Dt(l),l&&(p||f===n))return Ob(l);if(!l||!(f=gr(f)))return l;var w=Ur(l),E=Ur(f),I=Eb(w,E),N=Mb(w,E)+1;return gs(w,I,N).join("")}function sL(l,f,p){if(l=Dt(l),l&&(p||f===n))return l.slice(0,Ab(l)+1);if(!l||!(f=gr(f)))return l;var w=Ur(l),E=Mb(w,Ur(f))+1;return gs(w,0,E).join("")}function oL(l,f,p){if(l=Dt(l),l&&(p||f===n))return l.replace(th,"");if(!l||!(f=gr(f)))return l;var w=Ur(l),E=Eb(w,Ur(f));return gs(w,E).join("")}function aL(l,f){var p=z,w=V;if(ln(f)){var E="separator"in f?f.separator:E;p="length"in f?mt(f.length):p,w="omission"in f?gr(f.omission):w}l=Dt(l);var I=l.length;if(Zo(l)){var N=Ur(l);I=N.length}if(p>=I)return l;var U=p-Qo(w);if(U<1)return w;var J=N?gs(N,0,U).join(""):l.slice(0,U);if(E===n)return J+w;if(N&&(U+=J.length-U),np(E)){if(l.slice(U).search(E)){var me,ve=J;for(E.global||(E=bh(E.source,Dt(qv.exec(E))+"g")),E.lastIndex=0;me=E.exec(ve);)var xe=me.index;J=J.slice(0,xe===n?U:xe)}}else if(l.indexOf(gr(E),U)!=U){var $e=J.lastIndexOf(E);$e>-1&&(J=J.slice(0,$e))}return J+w}function lL(l){return l=Dt(l),l&&dr.test(l)?l.replace(rn,DM):l}var uL=oa(function(l,f,p){return l+(p?" ":"")+f.toUpperCase()}),sp=vy("toUpperCase");function g0(l,f,p){return l=Dt(l),f=p?n:f,f===n?kM(l)?zM(l):CM(l):l.match(f)||[]}var m0=Ct(function(l,f){try{return hr(l,n,f)}catch(p){return tp(p)?p:new dt(p)}}),cL=ki(function(l,f){return Tr(f,function(p){p=di(p),Pi(l,p,Qh(l[p],l))}),l});function fL(l){var f=l==null?0:l.length,p=tt();return l=f?sn(l,function(w){if(typeof w[1]!="function")throw new Ar(o);return[p(w[0]),w[1]]}):[],Ct(function(w){for(var E=-1;++Eie)return[];var p=Ee,w=Dn(l,Ee);f=tt(f),l-=Ee;for(var E=gh(w,f);++p0||f<0)?new Et(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),f!==n&&(f=mt(f),p=f<0?p.dropRight(-f):p.take(f-l)),p)},Et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Et.prototype.toArray=function(){return this.take(Ee)},ci(Et.prototype,function(l,f){var p=/^(?:filter|find|map|reject)|While$/.test(f),w=/^(?:head|last)$/.test(f),E=k[w?"take"+(f=="last"?"Right":""):f],I=w||/^find/.test(f);E&&(k.prototype[f]=function(){var N=this.__wrapped__,U=w?[1]:arguments,J=N instanceof Et,me=U[0],ve=J||ht(N),xe=function(Ot){var Pt=E.apply(k,us([Ot],U));return w&&$e?Pt[0]:Pt};ve&&p&&typeof me=="function"&&me.length!=1&&(J=ve=!1);var $e=this.__chain__,Ve=!!this.__actions__.length,nt=I&&!$e,_t=J&&!Ve;if(!I&&ve){N=_t?N:new Et(this);var rt=l.apply(N,U);return rt.__actions__.push({func:Tc,args:[xe],thisArg:n}),new Pr(rt,$e)}return nt&&_t?l.apply(this,U):(rt=this.thru(xe),nt?w?rt.value()[0]:rt.value():rt)})}),Tr(["pop","push","shift","sort","splice","unshift"],function(l){var f=ec[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",w=/^(?:pop|shift)$/.test(l);k.prototype[l]=function(){var E=arguments;if(w&&!this.__chain__){var I=this.value();return f.apply(ht(I)?I:[],E)}return this[p](function(N){return f.apply(ht(N)?N:[],E)})}}),ci(Et.prototype,function(l,f){var p=k[f];if(p){var w=p.name+"";Ht.call(ra,w)||(ra[w]=[]),ra[w].push({name:f,func:p})}}),ra[wc(n,y).name]=[{name:"wrapper",func:n}],Et.prototype.clone=lT,Et.prototype.reverse=uT,Et.prototype.value=cT,k.prototype.at=BP,k.prototype.chain=zP,k.prototype.commit=HP,k.prototype.next=WP,k.prototype.plant=jP,k.prototype.reverse=UP,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=KP,k.prototype.first=k.prototype.head,il&&(k.prototype[il]=VP),k},ea=HM();Zs?((Zs.exports=ea)._=ea,ah._=ea):An._=ea}).call(Zt)})(vd,vd.exports);var Ax=vd.exports;const LZ=L("p",null,[Z("Add "),L("span",{class:"font-bold"},"Simulation period in years"),Z(" and "),L("span",{class:"font-bold"},"Start Year")],-1),IZ={__name:"YieldsTable",props:["annualYields","startYear","periodLength","rotationTable","rotationLength","plants"],emits:["updateYields"],setup(e,{emit:t}){const n=e,r=mn({annualYields:[]});Re(()=>n.annualYields,a=>{r.annualYields=n.annualYields},{immediate:!0}),Re(()=>n.periodLength,a=>{var u,c,d,h;r.annualYields=n.annualYields;for(let g=0;gn.rotationLength,a=>{o(),t("updateYields",{annualYields:r.annualYields})},{immediate:!0}),Re(()=>n.rotationTable,a=>{o(),t("updateYields",{annualYields:r.annualYields})},{immediate:!0});function i({$event:a,key:u}){s(a,u),t("updateYields",{annualYields:r.annualYields})}function s(a,u){r.annualYields[u].yield=a}function o(){var u,c;let a=0;for(let d=0;d<((u=r.annualYields)==null?void 0:u.length);d++)if(n.rotationTable[a]){const g=n.rotationTable[a].plant.id;r.annualYields[d].rotation=(c=n.plants[g])==null?void 0:c.name,a++,a>=n.rotationLength&&(a=0)}}return(a,u)=>{const c=os,d=Vr,h=el;return K(),_e("div",null,[B(d,{class:""},{default:D(()=>[B(c,{span:24,class:"p-2 text-center text-2xl"},{default:D(()=>[Z("Annual Yields")]),_:1})]),_:1}),parseInt(n.periodLength)>0&&parseInt(n.startYear)>=0?(K(!0),_e(it,{key:0},On(r.annualYields,(g,m,b)=>(K(),Ie(d,{key:b},{default:D(()=>[B(c,{span:24,class:"p-2"},{default:D(()=>{var v,_;return[B(h,{modelValue:(_=(v=r.annualYields)==null?void 0:v[m])==null?void 0:_.yield,onInput:y=>i({$event:y,key:m})},{prepend:D(()=>[Z(bt(g.year),1)]),_:2},1032,["modelValue","onInput"])]}),_:2},1024)]),_:2},1024))),128)):(K(),Ie(d,{key:1},{default:D(()=>[LZ]),_:1}))])}}};const $Z={key:0},FZ={__name:"RotationSelect",props:["posibleValues","year","modelValue","name","nullify"],emits:["update:modelValue"],setup(e,{emit:t}){const n=e;let r=n.modelValue;Lt(()=>{n.nullify&&(r="null",i("null"))}),Re(()=>n.nullify,(s,o)=>{n.nullify&&(r="null",i("null"))},{immediate:!0});function i(s){t("update:modelValue",s)}return(s,o)=>{const a=j2,u=V2;return e.nullify?Fe("",!0):(K(),_e("div",$Z,[B(u,{modelValue:O(r),"onUpdate:modelValue":o[0]||(o[0]=c=>$t(r)?r.value=c:r=c),onChange:o[1]||(o[1]=c=>i(c))},{default:D(()=>[(K(!0),_e(it,null,On(e.posibleValues,c=>(K(),Ie(a,{key:n.year+n.name,label:c.name,value:c.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]))}}},DZ={class:"flex flex-col"},NZ=L("p",null,[Z("Add "),L("span",{class:"font-bold"},"Simulation period in years")],-1),BZ={__name:"YearlyTable",props:["annualRainfall","periodLength","startYear"],emits:["updateAnnualRainfall"],setup(e,{emit:t}){const n=e,r=mn({annualRainfall:n.annualRainfall});Ua(()=>{var o,a,u,c;if(parseInt(n.periodLength)>0)for(let d=0;dn.periodLength,o=>{for(let a=0;a{const u=os,c=Vr,d=el;return K(),_e("div",DZ,[B(c,{class:""},{default:D(()=>[B(u,{span:24,class:"p-2 text-center text-2xl"},{default:D(()=>[Z("Yearly Rain")]),_:1})]),_:1}),B(c,null,{default:D(()=>[B(u,{span:6,class:"p-2 font-bold"},{default:D(()=>[Z("Year")]),_:1}),B(u,{span:18,class:"p-2 font-bold"},{default:D(()=>[Z("Rainfall (mm)")]),_:1})]),_:1}),parseInt(n.periodLength)>0?(K(!0),_e(it,{key:0},On(parseInt(n.periodLength),(h,g)=>(K(),Ie(c,{key:h},{default:D(()=>[B(u,{span:6,class:"p-2"},{default:D(()=>[Z(bt(parseInt(n.startYear)-1+parseInt(h)),1)]),_:2},1024),B(u,{span:18,class:"p-2"},{default:D(()=>{var m,b;return[B(d,{modelValue:(b=(m=r.annualRainfall)==null?void 0:m[g])==null?void 0:b.rainfall,onInput:v=>i({$event:v,key:g})},null,8,["modelValue","onInput"])]}),_:2},1024)]),_:2},1024))),128)):(K(),Ie(c,{key:1},{default:D(()=>[NZ]),_:1}))])}}},zZ={__name:"MonthlyTable",props:["monthRainTemp","periodLength","startYear"],emits:["updateMonthRainTemps"],setup(e,{emit:t}){const n=e,r=mn({monthRainTemp:[]}),i=["January","February","March","April","May","June","July","August","September","October","November","December"];Ua(()=>{var u,c,d,h,g,m,b,v;const a=[];for(let _=0;_{const c=os,d=Vr,h=el;return K(),_e("div",null,[B(d,{class:""},{default:D(()=>[B(c,{span:24,class:"p-2 text-center text-2xl"},{default:D(()=>[Z("Monthly Rain Temperature")]),_:1})]),_:1}),B(d,null,{default:D(()=>[B(c,{span:6,class:"p-2 font-bold"},{default:D(()=>[Z("Month")]),_:1}),B(c,{span:9,class:"p-2 font-bold"},{default:D(()=>[Z("Rainfall (mm)")]),_:1}),B(c,{span:9,class:"p-2 font-bold"},{default:D(()=>[Z("Temperature (℃)")]),_:1})]),_:1}),(K(),_e(it,null,On(i,(g,m)=>B(d,{key:m,class:""},{default:D(()=>[B(c,{span:6,class:"p-2"},{default:D(()=>[Z(bt(g),1)]),_:2},1024),B(c,{span:9,class:"p-2"},{default:D(()=>[B(h,{modelValue:r.monthRainTemp[m].rainfall,onInput:b=>s({$event:b,index:m,key:"rainfall"})},null,8,["modelValue","onInput"])]),_:2},1024),B(c,{span:9,class:"p-2"},{default:D(()=>[B(h,{modelValue:r.monthRainTemp[m].temperature,onInput:b=>s({$event:b,index:m,key:"temperature"})},null,8,["modelValue","onInput"])]),_:2},1024)]),_:2},1024)),64))])}}};var HZ=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let fE;const Jd=e=>fE=e,dE=Symbol();function sm(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var nu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(nu||(nu={}));function WZ(){const e=Bx(!0),t=e.run(()=>X({}));let n=[],r=[];const i=Od({install(s){Jd(i),i._a=s,s.provide(dE,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!HZ?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const hE=()=>{};function Px(e,t,n,r=hE){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&hm()&&pm(i),i}function ga(e,...t){e.slice().forEach(n=>{n(...t)})}const VZ=e=>e();function om(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];sm(i)&&sm(r)&&e.hasOwnProperty(n)&&!$t(r)&&!$s(r)?e[n]=om(i,r):e[n]=r}return e}const jZ=Symbol();function UZ(e){return!sm(e)||!e.hasOwnProperty(jZ)}const{assign:Ss}=Object;function KZ(e){return!!($t(e)&&e.effect)}function qZ(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let u;function c(){a||(n.state.value[e]=i?i():{});const d=Gs(n.state.value[e]);return Ss(d,s,Object.keys(o||{}).reduce((h,g)=>(h[g]=Od(H(()=>{Jd(n);const m=n._s.get(e);return o[g].call(m,m)})),h),{}))}return u=pE(e,c,t,n,r,!0),u}function pE(e,t,n={},r,i,s){let o;const a=Ss({actions:{}},n),u={deep:!0};let c,d,h=[],g=[],m;const b=r.state.value[e];!s&&!b&&(r.state.value[e]={}),X({});let v;function _(T){let $;c=d=!1,typeof T=="function"?(T(r.state.value[e]),$={type:nu.patchFunction,storeId:e,events:m}):(om(r.state.value[e],T),$={type:nu.patchObject,payload:T,storeId:e,events:m});const z=v=Symbol();vt().then(()=>{v===z&&(c=!0)}),d=!0,ga(h,$,r.state.value[e])}const y=s?function(){const{state:$}=n,z=$?$():{};this.$patch(V=>{Ss(V,z)})}:hE;function C(){o.stop(),h=[],g=[],r._s.delete(e)}function A(T,$){return function(){Jd(r);const z=Array.from(arguments),V=[],R=[];function j(ne){V.push(ne)}function ue(ne){R.push(ne)}ga(g,{args:z,name:T,store:S,after:j,onError:ue});let ce;try{ce=$.apply(this&&this.$id===e?this:S,z)}catch(ne){throw ga(R,ne),ne}return ce instanceof Promise?ce.then(ne=>(ga(V,ne),ne)).catch(ne=>(ga(R,ne),Promise.reject(ne))):(ga(V,ce),ce)}}const x={_p:r,$id:e,$onAction:Px.bind(null,g),$patch:_,$reset:y,$subscribe(T,$={}){const z=Px(h,T,$.detached,()=>V()),V=o.run(()=>Re(()=>r.state.value[e],R=>{($.flush==="sync"?d:c)&&T({storeId:e,type:nu.direct,events:m},R)},Ss({},u,$)));return z},$dispose:C},S=mn(x);r._s.set(e,S);const P=(r._a&&r._a.runWithContext||VZ)(()=>r._e.run(()=>(o=Bx()).run(t)));for(const T in P){const $=P[T];if($t($)&&!KZ($)||$s($))s||(b&&UZ($)&&($t($)?$.value=b[T]:om($,b[T])),r.state.value[e][T]=$);else if(typeof $=="function"){const z=A(T,$);P[T]=z,a.actions[T]=$}}return Ss(S,P),Ss(ut(S),P),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:T=>{_($=>{Ss($,T)})}}),r._p.forEach(T=>{Ss(S,o.run(()=>T({store:S,app:r._a,pinia:r,options:a})))}),b&&s&&n.hydrate&&n.hydrate(S.$state,b),c=!0,d=!0,S}function YZ(e,t,n){let r,i;const s=typeof t=="function";typeof e=="string"?(r=e,i=s?n:t):(i=e,r=e.id);function o(a,u){const c=S$();return a=a||(c?qe(dE,null):null),a&&Jd(a),a=fE,a._s.has(r)||(s?pE(r,t,i,a):qZ(r,i,a)),a._s.get(r)}return o.$id=r,o}class bd{}Pe(bd,"version","1.0.0");async function GZ({socrates:e,parameters:t}){let r=await fetch("https://api.socrates-soil.net/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({socrates:e,parameters:t})}),i=r.status;if(r=await r.json(),i===200)return r;throw new Error(r==null?void 0:r.message)}async function XZ(){let e=await fetch("parameters.json?nocache="+new Date().getTime()),t=e.status;if(e=await e.json(),t===200)return e;throw new Error(e==null?void 0:e.message)}async function JZ(){let e=await fetch("sample-data-20-year.json");if(e.status===200)return e=await e.json(),e}const gE=YZ({id:"input",state:()=>({version:bd.version,soilProperties:null,clay:0,cec:0,initialOC:0,startYear:0,periodLength:0,rotationLength:0,climateMethodDataEntry:null,monthRainTemp:[{rainfall:0,temperature:0}],annualRainfall:[{rainfall:0}],annualYields:[],averageAnnualRainFall:0,annualMeanTemperature:0,randomizeRainAndTemperature:0,rotationTable:[],yieldsMethodDataEntry:0,parameters:[],showParameters:!1,results:null,socrates:{soil:{},simulation:{},climate:{},rotation:{},yields:{}},toggleAnnualYields:!1,toggleMonthlyClimate:!1,toggleYearlyClimate:!1,rotationTableMessage:null,displayRunInNotebook:!1,jupyterNotebook:[],showLoadDialog:!1,selectedFile:null,socratesOld:{},errors:[],parametersEdited:!1}),actions:{async getParameters(){this.parameters=await XZ(),this.parametersEdited=!1},deleteRotation(e){this.rotationTable.splice(e,1),this.rotationLength--},updateRotation(e){if(e){this.rotationLength=parseInt(e);for(let t=0;t{const s=os,o=Vr,a=el;return K(),_e(it,null,[B(o,null,{default:D(()=>[B(s,{span:24,class:"p-2 text-center text-2xl"},{default:D(()=>[Z("Parameters")]),_:1})]),_:1}),(K(!0),_e(it,null,On(O(t).parameters,(u,c)=>(K(),Ie(o,{key:c,class:""},{default:D(()=>[B(s,{span:24,class:"p-2"},{default:D(()=>[B(a,{modelValue:O(t).parameters[c],"onUpdate:modelValue":d=>O(t).parameters[c]=d,type:"number",onInput:i[0]||(i[0]=d=>n())},{prepend:D(()=>[Z(bt(c),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024))),128)),ZZ],64)}}};var Ru={},Or={};Object.defineProperty(Or,"__esModule",{value:!0});Or.excelBOM=Or.defaultCsv2JsonOptions=Or.defaultJson2CsvOptions=Or.errors=void 0;Or.errors={optionsRequired:"Options were not passed and are required.",json2csv:{cannotCallOn:"Cannot call json2csv on",dataCheckFailure:"Data provided was not an array of documents.",notSameSchema:"Not all documents have the same schema."},csv2json:{cannotCallOn:"Cannot call csv2json on",dataCheckFailure:"CSV is not a string."}};Or.defaultJson2CsvOptions={checkSchemaDifferences:!1,delimiter:{field:",",wrap:'"',eol:` +`},emptyFieldValue:void 0,excelBOM:!1,excludeKeys:[],expandArrayObjects:!1,prependHeader:!0,preventCsvInjection:!1,sortHeader:!1,trimFieldValues:!1,trimHeaderFields:!1,unwindArrays:!1,useDateIso8601Format:!1,useLocaleFormat:!1,wrapBooleans:!1};Or.defaultCsv2JsonOptions={delimiter:{field:",",wrap:'"',eol:` +`},excelBOM:!1,preventCsvInjection:!1,trimFieldValues:!1,trimHeaderFields:!1,wrapBooleans:!1};Or.excelBOM="\uFEFF";var Zd={},Ys={};/** + * @license MIT + * doc-path + * Copyright (c) 2015-present, Michael Rodrigues. + */Object.defineProperty(Ys,"__esModule",{value:!0});Ys.setPath=Ys.evaluatePath=void 0;function Nl(e,t){if(!e)return null;const{dotIndex:n,key:r,remaining:i}=mE(t),s=typeof e=="object"&&t in e?e[t]:void 0,o=typeof e=="object"&&r in e?e[r]:void 0;return n>=0&&typeof e=="object"&&!(t in e)?Array.isArray(o)?o.map(a=>Nl(a,i)):Nl(o,i):Array.isArray(e)?e.map(a=>Nl(a,t)):n>=0&&t!==r&&typeof e=="object"&&r in e?Nl(o,i):n===-1&&typeof e=="object"&&r in e&&!(t in e)?o:s}Ys.evaluatePath=Nl;function eQ(e,t,n){if(e){if(!t)throw new Error("No keyPath was provided.")}else throw new Error("No object was provided.");return Vf(e,t,n)}Ys.setPath=eQ;function Vf(e,t,n){const{dotIndex:r,key:i,remaining:s}=mE(t);if(t.startsWith("__proto__")||t.startsWith("constructor")||t.startsWith("prototype"))return e;if(r>=0){if(typeof e=="object"&&e!==null&&!(i in e)&&Array.isArray(e))return e.forEach(o=>Vf(o,t,n)),e;typeof e=="object"&&e!==null&&!(i in e)&&!Array.isArray(e)&&(e[i]={}),Vf(e[i],s,n)}else{if(Array.isArray(e))return e.forEach(o=>Vf(o,s,n)),e;e[i]=n}return e}function mE(e){const t=tQ(e);return{dotIndex:t,key:e.slice(0,t>=0?t:void 0).replace(/\\./g,"."),remaining:e.slice(t+1)}}function tQ(e){for(let t=0;t0?e[t-1]:"";if(e[t]==="."&&n!=="\\")return t}return-1}var vE={},zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.isDocumentToRecurOn=zs.flatten=zs.unique=void 0;function nQ(e){return[...new Set(e)]}zs.unique=nQ;function rQ(e){return[].concat(...e)}zs.flatten=rQ;function iQ(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length}zs.isDocumentToRecurOn=iQ;var bE={};Object.defineProperty(bE,"__esModule",{value:!0});(function(e){var t=Zt&&Zt.__createBinding||(Object.create?function(m,b,v,_){_===void 0&&(_=v);var y=Object.getOwnPropertyDescriptor(b,v);(!y||("get"in y?!b.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return b[v]}}),Object.defineProperty(m,_,y)}:function(m,b,v,_){_===void 0&&(_=v),m[_]=b[v]}),n=Zt&&Zt.__setModuleDefault||(Object.create?function(m,b){Object.defineProperty(m,"default",{enumerable:!0,value:b})}:function(m,b){m.default=b}),r=Zt&&Zt.__importStar||function(m){if(m&&m.__esModule)return m;var b={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&t(b,m,v);return n(b,m),b},i=Zt&&Zt.__exportStar||function(m,b){for(var v in m)v!=="default"&&!Object.prototype.hasOwnProperty.call(b,v)&&t(b,m,v)};Object.defineProperty(e,"__esModule",{value:!0}),e.deepKeysFromList=e.deepKeys=void 0;const s=r(zs);i(bE,e);function o(m,b){const v=g(b);return typeof m=="object"&&m!==null?u("",m,v):[]}e.deepKeys=o;function a(m,b){const v=g(b);return m.map(_=>typeof _=="object"&&_!==null?o(_,v):[])}e.deepKeysFromList=a;function u(m,b,v){const _=Object.keys(b).map(y=>{const C=h(m,d(y,v));return s.isDocumentToRecurOn(b[y])?u(C,b[y],v):v.expandArrayObjects&&Array.isArray(b[y])?c(b[y],C,v):v.ignoreEmptyArrays&&Array.isArray(b[y])&&!b[y].length?[]:C});return s.flatten(_)}function c(m,b,v){let _=a(m,v);return m.length?m.length&&s.flatten(_).length===0?[b]:(_=_.map(y=>Array.isArray(y)&&y.length===0?[b]:y.map(C=>h(b,d(C,v)))),s.unique(s.flatten(_))):v.ignoreEmptyArraysWhenExpanding?[]:[b]}function d(m,b){return b.escapeNestedDots?m.replace(/\./g,"\\."):m}function h(m,b){return m?m+"."+b:b}function g(m){return{expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,escapeNestedDots:!1,ignoreEmptyArrays:!1,...m??{}}}})(vE);var lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.isInvalid=lt.flatten=lt.unique=lt.arrayDifference=lt.isError=lt.isUndefined=lt.isNull=lt.isObject=lt.isString=lt.isNumber=lt.unwind=lt.getNCharacters=lt.removeEmptyFields=lt.isEmptyField=lt.computeSchemaDifferences=lt.isDateRepresentation=lt.isStringRepresentation=lt.deepCopy=lt.validate=lt.buildC2JOptions=lt.buildJ2COptions=void 0;const qp=Ys,Ls=Or,sQ=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,Yp=1e5;function oQ(e){var t,n,r;return{...Ls.defaultJson2CsvOptions,...e,delimiter:{field:((t=e==null?void 0:e.delimiter)==null?void 0:t.field)??Ls.defaultJson2CsvOptions.delimiter.field,wrap:((n=e==null?void 0:e.delimiter)==null?void 0:n.wrap)||Ls.defaultJson2CsvOptions.delimiter.wrap,eol:((r=e==null?void 0:e.delimiter)==null?void 0:r.eol)||Ls.defaultJson2CsvOptions.delimiter.eol},fieldTitleMap:Object.create({})}}lt.buildJ2COptions=oQ;function aQ(e){var t,n,r;return{...Ls.defaultCsv2JsonOptions,...e,delimiter:{field:((t=e==null?void 0:e.delimiter)==null?void 0:t.field)??Ls.defaultCsv2JsonOptions.delimiter.field,wrap:((n=e==null?void 0:e.delimiter)==null?void 0:n.wrap)||Ls.defaultCsv2JsonOptions.delimiter.wrap,eol:((r=e==null?void 0:e.delimiter)==null?void 0:r.eol)||Ls.defaultCsv2JsonOptions.delimiter.eol}}}lt.buildC2JOptions=aQ;function lQ(e,t,n){if(!e)throw new Error(`${n.cannotCallOn} ${e}.`);if(!t(e))throw new Error(n.dataCheckFailure);return!0}lt.validate=lQ;function am(e){return JSON.parse(JSON.stringify(e))}lt.deepCopy=am;function uQ(e,t){const n=e[0],r=e.length-1,i=e[r];return n===t.delimiter.wrap&&i===t.delimiter.wrap}lt.isStringRepresentation=uQ;function cQ(e){return sQ.test(e)}lt.isDateRepresentation=cQ;function fQ(e,t){return lm(e,t).concat(lm(t,e))}lt.computeSchemaDifferences=fQ;function yE(e){return wE(e)||_E(e)||e===""}lt.isEmptyField=yE;function dQ(e){return e.filter(t=>!yE(t))}lt.removeEmptyFields=dQ;function hQ(e,t,n){return e.substring(t,t+n)}lt.getNCharacters=hQ;function pQ(e,t,n){const r=(0,qp.evaluatePath)(t,n);let i=am(t);Array.isArray(r)&&r.length?r.forEach(s=>{i=am(t),e.push((0,qp.setPath)(i,n,s))}):(Array.isArray(r)&&r.length===0&&(0,qp.setPath)(i,n,""),e.push(i))}function gQ(e,t){const n=[];return e.forEach(r=>{pQ(n,r,t)}),n}lt.unwind=gQ;function mQ(e){return!isNaN(Number(e))}lt.isNumber=mQ;function vQ(e){return typeof e=="string"}lt.isString=vQ;function bQ(e){return typeof e=="object"}lt.isObject=bQ;function _E(e){return e===null}lt.isNull=_E;function wE(e){return typeof e>"u"}lt.isUndefined=wE;function yQ(e){return Object.prototype.toString.call(e)==="[object Error]"}lt.isError=yQ;function lm(e,t){return e.filter(n=>!t.includes(n))}lt.arrayDifference=lm;function _Q(e){return[...new Set(e)]}lt.unique=_Q;function wQ(e){if(e.flat)return e.flat();if(e.length>Yp){let t=[];for(let n=0;nt.concat(n),[])}lt.flatten=wQ;function xQ(e){return e===1/0||e===-1/0}lt.isInvalid=xQ;var CQ=Zt&&Zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),SQ=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),OQ=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&CQ(t,e,n);return SQ(t,e),t};Object.defineProperty(Zd,"__esModule",{value:!0});Zd.Json2Csv=void 0;const EQ=Ys,MQ=vE,Rx=Or,zi=OQ(lt),TQ=function(e){const t=new RegExp(e.delimiter.wrap,"g"),n=/\r?\n|\r/,r=e.parseValue&&typeof e.parseValue=="function"?e.parseValue:null,i=e.expandArrayObjects&&!e.unwindArrays,s={expandArrayObjects:i,ignoreEmptyArraysWhenExpanding:i,escapeNestedDots:!0};async function o(R){return(0,MQ.deepKeysFromList)(R,s)}function a(R){return e.checkSchemaDifferences?u(R):zi.unique(zi.flatten(R))}function u(R){const j=R[0],ue=R.slice(1);if(c(j,ue))throw new Error(Rx.errors.json2csv.notSameSchema);return j}function c(R,j){return j.reduce((ue,ce)=>zi.computeSchemaDifferences(R,ce).length>0?ue+1:ue,0)}function d(R){return e.excludeKeys?R.filter(j=>!e.excludeKeys.includes(j)):R}function h(R){return e.sortHeader&&typeof e.sortHeader=="function"?R.sort(e.sortHeader):e.sortHeader?R.sort():R}function g(R){return e.trimHeaderFields&&(R.headerFields=R.headerFields.map(j=>j.split(".").map(ue=>ue.trim()).join("."))),R}function m(R){return e.prependHeader&&(R.headerFields=R.headerFields.map(function(j){return T(j)})),R}function b(R){const j=Object.keys(e.fieldTitleMap);return R.header=R.headerFields.map(function(ue){const ce=j.includes(ue)?e.fieldTitleMap[ue]:ue;return T(ce)}).join(e.delimiter.field),R}function v(){return e.keys?e.keys.map(R=>typeof R=="object"&&"field"in R?(e.fieldTitleMap[R.field]=R.title??R.field,R.field):R):[]}function _(R){const j=v();return e.keys&&(e.keys=j,!e.unwindArrays)?Promise.resolve(j).then(d).then(h):o(R).then(a).then(d).then(h)}async function y(R,j=!1){if(e.unwindArrays){const ue=R.records.length;return R.headerFields.forEach(ce=>{R.records=zi.unwind(R.records,ce)}),_(R.records).then(ce=>{if(R.headerFields=ce,ue!==R.records.length)return y(R);if(!j)return y(R,!0);if(e.keys){const ne=v();R.headerFields=d(ne)}return R})}return R}function C(R){return R.recordString=R.records.map(j=>{const ue=x(j,R.headerFields),ce=ue.map(ne=>{ne=M(ne),ne=P(ne);let Q=r?r(ne,S):S(ne);return Q=T(Q),Q});return $(ce)}).join(e.delimiter.eol),R}function A(R){const j=zi.removeEmptyFields(R);return!R.length||!j.length?e.emptyFieldValue||"":j.length===1?j[0]:R}function x(R,j){const ue=[];return j.forEach(ce=>{let ne=(0,EQ.evaluatePath)(R,ce);!zi.isUndefined(e.emptyFieldValue)&&zi.isEmptyField(ne)?ne=e.emptyFieldValue:e.expandArrayObjects&&Array.isArray(ne)&&(ne=A(ne)),ue.push(ne)}),ue}function S(R){const j=R instanceof Date;return R===null||Array.isArray(R)||typeof R=="object"&&!j?JSON.stringify(R):typeof R>"u"?"undefined":j&&e.useDateIso8601Format?R.toISOString():e.useLocaleFormat?R.toLocaleString():R.toString()}function M(R){return e.trimFieldValues?Array.isArray(R)?R.map(M):typeof R=="string"?R.trim():R:R}function P(R){return e.preventCsvInjection?Array.isArray(R)?R.map(P):typeof R=="string"&&!zi.isNumber(R)?R.replace(/^[=+\-@\t\r]+/g,""):R:R}function T(R){const j=e.delimiter.wrap;return R.includes(e.delimiter.wrap)&&(R=R.replace(t,j+j)),(R.includes(e.delimiter.field)||R.includes(e.delimiter.wrap)||R.match(n)||e.wrapBooleans&&(R==="true"||R==="false"))&&(R=j+R+j),R}function $(R){return R.join(e.delimiter.field)}function z(R){const j=R.header,ue=R.recordString;return(e.excelBOM?Rx.excelBOM:"")+(e.prependHeader?j+e.delimiter.eol:"")+ue}async function V(R){return zi.isObject(R)&&!R.length&&(R=[R]),_(R).then(j=>({headerFields:j,records:R,header:"",recordString:""})).then(y).then(C).then(m).then(g).then(b).then(z)}return{convert:V}};Zd.Json2Csv=TQ;var Qd={},AQ=Zt&&Zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),PQ=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),RQ=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&AQ(t,e,n);return PQ(t,e),t};Object.defineProperty(Qd,"__esModule",{value:!0});Qd.Csv2Json=void 0;const kQ=Ys,LQ=Or,mo=RQ(lt),IQ=function(e){const t=new RegExp(e.delimiter.wrap+e.delimiter.wrap,"g"),n=new RegExp("^"+LQ.excelBOM),r=e.parseValue&&typeof e.parseValue=="function"?e.parseValue:JSON.parse;function i(C){return C=m(C),e.trimHeaderFields?C.split(".").map(A=>A.trim()).join("."):C}function s(C){let A=[];if(e.headerFields)A=e.headerFields.map((x,S)=>({value:i(x),index:S}));else if(A=C[0].map((S,M)=>({value:i(S),index:M})),e.keys){const S=e.keys;A=A.filter(M=>S.includes(M.value))}return{lines:C,headerFields:A,recordLines:[]}}async function o(C){return e.excelBOM?C.replace(n,""):C}function a(C){const A=[],x=C.length-1,S=e.delimiter.eol.length,M={insideWrapDelimiter:!1,parsingValue:!0,justParsedDoubleQuote:!1,startIndex:0};let P=[],T,$,z,V,R=0;for(;R{const M=c(S,A);try{return(0,kQ.setPath)(x,S.value,M)}catch{return x}},{})}function m(C){const A=C[0],x=C.length-1,S=C[x];return A===e.delimiter.wrap&&S===e.delimiter.wrap?C.substr(1,x-1):C}function b(C){return C.replace(t,e.delimiter.wrap)}function v(C){return C.recordLines.reduce((A,x)=>{x=x.map(M=>(M=m(M),M=b(M),M=h(M),M));const S=g(C.headerFields,x);return A.concat(S)},[])}function _(C){try{if(mo.isStringRepresentation(C,e)&&!mo.isDateRepresentation(C))return C;const A=r(C);return Array.isArray(A)?A.map(h):A}catch(A){return A}}async function y(C){return o(C).then(a).then(s).then(u).then(v)}return{convert:y}};Qd.Csv2Json=IQ;Object.defineProperty(Ru,"__esModule",{value:!0});Ru.csv2json=CE=Ru.json2csv=void 0;const xE=Or,$Q=Zd,FQ=Qd,Ca=lt;async function DQ(e,t){const n=(0,Ca.buildJ2COptions)(t??{});return(0,Ca.validate)(e,Ca.isObject,xE.errors.json2csv),(0,$Q.Json2Csv)(n).convert(e)}var CE=Ru.json2csv=DQ;async function NQ(e,t){const n=(0,Ca.buildC2JOptions)(t??{});return(0,Ca.validate)(e,Ca.isString,xE.errors.csv2json),(0,FQ.Csv2Json)(n).convert(e)}Ru.csv2json=NQ;async function BQ({results:e,initialOC:t}){const n=[];n.push({year:"",crop:"",rain:"mm",yields:"kg DM/ha",biomass:"kg C/ha",nitrogen:"kg N/ha",urine:"kg N/ha",oc:"%",co2:"kg CO2e/ha",n2o_fert:"kg CO2e/ha",n2o_min:"kg CO2e/ha",n2o_res:"kg CO2e/ha",n2o_indirect:"kg CO2e/ha",n2o_urine:"kg CO2e/ha",ch4_animal:"kg CO2e/ha",total:"kg CO2e/ha"}),n.push({year:e.years[0]-1,crop:"",rain:"",yields:"",biomass:"",nitrogen:"",urine:"",oc:t,co2:"",n2o_fert:"",n2o_min:"",n2o_res:"",n2o_indirect:"",n2o_urine:"",ch4_animal:"",total:""});for(let i=0;i{await t.getParameters()});const n=[{id:0,type:"clay",name:"clay"},{id:1,type:"silt",name:"silt clay"},{id:2,type:"clay loam",name:"clay loam"},{id:3,type:"silt loam",name:"silt loam"},{id:4,type:"sandy loam",name:"sandy loam"},{id:5,type:"sand",name:"sand"},{id:6,type:"Enter Clay",name:"Enter Clay %"},{id:7,type:"Enter CEC",name:"Enter CEC"}],r=[{id:0,name:"Wheat",short_name:"Wh"},{id:1,name:"Barley",short_name:"Ba"},{id:2,name:"Oats",short_name:"Oa"},{id:3,name:"Canola",short_name:"Ca"},{id:4,name:"Grain Legume",short_name:"GL"},{id:5,name:"Improved Pasture",short_name:"IP"},{id:6,name:"Fallow",short_name:"Fa"},{id:7,name:"Grass Pasture",short_name:"GP"}],i=[{id:"null",name:"None"},{id:0,name:"Light"},{id:1,name:"Heavy"}],s=[{id:"null",name:"None"},{id:0,name:"Burnt or Removed"},{id:1,name:"Retained"}],o=async()=>{if(t.errors=[],c(),d(),t.errors.length===0)try{const x=await GZ({socrates:ut(t.socrates),parameters:ut(t.parameters)});t.results=x.run,y("resultsOfInputPage")}catch(x){t.errors.push(x.message),console.error(x)}},a=async()=>{t.errors=[];try{t.socrates=await JZ(),h()}catch(x){t.errors.push(x.message),console.error(x)}t.showLoadDialog=!1},u=x=>{t.selectedFile=x.target.files[0];const S=new FileReader;S.onload=M=>{try{const P=JSON.parse(M.target.result);P&&(P.version?(t.socrates=P,h()):(t.socratesOld=P,g()))}catch{t.errors.push("Invalid JSON file.")}},S.readAsText(t.selectedFile),t.showLoadDialog=!1};function c(){try{if(t.socrates.version=t.version,t.socrates.soil.soil_properties=parseInt(t.soilProperties),(!t.socrates.soil.soil_properties&&t.socrates.soil.soil_properties!==0||t.socrates.soil.soil_properties<0&&t.socrates.soil.soil_properties>7)&&t.errors.push("Select soil properties"),t.socrates.soil.clay_percentage=parseFloat(t.clay),t.socrates.soil.cec=parseFloat(t.cec),t.socrates.soil.initial_oc=parseFloat(t.initialOC),t.socrates.simulation.initial_oc===0&&t.errors.push("Insert a value for Initial OC%"),t.socrates.simulation.start_year=parseInt(t.startYear),!t.socrates.simulation.start_year&&t.socrates.simulation.start_year!==0&&t.errors.push("Simulation Start year missing"),t.socrates.simulation.period_length=parseInt(t.periodLength),(!t.socrates.simulation.period_length&&t.socrates.simulation.period_length!==0||t.socrates.simulation.period_length<=0)&&t.errors.push("Add simulation period in years"),t.socrates.simulation.rotation_length=parseInt(t.rotationLength),(!t.socrates.simulation.rotation_length&&t.socrates.simulation.rotation_length!==0||t.socrates.simulation.rotation_length<1)&&t.errors.push("Add length of rotation in years"),t.socrates.climate.climate_method_data_entry=t.climateMethodDataEntry,(!t.socrates.climate.climate_method_data_entry&&t.socrates.climate.climate_method_data_entry!==0||t.socrates.climate.climate_method_data_entry<0)&&t.errors.push("Missing: Method of entering data"),t.socrates.climate.average_annual_rainfall=parseFloat(t.averageAnnualRainFall),t.socrates.climate.annual_mean_temperature=parseFloat(t.annualMeanTemperature),t.socrates.climate.randomize_rain_and_temperature=t.randomizeRainAndTemperature,t.socrates.climate.annual_rainfall=[],A(t.annualRainfall))for(let x of t.annualRainfall)t.socrates.climate.annual_rainfall.push({rainfall:parseFloat(x==null?void 0:x.rainfall)});if(t.socrates.climate.month_rain_temp=[],A(t.monthRainTemp))for(let x of t.monthRainTemp)t.socrates.climate.month_rain_temp.push({rainfall:parseFloat(x==null?void 0:x.rainfall),temperature:parseFloat(x==null?void 0:x.temperature)});t.socrates.rotation=[];for(let x of t.rotationTable){const S={year:parseInt(x.year),plant:parseInt(x.plant),stubble:parseInt(x.stubble),graze:parseInt(x.graze),fertiliser:parseFloat(x.fertiliser)};!S.plant&&S.plant!==0||S.plant<0||S.plant>7?t.errors.push(`Missing or incorrect plant in rotation year #${S.year}`):(S.plant<5&&!S.stubble&&S.stubble!==0&&t.errors.push(`Stubble management missing in rotation year #${S.year}`),!S.fertiliser&&S.fertiliser!==0&&t.errors.push(`Fertiliser missing in rotation year #${S.year}`)),t.socrates.rotation.push(S)}if(t.socrates.rotation<1&&t.errors.push("Add rotation crop"),t.socrates.yields.yields_method_data_entry=t.yieldsMethodDataEntry,t.socrates.yields.annual_yields=[],A(t.annualYields)){const x=[];for(let S of t.annualYields){const M={year:S==null?void 0:S.year,rotation:S==null?void 0:S.rotation,yield:parseFloat(S.yield)};!M.yield&&M.yield!==0&&x.push(`Missing: yield in year #${M.year}`),t.socrates.yields.annual_yields.push(M)}x.length>0&&x.push("Missing: some yield values")}else t.socrates.yields.annual_yields=[]}catch(x){t.errors.push(`${x.name} ${x.message}`),console.error(x)}}function d(){for(let x of Object.keys(t.parameters))t.parameters[x]=parseFloat(t.parameters[x])}function h(){try{t.version=t.socrates.version||bd.version,t.soilProperties=t.socrates.soil.soil_properties,t.clay=t.socrates.soil.clay_percentage,t.cec=t.socrates.soil.cec,t.initialOC=t.socrates.soil.initial_oc,t.startYear=t.socrates.simulation.start_year,t.periodLength=t.socrates.simulation.period_length,t.rotationLength=t.socrates.simulation.rotation_length,t.climateMethodDataEntry=t.socrates.climate.climate_method_data_entry,t.averageAnnualRainFall=t.socrates.climate.average_annual_rainfall,t.annualMeanTemperature=t.socrates.climate.annual_mean_temperature,t.randomizeRainAndTemperature=t.socrates.climate.randomize_rain_and_temperature,t.annualRainfall=t.socrates.climate.annual_rainfall,t.monthRainTemp=t.socrates.climate.month_rain_temp,t.rotationTable=t.socrates.rotation,t.yieldsMethodDataEntry=t.socrates.yields.yields_method_data_entry,t.annualYields=t.socrates.yields.annual_yields}catch(x){t.errors.push(x.message),console.error(x)}}function g(){try{t.version=bd.version,t.soilProperties=t.socratesOld.soil.soilProperties,t.clay=t.socratesOld.soil.clayPercentage,t.cec=t.socratesOld.soil.cec||0,t.initialOC=t.socratesOld.soil.initialOC,t.startYear=t.socratesOld.simulation.startYear,t.periodLength=t.socratesOld.simulation.periodLength,t.rotationLength=t.socratesOld.simulation.rotationLength,t.climateMethodDataEntry=t.socratesOld.climate.climateMethodDataEntry,t.averageAnnualRainFall=t.socratesOld.climate.averageAnnualRainfall,t.annualMeanTemperature=t.socratesOld.climate.annualMeanTemperature,t.randomizeRainAndTemperature=t.socratesOld.climate.randomizeRainAndTemperature,t.annualRainfall=t.socratesOld.climate.annualRainFall,t.monthRainTemp=t.socratesOld.climate.monthRainTemp,t.rotationTable=t.socratesOld.rotation,t.yieldsMethodDataEntry=t.socratesOld.yields.yieldsMethodDataEntry,t.annualYields=t.socratesOld.yields.annualYields,t.socratesOld.parametersEdited&&(t.parametersEdited=!0,t.parameters=t.socratesOld.parameters)}catch(x){t.errors.push(x.message),console.error(x)}}async function m(){t.$reset(),await t.getParameters()}function b(){t.results=null}async function v(){const x=await BQ({results:t.results,initialOC:t.initialOC}),S="data.csv",M=new Blob([x],{type:"text/csv;charset=utf-8;"});if(navigator.msSaveBlob)navigator.msSaveBlob(M,S);else{const P=document.createElement("a");if(P.download!==void 0){const T=URL.createObjectURL(M);P.setAttribute("href",T),P.setAttribute("download",S),P.style.visibility="hidden",document.body.appendChild(P),P.click(),document.body.removeChild(P)}}}function _(){c();const x=ut(t.socrates),S=JSON.stringify(x,null,2),M=new Blob([S],{type:"application/json"}),P=window.URL.createObjectURL(M),T=document.createElement("a");T.style.display="none",T.href=P,T.download="socrates.json",document.body.appendChild(T),T.click(),window.URL.revokeObjectURL(P),document.body.removeChild(T)}function y(x){setTimeout(function(){const P=document.getElementById(x).getBoundingClientRect().top+window.pageYOffset+-50;window.scrollTo({top:P,behavior:"smooth"})},100)}function C(){t.displayRunInNotebook=!0;const x=JSON.stringify(t.socrates),S=JSON.stringify(t.parameters);t.jupyterSource=["!pip install requests","import os","import json","import requests","socrates_json = '''",x,"'''","socrates = json.loads(socrates_json)","parameters_json = '''",S,"'''","parameters = json.loads(parameters_json)",'api_url = "https://api.socrates-soil.net/run"',"payload = {"," 'socrates' : socrates,"," 'parameters': parameters","}","response = requests.post(api_url, json=payload)","results = response.json()","results"]}function A(x){return x==null?!1:typeof x[Symbol.iterator]=="function"}return(x,S)=>{const M=g2,P=Vr,T=os,$=QZ,z=_9,V=j2,R=V2,j=el,ue=zZ,ce=BZ,ne=FZ,Q=IZ,ie=kZ,ee=AZ,ye=EZ,Ee=HJ,ke=c9,Ze=uW;return K(),_e(it,null,[L("div",zQ,[B(P,{gutter:30},{default:D(()=>[B(T,{xl:4,lg:4,md:4,sm:4,xs:4},{default:D(()=>[B(P,{class:"pt-2 sticky top-20 justify-center"},{default:D(()=>[L("div",HQ,[L("div",WQ,[B(M,{class:"w-full",onClick:S[0]||(S[0]=le=>o()),size:"large",type:"primary"},{default:D(()=>[Z("Run")]),_:1})]),L("div",VQ,[B(M,{class:"w-full",onClick:S[1]||(S[1]=le=>O(t).showLoadDialog=!0),size:"large",type:"primary"},{default:D(()=>[Z("Load Data ")]),_:1})]),L("div",jQ,[B(M,{class:"w-full",onClick:S[2]||(S[2]=le=>m()),size:"large",type:"warning"},{default:D(()=>[Z("Clear Form")]),_:1})]),L("div",UQ,[B(M,{class:"w-full",onClick:S[3]||(S[3]=le=>b()),size:"large",type:"warning"},{default:D(()=>[Z("Clear Results")]),_:1})]),L("div",KQ,[B(M,{class:"w-full",onClick:S[4]||(S[4]=le=>_()),size:"large",type:"info"},{default:D(()=>[Z("Save Inputs")]),_:1})]),O(t).results?(K(),_e("div",qQ,[B(M,{class:"w-full",onClick:S[5]||(S[5]=le=>v()),"data-toggle":"modal",size:"large",type:"primary"},{default:D(()=>[Z("Save Results ")]),_:1})])):Fe("",!0),O(t).results?(K(),_e("div",YQ,[B(M,{class:"w-full",onClick:S[6]||(S[6]=le=>C()),size:"large",type:"primary"},{default:D(()=>[Z("Run in notebook ")]),_:1})])):Fe("",!0)])]),_:1})]),_:1}),B(T,{xl:20,lg:20,md:20,sm:20,xs:20},{default:D(()=>[B(P,{class:"min-w-[500px] pr-5"},{default:D(()=>[B(T,{xl:24,lg:24,md:24,sm:24,xs:24},{default:D(()=>[GQ]),_:1}),O(t).errors.length>0?(K(),Ie(T,{key:0,xl:24,lg:24,md:24,sm:24,xs:24,class:"py-10"},{default:D(()=>[B(P,{class:""},{default:D(()=>[L("div",XQ,[JQ,(K(!0),_e(it,null,On(O(t).errors,le=>(K(),_e("p",ZQ,bt(le),1))),256))])]),_:1})]),_:1})):Fe("",!0),B(T,{xl:24,lg:24,md:24,sm:24,xs:24},{default:D(()=>[B(M,{onClick:S[7]||(S[7]=le=>O(t).showParameters=!O(t).showParameters)},{default:D(()=>[Z(bt(O(t).showParameters?"Hide Parameters":"Edit Parameters"),1)]),_:1}),B(z,{modelValue:O(t).showParameters,"onUpdate:modelValue":S[10]||(S[10]=le=>O(t).showParameters=le),title:"Climate","with-header":!1,direction:"ltr",class:"min-w-fit"},{footer:D(()=>[L("div",eee,[B(M,{onClick:S[8]||(S[8]=le=>O(t).resetParameters())},{default:D(()=>[Z("Reset Parameters")]),_:1}),B(M,{type:"primary",onClick:S[9]||(S[9]=le=>O(t).showParameters=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[B($),QQ]),_:1},8,["modelValue"]),tee,B(P,null,{default:D(()=>[B(T,{class:"py-1"},{default:D(()=>[L("div",nee,[ree,B(R,{modelValue:O(t).soilProperties,"onUpdate:modelValue":S[11]||(S[11]=le=>O(t).soilProperties=le),class:"m-2",placeholder:"Select"},{default:D(()=>[(K(),_e(it,null,On(n,le=>B(V,{key:le.id,label:le.type,value:le.id},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),B(T,{class:"py-1",xl:8,lg:8,md:8,sm:24,xs:24},{default:D(()=>[L("div",iee,[B(j,{modelValue:O(t).clay,"onUpdate:modelValue":S[12]||(S[12]=le=>O(t).clay=le),placeholder:"Clay %",disabled:O(t).soilProperties!==6},{prepend:D(()=>[Z("Clay %")]),_:1},8,["modelValue","disabled"])])]),_:1}),B(T,{class:"py-1",xl:8,lg:8,md:8,sm:24,xs:24},{default:D(()=>[L("div",see,[B(j,{modelValue:O(t).cec,"onUpdate:modelValue":S[13]||(S[13]=le=>O(t).cec=le),placeholder:"CEC",disabled:O(t).soilProperties!==7},{prepend:D(()=>[Z("CEC")]),_:1},8,["modelValue","disabled"])])]),_:1}),B(T,{class:"py-1",xl:8,lg:8,md:8,sm:24,xs:24},{default:D(()=>[L("div",oee,[B(j,{modelValue:O(t).initialOC,"onUpdate:modelValue":S[14]||(S[14]=le=>O(t).initialOC=le),placeholder:"OC"},{prepend:D(()=>[Z("Initial OC %")]),_:1},8,["modelValue"])])]),_:1})]),_:1}),aee,B(P,null,{default:D(()=>[B(T,{class:"py-1",xl:8,lg:8,md:8,sm:24,xs:24},{default:D(()=>[L("div",lee,[B(j,{modelValue:O(t).startYear,"onUpdate:modelValue":S[15]||(S[15]=le=>O(t).startYear=le),placeholder:"(eg. 1990)"},{prepend:D(()=>[Z("Start year")]),_:1},8,["modelValue"])])]),_:1}),B(T,{class:"py-1",xl:8,lg:8,md:8,sm:24,xs:24},{default:D(()=>[L("div",uee,[B(j,{modelValue:O(t).periodLength,"onUpdate:modelValue":S[16]||(S[16]=le=>O(t).periodLength=le),placeholder:"Period"},{prepend:D(()=>[Z("Simulation period in years")]),_:1},8,["modelValue"])])]),_:1}),B(T,{class:"py-1",xl:8,lg:8,md:8,sm:24,xs:24},{default:D(()=>[L("div",cee,[B(j,{modelValue:O(t).rotationLength,"onUpdate:modelValue":S[17]||(S[17]=le=>O(t).rotationLength=le),placeholder:"(eg. Peas - Wheat would be 2)",onChange:O(t).updateRotationLength},{prepend:D(()=>[Z("Length of rotation in years")]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),L("div",null,[fee,B(P,null,{default:D(()=>[B(T,{class:"py-1"},{default:D(()=>[B(P,null,{default:D(()=>[B(T,{xl:4,lg:4,md:4,sm:24,xs:24},{default:D(()=>[dee]),_:1}),B(T,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[L("div",null,[B(R,{modelValue:O(t).climateMethodDataEntry,"onUpdate:modelValue":S[18]||(S[18]=le=>O(t).climateMethodDataEntry=le),class:"w-full",placeholder:"Select"},{default:D(()=>[B(V,{label:"Enter yearly rainfall & mean temperature",value:0}),B(V,{label:"Enter average rainfall & mean temperature",value:1}),B(V,{label:"Enter monthly rainfall & mean temperature",value:4})]),_:1},8,["modelValue"]),O(t).climateMethodDataEntry===4?(K(),Ie(M,{key:0,onClick:S[19]||(S[19]=le=>O(t).toggleMonthlyClimate=!O(t).toggleMonthlyClimate)},{default:D(()=>[Z(bt(O(t).toggleMonthlyClimate?"Hide Monthly Rain/Temperature":"Show Monthly Rain/Temperature"),1)]),_:1})):Fe("",!0),O(t).climateMethodDataEntry===0?(K(),Ie(M,{key:1,class:"my-2",onClick:S[20]||(S[20]=le=>O(t).toggleYearlyClimate=!O(t).toggleYearlyClimate)},{default:D(()=>[Z(bt(O(t).toggleYearlyClimate?"Hide Yearly Rain":"Show Yearly Rain"),1)]),_:1})):Fe("",!0)])]),_:1})]),_:1})]),_:1}),B(T,{class:"py-1"},{default:D(()=>[hee]),_:1}),B(T,{class:"py-1",xl:24,lg:24,md:24,sm:24,xs:24},{default:D(()=>[O(t).climateMethodDataEntry===4?(K(),Ie(z,{key:0,title:"Climate",modelValue:O(t).toggleMonthlyClimate,"onUpdate:modelValue":S[22]||(S[22]=le=>O(t).toggleMonthlyClimate=le),"with-header":!1,direction:"rtl",class:"min-w-fit"},{footer:D(()=>[L("div",pee,[B(M,{type:"primary",onClick:S[21]||(S[21]=le=>O(t).toggleMonthlyClimate=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[B(ue,{monthRainTemp:O(t).monthRainTemp,periodLength:O(t).periodLength,startYear:O(t).startYear,onUpdateMonthRainTemps:O(t).updateMonthRainTemps},null,8,["monthRainTemp","periodLength","startYear","onUpdateMonthRainTemps"])]),_:1},8,["modelValue"])):Fe("",!0),O(t).climateMethodDataEntry===0?(K(),Ie(z,{key:1,title:"Climate",modelValue:O(t).toggleYearlyClimate,"onUpdate:modelValue":S[24]||(S[24]=le=>O(t).toggleYearlyClimate=le),direction:"rtl","with-header":!1,class:"min-w-fit"},{footer:D(()=>[L("div",gee,[B(M,{type:"primary",onClick:S[23]||(S[23]=le=>O(t).toggleYearlyClimate=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[B(ce,{annualRainfall:O(t).annualRainfall,periodLength:O(t).periodLength,startYear:O(t).startYear,onUpdateAnnualRainfall:O(t).updateRainfall},null,8,["annualRainfall","periodLength","startYear","onUpdateAnnualRainfall"])]),_:1},8,["modelValue"])):Fe("",!0)]),_:1}),B(T,{class:"py-1",xl:12,lg:12,md:12,sm:24,xs:24},{default:D(()=>[L("div",mee,[B(j,{modelValue:O(t).averageAnnualRainFall,"onUpdate:modelValue":S[25]||(S[25]=le=>O(t).averageAnnualRainFall=le),placeholder:"Rain",disabled:O(t).climateMethodDataEntry===4||O(t).climateMethodDataEntry===0},{prepend:D(()=>[Z("Average annual rainfall (mm)")]),_:1},8,["modelValue","disabled"])])]),_:1}),B(T,{class:"py-1",xl:12,lg:12,md:12,sm:24,xs:24},{default:D(()=>[L("div",vee,[B(j,{modelValue:O(t).annualMeanTemperature,"onUpdate:modelValue":S[26]||(S[26]=le=>O(t).annualMeanTemperature=le),placeholder:"Temperature",disabled:O(t).climateMethodDataEntry===4},{prepend:D(()=>[Z("Annual mean temperature (℃)")]),_:1},8,["modelValue","disabled"])])]),_:1}),B(T,{class:"py-1"},{default:D(()=>[L("div",null,[bee,B(R,{modelValue:O(t).randomizeRainAndTemperature,"onUpdate:modelValue":S[27]||(S[27]=le=>O(t).randomizeRainAndTemperature=le),class:"m-2",placeholder:"Select"},{default:D(()=>[B(V,{label:"No",value:0}),B(V,{label:"Yes",value:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),L("div",null,[yee,O(t).rotationTableMessage?(K(),Ie(P,{key:0,span:24},{default:D(()=>[Z(bt(O(t).rotationTableMessage),1)]),_:1})):Fe("",!0),B(P,{class:"border-solid border-1 border-b-0 border-gray-200"},{default:D(()=>[B(T,{span:1,class:"p-2 text-center"},{default:D(()=>[Z("Year")]),_:1}),B(T,{span:5,class:"p-2 text-center"},{default:D(()=>[Z("Plant")]),_:1}),B(T,{span:5,class:"p-2 text-center"},{default:D(()=>[Z("Stubble")]),_:1}),B(T,{span:5,class:"p-2 text-center"},{default:D(()=>[Z("Graze")]),_:1}),B(T,{span:5,class:"p-2 text-center"},{default:D(()=>[Z("Fertiliser")]),_:1}),B(T,{span:3})]),_:1}),(K(!0),_e(it,null,On(O(t).rotationTable,(le,Ye)=>(K(),Ie(P,{key:Ye,class:"border-solid border-1 border-gray-200"},{default:D(()=>[B(T,{span:2,class:"p-2"},{default:D(()=>[B(j,{modelValue:le.year,"onUpdate:modelValue":Ne=>le.year=Ne},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),B(T,{span:5,class:"p-2"},{default:D(()=>[B(R,{modelValue:le.plant,"onUpdate:modelValue":Ne=>le.plant=Ne},{default:D(()=>[(K(),_e(it,null,On(r,Ne=>B(V,{key:Ne.id,label:Ne.name,value:Ne.id},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),B(T,{span:5,class:"p-2"},{default:D(()=>[B(ne,{modelValue:le.stubble,year:le.year,name:"stubble",posibleValues:s,"onUpdate:modelValue":Ne=>{le.stubble=Ne},nullify:le.plant===5||le.plant===6||le.plant===7},null,8,["modelValue","year","onUpdate:modelValue","nullify"])]),_:2},1024),B(T,{span:5,class:"p-2"},{default:D(()=>[B(ne,{modelValue:le.graze,year:le.year,name:"graze",posibleValues:i,"onUpdate:modelValue":Ne=>{le.graze=Ne},nullify:le.plant===6||le.stubble===0},null,8,["modelValue","year","onUpdate:modelValue","nullify"])]),_:2},1024),B(T,{span:5,class:"p-2"},{default:D(()=>[B(j,{modelValue:le.fertiliser,"onUpdate:modelValue":Ne=>le.fertiliser=Ne},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),B(T,{span:2,class:"p-2"},{default:D(()=>[Ye===O(t).rotationLength-1?(K(),Ie(M,{key:0,link:"",type:"primary",size:"small",class:"w-full",onClick:xr(Ne=>O(t).deleteRotation(Ye),["prevent"])},{default:D(()=>[Z(" Remove ")]),_:2},1032,["onClick"])):Fe("",!0)]),_:2},1024)]),_:2},1024))),128)),B(P,null,{default:D(()=>[B(M,{class:"mt-4 w-full",onClick:O(t).addRotation},{default:D(()=>[Z("Add Rotation")]),_:1},8,["onClick"])]),_:1}),_ee]),L("div",null,[wee,B(P,null,{default:D(()=>[B(T,{class:"py-1"},{default:D(()=>[B(P,null,{default:D(()=>[B(T,{xl:4,lg:4,md:4,sm:24,xs:24},{default:D(()=>[xee]),_:1}),B(T,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[L("div",null,[B(R,{modelValue:O(t).yieldsMethodDataEntry,"onUpdate:modelValue":S[28]||(S[28]=le=>O(t).yieldsMethodDataEntry=le),class:"w-full",placeholder:"Select",onChange:O(t).selectYield},{default:D(()=>[B(V,{label:"Enter annual yields manually",value:0}),B(V,{label:"The model will calculate annual yields",value:1})]),_:1},8,["modelValue","onChange"]),O(t).yieldsMethodDataEntry===0?(K(),Ie(M,{key:0,class:"my-2",onClick:S[29]||(S[29]=le=>O(t).toggleAnnualYields=!O(t).toggleAnnualYields)},{default:D(()=>[Z(bt(O(t).toggleAnnualYields?"Hide Annual Yields":"Show Annual Yields"),1)]),_:1})):Fe("",!0)])]),_:1})]),_:1})]),_:1})]),_:1}),B(z,{title:"Annual Yields",modelValue:O(t).toggleAnnualYields,"onUpdate:modelValue":S[31]||(S[31]=le=>O(t).toggleAnnualYields=le),direction:"rtl","with-header":!1,class:"min-w-fit"},{footer:D(()=>[L("div",Cee,[B(M,{type:"primary",onClick:S[30]||(S[30]=le=>O(t).toggleAnnualYields=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[B(Q,{annualYields:O(t).annualYields,startYear:O(t).startYear,periodLength:O(t).periodLength,rotationLenght:O(t).rotationTable.length,rotationTable:O(t).rotationTable,plants:r,onUpdateYields:O(t).updateYields},null,8,["annualYields","startYear","periodLength","rotationLenght","rotationTable","onUpdateYields"])]),_:1},8,["modelValue"])]),O(t).errors.length>0?(K(),Ie(T,{key:0,span:24,xl:20,lg:20,md:24,sm:24,xs:24,class:"py-10"},{default:D(()=>[B(P,{span:24,class:"flex flex-col justify-center items-center"},{default:D(()=>[L("div",See,[Oee,(K(!0),_e(it,null,On(O(t).errors,le=>(K(),_e("p",Eee,bt(le),1))),256))])]),_:1})]),_:1})):Fe("",!0)]),_:1})]),_:1}),O(t).results?(K(),Ie(P,{key:0,class:"min-w-[500px] pr-5",id:"resultsOfInputPage"},{default:D(()=>[O(t).parametersEdited?(K(),Ie(T,{key:0,xl:24,lg:24,md:24,sm:24,xs:24},{default:D(()=>[B(P,{class:"pt-4"}),B(P,null,{default:D(()=>[L("div",Mee,[L("div",Tee,[Aee,L("div",null,[Pee,L("p",Ree,[Z("Results will be affected and the model might return an error. To restore or modify them "),L("a",{class:"cursor-pointer font-bold underline",onClick:S[32]||(S[32]=le=>O(t).showParameters=!0)},"click here"),Z(" and re run the model.")])])])])]),_:1})]),_:1})):Fe("",!0),B(T,{xl:24,lg:24,md:24,sm:24,xs:24},{default:D(()=>[B(P,null,{default:D(()=>[kee]),_:1}),B(P,{span:24,class:"max-h-[600px] overflow-auto"},{default:D(()=>[B(ie,{label:"Organic Carbon (0-10cm)","x-axis":O(t).results.years,data:O(t).results.organic_carbon.data_points},null,8,["label","x-axis","data"])]),_:1})]),_:1}),B(T,{xl:24,lg:24,md:24,sm:24,xs:24},{default:D(()=>[B(ee,{results:O(t).results},null,8,["results"])]),_:1}),B(T,{xl:24,lg:24,md:24,sm:24,xs:24},{default:D(()=>[B(ye,{results:O(t).results,"initial-o-c":O(t).initialOC},null,8,["results","initial-o-c"])]),_:1}),B(T,{xl:24,lg:24,md:24,sm:24,xs:24,class:"flex items-center justify-center"},{default:D(()=>[Lee]),_:1}),B(T,{xl:24,lg:24,md:24,sm:24,xs:24,class:"w-full"},{default:D(()=>[L("div",Iee,[B(Ee,{data:O(t).results},null,8,["data"])])]),_:1}),B(T,{xl:24,lg:24,md:24,sm:24,xs:24,class:"py-10"},{default:D(()=>[L("div",null,[B(M,{onClick:S[33]||(S[33]=le=>y("topOfInputPage")),size:"large",type:"info"},{default:D(()=>[Z("Scroll to Top")]),_:1})])]),_:1})]),_:1})):Fe("",!0)]),_:1})]),_:1})]),B(ke,{modelValue:O(t).displayRunInNotebook,"onUpdate:modelValue":S[35]||(S[35]=le=>O(t).displayRunInNotebook=le),title:"## Copy and Paste the following code in a jupyter notebook ##"},{footer:D(()=>[L("div",Nee,[B(M,{type:"primary",onClick:S[34]||(S[34]=le=>O(t).displayRunInNotebook=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[L("div",$ee,[L("code",null,[L("ul",Fee,[(K(!0),_e(it,null,On(O(t).jupyterSource,le=>(K(),_e("li",Dee,bt(le),1))),256))])])])]),_:1},8,["modelValue"]),B(ke,{modelValue:O(t).showLoadDialog,"onUpdate:modelValue":S[39]||(S[39]=le=>O(t).showLoadDialog=le),title:"Load Data"},{default:D(()=>[B(Ze,null,{default:D(()=>[L("input",{type:"file",onChange:S[36]||(S[36]=le=>u(le)),onClick:S[37]||(S[37]=le=>le.target.value=""),accept:"application/json"},null,32)]),_:1}),Bee,zee,Hee,Wee,L("div",null,[B(M,{onClick:S[38]||(S[38]=le=>a()),size:"large",type:"primary"},{default:D(()=>[Z("Load Example Data")]),_:1})])]),_:1},8,["modelValue"])],64)}}},Gp=""+new URL("../images/edit_help.png",import.meta.url).href,jee={},Uee={class:"mx-4"},Kee=L("h2",{class:"center",style:{"word-break":"break-all"}},"S.O.C.R.A.T.E.S. Help",-1),qee=L("div",{class:"col-md-1"},null,-1),Yee=L("div",{class:"col-md-10"},[L("div",{class:"basic-form"},[L("h2",null,"INPUTS"),L("h3",null,"Soil"),L("div",{class:"border-noshadow"},[L("h4",null,"Soil content"),L("p",null,"SOCRATES needs the Cation Exchange Capacity (CEC) of the soil. If CEC is not available then estimates are made from the clay % or the soil type. If you have the CEC value use this, otherwise Clay% or lastly soil type."),L("h4",null,"Clay %"),L("p",null,[Z("Enter the % of "),L("strong",null,"clay"),Z(" in the soil as indicated on a soil test.")]),L("h4",null,"CEC"),L("p",null,[Z("Enter the "),L("strong",null,"CEC"),Z(" (Cation Exchange Capacity) in mmol/kg as indicated on a soil test.")]),L("h4",null,"Initial OC %"),L("p",null,[Z("Enter the "),L("strong",null,"OC"),Z(" (Organic Carbon percentage) (0-10 cm) as indicated on a soil test. As soils can vary quite widely due to past management, a starting value is important to obtain.")])]),L("h3",null,"Simulation"),L("div",{class:"border-noshadow"},[L("h4",null,"Start year (eg. 1990)"),L("p",null,[Z("This is needed for the graphs and when stored weather data is used (See "),L("strong",null,"Simulation period in years"),Z(").")]),L("h4",null,"Simulation period in years"),L("p",null,"This is the length of time the simulation will run. As changes are usually very slow, a period of ten years is a good starting point."),L("h4",null,"Length of rotation in years (eg. Peas - Wheat would be 2)"),L("p",null,"The length of rotation or cropping/pasture sequence can be short (ie. 2) or very long if a non-repeating sequence is used. For example, if the simulation runs for tens years then a rotation can also be ten years. Other examples include;"),L("ul",null,[L("li",null,"Fallow - Wheat 2 years"),L("li",null,"Fallow - Wheat - Pasture 3 years"),L("li",null,"Wheat - Wheat - Pasture - Pasture 4 years")])]),L("h3",null,"Climate"),L("div",{class:"border-noshadow"},[L("h4",null,"Method of entering data"),L("p",null,"SOCRATES offers the user the option to enter their own weather data in various ways."),L("ul",null,[L("li",null,[Z("Enter yearly rainfall & mean temperature (Select and click "),L("img",{src:Gp,height:"20px"}),Z(" to edit) ")]),L("li",null,[Z("Enter average rainfall & mean temperature (Select and click "),L("img",{src:Gp,height:"20px"}),Z(" to edit) ")]),L("li",null,[Z("Enter monthly rainfall & mean temperature (Select and click "),L("img",{src:Gp,height:"20px"}),Z(" to edit) ")])]),L("h4",null,"Randomise annual rainfall and temperature"),L("p",null,"This option is only available when average rainfall is selected. This allows the model to generate variations in rainfall from year to year (+-30%) rather than the rainfall value being the same for each year.")]),L("h3",null,"Rotation"),L("div",{class:"border-noshadow"},[L("p",null,"The amount of organic carbon added or lost from the soil varies between crops, pasture and fallow. It is also influenced by management factors such as burning of stubbles, hay or stubble removal, grazing and nitrogen application."),L("p",null,[Z("Information is entered for each of the rotations (There is a maximum length of "),L("strong",null,"20"),Z(" different crops or phases in one rotation sequence). The number of years is determined by the entry in the "),L("strong",null,"Length of rotation in years"),Z(" (Simulation section) box. For example, a Fallow - Wheat - Pasture rotation would have three years displayed with information required on the management of each phase of the rotation.")]),L("p",null,"Options: For each phase of the rotation a crop, pasture or fallow option needs to be selected."),L("table",{class:"table table-fluid table-bordered"},[L("tr",null,[L("th",null,"Year"),L("th",null,"Stubble management"),L("th",null,"Grazed"),L("th",null,"Fertiliser N")]),L("tr",null,[L("td",null,"1...20"),L("td",null,"Enter whether the stubble is removed or burnt. Removal may be as hay, stubble harvesting or burning. "),L("td",null,"Grazing is another form of removal. The intensity of grazing determines the amount removed."),L("td",null,"Enter the amount of nitrogen in kg/ha that is applied to the paddock.")])])]),L("h3",null,"Yields"),L("div",{class:"border-noshadow"},[L("h4",null,"Method of entering yields"),L("p",null,"SOCRATES requires dry matter production (kg/ha) for pastures and crop yield (kg/ha) for crops."),L("h4",null,"Enter annual yields manually"),L("p",null,[Z("Enter seasonal grain yields (kg/ha) for crops and dry matter production (kg/ha) for pasture. You can use your own records or hypothetical values. "),L("br"),Z("The yield is entered opposite the corresponding year. The total dry matter production (including roots) will be estimated from these figures. ")]),L("h4",null,"Model will calculate annual yields"),L("p",null,"When yields are not available, SOCRATES estimates them based on annual rainfall and derivations of growing season rainfall and stored water combined with water use efficiency. We assume that during as average season crops and pastures will have available (before evaporation) approximately 70% of the growing season rainfall.")])]),L("div",{class:"basic-form"},[L("h2",null,"RESULTS"),L("h3",null,"Organic carbon (%)"),L("div",{class:"border-noshadow"},[L("p",null,"This graph reports the change in soil organic carbon (0-10 cm) based on the rotation, management, sol type and location.")]),L("h3",null,"Yield"),L("div",{class:"border-noshadow"},[L("p",null,"The grain and pasture yields (kg/ha) each year")]),L("h3",null,"Table of management"),L("div",{class:"border-noshadow"},[L("p",null,"this provides a summary of the crop/pasture and management imposed every year")]),L("h3",null,"Simulation Results"),L("div",{class:"border-noshadow"},[L("p",null,"An annualised output table is provided including:"),L("ul",null,[L("li",null,"Crop - Crop of Pasture Type."),L("li",null,"Rain - Annual rainfall (mm)."),L("li",null,"Yield - Grain or Pasture production (kg/ha)."),L("li",null,"Biomass - the amount of carbon left after removing grain and after grazing (if any), including roots. "),L("li",null,"Fert - the amount of nitrogen fertiliser applied (kg N/ha)."),L("li",null,"Urine - the amount of urine (as N) produced by the animals that graze the crop residue or pasture. "),L("li",null,"OC (0-10 cm) - the change in soil organic carbon (%) over time in response to agricultural management (e.g. biomass, grazing, rotation). ")]),L("p",null,[Z("The following are all expressed as CO"),L("sub",null,"2"),Z(" equivalents (kg/ha) using GWPs from the IPCC Fifth Assessment Report, N"),L("sub",null,"2"),Z("O = 265, CH"),L("sub",null,"4"),Z(" = 28")]),L("ul",null,[L("li",null,[Z("N"),L("sub",null,"2"),Z("O (fertiliser) - N"),L("sub",null,"2"),Z("O produced from the application of nitrogen fertiliser - current 1% of nitrogen applied (kg N/ha). ")]),L("li",null,[Z("N"),L("sub",null,"2"),Z("O mineralised - the amount of N"),L("sub",null,"2"),Z("O produced from the nitrogen mineralised from soil organic matter. ")]),L("li",null,[Z("N"),L("sub",null,"2"),Z("O residues - the amount of N"),L("sub",null,"2"),Z("O produced as result of the decomposition of crop and root residues. ")]),L("li",null,[Z("N"),L("sub",null,"2"),Z("O (indirect) - N"),L("sub",null,"2"),Z("O produced from volatilisation of nitrogen applied as fertiliser and urine. ")]),L("li",null,[Z("N"),L("sub",null,"2"),Z("O (urine) - N"),L("sub",null,"2"),Z("O from urine from animals currently 1% of total nitrogen in urine. This does not currently include N"),L("sub",null,"2"),Z("O from dung from animals. ")]),L("li",null,[Z("CH"),L("sub",null,"4"),Z(" (animals) - methane produced from animals. ")]),L("li",null,[Z("Total - total greenhouse gas emissions"),L("br"),Z(" As each year is calculated, the cumulative emissions (i.e. adding successive years) are displayed. ")])])])])],-1);function Gee(e,t){const n=os,r=Vr;return K(),_e("div",Uee,[B(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[B(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[Kee]),_:1}),B(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[qee,Yee]),_:1})]),_:1})])}const Xee=ju(jee,[["render",Gee]]),Jee={},Zee={class:"mx-4"},Qee=L("h2",{class:"center",style:{"word-break":"break-all"}},"Contact",-1),ete=L("div",{class:"col-md-1"},null,-1),tte=L("div",{class:"col-md-10"},[L("div",{class:"basic-form"},[L("h2",{class:"text-2xl"},[Z("For further information on S.O.C.R.A.T.E.S. "),L("br"),L("br"),Z(" Please contact the project coordinator Professor Peter Grace ")]),L("p",null," Level 7, P Block "),L("p",null," Queensland University of Technology"),L("p",null," Gardens Point Campus"),L("p",null," GPO Box 2434"),L("p",null," BRISBANE QLD 4001"),L("p",null," Phone: (07) 3138 1904"),L("p",null," Fax: (07) 3138 4438"),L("p",null,[Z(" Email: "),L("a",{href:"mailto:ife@qut.edu.au"},"pr.grace@qut.edu.au")])])],-1);function nte(e,t){const n=os,r=Vr;return K(),_e("div",Zee,[B(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[B(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[Qee]),_:1}),B(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[ete,tte]),_:1})]),_:1})])}const rte=ju(Jee,[["render",nte]]),ite=vK({history:I7(),routes:[{path:"/",name:"home",component:PK},{path:"/input",name:"input",component:Vee},{path:"/help",name:"help",component:Xee},{path:"/contact",name:"contact",component:rte},{path:"/about",name:"about",component:pO}]});const Kv=AF(_K),ste=WZ();Kv.use(ite);Kv.use(ste);Kv.mount("#app"); diff --git a/assets/index-d8799daf.css b/assets/index-d8799daf.css new file mode 100644 index 0000000..f5de654 --- /dev/null +++ b/assets/index-d8799daf.css @@ -0,0 +1 @@ +@charset "UTF-8";:root{--ep-color-primary-rgb: 0, 128, 0;--ep-color-success-rgb: 33, 186, 69;--ep-color-warning-rgb: 242, 113, 28;--ep-color-danger-rgb: 219, 40, 40;--ep-color-error-rgb: 219, 40, 40;--ep-color-info-rgb: 37, 82, 180;--ep-font-size-extra-large: 20px;--ep-font-size-large: 18px;--ep-font-size-medium: 16px;--ep-font-size-base: 14px;--ep-font-size-small: 13px;--ep-font-size-extra-small: 12px;--ep-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;--ep-font-weight-primary: 500;--ep-font-line-height-primary: 24px;--ep-index-normal: 1;--ep-index-top: 1000;--ep-index-popper: 2000;--ep-border-radius-base: 4px;--ep-border-radius-small: 2px;--ep-border-radius-round: 20px;--ep-border-radius-circle: 100%;--ep-transition-duration: .3s;--ep-transition-duration-fast: .2s;--ep-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);--ep-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);--ep-transition-all: all var(--ep-transition-duration) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-fade: opacity var(--ep-transition-duration) var(--ep-transition-function-fast-bezier);--ep-transition-md-fade: transform var(--ep-transition-duration) var(--ep-transition-function-fast-bezier), opacity var(--ep-transition-duration) var(--ep-transition-function-fast-bezier);--ep-transition-fade-linear: opacity var(--ep-transition-duration-fast) linear;--ep-transition-border: border-color var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-box-shadow: box-shadow var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-color: color var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-component-size-large: 40px;--ep-component-size: 32px;--ep-component-size-small: 24px;color-scheme:light;--ep-color-white: #ffffff;--ep-color-black: #000000;--ep-color-primary: green;--ep-color-primary-light-3: #4da64d;--ep-color-primary-light-5: #80c080;--ep-color-primary-light-7: #b3d9b3;--ep-color-primary-light-8: #cce6cc;--ep-color-primary-light-9: #e6f2e6;--ep-color-primary-dark-2: #006600;--ep-color-success: #21ba45;--ep-color-success-light-3: #64cf7d;--ep-color-success-light-5: #90dda2;--ep-color-success-light-7: #bceac7;--ep-color-success-light-8: #d3f1da;--ep-color-success-light-9: #e9f8ec;--ep-color-success-dark-2: #1a9537;--ep-color-warning: #f2711c;--ep-color-warning-light-3: #f69c60;--ep-color-warning-light-5: #f9b88e;--ep-color-warning-light-7: #fbd4bb;--ep-color-warning-light-8: #fce3d2;--ep-color-warning-light-9: #fef1e8;--ep-color-warning-dark-2: #c25a16;--ep-color-danger: #db2828;--ep-color-danger-light-3: #e66969;--ep-color-danger-light-5: #ed9494;--ep-color-danger-light-7: #f4bfbf;--ep-color-danger-light-8: #f8d4d4;--ep-color-danger-light-9: #fbeaea;--ep-color-danger-dark-2: #af2020;--ep-color-error: #db2828;--ep-color-error-light-3: #e66969;--ep-color-error-light-5: #ed9494;--ep-color-error-light-7: #f4bfbf;--ep-color-error-light-8: #f8d4d4;--ep-color-error-light-9: #fbeaea;--ep-color-error-dark-2: #af2020;--ep-color-info: #2552b4;--ep-color-info-light-3: #6686cb;--ep-color-info-light-5: #92a9da;--ep-color-info-light-7: #becbe9;--ep-color-info-light-8: #d3dcf0;--ep-color-info-light-9: #e9eef8;--ep-color-info-dark-2: #1e4290;--ep-bg-color: #ffffff;--ep-bg-color-page: #f2f3f5;--ep-bg-color-overlay: #ffffff;--ep-text-color-primary: #303133;--ep-text-color-regular: #606266;--ep-text-color-secondary: #909399;--ep-text-color-placeholder: #a8abb2;--ep-text-color-disabled: #c0c4cc;--ep-border-color: #dcdfe6;--ep-border-color-light: #e4e7ed;--ep-border-color-lighter: #ebeef5;--ep-border-color-extra-light: #f2f6fc;--ep-border-color-dark: #d4d7de;--ep-border-color-darker: #cdd0d6;--ep-fill-color: #f0f2f5;--ep-fill-color-light: #f5f7fa;--ep-fill-color-lighter: #fafafa;--ep-fill-color-extra-light: #fafcff;--ep-fill-color-dark: #ebedf0;--ep-fill-color-darker: #e6e8eb;--ep-fill-color-blank: #ffffff;--ep-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);--ep-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);--ep-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);--ep-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);--ep-disabled-bg-color: var(--ep-fill-color-light);--ep-disabled-text-color: var(--ep-text-color-placeholder);--ep-disabled-border-color: var(--ep-border-color-light);--ep-overlay-color: rgba(0, 0, 0, .8);--ep-overlay-color-light: rgba(0, 0, 0, .7);--ep-overlay-color-lighter: rgba(0, 0, 0, .5);--ep-mask-color: rgba(255, 255, 255, .9);--ep-mask-color-extra-light: rgba(255, 255, 255, .3);--ep-border-width: 1px;--ep-border-style: solid;--ep-border-color-hover: var(--ep-text-color-disabled);--ep-border: var(--ep-border-width) var(--ep-border-style) var(--ep-border-color);--ep-svg-monochrome-grey: var(--ep-border-color)}.ep-icon-loading{animation:rotating 2s linear infinite}.ep-icon--right{margin-left:5px}.ep-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ep-icon{--color: inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.ep-icon.is-loading{animation:rotating 2s linear infinite}.ep-icon svg{height:1em;width:1em}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--ep-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.ep-fade-in-linear-enter-active,.ep-fade-in-linear-leave-active{transition:var(--ep-transition-fade-linear)}.ep-fade-in-linear-enter-from,.ep-fade-in-linear-leave-to{opacity:0}.ep-fade-in-enter-active,.ep-fade-in-leave-active{transition:all var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}.ep-fade-in-enter-from,.ep-fade-in-leave-active{opacity:0}.ep-zoom-in-center-enter-active,.ep-zoom-in-center-leave-active{transition:all var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}.ep-zoom-in-center-enter-from,.ep-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.ep-zoom-in-top-enter-active,.ep-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--ep-transition-md-fade);transform-origin:center top}.ep-zoom-in-top-enter-active[data-popper-placement^=top],.ep-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.ep-zoom-in-top-enter-from,.ep-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.ep-zoom-in-bottom-enter-active,.ep-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--ep-transition-md-fade);transform-origin:center bottom}.ep-zoom-in-bottom-enter-from,.ep-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.ep-zoom-in-left-enter-active,.ep-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--ep-transition-md-fade);transform-origin:top left}.ep-zoom-in-left-enter-from,.ep-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--ep-transition-duration) height ease-in-out,var(--ep-transition-duration) padding-top ease-in-out,var(--ep-transition-duration) padding-bottom ease-in-out}.ep-collapse-transition-leave-active,.ep-collapse-transition-enter-active{transition:var(--ep-transition-duration) max-height ease-in-out,var(--ep-transition-duration) padding-top ease-in-out,var(--ep-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--ep-transition-duration) width ease-in-out,var(--ep-transition-duration) padding-left ease-in-out,var(--ep-transition-duration) padding-right ease-in-out}.ep-list-enter-active,.ep-list-leave-active{transition:all 1s}.ep-list-enter-from,.ep-list-leave-to{opacity:0;transform:translateY(-30px)}.ep-list-leave-active{position:absolute!important}.ep-opacity-transition{transition:opacity var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--ep-menu-active-color: var(--ep-color-primary);--ep-menu-text-color: var(--ep-text-color-primary);--ep-menu-hover-text-color: var(--ep-color-primary);--ep-menu-bg-color: var(--ep-fill-color-blank);--ep-menu-hover-bg-color: var(--ep-color-primary-light-9);--ep-menu-item-height: 56px;--ep-menu-sub-item-height: calc(var(--ep-menu-item-height) - 6px);--ep-menu-horizontal-sub-item-height: 36px;--ep-menu-item-font-size: var(--ep-font-size-base);--ep-menu-item-hover-fill: var(--ep-color-primary-light-9);--ep-menu-border-color: var(--ep-border-color);--ep-menu-base-level-padding: 20px;--ep-menu-level-padding: 20px;--ep-menu-icon-width: 24px}.ep-menu{border-right:solid 1px var(--ep-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--ep-menu-bg-color);box-sizing:border-box}.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-menu-item,.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-sub-menu__title,.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-menu-item-group__title{white-space:nowrap;padding-left:calc(var(--ep-menu-base-level-padding) + var(--ep-menu-level) * var(--ep-menu-level-padding))}.ep-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--ep-menu-border-color);border-right:none}.ep-menu--horizontal>.ep-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--ep-menu-text-color)}.ep-menu--horizontal>.ep-menu-item a,.ep-menu--horizontal>.ep-menu-item a:hover{color:inherit}.ep-menu--horizontal>.ep-menu-item:not(.is-disabled):hover,.ep-menu--horizontal>.ep-menu-item:not(.is-disabled):focus{background-color:#fff}.ep-menu--horizontal>.ep-sub-menu:focus,.ep-menu--horizontal>.ep-sub-menu:hover{outline:none}.ep-menu--horizontal>.ep-sub-menu:hover .ep-sub-menu__title{color:var(--ep-menu-hover-text-color)}.ep-menu--horizontal>.ep-sub-menu.is-active .ep-sub-menu__title{border-bottom:2px solid var(--ep-menu-active-color);color:var(--ep-menu-active-color)}.ep-menu--horizontal>.ep-sub-menu .ep-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--ep-menu-text-color)}.ep-menu--horizontal>.ep-sub-menu .ep-sub-menu__title:hover{background-color:var(--ep-bg-color-overlay)}.ep-menu--horizontal .ep-menu .ep-menu-item,.ep-menu--horizontal .ep-menu .ep-sub-menu__title{background-color:var(--ep-menu-bg-color);display:flex;align-items:center;height:var(--ep-menu-horizontal-sub-item-height);line-height:var(--ep-menu-horizontal-sub-item-height);padding:0 10px;color:var(--ep-menu-text-color)}.ep-menu--horizontal .ep-menu .ep-sub-menu__title{padding-right:40px}.ep-menu--horizontal .ep-menu .ep-menu-item.is-active,.ep-menu--horizontal .ep-menu .ep-sub-menu.is-active>.ep-sub-menu__title{color:var(--ep-menu-active-color)}.ep-menu--horizontal .ep-menu-item:not(.is-disabled):hover,.ep-menu--horizontal .ep-menu-item:not(.is-disabled):focus{outline:none;color:var(--ep-menu-hover-text-color);background-color:var(--ep-menu-hover-bg-color)}.ep-menu--horizontal>.ep-menu-item.is-active{border-bottom:2px solid var(--ep-menu-active-color);color:var(--ep-menu-active-color)!important}.ep-menu--collapse{width:calc(var(--ep-menu-icon-width) + var(--ep-menu-base-level-padding) * 2)}.ep-menu--collapse>.ep-menu-item [class^=ep-icon],.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title [class^=ep-icon],.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title [class^=ep-icon]{margin:0;vertical-align:middle;width:var(--ep-menu-icon-width);text-align:center}.ep-menu--collapse>.ep-menu-item .ep-sub-menu__icon-arrow,.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title .ep-sub-menu__icon-arrow,.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title .ep-sub-menu__icon-arrow{display:none}.ep-menu--collapse>.ep-menu-item>span,.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title>span,.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.ep-menu--collapse>.ep-menu-item.is-active i{color:inherit}.ep-menu--collapse .ep-menu .ep-sub-menu{min-width:200px}.ep-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--ep-border-radius-small);box-shadow:var(--ep-box-shadow-light)}.ep-menu .ep-icon{flex-shrink:0}.ep-menu-item{display:flex;align-items:center;height:var(--ep-menu-item-height);line-height:var(--ep-menu-item-height);font-size:var(--ep-menu-item-font-size);color:var(--ep-menu-text-color);padding:0 var(--ep-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--ep-transition-duration),background-color var(--ep-transition-duration),color var(--ep-transition-duration);box-sizing:border-box;white-space:nowrap}.ep-menu-item *{vertical-align:bottom}.ep-menu-item i{color:inherit}.ep-menu-item:hover,.ep-menu-item:focus{outline:none}.ep-menu-item:hover{background-color:var(--ep-menu-hover-bg-color)}.ep-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:none!important}.ep-menu-item [class^=ep-icon]{margin-right:5px;width:var(--ep-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.ep-menu-item.is-active{color:var(--ep-menu-active-color)}.ep-menu-item.is-active i{color:inherit}.ep-menu-item .ep-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--ep-menu-base-level-padding)}.ep-sub-menu{list-style:none;margin:0;padding-left:0}.ep-sub-menu__title{display:flex;align-items:center;height:var(--ep-menu-item-height);line-height:var(--ep-menu-item-height);font-size:var(--ep-menu-item-font-size);color:var(--ep-menu-text-color);padding:0 var(--ep-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--ep-transition-duration),background-color var(--ep-transition-duration),color var(--ep-transition-duration);box-sizing:border-box;white-space:nowrap;padding-right:calc(var(--ep-menu-base-level-padding) + var(--ep-menu-icon-width))}.ep-sub-menu__title *{vertical-align:bottom}.ep-sub-menu__title i{color:inherit}.ep-sub-menu__title:hover,.ep-sub-menu__title:focus{outline:none}.ep-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:none!important}.ep-sub-menu__title:hover{background-color:var(--ep-menu-hover-bg-color)}.ep-sub-menu .ep-menu{border:none}.ep-sub-menu .ep-menu-item{height:var(--ep-menu-sub-item-height);line-height:var(--ep-menu-sub-item-height)}.ep-sub-menu__hide-arrow .ep-sub-menu__icon-arrow{display:none!important}.ep-sub-menu.is-active .ep-sub-menu__title{border-bottom-color:var(--ep-menu-active-color)}.ep-sub-menu.is-disabled .ep-sub-menu__title,.ep-sub-menu.is-disabled .ep-menu-item{opacity:.25;cursor:not-allowed;background:none!important}.ep-sub-menu .ep-icon{vertical-align:middle;margin-right:5px;width:var(--ep-menu-icon-width);text-align:center;font-size:18px}.ep-sub-menu .ep-icon.ep-sub-menu__icon-more{margin-right:0!important}.ep-sub-menu .ep-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--ep-menu-base-level-padding);margin-top:-6px;transition:transform var(--ep-transition-duration);font-size:12px;margin-right:0;width:inherit}.ep-menu-item-group>ul{padding:0}.ep-menu-item-group__title{padding:7px 0 7px var(--ep-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--ep-text-color-secondary)}.horizontal-collapse-transition .ep-sub-menu__title .ep-sub-menu__icon-arrow{transition:var(--ep-transition-duration-fast);opacity:0}.ep-popper{--ep-popper-border-radius: var(--ep-popover-border-radius, 4px);position:absolute;border-radius:var(--ep-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.ep-popper.is-dark{color:var(--ep-bg-color);background:var(--ep-text-color-primary);border:1px solid var(--ep-text-color-primary)}.ep-popper.is-dark .ep-popper__arrow:before{border:1px solid var(--ep-text-color-primary);background:var(--ep-text-color-primary);right:0}.ep-popper.is-light{background:var(--ep-bg-color-overlay);border:1px solid var(--ep-border-color-light)}.ep-popper.is-light .ep-popper__arrow:before{border:1px solid var(--ep-border-color-light);background:var(--ep-bg-color-overlay);right:0}.ep-popper.is-pure{padding:0}.ep-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.ep-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--ep-text-color-primary);box-sizing:border-box}.ep-popper[data-popper-placement^=top]>.ep-popper__arrow{bottom:-5px}.ep-popper[data-popper-placement^=top]>.ep-popper__arrow:before{border-bottom-right-radius:2px}.ep-popper[data-popper-placement^=bottom]>.ep-popper__arrow{top:-5px}.ep-popper[data-popper-placement^=bottom]>.ep-popper__arrow:before{border-top-left-radius:2px}.ep-popper[data-popper-placement^=left]>.ep-popper__arrow{right:-5px}.ep-popper[data-popper-placement^=left]>.ep-popper__arrow:before{border-top-right-radius:2px}.ep-popper[data-popper-placement^=right]>.ep-popper__arrow{left:-5px}.ep-popper[data-popper-placement^=right]>.ep-popper__arrow:before{border-bottom-left-radius:2px}.ep-popper[data-popper-placement^=top] .ep-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.ep-popper[data-popper-placement^=bottom] .ep-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.ep-popper[data-popper-placement^=left] .ep-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.ep-popper[data-popper-placement^=right] .ep-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}#app[data-v-aa3fa0a7]{text-align:center;color:var(--ep-text-color-primary)}.main-container[data-v-aa3fa0a7]{height:calc(100vh - var(--ep-menu-item-height) - 3px)}[class*=ep-col-]{box-sizing:border-box}[class*=ep-col-].is-guttered{display:block;min-height:1px}.ep-col-0,.ep-col-0.is-guttered{display:none}.ep-col-0{max-width:0%;flex:0 0 0%}.ep-col-offset-0{margin-left:0%}.ep-col-pull-0{position:relative;right:0%}.ep-col-push-0{position:relative;left:0%}.ep-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-offset-1{margin-left:4.1666666667%}.ep-col-pull-1{position:relative;right:4.1666666667%}.ep-col-push-1{position:relative;left:4.1666666667%}.ep-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-offset-2{margin-left:8.3333333333%}.ep-col-pull-2{position:relative;right:8.3333333333%}.ep-col-push-2{position:relative;left:8.3333333333%}.ep-col-3{max-width:12.5%;flex:0 0 12.5%}.ep-col-offset-3{margin-left:12.5%}.ep-col-pull-3{position:relative;right:12.5%}.ep-col-push-3{position:relative;left:12.5%}.ep-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-offset-4{margin-left:16.6666666667%}.ep-col-pull-4{position:relative;right:16.6666666667%}.ep-col-push-4{position:relative;left:16.6666666667%}.ep-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-offset-5{margin-left:20.8333333333%}.ep-col-pull-5{position:relative;right:20.8333333333%}.ep-col-push-5{position:relative;left:20.8333333333%}.ep-col-6{max-width:25%;flex:0 0 25%}.ep-col-offset-6{margin-left:25%}.ep-col-pull-6{position:relative;right:25%}.ep-col-push-6{position:relative;left:25%}.ep-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-offset-7{margin-left:29.1666666667%}.ep-col-pull-7{position:relative;right:29.1666666667%}.ep-col-push-7{position:relative;left:29.1666666667%}.ep-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-offset-8{margin-left:33.3333333333%}.ep-col-pull-8{position:relative;right:33.3333333333%}.ep-col-push-8{position:relative;left:33.3333333333%}.ep-col-9{max-width:37.5%;flex:0 0 37.5%}.ep-col-offset-9{margin-left:37.5%}.ep-col-pull-9{position:relative;right:37.5%}.ep-col-push-9{position:relative;left:37.5%}.ep-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-offset-10{margin-left:41.6666666667%}.ep-col-pull-10{position:relative;right:41.6666666667%}.ep-col-push-10{position:relative;left:41.6666666667%}.ep-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-offset-11{margin-left:45.8333333333%}.ep-col-pull-11{position:relative;right:45.8333333333%}.ep-col-push-11{position:relative;left:45.8333333333%}.ep-col-12{max-width:50%;flex:0 0 50%}.ep-col-offset-12{margin-left:50%}.ep-col-pull-12{position:relative;right:50%}.ep-col-push-12{position:relative;left:50%}.ep-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-offset-13{margin-left:54.1666666667%}.ep-col-pull-13{position:relative;right:54.1666666667%}.ep-col-push-13{position:relative;left:54.1666666667%}.ep-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-offset-14{margin-left:58.3333333333%}.ep-col-pull-14{position:relative;right:58.3333333333%}.ep-col-push-14{position:relative;left:58.3333333333%}.ep-col-15{max-width:62.5%;flex:0 0 62.5%}.ep-col-offset-15{margin-left:62.5%}.ep-col-pull-15{position:relative;right:62.5%}.ep-col-push-15{position:relative;left:62.5%}.ep-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-offset-16{margin-left:66.6666666667%}.ep-col-pull-16{position:relative;right:66.6666666667%}.ep-col-push-16{position:relative;left:66.6666666667%}.ep-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-offset-17{margin-left:70.8333333333%}.ep-col-pull-17{position:relative;right:70.8333333333%}.ep-col-push-17{position:relative;left:70.8333333333%}.ep-col-18{max-width:75%;flex:0 0 75%}.ep-col-offset-18{margin-left:75%}.ep-col-pull-18{position:relative;right:75%}.ep-col-push-18{position:relative;left:75%}.ep-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-offset-19{margin-left:79.1666666667%}.ep-col-pull-19{position:relative;right:79.1666666667%}.ep-col-push-19{position:relative;left:79.1666666667%}.ep-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-offset-20{margin-left:83.3333333333%}.ep-col-pull-20{position:relative;right:83.3333333333%}.ep-col-push-20{position:relative;left:83.3333333333%}.ep-col-21{max-width:87.5%;flex:0 0 87.5%}.ep-col-offset-21{margin-left:87.5%}.ep-col-pull-21{position:relative;right:87.5%}.ep-col-push-21{position:relative;left:87.5%}.ep-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-offset-22{margin-left:91.6666666667%}.ep-col-pull-22{position:relative;right:91.6666666667%}.ep-col-push-22{position:relative;left:91.6666666667%}.ep-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-offset-23{margin-left:95.8333333333%}.ep-col-pull-23{position:relative;right:95.8333333333%}.ep-col-push-23{position:relative;left:95.8333333333%}.ep-col-24{max-width:100%;flex:0 0 100%}.ep-col-offset-24{margin-left:100%}.ep-col-pull-24{position:relative;right:100%}.ep-col-push-24{position:relative;left:100%}@media only screen and (max-width: 768px){.ep-col-xs-0,.ep-col-xs-0.is-guttered{display:none}.ep-col-xs-0{max-width:0%;flex:0 0 0%}.ep-col-xs-offset-0{margin-left:0%}.ep-col-xs-pull-0{position:relative;right:0%}.ep-col-xs-push-0{position:relative;left:0%}.ep-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-xs-offset-1{margin-left:4.1666666667%}.ep-col-xs-pull-1{position:relative;right:4.1666666667%}.ep-col-xs-push-1{position:relative;left:4.1666666667%}.ep-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-xs-offset-2{margin-left:8.3333333333%}.ep-col-xs-pull-2{position:relative;right:8.3333333333%}.ep-col-xs-push-2{position:relative;left:8.3333333333%}.ep-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-xs-offset-3{margin-left:12.5%}.ep-col-xs-pull-3{position:relative;right:12.5%}.ep-col-xs-push-3{position:relative;left:12.5%}.ep-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-xs-offset-4{margin-left:16.6666666667%}.ep-col-xs-pull-4{position:relative;right:16.6666666667%}.ep-col-xs-push-4{position:relative;left:16.6666666667%}.ep-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-xs-offset-5{margin-left:20.8333333333%}.ep-col-xs-pull-5{position:relative;right:20.8333333333%}.ep-col-xs-push-5{position:relative;left:20.8333333333%}.ep-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-xs-offset-6{margin-left:25%}.ep-col-xs-pull-6{position:relative;right:25%}.ep-col-xs-push-6{position:relative;left:25%}.ep-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-xs-offset-7{margin-left:29.1666666667%}.ep-col-xs-pull-7{position:relative;right:29.1666666667%}.ep-col-xs-push-7{position:relative;left:29.1666666667%}.ep-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-xs-offset-8{margin-left:33.3333333333%}.ep-col-xs-pull-8{position:relative;right:33.3333333333%}.ep-col-xs-push-8{position:relative;left:33.3333333333%}.ep-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-xs-offset-9{margin-left:37.5%}.ep-col-xs-pull-9{position:relative;right:37.5%}.ep-col-xs-push-9{position:relative;left:37.5%}.ep-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-xs-offset-10{margin-left:41.6666666667%}.ep-col-xs-pull-10{position:relative;right:41.6666666667%}.ep-col-xs-push-10{position:relative;left:41.6666666667%}.ep-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-xs-offset-11{margin-left:45.8333333333%}.ep-col-xs-pull-11{position:relative;right:45.8333333333%}.ep-col-xs-push-11{position:relative;left:45.8333333333%}.ep-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-xs-offset-12{margin-left:50%}.ep-col-xs-pull-12{position:relative;right:50%}.ep-col-xs-push-12{position:relative;left:50%}.ep-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-xs-offset-13{margin-left:54.1666666667%}.ep-col-xs-pull-13{position:relative;right:54.1666666667%}.ep-col-xs-push-13{position:relative;left:54.1666666667%}.ep-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-xs-offset-14{margin-left:58.3333333333%}.ep-col-xs-pull-14{position:relative;right:58.3333333333%}.ep-col-xs-push-14{position:relative;left:58.3333333333%}.ep-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-xs-offset-15{margin-left:62.5%}.ep-col-xs-pull-15{position:relative;right:62.5%}.ep-col-xs-push-15{position:relative;left:62.5%}.ep-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-xs-offset-16{margin-left:66.6666666667%}.ep-col-xs-pull-16{position:relative;right:66.6666666667%}.ep-col-xs-push-16{position:relative;left:66.6666666667%}.ep-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-xs-offset-17{margin-left:70.8333333333%}.ep-col-xs-pull-17{position:relative;right:70.8333333333%}.ep-col-xs-push-17{position:relative;left:70.8333333333%}.ep-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-xs-offset-18{margin-left:75%}.ep-col-xs-pull-18{position:relative;right:75%}.ep-col-xs-push-18{position:relative;left:75%}.ep-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-xs-offset-19{margin-left:79.1666666667%}.ep-col-xs-pull-19{position:relative;right:79.1666666667%}.ep-col-xs-push-19{position:relative;left:79.1666666667%}.ep-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-xs-offset-20{margin-left:83.3333333333%}.ep-col-xs-pull-20{position:relative;right:83.3333333333%}.ep-col-xs-push-20{position:relative;left:83.3333333333%}.ep-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-xs-offset-21{margin-left:87.5%}.ep-col-xs-pull-21{position:relative;right:87.5%}.ep-col-xs-push-21{position:relative;left:87.5%}.ep-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-xs-offset-22{margin-left:91.6666666667%}.ep-col-xs-pull-22{position:relative;right:91.6666666667%}.ep-col-xs-push-22{position:relative;left:91.6666666667%}.ep-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-xs-offset-23{margin-left:95.8333333333%}.ep-col-xs-pull-23{position:relative;right:95.8333333333%}.ep-col-xs-push-23{position:relative;left:95.8333333333%}.ep-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-xs-offset-24{margin-left:100%}.ep-col-xs-pull-24{position:relative;right:100%}.ep-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width: 768px){.ep-col-sm-0,.ep-col-sm-0.is-guttered{display:none}.ep-col-sm-0{max-width:0%;flex:0 0 0%}.ep-col-sm-offset-0{margin-left:0%}.ep-col-sm-pull-0{position:relative;right:0%}.ep-col-sm-push-0{position:relative;left:0%}.ep-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-sm-offset-1{margin-left:4.1666666667%}.ep-col-sm-pull-1{position:relative;right:4.1666666667%}.ep-col-sm-push-1{position:relative;left:4.1666666667%}.ep-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-sm-offset-2{margin-left:8.3333333333%}.ep-col-sm-pull-2{position:relative;right:8.3333333333%}.ep-col-sm-push-2{position:relative;left:8.3333333333%}.ep-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-sm-offset-3{margin-left:12.5%}.ep-col-sm-pull-3{position:relative;right:12.5%}.ep-col-sm-push-3{position:relative;left:12.5%}.ep-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-sm-offset-4{margin-left:16.6666666667%}.ep-col-sm-pull-4{position:relative;right:16.6666666667%}.ep-col-sm-push-4{position:relative;left:16.6666666667%}.ep-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-sm-offset-5{margin-left:20.8333333333%}.ep-col-sm-pull-5{position:relative;right:20.8333333333%}.ep-col-sm-push-5{position:relative;left:20.8333333333%}.ep-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-sm-offset-6{margin-left:25%}.ep-col-sm-pull-6{position:relative;right:25%}.ep-col-sm-push-6{position:relative;left:25%}.ep-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-sm-offset-7{margin-left:29.1666666667%}.ep-col-sm-pull-7{position:relative;right:29.1666666667%}.ep-col-sm-push-7{position:relative;left:29.1666666667%}.ep-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-sm-offset-8{margin-left:33.3333333333%}.ep-col-sm-pull-8{position:relative;right:33.3333333333%}.ep-col-sm-push-8{position:relative;left:33.3333333333%}.ep-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-sm-offset-9{margin-left:37.5%}.ep-col-sm-pull-9{position:relative;right:37.5%}.ep-col-sm-push-9{position:relative;left:37.5%}.ep-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-sm-offset-10{margin-left:41.6666666667%}.ep-col-sm-pull-10{position:relative;right:41.6666666667%}.ep-col-sm-push-10{position:relative;left:41.6666666667%}.ep-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-sm-offset-11{margin-left:45.8333333333%}.ep-col-sm-pull-11{position:relative;right:45.8333333333%}.ep-col-sm-push-11{position:relative;left:45.8333333333%}.ep-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-sm-offset-12{margin-left:50%}.ep-col-sm-pull-12{position:relative;right:50%}.ep-col-sm-push-12{position:relative;left:50%}.ep-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-sm-offset-13{margin-left:54.1666666667%}.ep-col-sm-pull-13{position:relative;right:54.1666666667%}.ep-col-sm-push-13{position:relative;left:54.1666666667%}.ep-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-sm-offset-14{margin-left:58.3333333333%}.ep-col-sm-pull-14{position:relative;right:58.3333333333%}.ep-col-sm-push-14{position:relative;left:58.3333333333%}.ep-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-sm-offset-15{margin-left:62.5%}.ep-col-sm-pull-15{position:relative;right:62.5%}.ep-col-sm-push-15{position:relative;left:62.5%}.ep-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-sm-offset-16{margin-left:66.6666666667%}.ep-col-sm-pull-16{position:relative;right:66.6666666667%}.ep-col-sm-push-16{position:relative;left:66.6666666667%}.ep-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-sm-offset-17{margin-left:70.8333333333%}.ep-col-sm-pull-17{position:relative;right:70.8333333333%}.ep-col-sm-push-17{position:relative;left:70.8333333333%}.ep-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-sm-offset-18{margin-left:75%}.ep-col-sm-pull-18{position:relative;right:75%}.ep-col-sm-push-18{position:relative;left:75%}.ep-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-sm-offset-19{margin-left:79.1666666667%}.ep-col-sm-pull-19{position:relative;right:79.1666666667%}.ep-col-sm-push-19{position:relative;left:79.1666666667%}.ep-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-sm-offset-20{margin-left:83.3333333333%}.ep-col-sm-pull-20{position:relative;right:83.3333333333%}.ep-col-sm-push-20{position:relative;left:83.3333333333%}.ep-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-sm-offset-21{margin-left:87.5%}.ep-col-sm-pull-21{position:relative;right:87.5%}.ep-col-sm-push-21{position:relative;left:87.5%}.ep-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-sm-offset-22{margin-left:91.6666666667%}.ep-col-sm-pull-22{position:relative;right:91.6666666667%}.ep-col-sm-push-22{position:relative;left:91.6666666667%}.ep-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-sm-offset-23{margin-left:95.8333333333%}.ep-col-sm-pull-23{position:relative;right:95.8333333333%}.ep-col-sm-push-23{position:relative;left:95.8333333333%}.ep-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-sm-offset-24{margin-left:100%}.ep-col-sm-pull-24{position:relative;right:100%}.ep-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width: 992px){.ep-col-md-0,.ep-col-md-0.is-guttered{display:none}.ep-col-md-0{max-width:0%;flex:0 0 0%}.ep-col-md-offset-0{margin-left:0%}.ep-col-md-pull-0{position:relative;right:0%}.ep-col-md-push-0{position:relative;left:0%}.ep-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-md-offset-1{margin-left:4.1666666667%}.ep-col-md-pull-1{position:relative;right:4.1666666667%}.ep-col-md-push-1{position:relative;left:4.1666666667%}.ep-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-md-offset-2{margin-left:8.3333333333%}.ep-col-md-pull-2{position:relative;right:8.3333333333%}.ep-col-md-push-2{position:relative;left:8.3333333333%}.ep-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-md-offset-3{margin-left:12.5%}.ep-col-md-pull-3{position:relative;right:12.5%}.ep-col-md-push-3{position:relative;left:12.5%}.ep-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-md-offset-4{margin-left:16.6666666667%}.ep-col-md-pull-4{position:relative;right:16.6666666667%}.ep-col-md-push-4{position:relative;left:16.6666666667%}.ep-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-md-offset-5{margin-left:20.8333333333%}.ep-col-md-pull-5{position:relative;right:20.8333333333%}.ep-col-md-push-5{position:relative;left:20.8333333333%}.ep-col-md-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-md-offset-6{margin-left:25%}.ep-col-md-pull-6{position:relative;right:25%}.ep-col-md-push-6{position:relative;left:25%}.ep-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-md-offset-7{margin-left:29.1666666667%}.ep-col-md-pull-7{position:relative;right:29.1666666667%}.ep-col-md-push-7{position:relative;left:29.1666666667%}.ep-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-md-offset-8{margin-left:33.3333333333%}.ep-col-md-pull-8{position:relative;right:33.3333333333%}.ep-col-md-push-8{position:relative;left:33.3333333333%}.ep-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-md-offset-9{margin-left:37.5%}.ep-col-md-pull-9{position:relative;right:37.5%}.ep-col-md-push-9{position:relative;left:37.5%}.ep-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-md-offset-10{margin-left:41.6666666667%}.ep-col-md-pull-10{position:relative;right:41.6666666667%}.ep-col-md-push-10{position:relative;left:41.6666666667%}.ep-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-md-offset-11{margin-left:45.8333333333%}.ep-col-md-pull-11{position:relative;right:45.8333333333%}.ep-col-md-push-11{position:relative;left:45.8333333333%}.ep-col-md-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-md-offset-12{margin-left:50%}.ep-col-md-pull-12{position:relative;right:50%}.ep-col-md-push-12{position:relative;left:50%}.ep-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-md-offset-13{margin-left:54.1666666667%}.ep-col-md-pull-13{position:relative;right:54.1666666667%}.ep-col-md-push-13{position:relative;left:54.1666666667%}.ep-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-md-offset-14{margin-left:58.3333333333%}.ep-col-md-pull-14{position:relative;right:58.3333333333%}.ep-col-md-push-14{position:relative;left:58.3333333333%}.ep-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-md-offset-15{margin-left:62.5%}.ep-col-md-pull-15{position:relative;right:62.5%}.ep-col-md-push-15{position:relative;left:62.5%}.ep-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-md-offset-16{margin-left:66.6666666667%}.ep-col-md-pull-16{position:relative;right:66.6666666667%}.ep-col-md-push-16{position:relative;left:66.6666666667%}.ep-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-md-offset-17{margin-left:70.8333333333%}.ep-col-md-pull-17{position:relative;right:70.8333333333%}.ep-col-md-push-17{position:relative;left:70.8333333333%}.ep-col-md-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-md-offset-18{margin-left:75%}.ep-col-md-pull-18{position:relative;right:75%}.ep-col-md-push-18{position:relative;left:75%}.ep-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-md-offset-19{margin-left:79.1666666667%}.ep-col-md-pull-19{position:relative;right:79.1666666667%}.ep-col-md-push-19{position:relative;left:79.1666666667%}.ep-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-md-offset-20{margin-left:83.3333333333%}.ep-col-md-pull-20{position:relative;right:83.3333333333%}.ep-col-md-push-20{position:relative;left:83.3333333333%}.ep-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-md-offset-21{margin-left:87.5%}.ep-col-md-pull-21{position:relative;right:87.5%}.ep-col-md-push-21{position:relative;left:87.5%}.ep-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-md-offset-22{margin-left:91.6666666667%}.ep-col-md-pull-22{position:relative;right:91.6666666667%}.ep-col-md-push-22{position:relative;left:91.6666666667%}.ep-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-md-offset-23{margin-left:95.8333333333%}.ep-col-md-pull-23{position:relative;right:95.8333333333%}.ep-col-md-push-23{position:relative;left:95.8333333333%}.ep-col-md-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-md-offset-24{margin-left:100%}.ep-col-md-pull-24{position:relative;right:100%}.ep-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width: 1200px){.ep-col-lg-0,.ep-col-lg-0.is-guttered{display:none}.ep-col-lg-0{max-width:0%;flex:0 0 0%}.ep-col-lg-offset-0{margin-left:0%}.ep-col-lg-pull-0{position:relative;right:0%}.ep-col-lg-push-0{position:relative;left:0%}.ep-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-lg-offset-1{margin-left:4.1666666667%}.ep-col-lg-pull-1{position:relative;right:4.1666666667%}.ep-col-lg-push-1{position:relative;left:4.1666666667%}.ep-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-lg-offset-2{margin-left:8.3333333333%}.ep-col-lg-pull-2{position:relative;right:8.3333333333%}.ep-col-lg-push-2{position:relative;left:8.3333333333%}.ep-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-lg-offset-3{margin-left:12.5%}.ep-col-lg-pull-3{position:relative;right:12.5%}.ep-col-lg-push-3{position:relative;left:12.5%}.ep-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-lg-offset-4{margin-left:16.6666666667%}.ep-col-lg-pull-4{position:relative;right:16.6666666667%}.ep-col-lg-push-4{position:relative;left:16.6666666667%}.ep-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-lg-offset-5{margin-left:20.8333333333%}.ep-col-lg-pull-5{position:relative;right:20.8333333333%}.ep-col-lg-push-5{position:relative;left:20.8333333333%}.ep-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-lg-offset-6{margin-left:25%}.ep-col-lg-pull-6{position:relative;right:25%}.ep-col-lg-push-6{position:relative;left:25%}.ep-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-lg-offset-7{margin-left:29.1666666667%}.ep-col-lg-pull-7{position:relative;right:29.1666666667%}.ep-col-lg-push-7{position:relative;left:29.1666666667%}.ep-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-lg-offset-8{margin-left:33.3333333333%}.ep-col-lg-pull-8{position:relative;right:33.3333333333%}.ep-col-lg-push-8{position:relative;left:33.3333333333%}.ep-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-lg-offset-9{margin-left:37.5%}.ep-col-lg-pull-9{position:relative;right:37.5%}.ep-col-lg-push-9{position:relative;left:37.5%}.ep-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-lg-offset-10{margin-left:41.6666666667%}.ep-col-lg-pull-10{position:relative;right:41.6666666667%}.ep-col-lg-push-10{position:relative;left:41.6666666667%}.ep-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-lg-offset-11{margin-left:45.8333333333%}.ep-col-lg-pull-11{position:relative;right:45.8333333333%}.ep-col-lg-push-11{position:relative;left:45.8333333333%}.ep-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-lg-offset-12{margin-left:50%}.ep-col-lg-pull-12{position:relative;right:50%}.ep-col-lg-push-12{position:relative;left:50%}.ep-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-lg-offset-13{margin-left:54.1666666667%}.ep-col-lg-pull-13{position:relative;right:54.1666666667%}.ep-col-lg-push-13{position:relative;left:54.1666666667%}.ep-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-lg-offset-14{margin-left:58.3333333333%}.ep-col-lg-pull-14{position:relative;right:58.3333333333%}.ep-col-lg-push-14{position:relative;left:58.3333333333%}.ep-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-lg-offset-15{margin-left:62.5%}.ep-col-lg-pull-15{position:relative;right:62.5%}.ep-col-lg-push-15{position:relative;left:62.5%}.ep-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-lg-offset-16{margin-left:66.6666666667%}.ep-col-lg-pull-16{position:relative;right:66.6666666667%}.ep-col-lg-push-16{position:relative;left:66.6666666667%}.ep-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-lg-offset-17{margin-left:70.8333333333%}.ep-col-lg-pull-17{position:relative;right:70.8333333333%}.ep-col-lg-push-17{position:relative;left:70.8333333333%}.ep-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-lg-offset-18{margin-left:75%}.ep-col-lg-pull-18{position:relative;right:75%}.ep-col-lg-push-18{position:relative;left:75%}.ep-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-lg-offset-19{margin-left:79.1666666667%}.ep-col-lg-pull-19{position:relative;right:79.1666666667%}.ep-col-lg-push-19{position:relative;left:79.1666666667%}.ep-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-lg-offset-20{margin-left:83.3333333333%}.ep-col-lg-pull-20{position:relative;right:83.3333333333%}.ep-col-lg-push-20{position:relative;left:83.3333333333%}.ep-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-lg-offset-21{margin-left:87.5%}.ep-col-lg-pull-21{position:relative;right:87.5%}.ep-col-lg-push-21{position:relative;left:87.5%}.ep-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-lg-offset-22{margin-left:91.6666666667%}.ep-col-lg-pull-22{position:relative;right:91.6666666667%}.ep-col-lg-push-22{position:relative;left:91.6666666667%}.ep-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-lg-offset-23{margin-left:95.8333333333%}.ep-col-lg-pull-23{position:relative;right:95.8333333333%}.ep-col-lg-push-23{position:relative;left:95.8333333333%}.ep-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-lg-offset-24{margin-left:100%}.ep-col-lg-pull-24{position:relative;right:100%}.ep-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width: 1920px){.ep-col-xl-0,.ep-col-xl-0.is-guttered{display:none}.ep-col-xl-0{max-width:0%;flex:0 0 0%}.ep-col-xl-offset-0{margin-left:0%}.ep-col-xl-pull-0{position:relative;right:0%}.ep-col-xl-push-0{position:relative;left:0%}.ep-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-xl-offset-1{margin-left:4.1666666667%}.ep-col-xl-pull-1{position:relative;right:4.1666666667%}.ep-col-xl-push-1{position:relative;left:4.1666666667%}.ep-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-xl-offset-2{margin-left:8.3333333333%}.ep-col-xl-pull-2{position:relative;right:8.3333333333%}.ep-col-xl-push-2{position:relative;left:8.3333333333%}.ep-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-xl-offset-3{margin-left:12.5%}.ep-col-xl-pull-3{position:relative;right:12.5%}.ep-col-xl-push-3{position:relative;left:12.5%}.ep-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-xl-offset-4{margin-left:16.6666666667%}.ep-col-xl-pull-4{position:relative;right:16.6666666667%}.ep-col-xl-push-4{position:relative;left:16.6666666667%}.ep-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-xl-offset-5{margin-left:20.8333333333%}.ep-col-xl-pull-5{position:relative;right:20.8333333333%}.ep-col-xl-push-5{position:relative;left:20.8333333333%}.ep-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-xl-offset-6{margin-left:25%}.ep-col-xl-pull-6{position:relative;right:25%}.ep-col-xl-push-6{position:relative;left:25%}.ep-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-xl-offset-7{margin-left:29.1666666667%}.ep-col-xl-pull-7{position:relative;right:29.1666666667%}.ep-col-xl-push-7{position:relative;left:29.1666666667%}.ep-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-xl-offset-8{margin-left:33.3333333333%}.ep-col-xl-pull-8{position:relative;right:33.3333333333%}.ep-col-xl-push-8{position:relative;left:33.3333333333%}.ep-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-xl-offset-9{margin-left:37.5%}.ep-col-xl-pull-9{position:relative;right:37.5%}.ep-col-xl-push-9{position:relative;left:37.5%}.ep-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-xl-offset-10{margin-left:41.6666666667%}.ep-col-xl-pull-10{position:relative;right:41.6666666667%}.ep-col-xl-push-10{position:relative;left:41.6666666667%}.ep-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-xl-offset-11{margin-left:45.8333333333%}.ep-col-xl-pull-11{position:relative;right:45.8333333333%}.ep-col-xl-push-11{position:relative;left:45.8333333333%}.ep-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-xl-offset-12{margin-left:50%}.ep-col-xl-pull-12{position:relative;right:50%}.ep-col-xl-push-12{position:relative;left:50%}.ep-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-xl-offset-13{margin-left:54.1666666667%}.ep-col-xl-pull-13{position:relative;right:54.1666666667%}.ep-col-xl-push-13{position:relative;left:54.1666666667%}.ep-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-xl-offset-14{margin-left:58.3333333333%}.ep-col-xl-pull-14{position:relative;right:58.3333333333%}.ep-col-xl-push-14{position:relative;left:58.3333333333%}.ep-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-xl-offset-15{margin-left:62.5%}.ep-col-xl-pull-15{position:relative;right:62.5%}.ep-col-xl-push-15{position:relative;left:62.5%}.ep-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-xl-offset-16{margin-left:66.6666666667%}.ep-col-xl-pull-16{position:relative;right:66.6666666667%}.ep-col-xl-push-16{position:relative;left:66.6666666667%}.ep-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-xl-offset-17{margin-left:70.8333333333%}.ep-col-xl-pull-17{position:relative;right:70.8333333333%}.ep-col-xl-push-17{position:relative;left:70.8333333333%}.ep-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-xl-offset-18{margin-left:75%}.ep-col-xl-pull-18{position:relative;right:75%}.ep-col-xl-push-18{position:relative;left:75%}.ep-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-xl-offset-19{margin-left:79.1666666667%}.ep-col-xl-pull-19{position:relative;right:79.1666666667%}.ep-col-xl-push-19{position:relative;left:79.1666666667%}.ep-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-xl-offset-20{margin-left:83.3333333333%}.ep-col-xl-pull-20{position:relative;right:83.3333333333%}.ep-col-xl-push-20{position:relative;left:83.3333333333%}.ep-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-xl-offset-21{margin-left:87.5%}.ep-col-xl-pull-21{position:relative;right:87.5%}.ep-col-xl-push-21{position:relative;left:87.5%}.ep-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-xl-offset-22{margin-left:91.6666666667%}.ep-col-xl-pull-22{position:relative;right:91.6666666667%}.ep-col-xl-push-22{position:relative;left:91.6666666667%}.ep-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-xl-offset-23{margin-left:95.8333333333%}.ep-col-xl-pull-23{position:relative;right:95.8333333333%}.ep-col-xl-push-23{position:relative;left:95.8333333333%}.ep-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-xl-offset-24{margin-left:100%}.ep-col-xl-pull-24{position:relative;right:100%}.ep-col-xl-push-24{position:relative;left:100%}}.ep-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.ep-row.is-justify-center{justify-content:center}.ep-row.is-justify-end{justify-content:flex-end}.ep-row.is-justify-space-between{justify-content:space-between}.ep-row.is-justify-space-around{justify-content:space-around}.ep-row.is-justify-space-evenly{justify-content:space-evenly}.ep-row.is-align-middle{align-items:center}.ep-row.is-align-bottom{align-items:flex-end}.ep-button{--ep-button-font-weight: var(--ep-font-weight-primary);--ep-button-border-color: var(--ep-border-color);--ep-button-bg-color: var(--ep-fill-color-blank);--ep-button-text-color: var(--ep-text-color-regular);--ep-button-disabled-text-color: var(--ep-disabled-text-color);--ep-button-disabled-bg-color: var(--ep-fill-color-blank);--ep-button-disabled-border-color: var(--ep-border-color-light);--ep-button-divide-border-color: rgba(255, 255, 255, .5);--ep-button-hover-text-color: var(--ep-color-primary);--ep-button-hover-bg-color: var(--ep-color-primary-light-9);--ep-button-hover-border-color: var(--ep-color-primary-light-7);--ep-button-active-text-color: var(--ep-button-hover-text-color);--ep-button-active-border-color: var(--ep-color-primary);--ep-button-active-bg-color: var(--ep-button-hover-bg-color);--ep-button-outline-color: var(--ep-color-primary-light-5);--ep-button-hover-link-text-color: var(--ep-color-info);--ep-button-active-color: var(--ep-text-color-primary);display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--ep-button-text-color);text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:var(--ep-button-font-weight);-webkit-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--ep-button-bg-color);border:var(--ep-border);border-color:var(--ep-button-border-color);padding:8px 49px;font-size:var(--ep-font-size-base);border-radius:var(--ep-border-radius-base)}.ep-button:hover,.ep-button:focus{color:var(--ep-button-hover-text-color);border-color:var(--ep-button-hover-border-color);background-color:var(--ep-button-hover-bg-color);outline:none}.ep-button:active{color:var(--ep-button-active-text-color);border-color:var(--ep-button-active-border-color);background-color:var(--ep-button-active-bg-color);outline:none}.ep-button:focus-visible{outline:2px solid var(--ep-button-outline-color);outline-offset:1px}.ep-button>span{display:inline-flex;align-items:center}.ep-button+.ep-button{margin-left:12px}.ep-button.is-round{padding:8px 49px}.ep-button::-moz-focus-inner{border:0}.ep-button [class*=ep-icon]+span{margin-left:6px}.ep-button [class*=ep-icon] svg{vertical-align:bottom}.ep-button.is-plain{--ep-button-hover-text-color: var(--ep-color-primary);--ep-button-hover-bg-color: var(--ep-fill-color-blank);--ep-button-hover-border-color: var(--ep-color-primary)}.ep-button.is-active{color:var(--ep-button-active-text-color);border-color:var(--ep-button-active-border-color);background-color:var(--ep-button-active-bg-color);outline:none}.ep-button.is-disabled,.ep-button.is-disabled:hover,.ep-button.is-disabled:focus{color:var(--ep-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--ep-button-disabled-bg-color);border-color:var(--ep-button-disabled-border-color)}.ep-button.is-loading{position:relative;pointer-events:none}.ep-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--ep-mask-color-extra-light)}.ep-button.is-round{border-radius:var(--ep-border-radius-round)}.ep-button.is-circle{border-radius:50%;padding:8px}.ep-button.is-text{color:var(--ep-button-text-color);border:0 solid transparent;background-color:transparent}.ep-button.is-text.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important}.ep-button.is-text:not(.is-disabled):hover,.ep-button.is-text:not(.is-disabled):focus{background-color:var(--ep-fill-color-light)}.ep-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--ep-button-outline-color);outline-offset:1px}.ep-button.is-text:not(.is-disabled):active{background-color:var(--ep-fill-color)}.ep-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--ep-fill-color-light)}.ep-button.is-text:not(.is-disabled).is-has-bg:hover,.ep-button.is-text:not(.is-disabled).is-has-bg:focus{background-color:var(--ep-fill-color)}.ep-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--ep-fill-color-dark)}.ep-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.ep-button.is-link{border-color:transparent;color:var(--ep-button-text-color);background:transparent;padding:2px;height:auto}.ep-button.is-link:hover,.ep-button.is-link:focus{color:var(--ep-button-hover-link-text-color)}.ep-button.is-link.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.ep-button.is-link:not(.is-disabled):hover,.ep-button.is-link:not(.is-disabled):focus{border-color:transparent;background-color:transparent}.ep-button.is-link:not(.is-disabled):active{color:var(--ep-button-active-color);border-color:transparent;background-color:transparent}.ep-button--text{border-color:transparent;background:transparent;color:var(--ep-color-primary);padding-left:0;padding-right:0}.ep-button--text.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.ep-button--text:not(.is-disabled):hover,.ep-button--text:not(.is-disabled):focus{color:var(--ep-color-primary-light-3);border-color:transparent;background-color:transparent}.ep-button--text:not(.is-disabled):active{color:var(--ep-color-primary-dark-2);border-color:transparent;background-color:transparent}.ep-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.ep-button--primary{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-primary);--ep-button-border-color: var(--ep-color-primary);--ep-button-outline-color: var(--ep-color-primary-light-5);--ep-button-active-color: var(--ep-color-primary-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-primary-light-5);--ep-button-hover-bg-color: var(--ep-color-primary-light-3);--ep-button-hover-border-color: var(--ep-color-primary-light-3);--ep-button-active-bg-color: var(--ep-color-primary-dark-2);--ep-button-active-border-color: var(--ep-color-primary-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-primary-light-5);--ep-button-disabled-border-color: var(--ep-color-primary-light-5)}.ep-button--primary.is-plain,.ep-button--primary.is-text,.ep-button--primary.is-link{--ep-button-text-color: var(--ep-color-primary);--ep-button-bg-color: var(--ep-color-primary-light-9);--ep-button-border-color: var(--ep-color-primary-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-primary);--ep-button-hover-border-color: var(--ep-color-primary);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--primary.is-plain.is-disabled,.ep-button--primary.is-plain.is-disabled:hover,.ep-button--primary.is-plain.is-disabled:focus,.ep-button--primary.is-plain.is-disabled:active,.ep-button--primary.is-text.is-disabled,.ep-button--primary.is-text.is-disabled:hover,.ep-button--primary.is-text.is-disabled:focus,.ep-button--primary.is-text.is-disabled:active,.ep-button--primary.is-link.is-disabled,.ep-button--primary.is-link.is-disabled:hover,.ep-button--primary.is-link.is-disabled:focus,.ep-button--primary.is-link.is-disabled:active{color:var(--ep-color-primary-light-5);background-color:var(--ep-color-primary-light-9);border-color:var(--ep-color-primary-light-8)}.ep-button--success{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-success);--ep-button-border-color: var(--ep-color-success);--ep-button-outline-color: var(--ep-color-success-light-5);--ep-button-active-color: var(--ep-color-success-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-success-light-5);--ep-button-hover-bg-color: var(--ep-color-success-light-3);--ep-button-hover-border-color: var(--ep-color-success-light-3);--ep-button-active-bg-color: var(--ep-color-success-dark-2);--ep-button-active-border-color: var(--ep-color-success-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-success-light-5);--ep-button-disabled-border-color: var(--ep-color-success-light-5)}.ep-button--success.is-plain,.ep-button--success.is-text,.ep-button--success.is-link{--ep-button-text-color: var(--ep-color-success);--ep-button-bg-color: var(--ep-color-success-light-9);--ep-button-border-color: var(--ep-color-success-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-success);--ep-button-hover-border-color: var(--ep-color-success);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--success.is-plain.is-disabled,.ep-button--success.is-plain.is-disabled:hover,.ep-button--success.is-plain.is-disabled:focus,.ep-button--success.is-plain.is-disabled:active,.ep-button--success.is-text.is-disabled,.ep-button--success.is-text.is-disabled:hover,.ep-button--success.is-text.is-disabled:focus,.ep-button--success.is-text.is-disabled:active,.ep-button--success.is-link.is-disabled,.ep-button--success.is-link.is-disabled:hover,.ep-button--success.is-link.is-disabled:focus,.ep-button--success.is-link.is-disabled:active{color:var(--ep-color-success-light-5);background-color:var(--ep-color-success-light-9);border-color:var(--ep-color-success-light-8)}.ep-button--warning{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-warning);--ep-button-border-color: var(--ep-color-warning);--ep-button-outline-color: var(--ep-color-warning-light-5);--ep-button-active-color: var(--ep-color-warning-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-warning-light-5);--ep-button-hover-bg-color: var(--ep-color-warning-light-3);--ep-button-hover-border-color: var(--ep-color-warning-light-3);--ep-button-active-bg-color: var(--ep-color-warning-dark-2);--ep-button-active-border-color: var(--ep-color-warning-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-warning-light-5);--ep-button-disabled-border-color: var(--ep-color-warning-light-5)}.ep-button--warning.is-plain,.ep-button--warning.is-text,.ep-button--warning.is-link{--ep-button-text-color: var(--ep-color-warning);--ep-button-bg-color: var(--ep-color-warning-light-9);--ep-button-border-color: var(--ep-color-warning-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-warning);--ep-button-hover-border-color: var(--ep-color-warning);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--warning.is-plain.is-disabled,.ep-button--warning.is-plain.is-disabled:hover,.ep-button--warning.is-plain.is-disabled:focus,.ep-button--warning.is-plain.is-disabled:active,.ep-button--warning.is-text.is-disabled,.ep-button--warning.is-text.is-disabled:hover,.ep-button--warning.is-text.is-disabled:focus,.ep-button--warning.is-text.is-disabled:active,.ep-button--warning.is-link.is-disabled,.ep-button--warning.is-link.is-disabled:hover,.ep-button--warning.is-link.is-disabled:focus,.ep-button--warning.is-link.is-disabled:active{color:var(--ep-color-warning-light-5);background-color:var(--ep-color-warning-light-9);border-color:var(--ep-color-warning-light-8)}.ep-button--danger{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-danger);--ep-button-border-color: var(--ep-color-danger);--ep-button-outline-color: var(--ep-color-danger-light-5);--ep-button-active-color: var(--ep-color-danger-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-danger-light-5);--ep-button-hover-bg-color: var(--ep-color-danger-light-3);--ep-button-hover-border-color: var(--ep-color-danger-light-3);--ep-button-active-bg-color: var(--ep-color-danger-dark-2);--ep-button-active-border-color: var(--ep-color-danger-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-danger-light-5);--ep-button-disabled-border-color: var(--ep-color-danger-light-5)}.ep-button--danger.is-plain,.ep-button--danger.is-text,.ep-button--danger.is-link{--ep-button-text-color: var(--ep-color-danger);--ep-button-bg-color: var(--ep-color-danger-light-9);--ep-button-border-color: var(--ep-color-danger-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-danger);--ep-button-hover-border-color: var(--ep-color-danger);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--danger.is-plain.is-disabled,.ep-button--danger.is-plain.is-disabled:hover,.ep-button--danger.is-plain.is-disabled:focus,.ep-button--danger.is-plain.is-disabled:active,.ep-button--danger.is-text.is-disabled,.ep-button--danger.is-text.is-disabled:hover,.ep-button--danger.is-text.is-disabled:focus,.ep-button--danger.is-text.is-disabled:active,.ep-button--danger.is-link.is-disabled,.ep-button--danger.is-link.is-disabled:hover,.ep-button--danger.is-link.is-disabled:focus,.ep-button--danger.is-link.is-disabled:active{color:var(--ep-color-danger-light-5);background-color:var(--ep-color-danger-light-9);border-color:var(--ep-color-danger-light-8)}.ep-button--info{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-info);--ep-button-border-color: var(--ep-color-info);--ep-button-outline-color: var(--ep-color-info-light-5);--ep-button-active-color: var(--ep-color-info-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-info-light-5);--ep-button-hover-bg-color: var(--ep-color-info-light-3);--ep-button-hover-border-color: var(--ep-color-info-light-3);--ep-button-active-bg-color: var(--ep-color-info-dark-2);--ep-button-active-border-color: var(--ep-color-info-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-info-light-5);--ep-button-disabled-border-color: var(--ep-color-info-light-5)}.ep-button--info.is-plain,.ep-button--info.is-text,.ep-button--info.is-link{--ep-button-text-color: var(--ep-color-info);--ep-button-bg-color: var(--ep-color-info-light-9);--ep-button-border-color: var(--ep-color-info-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-info);--ep-button-hover-border-color: var(--ep-color-info);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--info.is-plain.is-disabled,.ep-button--info.is-plain.is-disabled:hover,.ep-button--info.is-plain.is-disabled:focus,.ep-button--info.is-plain.is-disabled:active,.ep-button--info.is-text.is-disabled,.ep-button--info.is-text.is-disabled:hover,.ep-button--info.is-text.is-disabled:focus,.ep-button--info.is-text.is-disabled:active,.ep-button--info.is-link.is-disabled,.ep-button--info.is-link.is-disabled:hover,.ep-button--info.is-link.is-disabled:focus,.ep-button--info.is-link.is-disabled:active{color:var(--ep-color-info-light-5);background-color:var(--ep-color-info-light-9);border-color:var(--ep-color-info-light-8)}.ep-button--large{--ep-button-size: 40px;height:var(--ep-button-size);padding:12px 19px;font-size:var(--ep-font-size-base);border-radius:var(--ep-border-radius-base)}.ep-button--large [class*=ep-icon]+span{margin-left:8px}.ep-button--large.is-round{padding:12px 19px}.ep-button--large.is-circle{width:var(--ep-button-size);padding:12px}.ep-button--small{--ep-button-size: 24px;height:var(--ep-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--ep-border-radius-base) - 1px)}.ep-button--small [class*=ep-icon]+span{margin-left:4px}.ep-button--small.is-round{padding:5px 11px}.ep-button--small.is-circle{width:var(--ep-button-size);padding:5px}.ep-form{--ep-form-label-font-size: var(--ep-font-size-base)}.ep-form--label-left .ep-form-item__label{justify-content:flex-start}.ep-form--label-top .ep-form-item{display:block}.ep-form--label-top .ep-form-item .ep-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.ep-form--inline .ep-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.ep-form--inline.ep-form--label-top{display:flex;flex-wrap:wrap}.ep-form--inline.ep-form--label-top .ep-form-item{display:block}.ep-form--large.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:12px;line-height:22px}.ep-form--default.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:8px;line-height:22px}.ep-form--small.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:4px;line-height:20px}.ep-form-item{display:flex;--font-size: 14px;margin-bottom:18px}.ep-form-item .ep-form-item{margin-bottom:0}.ep-form-item .ep-input__validateIcon{display:none}.ep-form-item--large{--font-size: 14px;--ep-form-label-font-size: var(--font-size);margin-bottom:22px}.ep-form-item--large .ep-form-item__label{height:40px;line-height:40px}.ep-form-item--large .ep-form-item__content{line-height:40px}.ep-form-item--large .ep-form-item__error{padding-top:4px}.ep-form-item--default{--font-size: 14px;--ep-form-label-font-size: var(--font-size);margin-bottom:18px}.ep-form-item--default .ep-form-item__label{height:32px;line-height:32px}.ep-form-item--default .ep-form-item__content{line-height:32px}.ep-form-item--default .ep-form-item__error{padding-top:2px}.ep-form-item--small{--font-size: 12px;--ep-form-label-font-size: var(--font-size);margin-bottom:18px}.ep-form-item--small .ep-form-item__label{height:24px;line-height:24px}.ep-form-item--small .ep-form-item__content{line-height:24px}.ep-form-item--small .ep-form-item__error{padding-top:2px}.ep-form-item__label-wrap{display:flex}.ep-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--ep-form-label-font-size);color:var(--ep-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.ep-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.ep-form-item__content .ep-input-group{vertical-align:top}.ep-form-item__error{color:var(--ep-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.ep-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.ep-form-item.is-required:not(.is-no-asterisk).asterisk-left>.ep-form-item__label:before,.ep-form-item.is-required:not(.is-no-asterisk).asterisk-left>.ep-form-item__label-wrap>.ep-form-item__label:before{content:"*";color:var(--ep-color-danger);margin-right:4px}.ep-form-item.is-required:not(.is-no-asterisk).asterisk-right>.ep-form-item__label:after,.ep-form-item.is-required:not(.is-no-asterisk).asterisk-right>.ep-form-item__label-wrap>.ep-form-item__label:after{content:"*";color:var(--ep-color-danger);margin-left:4px}.ep-form-item.is-error .ep-select-v2__wrapper,.ep-form-item.is-error .ep-select-v2__wrapper:focus,.ep-form-item.is-error .ep-textarea__inner,.ep-form-item.is-error .ep-textarea__inner:focus{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-form-item.is-error .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-form-item.is-error .ep-input-group__append .ep-input__wrapper,.ep-form-item.is-error .ep-input-group__prepend .ep-input__wrapper{box-shadow:0 0 0 1px transparent inset}.ep-form-item.is-error .ep-input__validateIcon{color:var(--ep-color-danger)}.ep-form-item--feedback .ep-input__validateIcon{display:inline-flex}:root{--ep-popup-modal-bg-color: var(--ep-color-black);--ep-popup-modal-opacity: .5}.v-modal-enter{animation:v-modal-in var(--ep-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--ep-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--ep-popup-modal-opacity);background:var(--ep-popup-modal-bg-color)}.ep-popup-parent--hidden{overflow:hidden}.ep-dialog{--ep-dialog-width: 50%;--ep-dialog-margin-top: 15vh;--ep-dialog-bg-color: var(--ep-bg-color);--ep-dialog-box-shadow: var(--ep-box-shadow);--ep-dialog-title-font-size: var(--ep-font-size-large);--ep-dialog-content-font-size: 14px;--ep-dialog-font-line-height: var(--ep-font-line-height-primary);--ep-dialog-padding-primary: 20px;--ep-dialog-border-radius: var(--ep-border-radius-small);position:relative;margin:var(--ep-dialog-margin-top, 15vh) auto 50px;background:var(--ep-dialog-bg-color);border-radius:var(--ep-dialog-border-radius);box-shadow:var(--ep-dialog-box-shadow);box-sizing:border-box;width:var(--ep-dialog-width, 50%)}.ep-dialog:focus{outline:none!important}.ep-dialog.is-align-center{margin:auto}.ep-dialog.is-fullscreen{--ep-dialog-width: 100%;--ep-dialog-margin-top: 0;margin-bottom:0;height:100%;overflow:auto}.ep-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.ep-dialog.is-draggable .ep-dialog__header{cursor:move;-webkit-user-select:none;user-select:none}.ep-dialog__header{padding:var(--ep-dialog-padding-primary);padding-bottom:10px;margin-right:16px}.ep-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:transparent;border:none;outline:none;cursor:pointer;font-size:var(--ep-message-close-size, 16px)}.ep-dialog__headerbtn .ep-dialog__close{color:var(--ep-color-info);font-size:inherit}.ep-dialog__headerbtn:focus .ep-dialog__close,.ep-dialog__headerbtn:hover .ep-dialog__close{color:var(--ep-color-primary)}.ep-dialog__title{line-height:var(--ep-dialog-font-line-height);font-size:var(--ep-dialog-title-font-size);color:var(--ep-text-color-primary)}.ep-dialog__body{padding:calc(var(--ep-dialog-padding-primary) + 10px) var(--ep-dialog-padding-primary);color:var(--ep-text-color-regular);font-size:var(--ep-dialog-content-font-size)}.ep-dialog__footer{padding:var(--ep-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.ep-dialog--center{text-align:center}.ep-dialog--center .ep-dialog__body{text-align:initial;padding:25px calc(var(--ep-dialog-padding-primary) + 5px) 30px}.ep-dialog--center .ep-dialog__footer{text-align:inherit}.ep-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{animation:modal-fade-in var(--ep-transition-duration)}.dialog-fade-enter-active .ep-overlay-dialog{animation:dialog-fade-in var(--ep-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--ep-transition-duration)}.dialog-fade-leave-active .ep-overlay-dialog{animation:dialog-fade-out var(--ep-transition-duration)}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.ep-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--ep-overlay-color-lighter);overflow:auto}.ep-overlay .ep-overlay-root{height:0}.ep-table{--ep-table-border-color: var(--ep-border-color-lighter);--ep-table-border: 1px solid var(--ep-table-border-color);--ep-table-text-color: var(--ep-text-color-regular);--ep-table-header-text-color: var(--ep-text-color-secondary);--ep-table-row-hover-bg-color: var(--ep-fill-color-light);--ep-table-current-row-bg-color: var(--ep-color-primary-light-9);--ep-table-header-bg-color: var(--ep-bg-color);--ep-table-fixed-box-shadow: var(--ep-box-shadow-light);--ep-table-bg-color: var(--ep-fill-color-blank);--ep-table-tr-bg-color: var(--ep-fill-color-blank);--ep-table-expanded-cell-bg-color: var(--ep-fill-color-blank);--ep-table-fixed-left-column: inset 10px 0 10px -10px rgba(0, 0, 0, .15);--ep-table-fixed-right-column: inset -10px 0 10px -10px rgba(0, 0, 0, .15);position:relative;overflow:hidden;box-sizing:border-box;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--ep-table-bg-color);font-size:14px;color:var(--ep-table-text-color)}.ep-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.ep-table__inner-wrapper:before{left:0;bottom:0;width:100%;height:1px}.ep-table.has-footer.ep-table--scrollable-y tr:last-child td.ep-table__cell,.ep-table.has-footer.ep-table--fluid-height tr:last-child td.ep-table__cell{border-bottom-color:transparent}.ep-table__empty-block{position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.ep-table__empty-text{line-height:60px;width:50%;color:var(--ep-text-color-secondary)}.ep-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;user-select:none}.ep-table__expand-icon{position:relative;cursor:pointer;color:var(--ep-text-color-regular);font-size:12px;transition:transform var(--ep-transition-duration-fast) ease-in-out;height:20px}.ep-table__expand-icon--expanded{transform:rotate(90deg)}.ep-table__expand-icon>.ep-icon{font-size:12px}.ep-table__expanded-cell{background-color:var(--ep-table-expanded-cell-bg-color)}.ep-table__expanded-cell[class*=cell]{padding:20px 50px}.ep-table__expanded-cell:hover{background-color:transparent!important}.ep-table__placeholder{display:inline-block;width:20px}.ep-table__append-wrapper{overflow:hidden}.ep-table--fit{border-right:0;border-bottom:0}.ep-table--fit .ep-table__cell.gutter{border-right-width:1px}.ep-table thead{color:var(--ep-table-header-text-color);font-weight:500}.ep-table thead.is-group th.ep-table__cell{background:var(--ep-fill-color-light)}.ep-table .ep-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:1}.ep-table .ep-table__cell.is-center{text-align:center}.ep-table .ep-table__cell.is-right{text-align:right}.ep-table .ep-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.ep-table .ep-table__cell.is-hidden>*{visibility:hidden}.ep-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.ep-table .cell.ep-tooltip{white-space:nowrap;min-width:50px}.ep-table--large{font-size:var(--ep-font-size-base)}.ep-table--large .ep-table__cell{padding:12px 0}.ep-table--large .cell{padding:0 16px}.ep-table--default{font-size:14px}.ep-table--default .ep-table__cell{padding:8px 0}.ep-table--default .cell{padding:0 12px}.ep-table--small{font-size:12px}.ep-table--small .ep-table__cell{padding:4px 0}.ep-table--small .cell{padding:0 8px}.ep-table tr{background-color:var(--ep-table-tr-bg-color)}.ep-table tr input[type=checkbox]{margin:0}.ep-table th.ep-table__cell.is-leaf,.ep-table td.ep-table__cell{border-bottom:var(--ep-table-border)}.ep-table th.ep-table__cell.is-sortable{cursor:pointer}.ep-table th.ep-table__cell{-webkit-user-select:none;user-select:none;background-color:var(--ep-table-header-bg-color)}.ep-table th.ep-table__cell>.cell.highlight{color:var(--ep-color-primary)}.ep-table th.ep-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.ep-table td.ep-table__cell div{box-sizing:border-box}.ep-table td.ep-table__cell.gutter{width:0}.ep-table__footer-wrapper{border-top:var(--ep-table-border)}.ep-table--border:after,.ep-table--border:before,.ep-table--border .ep-table__inner-wrapper:after,.ep-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--ep-table-border-color);z-index:3}.ep-table--border .ep-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px}.ep-table--border:before{top:-1px;left:0;width:1px;height:100%}.ep-table--border:after{top:-1px;right:0;width:1px;height:100%}.ep-table--border .ep-table__inner-wrapper{border-right:none;border-bottom:none}.ep-table--border .ep-table__footer-wrapper{position:relative;flex-shrink:0}.ep-table--border .ep-table__cell{border-right:var(--ep-table-border)}.ep-table--border th.ep-table__cell.gutter:last-of-type{border-bottom:var(--ep-table-border);border-bottom-width:1px}.ep-table--border th.ep-table__cell{border-bottom:var(--ep-table-border)}.ep-table--hidden{visibility:hidden}.ep-table__header-wrapper,.ep-table__body-wrapper,.ep-table__footer-wrapper{width:100%}.ep-table__header-wrapper tr td.ep-table-fixed-column--left,.ep-table__header-wrapper tr td.ep-table-fixed-column--right,.ep-table__header-wrapper tr th.ep-table-fixed-column--left,.ep-table__header-wrapper tr th.ep-table-fixed-column--right,.ep-table__body-wrapper tr td.ep-table-fixed-column--left,.ep-table__body-wrapper tr td.ep-table-fixed-column--right,.ep-table__body-wrapper tr th.ep-table-fixed-column--left,.ep-table__body-wrapper tr th.ep-table-fixed-column--right,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right{position:sticky!important;z-index:2;background:var(--ep-bg-color)}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-first-column:before{content:"";position:absolute;top:0;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-first-column:before{left:-10px}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-last-column:before{right:-10px;box-shadow:none}.ep-table__header-wrapper tr td.ep-table__fixed-right-patch,.ep-table__header-wrapper tr th.ep-table__fixed-right-patch,.ep-table__body-wrapper tr td.ep-table__fixed-right-patch,.ep-table__body-wrapper tr th.ep-table__fixed-right-patch,.ep-table__footer-wrapper tr td.ep-table__fixed-right-patch,.ep-table__footer-wrapper tr th.ep-table__fixed-right-patch{position:sticky!important;z-index:2;background:#fff;right:0}.ep-table__header-wrapper{flex-shrink:0}.ep-table__header-wrapper tr th.ep-table-fixed-column--left,.ep-table__header-wrapper tr th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table__header,.ep-table__body,.ep-table__footer{table-layout:fixed;border-collapse:separate}.ep-table__header-wrapper,.ep-table__footer-wrapper{overflow:hidden}.ep-table__header-wrapper tbody td.ep-table__cell,.ep-table__footer-wrapper tbody td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color);color:var(--ep-table-text-color)}.ep-table__header-wrapper .ep-table-column--selection>.cell,.ep-table__body-wrapper .ep-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.ep-table__header-wrapper .ep-table-column--selection .ep-checkbox,.ep-table__body-wrapper .ep-table-column--selection .ep-checkbox{height:unset}.ep-table.is-scrolling-left .ep-table-fixed-column--right.is-first-column:before{box-shadow:var(--ep-table-fixed-right-column)}.ep-table.is-scrolling-left.ep-table--border .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:var(--ep-table-border)}.ep-table.is-scrolling-left th.ep-table-fixed-column--left{background-color:var(--ep-table-header-bg-color)}.ep-table.is-scrolling-right .ep-table-fixed-column--left.is-last-column:before{box-shadow:var(--ep-table-fixed-left-column)}.ep-table.is-scrolling-right .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:none}.ep-table.is-scrolling-right th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table.is-scrolling-middle .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:none}.ep-table.is-scrolling-middle .ep-table-fixed-column--right.is-first-column:before{box-shadow:var(--ep-table-fixed-right-column)}.ep-table.is-scrolling-middle .ep-table-fixed-column--left.is-last-column:before{box-shadow:var(--ep-table-fixed-left-column)}.ep-table.is-scrolling-none .ep-table-fixed-column--left.is-first-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--left.is-last-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--right.is-first-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--right.is-last-column:before{box-shadow:none}.ep-table.is-scrolling-none th.ep-table-fixed-column--left,.ep-table.is-scrolling-none th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table__body-wrapper{overflow:hidden;position:relative;flex:1}.ep-table__body-wrapper .ep-scrollbar__bar{z-index:2}.ep-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.ep-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.ep-table .sort-caret.ascending{border-bottom-color:var(--ep-text-color-placeholder);top:-5px}.ep-table .sort-caret.descending{border-top-color:var(--ep-text-color-placeholder);bottom:-3px}.ep-table .ascending .sort-caret.ascending{border-bottom-color:var(--ep-color-primary)}.ep-table .descending .sort-caret.descending{border-top-color:var(--ep-color-primary)}.ep-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.ep-table--striped .ep-table__body tr.ep-table__row--striped td.ep-table__cell{background:var(--ep-fill-color-lighter)}.ep-table--striped .ep-table__body tr.ep-table__row--striped.current-row td.ep-table__cell{background-color:var(--ep-table-current-row-bg-color)}.ep-table__body tr.hover-row>td.ep-table__cell,.ep-table__body tr.hover-row.current-row>td.ep-table__cell,.ep-table__body tr.hover-row.ep-table__row--striped>td.ep-table__cell,.ep-table__body tr.hover-row.ep-table__row--striped.current-row>td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color)}.ep-table__body tr.current-row>td.ep-table__cell{background-color:var(--ep-table-current-row-bg-color)}.ep-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--ep-table-border);z-index:10}.ep-table__column-filter-trigger{display:inline-block;cursor:pointer}.ep-table__column-filter-trigger i{color:var(--ep-color-info);font-size:14px;vertical-align:middle}.ep-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table__border-bottom-patch{left:0;height:1px;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table__border-right-patch{top:0;height:100%;width:1px;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table--enable-row-transition .ep-table__body td.ep-table__cell{transition:background-color .25s ease}.ep-table--enable-row-hover .ep-table__body tr:hover>td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color)}.ep-table [class*=ep-table__row--level] .ep-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.ep-table .ep-table.ep-table--border .ep-table__cell{border-right:var(--ep-table-border)}.ep-table:not(.ep-table--border) .ep-table__cell{border-right:none}.ep-table:not(.ep-table--border)>.ep-table__inner-wrapper:after{content:none}.ep-checkbox{--ep-checkbox-font-size: 14px;--ep-checkbox-font-weight: var(--ep-font-weight-primary);--ep-checkbox-text-color: var(--ep-text-color-regular);--ep-checkbox-input-height: 14px;--ep-checkbox-input-width: 14px;--ep-checkbox-border-radius: var(--ep-border-radius-small);--ep-checkbox-bg-color: var(--ep-fill-color-blank);--ep-checkbox-input-border: var(--ep-border);--ep-checkbox-disabled-border-color: var(--ep-border-color);--ep-checkbox-disabled-input-fill: var(--ep-fill-color-light);--ep-checkbox-disabled-icon-color: var(--ep-text-color-placeholder);--ep-checkbox-disabled-checked-input-fill: var(--ep-border-color-extra-light);--ep-checkbox-disabled-checked-input-border-color: var(--ep-border-color);--ep-checkbox-disabled-checked-icon-color: var(--ep-text-color-placeholder);--ep-checkbox-checked-text-color: var(--ep-color-primary);--ep-checkbox-checked-input-border-color: var(--ep-color-primary);--ep-checkbox-checked-bg-color: var(--ep-color-primary);--ep-checkbox-checked-icon-color: var(--ep-color-white);--ep-checkbox-input-border-color-hover: var(--ep-color-primary);color:var(--ep-checkbox-text-color);font-weight:var(--ep-checkbox-font-weight);font-size:var(--ep-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;user-select:none;margin-right:30px;height:32px}.ep-checkbox.is-disabled{cursor:not-allowed}.ep-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--ep-border-radius-base);border:var(--ep-border);box-sizing:border-box}.ep-checkbox.is-bordered.is-checked{border-color:var(--ep-color-primary)}.ep-checkbox.is-bordered.is-disabled{border-color:var(--ep-border-color-lighter)}.ep-checkbox.is-bordered.ep-checkbox--large{padding:0 19px 0 11px;border-radius:var(--ep-border-radius-base)}.ep-checkbox.is-bordered.ep-checkbox--large .ep-checkbox__label{font-size:var(--ep-font-size-base)}.ep-checkbox.is-bordered.ep-checkbox--large .ep-checkbox__inner{height:14px;width:14px}.ep-checkbox.is-bordered.ep-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--ep-border-radius-base) - 1px)}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__label{font-size:12px}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__inner{height:12px;width:12px}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__inner:after{height:6px;width:2px}.ep-checkbox input:focus-visible+.ep-checkbox__inner{outline:2px solid var(--ep-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--ep-checkbox-border-radius)}.ep-checkbox__input{white-space:nowrap;cursor:pointer;outline:none;display:inline-flex;position:relative}.ep-checkbox__input.is-disabled .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-input-fill);border-color:var(--ep-checkbox-disabled-border-color);cursor:not-allowed}.ep-checkbox__input.is-disabled .ep-checkbox__inner:after{cursor:not-allowed;border-color:var(--ep-checkbox-disabled-icon-color)}.ep-checkbox__input.is-disabled.is-checked .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-checked-input-fill);border-color:var(--ep-checkbox-disabled-checked-input-border-color)}.ep-checkbox__input.is-disabled.is-checked .ep-checkbox__inner:after{border-color:var(--ep-checkbox-disabled-checked-icon-color)}.ep-checkbox__input.is-disabled.is-indeterminate .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-checked-input-fill);border-color:var(--ep-checkbox-disabled-checked-input-border-color)}.ep-checkbox__input.is-disabled.is-indeterminate .ep-checkbox__inner:before{background-color:var(--ep-checkbox-disabled-checked-icon-color);border-color:var(--ep-checkbox-disabled-checked-icon-color)}.ep-checkbox__input.is-disabled+span.ep-checkbox__label{color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-checkbox__input.is-checked .ep-checkbox__inner{background-color:var(--ep-checkbox-checked-bg-color);border-color:var(--ep-checkbox-checked-input-border-color)}.ep-checkbox__input.is-checked .ep-checkbox__inner:after{transform:rotate(45deg) scaleY(1)}.ep-checkbox__input.is-checked+.ep-checkbox__label{color:var(--ep-checkbox-checked-text-color)}.ep-checkbox__input.is-focus:not(.is-checked) .ep-checkbox__original:not(:focus-visible){border-color:var(--ep-checkbox-input-border-color-hover)}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner{background-color:var(--ep-checkbox-checked-bg-color);border-color:var(--ep-checkbox-checked-input-border-color)}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--ep-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner:after{display:none}.ep-checkbox__inner{display:inline-block;position:relative;border:var(--ep-checkbox-input-border);border-radius:var(--ep-checkbox-border-radius);box-sizing:border-box;width:var(--ep-checkbox-input-width);height:var(--ep-checkbox-input-height);background-color:var(--ep-checkbox-bg-color);z-index:var(--ep-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.ep-checkbox__inner:hover{border-color:var(--ep-checkbox-input-border-color-hover)}.ep-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid var(--ep-checkbox-checked-icon-color);border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in .05s;transform-origin:center}.ep-checkbox__original{opacity:0;outline:none;position:absolute;margin:0;width:0;height:0;z-index:-1}.ep-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--ep-checkbox-font-size)}.ep-checkbox.ep-checkbox--large{height:40px}.ep-checkbox.ep-checkbox--large .ep-checkbox__label{font-size:14px}.ep-checkbox.ep-checkbox--large .ep-checkbox__inner{width:14px;height:14px}.ep-checkbox.ep-checkbox--small{height:24px}.ep-checkbox.ep-checkbox--small .ep-checkbox__label{font-size:12px}.ep-checkbox.ep-checkbox--small .ep-checkbox__inner{width:12px;height:12px}.ep-checkbox.ep-checkbox--small .ep-checkbox__input.is-indeterminate .ep-checkbox__inner:before{top:4px}.ep-checkbox.ep-checkbox--small .ep-checkbox__inner:after{width:2px;height:6px}.ep-checkbox:last-of-type{margin-right:0}.ep-tag{--ep-tag-font-size: 12px;--ep-tag-border-radius: 4px;--ep-tag-border-radius-rounded: 9999px;--ep-tag-bg-color: var(--ep-color-primary-light-9);--ep-tag-border-color: var(--ep-color-primary-light-8);--ep-tag-hover-color: var(--ep-color-primary);--ep-tag-text-color: var(--ep-color-primary);background-color:var(--ep-tag-bg-color);border-color:var(--ep-tag-border-color);color:var(--ep-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--ep-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--ep-tag-border-radius);box-sizing:border-box;white-space:nowrap;--ep-icon-size: 14px}.ep-tag.ep-tag--primary{--ep-tag-bg-color: var(--ep-color-primary-light-9);--ep-tag-border-color: var(--ep-color-primary-light-8);--ep-tag-hover-color: var(--ep-color-primary)}.ep-tag.ep-tag--success{--ep-tag-bg-color: var(--ep-color-success-light-9);--ep-tag-border-color: var(--ep-color-success-light-8);--ep-tag-hover-color: var(--ep-color-success)}.ep-tag.ep-tag--warning{--ep-tag-bg-color: var(--ep-color-warning-light-9);--ep-tag-border-color: var(--ep-color-warning-light-8);--ep-tag-hover-color: var(--ep-color-warning)}.ep-tag.ep-tag--danger{--ep-tag-bg-color: var(--ep-color-danger-light-9);--ep-tag-border-color: var(--ep-color-danger-light-8);--ep-tag-hover-color: var(--ep-color-danger)}.ep-tag.ep-tag--error{--ep-tag-bg-color: var(--ep-color-error-light-9);--ep-tag-border-color: var(--ep-color-error-light-8);--ep-tag-hover-color: var(--ep-color-error)}.ep-tag.ep-tag--info{--ep-tag-bg-color: var(--ep-color-info-light-9);--ep-tag-border-color: var(--ep-color-info-light-8);--ep-tag-hover-color: var(--ep-color-info)}.ep-tag.ep-tag--primary{--ep-tag-text-color: var(--ep-color-primary)}.ep-tag.ep-tag--success{--ep-tag-text-color: var(--ep-color-success)}.ep-tag.ep-tag--warning{--ep-tag-text-color: var(--ep-color-warning)}.ep-tag.ep-tag--danger{--ep-tag-text-color: var(--ep-color-danger)}.ep-tag.ep-tag--error{--ep-tag-text-color: var(--ep-color-error)}.ep-tag.ep-tag--info{--ep-tag-text-color: var(--ep-color-info)}.ep-tag.is-hit{border-color:var(--ep-color-primary)}.ep-tag.is-round{border-radius:var(--ep-tag-border-radius-rounded)}.ep-tag .ep-tag__close{color:var(--ep-tag-text-color)}.ep-tag .ep-tag__close:hover{color:var(--ep-color-white);background-color:var(--ep-tag-hover-color)}.ep-tag .ep-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--ep-icon-size) - 2px);height:var(--ep-icon-size);width:var(--ep-icon-size)}.ep-tag .ep-tag__close{margin-left:6px}.ep-tag--dark{--ep-tag-bg-color: var(--ep-color-primary);--ep-tag-border-color: var(--ep-color-primary);--ep-tag-hover-color: var(--ep-color-primary-light-3);--ep-tag-text-color: var(--ep-color-white)}.ep-tag--dark.ep-tag--primary{--ep-tag-bg-color: var(--ep-color-primary);--ep-tag-border-color: var(--ep-color-primary);--ep-tag-hover-color: var(--ep-color-primary-light-3)}.ep-tag--dark.ep-tag--success{--ep-tag-bg-color: var(--ep-color-success);--ep-tag-border-color: var(--ep-color-success);--ep-tag-hover-color: var(--ep-color-success-light-3)}.ep-tag--dark.ep-tag--warning{--ep-tag-bg-color: var(--ep-color-warning);--ep-tag-border-color: var(--ep-color-warning);--ep-tag-hover-color: var(--ep-color-warning-light-3)}.ep-tag--dark.ep-tag--danger{--ep-tag-bg-color: var(--ep-color-danger);--ep-tag-border-color: var(--ep-color-danger);--ep-tag-hover-color: var(--ep-color-danger-light-3)}.ep-tag--dark.ep-tag--error{--ep-tag-bg-color: var(--ep-color-error);--ep-tag-border-color: var(--ep-color-error);--ep-tag-hover-color: var(--ep-color-error-light-3)}.ep-tag--dark.ep-tag--info{--ep-tag-bg-color: var(--ep-color-info);--ep-tag-border-color: var(--ep-color-info);--ep-tag-hover-color: var(--ep-color-info-light-3)}.ep-tag--dark.ep-tag--primary,.ep-tag--dark.ep-tag--success,.ep-tag--dark.ep-tag--warning,.ep-tag--dark.ep-tag--danger,.ep-tag--dark.ep-tag--error,.ep-tag--dark.ep-tag--info{--ep-tag-text-color: var(--ep-color-white)}.ep-tag--plain{--ep-tag-border-color: var(--ep-color-primary-light-5);--ep-tag-hover-color: var(--ep-color-primary);--ep-tag-bg-color: var(--ep-fill-color-blank)}.ep-tag--plain.ep-tag--primary{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-primary-light-5);--ep-tag-hover-color: var(--ep-color-primary)}.ep-tag--plain.ep-tag--success{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-success-light-5);--ep-tag-hover-color: var(--ep-color-success)}.ep-tag--plain.ep-tag--warning{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-warning-light-5);--ep-tag-hover-color: var(--ep-color-warning)}.ep-tag--plain.ep-tag--danger{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-danger-light-5);--ep-tag-hover-color: var(--ep-color-danger)}.ep-tag--plain.ep-tag--error{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-error-light-5);--ep-tag-hover-color: var(--ep-color-error)}.ep-tag--plain.ep-tag--info{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-info-light-5);--ep-tag-hover-color: var(--ep-color-info)}.ep-tag.is-closable{padding-right:5px}.ep-tag--large{padding:0 11px;height:32px;--ep-icon-size: 16px}.ep-tag--large .ep-tag__close{margin-left:8px}.ep-tag--large.is-closable{padding-right:7px}.ep-tag--small{padding:0 7px;height:20px;--ep-icon-size: 12px}.ep-tag--small .ep-tag__close{margin-left:4px}.ep-tag--small.is-closable{padding-right:3px}.ep-tag--small .ep-icon-close{transform:scale(.8)}.ep-tag.ep-tag--primary.is-hit{border-color:var(--ep-color-primary)}.ep-tag.ep-tag--success.is-hit{border-color:var(--ep-color-success)}.ep-tag.ep-tag--warning.is-hit{border-color:var(--ep-color-warning)}.ep-tag.ep-tag--danger.is-hit{border-color:var(--ep-color-danger)}.ep-tag.ep-tag--error.is-hit{border-color:var(--ep-color-error)}.ep-tag.ep-tag--info.is-hit{border-color:var(--ep-color-info)}.ep-scrollbar{--ep-scrollbar-opacity: .3;--ep-scrollbar-bg-color: var(--ep-text-color-secondary);--ep-scrollbar-hover-opacity: .5;--ep-scrollbar-hover-bg-color: var(--ep-text-color-secondary);overflow:hidden;position:relative;height:100%}.ep-scrollbar__wrap{overflow:auto;height:100%}.ep-scrollbar__wrap--hidden-default{scrollbar-width:none}.ep-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.ep-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--ep-scrollbar-bg-color, var(--ep-text-color-secondary));transition:var(--ep-transition-duration) background-color;opacity:var(--ep-scrollbar-opacity, .3)}.ep-scrollbar__thumb:hover{background-color:var(--ep-scrollbar-hover-bg-color, var(--ep-text-color-secondary));opacity:var(--ep-scrollbar-hover-opacity, .5)}.ep-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.ep-scrollbar__bar.is-vertical{width:6px;top:2px}.ep-scrollbar__bar.is-vertical>div{width:100%}.ep-scrollbar__bar.is-horizontal{height:6px;left:2px}.ep-scrollbar__bar.is-horizontal>div{height:100%}.ep-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.ep-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.ep-scrollbar-fade-enter-from,.ep-scrollbar-fade-leave-active{opacity:0}.ep-table-column--selection .cell{padding-left:14px;padding-right:14px}.ep-table-filter{border:solid 1px var(--ep-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--ep-box-shadow-light);box-sizing:border-box}.ep-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.ep-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--ep-font-size-base)}.ep-table-filter__list-item:hover{background-color:var(--ep-color-primary-light-9);color:var(--ep-color-primary)}.ep-table-filter__list-item.is-active{background-color:var(--ep-color-primary);color:#fff}.ep-table-filter__content{min-width:100px}.ep-table-filter__bottom{border-top:1px solid var(--ep-border-color-lighter);padding:8px}.ep-table-filter__bottom button{background:transparent;border:none;color:var(--ep-text-color-regular);cursor:pointer;font-size:var(--ep-font-size-small);padding:0 3px}.ep-table-filter__bottom button:hover{color:var(--ep-color-primary)}.ep-table-filter__bottom button:focus{outline:none}.ep-table-filter__bottom button.is-disabled{color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-table-filter__wrap{max-height:280px}.ep-table-filter__checkbox-group{padding:10px}.ep-table-filter__checkbox-group label.ep-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.ep-table-filter__checkbox-group .ep-checkbox:last-child{margin-bottom:0}.ep-textarea{--ep-input-text-color: var(--ep-text-color-regular);--ep-input-border: var(--ep-border);--ep-input-hover-border: var(--ep-border-color-hover);--ep-input-focus-border: var(--ep-color-primary);--ep-input-transparent-border: 0 0 0 1px transparent inset;--ep-input-border-color: var(--ep-border-color);--ep-input-border-radius: var(--ep-border-radius-base);--ep-input-bg-color: var(--ep-fill-color-blank);--ep-input-icon-color: var(--ep-text-color-placeholder);--ep-input-placeholder-color: var(--ep-text-color-placeholder);--ep-input-hover-border-color: var(--ep-border-color-hover);--ep-input-clear-hover-color: var(--ep-text-color-secondary);--ep-input-focus-border-color: var(--ep-color-primary);position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--ep-font-size-base)}.ep-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--ep-input-text-color, var(--ep-text-color-regular));background-color:var(--ep-input-bg-color, var(--ep-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--ep-input-border-color, var(--ep-border-color)) inset;border-radius:var(--ep-input-border-radius, var(--ep-border-radius-base));transition:var(--ep-transition-box-shadow);border:none}.ep-textarea__inner::placeholder{color:var(--ep-input-placeholder-color, var(--ep-text-color-placeholder))}.ep-textarea__inner:hover{box-shadow:0 0 0 1px var(--ep-input-hover-border-color) inset}.ep-textarea__inner:focus{outline:none;box-shadow:0 0 0 1px var(--ep-input-focus-border-color) inset}.ep-textarea .ep-input__count{color:var(--ep-color-info);background:var(--ep-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.ep-textarea.is-disabled .ep-textarea__inner{background-color:var(--ep-disabled-bg-color);border-color:var(--ep-disabled-border-color);color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-textarea.is-disabled .ep-textarea__inner::placeholder{color:var(--ep-text-color-placeholder)}.ep-textarea.is-exceed .ep-textarea__inner{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-textarea.is-exceed .ep-input__count{color:var(--ep-color-danger)}.ep-input{--ep-input-text-color: var(--ep-text-color-regular);--ep-input-border: var(--ep-border);--ep-input-hover-border: var(--ep-border-color-hover);--ep-input-focus-border: var(--ep-color-primary);--ep-input-transparent-border: 0 0 0 1px transparent inset;--ep-input-border-color: var(--ep-border-color);--ep-input-border-radius: var(--ep-border-radius-base);--ep-input-bg-color: var(--ep-fill-color-blank);--ep-input-icon-color: var(--ep-text-color-placeholder);--ep-input-placeholder-color: var(--ep-text-color-placeholder);--ep-input-hover-border-color: var(--ep-border-color-hover);--ep-input-clear-hover-color: var(--ep-text-color-secondary);--ep-input-focus-border-color: var(--ep-color-primary);--ep-input-height: var(--ep-component-size);position:relative;font-size:var(--ep-font-size-base);display:inline-flex;width:100%;line-height:var(--ep-input-height);box-sizing:border-box;vertical-align:middle}.ep-input::-webkit-scrollbar{z-index:11;width:6px}.ep-input::-webkit-scrollbar:horizontal{height:6px}.ep-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--ep-text-color-disabled)}.ep-input::-webkit-scrollbar-corner{background:var(--ep-fill-color-blank)}.ep-input::-webkit-scrollbar-track{background:var(--ep-fill-color-blank)}.ep-input::-webkit-scrollbar-track-piece{background:var(--ep-fill-color-blank);width:6px}.ep-input .ep-input__clear,.ep-input .ep-input__password{color:var(--ep-input-icon-color);font-size:14px;cursor:pointer}.ep-input .ep-input__clear:hover,.ep-input .ep-input__password:hover{color:var(--ep-input-clear-hover-color)}.ep-input .ep-input__count{height:100%;display:inline-flex;align-items:center;color:var(--ep-color-info);font-size:12px}.ep-input .ep-input__count .ep-input__count-inner{background:var(--ep-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.ep-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--ep-input-bg-color, var(--ep-fill-color-blank));background-image:none;border-radius:var(--ep-input-border-radius, var(--ep-border-radius-base));transition:var(--ep-transition-box-shadow);transform:translateZ(0);box-shadow:0 0 0 1px var(--ep-input-border-color, var(--ep-border-color)) inset}.ep-input__wrapper:hover{box-shadow:0 0 0 1px var(--ep-input-hover-border-color) inset}.ep-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--ep-input-focus-border-color) inset}.ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--ep-input-text-color, var(--ep-text-color-regular));font-size:inherit;height:var(--ep-input-inner-height);line-height:var(--ep-input-inner-height);padding:0;outline:none;border:none;background:none;box-sizing:border-box}.ep-input__inner:focus{outline:none}.ep-input__inner::placeholder{color:var(--ep-input-placeholder-color, var(--ep-text-color-placeholder))}.ep-input__inner[type=password]::-ms-reveal{display:none}.ep-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--ep-input-icon-color, var(--ep-text-color-placeholder));transition:all var(--ep-transition-duration);pointer-events:none}.ep-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.ep-input__prefix-inner>:last-child{margin-right:8px}.ep-input__prefix-inner>:first-child,.ep-input__prefix-inner>:first-child.ep-input__icon{margin-left:0}.ep-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--ep-input-icon-color, var(--ep-text-color-placeholder));transition:all var(--ep-transition-duration);pointer-events:none}.ep-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.ep-input__suffix-inner>:first-child{margin-left:8px}.ep-input .ep-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--ep-transition-duration);margin-left:8px}.ep-input__validateIcon{pointer-events:none}.ep-input.is-active .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-input-focus-color, ) inset}.ep-input.is-disabled{cursor:not-allowed}.ep-input.is-disabled .ep-input__wrapper{background-color:var(--ep-disabled-bg-color);box-shadow:0 0 0 1px var(--ep-disabled-border-color) inset}.ep-input.is-disabled .ep-input__inner{color:var(--ep-disabled-text-color);-webkit-text-fill-color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-input.is-disabled .ep-input__inner::placeholder{color:var(--ep-text-color-placeholder)}.ep-input.is-disabled .ep-input__icon{cursor:not-allowed}.ep-input.is-exceed .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-input.is-exceed .ep-input__suffix .ep-input__count{color:var(--ep-color-danger)}.ep-input--large{--ep-input-height: var(--ep-component-size-large);font-size:14px}.ep-input--large .ep-input__wrapper{padding:1px 15px}.ep-input--large .ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 40px) - 2px)}.ep-input--small{--ep-input-height: var(--ep-component-size-small);font-size:12px}.ep-input--small .ep-input__wrapper{padding:1px 7px}.ep-input--small .ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 24px) - 2px)}.ep-input-group{display:inline-flex;width:100%;align-items:stretch}.ep-input-group__append,.ep-input-group__prepend{background-color:var(--ep-fill-color-light);color:var(--ep-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--ep-input-border-radius);padding:0 20px;white-space:nowrap}.ep-input-group__append:focus,.ep-input-group__prepend:focus{outline:none}.ep-input-group__append .ep-select,.ep-input-group__append .ep-button,.ep-input-group__prepend .ep-select,.ep-input-group__prepend .ep-button{display:inline-block;margin:0 -20px}.ep-input-group__append button.ep-button,.ep-input-group__append button.ep-button:hover,.ep-input-group__append div.ep-select .ep-input__wrapper,.ep-input-group__append div.ep-select:hover .ep-input__wrapper,.ep-input-group__prepend button.ep-button,.ep-input-group__prepend button.ep-button:hover,.ep-input-group__prepend div.ep-select .ep-input__wrapper,.ep-input-group__prepend div.ep-select:hover .ep-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.ep-input-group__append .ep-button,.ep-input-group__append .ep-input,.ep-input-group__prepend .ep-button,.ep-input-group__prepend .ep-input{font-size:inherit}.ep-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--ep-input-border-color) inset,0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset}.ep-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset,-1px 0 0 0 var(--ep-input-border-color) inset}.ep-input-group--prepend>.ep-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input .ep-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--ep-input-border-color) inset,0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__wrapper{box-shadow:1px 0 0 0 var(--ep-input-focus-border-color) inset,1px 0 0 0 var(--ep-input-focus-border-color),0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important;z-index:2}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__wrapper:focus{outline:none;z-index:2;box-shadow:1px 0 0 0 var(--ep-input-focus-border-color) inset,1px 0 0 0 var(--ep-input-focus-border-color),0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select:hover .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select:hover .ep-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--ep-input-hover-border-color) inset,1px 0 0 0 var(--ep-input-hover-border-color),0 1px 0 0 var(--ep-input-hover-border-color) inset,0 -1px 0 0 var(--ep-input-hover-border-color) inset!important}.ep-input-group--append>.ep-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.ep-input-group--append .ep-input-group__append .ep-select .ep-input .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select .ep-input .ep-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset,-1px 0 0 0 var(--ep-input-border-color) inset}.ep-input-group--append .ep-input-group__append .ep-select .ep-input.is-focus .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select .ep-input.is-focus .ep-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--ep-input-focus-border-color),-1px 0 0 0 var(--ep-input-focus-border-color) inset,0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important}.ep-input-group--append .ep-input-group__append .ep-select:hover .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select:hover .ep-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--ep-input-hover-border-color),-1px 0 0 0 var(--ep-input-hover-border-color) inset,0 1px 0 0 var(--ep-input-hover-border-color) inset,0 -1px 0 0 var(--ep-input-hover-border-color) inset!important}.ep-select-dropdown__item{font-size:var(--ep-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ep-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.ep-select-dropdown__item.is-disabled{color:var(--ep-text-color-placeholder);cursor:not-allowed}.ep-select-dropdown__item.hover,.ep-select-dropdown__item:hover{background-color:var(--ep-fill-color-light)}.ep-select-dropdown__item.selected{color:var(--ep-color-primary);font-weight:700}.ep-select-group{margin:0;padding:0}.ep-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.ep-select-group__wrap:not(:last-of-type){padding-bottom:24px}.ep-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--ep-border-color-light)}.ep-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--ep-border-color-light)}.ep-select-group__title{padding-left:20px;font-size:12px;color:var(--ep-color-info);line-height:30px}.ep-select-group .ep-select-dropdown__item{padding-left:20px}.ep-select-dropdown{z-index:calc(var(--ep-index-top) + 1);border-radius:var(--ep-border-radius-base);box-sizing:border-box}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected{color:var(--ep-color-primary);background-color:var(--ep-bg-color-overlay)}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected.hover{background-color:var(--ep-fill-color-light)}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--ep-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected.is-disabled:after{background-color:var(--ep-text-color-disabled)}.ep-select-dropdown .ep-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--ep-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.ep-select-dropdown .ep-scrollbar.is-empty .ep-select-dropdown__list{padding:0}.ep-select-dropdown .ep-select-dropdown__item.is-disabled:hover{background-color:unset}.ep-select-dropdown .ep-select-dropdown__item.is-disabled.selected{color:var(--ep-text-color-disabled)}.ep-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--ep-text-color-secondary);font-size:var(--ep-select-font-size)}.ep-select-dropdown__wrap{max-height:274px}.ep-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.ep-select{--ep-select-border-color-hover: var(--ep-border-color-hover);--ep-select-disabled-border: var(--ep-disabled-border-color);--ep-select-font-size: var(--ep-font-size-base);--ep-select-close-hover-color: var(--ep-text-color-secondary);--ep-select-input-color: var(--ep-text-color-placeholder);--ep-select-multiple-input-color: var(--ep-text-color-regular);--ep-select-input-focus-border-color: var(--ep-color-primary);--ep-select-input-font-size: 14px;display:inline-block;position:relative;vertical-align:middle;line-height:32px}.ep-select__popper.ep-popper{background:var(--ep-bg-color-overlay);border:1px solid var(--ep-border-color-light);box-shadow:var(--ep-box-shadow-light)}.ep-select__popper.ep-popper .ep-popper__arrow:before{border:1px solid var(--ep-border-color-light)}.ep-select__popper.ep-popper[data-popper-placement^=top] .ep-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=bottom] .ep-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=left] .ep-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=right] .ep-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.ep-select .ep-select-tags-wrapper.has-prefix{margin-left:6px}.ep-select--large{line-height:40px}.ep-select--large .ep-select-tags-wrapper.has-prefix{margin-left:8px}.ep-select--small{line-height:24px}.ep-select--small .ep-select-tags-wrapper.has-prefix{margin-left:4px}.ep-select .ep-select__tags>span{display:inline-block}.ep-select:hover:not(.ep-select--disabled) .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-select-border-color-hover) inset}.ep-select .ep-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ep-select .ep-input__wrapper{cursor:pointer}.ep-select .ep-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--ep-select-input-focus-border-color) inset!important}.ep-select .ep-input__inner{cursor:pointer}.ep-select .ep-input{display:flex}.ep-select .ep-input .ep-select__caret{color:var(--ep-select-input-color);font-size:var(--ep-select-input-font-size);transition:transform var(--ep-transition-duration);transform:rotate(0);cursor:pointer}.ep-select .ep-input .ep-select__caret.is-reverse{transform:rotate(-180deg)}.ep-select .ep-input .ep-select__caret.is-show-close{font-size:var(--ep-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--ep-border-radius-circle);color:var(--ep-select-input-color);transition:var(--ep-transition-color)}.ep-select .ep-input .ep-select__caret.is-show-close:hover{color:var(--ep-select-close-hover-color)}.ep-select .ep-input .ep-select__caret.ep-icon{position:relative;height:inherit;z-index:2}.ep-select .ep-input.is-disabled .ep-input__wrapper{cursor:not-allowed}.ep-select .ep-input.is-disabled .ep-input__wrapper:hover{box-shadow:0 0 0 1px var(--ep-select-disabled-border) inset}.ep-select .ep-input.is-disabled .ep-input__inner,.ep-select .ep-input.is-disabled .ep-select__caret{cursor:not-allowed}.ep-select .ep-input.is-focus .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-select-input-focus-border-color) inset!important}.ep-select__input{border:none;outline:none;padding:0;margin-left:15px;color:var(--ep-select-multiple-input-color);font-size:var(--ep-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.ep-select__input.is-disabled{cursor:not-allowed}.ep-select__input--iOS{position:absolute;left:0;top:0;z-index:6}.ep-select__input.is-small{height:14px}.ep-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--ep-index-top);right:25px;color:var(--ep-select-input-color);line-height:18px;font-size:var(--ep-select-input-font-size)}.ep-select__close:hover{color:var(--ep-select-close-hover-color)}.ep-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--ep-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.ep-select__tags .ep-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.ep-select__tags .ep-tag:last-child{margin-right:0}.ep-select__tags .ep-tag .ep-icon-close{background-color:var(--ep-text-color-placeholder);right:-7px;top:0;color:#fff}.ep-select__tags .ep-tag .ep-icon-close:hover{background-color:var(--ep-text-color-secondary)}.ep-select__tags .ep-tag .ep-icon-close:before{display:block;transform:translateY(.5px)}.ep-select__tags .ep-tag--info{background-color:var(--ep-fill-color)}.ep-select__tags.is-disabled{cursor:not-allowed}.ep-select__collapse-tags{white-space:normal;z-index:var(--ep-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.ep-select__collapse-tags .ep-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.ep-select__collapse-tags .ep-tag:last-child{margin-right:0}.ep-select__collapse-tags .ep-tag .ep-icon-close{background-color:var(--ep-text-color-placeholder);right:-7px;top:0;color:#fff}.ep-select__collapse-tags .ep-tag .ep-icon-close:hover{background-color:var(--ep-text-color-secondary)}.ep-select__collapse-tags .ep-tag .ep-icon-close:before{display:block;transform:translateY(.5px)}.ep-select__collapse-tags .ep-tag--info{background-color:var(--ep-fill-color)}.ep-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.ep-drawer{--ep-drawer-bg-color: var(--ep-dialog-bg-color, var(--ep-bg-color));--ep-drawer-padding-primary: var(--ep-dialog-padding-primary, 20px);position:absolute;box-sizing:border-box;background-color:var(--ep-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--ep-box-shadow-dark);overflow:hidden;transition:all var(--ep-transition-duration)}.ep-drawer .rtl,.ep-drawer .ltr,.ep-drawer .ttb,.ep-drawer .btt{transform:translate(0)}.ep-drawer__sr-focus:focus{outline:none!important}.ep-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--ep-drawer-padding-primary);padding-bottom:0}.ep-drawer__header>:first-child{flex:1}.ep-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.ep-drawer__footer{padding:var(--ep-drawer-padding-primary);padding-top:10px;text-align:right}.ep-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--ep-font-size-extra-large);color:inherit;background-color:transparent;outline:none}.ep-drawer__close-btn:focus i,.ep-drawer__close-btn:hover i{color:var(--ep-color-primary)}.ep-drawer__body{flex:1;padding:var(--ep-drawer-padding-primary);overflow:auto}.ep-drawer__body>*{box-sizing:border-box}.ep-drawer.ltr,.ep-drawer.rtl{height:100%;top:0;bottom:0}.ep-drawer.ttb,.ep-drawer.btt{width:100%;left:0;right:0}.ep-drawer.ltr{left:0}.ep-drawer.rtl{right:0}.ep-drawer.ttb{top:0}.ep-drawer.btt{bottom:0}.ep-drawer-fade-enter-active,.ep-drawer-fade-leave-active{transition:all var(--ep-transition-duration)}.ep-drawer-fade-enter-from,.ep-drawer-fade-enter-active,.ep-drawer-fade-enter-to,.ep-drawer-fade-leave-from,.ep-drawer-fade-leave-active,.ep-drawer-fade-leave-to{overflow:hidden!important}.ep-drawer-fade-enter-from,.ep-drawer-fade-leave-to{opacity:0}.ep-drawer-fade-enter-to,.ep-drawer-fade-leave-from{opacity:1}.ep-drawer-fade-enter-from .rtl,.ep-drawer-fade-leave-to .rtl{transform:translate(100%)}.ep-drawer-fade-enter-from .ltr,.ep-drawer-fade-leave-to .ltr{transform:translate(-100%)}.ep-drawer-fade-enter-from .ttb,.ep-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.ep-drawer-fade-enter-from .btt,.ep-drawer-fade-leave-to .btt{transform:translateY(100%)}html.dark{color-scheme:dark;--ep-color-primary: #589ef8;--ep-color-primary-light-3: #4475b4;--ep-color-primary-light-5: #365986;--ep-color-primary-light-7: #283d58;--ep-color-primary-light-8: #223042;--ep-color-primary-light-9: #1b222b;--ep-color-primary-dark-2: #79b1f9;--ep-color-success: #21ba45;--ep-color-success-light-3: #1d8836;--ep-color-success-light-5: #1b672d;--ep-color-success-light-7: #184623;--ep-color-success-light-8: #17351e;--ep-color-success-light-9: #152519;--ep-color-success-dark-2: #4dc86a;--ep-color-warning: #f2711c;--ep-color-warning-light-3: #af551a;--ep-color-warning-light-5: #834318;--ep-color-warning-light-7: #573016;--ep-color-warning-light-8: #402716;--ep-color-warning-light-9: #2a1d15;--ep-color-warning-dark-2: #f58d49;--ep-color-danger: #db2828;--ep-color-danger-light-3: #9f2222;--ep-color-danger-light-5: #781e1e;--ep-color-danger-light-7: #501a1a;--ep-color-danger-light-8: #3c1818;--ep-color-danger-light-9: #281616;--ep-color-danger-dark-2: #e25353;--ep-color-error: #db2828;--ep-color-error-light-3: #9f2222;--ep-color-error-light-5: #781e1e;--ep-color-error-light-7: #501a1a;--ep-color-error-light-8: #3c1818;--ep-color-error-light-9: #281616;--ep-color-error-dark-2: #e25353;--ep-color-info: #42b8dd;--ep-color-info-light-3: #3487a1;--ep-color-info-light-5: #2b6679;--ep-color-info-light-7: #224550;--ep-color-info-light-8: #1d353c;--ep-color-info-light-9: #192428;--ep-color-info-dark-2: #68c6e4;--ep-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);--ep-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);--ep-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);--ep-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;--ep-bg-color-page: #0a0a0a;--ep-bg-color: #141414;--ep-bg-color-overlay: #1d1e1f;--ep-text-color-primary: #E5EAF3;--ep-text-color-regular: #CFD3DC;--ep-text-color-secondary: #A3A6AD;--ep-text-color-placeholder: #8D9095;--ep-text-color-disabled: #6C6E72;--ep-border-color-darker: #636466;--ep-border-color-dark: #58585B;--ep-border-color: #4C4D4F;--ep-border-color-light: #414243;--ep-border-color-lighter: #363637;--ep-border-color-extra-light: #2B2B2C;--ep-fill-color-darker: #424243;--ep-fill-color-dark: #39393A;--ep-fill-color: #303030;--ep-fill-color-light: #262727;--ep-fill-color-lighter: #1D1D1D;--ep-fill-color-extra-light: #191919;--ep-fill-color-blank: transparent;--ep-mask-color: rgba(0, 0, 0, .8);--ep-mask-color-extra-light: rgba(0, 0, 0, .3)}html.dark .ep-button{--ep-button-disabled-text-color: rgba(255, 255, 255, .5)}html.dark .ep-card{--ep-card-bg-color: var(--ep-bg-color-overlay)}html.dark .ep-empty{--ep-empty-fill-color-0: var(--ep-color-black);--ep-empty-fill-color-1: #4b4b52;--ep-empty-fill-color-2: #36383d;--ep-empty-fill-color-3: #1e1e20;--ep-empty-fill-color-4: #262629;--ep-empty-fill-color-5: #202124;--ep-empty-fill-color-6: #212224;--ep-empty-fill-color-7: #1b1c1f;--ep-empty-fill-color-8: #1c1d1f;--ep-empty-fill-color-9: #18181a}html{font-size:20px}body{font-family:Inter,system-ui,Avenir,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}a{color:var(--ep-color-primary)}code{border-radius:2px;padding:2px 4px;background-color:var(--ep-color-primary-light-9);color:var(--ep-color-primary)}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.dark [i~="dark:ep-moon"]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M240.448 240.448a384 384 0 1 0 559.424 525.696a448 448 0 0 1-542.016-542.08a390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}[i~=ep-sunny]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 704a192 192 0 1 0 0-384a192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512a256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.top-20{top:5rem}.z-50{z-index:50}.grid{display:grid}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mr-4{margin-right:1rem}.mt-4{margin-top:1rem}.hidden{display:none}.h-4{height:1rem}.h-6{height:1.5rem}.h2{height:.5rem}.h3{height:.75rem}.max-h-\[600px\]{max-height:600px}.min-w-\[500px\]{min-width:500px}.min-w-\[650px\]{min-width:650px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.w-100{width:25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}[h~=full]{height:100%}.flex{display:flex}.inline-flex,[inline-flex=""]{display:inline-flex}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.table{display:table}.cursor-pointer{cursor:pointer}.list-inside{list-style-position:inside}.list-none{list-style-type:none}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-x-scroll{overflow-x:scroll}.break-normal{overflow-wrap:normal;word-break:normal}.break-all{word-break:break-all}.border,.border-1,[border=""]{border-width:1px}.border-b-0{border-bottom-width:0}.border-l-4{border-left-width:4px}.border-t-4{border-top-width:4px}.border-gray-200{--un-border-opacity:1;border-color:rgba(229,231,235,var(--un-border-opacity))}.border-orange-500{--un-border-opacity:1;border-color:rgba(249,115,22,var(--un-border-opacity))}.border-teal-500{--un-border-opacity:1;border-color:rgba(20,184,166,var(--un-border-opacity))}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.border-none{border-style:none}.border-solid{border-style:solid}.bg-orange-100{--un-bg-opacity:1;background-color:rgba(255,237,213,var(--un-bg-opacity))}.bg-teal-100{--un-bg-opacity:1;background-color:rgba(204,251,241,var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-100{--un-bg-opacity:1}.fill-current{fill:currentColor}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-3{padding-bottom:.75rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pie,[pie=""]{-webkit-padding-end:1rem;padding-inline-end:1rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-orange-700{--un-text-opacity:1;color:rgba(194,65,12,var(--un-text-opacity))}.text-teal-500{--un-text-opacity:1;color:rgba(20,184,166,var(--un-text-opacity))}.text-teal-900{--un-text-opacity:1;color:rgba(19,78,74,var(--un-text-opacity))}.underline{text-decoration-line:underline}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,.1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}@media (min-width: 640px){.sm\:w-full{width:100%}.sm\:pb-4{padding-bottom:1rem}}@media (min-width: 768px){.md\:w-full{width:100%}}@media (min-width: 1024px){.lg\:w-full{width:100%}}@media (min-width: 1280px){.xl\:w-40\%{width:40%}}@media (min-width: 1536px){.\32xl\:w-40\%{width:40%}} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..81579a00fd18dd9f19d60289bc0ffbab775da1c7 GIT binary patch literal 5430 zcmc)OdDM+%7Y6Xxl$1(E8j*z3oT3R$$SQ>>O-d4JL=zP%(xjr1q7fxcR4SU4p)@EO zXf&i~jz+ul+h4~zpS8a4pYMUJ(dSu|=GD=9%%;S6{{N zzyBUDyzoL^-)5U_at-mCxAV?B$GPX88<$;nS@i7LGj6=`#+W*FY8-ONAZ>$u~N zJ7VR^mGReKf91TBPC6;J+G?vf=bUq5;J|@#(M1=<%$YOewbx$Dc>DJ4n=xE_?X`Kv zi!Z+T9|R)y+i$Ethpa1uD$x|s~Oj!haQ?(z7l z$dM!CrkiexyY9Lx+P7~X&6+h!?B(<3n{SRUzW5?B@Z0I9pPqUA>8GDEcIR5OXi@z9 z^Uv|rQ%}XIr=FVcaFc_lpME;$|M0^PF>&I=#77Qb2;+wydMM;_&YU@k+0|EHojG2z zWJ$dJ_S^CC#~;V2QKMqTiWTwo*Iy^j&ph)?&Tr75LFQ=4kRfsO(MLy@E?uH)*RHW} z;lf;N@ZiD8f$rVA$Ju9}9Zx>_WOVM_IbW~8{(9`T+ir32!3W27+ie#eI&_Futy;zQ z+i#y7*mc)kqjv4uam+EteX+`cbHVB5mtT%$%a&#SUwrY! zj9;vBFlNk{oC6=9-+%x8+|PPA@#dRv#+P4ynYqEO-+ucoIrhyr-^4rbyp!i~#={Rk zJaw~R!Ggef=Yk_G!PtFrvuf3;>SDeutS~~@9a+l z{A|MwH_Y?%9r)1=E#qJ5zzd$_92F~8%(d28XPwx3>#g&QyX>+{uGzF{)AYIr9(W*b zzy0>i0epG;zWeSQx7>0|dR?trwW50U>KTjJ)d|?pJYDeT(n0srrcFzaw12f~)iU?( z+O^BI_u6Z(T#HY_K&*UJZBhfyI_s=l-!)!tzIvce?6~8O$(hYI+bq3?2GyxjJuF_l zIQ6L($@#kLuABSw3$gQXXXYVdpecU9ckrNo{rY)+{y1*jxZu0u!i~*0-#lv8tQpQi z%e?lJPd-Ucgu`c_eHQcP&CC1Xjo&-%v{T}@>86`T!-fsBw&D~2-(!zGQV)Fk)?07Q zHN{l7Zr#i|uOB{qc>1U7&eObk^WbGZ!-OB;f&F2LQ?9FXw6pQX8%O!_<+JXKTisP> zooCA}w@hw3i+buE59t;sti#Xs4r-h@)%x?#KR+>rA-qd_1=^5*dBedLEm~v@n{2X4 z_6+J)(VNu(I)NFFho5@vOmu;R&Z@?b9z8niyU*6873cf>^Uq7^m!ItqZ#jh<%=A5a z8+eL=w_6A2pMCb(4zklY(9{ljR=bp>BT!(?UX<0wA_K+ifWq)Ud z!O)>YlgBhflX#8?lO|1y*|TS7A0RLCAy$4PKI@-$+G*Jv;3yBX)*ElUkzUBl)*iUT zx712|@LT7DpIG+Zd+*eSeo#M2&tio&&EPKm;y>Jn4I7sIfId(kiGRFEj{ej6#q3_S zR-Y;c>(M^^{C@JuC#S#jczN~R*}dycU@m6oo;!DLuAw)Efu7B8#U8B`0~%BN^=W!R zF`KLRv9~qEZXX&`r=6WA;GezVW`A6Ajm~g`9_>$G_^lq54qDWAsvTm0kNRpYekvyY ziEe06F4L5Pu`gEeNEc&}1M=!;n^zOK)r{@9Y7-Ga@Ysu;J&p)5>mDUOKaSAW^ znts*q)}JwBM#hNydPF^zwSWEf*X-4NSK}Ue6GJ@8loq zP4j~9)0Sr&wO>4X2|W~!snK!(7Z|~sx9}o;A`a6LozR8eh#%v3(bx4x*5Su+>D{|` z*2da}=MizKfBFXXh*rd7ZQ8F~xpLMeeK9|QrCv?#pbZ+8TlGO)Ma{zURMiAQdDsI}n2FATYn z3w?<5=&j5(2j=3`N0={%G$G&gf8TxgrFQug-0bYDz$+f=In}yq2@G5p6aI}U zXcAXkQ!9BD4cJG0r6F3BZ}Y$X_S@u*9z-q1YdpkfK3wz$dU^NVcaxX&DJHRaPSGcr zYh67H%=O586$jz!eE7*9=mFP?!+!jus4ds6#Y_1mZPO&4(kfoaJMPMxGuq!e^sBGK zbsRHKtok09`~L#&c-AZ(?k&EG*L@eK|5@l0oROcXDF&~{N8He}iAArb zj_7&d;4IGP%<76~3Gc-^!+Ut7{~vjYL9Y*g+^1*xx3}kNIj2X%GrZV%jC}f^fg0=F z{2Zn{l84eO4#-RKvv)7Qi_yy*_t;;qJ%8!_ah!JGuSYh_>+(-ui);8P7H7t}BF5hB z<67x(y%>|dVFDjL08P*mOsvi8c$J*EuQ?EiryIj literal 0 HcmV?d00001 diff --git a/images/edit_help.png b/images/edit_help.png new file mode 100644 index 0000000000000000000000000000000000000000..707e04a94caf3c80f973817c385acfb4cee185f6 GIT binary patch literal 3330 zcmV+d4gKKLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-kiKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0006lNkl%oraen zkC2iSi?*S05sDNb8Yf=lm1RpaDa;Z!0i@U_v87C7Yi1-LfBOE*jL=$Z3Np&8)e76T zky0|7&2j^#wZl2H`lI1Zc5CWdV`n^=~`dcDpSs1O1n z1OSW0B8IJ0Dww8;=XtsHY7|AWXG^6LwOS3|_j3t)uP%TDkWv;R8x(`Gkg!^7ic%N; z!=A0&W&!FtiucRIYp-8Oh9-bw@(Dgam`ebgrqq79QH;MISZKg#uou4@L93zZ)I}oD z)XKU}4BBZ6-uA@dO&i6BYk2iiG8_noX+4`vS&ieyZ|z4%Kv7Jt;VUq{QP~7o!X}PY zaBBUhM}Mdzd{afDD3wFbuP7o0(3xpjEiqfhs0bh5K(jdo1WQAA>FEP-6Y6 zbQ;+GCO3=m?Jj;^?m)qH(t`q&Q*@fNsv3fa7I^$jGCGz=tL%OtaeyULR?ypid3mdM zbC!8L#a%o}7ii@)7O;Af%R9w*sd=|NodP>;!JAeFsVfce(}CoweR|Kub9ubN{i(8P zn;EMo8TJ0sNg>N@a8}r&fEG{LLLC^hu3%?ZHi{zZ^?EJ=_cN6Q@O_^~qmfHkAq3@e z+!aXIb@4n8+qQG7Xt&#qi-KVo^!xqX-FMw9x__B0igZn1sMPgi0C>~Z9oTY4i~s-t M07*qoM6N<$g6tMBQvd(} literal 0 HcmV?d00001 diff --git a/images/ife_main_colour-300x59.jpg b/images/ife_main_colour-300x59.jpg new file mode 100644 index 0000000000000000000000000000000000000000..acc7ace18fa816093fa01dbf4f132a197298a1f4 GIT binary patch literal 6740 zcmbW5XIPU>x9@Ly7o{Urihw96(xgQ|O6W+F&_qNC2uSaVf{0QTDN2>ziAa+oMM?xj zq(hLB1Vl<8krp5%o9BJ^-sfEV(>`a-tobna%v|%Ed(B+`8OkhW88~mG57q~$r~rWK zECCcUpsssYPutr3u9~RF!)sno+&x4?Zpd91l@1Ps`g(|hjSNJMEc6USLzER{u8R5x zyFP{ng^Oy6-n!0AnFn+M8fxl)@|n?|WjaPWI$ByfW(Ed&MpkB4Ru*O!7PfO7=h@C( zILE?rp6C1pPA+b4ZdP_)J{~SU4lZu4e+HqVIqO49$3#cR#Kp$K#`XVfly2YxBcM)o zm4-?TpuRvwbAgJ|2Z)?O(oy}(fd4cq>a#i0GcYnSvz#?(IuB4&(a=!S()=^)v)0jP z-vQbSbR3s%Xw!3Ax-y9Qb16J~Q^+W;Q{TgVcMLCa^Fcri6EhDlAOA(k%Tm%ZR}__$ zRa9@O>E6-PH!uVnSy|iI+TF8B&YQye9wzadck$d00>+qmBoxt-gn!WfMfSe~i~0W|`){!S!-WD^X{gSA9?b;+ z1RPzFsq@GXPXU*_`DUXhkty|o`b$@DL47C^#I+8suqVoq1;Tj)ST;ZVJanZ1j;n9( z!9?xGy6`4T&(zEc%Qp%*_j5e!>T0*Mkw*6E+$~oMOW)CuTvRP0UB7q|3n>7d_GD0( zpwlc-z84aF7{9gV37f0b$akN$iuuF!G{Ju$RPcUokVxZ$KofUIYy5j3Nh$VM!+xeS z`+r~_x>WJyI;u&JQFrIAokkRJ5h(zACaIIhtJswAD7n(p?lDuc?_}KTbESgrj**p0 zb3~N`2Vy;erh6=`SNo?#Cw{Mf_=+>!a~_$I{N8a3O7q0BJp|JQ?og^F-aOblEs*P+ zE02CXH0pCz0sVVI-bULl8Gkc*sGHDg#<-GzIJxF&=gfPW3a>|`OK#^0H+ZO}#29YZ zS;qfn3(p8k>5x`jub4`je3)M~qG{Xd?BS!4oxV|R+7^%qt=(%*-2q9FE}?7vkdV{5 z<>2*GQZNIuj&Q z!jjc^lY?q7o7ztA%#%?cHDB=gj$5>LQxPpV77QXrq|x9xnWb$$EK6^)ywSnO#lqtx zNO{80(k+C6L%~P%7Qbsth#7dV;p!-_0SA88u>Uji{o+Y*L)&~kGNv27@zbWBtz@CG znF0iAsZxL!=ZHrXKqsnzsM1IQuv7a5Bu;UouAds02%JWfV?~o!mC)Y)oT|}j60Y_E zOboQb+Wirsxa1QfFAC7$@>|k7SQ>}{5bWXtVcL$ctRF9E~a{Ulx zK2s-VC^e;_Kl4dX*r?brXDDg+shR9=LKw-{E#12I<#THR+ZLEl=;MQrL=$E98*x_@ zd?AbE>>z_Vn_YR_=!sSs;vg1Z{z7qwnT6B8+@Ci;eNyghE^DJ{dMs9o*@2>LG%!jF*xOsQt}Zevw%8ze5gt4AHQec zHu!nJ`J{M~0z8DrLDqWU&yEe^H1w~%sP@+Uo)(?vqM)Hsv-zTXOE2ouNo15I0n`UV z@$7c zt5qqgGNNc{_)}uLMn#J^4zTMcgC75CGp=`I$US*Clh5_JYd*WC?55+)_oYu}sf6C%EZCI-tX84o^kv42 zJ$1gg)qCF*_|3ORhX;O`MqvqW55|aZ2*VilFoESy3lJzyR-0}hKNgoY58Er#C6{R} zCzqVNcOatfK$kdD-|)MVKcF-m5hoi;Zr02WtI=|aiz}2~XxAgzfxx?ZFsHB_G!o~H zcQAO{ze~(=>S$_oQCqz~J#X>%e1JVVi8*_MOev#5;u)P|=3uf$?T z2O^@h{5|Ps5ryCA^<2>I626v5(G&#+Ia$fPi|m{_C0;$gn1g+l-rxS!HWt+kOqz(v zZb<jkJ#^m>0DsE*=fVG;Z!lBK_d50v!2#ZVOv0=td5bq3tkCkEz%U3km0;PFhU8`DZlp&GPWYwg)vjwL1( zBPc+RZE#}pHSAcY$lUA(>u38NrOTg_+3Wg~S>Q`LohIX*iko9m&%8@Y&a$&`uz?RM5n4{;uoPfStb^ptQO6RW$GkCaJ`*nVE=o_s z_DR)vs3{y*{!0lzO5%1SgDJo>_?C$wDL^T^3ma@q`6E))7cuMQTgU2;Gl50T#Ta}AiR zmr8(M|ohH*v38jRs|`h)v#>mQIyg8=Y_KAJliiK ztCN35tg)%ZRt0Y$gQ$au!-*=*G;^ZNbfuz?U;(4A5FfX@kM>K^ecEvDUB9i?3NMHO z&J8VOXEau~m%}mwE#ztEt5M#~)aCanzGQQ}9Q}*nQsyjoS_9(@1NB;Y-z0A8O^O?S ze}h`js{i%N#Q$rJXWz=n^0^he7}yZJi30TPpj0rwP>$I=uiViBs;jMET4NUdl=*(# zxpDMDr*zndEUZ(H6okehw(##>{p>kWRYjSOY!=TcRZnK`wGz18>^Mhd7bLk?=l(<^ z^dtrC)(qxY^kt+!&=tK+kf!o1!6X2VmS6)epwUtf5RxuR0RH9cdR&0zKb|0cY{9U* zsxMuFSa%~_f}S0e)Rv10ko(-n_7s4&k^-c8WBpE8kQAUu4+gbc_akvslfj7Ot}S^H z@+VllS#EeI0wxy4N7O5cI)`V=dLE>n*j}qP4R#01=Q-bf7_cU3 zV_>!JY=s5QT6O2E5*z#p^e5IcV$)JzUYr)jggvJ=Jiq~bgUD|;M{6U>U%=F&K!nUD z?-Ea#+<23z{>DuSo`V^xYztoh`PtVUuW!-hT0PcMkJ6k9X44rM?LRi{pGvyvXf7BE zWTc3i)UfL_#kTwUr+7DW2Qn*p*lG*~EX*yAcIMfSTnRI3#G2XqJ9y7-Z+?ZT!vPF|3)+v=pBaU>rUZV)6jhE?N-eFDJw~$4NgRlt>EoEe3gQIh zO9O+}o%4Du7ydYIlWq31zEXhao!rD*=y!V}Owb$95a!Uq#>_O2?Z3AMA00}i#L^`6 z5Q|TA!gSF#&)<4o%;=aozY)^*@Sys-UEFWa!D|KE2GZ%N+X=HXT1sJ@y>{8bW!0E3 zSH7-UB;3Lk=cBDVd~X|o7Hp+}W~y4kz1&eD#*5_MnGp-tdAP zb%<;_v4FsCO0-{Q^XrG?l+Ojt+vT}Isl&Iqwq7cqV`=7!eB+q@l|8;wkieVR zgk#Xjfh2%Gyg(601+LVyHNEG~@x6}pWS-;yW1hvTFSgVdSP{&!JlIGq!BB}T+2-G3LxouJotPiRN&7VvAc+E8Xac=B zz8tTdTr%&imXD~J_ryCaEC__fj(n!~U|a$0PQI+`vfBnES;MX&$}z|*lbGC`d06>} z{h|&E(3`J7(9aRvjnbJ25@CgOOdmAgo%KQlubIkjS^MCTjhWK)H`5lX*c0JGQ8)34 zy^!DK6^pw5p`{XRa=B@78A<&erE7)v(=L$FRrkC;RaEvkb)xF>Z1XJgBK%`>^U`+8 zmm@T}M?DM9N2y?LBaNqhax2#~LAGG-6S;knVKK?>wDt_uC~LWjX!%lpS*z(_xH(lGIDX z3QW4D(Tl=EEO8!^=LFezxVP#3m$(xNp%~lt zyLWl6*0=t79#owoTvJy0cdjWqXndx#)9`Ms*^R(2(Eu21h+{<*j(ASkk3sx4M9c2aQ4INu7)Yp(K?EzgK&k?csiJO$@;C zq-fP49qpBy=brB4!03(YCV{$5o5NZv+p@!u=={`e4-f6Sn|&03<8e^5?TpE%wu!pn z3zc)T&hw5=FY_0CRk*}sTfg14QC--$B2RP{1~@h>3wYO=QIF;QBiq&u=8C~lWl(lJ zM!O{+yspzb1y$l9-`=z``(d~(T_$ zlFZ^C2((-W33Slatw(g0x?)D;HjswelB9LjdEfZ$cKD|!PZrLpDn>gucVZ_@^U=7< z^_^=`KQIZq_8=%IuD&NwHf;0GoG)6Ue>_criI!^6QC6r|9N2Zxk|g#n7cks|wzQ2V zD2`}N+)ez^kZBy(-*=DUyNQQP%(?AY@oYafC&fIK(3QUGacGlLdA2&Ip1-psacbF| z;WX#Otsmm_thL$r8*LWwzA$?J;q9BPX45MVpO`+_05yVQYhYqwR$q;)P>!P*b>)u6 zwgfapfkppg1#)pWw0WEze^ERRq3Omjg`0np5n;J#yt5qQda?Yxpny)%9Qc%UOy7ym@$P_d69XP61%4#iZ2F zfzA#DhOZHw2m%tV-vWKO3ym;1K+M!p3zznz37jiAr}O{QXWA79h!)U zawX8OD;DrCu9Fp8nj<4kIo3>5*opgwkmOti$(fS~u~*C*)DJwYbNaGzws?#amz!qnxfjqB3_;N#L6W z_;FMp>)TxB-Myb32KX5aTR{SQ%nr%LJrb>cjjz8A8GI zeErdEdI47bL%EI+Q}rcS^A;)P6&kBtl9%1o>4IPTe)hx#WAKJ?5z3$XX=oR9*F&9! zr&7NSOF)9BeiU+z%@>}5ShLb!FVELMlg%i3^ggn$ma_+C9pO6l_yIvLZn_w_{{bQc zS9f$-hl zi9UWN(~l- zy8P7-;qQA`#ILA~bYJ^fXE;c+5vvC^zEN%J)mj?4uNRfEdbg>`Cj|H;+6M~ei0=oxuWzix7-#>Z!YI0i#8#_s`Ut)l< zZDu>SqK9ie4Ai3gvw9OX+2l)RN1$O6uZI$24DU1Nrf6=idr6ajX2(8%kTGsIQL&wh`q)+v`S;HG2X-|0cg^=Fk`FP%@aa^uZ_E!ZP+%rw> z`kH7>;&}D?nn?+va`N5dN_0m7z*sa#WJm&Z`zK5uXc!4c|d?I{byxcxE zJdj$|-SW4sFd!uJ2H%`+ZdAfK*$sIJgBKiS6CvrngfPp&O?15nS(ZkSw7x_RuQ`kMJagk%{KSDOhha|Q2@lRGu8G!;k8Ap + + + + + SOCRATES Web + + + + +
+ + + + + diff --git a/parameters.json b/parameters.json new file mode 100644 index 0000000..7e7fab8 --- /dev/null +++ b/parameters.json @@ -0,0 +1,52 @@ +{ + "cn_rate_1": 0.84, + "cn_rate_2": 0.07, + "cn_rate_3": 0.055, + "cn_rate_4": 0.0009, + "cn_rate_5": 0.95, + "labile": 2, + "stable": 98, + "pasture_mf": 0.16, + "fallow_mf": 0.9, + "crop_mf": 0.26, + "bd": 1.3, + "dlayr": 10, + "depth30_10": 2.33, + "cn": 60, + "cnl": 40, + "porghum": 0.03, + "grz": 0.6, + "root_grz": 0.55, + "root_p": 0.5, + "root_gl": 0.4, + "root_wgt": 0.4, + "hi_0": 0.42, + "hi_1": 0.42, + "hi_2": 0.42, + "hi_3": 0.42, + "hi_4": 0.35, + "hi_5": 1, + "hi_6": 1, + "hi_7": 1, + "stored_hfc": 3, + "temp_amplitude": 30, + "rain_amplitude": 30, + "temp_rand": 20, + "precip_rand": 30, + "annpar": 75, + "heavy_retained": 40, + "light_retained": 70, + "base_retained": 88, + "nurate": 0.2, + "tam": 48.5, + "ef1": 0.01, + "ef2": 0.0035, + "n2o_n": 1.57, + "gwpn2o": 265, + "co2_c": 3.67, + "fracf": 0.1, + "fracu": 0.2, + "fracl": 0.3, + "ch4_sheep": 8, + "gwp_ch4": 28 +} diff --git a/sample-data-20-year.json b/sample-data-20-year.json new file mode 100644 index 0000000..27a8afa --- /dev/null +++ b/sample-data-20-year.json @@ -0,0 +1,65 @@ +{ + "version": "1", + "soil": { + "soil_properties": 7, + "cec": 80, + "initial_oc": 1.15 + }, + "simulation": { + "start_year": 1963, + "period_length": 20, + "rotation_length": 3 + }, + "climate": { + "climate_method_data_entry": 1, + "average_annual_rainfall": 600, + "annual_mean_temperature": 16.7, + "randomize_rain_and_temperature": 0, + "annual_rainfall": [ + { + "rainfall": 1 + }, + { + "rainfall": 1 + } + ], + "month_rain_temp": [ + { + "rainfall": null, + "temperature": null + }, + { + "rainfall": null, + "temperature": null + } + ] + }, + "rotation": [ + { + "year": 1, + "plant": 6, + "stubble": null, + "graze": null, + "fertiliser": 0 + }, + { + "year": 2, + "plant": 0, + "stubble": 0, + "graze": null, + "fertiliser": 200 + }, + { + "year": 3, + "plant": 5, + "stubble": null, + "graze": 1, + "fertiliser": 0 + } + ], + "yields": { + "yields_method_data_entry": 1, + "annual_yields": [ + ] + } +} diff --git a/spa_github.js b/spa_github.js new file mode 100644 index 0000000..3bc48f2 --- /dev/null +++ b/spa_github.js @@ -0,0 +1,20 @@ +// Single Page Apps for GitHub Pages +// MIT License +// https://github.com/rafgraph/spa-github-pages +// This script checks to see if a redirect is present in the query string, +// converts it back into the correct url and adds it to the +// browser's history using window.history.replaceState(...), +// which won't cause the browser to attempt to load the new url. +// When the single page app is loaded further down in this file, +// the correct url will be waiting in the browser's history for +// the single page app to route accordingly. +(function (l) { + if (l.search[1] === '/') { + var decoded = l.search.slice(1).split('&').map(function (s) { + return s.replace(/~and~/g, '&'); + }).join('?'); + window.history.replaceState(null, null, + l.pathname.slice(0, -1) + decoded + l.hash + ); + } +}(window.location));