ptSend/view/dist/assets/index-54b3342f.js

108 lines
893 KiB
JavaScript
Raw Normal View History

2023-06-14 07:43:04 +00:00
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const r of l)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const r={};return l.integrity&&(r.integrity=l.integrity),l.referrerPolicy&&(r.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?r.credentials="include":l.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(l){if(l.ep)return;l.ep=!0;const r=n(l);fetch(l.href,r)}})();function Rl(e,t){const n=Object.create(null),o=e.split(",");for(let l=0;l<o.length;l++)n[o[l]]=!0;return t?l=>!!n[l.toLowerCase()]:l=>!!n[l]}function Ke(e){if(Le(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],l=Ze(o)?IS(o):Ke(o);if(l)for(const r in l)t[r]=l[r]}return t}else{if(Ze(e))return e;if(lt(e))return e}}const TS=/;(?![^(]*\))/g,OS=/:([^]+)/,MS=/\/\*.*?\*\//gs;function IS(e){const t={};return e.replace(MS,"").split(TS).forEach(n=>{if(n){const o=n.split(OS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function E(e){let t="";if(Ze(e))t=e;else if(Le(e))for(let n=0;n<e.length;n++){const o=E(e[n]);o&&(t+=o+" ")}else if(lt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ao(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ze(t)&&(e.class=E(t)),n&&(e.style=Ke(n)),e}const NS="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",PS="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",xS=Rl(NS),AS=Rl(PS),RS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",LS=Rl(RS);function Ay(e){return!!e||e===""}function DS(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ls(e[o],t[o]);return n}function ls(e,t){if(e===t)return!0;let n=yr(e),o=yr(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=ua(e),o=ua(t),n||o)return e===t;if(n=Le(e),o=Le(t),n||o)return n&&o?DS(e,t):!1;if(n=lt(e),o=lt(t),n||o){if(!n||!o)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const s in e){const a=e.hasOwnProperty(s),u=t.hasOwnProperty(s);if(a&&!u||!a&&u||!ls(e[s],t[s]))return!1}}return String(e)===String(t)}function Ry(e,t){return e.findIndex(n=>ls(n,t))}const Oe=e=>Ze(e)?e:e==null?"":Le(e)||lt(e)&&(e.toString===By||!Ye(e.toString))?JSON.stringify(e,Ly,2):String(e),Ly=(e,t)=>t&&t.__v_isRef?Ly(e,t.value):ar(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,l])=>(n[`${o} =>`]=l,n),{})}:ju(t)?{[`Set(${t.size})`]:[...t.values()]}:lt(t)&&!Le(t)&&!Fy(t)?String(t):t,Vt=Object.freeze({}),Yr=Object.freeze([]),Tt=()=>{},Dy=()=>!1,BS=/^on[^a-z]/,ja=e=>BS.test(e),fu=e=>e.startsWith("onUpdate:"),Xt=Object.assign,Gf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},FS=Object.prototype.hasOwnProperty,ht=(e,t)=>FS.call(e,t),
`),l]);else{const r=[`[Vue warn]: ${e}`,...t];l.length&&r.push(`
`,...$k(l)),console.warn(...r)}$r()}function _k(){let e=dr[dr.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function $k(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
`],...Ek(n))}),t}function Ek({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,l=` at <${lc(e.component,e.type,o)}`,r=">"+n;return e.props?[l,...Tk(e.props),r]:[l+r]}function Tk(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...ub(o,e[o]))}),n.length>3&&t.push(" ..."),t}function ub(e,t,n){return Ze(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Nt(t)?(t=ub(e,bt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ye(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=bt(t),n?t:[`${e}=`,t])}function Ok(e,t){e!==void 0&&(typeof e!="number"?je(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&je(`${t} is NaN - the duration expression might be incorrect.`))}const np={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Go(e,t,n,o){let l;try{l=o?e(...o):e()}catch(r){Xu(r,t,n)}return l}function qn(e,t,n,o){if(Ye(e)){const r=Go(e,t,n,o);return r&&rs(r)&&r.catch(s=>{Xu(s,t,n)}),r}const l=[];for(let r=0;r<e.length;r++)l.push(qn(e[r],t,n,o));return l}function Xu(e,t,n,o=!0){const l=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,a=np[n];for(;r;){const c=r.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,a)===!1)return}r=r.parent}const u=t.appContext.config.errorHandler;if(u){Go(u,null,10,[e,s,a]);return}}Mk(e,n,l,o)}function Mk(e,t,n,o=!0){{const l=np[t];if(n&&Li(n),je(`Unhandled error${l?` during execution of ${l}`:""}`),n&&Di(),o)throw e;console.error(e)}}let fa=!1,kd=!1;const vn=[];let _o=0;const Xr=[];let ko=null,ml=0;const cb=Promise.resolve();let op=null;const Ik=100;function Fe(e){const t=op||cb;return e?t.then(this?e.bind(this):e):t}function Nk(e){let t=_o+1,n=vn.length;for(;t<n;){const o=t+n>>>1;pa(vn[o])<e?t=o+1:n=o}return t}function Zu(e){(!vn.length||!vn.includes(e,fa&&e.allowRecurse?_o+1:_o))&&(e.id==null?vn.push(e):vn.splice(Nk(e.id),0,e),db())}function db(){!fa&&!kd&&(kd=!0,op=cb.then(hb))}function Pk(e){const t=vn.indexOf(e);t>_o&&vn.splice(t,1)}function fb(e){Le(e)?Xr.push(...e):(!ko||!ko.includes(e,e.allowRecurse?ml+1:ml))&&Xr.push(e),db()}function Zh(e,t=fa?_o+1:0){for(e=e||new Map;t<vn.length;t++){const n=vn[t];if(n&&n.pre){if(lp(e,n))continue;vn.splice(t,1),t--,n()}}}function pb(e){if(Xr.length){const t=[...new Set(Xr)];if(Xr.length=0,ko){ko.push(...t);return}for(ko=t,e=e||new Map,ko.sort((n,o)=>pa(n)-pa(o)),ml=0;ml<ko.length;ml++)lp(e,ko[ml])||ko[ml]();ko=null,ml=0}}const pa=e=>e.id==null?1/0:e.id,xk=(e,t)=>{const n=pa(e)-pa(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function hb(e){kd=!1,fa=!0,e=e||new Map,vn.sort(xk);const t=n=>lp(e,n);try{for(_o=0;_o<vn.length;_o++){const n=vn[_o];if(n&&n.active!==!1){if(t(n))continue;Go(n,null,14)}}}finally{_o=0,vn.length=0,pb(e),fa=!1,op=null,(vn.length||Xr.length)&&hb(e)}}function lp(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>Ik){const o=t.ownerInstance,l=o&&pp(o.type);return je(`Maximum recursive updates exceeded${l?` in component <${l}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let _l=!1;const Br=new Set;Vy().__VUE_HMR_RUNTIME__={createRecord:Ac(vb),rerender:Ac(Lk),reload:
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";je(`Failed to resolve ${e.slice(0,-1)}: ${t}${a}`)}return s}else je(`resolve${El(e.slice(0,-1))} can only be used in render() or setup().`)}function nv(e,t){return e&&(e[t]||e[Xn(t)]||e[El(Xn(t))])}function vt(e,t,n,o){let l;const r=n&&n[o];if(Le(e)||Ze(e)){l=new Array(e.length);for(let s=0,a=e.length;s<a;s++)l[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){Number.isInteger(e)||je(`The v-for range expect an integer value but got ${e}.`),l=new Array(e);for(let s=0;s<e;s++)l[s]=t(s+1,s,void 0,r&&r[s])}else if(lt(e))if(e[Symbol.iterator])l=Array.from(e,(s,a)=>t(s,a,void 0,r&&r[a]));else{const s=Object.keys(e);l=new Array(s.length);for(let a=0,u=s.length;a<u;a++){const c=s[a];l[a]=t(e[c],c,a,r&&r[a])}}else l=[];return n&&(n[o]=l),l}function Jo(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Le(o))for(let l=0;l<o.length;l++)e[o[l].name]=o[l].fn;else o&&(e[o.name]=o.key?(...l)=>{const r=o.fn(...l);return r&&(r.key=o.key),r}:o.fn)}return e}function pe(e,t,n={},o,l){if(rn.isCE||rn.parent&&Gs(rn.parent)&&rn.parent.isCE)return t!=="default"&&(n.name=t),U("slot",n,o&&o());let r=e[t];r&&r.length>1&&(je("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),_();const s=r&&Nb(r(n)),a=ae(He,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!l&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Nb(e){return e.some(t=>Lt(t)?!(t.type===Qt||t.type===He&&!Nb(t.children)):!0)?e:null}function u_(e,t){const n={};if(!lt(e))return je("v-on with no argument expects an object value."),n;for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:vl(o)]=e[o];return n}const Ed=e=>e?Wb(e)?oc(e)||e.proxy:Ed(e.parent):null,fr=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Kr(e.props),$attrs:e=>Kr(e.attrs),$slots:e=>Kr(e.slots),$refs:e=>Kr(e.refs),$parent:e=>Ed(e.parent),$root:e=>Ed(e.root),$emit:e=>e.emit,$options:e=>cp(e),$forceUpdate:e=>e.f||(e.f=()=>Zu(e.update)),$nextTick:e=>e.n||(e.n=Fe.bind(e.proxy)),$watch:e=>e_.bind(e)}),up=e=>e==="_"||e==="$",Dc=(e,t)=>e!==Vt&&!e.__isScriptSetup&&ht(e,t),Pb={get({_:e},t){const{ctx:n,setupState:o,data:l,props:r,accessCache:s,type:a,appContext:u}=e;if(t==="__isVue")return!0;let c;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return l[t];case 4:return n[t];case 3:return r[t]}else{if(Dc(o,t))return s[t]=1,o[t];if(l!==Vt&&ht(l,t))return s[t]=2,l[t];if((c=e.propsOptions[0])&&ht(c,t))return s[t]=3,r[t];if(n!==Vt&&ht(n,t))return s[t]=4,n[t];Td&&(s[t]=0)}}const f=fr[t];let d,p;if(f)return t==="$attrs"&&(Ln(e,"get",t),bu()),f(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Vt&&ht(n,t))return s[t]=4,n[t];if(p=u.config.globalProperties,ht(p,t))return p[t];rn&&(!Ze(t)||t.indexOf("__v")!==0)&&(l!==Vt&&up(t[0])&&ht(l,t)?je(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===rn&&je(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:l,ctx:r}=e;return Dc(l,t)?(l[t]=n,!0):l.__isScriptSetup&&ht(l,t)?(je(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==Vt&&ht(o,t)?(o[t]=n,!0):ht(e.props,t)?(je(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(je(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:n}):r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:l,propsOptions:r}},s){let a;return!!n[s]||e!==Vt&&ht(e,s)||Dc(t,s)||(a=r[0])&&ht(a,s)||ht(o,s)||ht(fr,s)||ht(l.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:
For more details, see https://link.vuejs.org/feature-flags.`)}}const In=Qk;function x_(e){return A_(e)}function A_(e,t){P_();const n=Vy();n.__VUE__=!0,mb(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:l,patchProp:r,createElement:s,createText:a,createComment:u,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:h=Tt,insertStaticContent:m}=e,v=(z,X,ie,Ee=null,oe=null,we=null,be=!1,ke=null,_e=_l?!1:!!X.dynamicChildren)=>{if(z===X)return;z&&!Xl(z,X)&&(Ee=q(z),ee(z,oe,we,!0),z=null),X.patchFlag===-2&&(_e=!1,X.dynamicChildren=null);const{type:$e,ref:Ae,shapeFlag:de}=X;switch($e){case Er:g(z,X,ie,Ee);break;case Qt:y(z,X,ie,Ee);break;case Bi:z==null?C(X,ie,Ee,be):b(z,X,ie,be);break;case He:P(z,X,ie,Ee,oe,we,be,ke,_e);break;default:de&1?k(z,X,ie,Ee,oe,we,be,ke,_e):de&6?V(z,X,ie,Ee,oe,we,be,ke,_e):de&64||de&128?$e.process(z,X,ie,Ee,oe,we,be,ke,_e,le):je("Invalid VNode type:",$e,`(${typeof $e})`)}Ae!=null&&oe&&Nd(Ae,z&&z.ref,we,X||z,!X)},g=(z,X,ie,Ee)=>{if(z==null)o(X.el=a(X.children),ie,Ee);else{const oe=X.el=z.el;X.children!==z.children&&c(oe,X.children)}},y=(z,X,ie,Ee)=>{z==null?o(X.el=u(X.children||""),ie,Ee):X.el=z.el},C=(z,X,ie,Ee)=>{[z.el,z.anchor]=m(z.children,X,ie,Ee,z.el,z.anchor)},b=(z,X,ie,Ee)=>{if(X.children!==z.children){const oe=p(z.anchor);$(z),[X.el,X.anchor]=m(X.children,ie,oe,Ee)}else X.el=z.el,X.anchor=z.anchor},w=({el:z,anchor:X},ie,Ee)=>{let oe;for(;z&&z!==X;)oe=p(z),o(z,ie,Ee),z=oe;o(X,ie,Ee)},$=({el:z,anchor:X})=>{let ie;for(;z&&z!==X;)ie=p(z),l(z),z=ie;l(X)},k=(z,X,ie,Ee,oe,we,be,ke,_e)=>{be=be||X.type==="svg",z==null?O(X,ie,Ee,oe,we,be,ke,_e):x(z,X,oe,we,be,ke,_e)},O=(z,X,ie,Ee,oe,we,be,ke)=>{let _e,$e;const{type:Ae,props:de,shapeFlag:Pe,transition:qe,dirs:Qe}=z;if(_e=z.el=s(z.type,we,de&&de.is,de),Pe&8?f(_e,z.children):Pe&16&&A(z.children,_e,null,Ee,oe,we&&Ae!=="foreignObject",be,ke),Qe&&Kl(z,null,Ee,"created"),M(_e,z,z.scopeId,be,Ee),de){for(const ge in de)ge!=="value"&&!Ri(ge)&&r(_e,ge,null,de[ge],we,z.children,Ee,oe,Y);"value"in de&&r(_e,"value",null,de.value),($e=de.onVnodeBeforeMount)&&So($e,Ee,z)}Object.defineProperty(_e,"__vnode",{value:z,enumerable:!1}),Object.defineProperty(_e,"__vueParentComponent",{value:Ee,enumerable:!1}),Qe&&Kl(z,null,Ee,"beforeMount");const Xe=(!oe||oe&&!oe.pendingBranch)&&qe&&!qe.persisted;Xe&&qe.beforeEnter(_e),o(_e,X,ie),(($e=de&&de.onVnodeMounted)||Xe||Qe)&&In(()=>{$e&&So($e,Ee,z),Xe&&qe.enter(_e),Qe&&Kl(z,null,Ee,"mounted")},oe)},M=(z,X,ie,Ee,oe)=>{if(ie&&h(z,ie),Ee)for(let we=0;we<Ee.length;we++)h(z,Ee[we]);if(oe){let we=oe.subTree;if(we.patchFlag>0&&we.patchFlag&2048&&(we=Cb(we.children)||we),X===we){const be=oe.vnode;M(z,be,be.scopeId,be.slotScopeIds,oe.parent)}}},A=(z,X,ie,Ee,oe,we,be,ke,_e=0)=>{for(let $e=_e;$e<z.length;$e++){const Ae=z[$e]=ke?gl(z[$e]):ro(z[$e]);v(null,Ae,X,ie,Ee,oe,we,be,ke)}},x=(z,X,ie,Ee,oe,we,be)=>{const ke=X.el=z.el;let{patchFlag:_e,dynamicChildren:$e,dirs:Ae}=X;_e|=z.patchFlag&16;const de=z.props||Vt,Pe=X.props||Vt;let qe;ie&&jl(ie,!1),(qe=Pe.onVnodeBeforeUpdate)&&So(qe,ie,X,z),Ae&&Kl(X,z,ie,"beforeUpdate"),ie&&jl(ie,!0),_l&&(_e=0,be=!1,$e=null);const Qe=oe&&X.type!=="foreignObject";if($e?(L(z.dynamicChildren,$e,ke,ie,Ee,Qe,we),ie&&ie.type.__hmrId&&Xs(z,X)):be||I(z,X,ke,null,ie,Ee,Qe,we,!1),_e>0){if(_e&16)R(ke,X,de,Pe,ie,Ee,oe);else if(_e&2&&de.class!==Pe.class&&r(ke,"class",null,Pe.class,oe),_e&4&&r(ke,"style",de.style,Pe.style,oe),_e&8){const Xe=X.dynamicProps;for(let ge=0;ge<Xe.length;ge++){const Ce=Xe[ge],ue=de[Ce],G=Pe[Ce];(G!==ue||Ce==="value")&&r(ke,Ce,ue,G,oe,z.children,ie,Ee,Y)}}_e&1&&z.children!==X.children&&f(ke,X.children)}else!be&&$e==null&&R(ke,X,de,Pe,ie,Ee,oe);((qe=Pe.onVnodeUpdated)||Ae)&&In(()=>{qe&&So(qe,ie,X,z),Ae&&Kl(X,z,ie,"updated")},Ee)},L=(z,X,ie,Ee,oe,we,be)=>{for(let ke=0;ke<X.length;ke++){const _e=z[ke],$e=X[ke],Ae=_e.el&&(_e.type===He||!Xl(_e,$e)||_e.shapeFlag&70)?d(_e.el):ie;v(_e,$e,Ae,null,Ee,oe,we,be,!0)}},R=(z,X,ie,Ee,oe,we,be)=>{if(ie!==Ee){if(ie!==Vt)for(const ke in ie)!Ri(ke)&&!(ke in Ee)&&r(z,ke,ie[ke],null,be,X.children,oe,we,Y);for(const ke in Ee){if(Ri(ke))continue;const _e=Ee[ke
Component that was made reactive: `,e)),H(e,t,n,o,l,s,r,!0)}function nc(e){return e?gu(e)||tc in e?Xt({},e):e:null}function po(e,t,n=!1){const{props:o,ref:l,patchFlag:r,children:s}=e,a=t?ct(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Kb(a),ref:t&&t.ref?n&&l?Le(l)?l.concat(Fi(t)):[l,Fi(t)]:Fi(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r===-1&&Le(s)?s.map(jb):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&po(e.ssContent),ssFallback:e.ssFallback&&po(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function jb(e){const t=po(e);return Le(e.children)&&(t.children=e.children.map(jb)),t}function kt(e=" ",t=0){return U(Er,null,e,t)}function re(e="",t=!1){return t?(_(),ae(Qt,null,e)):U(Qt,null,e)}function ro(e){return e==null||typeof e=="boolean"?U(Qt):Le(e)?U(He,null,e.slice()):typeof e=="object"?gl(e):U(Er,null,String(e))}function gl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:po(e)}function fp(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Le(t))n=16;else if(typeof t=="object")if(o&65){const l=t.default;l&&(l._c&&(l._d=!1),fp(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(tc in t)?t._ctx=rn:l===3&&rn&&(rn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ye(t)?(t={default:t,_ctx:rn},n=32):(t=String(t),o&64?(n=16,t=[kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ct(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const l in o)if(l==="class")t.class!==o.class&&(t.class=E([t.class,o.class]));else if(l==="style")t.style=Ke([t.style,o.style]);else if(ja(l)){const r=t[l],s=o[l];s&&r!==s&&!(Le(r)&&r.includes(s))&&(t[l]=r?[].concat(r,s):s)}else l!==""&&(t[l]=o[l])}return t}function So(e,t,n,o=null){qn(e,t,7,[n,o])}const H_=Vb();let K_=0;function j_(e,t,n){const o=e.type,l=(t?t.appContext:e.appContext)||H_,r={uid:K_++,vnode:e,type:o,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new zy(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Rb(o,l),emitsOptions:bb(o,l),emit:null,emitted:null,propsDefaults:Vt,inheritAttrs:o.inheritAttrs,ctx:Vt,data:Vt,props:Vt,attrs:Vt,slots:Vt,refs:Vt,setupState:Vt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx=c_(r),r.root=t?t.root:r,r.emit=Uk.bind(null,r),e.ce&&e.ce(r),r}let Jt=null;const st=()=>Jt||rn,ss=e=>{Jt=e,e.scope.on()},pr=()=>{Jt&&Jt.scope.off(),Jt=null},W_=Rl("slot,component");function xd(e,t){const n=t.isNativeTag||Dy;(W_(e)||n(e))&&je("Do not use built-in or reserved HTML elements as component id: "+e)}function Wb(e){return e.vnode.shapeFlag&4}let ya=!1;function U_(e,t=!1){ya=t;const{props:n,children:o}=e.vnode,l=Wb(e);b_(e,n,l,t),O_(e,o);const r=l?q_(e,t):void 0;return ya=!1,r}function q_(e,t){var n;const o=e.type;{if(o.name&&xd(o.name,e.appContext.config),o.components){const r=Object.keys(o.components);for(let s=0;s<r.length;s++)xd(r[s],e.appContext.config)}if(o.directives){const r=Object.keys(o.directives);for(let s=0;s<r.length;s++)Mb(r[s])}o.compilerOptions&&Ub()&&je('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=cr(new Proxy(e.ctx,Pb)),d_(e);const{setup:l}=o;if(l){const r=e.setupContext=l.length>1?Yb(e):null;ss(e),_r();const s=Go(l,e,0,[Kr(e.props),r]);if($r(),pr(),rs(s)){if(s.then(pr,pr),t)return s.then(a=>{fv(e,a,t)}).catch(a=>{Xu(
* vue-router v4.2.2
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/const jo=typeof window<"u";function G$(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Rt=Object.assign;function Hc(e,t){const n={};for(const o in t){const l=t[o];n[o]=Hn(l)?l.map(e):e(l)}return n}const Js=()=>{},Hn=Array.isArray;function It(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const X$=/\/$/,Z$=e=>e.replace(X$,"");function Kc(e,t,n="/"){let o,l={},r="",s="";const a=t.indexOf("#");let u=t.indexOf("?");return a<u&&a>=0&&(u=-1),u>-1&&(o=t.slice(0,u),r=t.slice(u+1,a>-1?a:t.length),l=e(r)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=eE(o??t,n),{fullPath:o+(r&&"?")+r+s,path:o,query:l,hash:s}}function J$(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Mv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Iv(e,t,n){const o=t.matched.length-1,l=n.matched.length-1;return o>-1&&o===l&&Ml(t.matched[o],n.matched[l])&&d0(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ml(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function d0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Q$(e[n],t[n]))return!1;return!0}function Q$(e,t){return Hn(e)?Nv(e,t):Hn(t)?Nv(t,e):e===t}function Nv(e,t){return Hn(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function eE(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return It(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),l=o[o.length-1];(l===".."||l===".")&&o.push("");let r=n.length-1,s,a;for(s=0;s<o.length;s++)if(a=o[s],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+o.slice(s-(s===o.length?1:0)).join("/")}var ba;(function(e){e.pop="pop",e.push="push"})(ba||(ba={}));var Qs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Qs||(Qs={}));function tE(e){if(!e)if(jo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Z$(e)}const nE=/^[^#]+#/;function oE(e,t){return e.replace(nE,"#")+t}function lE(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const rc=()=>({left:window.pageXOffset,top:window.pageYOffset});function rE(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const r=document.querySelector(e.el);if(o&&r){It(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{It(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const l=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l){It(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=lE(l,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 Pv(e,t){return(history.state?history.state.position-t:-1)+e}const Dd=new Map;function sE(e,t){Dd.set(e,t)}function aE(e){const t=Dd.get(e);return Dd.delete(e),t}let iE=()=>location.protocol+"//"+location.host;function f0(e,t){const{pathname:n,search:o,hash:l}=t,r=e.indexOf("#");if(r>-1){let a=l.includes(e.slice(r))?e.slice(r).length:1,u=l.slice(a);return u[0]!=="/"&&(u="/"+u),Mv(u,"")}return Mv(n,e)+o+l}function uE(e,t,n,o){let l=[],r=[],s=null;const a=({state:p})=>{const h=f0(e,location),m=n.value,v=t.value;let g=0;if(p){if(n.value=h,t.value=p,s&&s
history.replaceState(history.state, '', url)
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),r(f.current,f,!0);const d=Rt({},xv(o.value,u,null),{position:f.position+1},c);r(u,d,!1),o.value=u}return{location:o,state:l,push:a,replace:s}}function dE(e){e=tE(e);const t=cE(e),n=uE(e,t.state,t.location,t.replace);function o(r,s=!0){s||n.pauseListeners(),history.go(r)}const l=Rt({location:"",base:e,go:o,createHref:oE.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}function fE(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),!e.endsWith("#/")&&!e.endsWith("#")&&It(`A hash base must end with a "#":
"${e}" should be "${e.replace(/#.*$/,"#")}".`),dE(e)}function pE(e){return typeof e=="string"||e&&typeof e=="object"}function p0(e){return typeof e=="string"||typeof e=="symbol"}const ul={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},h0=Symbol("navigation failure");var Av;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Av||(Av={}));const hE={[1]({location:e,currentLocation:t}){return`No match for
${JSON.stringify(e)}${t?`
while being at
`+JSON.stringify(t):""}`},[2]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${mE(t)}" via a navigation guard.`},[4]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[8]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[16]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function us(e,t){return Rt(new Error(hE[e](t)),{type:e,[h0]:!0},t)}function Bo(e,t){return e instanceof Error&&h0 in e&&(t==null||!!(e.type&t))}const vE=["params","query","hash"];function mE(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of vE)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Rv="[^/]+?",gE={sensitive:!1,strict:!1,start:!0,end:!0},yE=/[.+*?^${}()[\]/\\]/g;function bE(e,t){const n=Rt({},gE,t),o=[];let l=n.start?"^":"";const r=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(l+="/");for(let d=0;d<c.length;d++){const p=c[d];let h=40+(n.sensitive?.25:0);if(p.type===0)d||(l+="/"),l+=p.value.replace(yE,"\\$&"),h+=40;else if(p.type===1){const{value:m,repeatable:v,optional:g,regexp:y}=p;r.push({name:m,repeatable:v,optional:g});const C=y||Rv;if(C!==Rv){h+=10;try{new RegExp(`(${C})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${m}" (${C}): `+w.message)}}let b=v?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;d||(b=g&&c.length<2?`(?:/${b})`:"/"+b),g&&(b+="?"),l+=b,h+=20,g&&(h+=-8),v&&(h+=-20),C===".*"&&(h+=-50)}f.push(h)}o.push(f)}if(n.strict&&n.end){const c=o.length-1;o[c][o[c].length-1]+=.7000000000000001}n.strict||(l+="/?"),n.end?l+="$":n.strict&&(l+="(?:/|$)");const s=new RegExp(l,n.sensitive?"":"i");function a(c){const f=c.match(s),d={};if(!f)return null;for(let p=1;p<f.length;p++){const h=f[p]||"",m=r[p-1];d[m.name]=h&&m.repeatable?h.split("/"):h}return d}function u(c){let f="",d=!1;for(const p of e){(!d||!f.endsWith("/"))&&(f+="/"),d=!1;for(const h of p)if(h.type===0)f+=h.value;else if(h.type===1){const{value:m,repeatable:v,optional:g}=h,y=m in c?c[m]:"";if(Hn(y)&&!v)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const C=Hn(y)?y.join("/"):y;if(!C)if(g)p.length<2&&(f.endsWith("/")?f=f.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);f+=C}}return f||"/"}return{re:s,score:o,keys:r,parse:a,stringify:u}}function wE(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function CE(e,t){let n=0;const o=e.score,l=t.score;for(;n<o.length&&n<l.length;){const r=wE(o[n],l[n]);if(r)return r;n++}if(Math.abs(l.length-o.length)===1){if(Lv(o))return 1;if(Lv(l))return-1}return l.length-o.length}function Lv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const SE={type:0,value:""},kE=/[a-zA-Z0-9_]/;function _E(e){if(!e)return[[]];if(e==="/")return[[SE]];if(!e.startsWith("/"))throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,o=n;const l=[];let r;function s(){r&&l.push(r),r=[]}let a=0,u,c="",f="";function d(){c&&(n===0?r.push({type:0,value:c}):n===1||n===2||n===3?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:f,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:u==="/"?(c&&d(),s()):u===":"?(d(),n=1):p();break;case 4:p(),n=o;break;case 1:u==="("?n=2:kE.test(u)?p():(d(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case 2:u===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+u:n=3:f+=u;break;case 3:d(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&a--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),s(),l}function $E(e,t,n){const o=bE(_E(e.path),n);{co
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(y=$E(b,d,v),d&&w[0]==="/"&&PE(y,d),p?(p.alias.push(y),IE(p,y)):(C=C||y,C!==y&&C.alias.push(y),h&&f.name&&!Bv(y)&&s(f.name)),m.children){const $=m.children;for(let k=0;k<$.length;k++)r($[k],y,p&&p.children[k])}p=p||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&u(y)}return C?()=>{s(C)}:Js}function s(f){if(p0(f)){const d=o.get(f);d&&(o.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&o.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function u(f){let d=0;for(;d<n.length&&CE(f,n[d])>=0&&(f.record.path!==n[d].record.path||!v0(f,n[d]));)d++;n.splice(d,0,f),f.record.name&&!Bv(f)&&o.set(f.record.name,f)}function c(f,d){let p,h={},m,v;if("name"in f&&f.name){if(p=o.get(f.name),!p)throw us(1,{location:f});{const C=Object.keys(f.params||{}).filter(b=>!p.keys.find(w=>w.name===b));C.length&&It(`Discarded invalid param(s) "${C.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}v=p.record.name,h=Rt(Dv(d.params,p.keys.filter(C=>!C.optional).map(C=>C.name)),f.params&&Dv(f.params,p.keys.map(C=>C.name))),m=p.stringify(h)}else if("path"in f)m=f.path,m.startsWith("/")||It(`The Matcher cannot resolve relative paths but received "${m}". Unless you directly called \`matcher.resolve("${m}")\`, this is probably a bug in vue-router. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/router.`),p=n.find(C=>C.re.test(m)),p&&(h=p.parse(m),v=p.record.name);else{if(p=d.name?o.get(d.name):n.find(C=>C.re.test(d.path)),!p)throw us(1,{location:f,currentLocation:d});v=p.record.name,h=Rt({},d.params,f.params),m=p.stringify(h)}const g=[];let y=p;for(;y;)g.unshift(y.record),y=y.parent;return{name:v,path:m,params:h,matched:g,meta:ME(g)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:c,removeRoute:s,getRoutes:a,getRecordMatcher:l}}function Dv(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function TE(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:OE(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 OE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="boolean"?n:n[o];return t}function Bv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ME(e){return e.reduce((t,n)=>Rt(t,n.meta),{})}function Fv(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Bd(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function IE(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Bd.bind(null,n)))return It(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Bd.bind(null,n)))return It(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function NE(e,t){t&&t.record.name&&!e.name&&!e.path&&It(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function PE(e,t){for(const n of t.keys)if(!e.keys.find(Bd.bind(null,n)))return It(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function v0(e,t){return t.children.some(n=>n===e||v0(e,n))}const m0=/#/g,xE=/&/g,AE=/\//g,RE=/=/g,LE=/\?/g,g0=/\+/g,DE=/%5B/g,BE=/%5D/g,y0=/%5E/g,FE=/%60/g,b0=/%7B/g,VE=/%7C/g,w0=/%7D/g,zE=/%20/g;function vp(e){r
${e.toString()}
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof c=="object"&&"then"in c)f=f.then(p=>u._called?p:(It(d),Promise.reject(new Error("Invalid navigation guard"))));else if(c!==void 0&&!u._called){It(d),a(new Error("Invalid navigation guard"));return}}f.catch(d=>a(d))})}function GE(e,t,n){let o=0;return function(){o++===1&&It(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,o===1&&e.apply(null,arguments)}}function jc(e,t,n,o){const l=[];for(const r of e){!r.components&&!r.children.length&&It(`Record with path "${r.path}" is either missing a "component(s)" or "children" property.`);for(const s in r.components){let a=r.components[s];{if(!a||typeof a!="object"&&typeof a!="function")throw It(`Component "${s}" in record with path "${r.path}" is not a valid component. Received "${String(a)}".`),new Error("Invalid route component");if("then"in a){It(`Component "${s}" in record with path "${r.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const u=a;a=()=>u}else a.__asyncLoader&&!a.__warnedDefineAsync&&(a.__warnedDefineAsync=!0,It(`Component "${s}" in record with path "${r.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(XE(a)){const c=(a.__vccOpts||a)[t];c&&l.push(yl(c,n,o,r,s))}else{let u=a();"catch"in u||(It(`Component "${s}" in record with path "${r.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),u=Promise.resolve(u)),l.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const f=G$(c)?c.default:c;r.components[s]=f;const p=(f.__vccOpts||f)[t];return p&&yl(p,n,o,r,s)()}))}}}return l}function XE(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hv(e){const t=Be(mp),n=Be(C0),o=S(()=>t.resolve(i(e.to))),l=S(()=>{const{matched:u}=o.value,{length:c}=u,f=u[c-1],d=n.matched;if(!f||!d.length)return-1;const p=d.findIndex(Ml.bind(null,f));if(p>-1)return p;const h=Kv(u[c-2]);return c>1&&Kv(f)===h&&d[d.length-1].path!==h?d.findIndex(Ml.bind(null,u[c-2])):p}),r=S(()=>l.value>-1&&eT(n.params,o.value.params)),s=S(()=>l.value>-1&&l.value===n.matched.length-1&&d0(n.params,o.value.params));function a(u={}){return QE(u)?t[i(e.replace)?"replace":"push"](i(e.to)).catch(Js):Promise.resolve()}if(jo){const u=st();if(u){const c={route:o.value,isActive:r.value,isExactActive:s.value};u.__vrl_devtools=u.__vrl_devtools||[],u.__vrl_devtools.push(c),Nn(()=>{c.route=o.value,c.isActive=r.value,c.isExactActive=s.value},{flush:"post"})}}return{route:o,href:S(()=>o.value.href),isActive:r,isExactActive:s,navigate:a}}const ZE=Z({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:Hv,setup(e,{slots:t}){const n=$t(Hv(e)),{options:o}=Be(mp),l=S(()=>({[jv(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[jv(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:Ue("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},r)}}}),JE=ZE;function QE(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/
Use slot props instead:
<router-view v-slot="{ Component }">
<${o}>
<component :is="Component" />
</${o}>
</router-view>`)}}function Ds(e,t){const n=Rt({},e,{matched:e.matched.map(o=>fT(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function gi(e){return{_custom:{display:e}}}let lT=0;function rT(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=lT++;Y$({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},l=>{typeof l.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),l.on.inspectComponent((f,d)=>{f.instanceData&&f.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Ds(t.currentRoute.value,"Current Route")})}),l.on.visitComponentTree(({treeNode:f,componentInstance:d})=>{if(d.__vrv_devtools){const p=d.__vrv_devtools;f.tags.push({label:(p.name?`${p.name.toString()}: `:"")+p.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:S0})}Hn(d.__vrl_devtools)&&(d.__devtoolsApi=l,d.__vrl_devtools.forEach(p=>{let h=$0,m="";p.isExactActive?(h=_0,m="This is exactly active"):p.isActive&&(h=k0,m="This link is active"),f.tags.push({label:p.route.path,textColor:0,tooltip:m,backgroundColor:h})}))}),ve(t.currentRoute,()=>{u(),l.notifyComponentUpdate(),l.sendInspectorTree(a),l.sendInspectorState(a)});const r="router:navigations:"+o;l.addTimelineLayer({id:r,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((f,d)=>{l.addTimelineEvent({layerId:r,event:{title:"Error during Navigation",subtitle:d.fullPath,logType:"error",time:l.now(),data:{error:f},groupId:d.meta.__navigationId}})});let s=0;t.beforeEach((f,d)=>{const p={guard:gi("beforeEach"),from:Ds(d,"Current Location during this navigation"),to:Ds(f,"Target location")};Object.defineProperty(f.meta,"__navigationId",{value:s++}),l.addTimelineEvent({layerId:r,event:{time:l.now(),title:"Start of navigation",subtitle:f.fullPath,data:p,groupId:f.meta.__navigationId}})}),t.afterEach((f,d,p)=>{const h={guard:gi("afterEach")};p?(h.failure={_custom:{type:Error,readOnly:!0,display:p?p.message:"",tooltip:"Navigation Failure",value:p}},h.status=gi("❌")):h.status=gi("✅"),h.from=Ds(d,"Current Location during this navigation"),h.to=Ds(f,"Target location"),l.addTimelineEvent({layerId:r,event:{title:"End of navigation",subtitle:f.fullPath,time:l.now(),data:h,logType:p?"warning":"default",groupId:f.meta.__navigationId}})});const a="router-inspector:"+o;l.addInspector({id:a,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function u(){if(!c)return;const f=c;let d=n.getRoutes().filter(p=>!p.parent);d.forEach(O0),f.filter&&(d=d.filter(p=>zd(p,f.filter.toLowerCase()))),d.forEach(p=>T0(p,t.currentRoute.value)),f.rootNodes=d.map(E0)}let c;l.on.getInspectorTree(f=>{c=f,f.app===e&&f.inspectorId===a&&u()}),l.on.getInspectorState(f=>{if(f.app===e&&f.inspectorId===a){const p=n.getRoutes().find(h=>h.record.__vd_id===f.nodeId);p&&(f.state={options:aT(p)})}}),l.sendInspectorTree(a),l.sendInspectorState(a)})}function sT(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function aT(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${sT(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score
${JSON.stringify(le,null,2)}
when navigating to "${Y.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return Rt({query:Y.query,hash:Y.hash,params:"path"in le?{}:Y.params},le)}}function O(Y,q){const J=c=y(Y),le=u.value,Ne=Y.state,De=Y.force,z=Y.replace===!0,X=k(J);if(X)return O(Rt(C(X),{state:typeof X=="object"?Rt({},Ne,X.state):Ne,force:De,replace:z}),q||J);const ie=J;ie.redirectedFrom=q;let Ee;return!De&&Iv(o,le,J)&&(Ee=us(16,{to:ie,from:le}),te(le,le,!0,!1)),(Ee?Promise.resolve(Ee):x(ie,le)).catch(oe=>Bo(oe)?Bo(oe,2)?oe:K(oe):D(oe,ie,le)).then(oe=>{if(oe){if(Bo(oe,2))return Iv(o,y(oe.to),ie)&&q&&(q._count=q._count?q._count+1:1)>30?(It(`Detected a possibly infinite redirection in a navigation guard when going from "${le.fullPath}" to "${ie.fullPath}". Aborting to avoid a Stack Overflow.
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):O(Rt({replace:z},C(oe.to),{state:typeof oe.to=="object"?Rt({},Ne,oe.to.state):Ne,force:De}),q||ie)}else oe=R(ie,le,!0,z,Ne);return L(ie,le,oe),oe})}function M(Y,q){const J=b(Y,q);return J?Promise.reject(J):Promise.resolve()}function A(Y){const q=fe.values().next().value;return q&&typeof q.runWithContext=="function"?q.runWithContext(Y):Y()}function x(Y,q){let J;const[le,Ne,De]=hT(Y,q);J=jc(le.reverse(),"beforeRouteLeave",Y,q);for(const X of le)X.leaveGuards.forEach(ie=>{J.push(yl(ie,Y,q))});const z=M.bind(null,Y,q);return J.push(z),ce(J).then(()=>{J=[];for(const X of r.list())J.push(yl(X,Y,q));return J.push(z),ce(J)}).then(()=>{J=jc(Ne,"beforeRouteUpdate",Y,q);for(const X of Ne)X.updateGuards.forEach(ie=>{J.push(yl(ie,Y,q))});return J.push(z),ce(J)}).then(()=>{J=[];for(const X of Y.matched)if(X.beforeEnter&&!q.matched.includes(X))if(Hn(X.beforeEnter))for(const ie of X.beforeEnter)J.push(yl(ie,Y,q));else J.push(yl(X.beforeEnter,Y,q));return J.push(z),ce(J)}).then(()=>(Y.matched.forEach(X=>X.enterCallbacks={}),J=jc(De,"beforeRouteEnter",Y,q),J.push(z),ce(J))).then(()=>{J=[];for(const X of s.list())J.push(yl(X,Y,q));return J.push(z),ce(J)}).catch(X=>Bo(X,8)?X:Promise.reject(X))}function L(Y,q,J){for(const le of a.list())A(()=>le(Y,q,J))}function R(Y,q,J,le,Ne){const De=b(Y,q);if(De)return De;const z=q===ul,X=jo?history.state:{};J&&(le||z?l.replace(Y.fullPath,Rt({scroll:z&&X&&X.scroll},Ne)):l.push(Y.fullPath,Ne)),u.value=Y,te(Y,q,J,z),K()}let P;function V(){P||(P=l.listen((Y,q,J)=>{if(!Se.listening)return;const le=y(Y),Ne=k(le);if(Ne){O(Rt(Ne,{replace:!0}),le).catch(Js);return}c=le;const De=u.value;jo&&sE(Pv(De.fullPath,J.delta),rc()),x(le,De).catch(z=>Bo(z,12)?z:Bo(z,2)?(O(z.to,le).then(X=>{Bo(X,20)&&!J.delta&&J.type===ba.pop&&l.go(-1,!1)}).catch(Js),Promise.reject()):(J.delta&&l.go(-J.delta,!1),D(z,le,De))).then(z=>{z=z||R(le,De,!1),z&&(J.delta&&!Bo(z,8)?l.go(-J.delta,!1):J.type===ba.pop&&Bo(z,20)&&l.go(-1,!1)),L(le,De,z)}).catch(Js)}))}let W=Ls(),F=Ls(),T;function D(Y,q,J){K(Y);const le=F.list();return le.length?le.forEach(Ne=>Ne(Y,q,J)):(It("uncaught error during route navigation:"),console.error(Y)),Promise.reject(Y)}function I(){return T&&u.value!==ul?Promise.resolve():new Promise((Y,q)=>{W.add([Y,q])})}function K(Y){return T||(T=!Y,V(),W.list().forEach(([q,J])=>Y?J(Y):q()),W.reset()),Y}function te(Y,q,J,le){const{scrollBehavior:Ne}=e;if(!jo||!Ne)return Promise.resolve();const De=!J&&aE(Pv(Y.fullPath,0))||(le||!J)&&history.state&&history.state.scroll||null;return Fe().then(()=>Ne(Y,q,De)).then(z=>z&&rE(z)).catch(z=>D(z,Y,q))}const j=Y=>l.go(Y);let ee;const fe=new Set,Se={currentRoute:u,listening:!0,addRoute:h,removeRoute:m,hasRoute:g,getRoutes:v,resolve:y,options:e,push:w,replace:$,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:F.add,isReady:I,install(Y){const q=this;Y.component("RouterLink",JE),Y.component("RouterView",nT),Y.config.globalProperties.$router=q,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>i(u)}),jo&&!ee&&u.value===ul&&(ee=!0,w(l.location).catch(Ne=>{It("Unexpected error when starting the router:",Ne)}));const J={};for(const Ne in ul)J[Ne]=S(()=>u.value[Ne]);Y.provide(mp,q),Y.provide(C0,$t(J)),Y.provide(Vd,u);const le=Y.unmount;fe.add(Y),Y.unmount=function(){fe.delete(Y),fe.size<1&&(c=ul,P&&P(),P=null,u.value=ul,ee=!1,T=!1),le()},jo&&rT(Y,q,t)}};function ce(Y){return Y.reduce((q,J)=>q.then(()=>A(J)),Promise.resolve())}return Se}function hT(e,t){const n=[],o=[],l=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;s<r;s++){const a=t.matched[s];a&&(e.matched.find(c=>Ml(c,a))?o.push(a):n.push(a));const u=e.matched[s];u&&(t.matched.find(c=>Ml(c,u))||l.push(u))}return[n,o,l]}const vT=[{path:"/",component:()=>V$(()=>import("./index-cb834fa7.js")
For more detail, please visit: ${l}
`)},{immediate:!0})},I1=(e,t,n)=>{let o={offsetX:0,offsetY:0};const l=a=>{const u=a.clientX,c=a.clientY,{offsetX:f,offsetY:d}=o,p=e.value.getBoundingClientRect(),h=p.left,m=p.top,v=p.width,g=p.height,y=document.documentElement.clientWidth,C=document.documentElement.clientHeight,b=-h+f,w=-m+d,$=y-h-v+f,k=C-m-g+d,O=A=>{const x=Math.min(Math.max(f+A.clientX-u,b),$),L=Math.min(Math.max(d+A.clientY-c,w),k);o={offsetX:x,offsetY:L},e.value.style.transform=`translate(${Gt(x)}, ${Gt(L)})`},M=()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",M)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",M)},r=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",l)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",l)};rt(()=>{Nn(()=>{n.value?r():s()})}),Ft(()=>{s()})},V8=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var z8={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 H8=e=>(t,n)=>K8(t,n,i(e)),K8=(e,t,n)=>zt(n,e,e).replace(/\{(\w+)\}/g,(o,l)=>{var r;return`${(r=t==null?void 0:t[l])!=null?r:`{${l}}`}`}),j8=e=>{const t=S(()=>i(e).name),n=Nt(e)?e:N(e);return{lang:t,locale:n,t:H8(e)}},N1=Symbol("localeContextKey"),St=e=>{const t=e||Be(N1,N());return j8(S(()=>t.value||z8))},Ou="el",W8="is-",Ul=(e,t,n,o,l)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),o&&(r+=`__${o}`),l&&(r+=`--${l}
usage: app.provide(ID_INJECTION_KEY, {
prefix: number,
current: number,
})`);const n=zp();return S(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Fr=[];const Zm=e=>{const t=e;t.key===We.esc&&Fr.forEach(n=>n(t))},Q6=e=>{rt(()=>{Fr.length===0&&document.addEventListener("keydown",Zm),wt&&Fr.push(e)}),Ft(()=>{Fr=Fr.filter(t=>t!==e),Fr.length===0&&wt&&document.removeEventListener("keydown",Zm)})};let Jm;const G1=()=>{const e=zp(),t=Y1(),n=S(()=>`${e.value}-popper-container-${t.prefix}`),o=S(()=>`#${n.value}`);return{id:n,selector:o}},eL=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},tL=()=>{const{id:e,selector:t}=G1();return ec(()=>{wt&&!Jm&&!document.body.querySelector(t.value)&&(Jm=eL(e.value))}),{id:e,selector:t}},nL=Ie({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),X1=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:l})=>{const{registerTimeout:r}=Xm(),{registerTimeout:s,cancelTimeout:a}=Xm();return{onOpen:f=>{r(()=>{o(f);const d=i(n);Ge(d)&&d>0&&s(()=>{l(f)},d)},i(e))},onClose:f=>{a(),r(()=>{l(f)},i(t))}}},Z1=Symbol("elForwardRef"),oL=e=>{dt(Z1,{setForwardRef:n=>{e.value=n}})},lL=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Qm=N(0),J1=2e3,Q1=Symbol("zIndexContextKey"),Ms=e=>{const t=e||Be(Q1,void 0),n=S(()=>{const r=i(t);return Ge(r)?r:J1}),o=S(()=>n.value+Qm.value);return{initialZIndex:n,currentZIndex:o,nextZIndex:()=>(Qm.value++,o.value)}};function Zp(e){return e.split("-")[1]}function ew(e){return e==="y"?"height":"width"}function Jp(e){return e.split("-")[0]}function Qp(e){return["top","bottom"].includes(Jp(e))?"x":"y"}function eg(e,t,n){let{reference:o,floating:l}=e;const r=o.x+o.width/2-l.width/2,s=o.y+o.height/2-l.height/2,a=Qp(t),u=ew(a),c=o[u]/2-l[u]/2,f=Jp(t),d=a==="x";let p;switch(f){case"top":p={x:r,y:o.y-l.height};break;case"bottom":p={x:r,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:s};break;case"left":p={x:o.x-l.width,y:s};break;default:p={x:o.x,y:o.y}}switch(Zp(t)){case"start":p[a]-=c*(n&&d?-1:1);break;case"end":p[a]+=c*(n&&d?-1:1);break}return p}const rL=async(e,t,n)=>{const{placement:o="bottom",strategy:l="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:l}),{x:f,y:d}=eg(c,o,u),p=o,h={},m=0;for(let v=0;v<a.length;v++){const{name:g,fn:y}=a[v],{x:C,y:b,data:w,reset:$}=await y({x:f,y:d,initialPlacement:o,placement:p,strategy:l,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});if(f=C??f,d=b??d,h={...h,[g]:{...h[g],...w}},$&&m<=50){m++,typeof $=="object"&&($.placement&&(p=$.placement),$.rects&&(c=$.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:l}):$.rects),{x:f,y:d}=eg(c,p,u)),v=-1;continue}}return{x:f,y:d,placement:p,strategy:l,middlewareData:h}};function tw(e,t){return typeof e=="function"?e(t):e}function sL(e){return{top:0,right:0,bottom:0,left:0,...e}}function aL(e){return typeof e!="number"?sL(e):{top:e,right:e,bottom:e,left:e}}function nw(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const Zd=Math.min,iL=Math.max;function uL(e,t,n){return iL(e,Zd(t,n))}const cL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:l,rects:r,platform:s,elements:a}=t,{element:u,padding:c=0}=tw(e,t)||{};if(u==null)return{};const f=aL(c),d={x:n,y:o},p=Qp(l),h=ew(p),m=await s.getDimensions(u),v=p==="y",g=v?"top":"left",y=v?"bottom":"right",C=v?"clientHeight":"clientWidth",b=r.reference[h]+r.reference[p]-d[p]-r.floating[h],w=d[p]-r.reference[p],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=$?$[C]:0;(!k||!await(s.isElement==null?void 0:s.isElement($)))&&(k=a.floating[C]||r.floating[h]);const O=b/2-w/2,M=k/2-m[h]/2-1,A=Zd(f[g],M),x=Zd(f[y],M),L=A,R=k-m[h]-x,P=k/2-m[h]/2+O,V=uL(L,P,R),F=Zp(l)!=null&&P!=V&&r.reference[h]/2-(P<L?A:x)-m[h]/2<0?P<L?L-P:R-P:0;return{[p]:d[p]-F,data:{[p]:V,centerOffset:P-V}}}});async function dL(e,t){const{placement:n,platform:o,elements:l}=e,r=await(o.isRTL==null?void 0:o.isRTL(l.floating)),s=Jp(n),a=Zp(n),u=Qp(n)==="x",c
(?:
(?:`+o+":){7}(?:"+o+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+o+":){6}(?:"+n+"|:"+o+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+o+":){5}(?::"+n+"|(?::"+o+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),r=new RegExp("(?:^"+n+"$)|(?:^"+l+"$)"),s=new RegExp("^"+n+"$"),a=new RegExp("^"+l+"$"),u=function(w){return w&&w.exact?r:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+l+t(w)+")","g")};u.v4=function(b){return b&&b.exact?s:new RegExp(""+t(b)+n+t(b),"g")},u.v6=function(b){return b&&b.exact?a:new RegExp(""+t(b)+l+t(b),"g")};var c="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",d=u.v4().source,p=u.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',C="(?:"+c+"|www\\.)"+f+"(?:localhost|"+d+"|"+p+"|"+h+m+v+")"+g+y;return ki=new RegExp("(?:^"+C+"$)","i"),ki},dg={email:/^(([^<>()\[\]\\.,;:\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},Us={integer:function(t){return Us.number(t)&&parseInt(t,10)===t},float:function(t){return Us.number(t)&&!Us.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"&&!Us.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(dg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(bD())},hex:function(t){return typeof t=="string"&&!!t.match(dg.hex)}},wD=function(t,n,o,l,r){if(t.required&&n===void 0){mw(t,n,o,l,r);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?Us[a](n)||l.push(zn(r.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&l.push(zn(r.messages.types[a],t.fullField,t.type))},CD=function(t,n,o,l,r){var s=typeof t.len=="number",a=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,d=null,p=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(p?d="number":h?d="string":m&&(d="array"),!d)return!1;m&&(f=n.length),h&&(f=n.replace(c,"_").length),s?f!==t.len&&l.push(zn(r.messages[d].len,t.fullField,t.len)):a&&!u&&f<t.min?l.push(zn(r.messages[d].min,t.fullField,t.min)):u&&!a&&f>t.max?l.push(zn(r.messages[d].max,t.fullField,t.max)):a&&u&&(f<t.min||f>t.max)&&l.push(zn(r.messages[d].range,t.fullField,t.min,t.max))},xr="enum",SD=function(t,n,o,l,r){t[xr]=Array.isArray(t[xr])?t[xr]:[],t[xr].indexOf(n)===-1&&l.push(zn(r.messages[xr],t.fullField,t[xr].join(", ")))},kD=function(t,n,o,l,r){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(zn(r.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||l.push(zn(r.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Mt={required:mw,whitespace:yD,type:wD,range:CD,enum:SD,pattern:kD},_D=function(t,n,o,l,r){var s=[],a=t.required||!t.required&&l.hasOwnProperty(t.field);if(a){if(sn(n,"string")&&!t.required)return o();Mt.required(t,n,l,s,r,"string"),sn(n,"string")||(Mt.type(t,n,l,s,r),Mt.range(t,n,l,s,r),Mt.pattern(t,n,l,s,r),t.whitespace===!0&&Mt.whitespace(t,n,l,s,r))}o(s)},$D=function(t,n,o,l,r){var s=[],a=t.required||!t.required&&l.hasOwnProperty(t.field);if(a){if(sn(n)&&!t.required)return o();Mt.required(t,n,l,s,r),n!==void 0&&Mt.type(t,n,l,s,r)}o(s)},ED=function(t,n,o,l,r){var s=[],a=t.required||!t.required&&l.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),sn(n)&&!t.required)return o();Mt.required(t,n,l,s,r),n!==void 0&&(Mt.type(t,n,l,s,r),Mt.range(t,n,l,s,r))}o(s)},TD=function(t,n,o,l,r){var s=[],a=t.required||!t.required&&l.hasOwnProperty(t.field);if(a){if(sn(n)&&!t.requir
height:0 !important;
visibility:hidden !important;
${A0()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,YD=["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 GD(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:YD.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:o,borderSize:l,boxSizing:n}}function pg(e,t=1,n){var o;oo||(oo=document.createElement("textarea"),document.body.appendChild(oo));const{paddingSize:l,borderSize:r,boxSizing:s,contextStyle:a}=GD(e);oo.setAttribute("style",`${a};${qD}`),oo.value=e.value||e.placeholder||"";let u=oo.scrollHeight;const c={};s==="border-box"?u=u+r:s==="content-box"&&(u=u-l),oo.value="";const f=oo.scrollHeight-l;if(Ge(t)){let d=f*t;s==="border-box"&&(d=d+l+r),u=Math.max(d,u),c.minHeight=`${d}px`}if(Ge(n)){let d=f*n;s==="border-box"&&(d=d+l+r),u=Math.min(d,u)}return c.height=`${u}px`,(o=oo.parentNode)==null||o.removeChild(oo),oo=void 0,c}const XD=Ie({id:{type:String,default:void 0},size:hn,disabled:Boolean,modelValue:{type:se([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:se([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:xt},prefixIcon:{type:xt},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:se([Object,Array,String]),default:()=>Ht({})}}),ZD={[ut]:e=>Ze(e),input:e=>Ze(e),change:e=>Ze(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},JD=["role"],QD=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],eB=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],tB=Z({name:"ElInput",inheritAttrs:!1}),nB=Z({...tB,props:XD,emits:ZD,setup(e,{expose:t,emit:n}){const o=e,l=Es(),r=cn(),s=S(()=>{const de={};return o.containerRole==="combobox"&&(de["aria-haspopup"]=l["aria-haspopup"],de["aria-owns"]=l["aria-owns"],de["aria-expanded"]=l["aria-expanded"]),de}),a=S(()=>[o.type==="textarea"?g.b():v.b(),v.m(h.value),v.is("disabled",m.value),v.is("exceed",te.value),{[v.b("group")]:r.prepend||r.append,[v.bm("group","append")]:r.append,[v.bm("group","prepend")]:r.prepend,[v.m("prefix")]:r.prefix||o.prefixIcon,[v.m("suffix")]:r.suffix||o.suffixIcon||o.clearable||o.showPassword,[v.bm("suffix","password-clear")]:T.value&&D.value},l.class]),u=S(()=>[v.e("wrapper"),v.is("focus",b.value)]),c=Vp({excludeKeys:S(()=>Object.keys(s.value))}),{form:f,formItem:d}=Tn(),{inputId:p}=Hl(o,{formItemContext:d}),h=nn(),m=Dn(),v=me("input"),g=me("textarea"),y=Pt(),C=Pt(),b=N(!1),w=N(!1),$=N(!1),k=N(!1),O=N(),M=Pt(o.inputStyle),A=S(()=>y.value||C.value),x=S(()=>{var de;return(de=f==null?void 0:f.statusIcon)!=null?de:!1}),L=S(()=>(d==null?void 0:d.validateState)||""),R=S(()=>L.value&&O1[L.value]),P=S(()=>k.value?d8:gA),V=S(()=>[l.style,o.inputStyle]),W=S(()=>[o.inputStyle,M.value,{resize:o.resize}]),F=S(()=>en(o.modelValue)?"":String(o.modelValue)),T=S(()=>o.clearable&&!m.value&&!o.readonly&&!!F.value&&(b.value||w.value)),D=S(()=>o.showPassword&&!m.value&&!o.readonly&&!!F.value&&(!!F.val
* 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 RV=function(e,t){if(e&&e.addEventListener){const n=function(o){const l=AV(o);t&&Reflect.apply(t,this,[o,l])};e.addEventListener("wheel",n,{passive:!0})}},LV={beforeMount(e,t){RV(e,t.value)}},DV=Ie({role:{type:String,required:!0},spinnerDate:{type:se(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:se(String),default:""},...Kw}),BV=["onClick"],FV=["onMouseenter"],VV=Z({__name:"basic-time-spinner",props:DV,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,o=me("time"),{getHoursList:l,getMinutesList:r,getSecondsList:s}=qw(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let a=!1;const u=N(),c=N(),f=N(),d=N(),p={hours:c,minutes:f,seconds:d},h=S(()=>n.showSeconds?Tg:Tg.slice(0,2)),m=S(()=>{const{spinnerDate:I}=n,K=I.hour(),te=I.minute(),j=I.second();return{hours:K,minutes:te,seconds:j}}),v=S(()=>{const{hours:I,minutes:K}=i(m);return{hours:l(n.role),minutes:r(I,n.role),seconds:s(I,K,n.role)}}),g=S(()=>{const{hours:I,minutes:K,seconds:te}=i(m);return{hours:ld(I,23),minutes:ld(K,59),seconds:ld(te,59)}}),y=$n(I=>{a=!1,w(I)},200),C=I=>{if(!!!n.amPmMode)return"";const te=n.amPmMode==="A";let j=I<12?" am":" pm";return te&&(j=j.toUpperCase()),j},b=I=>{let K;switch(I){case"hours":K=[0,2];break;case"minutes":K=[3,5];break;case"seconds":K=[6,8];break}const[te,j]=K;t("select-range",te,j),u.value=I},w=I=>{O(I,i(m)[I])},$=()=>{w("hours"),w("minutes"),w("seconds")},k=I=>I.querySelector(`.${o.namespace.value}-scrollbar__wrap`),O=(I,K)=>{if(n.arrowControl)return;const te=i(p[I]);te&&te.$el&&(k(te.$el).scrollTop=Math.max(0,K*M(I)))},M=I=>{const K=i(p[I]);return(K==null?void 0:K.$el.querySelector("li").offsetHeight)||0},A=()=>{L(1)},x=()=>{L(-1)},L=I=>{u.value||b("hours");const K=u.value,te=i(m)[K],j=u.value==="hours"?24:60,ee=R(K,te,I,j);P(K,ee),O(K,ee),Fe(()=>b(K))},R=(I,K,te,j)=>{let ee=(K+te+j)%j;const fe=i(v)[I];for(;fe[ee]&&ee!==K;)ee=(ee+te+j)%j;return ee},P=(I,K)=>{if(i(v)[I][K])return;const{hours:ee,minutes:fe,seconds:Se}=i(m);let ce;switch(I){case"hours":ce=n.spinnerDate.hour(K).minute(fe).second(Se);break;case"minutes":ce=n.spinnerDate.hour(ee).minute(K).second(Se);break;case"seconds":ce=n.spinnerDate.hour(ee).minute(fe).second(K);break}t("change",ce)},V=(I,{value:K,disabled:te})=>{te||(P(I,K),b(I),O(I,K))},W=I=>{a=!0,y(I);const K=Math.min(Math.round((k(i(p[I]).$el).scrollTop-(F(I)*.5-10)/M(I)+3)/M(I)),I==="hours"?23:59);P(I,K)},F=I=>i(p[I]).$el.offsetHeight,T=()=>{const I=K=>{const te=i(p[K]);te&&te.$el&&(k(te.$el).onscroll=()=>{W(K)})};I("hours"),I("minutes"),I("seconds")};rt(()=>{Fe(()=>{!n.arrowControl&&T(),$(),n.role==="start"&&b("hours")})});const D=(I,K)=>{p[K].value=I};return t("set-option",[`${n.role}_scrollDown`,L]),t("set-option",[`${n.role}_emitSelectRange`,b]),ve(()=>n.spinnerDate,()=>{a||$()}),(I,K)=>(_(),B("div",{class:E([i(o).b("spinner"),{"has-seconds":I.showSeconds}])},[I.arrowControl?re("v-if",!0):(_(!0),B(He,{key:0},vt(i(h),te=>(_(),ae(i(rl),{key:te,ref_for:!0,ref:j=>D(j,te),class:E(i(o).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(o).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:j=>b(te),onMousemove:j=>w(te)},{default:Q(()=>[(_(!0),B(He,null,vt(i(v)[te],(j,ee)=>(_(),B("li",{key:ee,class:E([i(o).be("spinner","item"),i(o).is("active",ee===i(m)[te]),i(o).is("disabled",j)]),onClick:fe=>V(te,{value:ee,disabled:j})},[te==="hours"?(_(),B(He,{key:0},[kt(Oe(("0"+(I.amPmMode?ee%12||12:ee)).slice(-2))+Oe(C(ee)),1)],64)):(_(),B(He,{key:1},[kt(Oe(("0"+ee).slice(-2)),1)],64))],10,BV))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),I.arrowControl?(_(!0),B(He,{key:1},vt(i(h),te=>(_(),B("div",{key:te,class:E([i(o).be("spinner","wrapper"),i(o).is("arrow")]),onMouseenter:j=>b(te)},[ot((_(),ae(i(Ve),{class:E(["arrow-up",i(o).be("spinner","arrow")])},{default:Q(()=>[U(i(hc))]),_:1},8,["class"])),[[i(Pu),x]]),ot((_(),ae(i(Ve),{class:E(["arrow-down",i(o).be("spinner","arrow")])},{default:Q(()=>[U(i(Dl))]),_:1},8,["class"])),[[i(Pu),A]]),H("ul",{class:E(i(o).be("spinner","list"))},[(_
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),wz]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(_(),ae(c,{key:2,class:E(e.ns.e("prefix"))},{default:Q(()=>[U(u)]),_:1},8,["class"])):re("v-if",!0),re(" content "),U(f),re(" postfix "),e.isLeaf?re("v-if",!0):(_(),B(He,{key:3},[e.node.loading?(_(),ae(c,{key:0,class:E([e.ns.is("loading"),e.ns.e("postfix")])},{default:Q(()=>[U(d)]),_:1},8,["class"])):(_(),ae(c,{key:1,class:E(["arrow-right",e.ns.e("postfix")])},{default:Q(()=>[U(p)]),_:1},8,["class"]))],64))],42,bz)}var Sz=Me(yz,[["render",Cz],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const kz=Z({name:"ElCascaderMenu",components:{Loading:Fl,ElIcon:Ve,ElScrollbar:rl,ElCascaderNode:Sz},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=st(),n=me("cascader-menu"),{t:o}=St(),l=wc();let r=null,s=null;const a=Be(ch),u=N(null),c=S(()=>!e.nodes.length),f=S(()=>!a.initialLoaded),d=S(()=>`cascader-menu-${l}-${e.index}`),p=g=>{r=g.target},h=g=>{if(!(!a.isHoverMenu||!r||!u.value))if(r.contains(g.target)){m();const y=t.vnode.el,{left:C}=y.getBoundingClientRect(),{offsetWidth:b,offsetHeight:w}=y,$=g.clientX-C,k=r.offsetTop,O=k+r.offsetHeight;u.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${$} ${k} L${b} 0 V${k} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${$} ${O} L${b} ${w} V${O} Z" />
`}else s||(s=window.setTimeout(v,a.config.hoverThreshold))},m=()=>{s&&(clearTimeout(s),s=null)},v=()=>{u.value&&(u.value.innerHTML="",m())};return{ns:n,panel:a,hoverZone:u,isEmpty:c,isLoading:f,menuId:d,t:o,handleExpand:p,handleMouseMove:h,clearHoverZone:v}}});function _z(e,t,n,o,l,r){const s=tt("el-cascader-node"),a=tt("loading"),u=tt("el-icon"),c=tt("el-scrollbar");return _(),ae(c,{key:e.menuId,tag:"ul",role:"menu",class:E(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:Q(()=>{var f;return[(_(!0),B(He,null,vt(e.nodes,d=>(_(),ae(s,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(_(),B("div",{key:0,class:E(e.ns.e("empty-text"))},[U(u,{size:"14",class:E(e.ns.is("loading"))},{default:Q(()=>[U(a)]),_:1},8,["class"]),kt(" "+Oe(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(_(),B("div",{key:1,class:E(e.ns.e("empty-text"))},Oe(e.t("el.cascader.noData")),3)):(f=e.panel)!=null&&f.isHoverMenu?(_(),B("svg",{key:2,ref:"hoverZone",class:E(e.ns.e("hover-zone"))},null,2)):re("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var $z=Me(kz,[["render",_z],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let Ez=0;const Tz=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let wf=class Cf{constructor(t,n,o,l=!1){this.data=t,this.config=n,this.parent=o,this.root=l,this.uid=Ez++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:r,label:s,children:a}=n,u=t[a],c=Tz(this);this.level=l?0:o?o.level+1:1,this.value=t[r],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(f=>f.value),this.pathLabels=c.map(f=>f.label),this.childrenData=u,this.children=(u||[]).map(f=>new Cf(f,n,this)),this.loaded=!n.lazy||this.isLeaf||!Wn(u)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:l,checkStrictly:r}=o;return(Ye(l)?l(t,this):!!t[l])||!r&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:l}=this,{lazy:r,leaf:s}=n,a=Ye(s)?s(t,this):t[s];return un(a)?r&&!l?!1:!(Array.isArray(o)&&o.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,l=new Cf(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],o.push(l),l}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${Eo(t)}`;this.children.forEach(l=>{l&&(l.broadcast(t,...n),l[o]&&l[o](...n))})}emit(t,...n){const{parent:o}=this,l=`onChild${Eo(t)}`;o&&(o[l]&&o[l](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),o=n.length?n.every(l=>l.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((l,r)=>{const s=r.checked?1:r.indeterminate?.5:0;return l+s},0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&o!==n&&o>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:o}=this.config;n||!o?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Sf=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(Sf(o.children,t))),n),[]);class zg{constructor(t,n){this.config=n;const o=(t||[]).map(l=>new wf(l,this.config));this.nodes=o,this.allNodes=Sf(o,!1),this.leafNodes=Sf(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new wf(t,this.config);n||this.nodes.push(o),this.allNodes.push(o),o.isLeaf&&this.leafNodes.push(o)}appendNodes(t,n){t.forEach(o=>this.appendNode(o,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(l=>Pn(l.value,t)||Pn(l.pathValues,t))||null}getSameNode(t){return t&&this.getFlatt
M 50 50
m 0 ${w?"":"-"}${b}
a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
`}),u=S(()=>2*Math.PI*s.value),c=S(()=>t.type==="dashboard"?.75:1),f=S(()=>`${-1*u.value*(1-c.value)/2}px`),d=S(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:f.value})),p=S(()=>({strokeDasharray:`${u.value*c.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=S(()=>{let b;return t.color?b=C(t.percentage):b=n[t.status]||n.default,b}),m=S(()=>t.status==="warning"?vc:t.type==="line"?t.status==="success"?Lp:Bl:t.status==="success"?ti:ho),v=S(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=S(()=>t.format(t.percentage));function y(b){const w=100/b.length;return b.map((k,O)=>Ze(k)?{color:k,percentage:(O+1)*w}:k).sort((k,O)=>k.percentage-O.percentage)}const C=b=>{var w;const{color:$}=t;if(Ye($))return $(b);if(Ze($))return $;{const k=y($);for(const O of k)if(O.percentage>b)return O.color;return(w=k[k.length-1])==null?void 0:w.color}};return(b,w)=>(_(),B("div",{class:E([i(o).b(),i(o).m(b.type),i(o).is(b.status),{[i(o).m("without-text")]:!b.showText,[i(o).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(_(),B("div",{key:0,class:E(i(o).b("bar"))},[H("div",{class:E(i(o).be("bar","outer")),style:Ke({height:`${b.strokeWidth}px`})},[H("div",{class:E([i(o).be("bar","inner"),{[i(o).bem("bar","inner","indeterminate")]:b.indeterminate},{[i(o).bem("bar","inner","striped")]:b.striped},{[i(o).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:Ke(i(l))},[(b.showText||b.$slots.default)&&b.textInside?(_(),B("div",{key:0,class:E(i(o).be("bar","innerText"))},[pe(b.$slots,"default",{percentage:b.percentage},()=>[H("span",null,Oe(i(g)),1)])],2)):re("v-if",!0)],6)],6)],2)):(_(),B("div",{key:1,class:E(i(o).b("circle")),style:Ke({height:`${b.width}px`,width:`${b.width}px`})},[(_(),B("svg",wq,[H("path",{class:E(i(o).be("circle","track")),d:i(a),stroke:`var(${i(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":i(r),fill:"none",style:Ke(i(d))},null,14,Cq),H("path",{class:E(i(o).be("circle","path")),d:i(a),stroke:i(h),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":i(r),style:Ke(i(p))},null,14,Sq)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(_(),B("div",{key:2,class:E(i(o).e("text")),style:Ke({fontSize:`${i(v)}px`})},[pe(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(_(),ae(i(Ve),{key:1},{default:Q(()=>[(_(),ae(ft(i(m))))]),_:1})):(_(),B("span",kq,Oe(i(g)),1))])],6)):re("v-if",!0)],10,bq))}});var Eq=Me($q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const v2=it(Eq),Tq=Ie({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:se([Array,Object]),default:()=>Ht(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:se([Array,Object]),default:()=>[wi,wi,wi]},voidIcon:{type:xt,default:()=>e8},disabledVoidIcon:{type:xt,default:()=>wi},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:se(Array),default:()=>Ht(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:hn,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),Oq={[Dt]:e=>Ge(e),[ut]:e=>Ge(e)},Mq=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Iq=["onMousemove","onClick"],Nq=Z({name:"ElRate"}),Pq=Z({...Nq,props:Tq,emits:Oq,setup(e,{expose:t,emit:n}){const o=e;function l(F,T){const D=te=>lt(te),I=Object.keys(T).map(te=>+te).filter(te=>{const j=T[te];return(D(j)?j.excluded:!1)?F<te:F<=te}).sort((te,j)=>te-j),K=T[I[0]];return D(K)&&K.value||K}const r=Be(Nr,void 0),s=Be(Ao,void 0),a=nn(),u=me("rate"),{inputId:c,isLabeledByFormItem:f}=Hl(o,{formItemContext:s}),d=N(o.modelVal
You should set
width/height
to number when your layout is
horizontal/vertical
`);const c=Math.max(0,t*n-u),f=Math.min(c,r*n),d=Math.max(0,(r+1)*n-u);switch(s===Nc&&(a>=d-u&&a<=f+u?s=Un:s=Oo),s){case La:return f;case Da:return d;case Oo:{const p=Math.round(d+(f-d)/2);return p<Math.ceil(u/2)?0:p>c+Math.floor(u/2)?c:p}case Un:default:return a>=d&&a<=f?a:a<d?d:f}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:l},r,s)=>{const a=r*n,u=Fa(o)?l:e,c=Math.ceil((u+s-a)/n);return Math.max(0,Math.min(t-1,r+c-1))},initCache(){},clearCache:!0,validateProps(){}}),Xq="ElDynamicSizeList",qr=(e,t,n)=>{const{itemSize:o}=e,{items:l,lastVisitedIndex:r}=n;if(t>r){let s=0;if(r>=0){const a=l[r];s=a.offset+a.size}for(let a=r+1;a<=t;a++){const u=o(a);l[a]={offset:s,size:u},s+=u}n.lastVisitedIndex=t}return l[t]},Zq=(e,t,n)=>{const{items:o,lastVisitedIndex:l}=t;return(l>0?o[l].offset:0)>=n?$2(e,t,0,l,n):Jq(e,t,Math.max(0,l),n)},$2=(e,t,n,o,l)=>{for(;n<=o;){const r=n+Math.floor((o-n)/2),s=qr(e,r,t).offset;if(s===l)return r;s<l?n=r+1:s>l&&(o=r-1)}return Math.max(0,n-1)},Jq=(e,t,n,o)=>{const{total:l}=e;let r=1;for(;n<l&&qr(e,n,t).offset<o;)n+=r,r*=2;return $2(e,t,Math.floor(n/2),Math.min(n,l-1),o)},ny=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:o})=>{let l=0;if(o>=e&&(o=e-1),o>=0){const a=t[o];l=a.offset+a.size}const s=(e-o-1)*n;return l+s},Qq=k2({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>qr(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:ny,getOffset:(e,t,n,o,l)=>{const{height:r,layout:s,width:a}=e,u=Fa(s)?a:r,c=qr(e,t,l),f=ny(e,l),d=Math.max(0,Math.min(f-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n===Nc&&(o>=p-u&&o<=d+u?n=Un:n=Oo),n){case La:return d;case Da:return p;case Oo:return Math.round(p+(d-p)/2);case Un:default:return o>=p&&o<=d?o:o<p?p:d}},getStartIndexForOffset:(e,t,n)=>Zq(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:l,total:r,layout:s,width:a}=e,u=Fa(s)?a:l,c=qr(e,t,o),f=n+u;let d=c.offset+c.size,p=t;for(;p<r-1&&d<f;)p++,d+=qr(e,p,o).size;return p},initCache({estimatedItemSize:e=Ef},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(o,l=!0)=>{var r,s;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(r=t.exposed)==null||r.getItemStyleCache(-1),l&&((s=t.proxy)==null||s.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&jt(Xq,`
itemSize is required as function, but the given value was ${typeof e}
`)}}),eY=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},l)=>{let r=null,s=0,a=0;const u=(f,d)=>{const p=f<=0&&t.value||f>=0&&e.value,h=d<=0&&o.value||d>=0&&n.value;return p&&h};return{hasReachedEdge:u,onWheel:f=>{bc(r);let d=f.deltaX,p=f.deltaY;Math.abs(d)>Math.abs(p)?p=0:d=0,f.shiftKey&&p!==0&&(d=p,p=0),!(u(s,a)&&u(s+d,a+p))&&(s+=d,a+=p,f.preventDefault(),r=Oa(()=>{l(s,a),s=0,a=0}))}}},E2=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:r,getEstimatedTotalWidth:s,getColumnOffset:a,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:d,initCache:p,injectToInstance:h,validateProps:m})=>Z({name:e??"ElVirtualList",props:mr,emits:[Ru,Lu],setup(v,{emit:g,expose:y,slots:C}){const b=me("vl");m(v);const w=st(),$=N(p(v,w));h==null||h(w,$);const k=N(),O=N(),M=N(),A=N(null),x=N({isScrolling:!1,scrollLeft:Ge(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:Ge(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Ur,yAxisScrollDir:Ur}),L=m2(),R=S(()=>Number.parseInt(`${v.height}`,10)),P=S(()=>Number.parseInt(`${v.width}`,10)),V=S(()=>{const{totalColumn:oe,totalRow:we,columnCache:be}=v,{isScrolling:ke,xAxisScrollDir:_e,scrollLeft:$e}=i(x);if(oe===0||we===0)return[0,0,0,0];const Ae=o(v,$e,i($)),de=l(v,Ae,$e,i($)),Pe=!ke||_e===Du?Math.max(1,be):1,qe=!ke||_e===Ur?Math.max(1,be):1;return[Math.max(0,Ae-Pe),Math.max(0,Math.min(oe-1,de+qe)),Ae,de]}),W=S(()=>{const{totalColumn:oe,totalRow:we,rowCache:be}=v,{isScrolling:ke,yAxisScrollDir:_e,scrollTop:$e}=i(x);if(oe===0||we===0)return[0,0,0,0];const Ae=f(v,$e,i($)),de=d(v,Ae,$e,i($)),Pe=!ke||_e===Du?Math.max(1,be):1,qe=!ke||_e===Ur?Math.max(1,be):1;return[Math.max(0,Ae-Pe),Math.max(0,Math.min(we-1,de+qe)),Ae,de]}),F=S(()=>r(v,i($))),T=S(()=>s(v,i($))),D=S(()=>{var oe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:Ge(v.height)?`${v.height}px`:v.height,width:Ge(v.width)?`${v.width}px`:v.width},(oe=v.style)!=null?oe:{}]}),I=S(()=>{const oe=`${i(T)}px`;return{height:`${i(F)}px`,pointerEvents:i(x).isScrolling?"none":void 0,width:oe}}),K=()=>{const{totalColumn:oe,totalRow:we}=v;if(oe>0&&we>0){const[de,Pe,qe,Qe]=i(V),[Xe,ge,Ce,ue]=i(W);g(Ru,{columnCacheStart:de,columnCacheEnd:Pe,rowCacheStart:Xe,rowCacheEnd:ge,columnVisibleStart:qe,columnVisibleEnd:Qe,rowVisibleStart:Ce,rowVisibleEnd:ue})}const{scrollLeft:be,scrollTop:ke,updateRequested:_e,xAxisScrollDir:$e,yAxisScrollDir:Ae}=i(x);g(Lu,{xAxisScrollDir:$e,scrollLeft:be,yAxisScrollDir:Ae,scrollTop:ke,updateRequested:_e})},te=oe=>{const{clientHeight:we,clientWidth:be,scrollHeight:ke,scrollLeft:_e,scrollTop:$e,scrollWidth:Ae}=oe.currentTarget,de=i(x);if(de.scrollTop===$e&&de.scrollLeft===_e)return;let Pe=_e;if(ty(v.direction))switch(Fu()){case Ba:Pe=-_e;break;case _h:Pe=Ae-be-_e;break}x.value={...de,isScrolling:!0,scrollLeft:Pe,scrollTop:Math.max(0,Math.min($e,ke-we)),updateRequested:!0,xAxisScrollDir:lr(de.scrollLeft,Pe),yAxisScrollDir:lr(de.scrollTop,$e)},Fe(()=>q()),J(),K()},j=(oe,we)=>{const be=i(R),ke=(F.value-be)/we*oe;Se({scrollTop:Math.min(F.value-be,ke)})},ee=(oe,we)=>{const be=i(P),ke=(T.value-be)/we*oe;Se({scrollLeft:Math.min(T.value-be,ke)})},{onWheel:fe}=eY({atXStartEdge:S(()=>x.value.scrollLeft<=0),atXEndEdge:S(()=>x.value.scrollLeft>=T.value-i(P)),atYStartEdge:S(()=>x.value.scrollTop<=0),atYEndEdge:S(()=>x.value.scrollTop>=F.value-i(R))},(oe,we)=>{var be,ke,_e,$e;(ke=(be=O.value)==null?void 0:be.onMouseUp)==null||ke.call(be),($e=(_e=O.value)==null?void 0:_e.onMouseUp)==null||$e.call(_e);const Ae=i(P),de=i(R);Se({scrollLeft:Math.min(x.value.scrollLeft+oe,T.value-Ae),scrollTop:Math.min(x.value.scrollTop+we,F.value-de)})}),Se=({scrollLeft:oe=x.value.scrollLeft,scrollTop:we=x.value.scrollTop})=>{oe=Math.max(oe,0),we=Math.max(we,0);const be=i(x);we===be.scrollTop&&oe===be.scrollLeft||(x.value={...be,xAxisScrollDir:lr(be.scrollLeft,oe),yAxisScrollDir:lr(be.scrollTop,we),scrollLeft:oe,scrollTop:we,updateRequested:!
"columnWidth" must be passed as number,
instead ${typeof e} was given.
`),Ge(t)||jt(oy,`
"columnWidth" must be passed as number,
instead ${typeof t} was given.
`)}}),{max:Vu,min:T2,floor:O2}=Math,ly="ElDynamicSizeGrid",nY={column:"columnWidth",row:"rowHeight"},xf={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Wo=(e,t,n,o)=>{const[l,r,s]=[n[o],e[nY[o]],n[xf[o]]];if(t>s){let a=0;if(s>=0){const u=l[s];a=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=r(u);l[u]={offset:a,size:c},a+=c}n[xf[o]]=t}return l[t]},M2=(e,t,n,o,l,r)=>{for(;n<=o;){const s=n+O2((o-n)/2),a=Wo(e,s,t,r).offset;if(a===l)return s;a<l?n=s+1:o=s-1}return Vu(0,n-1)},oY=(e,t,n,o,l)=>{const r=l==="column"?e.totalColumn:e.totalRow;let s=1;for(;n<r&&Wo(e,n,t,l).offset<o;)n+=s,s*=2;return M2(e,t,O2(n/2),T2(n,r-1),o,l)},ry=(e,t,n,o)=>{const[l,r]=[t[o],t[xf[o]]];return(r>0?l[r].offset:0)>=n?M2(e,t,0,r,n,o):oY(e,t,Vu(0,r),n,o)},I2=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:o})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const a=o[n];l=a.offset+a.size}const s=(e-n-1)*t;return l+s},N2=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:o})=>{let l=0;if(o>e&&(o=e-1),o>=0){const a=t[o];l=a.offset+a.size}const s=(e-o-1)*n;return l+s},lY={column:N2,row:I2},sy=(e,t,n,o,l,r,s)=>{const[a,u]=[r==="row"?e.height:e.width,lY[r]],c=Wo(e,t,l,r),f=u(e,l),d=Vu(0,T2(f-a,c.offset)),p=Vu(0,c.offset-a+s+c.size);switch(n===Nc&&(o>=p-a&&o<=d+a?n=Un:n=Oo),n){case La:return d;case Da:return p;case Oo:return Math.round(p+(d-p)/2);case Un:default:return o>=p&&o<=d?o:p>d||o<p?p:d}},rY=E2({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const o=Wo(e,t,n,"column");return[o.size,o.offset]},getRowPosition:(e,t,n)=>{const o=Wo(e,t,n,"row");return[o.size,o.offset]},getColumnOffset:(e,t,n,o,l,r)=>sy(e,t,n,o,l,"column",r),getRowOffset:(e,t,n,o,l,r)=>sy(e,t,n,o,l,"row",r),getColumnStartIndexForOffset:(e,t,n)=>ry(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,o)=>{const l=Wo(e,t,o,"column"),r=n+e.width;let s=l.offset+l.size,a=t;for(;a<e.totalColumn-1&&s<r;)a++,s+=Wo(e,t,o,"column").size;return a},getEstimatedTotalHeight:I2,getEstimatedTotalWidth:N2,getRowStartIndexForOffset:(e,t,n)=>ry(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,o)=>{const{totalRow:l,height:r}=e,s=Wo(e,t,o,"row"),a=n+r;let u=s.size+s.offset,c=t;for(;c<l-1&&u<a;)c++,u+=Wo(e,c,o,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:r,rowIndex:s},a)=>{var u,c;a=un(a)?!0:a,Ge(r)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,r-1)),Ge(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),a&&((c=e.proxy)==null||c.$forceUpdate())},o=(r,s)=>{n({columnIndex:r},s)},l=(r,s)=>{n({rowIndex:r},s)};Object.assign(e.proxy,{resetAfterColumnIndex:o,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=Ef,estimatedRowHeight:t=Ef})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Ye(e)||jt(ly,`
"columnWidth" must be passed as function,
instead ${typeof e} was given.
`),Ye(t)||jt(ly,`
"rowHeight" must be passed as function,
instead ${typeof t} was given.
`)}}),sY=Z({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:me("select")}}});function aY(e,t,n,o,l,r){return e.item.isTitle?(_(),B("div",{key:0,class:E(e.ns.be("group","title")),style:Ke([e.style,{lineHeight:`${e.height}px`}])},Oe(e.item.label),7)):(_(),B("div",{key:1,class:E(e.ns.be("group","split")),style:Ke(e.style)},[H("span",{class:E(e.ns.be("group","split-dash")),style:Ke({top:`${e.height/2}px`})},null,6)],6))}var iY=Me(sY,[["render",aY],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function uY(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const cY={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Bl},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:an.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:gc},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:se(String),values:Ir,default:"bottom-start"}},dY={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},fY=Z({props:dY,emits:["select","hover"],setup(e,{emit:t}){const n=me("select"),{hoverItem:o,selectOptionClick:l}=uY(e,{emit:t});return{ns:n,hoverItem:o,selectOptionClick:l}}}),pY=["aria-selected"];function hY(e,t,n,o,l,r){return _(),B("li",{"aria-selected":e.selected,style:Ke(e.style),class:E([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=Je((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[pe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[H("span",null,Oe(e.item.label),1)])],46,pY)}var vY=Me(fY,[["render",hY],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const P2=Symbol("ElSelectV2Injection");var mY=Z({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const o=Be(P2),l=me("select"),r=N([]),s=N(),a=S(()=>e.data.length);ve(()=>a.value,()=>{var M,A;(A=(M=o.popper.value).updatePopper)==null||A.call(M)});const u=S(()=>un(o.props.estimatedOptionHeight)),c=S(()=>u.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:M=>r.value[M]}),f=(M=[],A)=>{const{props:{valueKey:x}}=o;return lt(A)?M&&M.some(L=>zt(L,x)===zt(A,x)):M.includes(A)},d=(M,A)=>{if(lt(A)){const{valueKey:x}=o.props;return zt(M,x)===zt(A,x)}else return M===A},p=(M,A)=>{const{valueKey:x}=o.props;return o.props.multiple?f(M,zt(A,x)):d(M,zt(A,x))},h=(M,A)=>{const{disabled:x,multiple:L,multipleLimit:R}=o.props;return x||!A&&(L?R>0&&M.length>=R:!1)},m=M=>e.hoveringIndex===M;n({listRef:s,isSized:u,isItemDisabled:h,isItemHovering:m,isItemSelected:p,scrollToItem:M=>{const A=s.value;A&&A.scrollToItem(M)},resetScrollTop:()=>{const M=s.value;M&&M.resetScrollTop()}});const y=M=>{const{index:A,data:x,style:L}=M,R=i(u),{itemSize:P,estimatedSize:V}
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var QG=/["'&<>]/,eX=tX;function tX(e){var t=""+e,n=QG.exec(t);if(!n)return t;var o,l="",r=0,s=0;for(r=n.index;r<t.length;r++){switch(t.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}s!==r&&(l+=t.substring(s,r)),s=r+1,l+=o}return s!==r?l+t.substring(s,r):l}const nX=Lo(eX),pd=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},oX=function(e,t,n,o,l){if(!t&&!o&&(!l||Array.isArray(l)&&!l.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const r=o?null:function(a,u){return l?(Array.isArray(l)||(l=[l]),l.map(c=>typeof c=="string"?zt(a,c):c(a,u,e))):(t!=="$key"&&lt(a)&&"$value"in a&&(a=a.$value),[lt(a)?zt(a,t):a])},s=function(a,u){if(o)return o(a.value,u.value);for(let c=0,f=a.key.length;c<f;c++){if(a.key[c]<u.key[c])return-1;if(a.key[c]>u.key[c])return 1}return 0};return e.map((a,u)=>({value:a,index:u,key:r?r(a,u):null})).sort((a,u)=>{let c=s(a,u);return c||(c=a.index-u.index),c*+n}).map(a=>a.value)},L2=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},lX=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const l=e.columns[o];if(l.columnKey===t){n=l;break}}return n||jt("ElTable",`No column matching with column-key: ${t}`),n},hy=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?L2(e,o[0]):null},dn=(e,t)=>{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 o=e;for(const l of n)o=o[l];return`${o}`}else if(typeof t=="function")return t.call(null,e)},rr=function(e,t){const n={};return(e||[]).forEach((o,l)=>{n[dn(o,t)]={row:o,index:l}}),n};function rX(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(ht(t,o)){const l=t[o];typeof l<"u"&&(n[o]=l)}return n}function $h(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function D2(e){return e===""||e!==void 0&&(e=$h(e),Number.isNaN(e)&&(e=80)),e}function sX(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function aX(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function aa(e,t,n){let o=!1;const l=e.indexOf(t),r=l!==-1,s=a=>{a==="add"?e.push(t):e.splice(l,1),o=!0,Le(t.children)&&t.children.forEach(u=>{aa(e,u,n??!r)})};return tn(n)?n&&!r?s("add"):!n&&r&&s("remove"):s(r?"remove":"add"),o}function iX(e,t,n="children",o="hasChildren"){const l=s=>!(Array.isArray(s)&&s.length);function r(s,a,u){t(s,a,u),a.forEach(c=>{if(c[o]){t(c,null,u+1);return}const f=c[n];l(f)||r(c,f,u+1)})}e.forEach(s=>{if(s[o]){t(s,null,0);return}const a=s[n];l(a)||r(s,a,0)})}let Ko;function uX(e,t,n,o,l){l=h1({enterable:!0,showArrow:!0},l);const r=e==null?void 0:e.dataset.prefix,s=e==null?void 0:e.querySelector(`.${r}-scrollbar__wrap`);function a(){const g=l.effect==="light",y=document.createElement("div");return y.className=[`${r}-popper`,g?"is-light":"is-dark",l.popperClass||""].join(" "),n=nX(n),y.innerHTML=n,y.style.zIndex=String(o()),e==null||e.appendChild(y),y}function u(){const g=document.createElement("div");return g.className=`${r}-popper__arrow`,g}function c(){f&&f.update()}Ko==null||Ko(),Ko=()=>{try{f&&f.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",d),t.removeEventListener("mouseleave",p),s==null||s.removeEventListener("scroll",Ko),Ko=void 0}catch{}};let f=null,d=c,p=Ko;l.enterable&&({onOpen:d,onClose:p}=X1({showAfter:l.showAfter,hideAfter:l.hideAfter,open:c,close:Ko}));const h=a();h.onmouseenter=d,h.onmouseleave=p;const m=[];if(l.offset&&m.push({name:"offset",options:{offset:[0,l.offset]}}),l.showArrow){const g=h.appendChild(u());m.push({name:"arrow",options:{element:g,padding:10}})}const v=l.popperOptions||{};return f=q1(t,h,{placement:l.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?m.concat(v.modifiers):m}),t.addEventListener("mouseenter",d),t.addEventListener("mouseleave",p),s==null||s.addEventListener("scroll",Ko