var zi=Object.defineProperty;var Hi=(t,r,V)=>r in t?zi(t,r,{enumerable:!0,configurable:!0,writable:!0,value:V}):t[r]=V;var io=(t,r,V)=>(Hi(t,typeof r!="symbol"?r+"":r,V),V);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const ie of document.querySelectorAll('link[rel="modulepreload"]'))oe(ie);new MutationObserver(ie=>{for(const le of ie)if(le.type==="childList")for(const ue of le.addedNodes)ue.tagName==="LINK"&&ue.rel==="modulepreload"&&oe(ue)}).observe(document,{childList:!0,subtree:!0});function V(ie){const le={};return ie.integrity&&(le.integrity=ie.integrity),ie.referrerPolicy&&(le.referrerPolicy=ie.referrerPolicy),ie.crossOrigin==="use-credentials"?le.credentials="include":ie.crossOrigin==="anonymous"?le.credentials="omit":le.credentials="same-origin",le}function oe(ie){if(ie.ep)return;ie.ep=!0;const le=V(ie);fetch(ie.href,le)}})();function makeMap(t,r){const V=Object.create(null),oe=t.split(",");for(let ie=0;ie!!V[ie.toLowerCase()]:ie=>!!V[ie]}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=t=>onRE.test(t),isModelListener=t=>t.startsWith("onUpdate:"),extend$2=Object.assign,remove=(t,r)=>{const V=t.indexOf(r);V>-1&&t.splice(V,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$4=(t,r)=>hasOwnProperty$g.call(t,r),isArray$c=Array.isArray,isMap$3=t=>toTypeString$1(t)==="[object Map]",isSet$3=t=>toTypeString$1(t)==="[object Set]",isDate$3=t=>toTypeString$1(t)==="[object Date]",isRegExp$5=t=>toTypeString$1(t)==="[object RegExp]",isFunction$5=t=>typeof t=="function",isString$6=t=>typeof t=="string",isSymbol$2=t=>typeof t=="symbol",isObject$9=t=>t!==null&&typeof t=="object",isPromise=t=>isObject$9(t)&&isFunction$5(t.then)&&isFunction$5(t.catch),objectToString$3=Object.prototype.toString,toTypeString$1=t=>objectToString$3.call(t),toRawType=t=>toTypeString$1(t).slice(8,-1),isPlainObject$4=t=>toTypeString$1(t)==="[object Object]",isIntegerKey=t=>isString$6(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=t=>{const r=Object.create(null);return V=>r[V]||(r[V]=t(V))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(t=>t.replace(camelizeRE,(r,V)=>V?V.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$2=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize$2(t)}`:""),hasChanged=(t,r)=>!Object.is(t,r),invokeArrayFns=(t,r)=>{for(let V=0;V{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value:V})},looseToNumber=t=>{const r=parseFloat(t);return isNaN(r)?t:r},toNumber$1=t=>{const r=isString$6(t)?Number(t):NaN;return isNaN(r)?t:r};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED);function normalizeStyle$1(t){if(isArray$c(t)){const r={};for(let V=0;V{if(V){const oe=V.split(propertyDelimiterRE);oe.length>1&&(r[oe[0].trim()]=oe[1].trim())}}),r}function normalizeClass(t){let r="";if(isString$6(t))r=t;else if(isArray$c(t))for(let V=0;VlooseEqual(V,r))}const toDisplayString$1=t=>isString$6(t)?t:t==null?"":isArray$c(t)||isObject$9(t)&&(t.toString===objectToString$3||!isFunction$5(t.toString))?JSON.stringify(t,replacer,2):String(t),replacer=(t,r)=>r&&r.__v_isRef?replacer(t,r.value):isMap$3(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((V,[oe,ie])=>(V[`${oe} =>`]=ie,V),{})}:isSet$3(r)?{[`Set(${r.size})`]:[...r.values()]}:isObject$9(r)&&!isArray$c(r)&&!isPlainObject$4(r)?String(r):r;let activeEffectScope;class EffectScope{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!r&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(r){if(this._active){const V=activeEffectScope;try{return activeEffectScope=this,r()}finally{activeEffectScope=V}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(r){if(this._active){let V,oe;for(V=0,oe=this.effects.length;V{const r=new Set(t);return r.w=0,r.n=0,r},wasTracked=t=>(t.w&trackOpBit)>0,newTracked=t=>(t.n&trackOpBit)>0,initDepMarkers=({deps:t})=>{if(t.length)for(let r=0;r{const{deps:r}=t;if(r.length){let V=0;for(let oe=0;oe{(_e==="length"||_e>=pe)&&de.push(he)})}else switch(V!==void 0&&de.push(ue.get(V)),r){case"add":isArray$c(t)?isIntegerKey(V)&&de.push(ue.get("length")):(de.push(ue.get(ITERATE_KEY)),isMap$3(t)&&de.push(ue.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c(t)||(de.push(ue.get(ITERATE_KEY)),isMap$3(t)&&de.push(ue.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$3(t)&&de.push(ue.get(ITERATE_KEY));break}if(de.length===1)de[0]&&triggerEffects(de[0]);else{const pe=[];for(const he of de)he&&pe.push(...he);triggerEffects(createDep(pe))}}function triggerEffects(t,r){const V=isArray$c(t)?t:[...t];for(const oe of V)oe.computed&&triggerEffect(oe);for(const oe of V)oe.computed||triggerEffect(oe)}function triggerEffect(t,r){(t!==activeEffect||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function getDepFromReactive(t,r){var V;return(V=targetMap.get(t))==null?void 0:V.get(r)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(isSymbol$2)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const t={};return["includes","indexOf","lastIndexOf"].forEach(r=>{t[r]=function(...V){const oe=toRaw(this);for(let le=0,ue=this.length;le{t[r]=function(...V){pauseTracking();const oe=toRaw(this)[r].apply(this,V);return resetTracking(),oe}}),t}function hasOwnProperty$f(t){const r=toRaw(this);return track(r,"has",t),r.hasOwnProperty(t)}function createGetter(t=!1,r=!1){return function(oe,ie,le){if(ie==="__v_isReactive")return!t;if(ie==="__v_isReadonly")return t;if(ie==="__v_isShallow")return r;if(ie==="__v_raw"&&le===(t?r?shallowReadonlyMap:readonlyMap:r?shallowReactiveMap:reactiveMap).get(oe))return oe;const ue=isArray$c(oe);if(!t){if(ue&&hasOwn$4(arrayInstrumentations,ie))return Reflect.get(arrayInstrumentations,ie,le);if(ie==="hasOwnProperty")return hasOwnProperty$f}const de=Reflect.get(oe,ie,le);return(isSymbol$2(ie)?builtInSymbols.has(ie):isNonTrackableKeys(ie))||(t||track(oe,"get",ie),r)?de:isRef(de)?ue&&isIntegerKey(ie)?de:de.value:isObject$9(de)?t?readonly(de):reactive(de):de}}const set$1$1=createSetter(),shallowSet=createSetter(!0);function createSetter(t=!1){return function(V,oe,ie,le){let ue=V[oe];if(isReadonly(ue)&&isRef(ue)&&!isRef(ie))return!1;if(!t&&(!isShallow(ie)&&!isReadonly(ie)&&(ue=toRaw(ue),ie=toRaw(ie)),!isArray$c(V)&&isRef(ue)&&!isRef(ie)))return ue.value=ie,!0;const de=isArray$c(V)&&isIntegerKey(oe)?Number(oe)t,getProto$1=t=>Reflect.getPrototypeOf(t);function get$2(t,r,V=!1,oe=!1){t=t.__v_raw;const ie=toRaw(t),le=toRaw(r);V||(r!==le&&track(ie,"get",r),track(ie,"get",le));const{has:ue}=getProto$1(ie),de=oe?toShallow:V?toReadonly:toReactive;if(ue.call(ie,r))return de(t.get(r));if(ue.call(ie,le))return de(t.get(le));t!==ie&&t.get(r)}function has$5(t,r=!1){const V=this.__v_raw,oe=toRaw(V),ie=toRaw(t);return r||(t!==ie&&track(oe,"has",t),track(oe,"has",ie)),t===ie?V.has(t):V.has(t)||V.has(ie)}function size(t,r=!1){return t=t.__v_raw,!r&&track(toRaw(t),"iterate",ITERATE_KEY),Reflect.get(t,"size",t)}function add$1(t){t=toRaw(t);const r=toRaw(this);return getProto$1(r).has.call(r,t)||(r.add(t),trigger$2(r,"add",t,t)),this}function set$3(t,r){r=toRaw(r);const V=toRaw(this),{has:oe,get:ie}=getProto$1(V);let le=oe.call(V,t);le||(t=toRaw(t),le=oe.call(V,t));const ue=ie.call(V,t);return V.set(t,r),le?hasChanged(r,ue)&&trigger$2(V,"set",t,r):trigger$2(V,"add",t,r),this}function deleteEntry(t){const r=toRaw(this),{has:V,get:oe}=getProto$1(r);let ie=V.call(r,t);ie||(t=toRaw(t),ie=V.call(r,t)),oe&&oe.call(r,t);const le=r.delete(t);return ie&&trigger$2(r,"delete",t,void 0),le}function clear$2(){const t=toRaw(this),r=t.size!==0,V=t.clear();return r&&trigger$2(t,"clear",void 0,void 0),V}function createForEach(t,r){return function(oe,ie){const le=this,ue=le.__v_raw,de=toRaw(ue),pe=r?toShallow:t?toReadonly:toReactive;return!t&&track(de,"iterate",ITERATE_KEY),ue.forEach((he,_e)=>oe.call(ie,pe(he),pe(_e),le))}}function createIterableMethod(t,r,V){return function(...oe){const ie=this.__v_raw,le=toRaw(ie),ue=isMap$3(le),de=t==="entries"||t===Symbol.iterator&&ue,pe=t==="keys"&&ue,he=ie[t](...oe),_e=V?toShallow:r?toReadonly:toReactive;return!r&&track(le,"iterate",pe?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:$e,done:Ie}=he.next();return Ie?{value:$e,done:Ie}:{value:de?[_e($e[0]),_e($e[1])]:_e($e),done:Ie}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...r){return t==="delete"?!1:this}}function createInstrumentations(){const t={get(le){return get$2(this,le)},get size(){return size(this)},has:has$5,add:add$1,set:set$3,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!1)},r={get(le){return get$2(this,le,!1,!0)},get size(){return size(this)},has:has$5,add:add$1,set:set$3,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!0)},V={get(le){return get$2(this,le,!0)},get size(){return size(this,!0)},has(le){return has$5.call(this,le,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},oe={get(le){return get$2(this,le,!0,!0)},get size(){return size(this,!0)},has(le){return has$5.call(this,le,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(le=>{t[le]=createIterableMethod(le,!1,!1),V[le]=createIterableMethod(le,!0,!1),r[le]=createIterableMethod(le,!1,!0),oe[le]=createIterableMethod(le,!0,!0)}),[t,V,r,oe]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(t,r){const V=r?t?shallowReadonlyInstrumentations:shallowInstrumentations:t?readonlyInstrumentations:mutableInstrumentations;return(oe,ie,le)=>ie==="__v_isReactive"?!t:ie==="__v_isReadonly"?t:ie==="__v_raw"?oe:Reflect.get(hasOwn$4(V,ie)&&ie in oe?V:oe,ie,le)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(t){return t.__v_skip||!Object.isExtensible(t)?0:targetTypeMap(toRawType(t))}function reactive(t){return isReadonly(t)?t:createReactiveObject(t,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(t){return createReactiveObject(t,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(t){return createReactiveObject(t,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(t){return createReactiveObject(t,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(t,r,V,oe,ie){if(!isObject$9(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const le=ie.get(t);if(le)return le;const ue=getTargetType(t);if(ue===0)return t;const de=new Proxy(t,ue===2?oe:V);return ie.set(t,de),de}function isReactive(t){return isReadonly(t)?isReactive(t.__v_raw):!!(t&&t.__v_isReactive)}function isReadonly(t){return!!(t&&t.__v_isReadonly)}function isShallow(t){return!!(t&&t.__v_isShallow)}function isProxy(t){return isReactive(t)||isReadonly(t)}function toRaw(t){const r=t&&t.__v_raw;return r?toRaw(r):t}function markRaw(t){return def(t,"__v_skip",!0),t}const toReactive=t=>isObject$9(t)?reactive(t):t,toReadonly=t=>isObject$9(t)?readonly(t):t;function trackRefValue(t){shouldTrack&&activeEffect&&(t=toRaw(t),trackEffects(t.dep||(t.dep=createDep())))}function triggerRefValue(t,r){t=toRaw(t);const V=t.dep;V&&triggerEffects(V)}function isRef(t){return!!(t&&t.__v_isRef===!0)}function ref(t){return createRef(t,!1)}function shallowRef(t){return createRef(t,!0)}function createRef(t,r){return isRef(t)?t:new RefImpl(t,r)}class RefImpl{constructor(r,V){this.__v_isShallow=V,this.dep=void 0,this.__v_isRef=!0,this._rawValue=V?r:toRaw(r),this._value=V?r:toReactive(r)}get value(){return trackRefValue(this),this._value}set value(r){const V=this.__v_isShallow||isShallow(r)||isReadonly(r);r=V?r:toRaw(r),hasChanged(r,this._rawValue)&&(this._rawValue=r,this._value=V?r:toReactive(r),triggerRefValue(this))}}function triggerRef(t){triggerRefValue(t)}function unref(t){return isRef(t)?t.value:t}function toValue$1(t){return isFunction$5(t)?t():unref(t)}const shallowUnwrapHandlers={get:(t,r,V)=>unref(Reflect.get(t,r,V)),set:(t,r,V,oe)=>{const ie=t[r];return isRef(ie)&&!isRef(V)?(ie.value=V,!0):Reflect.set(t,r,V,oe)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}class CustomRefImpl{constructor(r){this.dep=void 0,this.__v_isRef=!0;const{get:V,set:oe}=r(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=V,this._set=oe}get value(){return this._get()}set value(r){this._set(r)}}function customRef(t){return new CustomRefImpl(t)}function toRefs(t){const r=isArray$c(t)?new Array(t.length):{};for(const V in t)r[V]=propertyToRef(t,V);return r}class ObjectRefImpl{constructor(r,V,oe){this._object=r,this._key=V,this._defaultValue=oe,this.__v_isRef=!0}get value(){const r=this._object[this._key];return r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(r){this._getter=r,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef(t,r,V){return isRef(t)?t:isFunction$5(t)?new GetterRefImpl(t):isObject$9(t)&&arguments.length>1?propertyToRef(t,r,V):ref(t)}function propertyToRef(t,r,V){const oe=t[r];return isRef(oe)?oe:new ObjectRefImpl(t,r,V)}class ComputedRefImpl{constructor(r,V,oe,ie){this._setter=V,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(r,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!ie,this.__v_isReadonly=oe}get value(){const r=toRaw(this);return trackRefValue(r),(r._dirty||!r._cacheable)&&(r._dirty=!1,r._value=r.effect.run()),r._value}set value(r){this._setter(r)}}function computed$1(t,r,V=!1){let oe,ie;const le=isFunction$5(t);return le?(oe=t,ie=NOOP):(oe=t.get,ie=t.set),new ComputedRefImpl(oe,ie,le||!ie,V)}function warn$2(t,...r){}function assertNumber(t,r){}function callWithErrorHandling(t,r,V,oe){let ie;try{ie=oe?t(...oe):t()}catch(le){handleError(le,r,V)}return ie}function callWithAsyncErrorHandling(t,r,V,oe){if(isFunction$5(t)){const le=callWithErrorHandling(t,r,V,oe);return le&&isPromise(le)&&le.catch(ue=>{handleError(ue,r,V)}),le}const ie=[];for(let le=0;le>>1;getId$1(queue[oe])flushIndex&&queue.splice(r,1)}function queuePostFlushCb(t){isArray$c(t)?pendingPostFlushCbs.push(...t):(!activePostFlushCbs||!activePostFlushCbs.includes(t,t.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(t),queueFlush()}function flushPreFlushCbs(t,r=isFlushing?flushIndex+1:0){for(;rgetId$1(V)-getId$1(oe)),postFlushIndex=0;postFlushIndext.id==null?1/0:t.id,comparator=(t,r)=>{const V=getId$1(t)-getId$1(r);if(V===0){if(t.pre&&!r.pre)return-1;if(r.pre&&!t.pre)return 1}return V};function flushJobs(t){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const r=NOOP;try{for(flushIndex=0;flushIndexdevtools.emit(ie,...le)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((oe=(V=window.navigator)==null?void 0:V.userAgent)!=null&&oe.includes("jsdom"))?((r.__VUE_DEVTOOLS_HOOK_REPLAY__=r.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(le=>{setDevtoolsHook(le,r)}),setTimeout(()=>{devtools||(r.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit(t,r,...V){if(t.isUnmounted)return;const oe=t.vnode.props||EMPTY_OBJ$1;let ie=V;const le=r.startsWith("update:"),ue=le&&r.slice(7);if(ue&&ue in oe){const _e=`${ue==="modelValue"?"model":ue}Modifiers`,{number:$e,trim:Ie}=oe[_e]||EMPTY_OBJ$1;Ie&&(ie=V.map(Ve=>isString$6(Ve)?Ve.trim():Ve)),$e&&(ie=V.map(looseToNumber))}let de,pe=oe[de=toHandlerKey(r)]||oe[de=toHandlerKey(camelize(r))];!pe&&le&&(pe=oe[de=toHandlerKey(hyphenate(r))]),pe&&callWithAsyncErrorHandling(pe,t,6,ie);const he=oe[de+"Once"];if(he){if(!t.emitted)t.emitted={};else if(t.emitted[de])return;t.emitted[de]=!0,callWithAsyncErrorHandling(he,t,6,ie)}}function normalizeEmitsOptions(t,r,V=!1){const oe=r.emitsCache,ie=oe.get(t);if(ie!==void 0)return ie;const le=t.emits;let ue={},de=!1;if(!isFunction$5(t)){const pe=he=>{const _e=normalizeEmitsOptions(he,r,!0);_e&&(de=!0,extend$2(ue,_e))};!V&&r.mixins.length&&r.mixins.forEach(pe),t.extends&&pe(t.extends),t.mixins&&t.mixins.forEach(pe)}return!le&&!de?(isObject$9(t)&&oe.set(t,null),null):(isArray$c(le)?le.forEach(pe=>ue[pe]=null):extend$2(ue,le),isObject$9(t)&&oe.set(t,ue),ue)}function isEmitListener(t,r){return!t||!isOn(r)?!1:(r=r.slice(2).replace(/Once$/,""),hasOwn$4(t,r[0].toLowerCase()+r.slice(1))||hasOwn$4(t,hyphenate(r))||hasOwn$4(t,r))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const r=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,r}function pushScopeId(t){currentScopeId=t}function popScopeId(){currentScopeId=null}const withScopeId=t=>withCtx;function withCtx(t,r=currentRenderingInstance,V){if(!r||t._n)return t;const oe=(...ie)=>{oe._d&&setBlockTracking(-1);const le=setCurrentRenderingInstance(r);let ue;try{ue=t(...ie)}finally{setCurrentRenderingInstance(le),oe._d&&setBlockTracking(1)}return ue};return oe._n=!0,oe._c=!0,oe._d=!0,oe}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:r,vnode:V,proxy:oe,withProxy:ie,props:le,propsOptions:[ue],slots:de,attrs:pe,emit:he,render:_e,renderCache:$e,data:Ie,setupState:Ve,ctx:Fe,inheritAttrs:Ue}=t;let qe,Et;const At=setCurrentRenderingInstance(t);try{if(V.shapeFlag&4){const hn=ie||oe;qe=normalizeVNode(_e.call(hn,hn,$e,le,Ve,Ie,Fe)),Et=pe}else{const hn=r;qe=normalizeVNode(hn.length>1?hn(le,{attrs:pe,slots:de,emit:he}):hn(le,null)),Et=r.props?pe:getFunctionalFallthrough(pe)}}catch(hn){blockStack.length=0,handleError(hn,t,1),qe=createVNode(Comment)}let Lt=qe;if(Et&&Ue!==!1){const hn=Object.keys(Et),{shapeFlag:_n}=Lt;hn.length&&_n&7&&(ue&&hn.some(isModelListener)&&(Et=filterModelListeners(Et,ue)),Lt=cloneVNode(Lt,Et))}return V.dirs&&(Lt=cloneVNode(Lt),Lt.dirs=Lt.dirs?Lt.dirs.concat(V.dirs):V.dirs),V.transition&&(Lt.transition=V.transition),qe=Lt,setCurrentRenderingInstance(At),qe}function filterSingleRoot(t){let r;for(let V=0;V{let r;for(const V in t)(V==="class"||V==="style"||isOn(V))&&((r||(r={}))[V]=t[V]);return r},filterModelListeners=(t,r)=>{const V={};for(const oe in t)(!isModelListener(oe)||!(oe.slice(9)in r))&&(V[oe]=t[oe]);return V};function shouldUpdateComponent(t,r,V){const{props:oe,children:ie,component:le}=t,{props:ue,children:de,patchFlag:pe}=r,he=le.emitsOptions;if(r.dirs||r.transition)return!0;if(V&&pe>=0){if(pe&1024)return!0;if(pe&16)return oe?hasPropsChanged(oe,ue,he):!!ue;if(pe&8){const _e=r.dynamicProps;for(let $e=0;$e<_e.length;$e++){const Ie=_e[$e];if(ue[Ie]!==oe[Ie]&&!isEmitListener(he,Ie))return!0}}}else return(ie||de)&&(!de||!de.$stable)?!0:oe===ue?!1:oe?ue?hasPropsChanged(oe,ue,he):!0:!!ue;return!1}function hasPropsChanged(t,r,V){const oe=Object.keys(r);if(oe.length!==Object.keys(t).length)return!0;for(let ie=0;iet.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(t,r,V,oe,ie,le,ue,de,pe,he){t==null?mountSuspense(r,V,oe,ie,le,ue,de,pe,he):patchSuspense(t,r,V,oe,ie,ue,de,pe,he)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent$1(t,r){const V=t.props&&t.props[r];isFunction$5(V)&&V()}function mountSuspense(t,r,V,oe,ie,le,ue,de,pe){const{p:he,o:{createElement:_e}}=pe,$e=_e("div"),Ie=t.suspense=createSuspenseBoundary(t,ie,oe,r,$e,V,le,ue,de,pe);he(null,Ie.pendingBranch=t.ssContent,$e,null,oe,Ie,le,ue),Ie.deps>0?(triggerEvent$1(t,"onPending"),triggerEvent$1(t,"onFallback"),he(null,t.ssFallback,r,V,oe,null,le,ue),setActiveBranch(Ie,t.ssFallback)):Ie.resolve(!1,!0)}function patchSuspense(t,r,V,oe,ie,le,ue,de,{p:pe,um:he,o:{createElement:_e}}){const $e=r.suspense=t.suspense;$e.vnode=r,r.el=t.el;const Ie=r.ssContent,Ve=r.ssFallback,{activeBranch:Fe,pendingBranch:Ue,isInFallback:qe,isHydrating:Et}=$e;if(Ue)$e.pendingBranch=Ie,isSameVNodeType(Ie,Ue)?(pe(Ue,Ie,$e.hiddenContainer,null,ie,$e,le,ue,de),$e.deps<=0?$e.resolve():qe&&(pe(Fe,Ve,V,oe,ie,null,le,ue,de),setActiveBranch($e,Ve))):($e.pendingId++,Et?($e.isHydrating=!1,$e.activeBranch=Ue):he(Ue,ie,$e),$e.deps=0,$e.effects.length=0,$e.hiddenContainer=_e("div"),qe?(pe(null,Ie,$e.hiddenContainer,null,ie,$e,le,ue,de),$e.deps<=0?$e.resolve():(pe(Fe,Ve,V,oe,ie,null,le,ue,de),setActiveBranch($e,Ve))):Fe&&isSameVNodeType(Ie,Fe)?(pe(Fe,Ie,V,oe,ie,$e,le,ue,de),$e.resolve(!0)):(pe(null,Ie,$e.hiddenContainer,null,ie,$e,le,ue,de),$e.deps<=0&&$e.resolve()));else if(Fe&&isSameVNodeType(Ie,Fe))pe(Fe,Ie,V,oe,ie,$e,le,ue,de),setActiveBranch($e,Ie);else if(triggerEvent$1(r,"onPending"),$e.pendingBranch=Ie,$e.pendingId++,pe(null,Ie,$e.hiddenContainer,null,ie,$e,le,ue,de),$e.deps<=0)$e.resolve();else{const{timeout:At,pendingId:Lt}=$e;At>0?setTimeout(()=>{$e.pendingId===Lt&&$e.fallback(Ve)},At):At===0&&$e.fallback(Ve)}}function createSuspenseBoundary(t,r,V,oe,ie,le,ue,de,pe,he,_e=!1){const{p:$e,m:Ie,um:Ve,n:Fe,o:{parentNode:Ue,remove:qe}}=he;let Et;const At=isVNodeSuspensible(t);At&&r!=null&&r.pendingBranch&&(Et=r.pendingId,r.deps++);const Lt=t.props?toNumber$1(t.props.timeout):void 0,hn={vnode:t,parent:r,parentComponent:V,isSVG:ue,container:oe,hiddenContainer:ie,anchor:le,deps:0,pendingId:0,timeout:typeof Lt=="number"?Lt:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:_e,isUnmounted:!1,effects:[],resolve(_n=!1,vn=!1){const{vnode:bn,activeBranch:Cn,pendingBranch:Sn,pendingId:wn,effects:En,parentComponent:xn,container:Pn}=hn;if(hn.isHydrating)hn.isHydrating=!1;else if(!_n){const Dn=Cn&&Sn.transition&&Sn.transition.mode==="out-in";Dn&&(Cn.transition.afterLeave=()=>{wn===hn.pendingId&&Ie(Sn,Pn,Mn,0)});let{anchor:Mn}=hn;Cn&&(Mn=Fe(Cn),Ve(Cn,xn,hn,!0)),Dn||Ie(Sn,Pn,Mn,0)}setActiveBranch(hn,Sn),hn.pendingBranch=null,hn.isInFallback=!1;let kn=hn.parent,Nn=!1;for(;kn;){if(kn.pendingBranch){kn.effects.push(...En),Nn=!0;break}kn=kn.parent}Nn||queuePostFlushCb(En),hn.effects=[],At&&r&&r.pendingBranch&&Et===r.pendingId&&(r.deps--,r.deps===0&&!vn&&r.resolve()),triggerEvent$1(bn,"onResolve")},fallback(_n){if(!hn.pendingBranch)return;const{vnode:vn,activeBranch:bn,parentComponent:Cn,container:Sn,isSVG:wn}=hn;triggerEvent$1(vn,"onFallback");const En=Fe(bn),xn=()=>{hn.isInFallback&&($e(null,_n,Sn,En,Cn,null,wn,de,pe),setActiveBranch(hn,_n))},Pn=_n.transition&&_n.transition.mode==="out-in";Pn&&(bn.transition.afterLeave=xn),hn.isInFallback=!0,Ve(bn,Cn,null,!0),Pn||xn()},move(_n,vn,bn){hn.activeBranch&&Ie(hn.activeBranch,_n,vn,bn),hn.container=_n},next(){return hn.activeBranch&&Fe(hn.activeBranch)},registerDep(_n,vn){const bn=!!hn.pendingBranch;bn&&hn.deps++;const Cn=_n.vnode.el;_n.asyncDep.catch(Sn=>{handleError(Sn,_n,0)}).then(Sn=>{if(_n.isUnmounted||hn.isUnmounted||hn.pendingId!==_n.suspenseId)return;_n.asyncResolved=!0;const{vnode:wn}=_n;handleSetupResult(_n,Sn,!1),Cn&&(wn.el=Cn);const En=!Cn&&_n.subTree.el;vn(_n,wn,Ue(Cn||_n.subTree.el),Cn?null:Fe(_n.subTree),hn,ue,pe),En&&qe(En),updateHOCHostEl(_n,wn.el),bn&&--hn.deps===0&&hn.resolve()})},unmount(_n,vn){hn.isUnmounted=!0,hn.activeBranch&&Ve(hn.activeBranch,V,_n,vn),hn.pendingBranch&&Ve(hn.pendingBranch,V,_n,vn)}};return hn}function hydrateSuspense(t,r,V,oe,ie,le,ue,de,pe){const he=r.suspense=createSuspenseBoundary(r,oe,V,t.parentNode,document.createElement("div"),null,ie,le,ue,de,!0),_e=pe(t,he.pendingBranch=r.ssContent,V,he,le,ue);return he.deps===0&&he.resolve(!1,!0),_e}function normalizeSuspenseChildren(t){const{shapeFlag:r,children:V}=t,oe=r&32;t.ssContent=normalizeSuspenseSlot(oe?V.default:V),t.ssFallback=oe?normalizeSuspenseSlot(V.fallback):createVNode(Comment)}function normalizeSuspenseSlot(t){let r;if(isFunction$5(t)){const V=isBlockTreeEnabled&&t._c;V&&(t._d=!1,openBlock()),t=t(),V&&(t._d=!0,r=currentBlock,closeBlock())}return isArray$c(t)&&(t=filterSingleRoot(t)),t=normalizeVNode(t),r&&!t.dynamicChildren&&(t.dynamicChildren=r.filter(V=>V!==t)),t}function queueEffectWithSuspense(t,r){r&&r.pendingBranch?isArray$c(t)?r.effects.push(...t):r.effects.push(t):queuePostFlushCb(t)}function setActiveBranch(t,r){t.activeBranch=r;const{vnode:V,parentComponent:oe}=t,ie=V.el=r.el;oe&&oe.subTree===V&&(oe.vnode.el=ie,updateHOCHostEl(oe,ie))}function isVNodeSuspensible(t){var r;return((r=t.props)==null?void 0:r.suspensible)!=null&&t.props.suspensible!==!1}function watchEffect(t,r){return doWatch(t,null,r)}function watchPostEffect(t,r){return doWatch(t,null,{flush:"post"})}function watchSyncEffect(t,r){return doWatch(t,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(t,r,V){return doWatch(t,r,V)}function doWatch(t,r,{immediate:V,deep:oe,flush:ie,onTrack:le,onTrigger:ue}=EMPTY_OBJ$1){var de;const pe=getCurrentScope()===((de=currentInstance)==null?void 0:de.scope)?currentInstance:null;let he,_e=!1,$e=!1;if(isRef(t)?(he=()=>t.value,_e=isShallow(t)):isReactive(t)?(he=()=>t,oe=!0):isArray$c(t)?($e=!0,_e=t.some(hn=>isReactive(hn)||isShallow(hn)),he=()=>t.map(hn=>{if(isRef(hn))return hn.value;if(isReactive(hn))return traverse(hn);if(isFunction$5(hn))return callWithErrorHandling(hn,pe,2)})):isFunction$5(t)?r?he=()=>callWithErrorHandling(t,pe,2):he=()=>{if(!(pe&&pe.isUnmounted))return Ie&&Ie(),callWithAsyncErrorHandling(t,pe,3,[Ve])}:he=NOOP,r&&oe){const hn=he;he=()=>traverse(hn())}let Ie,Ve=hn=>{Ie=At.onStop=()=>{callWithErrorHandling(hn,pe,4)}},Fe;if(isInSSRComponentSetup)if(Ve=NOOP,r?V&&callWithAsyncErrorHandling(r,pe,3,[he(),$e?[]:void 0,Ve]):he(),ie==="sync"){const hn=useSSRContext();Fe=hn.__watcherHandles||(hn.__watcherHandles=[])}else return NOOP;let Ue=$e?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const qe=()=>{if(At.active)if(r){const hn=At.run();(oe||_e||($e?hn.some((_n,vn)=>hasChanged(_n,Ue[vn])):hasChanged(hn,Ue)))&&(Ie&&Ie(),callWithAsyncErrorHandling(r,pe,3,[hn,Ue===INITIAL_WATCHER_VALUE?void 0:$e&&Ue[0]===INITIAL_WATCHER_VALUE?[]:Ue,Ve]),Ue=hn)}else At.run()};qe.allowRecurse=!!r;let Et;ie==="sync"?Et=qe:ie==="post"?Et=()=>queuePostRenderEffect(qe,pe&&pe.suspense):(qe.pre=!0,pe&&(qe.id=pe.uid),Et=()=>queueJob(qe));const At=new ReactiveEffect(he,Et);r?V?qe():Ue=At.run():ie==="post"?queuePostRenderEffect(At.run.bind(At),pe&&pe.suspense):At.run();const Lt=()=>{At.stop(),pe&&pe.scope&&remove(pe.scope.effects,At)};return Fe&&Fe.push(Lt),Lt}function instanceWatch(t,r,V){const oe=this.proxy,ie=isString$6(t)?t.includes(".")?createPathGetter(oe,t):()=>oe[t]:t.bind(oe,oe);let le;isFunction$5(r)?le=r:(le=r.handler,V=r);const ue=currentInstance;setCurrentInstance(this);const de=doWatch(ie,le.bind(oe),V);return ue?setCurrentInstance(ue):unsetCurrentInstance(),de}function createPathGetter(t,r){const V=r.split(".");return()=>{let oe=t;for(let ie=0;ie{traverse(V,r)});else if(isPlainObject$4(t))for(const V in t)traverse(t[V],r);return t}function withDirectives(t,r){const V=currentRenderingInstance;if(V===null)return t;const oe=getExposeProxy(V)||V.proxy,ie=t.dirs||(t.dirs=[]);for(let le=0;le{t.isMounted=!0}),onBeforeUnmount(()=>{t.isUnmounting=!0}),t}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(t,{slots:r}){const V=getCurrentInstance(),oe=useTransitionState();let ie;return()=>{const le=r.default&&getTransitionRawChildren(r.default(),!0);if(!le||!le.length)return;let ue=le[0];if(le.length>1){for(const Ue of le)if(Ue.type!==Comment){ue=Ue;break}}const de=toRaw(t),{mode:pe}=de;if(oe.isLeaving)return emptyPlaceholder(ue);const he=getKeepAliveChild(ue);if(!he)return emptyPlaceholder(ue);const _e=resolveTransitionHooks(he,de,oe,V);setTransitionHooks(he,_e);const $e=V.subTree,Ie=$e&&getKeepAliveChild($e);let Ve=!1;const{getTransitionKey:Fe}=he.type;if(Fe){const Ue=Fe();ie===void 0?ie=Ue:Ue!==ie&&(ie=Ue,Ve=!0)}if(Ie&&Ie.type!==Comment&&(!isSameVNodeType(he,Ie)||Ve)){const Ue=resolveTransitionHooks(Ie,de,oe,V);if(setTransitionHooks(Ie,Ue),pe==="out-in")return oe.isLeaving=!0,Ue.afterLeave=()=>{oe.isLeaving=!1,V.update.active!==!1&&V.update()},emptyPlaceholder(ue);pe==="in-out"&&he.type!==Comment&&(Ue.delayLeave=(qe,Et,At)=>{const Lt=getLeavingNodesForType(oe,Ie);Lt[String(Ie.key)]=Ie,qe._leaveCb=()=>{Et(),qe._leaveCb=void 0,delete _e.delayedLeave},_e.delayedLeave=At})}return ue}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,r){const{leavingVNodes:V}=t;let oe=V.get(r.type);return oe||(oe=Object.create(null),V.set(r.type,oe)),oe}function resolveTransitionHooks(t,r,V,oe){const{appear:ie,mode:le,persisted:ue=!1,onBeforeEnter:de,onEnter:pe,onAfterEnter:he,onEnterCancelled:_e,onBeforeLeave:$e,onLeave:Ie,onAfterLeave:Ve,onLeaveCancelled:Fe,onBeforeAppear:Ue,onAppear:qe,onAfterAppear:Et,onAppearCancelled:At}=r,Lt=String(t.key),hn=getLeavingNodesForType(V,t),_n=(Cn,Sn)=>{Cn&&callWithAsyncErrorHandling(Cn,oe,9,Sn)},vn=(Cn,Sn)=>{const wn=Sn[1];_n(Cn,Sn),isArray$c(Cn)?Cn.every(En=>En.length<=1)&&wn():Cn.length<=1&&wn()},bn={mode:le,persisted:ue,beforeEnter(Cn){let Sn=de;if(!V.isMounted)if(ie)Sn=Ue||de;else return;Cn._leaveCb&&Cn._leaveCb(!0);const wn=hn[Lt];wn&&isSameVNodeType(t,wn)&&wn.el._leaveCb&&wn.el._leaveCb(),_n(Sn,[Cn])},enter(Cn){let Sn=pe,wn=he,En=_e;if(!V.isMounted)if(ie)Sn=qe||pe,wn=Et||he,En=At||_e;else return;let xn=!1;const Pn=Cn._enterCb=kn=>{xn||(xn=!0,kn?_n(En,[Cn]):_n(wn,[Cn]),bn.delayedLeave&&bn.delayedLeave(),Cn._enterCb=void 0)};Sn?vn(Sn,[Cn,Pn]):Pn()},leave(Cn,Sn){const wn=String(t.key);if(Cn._enterCb&&Cn._enterCb(!0),V.isUnmounting)return Sn();_n($e,[Cn]);let En=!1;const xn=Cn._leaveCb=Pn=>{En||(En=!0,Sn(),Pn?_n(Fe,[Cn]):_n(Ve,[Cn]),Cn._leaveCb=void 0,hn[wn]===t&&delete hn[wn])};hn[wn]=t,Ie?vn(Ie,[Cn,xn]):xn()},clone(Cn){return resolveTransitionHooks(Cn,r,V,oe)}};return bn}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getKeepAliveChild(t){return isKeepAlive(t)?t.children?t.children[0]:void 0:t}function setTransitionHooks(t,r){t.shapeFlag&6&&t.component?setTransitionHooks(t.component.subTree,r):t.shapeFlag&128?(t.ssContent.transition=r.clone(t.ssContent),t.ssFallback.transition=r.clone(t.ssFallback)):t.transition=r}function getTransitionRawChildren(t,r=!1,V){let oe=[],ie=0;for(let le=0;le1)for(let le=0;leextend$2({name:t.name},r,{setup:t}))():t}const isAsyncWrapper=t=>!!t.type.__asyncLoader;function defineAsyncComponent(t){isFunction$5(t)&&(t={loader:t});const{loader:r,loadingComponent:V,errorComponent:oe,delay:ie=200,timeout:le,suspensible:ue=!0,onError:de}=t;let pe=null,he,_e=0;const $e=()=>(_e++,pe=null,Ie()),Ie=()=>{let Ve;return pe||(Ve=pe=r().catch(Fe=>{if(Fe=Fe instanceof Error?Fe:new Error(String(Fe)),de)return new Promise((Ue,qe)=>{de(Fe,()=>Ue($e()),()=>qe(Fe),_e+1)});throw Fe}).then(Fe=>Ve!==pe&&pe?pe:(Fe&&(Fe.__esModule||Fe[Symbol.toStringTag]==="Module")&&(Fe=Fe.default),he=Fe,Fe)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:Ie,get __asyncResolved(){return he},setup(){const Ve=currentInstance;if(he)return()=>createInnerComp(he,Ve);const Fe=At=>{pe=null,handleError(At,Ve,13,!oe)};if(ue&&Ve.suspense||isInSSRComponentSetup)return Ie().then(At=>()=>createInnerComp(At,Ve)).catch(At=>(Fe(At),()=>oe?createVNode(oe,{error:At}):null));const Ue=ref(!1),qe=ref(),Et=ref(!!ie);return ie&&setTimeout(()=>{Et.value=!1},ie),le!=null&&setTimeout(()=>{if(!Ue.value&&!qe.value){const At=new Error(`Async component timed out after ${le}ms.`);Fe(At),qe.value=At}},le),Ie().then(()=>{Ue.value=!0,Ve.parent&&isKeepAlive(Ve.parent.vnode)&&queueJob(Ve.parent.update)}).catch(At=>{Fe(At),qe.value=At}),()=>{if(Ue.value&&he)return createInnerComp(he,Ve);if(qe.value&&oe)return createVNode(oe,{error:qe.value});if(V&&!Et.value)return createVNode(V)}}})}function createInnerComp(t,r){const{ref:V,props:oe,children:ie,ce:le}=r.vnode,ue=createVNode(t,oe,ie);return ue.ref=V,ue.ce=le,delete r.vnode.ce,ue}const isKeepAlive=t=>t.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:r}){const V=getCurrentInstance(),oe=V.ctx;if(!oe.renderer)return()=>{const At=r.default&&r.default();return At&&At.length===1?At[0]:At};const ie=new Map,le=new Set;let ue=null;const de=V.suspense,{renderer:{p:pe,m:he,um:_e,o:{createElement:$e}}}=oe,Ie=$e("div");oe.activate=(At,Lt,hn,_n,vn)=>{const bn=At.component;he(At,Lt,hn,0,de),pe(bn.vnode,At,Lt,hn,bn,de,_n,At.slotScopeIds,vn),queuePostRenderEffect(()=>{bn.isDeactivated=!1,bn.a&&invokeArrayFns(bn.a);const Cn=At.props&&At.props.onVnodeMounted;Cn&&invokeVNodeHook(Cn,bn.parent,At)},de)},oe.deactivate=At=>{const Lt=At.component;he(At,Ie,null,1,de),queuePostRenderEffect(()=>{Lt.da&&invokeArrayFns(Lt.da);const hn=At.props&&At.props.onVnodeUnmounted;hn&&invokeVNodeHook(hn,Lt.parent,At),Lt.isDeactivated=!0},de)};function Ve(At){resetShapeFlag(At),_e(At,V,de,!0)}function Fe(At){ie.forEach((Lt,hn)=>{const _n=getComponentName(Lt.type);_n&&(!At||!At(_n))&&Ue(hn)})}function Ue(At){const Lt=ie.get(At);!ue||!isSameVNodeType(Lt,ue)?Ve(Lt):ue&&resetShapeFlag(ue),ie.delete(At),le.delete(At)}watch(()=>[t.include,t.exclude],([At,Lt])=>{At&&Fe(hn=>matches(At,hn)),Lt&&Fe(hn=>!matches(Lt,hn))},{flush:"post",deep:!0});let qe=null;const Et=()=>{qe!=null&&ie.set(qe,getInnerChild(V.subTree))};return onMounted(Et),onUpdated(Et),onBeforeUnmount(()=>{ie.forEach(At=>{const{subTree:Lt,suspense:hn}=V,_n=getInnerChild(Lt);if(At.type===_n.type&&At.key===_n.key){resetShapeFlag(_n);const vn=_n.component.da;vn&&queuePostRenderEffect(vn,hn);return}Ve(At)})}),()=>{if(qe=null,!r.default)return null;const At=r.default(),Lt=At[0];if(At.length>1)return ue=null,At;if(!isVNode$1(Lt)||!(Lt.shapeFlag&4)&&!(Lt.shapeFlag&128))return ue=null,Lt;let hn=getInnerChild(Lt);const _n=hn.type,vn=getComponentName(isAsyncWrapper(hn)?hn.type.__asyncResolved||{}:_n),{include:bn,exclude:Cn,max:Sn}=t;if(bn&&(!vn||!matches(bn,vn))||Cn&&vn&&matches(Cn,vn))return ue=hn,Lt;const wn=hn.key==null?_n:hn.key,En=ie.get(wn);return hn.el&&(hn=cloneVNode(hn),Lt.shapeFlag&128&&(Lt.ssContent=hn)),qe=wn,En?(hn.el=En.el,hn.component=En.component,hn.transition&&setTransitionHooks(hn,hn.transition),hn.shapeFlag|=512,le.delete(wn),le.add(wn)):(le.add(wn),Sn&&le.size>parseInt(Sn,10)&&Ue(le.values().next().value)),hn.shapeFlag|=256,ue=hn,isSuspense(Lt.type)?Lt:hn}}},KeepAlive=KeepAliveImpl;function matches(t,r){return isArray$c(t)?t.some(V=>matches(V,r)):isString$6(t)?t.split(",").includes(r):isRegExp$5(t)?t.test(r):!1}function onActivated(t,r){registerKeepAliveHook(t,"a",r)}function onDeactivated(t,r){registerKeepAliveHook(t,"da",r)}function registerKeepAliveHook(t,r,V=currentInstance){const oe=t.__wdc||(t.__wdc=()=>{let ie=V;for(;ie;){if(ie.isDeactivated)return;ie=ie.parent}return t()});if(injectHook(r,oe,V),V){let ie=V.parent;for(;ie&&ie.parent;)isKeepAlive(ie.parent.vnode)&&injectToKeepAliveRoot(oe,r,V,ie),ie=ie.parent}}function injectToKeepAliveRoot(t,r,V,oe){const ie=injectHook(r,t,oe,!0);onUnmounted(()=>{remove(oe[r],ie)},V)}function resetShapeFlag(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function getInnerChild(t){return t.shapeFlag&128?t.ssContent:t}function injectHook(t,r,V=currentInstance,oe=!1){if(V){const ie=V[t]||(V[t]=[]),le=r.__weh||(r.__weh=(...ue)=>{if(V.isUnmounted)return;pauseTracking(),setCurrentInstance(V);const de=callWithAsyncErrorHandling(r,V,t,ue);return unsetCurrentInstance(),resetTracking(),de});return oe?ie.unshift(le):ie.push(le),le}}const createHook=t=>(r,V=currentInstance)=>(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...oe)=>r(...oe),V),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(t,r=currentInstance){injectHook("ec",t,r)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(t,r){return resolveAsset(COMPONENTS,t,!0,r)||t}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(t){return isString$6(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveDirective(t){return resolveAsset(DIRECTIVES,t)}function resolveAsset(t,r,V=!0,oe=!1){const ie=currentRenderingInstance||currentInstance;if(ie){const le=ie.type;if(t===COMPONENTS){const de=getComponentName(le,!1);if(de&&(de===r||de===camelize(r)||de===capitalize$2(camelize(r))))return le}const ue=resolve(ie[t]||le[t],r)||resolve(ie.appContext[t],r);return!ue&&oe?le:ue}}function resolve(t,r){return t&&(t[r]||t[camelize(r)]||t[capitalize$2(camelize(r))])}function renderList(t,r,V,oe){let ie;const le=V&&V[oe];if(isArray$c(t)||isString$6(t)){ie=new Array(t.length);for(let ue=0,de=t.length;uer(ue,de,void 0,le&&le[de]));else{const ue=Object.keys(t);ie=new Array(ue.length);for(let de=0,pe=ue.length;de{const le=oe.fn(...ie);return le&&(le.key=oe.key),le}:oe.fn)}return t}function renderSlot(t,r,V={},oe,ie){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return r!=="default"&&(V.name=r),createVNode("slot",V,oe&&oe());let le=t[r];le&&le._c&&(le._d=!1),openBlock();const ue=le&&ensureValidVNode(le(V)),de=createBlock(Fragment,{key:V.key||ue&&ue.key||`_${r}`},ue||(oe?oe():[]),ue&&t._===1?64:-2);return!ie&&de.scopeId&&(de.slotScopeIds=[de.scopeId+"-s"]),le&&le._c&&(le._d=!0),de}function ensureValidVNode(t){return t.some(r=>isVNode$1(r)?!(r.type===Comment||r.type===Fragment&&!ensureValidVNode(r.children)):!0)?t:null}function toHandlers(t,r){const V={};for(const oe in t)V[r&&/[A-Z]/.test(oe)?`on:${oe}`:toHandlerKey(oe)]=t[oe];return V}const getPublicInstance=t=>t?isStatefulComponent(t)?getExposeProxy(t)||t.proxy:getPublicInstance(t.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>getPublicInstance(t.parent),$root:t=>getPublicInstance(t.root),$emit:t=>t.emit,$options:t=>resolveMergedOptions(t),$forceUpdate:t=>t.f||(t.f=()=>queueJob(t.update)),$nextTick:t=>t.n||(t.n=nextTick.bind(t.proxy)),$watch:t=>instanceWatch.bind(t)}),hasSetupBinding=(t,r)=>t!==EMPTY_OBJ$1&&!t.__isScriptSetup&&hasOwn$4(t,r),PublicInstanceProxyHandlers={get({_:t},r){const{ctx:V,setupState:oe,data:ie,props:le,accessCache:ue,type:de,appContext:pe}=t;let he;if(r[0]!=="$"){const Ve=ue[r];if(Ve!==void 0)switch(Ve){case 1:return oe[r];case 2:return ie[r];case 4:return V[r];case 3:return le[r]}else{if(hasSetupBinding(oe,r))return ue[r]=1,oe[r];if(ie!==EMPTY_OBJ$1&&hasOwn$4(ie,r))return ue[r]=2,ie[r];if((he=t.propsOptions[0])&&hasOwn$4(he,r))return ue[r]=3,le[r];if(V!==EMPTY_OBJ$1&&hasOwn$4(V,r))return ue[r]=4,V[r];shouldCacheAccess&&(ue[r]=0)}}const _e=publicPropertiesMap[r];let $e,Ie;if(_e)return r==="$attrs"&&track(t,"get",r),_e(t);if(($e=de.__cssModules)&&($e=$e[r]))return $e;if(V!==EMPTY_OBJ$1&&hasOwn$4(V,r))return ue[r]=4,V[r];if(Ie=pe.config.globalProperties,hasOwn$4(Ie,r))return Ie[r]},set({_:t},r,V){const{data:oe,setupState:ie,ctx:le}=t;return hasSetupBinding(ie,r)?(ie[r]=V,!0):oe!==EMPTY_OBJ$1&&hasOwn$4(oe,r)?(oe[r]=V,!0):hasOwn$4(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(le[r]=V,!0)},has({_:{data:t,setupState:r,accessCache:V,ctx:oe,appContext:ie,propsOptions:le}},ue){let de;return!!V[ue]||t!==EMPTY_OBJ$1&&hasOwn$4(t,ue)||hasSetupBinding(r,ue)||(de=le[0])&&hasOwn$4(de,ue)||hasOwn$4(oe,ue)||hasOwn$4(publicPropertiesMap,ue)||hasOwn$4(ie.config.globalProperties,ue)},defineProperty(t,r,V){return V.get!=null?t._.accessCache[r]=0:hasOwn$4(V,"value")&&this.set(t,r,V.value,null),Reflect.defineProperty(t,r,V)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get(t,r){if(r!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(t,r,t)},has(t,r){return r[0]!=="_"&&!isGloballyWhitelisted(r)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(t){}function defineOptions(t){}function defineSlots(){return null}function defineModel(){}function withDefaults(t,r){return null}function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function useModel(t,r,V){const oe=getCurrentInstance();if(V&&V.local){const ie=ref(t[r]);return watch(()=>t[r],le=>ie.value=le),watch(ie,le=>{le!==t[r]&&oe.emit(`update:${r}`,le)}),ie}else return{__v_isRef:!0,get value(){return t[r]},set value(ie){oe.emit(`update:${r}`,ie)}}}function getContext(){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(t){return isArray$c(t)?t.reduce((r,V)=>(r[V]=null,r),{}):t}function mergeDefaults(t,r){const V=normalizePropsOrEmits(t);for(const oe in r){if(oe.startsWith("__skip"))continue;let ie=V[oe];ie?isArray$c(ie)||isFunction$5(ie)?ie=V[oe]={type:ie,default:r[oe]}:ie.default=r[oe]:ie===null&&(ie=V[oe]={default:r[oe]}),ie&&r[`__skip_${oe}`]&&(ie.skipFactory=!0)}return V}function mergeModels(t,r){return!t||!r?t||r:isArray$c(t)&&isArray$c(r)?t.concat(r):extend$2({},normalizePropsOrEmits(t),normalizePropsOrEmits(r))}function createPropsRestProxy(t,r){const V={};for(const oe in t)r.includes(oe)||Object.defineProperty(V,oe,{enumerable:!0,get:()=>t[oe]});return V}function withAsyncContext(t){const r=getCurrentInstance();let V=t();return unsetCurrentInstance(),isPromise(V)&&(V=V.catch(oe=>{throw setCurrentInstance(r),oe})),[V,()=>setCurrentInstance(r)]}let shouldCacheAccess=!0;function applyOptions(t){const r=resolveMergedOptions(t),V=t.proxy,oe=t.ctx;shouldCacheAccess=!1,r.beforeCreate&&callHook$1(r.beforeCreate,t,"bc");const{data:ie,computed:le,methods:ue,watch:de,provide:pe,inject:he,created:_e,beforeMount:$e,mounted:Ie,beforeUpdate:Ve,updated:Fe,activated:Ue,deactivated:qe,beforeDestroy:Et,beforeUnmount:At,destroyed:Lt,unmounted:hn,render:_n,renderTracked:vn,renderTriggered:bn,errorCaptured:Cn,serverPrefetch:Sn,expose:wn,inheritAttrs:En,components:xn,directives:Pn,filters:kn}=r;if(he&&resolveInjections(he,oe,null),ue)for(const Mn in ue){const Ln=ue[Mn];isFunction$5(Ln)&&(oe[Mn]=Ln.bind(V))}if(ie){const Mn=ie.call(V,V);isObject$9(Mn)&&(t.data=reactive(Mn))}if(shouldCacheAccess=!0,le)for(const Mn in le){const Ln=le[Mn],An=isFunction$5(Ln)?Ln.bind(V,V):isFunction$5(Ln.get)?Ln.get.bind(V,V):NOOP,Vn=!isFunction$5(Ln)&&isFunction$5(Ln.set)?Ln.set.bind(V):NOOP,Wn=computed({get:An,set:Vn});Object.defineProperty(oe,Mn,{enumerable:!0,configurable:!0,get:()=>Wn.value,set:Fn=>Wn.value=Fn})}if(de)for(const Mn in de)createWatcher(de[Mn],oe,V,Mn);if(pe){const Mn=isFunction$5(pe)?pe.call(V):pe;Reflect.ownKeys(Mn).forEach(Ln=>{provide(Ln,Mn[Ln])})}_e&&callHook$1(_e,t,"c");function Dn(Mn,Ln){isArray$c(Ln)?Ln.forEach(An=>Mn(An.bind(V))):Ln&&Mn(Ln.bind(V))}if(Dn(onBeforeMount,$e),Dn(onMounted,Ie),Dn(onBeforeUpdate,Ve),Dn(onUpdated,Fe),Dn(onActivated,Ue),Dn(onDeactivated,qe),Dn(onErrorCaptured,Cn),Dn(onRenderTracked,vn),Dn(onRenderTriggered,bn),Dn(onBeforeUnmount,At),Dn(onUnmounted,hn),Dn(onServerPrefetch,Sn),isArray$c(wn))if(wn.length){const Mn=t.exposed||(t.exposed={});wn.forEach(Ln=>{Object.defineProperty(Mn,Ln,{get:()=>V[Ln],set:An=>V[Ln]=An})})}else t.exposed||(t.exposed={});_n&&t.render===NOOP&&(t.render=_n),En!=null&&(t.inheritAttrs=En),xn&&(t.components=xn),Pn&&(t.directives=Pn)}function resolveInjections(t,r,V=NOOP){isArray$c(t)&&(t=normalizeInject(t));for(const oe in t){const ie=t[oe];let le;isObject$9(ie)?"default"in ie?le=inject(ie.from||oe,ie.default,!0):le=inject(ie.from||oe):le=inject(ie),isRef(le)?Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>le.value,set:ue=>le.value=ue}):r[oe]=le}}function callHook$1(t,r,V){callWithAsyncErrorHandling(isArray$c(t)?t.map(oe=>oe.bind(r.proxy)):t.bind(r.proxy),r,V)}function createWatcher(t,r,V,oe){const ie=oe.includes(".")?createPathGetter(V,oe):()=>V[oe];if(isString$6(t)){const le=r[t];isFunction$5(le)&&watch(ie,le)}else if(isFunction$5(t))watch(ie,t.bind(V));else if(isObject$9(t))if(isArray$c(t))t.forEach(le=>createWatcher(le,r,V,oe));else{const le=isFunction$5(t.handler)?t.handler.bind(V):r[t.handler];isFunction$5(le)&&watch(ie,le,t)}}function resolveMergedOptions(t){const r=t.type,{mixins:V,extends:oe}=r,{mixins:ie,optionsCache:le,config:{optionMergeStrategies:ue}}=t.appContext,de=le.get(r);let pe;return de?pe=de:!ie.length&&!V&&!oe?pe=r:(pe={},ie.length&&ie.forEach(he=>mergeOptions$2(pe,he,ue,!0)),mergeOptions$2(pe,r,ue)),isObject$9(r)&&le.set(r,pe),pe}function mergeOptions$2(t,r,V,oe=!1){const{mixins:ie,extends:le}=r;le&&mergeOptions$2(t,le,V,!0),ie&&ie.forEach(ue=>mergeOptions$2(t,ue,V,!0));for(const ue in r)if(!(oe&&ue==="expose")){const de=internalOptionMergeStrats[ue]||V&&V[ue];t[ue]=de?de(t[ue],r[ue]):r[ue]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(t,r){return r?t?function(){return extend$2(isFunction$5(t)?t.call(this,this):t,isFunction$5(r)?r.call(this,this):r)}:r:t}function mergeInject(t,r){return mergeObjectOptions(normalizeInject(t),normalizeInject(r))}function normalizeInject(t){if(isArray$c(t)){const r={};for(let V=0;V1)return V&&isFunction$5(r)?r.call(oe&&oe.proxy):r}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps$1(t,r,V,oe=!1){const ie={},le={};def(le,InternalObjectKey,1),t.propsDefaults=Object.create(null),setFullProps(t,r,ie,le);for(const ue in t.propsOptions[0])ue in ie||(ie[ue]=void 0);V?t.props=oe?ie:shallowReactive(ie):t.type.props?t.props=ie:t.props=le,t.attrs=le}function updateProps$2(t,r,V,oe){const{props:ie,attrs:le,vnode:{patchFlag:ue}}=t,de=toRaw(ie),[pe]=t.propsOptions;let he=!1;if((oe||ue>0)&&!(ue&16)){if(ue&8){const _e=t.vnode.dynamicProps;for(let $e=0;$e<_e.length;$e++){let Ie=_e[$e];if(isEmitListener(t.emitsOptions,Ie))continue;const Ve=r[Ie];if(pe)if(hasOwn$4(le,Ie))Ve!==le[Ie]&&(le[Ie]=Ve,he=!0);else{const Fe=camelize(Ie);ie[Fe]=resolvePropValue(pe,de,Fe,Ve,t,!1)}else Ve!==le[Ie]&&(le[Ie]=Ve,he=!0)}}}else{setFullProps(t,r,ie,le)&&(he=!0);let _e;for(const $e in de)(!r||!hasOwn$4(r,$e)&&((_e=hyphenate($e))===$e||!hasOwn$4(r,_e)))&&(pe?V&&(V[$e]!==void 0||V[_e]!==void 0)&&(ie[$e]=resolvePropValue(pe,de,$e,void 0,t,!0)):delete ie[$e]);if(le!==de)for(const $e in le)(!r||!hasOwn$4(r,$e))&&(delete le[$e],he=!0)}he&&trigger$2(t,"set","$attrs")}function setFullProps(t,r,V,oe){const[ie,le]=t.propsOptions;let ue=!1,de;if(r)for(let pe in r){if(isReservedProp(pe))continue;const he=r[pe];let _e;ie&&hasOwn$4(ie,_e=camelize(pe))?!le||!le.includes(_e)?V[_e]=he:(de||(de={}))[_e]=he:isEmitListener(t.emitsOptions,pe)||(!(pe in oe)||he!==oe[pe])&&(oe[pe]=he,ue=!0)}if(le){const pe=toRaw(V),he=de||EMPTY_OBJ$1;for(let _e=0;_e{pe=!0;const[Ie,Ve]=normalizePropsOptions($e,r,!0);extend$2(ue,Ie),Ve&&de.push(...Ve)};!V&&r.mixins.length&&r.mixins.forEach(_e),t.extends&&_e(t.extends),t.mixins&&t.mixins.forEach(_e)}if(!le&&!pe)return isObject$9(t)&&oe.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$c(le))for(let _e=0;_e-1,Ve[1]=Ue<0||Fe-1||hasOwn$4(Ve,"default"))&&de.push($e)}}}const he=[ue,de];return isObject$9(t)&&oe.set(t,he),he}function validatePropName(t){return t[0]!=="$"}function getType(t){const r=t&&t.toString().match(/^\s*(function|class) (\w+)/);return r?r[2]:t===null?"null":""}function isSameType(t,r){return getType(t)===getType(r)}function getTypeIndex(t,r){return isArray$c(r)?r.findIndex(V=>isSameType(V,t)):isFunction$5(r)&&isSameType(r,t)?0:-1}const isInternalKey=t=>t[0]==="_"||t==="$stable",normalizeSlotValue=t=>isArray$c(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot$1=(t,r,V)=>{if(r._n)return r;const oe=withCtx((...ie)=>normalizeSlotValue(r(...ie)),V);return oe._c=!1,oe},normalizeObjectSlots=(t,r,V)=>{const oe=t._ctx;for(const ie in t){if(isInternalKey(ie))continue;const le=t[ie];if(isFunction$5(le))r[ie]=normalizeSlot$1(ie,le,oe);else if(le!=null){const ue=normalizeSlotValue(le);r[ie]=()=>ue}}},normalizeVNodeSlots=(t,r)=>{const V=normalizeSlotValue(r);t.slots.default=()=>V},initSlots=(t,r)=>{if(t.vnode.shapeFlag&32){const V=r._;V?(t.slots=toRaw(r),def(r,"_",V)):normalizeObjectSlots(r,t.slots={})}else t.slots={},r&&normalizeVNodeSlots(t,r);def(t.slots,InternalObjectKey,1)},updateSlots=(t,r,V)=>{const{vnode:oe,slots:ie}=t;let le=!0,ue=EMPTY_OBJ$1;if(oe.shapeFlag&32){const de=r._;de?V&&de===1?le=!1:(extend$2(ie,r),!V&&de===1&&delete ie._):(le=!r.$stable,normalizeObjectSlots(r,ie)),ue=r}else r&&(normalizeVNodeSlots(t,r),ue={default:1});if(le)for(const de in ie)!isInternalKey(de)&&!(de in ue)&&delete ie[de]};function setRef(t,r,V,oe,ie=!1){if(isArray$c(t)){t.forEach((Ie,Ve)=>setRef(Ie,r&&(isArray$c(r)?r[Ve]:r),V,oe,ie));return}if(isAsyncWrapper(oe)&&!ie)return;const le=oe.shapeFlag&4?getExposeProxy(oe.component)||oe.component.proxy:oe.el,ue=ie?null:le,{i:de,r:pe}=t,he=r&&r.r,_e=de.refs===EMPTY_OBJ$1?de.refs={}:de.refs,$e=de.setupState;if(he!=null&&he!==pe&&(isString$6(he)?(_e[he]=null,hasOwn$4($e,he)&&($e[he]=null)):isRef(he)&&(he.value=null)),isFunction$5(pe))callWithErrorHandling(pe,de,12,[ue,_e]);else{const Ie=isString$6(pe),Ve=isRef(pe);if(Ie||Ve){const Fe=()=>{if(t.f){const Ue=Ie?hasOwn$4($e,pe)?$e[pe]:_e[pe]:pe.value;ie?isArray$c(Ue)&&remove(Ue,le):isArray$c(Ue)?Ue.includes(le)||Ue.push(le):Ie?(_e[pe]=[le],hasOwn$4($e,pe)&&($e[pe]=_e[pe])):(pe.value=[le],t.k&&(_e[t.k]=pe.value))}else Ie?(_e[pe]=ue,hasOwn$4($e,pe)&&($e[pe]=ue)):Ve&&(pe.value=ue,t.k&&(_e[t.k]=ue))};ue?(Fe.id=-1,queuePostRenderEffect(Fe,V)):Fe()}}}let hasMismatch=!1;const isSVGContainer=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",isComment$1=t=>t.nodeType===8;function createHydrationFunctions(t){const{mt:r,p:V,o:{patchProp:oe,createText:ie,nextSibling:le,parentNode:ue,remove:de,insert:pe,createComment:he}}=t,_e=(Et,At)=>{if(!At.hasChildNodes()){V(null,Et,At),flushPostFlushCbs(),At._vnode=Et;return}hasMismatch=!1,$e(At.firstChild,Et,null,null,null),flushPostFlushCbs(),At._vnode=Et,hasMismatch&&console.error("Hydration completed but contains mismatches.")},$e=(Et,At,Lt,hn,_n,vn=!1)=>{const bn=isComment$1(Et)&&Et.data==="[",Cn=()=>Ue(Et,At,Lt,hn,_n,bn),{type:Sn,ref:wn,shapeFlag:En,patchFlag:xn}=At;let Pn=Et.nodeType;At.el=Et,xn===-2&&(vn=!1,At.dynamicChildren=null);let kn=null;switch(Sn){case Text$1:Pn!==3?At.children===""?(pe(At.el=ie(""),ue(Et),Et),kn=Et):kn=Cn():(Et.data!==At.children&&(hasMismatch=!0,Et.data=At.children),kn=le(Et));break;case Comment:Pn!==8||bn?kn=Cn():kn=le(Et);break;case Static:if(bn&&(Et=le(Et),Pn=Et.nodeType),Pn===1||Pn===3){kn=Et;const Nn=!At.children.length;for(let Dn=0;Dn{vn=vn||!!At.dynamicChildren;const{type:bn,props:Cn,patchFlag:Sn,shapeFlag:wn,dirs:En}=At,xn=bn==="input"&&En||bn==="option";if(xn||Sn!==-1){if(En&&invokeDirectiveHook(At,null,Lt,"created"),Cn)if(xn||!vn||Sn&48)for(const kn in Cn)(xn&&kn.endsWith("value")||isOn(kn)&&!isReservedProp(kn))&&oe(Et,kn,null,Cn[kn],!1,void 0,Lt);else Cn.onClick&&oe(Et,"onClick",null,Cn.onClick,!1,void 0,Lt);let Pn;if((Pn=Cn&&Cn.onVnodeBeforeMount)&&invokeVNodeHook(Pn,Lt,At),En&&invokeDirectiveHook(At,null,Lt,"beforeMount"),((Pn=Cn&&Cn.onVnodeMounted)||En)&&queueEffectWithSuspense(()=>{Pn&&invokeVNodeHook(Pn,Lt,At),En&&invokeDirectiveHook(At,null,Lt,"mounted")},hn),wn&16&&!(Cn&&(Cn.innerHTML||Cn.textContent))){let kn=Ve(Et.firstChild,At,Et,Lt,hn,_n,vn);for(;kn;){hasMismatch=!0;const Nn=kn;kn=kn.nextSibling,de(Nn)}}else wn&8&&Et.textContent!==At.children&&(hasMismatch=!0,Et.textContent=At.children)}return Et.nextSibling},Ve=(Et,At,Lt,hn,_n,vn,bn)=>{bn=bn||!!At.dynamicChildren;const Cn=At.children,Sn=Cn.length;for(let wn=0;wn{const{slotScopeIds:bn}=At;bn&&(_n=_n?_n.concat(bn):bn);const Cn=ue(Et),Sn=Ve(le(Et),At,Cn,Lt,hn,_n,vn);return Sn&&isComment$1(Sn)&&Sn.data==="]"?le(At.anchor=Sn):(hasMismatch=!0,pe(At.anchor=he("]"),Cn,Sn),Sn)},Ue=(Et,At,Lt,hn,_n,vn)=>{if(hasMismatch=!0,At.el=null,vn){const Sn=qe(Et);for(;;){const wn=le(Et);if(wn&&wn!==Sn)de(wn);else break}}const bn=le(Et),Cn=ue(Et);return de(Et),V(null,At,Cn,bn,Lt,hn,isSVGContainer(Cn),_n),bn},qe=Et=>{let At=0;for(;Et;)if(Et=le(Et),Et&&isComment$1(Et)&&(Et.data==="["&&At++,Et.data==="]")){if(At===0)return le(Et);At--}return Et};return[_e,$e]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function createHydrationRenderer(t){return baseCreateRenderer(t,createHydrationFunctions)}function baseCreateRenderer(t,r){const V=getGlobalThis();V.__VUE__=!0;const{insert:oe,remove:ie,patchProp:le,createElement:ue,createText:de,createComment:pe,setText:he,setElementText:_e,parentNode:$e,nextSibling:Ie,setScopeId:Ve=NOOP,insertStaticContent:Fe}=t,Ue=(Un,qn,er,pr=null,Er=null,dr=null,xr=!1,wr=null,Cr=!!qn.dynamicChildren)=>{if(Un===qn)return;Un&&!isSameVNodeType(Un,qn)&&(pr=Kn(Un),Fn(Un,Er,dr,!0),Un=null),qn.patchFlag===-2&&(Cr=!1,qn.dynamicChildren=null);const{type:gr,ref:or,shapeFlag:fr}=qn;switch(gr){case Text$1:qe(Un,qn,er,pr);break;case Comment:Et(Un,qn,er,pr);break;case Static:Un==null&&At(qn,er,pr,xr);break;case Fragment:xn(Un,qn,er,pr,Er,dr,xr,wr,Cr);break;default:fr&1?_n(Un,qn,er,pr,Er,dr,xr,wr,Cr):fr&6?Pn(Un,qn,er,pr,Er,dr,xr,wr,Cr):(fr&64||fr&128)&&gr.process(Un,qn,er,pr,Er,dr,xr,wr,Cr,Qn)}or!=null&&Er&&setRef(or,Un&&Un.ref,dr,qn||Un,!qn)},qe=(Un,qn,er,pr)=>{if(Un==null)oe(qn.el=de(qn.children),er,pr);else{const Er=qn.el=Un.el;qn.children!==Un.children&&he(Er,qn.children)}},Et=(Un,qn,er,pr)=>{Un==null?oe(qn.el=pe(qn.children||""),er,pr):qn.el=Un.el},At=(Un,qn,er,pr)=>{[Un.el,Un.anchor]=Fe(Un.children,qn,er,pr,Un.el,Un.anchor)},Lt=({el:Un,anchor:qn},er,pr)=>{let Er;for(;Un&&Un!==qn;)Er=Ie(Un),oe(Un,er,pr),Un=Er;oe(qn,er,pr)},hn=({el:Un,anchor:qn})=>{let er;for(;Un&&Un!==qn;)er=Ie(Un),ie(Un),Un=er;ie(qn)},_n=(Un,qn,er,pr,Er,dr,xr,wr,Cr)=>{xr=xr||qn.type==="svg",Un==null?vn(qn,er,pr,Er,dr,xr,wr,Cr):Sn(Un,qn,Er,dr,xr,wr,Cr)},vn=(Un,qn,er,pr,Er,dr,xr,wr)=>{let Cr,gr;const{type:or,props:fr,shapeFlag:kr,transition:br,dirs:Ar}=Un;if(Cr=Un.el=ue(Un.type,dr,fr&&fr.is,fr),kr&8?_e(Cr,Un.children):kr&16&&Cn(Un.children,Cr,null,pr,Er,dr&&or!=="foreignObject",xr,wr),Ar&&invokeDirectiveHook(Un,null,pr,"created"),bn(Cr,Un,Un.scopeId,xr,pr),fr){for(const Br in fr)Br!=="value"&&!isReservedProp(Br)&&le(Cr,Br,null,fr[Br],dr,Un.children,pr,Er,Jn);"value"in fr&&le(Cr,"value",null,fr.value),(gr=fr.onVnodeBeforeMount)&&invokeVNodeHook(gr,pr,Un)}Ar&&invokeDirectiveHook(Un,null,pr,"beforeMount");const Dr=(!Er||Er&&!Er.pendingBranch)&&br&&!br.persisted;Dr&&br.beforeEnter(Cr),oe(Cr,qn,er),((gr=fr&&fr.onVnodeMounted)||Dr||Ar)&&queuePostRenderEffect(()=>{gr&&invokeVNodeHook(gr,pr,Un),Dr&&br.enter(Cr),Ar&&invokeDirectiveHook(Un,null,pr,"mounted")},Er)},bn=(Un,qn,er,pr,Er)=>{if(er&&Ve(Un,er),pr)for(let dr=0;dr{for(let gr=Cr;gr{const wr=qn.el=Un.el;let{patchFlag:Cr,dynamicChildren:gr,dirs:or}=qn;Cr|=Un.patchFlag&16;const fr=Un.props||EMPTY_OBJ$1,kr=qn.props||EMPTY_OBJ$1;let br;er&&toggleRecurse(er,!1),(br=kr.onVnodeBeforeUpdate)&&invokeVNodeHook(br,er,qn,Un),or&&invokeDirectiveHook(qn,Un,er,"beforeUpdate"),er&&toggleRecurse(er,!0);const Ar=Er&&qn.type!=="foreignObject";if(gr?wn(Un.dynamicChildren,gr,wr,er,pr,Ar,dr):xr||Ln(Un,qn,wr,null,er,pr,Ar,dr,!1),Cr>0){if(Cr&16)En(wr,qn,fr,kr,er,pr,Er);else if(Cr&2&&fr.class!==kr.class&&le(wr,"class",null,kr.class,Er),Cr&4&&le(wr,"style",fr.style,kr.style,Er),Cr&8){const Dr=qn.dynamicProps;for(let Br=0;Br{br&&invokeVNodeHook(br,er,qn,Un),or&&invokeDirectiveHook(qn,Un,er,"updated")},pr)},wn=(Un,qn,er,pr,Er,dr,xr)=>{for(let wr=0;wr{if(er!==pr){if(er!==EMPTY_OBJ$1)for(const wr in er)!isReservedProp(wr)&&!(wr in pr)&&le(Un,wr,er[wr],null,xr,qn.children,Er,dr,Jn);for(const wr in pr){if(isReservedProp(wr))continue;const Cr=pr[wr],gr=er[wr];Cr!==gr&&wr!=="value"&&le(Un,wr,gr,Cr,xr,qn.children,Er,dr,Jn)}"value"in pr&&le(Un,"value",er.value,pr.value)}},xn=(Un,qn,er,pr,Er,dr,xr,wr,Cr)=>{const gr=qn.el=Un?Un.el:de(""),or=qn.anchor=Un?Un.anchor:de("");let{patchFlag:fr,dynamicChildren:kr,slotScopeIds:br}=qn;br&&(wr=wr?wr.concat(br):br),Un==null?(oe(gr,er,pr),oe(or,er,pr),Cn(qn.children,er,or,Er,dr,xr,wr,Cr)):fr>0&&fr&64&&kr&&Un.dynamicChildren?(wn(Un.dynamicChildren,kr,er,Er,dr,xr,wr),(qn.key!=null||Er&&qn===Er.subTree)&&traverseStaticChildren(Un,qn,!0)):Ln(Un,qn,er,or,Er,dr,xr,wr,Cr)},Pn=(Un,qn,er,pr,Er,dr,xr,wr,Cr)=>{qn.slotScopeIds=wr,Un==null?qn.shapeFlag&512?Er.ctx.activate(qn,er,pr,xr,Cr):kn(qn,er,pr,Er,dr,xr,Cr):Nn(Un,qn,Cr)},kn=(Un,qn,er,pr,Er,dr,xr)=>{const wr=Un.component=createComponentInstance(Un,pr,Er);if(isKeepAlive(Un)&&(wr.ctx.renderer=Qn),setupComponent(wr),wr.asyncDep){if(Er&&Er.registerDep(wr,Dn),!Un.el){const Cr=wr.subTree=createVNode(Comment);Et(null,Cr,qn,er)}return}Dn(wr,Un,qn,er,Er,dr,xr)},Nn=(Un,qn,er)=>{const pr=qn.component=Un.component;if(shouldUpdateComponent(Un,qn,er))if(pr.asyncDep&&!pr.asyncResolved){Mn(pr,qn,er);return}else pr.next=qn,invalidateJob(pr.update),pr.update();else qn.el=Un.el,pr.vnode=qn},Dn=(Un,qn,er,pr,Er,dr,xr)=>{const wr=()=>{if(Un.isMounted){let{next:or,bu:fr,u:kr,parent:br,vnode:Ar}=Un,Dr=or,Br;toggleRecurse(Un,!1),or?(or.el=Ar.el,Mn(Un,or,xr)):or=Ar,fr&&invokeArrayFns(fr),(Br=or.props&&or.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Br,br,or,Ar),toggleRecurse(Un,!0);const zr=renderComponentRoot(Un),Rr=Un.subTree;Un.subTree=zr,Ue(Rr,zr,$e(Rr.el),Kn(Rr),Un,Er,dr),or.el=zr.el,Dr===null&&updateHOCHostEl(Un,zr.el),kr&&queuePostRenderEffect(kr,Er),(Br=or.props&&or.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Br,br,or,Ar),Er)}else{let or;const{el:fr,props:kr}=qn,{bm:br,m:Ar,parent:Dr}=Un,Br=isAsyncWrapper(qn);if(toggleRecurse(Un,!1),br&&invokeArrayFns(br),!Br&&(or=kr&&kr.onVnodeBeforeMount)&&invokeVNodeHook(or,Dr,qn),toggleRecurse(Un,!0),fr&&cr){const zr=()=>{Un.subTree=renderComponentRoot(Un),cr(fr,Un.subTree,Un,Er,null)};Br?qn.type.__asyncLoader().then(()=>!Un.isUnmounted&&zr()):zr()}else{const zr=Un.subTree=renderComponentRoot(Un);Ue(null,zr,er,pr,Un,Er,dr),qn.el=zr.el}if(Ar&&queuePostRenderEffect(Ar,Er),!Br&&(or=kr&&kr.onVnodeMounted)){const zr=qn;queuePostRenderEffect(()=>invokeVNodeHook(or,Dr,zr),Er)}(qn.shapeFlag&256||Dr&&isAsyncWrapper(Dr.vnode)&&Dr.vnode.shapeFlag&256)&&Un.a&&queuePostRenderEffect(Un.a,Er),Un.isMounted=!0,qn=er=pr=null}},Cr=Un.effect=new ReactiveEffect(wr,()=>queueJob(gr),Un.scope),gr=Un.update=()=>Cr.run();gr.id=Un.uid,toggleRecurse(Un,!0),gr()},Mn=(Un,qn,er)=>{qn.component=Un;const pr=Un.vnode.props;Un.vnode=qn,Un.next=null,updateProps$2(Un,qn.props,pr,er),updateSlots(Un,qn.children,er),pauseTracking(),flushPreFlushCbs(),resetTracking()},Ln=(Un,qn,er,pr,Er,dr,xr,wr,Cr=!1)=>{const gr=Un&&Un.children,or=Un?Un.shapeFlag:0,fr=qn.children,{patchFlag:kr,shapeFlag:br}=qn;if(kr>0){if(kr&128){Vn(gr,fr,er,pr,Er,dr,xr,wr,Cr);return}else if(kr&256){An(gr,fr,er,pr,Er,dr,xr,wr,Cr);return}}br&8?(or&16&&Jn(gr,Er,dr),fr!==gr&&_e(er,fr)):or&16?br&16?Vn(gr,fr,er,pr,Er,dr,xr,wr,Cr):Jn(gr,Er,dr,!0):(or&8&&_e(er,""),br&16&&Cn(fr,er,pr,Er,dr,xr,wr,Cr))},An=(Un,qn,er,pr,Er,dr,xr,wr,Cr)=>{Un=Un||EMPTY_ARR,qn=qn||EMPTY_ARR;const gr=Un.length,or=qn.length,fr=Math.min(gr,or);let kr;for(kr=0;kror?Jn(Un,Er,dr,!0,!1,fr):Cn(qn,er,pr,Er,dr,xr,wr,Cr,fr)},Vn=(Un,qn,er,pr,Er,dr,xr,wr,Cr)=>{let gr=0;const or=qn.length;let fr=Un.length-1,kr=or-1;for(;gr<=fr&&gr<=kr;){const br=Un[gr],Ar=qn[gr]=Cr?cloneIfMounted(qn[gr]):normalizeVNode(qn[gr]);if(isSameVNodeType(br,Ar))Ue(br,Ar,er,null,Er,dr,xr,wr,Cr);else break;gr++}for(;gr<=fr&&gr<=kr;){const br=Un[fr],Ar=qn[kr]=Cr?cloneIfMounted(qn[kr]):normalizeVNode(qn[kr]);if(isSameVNodeType(br,Ar))Ue(br,Ar,er,null,Er,dr,xr,wr,Cr);else break;fr--,kr--}if(gr>fr){if(gr<=kr){const br=kr+1,Ar=brkr)for(;gr<=fr;)Fn(Un[gr],Er,dr,!0),gr++;else{const br=gr,Ar=gr,Dr=new Map;for(gr=Ar;gr<=kr;gr++){const Zn=qn[gr]=Cr?cloneIfMounted(qn[gr]):normalizeVNode(qn[gr]);Zn.key!=null&&Dr.set(Zn.key,gr)}let Br,zr=0;const Rr=kr-Ar+1;let mr=!1,ir=0;const ar=new Array(Rr);for(gr=0;gr=Rr){Fn(Zn,Er,dr,!0);continue}let Or;if(Zn.key!=null)Or=Dr.get(Zn.key);else for(Br=Ar;Br<=kr;Br++)if(ar[Br-Ar]===0&&isSameVNodeType(Zn,qn[Br])){Or=Br;break}Or===void 0?Fn(Zn,Er,dr,!0):(ar[Or-Ar]=gr+1,Or>=ir?ir=Or:mr=!0,Ue(Zn,qn[Or],er,null,Er,dr,xr,wr,Cr),zr++)}const $r=mr?getSequence(ar):EMPTY_ARR;for(Br=$r.length-1,gr=Rr-1;gr>=0;gr--){const Zn=Ar+gr,Or=qn[Zn],Lr=Zn+1{const{el:dr,type:xr,transition:wr,children:Cr,shapeFlag:gr}=Un;if(gr&6){Wn(Un.component.subTree,qn,er,pr);return}if(gr&128){Un.suspense.move(qn,er,pr);return}if(gr&64){xr.move(Un,qn,er,Qn);return}if(xr===Fragment){oe(dr,qn,er);for(let fr=0;frwr.enter(dr),Er);else{const{leave:fr,delayLeave:kr,afterLeave:br}=wr,Ar=()=>oe(dr,qn,er),Dr=()=>{fr(dr,()=>{Ar(),br&&br()})};kr?kr(dr,Ar,Dr):Dr()}else oe(dr,qn,er)},Fn=(Un,qn,er,pr=!1,Er=!1)=>{const{type:dr,props:xr,ref:wr,children:Cr,dynamicChildren:gr,shapeFlag:or,patchFlag:fr,dirs:kr}=Un;if(wr!=null&&setRef(wr,null,er,Un,!0),or&256){qn.ctx.deactivate(Un);return}const br=or&1&&kr,Ar=!isAsyncWrapper(Un);let Dr;if(Ar&&(Dr=xr&&xr.onVnodeBeforeUnmount)&&invokeVNodeHook(Dr,qn,Un),or&6)yr(Un.component,er,pr);else{if(or&128){Un.suspense.unmount(er,pr);return}br&&invokeDirectiveHook(Un,null,qn,"beforeUnmount"),or&64?Un.type.remove(Un,qn,er,Er,Qn,pr):gr&&(dr!==Fragment||fr>0&&fr&64)?Jn(gr,qn,er,!1,!0):(dr===Fragment&&fr&384||!Er&&or&16)&&Jn(Cr,qn,er),pr&&Yn(Un)}(Ar&&(Dr=xr&&xr.onVnodeUnmounted)||br)&&queuePostRenderEffect(()=>{Dr&&invokeVNodeHook(Dr,qn,Un),br&&invokeDirectiveHook(Un,null,qn,"unmounted")},er)},Yn=Un=>{const{type:qn,el:er,anchor:pr,transition:Er}=Un;if(qn===Fragment){tr(er,pr);return}if(qn===Static){hn(Un);return}const dr=()=>{ie(er),Er&&!Er.persisted&&Er.afterLeave&&Er.afterLeave()};if(Un.shapeFlag&1&&Er&&!Er.persisted){const{leave:xr,delayLeave:wr}=Er,Cr=()=>xr(er,dr);wr?wr(Un.el,dr,Cr):Cr()}else dr()},tr=(Un,qn)=>{let er;for(;Un!==qn;)er=Ie(Un),ie(Un),Un=er;ie(qn)},yr=(Un,qn,er)=>{const{bum:pr,scope:Er,update:dr,subTree:xr,um:wr}=Un;pr&&invokeArrayFns(pr),Er.stop(),dr&&(dr.active=!1,Fn(xr,Un,qn,er)),wr&&queuePostRenderEffect(wr,qn),queuePostRenderEffect(()=>{Un.isUnmounted=!0},qn),qn&&qn.pendingBranch&&!qn.isUnmounted&&Un.asyncDep&&!Un.asyncResolved&&Un.suspenseId===qn.pendingId&&(qn.deps--,qn.deps===0&&qn.resolve())},Jn=(Un,qn,er,pr=!1,Er=!1,dr=0)=>{for(let xr=dr;xrUn.shapeFlag&6?Kn(Un.component.subTree):Un.shapeFlag&128?Un.suspense.next():Ie(Un.anchor||Un.el),Gn=(Un,qn,er)=>{Un==null?qn._vnode&&Fn(qn._vnode,null,null,!0):Ue(qn._vnode||null,Un,qn,null,null,null,er),flushPreFlushCbs(),flushPostFlushCbs(),qn._vnode=Un},Qn={p:Ue,um:Fn,m:Wn,r:Yn,mt:kn,mc:Cn,pc:Ln,pbc:wn,n:Kn,o:t};let ur,cr;return r&&([ur,cr]=r(Qn)),{render:Gn,hydrate:ur,createApp:createAppAPI(Gn,ur)}}function toggleRecurse({effect:t,update:r},V){t.allowRecurse=r.allowRecurse=V}function traverseStaticChildren(t,r,V=!1){const oe=t.children,ie=r.children;if(isArray$c(oe)&&isArray$c(ie))for(let le=0;le>1,t[V[de]]0&&(r[oe]=V[le-1]),V[le]=oe)}}for(le=V.length,ue=V[le-1];le-- >0;)V[le]=ue,ue=r[ue];return V}const isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTargetSVG=t=>typeof SVGElement<"u"&&t instanceof SVGElement,resolveTarget=(t,r)=>{const V=t&&t.to;return isString$6(V)?r?r(V):null:V},TeleportImpl={__isTeleport:!0,process(t,r,V,oe,ie,le,ue,de,pe,he){const{mc:_e,pc:$e,pbc:Ie,o:{insert:Ve,querySelector:Fe,createText:Ue,createComment:qe}}=he,Et=isTeleportDisabled(r.props);let{shapeFlag:At,children:Lt,dynamicChildren:hn}=r;if(t==null){const _n=r.el=Ue(""),vn=r.anchor=Ue("");Ve(_n,V,oe),Ve(vn,V,oe);const bn=r.target=resolveTarget(r.props,Fe),Cn=r.targetAnchor=Ue("");bn&&(Ve(Cn,bn),ue=ue||isTargetSVG(bn));const Sn=(wn,En)=>{At&16&&_e(Lt,wn,En,ie,le,ue,de,pe)};Et?Sn(V,vn):bn&&Sn(bn,Cn)}else{r.el=t.el;const _n=r.anchor=t.anchor,vn=r.target=t.target,bn=r.targetAnchor=t.targetAnchor,Cn=isTeleportDisabled(t.props),Sn=Cn?V:vn,wn=Cn?_n:bn;if(ue=ue||isTargetSVG(vn),hn?(Ie(t.dynamicChildren,hn,Sn,ie,le,ue,de),traverseStaticChildren(t,r,!0)):pe||$e(t,r,Sn,wn,ie,le,ue,de,!1),Et)Cn||moveTeleport(r,V,_n,he,1);else if((r.props&&r.props.to)!==(t.props&&t.props.to)){const En=r.target=resolveTarget(r.props,Fe);En&&moveTeleport(r,En,null,he,0)}else Cn&&moveTeleport(r,vn,bn,he,1)}updateCssVars(r)},remove(t,r,V,oe,{um:ie,o:{remove:le}},ue){const{shapeFlag:de,children:pe,anchor:he,targetAnchor:_e,target:$e,props:Ie}=t;if($e&&le(_e),(ue||!isTeleportDisabled(Ie))&&(le(he),de&16))for(let Ve=0;Ve0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(t),t}function createElementBlock(t,r,V,oe,ie,le){return setupBlock(createBaseVNode(t,r,V,oe,ie,le,!0))}function createBlock(t,r,V,oe,ie){return setupBlock(createVNode(t,r,V,oe,ie,!0))}function isVNode$1(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,r){return t.type===r.type&&t.key===r.key}function transformVNodeArgs(t){}const InternalObjectKey="__vInternal",normalizeKey=({key:t})=>t??null,normalizeRef=({ref:t,ref_key:r,ref_for:V})=>(typeof t=="number"&&(t=""+t),t!=null?isString$6(t)||isRef(t)||isFunction$5(t)?{i:currentRenderingInstance,r:t,k:r,f:!!V}:t:null);function createBaseVNode(t,r=null,V=null,oe=0,ie=null,le=t===Fragment?0:1,ue=!1,de=!1){const pe={__v_isVNode:!0,__v_skip:!0,type:t,props:r,key:r&&normalizeKey(r),ref:r&&normalizeRef(r),scopeId:currentScopeId,slotScopeIds:null,children:V,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:le,patchFlag:oe,dynamicProps:ie,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return de?(normalizeChildren(pe,V),le&128&&t.normalize(pe)):V&&(pe.shapeFlag|=isString$6(V)?8:16),isBlockTreeEnabled>0&&!ue&¤tBlock&&(pe.patchFlag>0||le&6)&&pe.patchFlag!==32&¤tBlock.push(pe),pe}const createVNode=_createVNode;function _createVNode(t,r=null,V=null,oe=0,ie=null,le=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment),isVNode$1(t)){const de=cloneVNode(t,r,!0);return V&&normalizeChildren(de,V),isBlockTreeEnabled>0&&!le&¤tBlock&&(de.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=de:currentBlock.push(de)),de.patchFlag|=-2,de}if(isClassComponent(t)&&(t=t.__vccOpts),r){r=guardReactiveProps(r);let{class:de,style:pe}=r;de&&!isString$6(de)&&(r.class=normalizeClass(de)),isObject$9(pe)&&(isProxy(pe)&&!isArray$c(pe)&&(pe=extend$2({},pe)),r.style=normalizeStyle$1(pe))}const ue=isString$6(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$9(t)?4:isFunction$5(t)?2:0;return createBaseVNode(t,r,V,oe,ie,ue,le,!0)}function guardReactiveProps(t){return t?isProxy(t)||InternalObjectKey in t?extend$2({},t):t:null}function cloneVNode(t,r,V=!1){const{props:oe,ref:ie,patchFlag:le,children:ue}=t,de=r?mergeProps(oe||{},r):oe;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:de,key:de&&normalizeKey(de),ref:r&&r.ref?V&&ie?isArray$c(ie)?ie.concat(normalizeRef(r)):[ie,normalizeRef(r)]:normalizeRef(r):ie,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:ue,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==Fragment?le===-1?16:le|16:le,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function createTextVNode(t=" ",r=0){return createVNode(Text$1,null,t,r)}function createStaticVNode(t,r){const V=createVNode(Static,null,t);return V.staticCount=r,V}function createCommentVNode(t="",r=!1){return r?(openBlock(),createBlock(Comment,null,t)):createVNode(Comment,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode(Comment):isArray$c(t)?createVNode(Fragment,null,t.slice()):typeof t=="object"?cloneIfMounted(t):createVNode(Text$1,null,String(t))}function cloneIfMounted(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cloneVNode(t)}function normalizeChildren(t,r){let V=0;const{shapeFlag:oe}=t;if(r==null)r=null;else if(isArray$c(r))V=16;else if(typeof r=="object")if(oe&65){const ie=r.default;ie&&(ie._c&&(ie._d=!1),normalizeChildren(t,ie()),ie._c&&(ie._d=!0));return}else{V=32;const ie=r._;!ie&&!(InternalObjectKey in r)?r._ctx=currentRenderingInstance:ie===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else isFunction$5(r)?(r={default:r,_ctx:currentRenderingInstance},V=32):(r=String(r),oe&64?(V=16,r=[createTextVNode(r)]):V=8);t.children=r,t.shapeFlag|=V}function mergeProps(...t){const r={};for(let V=0;VcurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push(t=>currentInstance=t),internalSetCurrentInstance=t=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(r=>r(t)):globalCurrentInstanceSetters[0](t)};const setCurrentInstance=t=>{internalSetCurrentInstance(t),t.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,r=!1){isInSSRComponentSetup=r;const{props:V,children:oe}=t.vnode,ie=isStatefulComponent(t);initProps$1(t,V,ie,r),initSlots(t,oe);const le=ie?setupStatefulComponent(t,r):void 0;return isInSSRComponentSetup=!1,le}function setupStatefulComponent(t,r){const V=t.type;t.accessCache=Object.create(null),t.proxy=markRaw(new Proxy(t.ctx,PublicInstanceProxyHandlers));const{setup:oe}=V;if(oe){const ie=t.setupContext=oe.length>1?createSetupContext(t):null;setCurrentInstance(t),pauseTracking();const le=callWithErrorHandling(oe,t,0,[t.props,ie]);if(resetTracking(),unsetCurrentInstance(),isPromise(le)){if(le.then(unsetCurrentInstance,unsetCurrentInstance),r)return le.then(ue=>{handleSetupResult(t,ue,r)}).catch(ue=>{handleError(ue,t,0)});t.asyncDep=le}else handleSetupResult(t,le,r)}else finishComponentSetup(t,r)}function handleSetupResult(t,r,V){isFunction$5(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:isObject$9(r)&&(t.setupState=proxyRefs(r)),finishComponentSetup(t,V)}let compile$1,installWithProxy;function registerRuntimeCompiler(t){compile$1=t,installWithProxy=r=>{r.render._rc&&(r.withProxy=new Proxy(r.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup(t,r,V){const oe=t.type;if(!t.render){if(!r&&compile$1&&!oe.render){const ie=oe.template||resolveMergedOptions(t).template;if(ie){const{isCustomElement:le,compilerOptions:ue}=t.appContext.config,{delimiters:de,compilerOptions:pe}=oe,he=extend$2(extend$2({isCustomElement:le,delimiters:de},ue),pe);oe.render=compile$1(ie,he)}}t.render=oe.render||NOOP,installWithProxy&&installWithProxy(t)}setCurrentInstance(t),pauseTracking(),applyOptions(t),resetTracking(),unsetCurrentInstance()}function getAttrsProxy(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(r,V){return track(t,"get","$attrs"),r[V]}}))}function createSetupContext(t){const r=V=>{t.exposed=V||{}};return{get attrs(){return getAttrsProxy(t)},slots:t.slots,emit:t.emit,expose:r}}function getExposeProxy(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(proxyRefs(markRaw(t.exposed)),{get(r,V){if(V in r)return r[V];if(V in publicPropertiesMap)return publicPropertiesMap[V](t)},has(r,V){return V in r||V in publicPropertiesMap}}))}function getComponentName(t,r=!0){return isFunction$5(t)?t.displayName||t.name:t.name||r&&t.__name}function isClassComponent(t){return isFunction$5(t)&&"__vccOpts"in t}const computed=(t,r)=>computed$1(t,r,isInSSRComponentSetup);function h$2(t,r,V){const oe=arguments.length;return oe===2?isObject$9(r)&&!isArray$c(r)?isVNode$1(r)?createVNode(t,null,[r]):createVNode(t,r):createVNode(t,null,r):(oe>3?V=Array.prototype.slice.call(arguments,2):oe===3&&isVNode$1(V)&&(V=[V]),createVNode(t,r,V))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function initCustomFormatter(){}function withMemo(t,r,V,oe){const ie=V[oe];if(ie&&isMemoSame(ie,t))return ie;const le=r();return le.memo=t.slice(),V[oe]=le}function isMemoSame(t,r){const V=t.memo;if(V.length!=r.length)return!1;for(let oe=0;oe0&¤tBlock&¤tBlock.push(t),!0}const version$3="3.3.4",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$1,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc$1=typeof document<"u"?document:null,templateContainer=doc$1&&doc$1.createElement("template"),nodeOps={insert:(t,r,V)=>{r.insertBefore(t,V||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,V,oe)=>{const ie=r?doc$1.createElementNS(svgNS,t):doc$1.createElement(t,V?{is:V}:void 0);return t==="select"&&oe&&oe.multiple!=null&&ie.setAttribute("multiple",oe.multiple),ie},createText:t=>doc$1.createTextNode(t),createComment:t=>doc$1.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>doc$1.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,V,oe,ie,le){const ue=V?V.previousSibling:r.lastChild;if(ie&&(ie===le||ie.nextSibling))for(;r.insertBefore(ie.cloneNode(!0),V),!(ie===le||!(ie=ie.nextSibling)););else{templateContainer.innerHTML=oe?`${t}`:t;const de=templateContainer.content;if(oe){const pe=de.firstChild;for(;pe.firstChild;)de.appendChild(pe.firstChild);de.removeChild(pe)}r.insertBefore(de,V)}return[ue?ue.nextSibling:r.firstChild,V?V.previousSibling:r.lastChild]}};function patchClass(t,r,V){const oe=t._vtc;oe&&(r=(r?[r,...oe]:[...oe]).join(" ")),r==null?t.removeAttribute("class"):V?t.setAttribute("class",r):t.className=r}function patchStyle(t,r,V){const oe=t.style,ie=isString$6(V);if(V&&!ie){if(r&&!isString$6(r))for(const le in r)V[le]==null&&setStyle(oe,le,"");for(const le in V)setStyle(oe,le,V[le])}else{const le=oe.display;ie?r!==V&&(oe.cssText=V):r&&t.removeAttribute("style"),"_vod"in t&&(oe.display=le)}}const importantRE=/\s*!important$/;function setStyle(t,r,V){if(isArray$c(V))V.forEach(oe=>setStyle(t,r,oe));else if(V==null&&(V=""),r.startsWith("--"))t.setProperty(r,V);else{const oe=autoPrefix(t,r);importantRE.test(V)?t.setProperty(hyphenate(oe),V.replace(importantRE,""),"important"):t[oe]=V}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,r){const V=prefixCache[r];if(V)return V;let oe=camelize(r);if(oe!=="filter"&&oe in t)return prefixCache[r]=oe;oe=capitalize$2(oe);for(let ie=0;iecachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(t,r){const V=oe=>{if(!oe._vts)oe._vts=Date.now();else if(oe._vts<=V.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(oe,V.value),r,5,[oe])};return V.value=t,V.attached=getNow(),V}function patchStopImmediatePropagation(t,r){if(isArray$c(r)){const V=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{V.call(t),t._stopped=!0},r.map(oe=>ie=>!ie._stopped&&oe&&oe(ie))}else return r}const nativeOnRE=/^on[a-z]/,patchProp=(t,r,V,oe,ie=!1,le,ue,de,pe)=>{r==="class"?patchClass(t,oe,ie):r==="style"?patchStyle(t,V,oe):isOn(r)?isModelListener(r)||patchEvent(t,r,V,oe,ue):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):shouldSetAsProp(t,r,oe,ie))?patchDOMProp(t,r,oe,le,ue,de,pe):(r==="true-value"?t._trueValue=oe:r==="false-value"&&(t._falseValue=oe),patchAttr(t,r,oe,ie))};function shouldSetAsProp(t,r,V,oe){return oe?!!(r==="innerHTML"||r==="textContent"||r in t&&nativeOnRE.test(r)&&isFunction$5(V)):r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA"||nativeOnRE.test(r)&&isString$6(V)?!1:r in t}function defineCustomElement(t,r){const V=defineComponent(t);class oe extends VueElement{constructor(le){super(V,le,r)}}return oe.def=V,oe}const defineSSRCustomElement=t=>defineCustomElement(t,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(r,V={},oe){super(),this._def=r,this._props=V,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&oe?oe(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render$4(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let oe=0;oe{for(const ie of oe)this._setAttr(ie.attributeName)}).observe(this,{attributes:!0});const r=(oe,ie=!1)=>{const{props:le,styles:ue}=oe;let de;if(le&&!isArray$c(le))for(const pe in le){const he=le[pe];(he===Number||he&&he.type===Number)&&(pe in this._props&&(this._props[pe]=toNumber$1(this._props[pe])),(de||(de=Object.create(null)))[camelize(pe)]=!0)}this._numberProps=de,ie&&this._resolveProps(oe),this._applyStyles(ue),this._update()},V=this._def.__asyncLoader;V?V().then(oe=>r(oe,!0)):r(this._def)}_resolveProps(r){const{props:V}=r,oe=isArray$c(V)?V:Object.keys(V||{});for(const ie of Object.keys(this))ie[0]!=="_"&&oe.includes(ie)&&this._setProp(ie,this[ie],!0,!1);for(const ie of oe.map(camelize))Object.defineProperty(this,ie,{get(){return this._getProp(ie)},set(le){this._setProp(ie,le)}})}_setAttr(r){let V=this.getAttribute(r);const oe=camelize(r);this._numberProps&&this._numberProps[oe]&&(V=toNumber$1(V)),this._setProp(oe,V,!1)}_getProp(r){return this._props[r]}_setProp(r,V,oe=!0,ie=!0){V!==this._props[r]&&(this._props[r]=V,ie&&this._instance&&this._update(),oe&&(V===!0?this.setAttribute(hyphenate(r),""):typeof V=="string"||typeof V=="number"?this.setAttribute(hyphenate(r),V+""):V||this.removeAttribute(hyphenate(r))))}_update(){render$4(this._createVNode(),this.shadowRoot)}_createVNode(){const r=createVNode(this._def,extend$2({},this._props));return this._instance||(r.ce=V=>{this._instance=V,V.isCE=!0;const oe=(le,ue)=>{this.dispatchEvent(new CustomEvent(le,{detail:ue}))};V.emit=(le,...ue)=>{oe(le,ue),hyphenate(le)!==le&&oe(hyphenate(le),ue)};let ie=this;for(;ie=ie&&(ie.parentNode||ie.host);)if(ie instanceof VueElement){V.parent=ie._instance,V.provides=ie._instance.provides;break}}),r}_applyStyles(r){r&&r.forEach(V=>{const oe=document.createElement("style");oe.textContent=V,this.shadowRoot.appendChild(oe)})}}function useCssModule(t="$style"){{const r=getCurrentInstance();if(!r)return EMPTY_OBJ$1;const V=r.type.__cssModules;if(!V)return EMPTY_OBJ$1;const oe=V[t];return oe||EMPTY_OBJ$1}}function useCssVars(t){const r=getCurrentInstance();if(!r)return;const V=r.ut=(ie=t(r.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${r.uid}"]`)).forEach(le=>setVarsOnNode(le,ie))},oe=()=>{const ie=t(r.proxy);setVarsOnVNode(r.subTree,ie),V(ie)};watchPostEffect(oe),onMounted(()=>{const ie=new MutationObserver(oe);ie.observe(r.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>ie.disconnect())})}function setVarsOnVNode(t,r){if(t.shapeFlag&128){const V=t.suspense;t=V.activeBranch,V.pendingBranch&&!V.isHydrating&&V.effects.push(()=>{setVarsOnVNode(V.activeBranch,r)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)setVarsOnNode(t.el,r);else if(t.type===Fragment)t.children.forEach(V=>setVarsOnVNode(V,r));else if(t.type===Static){let{el:V,anchor:oe}=t;for(;V&&(setVarsOnNode(V,r),V!==oe);)V=V.nextSibling}}function setVarsOnNode(t,r){if(t.nodeType===1){const V=t.style;for(const oe in r)V.setProperty(`--${oe}`,r[oe])}}const TRANSITION="transition",ANIMATION="animation",Transition=(t,{slots:r})=>h$2(BaseTransition,resolveTransitionProps(t),r);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(t,r=[])=>{isArray$c(t)?t.forEach(V=>V(...r)):t&&t(...r)},hasExplicitCallback=t=>t?isArray$c(t)?t.some(r=>r.length>1):t.length>1:!1;function resolveTransitionProps(t){const r={};for(const xn in t)xn in DOMTransitionPropsValidators||(r[xn]=t[xn]);if(t.css===!1)return r;const{name:V="v",type:oe,duration:ie,enterFromClass:le=`${V}-enter-from`,enterActiveClass:ue=`${V}-enter-active`,enterToClass:de=`${V}-enter-to`,appearFromClass:pe=le,appearActiveClass:he=ue,appearToClass:_e=de,leaveFromClass:$e=`${V}-leave-from`,leaveActiveClass:Ie=`${V}-leave-active`,leaveToClass:Ve=`${V}-leave-to`}=t,Fe=normalizeDuration(ie),Ue=Fe&&Fe[0],qe=Fe&&Fe[1],{onBeforeEnter:Et,onEnter:At,onEnterCancelled:Lt,onLeave:hn,onLeaveCancelled:_n,onBeforeAppear:vn=Et,onAppear:bn=At,onAppearCancelled:Cn=Lt}=r,Sn=(xn,Pn,kn)=>{removeTransitionClass(xn,Pn?_e:de),removeTransitionClass(xn,Pn?he:ue),kn&&kn()},wn=(xn,Pn)=>{xn._isLeaving=!1,removeTransitionClass(xn,$e),removeTransitionClass(xn,Ve),removeTransitionClass(xn,Ie),Pn&&Pn()},En=xn=>(Pn,kn)=>{const Nn=xn?bn:At,Dn=()=>Sn(Pn,xn,kn);callHook(Nn,[Pn,Dn]),nextFrame(()=>{removeTransitionClass(Pn,xn?pe:le),addTransitionClass(Pn,xn?_e:de),hasExplicitCallback(Nn)||whenTransitionEnds(Pn,oe,Ue,Dn)})};return extend$2(r,{onBeforeEnter(xn){callHook(Et,[xn]),addTransitionClass(xn,le),addTransitionClass(xn,ue)},onBeforeAppear(xn){callHook(vn,[xn]),addTransitionClass(xn,pe),addTransitionClass(xn,he)},onEnter:En(!1),onAppear:En(!0),onLeave(xn,Pn){xn._isLeaving=!0;const kn=()=>wn(xn,Pn);addTransitionClass(xn,$e),forceReflow(),addTransitionClass(xn,Ie),nextFrame(()=>{xn._isLeaving&&(removeTransitionClass(xn,$e),addTransitionClass(xn,Ve),hasExplicitCallback(hn)||whenTransitionEnds(xn,oe,qe,kn))}),callHook(hn,[xn,kn])},onEnterCancelled(xn){Sn(xn,!1),callHook(Lt,[xn])},onAppearCancelled(xn){Sn(xn,!0),callHook(Cn,[xn])},onLeaveCancelled(xn){wn(xn),callHook(_n,[xn])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$9(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const r=NumberOf(t);return[r,r]}}function NumberOf(t){return toNumber$1(t)}function addTransitionClass(t,r){r.split(/\s+/).forEach(V=>V&&t.classList.add(V)),(t._vtc||(t._vtc=new Set)).add(r)}function removeTransitionClass(t,r){r.split(/\s+/).forEach(oe=>oe&&t.classList.remove(oe));const{_vtc:V}=t;V&&(V.delete(r),V.size||(t._vtc=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,r,V,oe){const ie=t._endId=++endId,le=()=>{ie===t._endId&&oe()};if(V)return setTimeout(le,V);const{type:ue,timeout:de,propCount:pe}=getTransitionInfo(t,r);if(!ue)return oe();const he=ue+"end";let _e=0;const $e=()=>{t.removeEventListener(he,Ie),le()},Ie=Ve=>{Ve.target===t&&++_e>=pe&&$e()};setTimeout(()=>{_e(V[Fe]||"").split(", "),ie=oe(`${TRANSITION}Delay`),le=oe(`${TRANSITION}Duration`),ue=getTimeout(ie,le),de=oe(`${ANIMATION}Delay`),pe=oe(`${ANIMATION}Duration`),he=getTimeout(de,pe);let _e=null,$e=0,Ie=0;r===TRANSITION?ue>0&&(_e=TRANSITION,$e=ue,Ie=le.length):r===ANIMATION?he>0&&(_e=ANIMATION,$e=he,Ie=pe.length):($e=Math.max(ue,he),_e=$e>0?ue>he?TRANSITION:ANIMATION:null,Ie=_e?_e===TRANSITION?le.length:pe.length:0);const Ve=_e===TRANSITION&&/\b(transform|all)(,|$)/.test(oe(`${TRANSITION}Property`).toString());return{type:_e,timeout:$e,propCount:Ie,hasTransform:Ve}}function getTimeout(t,r){for(;t.lengthtoMs(V)+toMs(t[oe])))}function toMs(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(t,{slots:r}){const V=getCurrentInstance(),oe=useTransitionState();let ie,le;return onUpdated(()=>{if(!ie.length)return;const ue=t.moveClass||`${t.name||"v"}-move`;if(!hasCSSTransform(ie[0].el,V.vnode.el,ue))return;ie.forEach(callPendingCbs),ie.forEach(recordPosition);const de=ie.filter(applyTranslation);forceReflow(),de.forEach(pe=>{const he=pe.el,_e=he.style;addTransitionClass(he,ue),_e.transform=_e.webkitTransform=_e.transitionDuration="";const $e=he._moveCb=Ie=>{Ie&&Ie.target!==he||(!Ie||/transform$/.test(Ie.propertyName))&&(he.removeEventListener("transitionend",$e),he._moveCb=null,removeTransitionClass(he,ue))};he.addEventListener("transitionend",$e)})}),()=>{const ue=toRaw(t),de=resolveTransitionProps(ue);let pe=ue.tag||Fragment;ie=le,le=r.default?getTransitionRawChildren(r.default()):[];for(let he=0;hedelete t.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(t){const r=t.el;r._moveCb&&r._moveCb(),r._enterCb&&r._enterCb()}function recordPosition(t){newPositionMap.set(t,t.el.getBoundingClientRect())}function applyTranslation(t){const r=positionMap.get(t),V=newPositionMap.get(t),oe=r.left-V.left,ie=r.top-V.top;if(oe||ie){const le=t.el.style;return le.transform=le.webkitTransform=`translate(${oe}px,${ie}px)`,le.transitionDuration="0s",t}}function hasCSSTransform(t,r,V){const oe=t.cloneNode();t._vtc&&t._vtc.forEach(ue=>{ue.split(/\s+/).forEach(de=>de&&oe.classList.remove(de))}),V.split(/\s+/).forEach(ue=>ue&&oe.classList.add(ue)),oe.style.display="none";const ie=r.nodeType===1?r:r.parentNode;ie.appendChild(oe);const{hasTransform:le}=getTransitionInfo(oe);return ie.removeChild(oe),le}const getModelAssigner=t=>{const r=t.props["onUpdate:modelValue"]||!1;return isArray$c(r)?V=>invokeArrayFns(r,V):r};function onCompositionStart(t){t.target.composing=!0}function onCompositionEnd(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const vModelText={created(t,{modifiers:{lazy:r,trim:V,number:oe}},ie){t._assign=getModelAssigner(ie);const le=oe||ie.props&&ie.props.type==="number";addEventListener$1(t,r?"change":"input",ue=>{if(ue.target.composing)return;let de=t.value;V&&(de=de.trim()),le&&(de=looseToNumber(de)),t._assign(de)}),V&&addEventListener$1(t,"change",()=>{t.value=t.value.trim()}),r||(addEventListener$1(t,"compositionstart",onCompositionStart),addEventListener$1(t,"compositionend",onCompositionEnd),addEventListener$1(t,"change",onCompositionEnd))},mounted(t,{value:r}){t.value=r??""},beforeUpdate(t,{value:r,modifiers:{lazy:V,trim:oe,number:ie}},le){if(t._assign=getModelAssigner(le),t.composing||document.activeElement===t&&t.type!=="range"&&(V||oe&&t.value.trim()===r||(ie||t.type==="number")&&looseToNumber(t.value)===r))return;const ue=r??"";t.value!==ue&&(t.value=ue)}},vModelCheckbox={deep:!0,created(t,r,V){t._assign=getModelAssigner(V),addEventListener$1(t,"change",()=>{const oe=t._modelValue,ie=getValue$2(t),le=t.checked,ue=t._assign;if(isArray$c(oe)){const de=looseIndexOf(oe,ie),pe=de!==-1;if(le&&!pe)ue(oe.concat(ie));else if(!le&&pe){const he=[...oe];he.splice(de,1),ue(he)}}else if(isSet$3(oe)){const de=new Set(oe);le?de.add(ie):de.delete(ie),ue(de)}else ue(getCheckboxValue(t,le))})},mounted:setChecked,beforeUpdate(t,r,V){t._assign=getModelAssigner(V),setChecked(t,r,V)}};function setChecked(t,{value:r,oldValue:V},oe){t._modelValue=r,isArray$c(r)?t.checked=looseIndexOf(r,oe.props.value)>-1:isSet$3(r)?t.checked=r.has(oe.props.value):r!==V&&(t.checked=looseEqual(r,getCheckboxValue(t,!0)))}const vModelRadio={created(t,{value:r},V){t.checked=looseEqual(r,V.props.value),t._assign=getModelAssigner(V),addEventListener$1(t,"change",()=>{t._assign(getValue$2(t))})},beforeUpdate(t,{value:r,oldValue:V},oe){t._assign=getModelAssigner(oe),r!==V&&(t.checked=looseEqual(r,oe.props.value))}},vModelSelect={deep:!0,created(t,{value:r,modifiers:{number:V}},oe){const ie=isSet$3(r);addEventListener$1(t,"change",()=>{const le=Array.prototype.filter.call(t.options,ue=>ue.selected).map(ue=>V?looseToNumber(getValue$2(ue)):getValue$2(ue));t._assign(t.multiple?ie?new Set(le):le:le[0])}),t._assign=getModelAssigner(oe)},mounted(t,{value:r}){setSelected(t,r)},beforeUpdate(t,r,V){t._assign=getModelAssigner(V)},updated(t,{value:r}){setSelected(t,r)}};function setSelected(t,r){const V=t.multiple;if(!(V&&!isArray$c(r)&&!isSet$3(r))){for(let oe=0,ie=t.options.length;oe-1:le.selected=r.has(ue);else if(looseEqual(getValue$2(le),r)){t.selectedIndex!==oe&&(t.selectedIndex=oe);return}}!V&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function getValue$2(t){return"_value"in t?t._value:t.value}function getCheckboxValue(t,r){const V=r?"_trueValue":"_falseValue";return V in t?t[V]:r}const vModelDynamic={created(t,r,V){callModelHook(t,r,V,null,"created")},mounted(t,r,V){callModelHook(t,r,V,null,"mounted")},beforeUpdate(t,r,V,oe){callModelHook(t,r,V,oe,"beforeUpdate")},updated(t,r,V,oe){callModelHook(t,r,V,oe,"updated")}};function resolveDynamicModel(t,r){switch(t){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(r){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(t,r,V,oe,ie){const ue=resolveDynamicModel(t.tagName,V.props&&V.props.type)[ie];ue&&ue(t,r,V,oe)}function initVModelForSSR(){vModelText.getSSRProps=({value:t})=>({value:t}),vModelRadio.getSSRProps=({value:t},r)=>{if(r.props&&looseEqual(r.props.value,t))return{checked:!0}},vModelCheckbox.getSSRProps=({value:t},r)=>{if(isArray$c(t)){if(r.props&&looseIndexOf(t,r.props.value)>-1)return{checked:!0}}else if(isSet$3(t)){if(r.props&&t.has(r.props.value))return{checked:!0}}else if(t)return{checked:!0}},vModelDynamic.getSSRProps=(t,r)=>{if(typeof r.type!="string")return;const V=resolveDynamicModel(r.type.toUpperCase(),r.props&&r.props.type);if(V.getSSRProps)return V.getSSRProps(t,r)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>systemModifiers.some(V=>t[`${V}Key`]&&!r.includes(V))},withModifiers=(t,r)=>(V,...oe)=>{for(let ie=0;ieV=>{if(!("key"in V))return;const oe=hyphenate(V.key);if(r.some(ie=>ie===oe||keyNames[ie]===oe))return t(V)},vShow={beforeMount(t,{value:r},{transition:V}){t._vod=t.style.display==="none"?"":t.style.display,V&&r?V.beforeEnter(t):setDisplay(t,r)},mounted(t,{value:r},{transition:V}){V&&r&&V.enter(t)},updated(t,{value:r,oldValue:V},{transition:oe}){!r!=!V&&(oe?r?(oe.beforeEnter(t),setDisplay(t,!0),oe.enter(t)):oe.leave(t,()=>{setDisplay(t,!1)}):setDisplay(t,r))},beforeUnmount(t,{value:r}){setDisplay(t,r)}};function setDisplay(t,r){t.style.display=r?t._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const rendererOptions=extend$2({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$4=(...t)=>{ensureRenderer().render(...t)},hydrate=(...t)=>{ensureHydrationRenderer().hydrate(...t)},createApp=(...t)=>{const r=ensureRenderer().createApp(...t),{mount:V}=r;return r.mount=oe=>{const ie=normalizeContainer(oe);if(!ie)return;const le=r._component;!isFunction$5(le)&&!le.render&&!le.template&&(le.template=ie.innerHTML),ie.innerHTML="";const ue=V(ie,!1,ie instanceof SVGElement);return ie instanceof Element&&(ie.removeAttribute("v-cloak"),ie.setAttribute("data-v-app","")),ue},r},createSSRApp=(...t)=>{const r=ensureHydrationRenderer().createApp(...t),{mount:V}=r;return r.mount=oe=>{const ie=normalizeContainer(oe);if(ie)return V(ie,!0,ie instanceof SVGElement)},r};function normalizeContainer(t){return isString$6(t)?document.querySelector(t):t}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,EffectScope,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text:Text$1,Transition,TransitionGroup,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize:capitalize$2,cloneVNode,compatUtils,compile,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,get devtools(){return devtools},effect,effectScope,getCurrentInstance,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h:h$2,handleError,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode:isVNode$1,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick,normalizeClass,normalizeProps,normalizeStyle:normalizeStyle$1,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render:render$4,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop:stop$1,toDisplayString:toDisplayString$1,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue:toValue$1,transformVNodeArgs,triggerRef,unref,useAttrs:useAttrs$1,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$3,warn:warn$2,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),versionBg="/vue-pure-admin/static/png/version-bg.png",versionTipDialog$1="",setVersionTipTheme=(t="#FA8D88",r="#FE7D66")=>` version-rokect `,defaultParams={title:"Update",description:"is available",buttonText:"Refresh"},versionTipDialog=t=>{if(document.querySelector("#version-rocket"))return;const V=`
${t.primaryColor||t.rocketColor?`
${setVersionTipTheme(t.primaryColor,t.rocketColor)}
`:`version`}
${t.title||defaultParams.title}
${t.description||(t.newVersion?`V ${t.newVersion} ${defaultParams.description}`:`A new version ${defaultParams.description}`)}
${t.buttonText||defaultParams.buttonText}
${t.cancelButtonText?`
${t.cancelButtonText}
`:""}
`;let oe=document.createElement("div");oe.innerHTML=V,document.body.appendChild(oe);const ie=document.querySelector("#version-rocket .refresh-button");ie.onclick=()=>{typeof(t==null?void 0:t.onRefresh)=="function"?t.onRefresh({newVersion:t.newVersion,needRefresh:t.needRefresh||!1}):window.location.reload()};const le=document.querySelector("#version-rocket .cancel-button");le&&(le.onclick=()=>{if(typeof(t==null?void 0:t.onCancel)=="function"){t.onCancel({newVersion:t.newVersion,needRefresh:t.needRefresh||!1});return}switch((t==null?void 0:t.cancelMode)||"ignore-current-version"){case"ignore-current-version":localStorage.setItem("version-rocket:cancelled",t.newVersion||"");break;case"ignore-today":localStorage.setItem("version-rocket:cancelled",new Date().toLocaleDateString());break;case"ignore-current-window":sessionStorage.setItem("version-rocket:cancelled","true");break}unCheckVersion({closeDialog:!0,closeWorker:!1})})},createWorker=(t,r)=>{const V=`${(r==null?void 0:r.map(ue=>ue.toString()).join(`; `))||""}`,oe=new Blob([` ${V}; (${t.toString()})(); `]),ie=window.URL.createObjectURL(oe);return new Worker(ie)},createWorkerFunc=()=>{let t="";const r=new Set;let V=5e3,oe=!1,ie="",le=[],ue="one",de=null,pe=!1;const he=self;return he.onmessage=_e=>{t=_e.data["version-key"],V=_e.data["polling-time"],oe=_e.data.immediate,ie=_e.data["origin-version-file-url"],le=_e.data["check-origin-specified-files-url"],ue=_e.data["check-origin-specified-files-url-mode"],pe=_e.data["clear-interval-on-dialog"];const $e=checkVersionTypeFunc(t,ie,le);$e||he.postMessage({invalidParams:!0});const Ie=()=>{if($e==="check-version"&&fetch(`${ie}?${+new Date}`).then(Ve=>Ve.json()).then(Ve=>{t!==Ve.version&&(he.postMessage({refreshPageVisible:!0,refreshPageVersion:`${Ve.version}`,external:Ve.external}),pe&&clearInterval(de))}),$e==="check-specified-files"){if(!(le!=null&&le.length))return;le.forEach(Ve=>{fetch(Ve).then(Fe=>Fe.headers.get("ETag")||Fe.headers.get("Last-Modified")).then(Fe=>{Fe&&r.add(Fe),ue==="one"&&r.size>le.length&&(he.postMessage({refreshPageVisible:!0,refreshPageVersion:"",external:""}),r.clear(),pe&&clearInterval(de)),ue==="all"&&r.size===le.length*2&&(he.postMessage({refreshPageVisible:!0,refreshPageVersion:"",external:""}),r.clear(),pe&&clearInterval(de))})})}};oe&&Ie(),de=setInterval(Ie,V)},he},cancelUpdateFunc=(t,r,V,oe)=>{const ie=t||(r?"ignore-current-version":"ignore-current-window"),le=localStorage.getItem("version-rocket:cancelled")||"",ue=new Date().toLocaleDateString(),de=sessionStorage.getItem("version-rocket:cancelled")||"",pe=V||!1;switch(ie){case"ignore-current-version":if(r&&le===r)return pe&&(oe==null||oe.terminate()),!0;case"ignore-today":if(le===ue)return pe&&(oe==null||oe.terminate()),!0;break;case"ignore-current-window":if(de)return pe&&(oe==null||oe.terminate()),!0;break}return!1};function checkVersionTypeFunc(t,r,V){const oe=t&&r?"check-version":V!=null&&V.length?"check-specified-files":"";return oe?(console.log("You are use check version type is",oe),oe):console.log("Not found localPackageVersion, originVersionFileUrl or originSpecifiedFilesUrl")}let worker;const checkVersion=(t,r)=>{t.enable!==!1&&(worker||(worker=createWorker(createWorkerFunc,[checkVersionTypeFunc])),worker.postMessage({"version-key":t.localPackageVersion||"","polling-time":t.pollingTime||5e3,immediate:t.immediate||!1,"origin-version-file-url":t.originVersionFileUrl||"","check-origin-specified-files-url":[...new Set(t.checkOriginSpecifiedFilesUrl)],"check-origin-specified-files-url-mode":t.checkOriginSpecifiedFilesUrlMode||"one","clear-interval-on-dialog":t.clearIntervalOnDialog||!1}),worker.onmessage=V=>{var oe;if(!cancelUpdateFunc(r==null?void 0:r.cancelMode,(oe=V.data)===null||oe===void 0?void 0:oe.refreshPageVersion,r==null?void 0:r.cancelUpdateAndStopWorker,worker))if(localStorage.removeItem("version-rocket:cancelled"),sessionStorage.removeItem("version-rocket:cancelled"),typeof t.onVersionUpdate=="function")t.onVersionUpdate(V.data);else{const{title:le,description:ue,buttonText:de,cancelButtonText:pe,cancelMode:he,imageUrl:_e,rocketColor:$e,primaryColor:Ie,buttonStyle:Ve}=r||{},{onRefresh:Fe,onCancel:Ue}=t||{};versionTipDialog({title:le,description:ue,buttonText:de,cancelButtonText:pe,cancelMode:he,imageUrl:_e,rocketColor:$e,primaryColor:Ie,buttonStyle:Ve,newVersion:V.data.refreshPageVersion,needRefresh:V.data.refreshPageVersion,onRefresh:Fe,onCancel:Ue})}})},unCheckVersion=({closeDialog:t=!1,closeWorker:r=!0})=>{if(r&&(worker==null||worker.terminate()),t){const V=document.querySelector("#version-rocket"),oe=V==null?void 0:V.parentElement;V&&oe&&oe.removeChild(V)}},FOCUSABLE_ELEMENT_SELECTORS='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',isVisible=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,obtainAllFocusableElements$1=t=>Array.from(t.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(r=>isFocusable(r)&&isVisible(r)),isFocusable=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function(t,r,...V){let oe;r.includes("mouse")||r.includes("click")?oe="MouseEvents":r.includes("key")?oe="KeyboardEvent":oe="HTMLEvents";const ie=document.createEvent(oe);return ie.initEvent(r,...V),t.dispatchEvent(ie),t},isLeaf=t=>!t.getAttribute("aria-owns"),getSibling=(t,r,V)=>{const{parentNode:oe}=t;if(!oe)return null;const ie=oe.querySelectorAll(V),le=Array.prototype.indexOf.call(ie,t);return ie[le+r]||null},focusNode=t=>{t&&(t.focus(),!isLeaf(t)&&t.click())},composeEventHandlers=(t,r,{checkForDefaultPrevented:V=!0}={})=>ie=>{const le=t==null?void 0:t(ie);if(V===!1||!le)return r==null?void 0:r(ie)},whenMouse=t=>r=>r.pointerType==="mouse"?t(r):void 0;var isVue2=!1,__defProp$9=Object.defineProperty,__defProps$6=Object.defineProperties,__getOwnPropDescs$6=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$b=Object.getOwnPropertySymbols,__hasOwnProp$b=Object.prototype.hasOwnProperty,__propIsEnum$b=Object.prototype.propertyIsEnumerable,__defNormalProp$9=(t,r,V)=>r in t?__defProp$9(t,r,{enumerable:!0,configurable:!0,writable:!0,value:V}):t[r]=V,__spreadValues$9=(t,r)=>{for(var V in r||(r={}))__hasOwnProp$b.call(r,V)&&__defNormalProp$9(t,V,r[V]);if(__getOwnPropSymbols$b)for(var V of __getOwnPropSymbols$b(r))__propIsEnum$b.call(r,V)&&__defNormalProp$9(t,V,r[V]);return t},__spreadProps$6=(t,r)=>__defProps$6(t,__getOwnPropDescs$6(r));function computedEager(t,r){var V;const oe=shallowRef();return watchEffect(()=>{oe.value=t()},__spreadProps$6(__spreadValues$9({},r),{flush:(V=r==null?void 0:r.flush)!=null?V:"sync"})),readonly(oe)}var _a$1;const isClient$1=typeof window<"u",isDef$1=t=>typeof t<"u",isFunction$4=t=>typeof t=="function",isString$5=t=>typeof t=="string",noop$6=()=>{},isIOS$1=isClient$1&&((_a$1=window==null?void 0:window.navigator)==null?void 0:_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(t){return typeof t=="function"?t():unref(t)}function createFilterWrapper$1(t,r){function V(...oe){return new Promise((ie,le)=>{Promise.resolve(t(()=>r.apply(this,oe),{fn:r,thisArg:this,args:oe})).then(ie).catch(le)})}return V}function debounceFilter$1(t,r={}){let V,oe,ie=noop$6;const le=de=>{clearTimeout(de),ie(),ie=noop$6};return de=>{const pe=resolveUnref(t),he=resolveUnref(r.maxWait);return V&&le(V),pe<=0||he!==void 0&&he<=0?(oe&&(le(oe),oe=null),Promise.resolve(de())):new Promise((_e,$e)=>{ie=r.rejectOnCancel?$e:_e,he&&!oe&&(oe=setTimeout(()=>{V&&le(V),oe=null,_e(de())},he)),V=setTimeout(()=>{oe&&le(oe),oe=null,_e(de())},pe)})}}function throttleFilter(t,r=!0,V=!0,oe=!1){let ie=0,le,ue=!0,de=noop$6,pe;const he=()=>{le&&(clearTimeout(le),le=void 0,de(),de=noop$6)};return $e=>{const Ie=resolveUnref(t),Ve=Date.now()-ie,Fe=()=>pe=$e();return he(),Ie<=0?(ie=Date.now(),Fe()):(Ve>Ie&&(V||!ue)?(ie=Date.now(),Fe()):r&&(pe=new Promise((Ue,qe)=>{de=oe?qe:Ue,le=setTimeout(()=>{ie=Date.now(),ue=!0,Ue(Fe()),he()},Math.max(0,Ie-Ve))})),!V&&!le&&(le=setTimeout(()=>ue=!0,Ie)),ue=!1,pe)}}function identity$2(t){return t}function tryOnScopeDispose$1(t){return getCurrentScope()?(onScopeDispose(t),!0):!1}function useDebounceFn$1(t,r=200,V={}){return createFilterWrapper$1(debounceFilter$1(r,V),t)}function refDebounced(t,r=200,V={}){const oe=ref(t.value),ie=useDebounceFn$1(()=>{oe.value=t.value},r,V);return watch(t,()=>ie()),oe}function useThrottleFn(t,r=200,V=!1,oe=!0,ie=!1){return createFilterWrapper$1(throttleFilter(r,V,oe,ie),t)}function tryOnMounted$1(t,r=!0){getCurrentInstance()?onMounted(t):r?t():nextTick(t)}function useTimeoutFn$1(t,r,V={}){const{immediate:oe=!0}=V,ie=ref(!1);let le=null;function ue(){le&&(clearTimeout(le),le=null)}function de(){ie.value=!1,ue()}function pe(...he){ue(),ie.value=!0,le=setTimeout(()=>{ie.value=!1,le=null,t(...he)},resolveUnref(r))}return oe&&(ie.value=!0,isClient$1&&pe()),tryOnScopeDispose$1(de),{isPending:readonly(ie),start:pe,stop:de}}function unrefElement$1(t){var r;const V=resolveUnref(t);return(r=V==null?void 0:V.$el)!=null?r:V}const defaultWindow$1=isClient$1?window:void 0,defaultDocument$1=isClient$1?window.document:void 0;function useEventListener$1(...t){let r,V,oe,ie;if(isString$5(t[0])||Array.isArray(t[0])?([V,oe,ie]=t,r=defaultWindow$1):[r,V,oe,ie]=t,!r)return noop$6;Array.isArray(V)||(V=[V]),Array.isArray(oe)||(oe=[oe]);const le=[],ue=()=>{le.forEach(_e=>_e()),le.length=0},de=(_e,$e,Ie,Ve)=>(_e.addEventListener($e,Ie,Ve),()=>_e.removeEventListener($e,Ie,Ve)),pe=watch(()=>[unrefElement$1(r),resolveUnref(ie)],([_e,$e])=>{ue(),_e&&le.push(...V.flatMap(Ie=>oe.map(Ve=>de(_e,Ie,Ve,$e))))},{immediate:!0,flush:"post"}),he=()=>{pe(),ue()};return tryOnScopeDispose$1(he),he}let _iOSWorkaround$1=!1;function onClickOutside$1(t,r,V={}){const{window:oe=defaultWindow$1,ignore:ie=[],capture:le=!0,detectIframe:ue=!1}=V;if(!oe)return;isIOS$1&&!_iOSWorkaround$1&&(_iOSWorkaround$1=!0,Array.from(oe.document.body.children).forEach(Ie=>Ie.addEventListener("click",noop$6)));let de=!0;const pe=Ie=>ie.some(Ve=>{if(typeof Ve=="string")return Array.from(oe.document.querySelectorAll(Ve)).some(Fe=>Fe===Ie.target||Ie.composedPath().includes(Fe));{const Fe=unrefElement$1(Ve);return Fe&&(Ie.target===Fe||Ie.composedPath().includes(Fe))}}),_e=[useEventListener$1(oe,"click",Ie=>{const Ve=unrefElement$1(t);if(!(!Ve||Ve===Ie.target||Ie.composedPath().includes(Ve))){if(Ie.detail===0&&(de=!pe(Ie)),!de){de=!0;return}r(Ie)}},{passive:!0,capture:le}),useEventListener$1(oe,"pointerdown",Ie=>{const Ve=unrefElement$1(t);Ve&&(de=!Ie.composedPath().includes(Ve)&&!pe(Ie))},{passive:!0}),ue&&useEventListener$1(oe,"blur",Ie=>{var Ve;const Fe=unrefElement$1(t);((Ve=oe.document.activeElement)==null?void 0:Ve.tagName)==="IFRAME"&&!(Fe!=null&&Fe.contains(oe.document.activeElement))&&r(Ie)})].filter(Boolean);return()=>_e.forEach(Ie=>Ie())}function useSupported$1(t,r=!1){const V=ref(),oe=()=>V.value=!!t();return oe(),tryOnMounted$1(oe,r),V}function cloneFnJSON$1(t){return JSON.parse(JSON.stringify(t))}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global$1[globalKey]=_global$1[globalKey]||{};function useCssVar(t,r,{window:V=defaultWindow$1,initialValue:oe=""}={}){const ie=ref(oe),le=computed(()=>{var ue;return unrefElement$1(r)||((ue=V==null?void 0:V.document)==null?void 0:ue.documentElement)});return watch([le,()=>resolveUnref(t)],([ue,de])=>{var pe;if(ue&&V){const he=(pe=V.getComputedStyle(ue).getPropertyValue(de))==null?void 0:pe.trim();ie.value=he||oe}},{immediate:!0}),watch(ie,ue=>{var de;(de=le.value)!=null&&de.style&&le.value.style.setProperty(resolveUnref(t),ue)}),ie}function useDocumentVisibility({document:t=defaultDocument$1}={}){if(!t)return ref("visible");const r=ref(t.visibilityState);return useEventListener$1(t,"visibilitychange",()=>{r.value=t.visibilityState}),r}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=(t,r)=>{var V={};for(var oe in t)__hasOwnProp$g.call(t,oe)&&r.indexOf(oe)<0&&(V[oe]=t[oe]);if(t!=null&&__getOwnPropSymbols$g)for(var oe of __getOwnPropSymbols$g(t))r.indexOf(oe)<0&&__propIsEnum$g.call(t,oe)&&(V[oe]=t[oe]);return V};function useResizeObserver$1(t,r,V={}){const oe=V,{window:ie=defaultWindow$1}=oe,le=__objRest$2(oe,["window"]);let ue;const de=useSupported$1(()=>ie&&"ResizeObserver"in ie),pe=()=>{ue&&(ue.disconnect(),ue=void 0)},he=watch(()=>unrefElement$1(t),$e=>{pe(),de.value&&ie&&$e&&(ue=new ResizeObserver(r),ue.observe($e,le))},{immediate:!0,flush:"post"}),_e=()=>{pe(),he()};return tryOnScopeDispose$1(_e),{isSupported:de,stop:_e}}function useElementBounding(t,r={}){const{reset:V=!0,windowResize:oe=!0,windowScroll:ie=!0,immediate:le=!0}=r,ue=ref(0),de=ref(0),pe=ref(0),he=ref(0),_e=ref(0),$e=ref(0),Ie=ref(0),Ve=ref(0);function Fe(){const Ue=unrefElement$1(t);if(!Ue){V&&(ue.value=0,de.value=0,pe.value=0,he.value=0,_e.value=0,$e.value=0,Ie.value=0,Ve.value=0);return}const qe=Ue.getBoundingClientRect();ue.value=qe.height,de.value=qe.bottom,pe.value=qe.left,he.value=qe.right,_e.value=qe.top,$e.value=qe.width,Ie.value=qe.x,Ve.value=qe.y}return useResizeObserver$1(t,Fe),watch(()=>unrefElement$1(t),Ue=>!Ue&&Fe()),ie&&useEventListener$1("scroll",Fe,{capture:!0,passive:!0}),oe&&useEventListener$1("resize",Fe,{passive:!0}),tryOnMounted$1(()=>{le&&Fe()}),{height:ue,bottom:de,left:pe,right:he,top:_e,width:$e,x:Ie,y:Ve,update:Fe}}var SwipeDirection;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,r,V)=>r in t?__defProp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:V}):t[r]=V,__spreadValues=(t,r)=>{for(var V in r||(r={}))__hasOwnProp.call(r,V)&&__defNormalProp(t,V,r[V]);if(__getOwnPropSymbols)for(var V of __getOwnPropSymbols(r))__propIsEnum.call(r,V)&&__defNormalProp(t,V,r[V]);return t};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity$2},_TransitionPresets);function useVModel$1(t,r,V,oe={}){var ie,le,ue;const{clone:de=!1,passive:pe=!1,eventName:he,deep:_e=!1,defaultValue:$e}=oe,Ie=getCurrentInstance(),Ve=V||(Ie==null?void 0:Ie.emit)||((ie=Ie==null?void 0:Ie.$emit)==null?void 0:ie.bind(Ie))||((ue=(le=Ie==null?void 0:Ie.proxy)==null?void 0:le.$emit)==null?void 0:ue.bind(Ie==null?void 0:Ie.proxy));let Fe=he;r||(r="modelValue"),Fe=he||Fe||`update:${r.toString()}`;const Ue=Et=>de?isFunction$4(de)?de(Et):cloneFnJSON$1(Et):Et,qe=()=>isDef$1(t[r])?Ue(t[r]):$e;if(pe){const Et=qe(),At=ref(Et);return watch(()=>t[r],Lt=>At.value=Ue(Lt)),watch(At,Lt=>{(Lt!==t[r]||_e)&&Ve(Fe,Lt)},{deep:_e}),At}else return computed({get(){return qe()},set(Et){Ve(Fe,Et)}})}function useWindowFocus({window:t=defaultWindow$1}={}){if(!t)return ref(!1);const r=ref(t.document.hasFocus());return useEventListener$1(t,"blur",()=>{r.value=!1}),useEventListener$1(t,"focus",()=>{r.value=!0}),r}function useWindowSize$1(t={}){const{window:r=defaultWindow$1,initialWidth:V=1/0,initialHeight:oe=1/0,listenOrientation:ie=!0,includeScrollbar:le=!0}=t,ue=ref(V),de=ref(oe),pe=()=>{r&&(le?(ue.value=r.innerWidth,de.value=r.innerHeight):(ue.value=r.document.documentElement.clientWidth,de.value=r.document.documentElement.clientHeight))};return pe(),tryOnMounted$1(pe),useEventListener$1("resize",pe,{passive:!0}),ie&&useEventListener$1("orientationchange",pe,{passive:!0}),{width:ue,height:de}}const isFirefox=()=>isClient$1&&/firefox/i.test(window.navigator.userAgent),isInContainer=(t,r)=>{if(!isClient$1||!t||!r)return!1;const V=t.getBoundingClientRect();let oe;return r instanceof Element?oe=r.getBoundingClientRect():oe={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},V.topoe.top&&V.right>oe.left&&V.left{let r=0,V=t;for(;V;)r+=V.offsetTop,V=V.offsetParent;return r},getOffsetTopDistance=(t,r)=>Math.abs(getOffsetTop(t)-getOffsetTop(r)),getClientXY=t=>{let r,V;return t.type==="touchend"?(V=t.changedTouches[0].clientY,r=t.changedTouches[0].clientX):t.type.startsWith("touch")?(V=t.touches[0].clientY,r=t.touches[0].clientX):(V=t.clientY,r=t.clientX),{clientX:r,clientY:V}};var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$2=root$1.Symbol;const Symbol$3=Symbol$2;var objectProto$f=Object.prototype,hasOwnProperty$e=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag(t){var r=hasOwnProperty$e.call(t,symToStringTag$1),V=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var oe=!0}catch{}var ie=nativeObjectToString$1.call(t);return oe&&(r?t[symToStringTag$1]=V:delete t[symToStringTag$1]),ie}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$2(t){return nativeObjectToString.call(t)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag(t){return t==null?t===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString$2(t)}function isObjectLike(t){return t!=null&&typeof t=="object"}var symbolTag$3="[object Symbol]";function isSymbol$1(t){return typeof t=="symbol"||isObjectLike(t)&&baseGetTag(t)==symbolTag$3}function arrayMap(t,r){for(var V=-1,oe=t==null?0:t.length,ie=Array(oe);++V0){if(++r>=HOT_COUNT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function constant(t){return function(){return t}}var defineProperty=function(){try{var t=getNative(Object,"defineProperty");return t({},"",{}),t}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(t,r){return defineProperty$1(t,"toString",{configurable:!0,enumerable:!1,value:constant(r),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(t,r){for(var V=-1,oe=t==null?0:t.length;++V-1}var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(t,r){var V=typeof t;return r=r??MAX_SAFE_INTEGER$2,!!r&&(V=="number"||V!="symbol"&&reIsUint.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=MAX_SAFE_INTEGER$1}function isArrayLike$1(t){return t!=null&&isLength(t.length)&&!isFunction$3(t)}function isIterateeCall(t,r,V){if(!isObject$8(V))return!1;var oe=typeof r;return(oe=="number"?isArrayLike$1(V)&&isIndex(r,V.length):oe=="string"&&r in V)?eq(V[r],t):!1}function createAssigner(t){return baseRest(function(r,V){var oe=-1,ie=V.length,le=ie>1?V[ie-1]:void 0,ue=ie>2?V[2]:void 0;for(le=t.length>3&&typeof le=="function"?(ie--,le):void 0,ue&&isIterateeCall(V[0],V[1],ue)&&(le=ie<3?void 0:le,ie=1),r=Object(r);++oe-1}function listCacheSet$1(t,r){var V=this.__data__,oe=assocIndexOf(V,t);return oe<0?(++this.size,V.push([t,r])):V[oe][1]=r,this}function ListCache(t){var r=-1,V=t==null?0:t.length;for(this.clear();++r0&&V(de)?r>1?baseFlatten(de,r-1,V,oe,ie):arrayPush(ie,de):oe||(ie[ie.length]=de)}return ie}function flatten(t){var r=t==null?0:t.length;return r?baseFlatten(t,1):[]}function flatRest(t){return setToString$1(overRest(t,void 0,flatten),t+"")}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$4=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$5=objectProto$4.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$3(t){if(!isObjectLike(t)||baseGetTag(t)!=objectTag$3)return!1;var r=getPrototype$1(t);if(r===null)return!0;var V=hasOwnProperty$5.call(r,"constructor")&&r.constructor;return typeof V=="function"&&V instanceof V&&funcToString.call(V)==objectCtorString}function castArray$1(){if(!arguments.length)return[];var t=arguments[0];return isArray$b(t)?t:[t]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(t){var r=this.__data__,V=r.delete(t);return this.size=r.size,V}function stackGet(t){return this.__data__.get(t)}function stackHas(t){return this.__data__.has(t)}var LARGE_ARRAY_SIZE$1=200;function stackSet(t,r){var V=this.__data__;if(V instanceof ListCache){var oe=V.__data__;if(!Map$2||oe.lengthde))return!1;var he=le.get(t),_e=le.get(r);if(he&&_e)return he==r&&_e==t;var $e=-1,Ie=!0,Ve=V&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(le.set(t,r),le.set(r,t);++$e=r||bn<0||$e&&Cn>=le}function Et(){var vn=now$1();if(qe(vn))return At(vn);de=setTimeout(Et,Ue(vn))}function At(vn){return de=void 0,Ie&&oe?Ve(vn):(oe=ie=void 0,ue)}function Lt(){de!==void 0&&clearTimeout(de),he=0,oe=pe=ie=de=void 0}function hn(){return de===void 0?ue:At(now$1())}function _n(){var vn=now$1(),bn=qe(vn);if(oe=arguments,ie=this,pe=vn,bn){if(de===void 0)return Fe(pe);if($e)return clearTimeout(de),de=setTimeout(Et,r),Ve(pe)}return de===void 0&&(de=setTimeout(Et,r)),ue}return _n.cancel=Lt,_n.flush=hn,_n}function assignMergeValue(t,r,V){(V!==void 0&&!eq(t[r],V)||V===void 0&&!(r in t))&&baseAssignValue(t,r,V)}function isArrayLikeObject(t){return isObjectLike(t)&&isArrayLike$1(t)}function safeGet(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}function toPlainObject(t){return copyObject(t,keysIn(t))}function baseMergeDeep(t,r,V,oe,ie,le,ue){var de=safeGet(t,V),pe=safeGet(r,V),he=ue.get(pe);if(he){assignMergeValue(t,V,he);return}var _e=le?le(de,pe,V+"",t,r,ue):void 0,$e=_e===void 0;if($e){var Ie=isArray$b(pe),Ve=!Ie&&isBuffer$3(pe),Fe=!Ie&&!Ve&&isTypedArray$3(pe);_e=pe,Ie||Ve||Fe?isArray$b(de)?_e=de:isArrayLikeObject(de)?_e=copyArray(de):Ve?($e=!1,_e=cloneBuffer(pe,!0)):Fe?($e=!1,_e=cloneTypedArray(pe,!0)):_e=[]:isPlainObject$3(pe)||isArguments$1(pe)?(_e=de,isArguments$1(de)?_e=toPlainObject(de):(!isObject$8(de)||isFunction$3(de))&&(_e=initCloneObject(pe))):$e=!1}$e&&(ue.set(pe,_e),ie(_e,pe,oe,le,ue),ue.delete(pe)),assignMergeValue(t,V,_e)}function baseMerge(t,r,V,oe,ie){t!==r&&baseFor$1(r,function(le,ue){if(ie||(ie=new Stack),isObject$8(le))baseMergeDeep(t,r,ue,V,baseMerge,oe,ie);else{var de=oe?oe(safeGet(t,ue),le,ue+"",t,r,ie):void 0;de===void 0&&(de=le),assignMergeValue(t,ue,de)}},keysIn)}function arrayIncludesWith(t,r,V){for(var oe=-1,ie=t==null?0:t.length;++oe=LARGE_ARRAY_SIZE){var he=r?null:createSet$1(t);if(he)return setToArray(he);ue=!1,ie=cacheHas,pe=new SetCache}else pe=r?[]:de;e:for(;++oet===void 0,isBoolean$3=t=>typeof t=="boolean",isNumber$4=t=>typeof t=="number",isEmpty=t=>!t&&t!==0||isArray$c(t)&&t.length===0||isObject$9(t)&&!Object.keys(t).length,isElement$2=t=>typeof Element>"u"?!1:t instanceof Element,isPropAbsent=t=>isNil(t),isStringNumber=t=>isString$6(t)?!Number.isNaN(Number(t)):!1,escapeStringRegexp=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),capitalize$1=t=>capitalize$2(t),keysOf=t=>Object.keys(t),entriesOf=t=>Object.entries(t),getProp=(t,r,V)=>({get value(){return get$1(t,r,V)},set value(oe){set$2(t,r,oe)}});class ElementPlusError extends Error{constructor(r){super(r),this.name="ElementPlusError"}}function throwError$1(t,r){throw new ElementPlusError(`[${t}] ${r}`)}function debugWarn(t,r){}const classNameToArray=(t="")=>t.split(" ").filter(r=>!!r.trim()),hasClass=(t,r)=>{if(!t||!r)return!1;if(r.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(r)},addClass=(t,r)=>{!t||!r.trim()||t.classList.add(...classNameToArray(r))},removeClass=(t,r)=>{!t||!r.trim()||t.classList.remove(...classNameToArray(r))},getStyle$1=(t,r)=>{var V;if(!isClient$1||!t||!r)return"";let oe=camelize(r);oe==="float"&&(oe="cssFloat");try{const ie=t.style[oe];if(ie)return ie;const le=(V=document.defaultView)==null?void 0:V.getComputedStyle(t,"");return le?le[oe]:""}catch{return t.style[oe]}};function addUnit(t,r="px"){if(!t)return"";if(isNumber$4(t)||isStringNumber(t))return`${t}${r}`;if(isString$6(t))return t}const isScroll=(t,r)=>{if(!isClient$1)return!1;const V={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(r)],oe=getStyle$1(t,V);return["scroll","auto","overlay"].some(ie=>oe.includes(ie))},getScrollContainer=(t,r)=>{if(!isClient$1)return;let V=t;for(;V;){if([window,document,document.documentElement].includes(V))return window;if(isScroll(V,r))return V;V=V.parentNode}return V};let scrollBarWidth;const getScrollBarWidth=t=>{var r;if(!isClient$1)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const V=document.createElement("div");V.className=`${t}-scrollbar__wrap`,V.style.visibility="hidden",V.style.width="100px",V.style.position="absolute",V.style.top="-9999px",document.body.appendChild(V);const oe=V.offsetWidth;V.style.overflow="scroll";const ie=document.createElement("div");ie.style.width="100%",V.appendChild(ie);const le=ie.offsetWidth;return(r=V.parentNode)==null||r.removeChild(V),scrollBarWidth=oe-le,scrollBarWidth};function scrollIntoView(t,r){if(!isClient$1)return;if(!r){t.scrollTop=0;return}const V=[];let oe=r.offsetParent;for(;oe!==null&&t!==oe&&t.contains(oe);)V.push(oe),oe=oe.offsetParent;const ie=r.offsetTop+V.reduce((pe,he)=>pe+he.offsetTop,0),le=ie+r.offsetHeight,ue=t.scrollTop,de=ue+t.clientHeight;iede&&(t.scrollTop=le-t.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=(t,r)=>{let V=t.__vccOpts||t;for(let[oe,ie]of r)V[oe]=ie;return V},arrow_down_vue_vue_type_script_lang_default={name:"ArrowDown"},_hoisted_16$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_26=createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_36=[_hoisted_26];function _sfc_render6(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_16$1,_hoisted_36)}var arrow_down_default=export_helper_default(arrow_down_vue_vue_type_script_lang_default,[["render",_sfc_render6],["__file","arrow-down.vue"]]),arrow_left_vue_vue_type_script_lang_default={name:"ArrowLeft"},_hoisted_18$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_28=createBaseVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_38=[_hoisted_28];function _sfc_render8(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_18$1,_hoisted_38)}var arrow_left_default=export_helper_default(arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render8],["__file","arrow-left.vue"]]),arrow_right_vue_vue_type_script_lang_default={name:"ArrowRight"},_hoisted_110={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_210=createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_310=[_hoisted_210];function _sfc_render10(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_110,_hoisted_310)}var arrow_right_default=export_helper_default(arrow_right_vue_vue_type_script_lang_default,[["render",_sfc_render10],["__file","arrow-right.vue"]]),arrow_up_vue_vue_type_script_lang_default={name:"ArrowUp"},_hoisted_112={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_212=createBaseVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),_hoisted_312=[_hoisted_212];function _sfc_render12(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_112,_hoisted_312)}var arrow_up_default=export_helper_default(arrow_up_vue_vue_type_script_lang_default,[["render",_sfc_render12],["__file","arrow-up.vue"]]),back_vue_vue_type_script_lang_default={name:"Back"},_hoisted_114={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_214=createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),_hoisted_314=createBaseVNode("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),_hoisted_44=[_hoisted_214,_hoisted_314];function _sfc_render14(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_114,_hoisted_44)}var back_default=export_helper_default(back_vue_vue_type_script_lang_default,[["render",_sfc_render14],["__file","back.vue"]]),calendar_vue_vue_type_script_lang_default={name:"Calendar"},_hoisted_129={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_229=createBaseVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),_hoisted_328=[_hoisted_229];function _sfc_render29(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_129,_hoisted_328)}var calendar_default=export_helper_default(calendar_vue_vue_type_script_lang_default,[["render",_sfc_render29],["__file","calendar.vue"]]),caret_right_vue_vue_type_script_lang_default={name:"CaretRight"},_hoisted_134={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_234=createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),_hoisted_333=[_hoisted_234];function _sfc_render34(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_134,_hoisted_333)}var caret_right_default=export_helper_default(caret_right_vue_vue_type_script_lang_default,[["render",_sfc_render34],["__file","caret-right.vue"]]),caret_top_vue_vue_type_script_lang_default={name:"CaretTop"},_hoisted_135={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_235=createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),_hoisted_334=[_hoisted_235];function _sfc_render35(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_135,_hoisted_334)}var caret_top_default=export_helper_default(caret_top_vue_vue_type_script_lang_default,[["render",_sfc_render35],["__file","caret-top.vue"]]),check_vue_vue_type_script_lang_default={name:"Check"},_hoisted_143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_243=createBaseVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),_hoisted_342=[_hoisted_243];function _sfc_render43(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_143,_hoisted_342)}var check_default=export_helper_default(check_vue_vue_type_script_lang_default,[["render",_sfc_render43],["__file","check.vue"]]),circle_check_filled_vue_vue_type_script_lang_default={name:"CircleCheckFilled"},_hoisted_148={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_248=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_347=[_hoisted_248];function _sfc_render48(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_148,_hoisted_347)}var circle_check_filled_default=export_helper_default(circle_check_filled_vue_vue_type_script_lang_default,[["render",_sfc_render48],["__file","circle-check-filled.vue"]]),circle_check_vue_vue_type_script_lang_default={name:"CircleCheck"},_hoisted_149={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_249=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_348=createBaseVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),_hoisted_415=[_hoisted_249,_hoisted_348];function _sfc_render49(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_149,_hoisted_415)}var circle_check_default=export_helper_default(circle_check_vue_vue_type_script_lang_default,[["render",_sfc_render49],["__file","circle-check.vue"]]),circle_close_filled_vue_vue_type_script_lang_default={name:"CircleCloseFilled"},_hoisted_150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_250=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_hoisted_349=[_hoisted_250];function _sfc_render50(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_150,_hoisted_349)}var circle_close_filled_default=export_helper_default(circle_close_filled_vue_vue_type_script_lang_default,[["render",_sfc_render50],["__file","circle-close-filled.vue"]]),circle_close_vue_vue_type_script_lang_default={name:"CircleClose"},_hoisted_151={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_251=createBaseVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),_hoisted_350=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_416=[_hoisted_251,_hoisted_350];function _sfc_render51(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_151,_hoisted_416)}var circle_close_default=export_helper_default(circle_close_vue_vue_type_script_lang_default,[["render",_sfc_render51],["__file","circle-close.vue"]]),clock_vue_vue_type_script_lang_default={name:"Clock"},_hoisted_154={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_254=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_353=createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_418=createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),_hoisted_56=[_hoisted_254,_hoisted_353,_hoisted_418];function _sfc_render54(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_154,_hoisted_56)}var clock_default=export_helper_default(clock_vue_vue_type_script_lang_default,[["render",_sfc_render54],["__file","clock.vue"]]),close_vue_vue_type_script_lang_default={name:"Close"},_hoisted_156={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_256=createBaseVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_hoisted_355=[_hoisted_256];function _sfc_render56(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_156,_hoisted_355)}var close_default=export_helper_default(close_vue_vue_type_script_lang_default,[["render",_sfc_render56],["__file","close.vue"]]),d_arrow_left_vue_vue_type_script_lang_default={name:"DArrowLeft"},_hoisted_172={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_272=createBaseVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),_hoisted_371=[_hoisted_272];function _sfc_render72(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_172,_hoisted_371)}var d_arrow_left_default=export_helper_default(d_arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render72],["__file","d-arrow-left.vue"]]),d_arrow_right_vue_vue_type_script_lang_default={name:"DArrowRight"},_hoisted_173={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_273=createBaseVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),_hoisted_372=[_hoisted_273];function _sfc_render73(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_173,_hoisted_372)}var d_arrow_right_default=export_helper_default(d_arrow_right_vue_vue_type_script_lang_default,[["render",_sfc_render73],["__file","d-arrow-right.vue"]]),delete_vue_vue_type_script_lang_default={name:"Delete"},_hoisted_180={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_280=createBaseVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_379=[_hoisted_280];function _sfc_render80(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_180,_hoisted_379)}var delete_default=export_helper_default(delete_vue_vue_type_script_lang_default,[["render",_sfc_render80],["__file","delete.vue"]]),document_vue_vue_type_script_lang_default={name:"Document"},_hoisted_190={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_290=createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_389=[_hoisted_290];function _sfc_render90(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_190,_hoisted_389)}var document_default=export_helper_default(document_vue_vue_type_script_lang_default,[["render",_sfc_render90],["__file","document.vue"]]),full_screen_vue_vue_type_script_lang_default={name:"FullScreen"},_hoisted_1118={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2118=createBaseVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),_hoisted_3117=[_hoisted_2118];function _sfc_render118(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1118,_hoisted_3117)}var full_screen_default=export_helper_default(full_screen_vue_vue_type_script_lang_default,[["render",_sfc_render118],["__file","full-screen.vue"]]),hide_vue_vue_type_script_lang_default={name:"Hide"},_hoisted_1133={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2133=createBaseVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),_hoisted_3132=createBaseVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),_hoisted_438=[_hoisted_2133,_hoisted_3132];function _sfc_render133(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1133,_hoisted_438)}var hide_default=export_helper_default(hide_vue_vue_type_script_lang_default,[["render",_sfc_render133],["__file","hide.vue"]]),info_filled_vue_vue_type_script_lang_default={name:"InfoFilled"},_hoisted_1143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2143=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3142=[_hoisted_2143];function _sfc_render143(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1143,_hoisted_3142)}var info_filled_default=export_helper_default(info_filled_vue_vue_type_script_lang_default,[["render",_sfc_render143],["__file","info-filled.vue"]]),loading_vue_vue_type_script_lang_default={name:"Loading"},_hoisted_1150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2150=createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),_hoisted_3149=[_hoisted_2150];function _sfc_render150(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1150,_hoisted_3149)}var loading_default=export_helper_default(loading_vue_vue_type_script_lang_default,[["render",_sfc_render150],["__file","loading.vue"]]),minus_vue_vue_type_script_lang_default={name:"Minus"},_hoisted_1169={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2169=createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),_hoisted_3168=[_hoisted_2169];function _sfc_render169(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1169,_hoisted_3168)}var minus_default=export_helper_default(minus_vue_vue_type_script_lang_default,[["render",_sfc_render169],["__file","minus.vue"]]),more_filled_vue_vue_type_script_lang_default={name:"MoreFilled"},_hoisted_1174={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2174=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),_hoisted_3173=[_hoisted_2174];function _sfc_render174(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1174,_hoisted_3173)}var more_filled_default=export_helper_default(more_filled_vue_vue_type_script_lang_default,[["render",_sfc_render174],["__file","more-filled.vue"]]),more_vue_vue_type_script_lang_default={name:"More"},_hoisted_1175={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2175=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),_hoisted_3174=[_hoisted_2175];function _sfc_render175(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1175,_hoisted_3174)}var more_default=export_helper_default(more_vue_vue_type_script_lang_default,[["render",_sfc_render175],["__file","more.vue"]]),picture_filled_vue_vue_type_script_lang_default={name:"PictureFilled"},_hoisted_1195={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2195=createBaseVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),_hoisted_3194=[_hoisted_2195];function _sfc_render195(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1195,_hoisted_3194)}var picture_filled_default=export_helper_default(picture_filled_vue_vue_type_script_lang_default,[["render",_sfc_render195],["__file","picture-filled.vue"]]),plus_vue_vue_type_script_lang_default={name:"Plus"},_hoisted_1201={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2201=createBaseVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),_hoisted_3200=[_hoisted_2201];function _sfc_render201(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1201,_hoisted_3200)}var plus_default=export_helper_default(plus_vue_vue_type_script_lang_default,[["render",_sfc_render201],["__file","plus.vue"]]),question_filled_vue_vue_type_script_lang_default={name:"QuestionFilled"},_hoisted_1211={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2211=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),_hoisted_3210=[_hoisted_2211];function _sfc_render211(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1211,_hoisted_3210)}var question_filled_default=export_helper_default(question_filled_vue_vue_type_script_lang_default,[["render",_sfc_render211],["__file","question-filled.vue"]]),refresh_left_vue_vue_type_script_lang_default={name:"RefreshLeft"},_hoisted_1215={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2215=createBaseVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),_hoisted_3214=[_hoisted_2215];function _sfc_render215(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1215,_hoisted_3214)}var refresh_left_default=export_helper_default(refresh_left_vue_vue_type_script_lang_default,[["render",_sfc_render215],["__file","refresh-left.vue"]]),refresh_right_vue_vue_type_script_lang_default={name:"RefreshRight"},_hoisted_1216={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2216=createBaseVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),_hoisted_3215=[_hoisted_2216];function _sfc_render216(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1216,_hoisted_3215)}var refresh_right_default=export_helper_default(refresh_right_vue_vue_type_script_lang_default,[["render",_sfc_render216],["__file","refresh-right.vue"]]),scale_to_original_vue_vue_type_script_lang_default={name:"ScaleToOriginal"},_hoisted_1222={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2222=createBaseVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_hoisted_3221=[_hoisted_2222];function _sfc_render222(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1222,_hoisted_3221)}var scale_to_original_default=export_helper_default(scale_to_original_vue_vue_type_script_lang_default,[["render",_sfc_render222],["__file","scale-to-original.vue"]]),search_vue_vue_type_script_lang_default={name:"Search"},_hoisted_1225={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2225=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),_hoisted_3224=[_hoisted_2225];function _sfc_render225(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1225,_hoisted_3224)}var search_default=export_helper_default(search_vue_vue_type_script_lang_default,[["render",_sfc_render225],["__file","search.vue"]]),sort_down_vue_vue_type_script_lang_default={name:"SortDown"},_hoisted_1242={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2242=createBaseVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),_hoisted_3241=[_hoisted_2242];function _sfc_render242(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1242,_hoisted_3241)}var sort_down_default=export_helper_default(sort_down_vue_vue_type_script_lang_default,[["render",_sfc_render242],["__file","sort-down.vue"]]),sort_up_vue_vue_type_script_lang_default={name:"SortUp"},_hoisted_1243={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2243=createBaseVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),_hoisted_3242=[_hoisted_2243];function _sfc_render243(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1243,_hoisted_3242)}var sort_up_default=export_helper_default(sort_up_vue_vue_type_script_lang_default,[["render",_sfc_render243],["__file","sort-up.vue"]]),star_filled_vue_vue_type_script_lang_default={name:"StarFilled"},_hoisted_1246={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2246=createBaseVNode("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),_hoisted_3245=[_hoisted_2246];function _sfc_render246(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1246,_hoisted_3245)}var star_filled_default=export_helper_default(star_filled_vue_vue_type_script_lang_default,[["render",_sfc_render246],["__file","star-filled.vue"]]),star_vue_vue_type_script_lang_default={name:"Star"},_hoisted_1247={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2247=createBaseVNode("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),_hoisted_3246=[_hoisted_2247];function _sfc_render247(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1247,_hoisted_3246)}var star_default=export_helper_default(star_vue_vue_type_script_lang_default,[["render",_sfc_render247],["__file","star.vue"]]),success_filled_vue_vue_type_script_lang_default={name:"SuccessFilled"},_hoisted_1249={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2249=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3248=[_hoisted_2249];function _sfc_render249(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1249,_hoisted_3248)}var success_filled_default=export_helper_default(success_filled_vue_vue_type_script_lang_default,[["render",_sfc_render249],["__file","success-filled.vue"]]),view_vue_vue_type_script_lang_default={name:"View"},_hoisted_1283={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2283=createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),_hoisted_3282=[_hoisted_2283];function _sfc_render283(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1283,_hoisted_3282)}var view_default=export_helper_default(view_vue_vue_type_script_lang_default,[["render",_sfc_render283],["__file","view.vue"]]),warning_filled_vue_vue_type_script_lang_default={name:"WarningFilled"},_hoisted_1287={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2287=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3286=[_hoisted_2287];function _sfc_render287(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1287,_hoisted_3286)}var warning_filled_default=export_helper_default(warning_filled_vue_vue_type_script_lang_default,[["render",_sfc_render287],["__file","warning-filled.vue"]]),zoom_in_vue_vue_type_script_lang_default={name:"ZoomIn"},_hoisted_1292={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2292=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),_hoisted_3291=[_hoisted_2292];function _sfc_render292(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1292,_hoisted_3291)}var zoom_in_default=export_helper_default(zoom_in_vue_vue_type_script_lang_default,[["render",_sfc_render292],["__file","zoom-in.vue"]]),zoom_out_vue_vue_type_script_lang_default={name:"ZoomOut"},_hoisted_1293={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2293=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3292=[_hoisted_2293];function _sfc_render293(t,r,V,oe,ie,le){return openBlock(),createElementBlock("svg",_hoisted_1293,_hoisted_3292)}var zoom_out_default=export_helper_default(zoom_out_vue_vue_type_script_lang_default,[["render",_sfc_render293],["__file","zoom-out.vue"]]);const epPropKey="__epPropKey",definePropType=t=>t,isEpProp=t=>isObject$9(t)&&!!t[epPropKey],buildProp=(t,r)=>{if(!isObject$9(t)||isEpProp(t))return t;const{values:V,required:oe,default:ie,type:le,validator:ue}=t,pe={type:le,required:!!oe,validator:V||ue?he=>{let _e=!1,$e=[];if(V&&($e=Array.from(V),hasOwn$4(t,"default")&&$e.push(ie),_e||(_e=$e.includes(he))),ue&&(_e||(_e=ue(he))),!_e&&$e.length>0){const Ie=[...new Set($e)].map(Ve=>JSON.stringify(Ve)).join(", ");warn$2(`Invalid prop: validation failed${r?` for prop "${r}"`:""}. Expected one of [${Ie}], got value ${JSON.stringify(he)}.`)}return _e}:void 0,[epPropKey]:!0};return hasOwn$4(t,"default")&&(pe.default=ie),pe},buildProps=t=>fromPairs(Object.entries(t).map(([r,V])=>[r,buildProp(V,r)])),iconPropType=definePropType([String,Object,Function]),CloseComponents={Close:close_default},TypeComponents={Close:close_default,SuccessFilled:success_filled_default,InfoFilled:info_filled_default,WarningFilled:warning_filled_default,CircleCloseFilled:circle_close_filled_default},TypeComponentsMap={success:success_filled_default,warning:warning_filled_default,error:circle_close_filled_default,info:info_filled_default},ValidateComponentsMap={validating:loading_default,success:circle_check_default,error:circle_close_default},withInstall=(t,r)=>{if(t.install=V=>{for(const oe of[t,...Object.values(r??{})])V.component(oe.name,oe)},r)for(const[V,oe]of Object.entries(r))t[V]=oe;return t},withInstallFunction=(t,r)=>(t.install=V=>{t._context=V._context,V.config.globalProperties[r]=t},t),withInstallDirective=(t,r)=>(t.install=V=>{V.directive(r,t)},t),withNoopInstall=t=>(t.install=NOOP,t),composeRefs=(...t)=>r=>{t.forEach(V=>{isFunction$5(V)?V(r):V.value=r})},EVENT_CODE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},datePickTypes=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],WEEK_DAYS=["sun","mon","tue","wed","thu","fri","sat"],UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input",INSTALLED_KEY=Symbol("INSTALLED_KEY"),componentSizes=["","default","small","large"],componentSizeMap={large:40,default:32,small:24},getComponentSize=t=>componentSizeMap[t||"default"],isValidComponentSize=t=>["",...componentSizes].includes(t);var PatchFlags=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(PatchFlags||{});function isFragment(t){return isVNode$1(t)&&t.type===Fragment}function isComment(t){return isVNode$1(t)&&t.type===Comment}function isValidElementNode(t){return isVNode$1(t)&&!isFragment(t)&&!isComment(t)}const getNormalizedProps=t=>{if(!isVNode$1(t))return{};const r=t.props||{},V=(isVNode$1(t.type)?t.type.props:void 0)||{},oe={};return Object.keys(V).forEach(ie=>{hasOwn$4(V[ie],"default")&&(oe[ie]=V[ie].default)}),Object.keys(r).forEach(ie=>{oe[camelize(ie)]=r[ie]}),oe},ensureOnlyChild=t=>{if(!isArray$c(t)||t.length>1)throw new Error("expect to receive a single Vue element child");return t[0]},flattedChildren=t=>{const r=isArray$c(t)?t:[t],V=[];return r.forEach(oe=>{var ie;isArray$c(oe)?V.push(...flattedChildren(oe)):isVNode$1(oe)&&isArray$c(oe.children)?V.push(...flattedChildren(oe.children)):(V.push(oe),isVNode$1(oe)&&((ie=oe.component)!=null&&ie.subTree)&&V.push(...flattedChildren(oe.component.subTree)))}),V},unique=t=>[...new Set(t)],castArray=t=>!t&&t!==0?[]:Array.isArray(t)?t:[t],isKorean=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),rAF=t=>isClient$1?window.requestAnimationFrame(t):setTimeout(t,16),cAF=t=>isClient$1?window.cancelAnimationFrame(t):clearTimeout(t),generateId=()=>Math.floor(Math.random()*1e4),mutable=t=>t,DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=(t={})=>{const{excludeListeners:r=!1,excludeKeys:V}=t,oe=computed(()=>((V==null?void 0:V.value)||[]).concat(DEFAULT_EXCLUDE_KEYS)),ie=getCurrentInstance();return computed(ie?()=>{var le;return fromPairs(Object.entries((le=ie.proxy)==null?void 0:le.$attrs).filter(([ue])=>!oe.value.includes(ue)&&!(r&&LISTENER_PREFIX.test(ue))))}:()=>({}))},useDeprecated=({from:t,replacement:r,scope:V,version:oe,ref:ie,type:le="API"},ue)=>{watch(()=>unref(ue),de=>{},{immediate:!0})},useDraggable=(t,r,V)=>{let oe={offsetX:0,offsetY:0};const ie=de=>{const pe=de.clientX,he=de.clientY,{offsetX:_e,offsetY:$e}=oe,Ie=t.value.getBoundingClientRect(),Ve=Ie.left,Fe=Ie.top,Ue=Ie.width,qe=Ie.height,Et=document.documentElement.clientWidth,At=document.documentElement.clientHeight,Lt=-Ve+_e,hn=-Fe+$e,_n=Et-Ve-Ue+_e,vn=At-Fe-qe+$e,bn=Sn=>{const wn=Math.min(Math.max(_e+Sn.clientX-pe,Lt),_n),En=Math.min(Math.max($e+Sn.clientY-he,hn),vn);oe={offsetX:wn,offsetY:En},t.value.style.transform=`translate(${addUnit(wn)}, ${addUnit(En)})`},Cn=()=>{document.removeEventListener("mousemove",bn),document.removeEventListener("mouseup",Cn)};document.addEventListener("mousemove",bn),document.addEventListener("mouseup",Cn)},le=()=>{r.value&&t.value&&r.value.addEventListener("mousedown",ie)},ue=()=>{r.value&&t.value&&r.value.removeEventListener("mousedown",ie)};onMounted(()=>{watchEffect(()=>{V.value?le():ue()})}),onBeforeUnmount(()=>{ue()})};var English={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 buildTranslator=t=>(r,V)=>translate$2(r,V,unref(t)),translate$2=(t,r,V)=>get$1(V,t,t).replace(/\{(\w+)\}/g,(oe,ie)=>{var le;return`${(le=r==null?void 0:r[ie])!=null?le:`{${ie}}`}`}),buildLocaleContext=t=>{const r=computed(()=>unref(t).name),V=isRef(t)?t:ref(t);return{lang:r,locale:V,t:buildTranslator(t)}},localeContextKey=Symbol("localeContextKey"),useLocale=t=>{const r=t||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>r.value||English))},defaultNamespace="el",statePrefix="is-",_bem=(t,r,V,oe,ie)=>{let le=`${t}-${r}`;return V&&(le+=`-${V}`),oe&&(le+=`__${oe}`),ie&&(le+=`--${ie}`),le},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=t=>{const r=t||(getCurrentInstance()?inject(namespaceContextKey,ref(defaultNamespace)):ref(defaultNamespace));return computed(()=>unref(r)||defaultNamespace)},useNamespace=(t,r)=>{const V=useGetDerivedNamespace(r);return{namespace:V,b:(Ue="")=>_bem(V.value,t,Ue,"",""),e:Ue=>Ue?_bem(V.value,t,"",Ue,""):"",m:Ue=>Ue?_bem(V.value,t,"","",Ue):"",be:(Ue,qe)=>Ue&&qe?_bem(V.value,t,Ue,qe,""):"",em:(Ue,qe)=>Ue&&qe?_bem(V.value,t,"",Ue,qe):"",bm:(Ue,qe)=>Ue&&qe?_bem(V.value,t,Ue,"",qe):"",bem:(Ue,qe,Et)=>Ue&&qe&&Et?_bem(V.value,t,Ue,qe,Et):"",is:(Ue,...qe)=>{const Et=qe.length>=1?qe[0]:!0;return Ue&&Et?`${statePrefix}${Ue}`:""},cssVar:Ue=>{const qe={};for(const Et in Ue)Ue[Et]&&(qe[`--${V.value}-${Et}`]=Ue[Et]);return qe},cssVarName:Ue=>`--${V.value}-${Ue}`,cssVarBlock:Ue=>{const qe={};for(const Et in Ue)Ue[Et]&&(qe[`--${V.value}-${t}-${Et}`]=Ue[Et]);return qe},cssVarBlockName:Ue=>`--${V.value}-${t}-${Ue}`}},useLockscreen=(t,r={})=>{isRef(t)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const V=r.ns||useNamespace("popup"),oe=computed$1(()=>V.bm("parent","hidden"));if(!isClient$1||hasClass(document.body,oe.value))return;let ie=0,le=!1,ue="0";const de=()=>{setTimeout(()=>{removeClass(document==null?void 0:document.body,oe.value),le&&document&&(document.body.style.width=ue)},200)};watch(t,pe=>{if(!pe){de();return}le=!hasClass(document.body,oe.value),le&&(ue=document.body.style.width),ie=getScrollBarWidth(V.namespace.value);const he=document.documentElement.clientHeight0&&(he||_e==="scroll")&&le&&(document.body.style.width=`calc(100% - ${ie}px)`),addClass(document.body,oe.value)}),onScopeDispose(()=>de())},_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=t=>{const r=`update:${t}`,V=`onUpdate:${t}`,oe=[r],ie={[t]:_prop,[V]:_event};return{useModelToggle:({indicator:ue,toggleReason:de,shouldHideWhenRouteChanges:pe,shouldProceed:he,onShow:_e,onHide:$e})=>{const Ie=getCurrentInstance(),{emit:Ve}=Ie,Fe=Ie.props,Ue=computed(()=>isFunction$5(Fe[V])),qe=computed(()=>Fe[t]===null),Et=bn=>{ue.value!==!0&&(ue.value=!0,de&&(de.value=bn),isFunction$5(_e)&&_e(bn))},At=bn=>{ue.value!==!1&&(ue.value=!1,de&&(de.value=bn),isFunction$5($e)&&$e(bn))},Lt=bn=>{if(Fe.disabled===!0||isFunction$5(he)&&!he())return;const Cn=Ue.value&&isClient$1;Cn&&Ve(r,!0),(qe.value||!Cn)&&Et(bn)},hn=bn=>{if(Fe.disabled===!0||!isClient$1)return;const Cn=Ue.value&&isClient$1;Cn&&Ve(r,!1),(qe.value||!Cn)&&At(bn)},_n=bn=>{isBoolean$3(bn)&&(Fe.disabled&&bn?Ue.value&&Ve(r,!1):ue.value!==bn&&(bn?Et():At()))},vn=()=>{ue.value?hn():Lt()};return watch(()=>Fe[t],_n),pe&&Ie.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...Ie.proxy.$route}),()=>{pe.value&&ue.value&&hn()}),onMounted(()=>{_n(Fe[t])}),{hide:hn,show:Lt,toggle:vn,hasUpdateHandler:Ue}},useModelToggleProps:ie,useModelToggleEmits:oe}};createModelToggleComposable("modelValue");const useProp=t=>{const r=getCurrentInstance();return computed(()=>{var V,oe;return(oe=(V=r==null?void 0:r.proxy)==null?void 0:V.$props)==null?void 0:oe[t]})};var E$1="top",R$1="bottom",W$1="right",P$2="left",me="auto",G$1=[E$1,R$1,W$1,P$2],U$2="start",J$1="end",Xe="clippingParents",je$1="viewport",K="popper",Ye="reference",De=G$1.reduce(function(t,r){return t.concat([r+"-"+U$2,r+"-"+J$1])},[]),Ee=[].concat(G$1,[me]).reduce(function(t,r){return t.concat([r,r+"-"+U$2,r+"-"+J$1])},[]),Ge$1="beforeRead",Je="read",Ke="afterRead",Qe$1="beforeMain",Ze$1="main",et$1="afterMain",tt="beforeWrite",nt$1="write",rt$2="afterWrite",ot$1=[Ge$1,Je,Ke,Qe$1,Ze$1,et$1,tt,nt$1,rt$2];function C(t){return t?(t.nodeName||"").toLowerCase():null}function H$1(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function Q$1(t){var r=H$1(t).Element;return t instanceof r||t instanceof Element}function B$1(t){var r=H$1(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function Pe$1(t){if(typeof ShadowRoot>"u")return!1;var r=H$1(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function Mt$1(t){var r=t.state;Object.keys(r.elements).forEach(function(V){var oe=r.styles[V]||{},ie=r.attributes[V]||{},le=r.elements[V];!B$1(le)||!C(le)||(Object.assign(le.style,oe),Object.keys(ie).forEach(function(ue){var de=ie[ue];de===!1?le.removeAttribute(ue):le.setAttribute(ue,de===!0?"":de)}))})}function Rt(t){var r=t.state,V={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,V.popper),r.styles=V,r.elements.arrow&&Object.assign(r.elements.arrow.style,V.arrow),function(){Object.keys(r.elements).forEach(function(oe){var ie=r.elements[oe],le=r.attributes[oe]||{},ue=Object.keys(r.styles.hasOwnProperty(oe)?r.styles[oe]:V[oe]),de=ue.reduce(function(pe,he){return pe[he]="",pe},{});!B$1(ie)||!C(ie)||(Object.assign(ie.style,de),Object.keys(le).forEach(function(pe){ie.removeAttribute(pe)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt$1,effect:Rt,requires:["computeStyles"]};function q$2(t){return t.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee$1(t,r){r===void 0&&(r=!1);var V=t.getBoundingClientRect(),oe=1,ie=1;if(B$1(t)&&r){var le=t.offsetHeight,ue=t.offsetWidth;ue>0&&(oe=Z(V.width)/ue||1),le>0&&(ie=Z(V.height)/le||1)}return{width:V.width/oe,height:V.height/ie,top:V.top/ie,right:V.right/oe,bottom:V.bottom/ie,left:V.left/oe,x:V.left/oe,y:V.top/ie}}function ke(t){var r=ee$1(t),V=t.offsetWidth,oe=t.offsetHeight;return Math.abs(r.width-V)<=1&&(V=r.width),Math.abs(r.height-oe)<=1&&(oe=r.height),{x:t.offsetLeft,y:t.offsetTop,width:V,height:oe}}function it(t,r){var V=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(V&&Pe$1(V)){var oe=r;do{if(oe&&t.isSameNode(oe))return!0;oe=oe.parentNode||oe.host}while(oe)}return!1}function N$2(t){return H$1(t).getComputedStyle(t)}function Wt$1(t){return["table","td","th"].indexOf(C(t))>=0}function I$2(t){return((Q$1(t)?t.ownerDocument:t.document)||window.document).documentElement}function ge(t){return C(t)==="html"?t:t.assignedSlot||t.parentNode||(Pe$1(t)?t.host:null)||I$2(t)}function at$1(t){return!B$1(t)||N$2(t).position==="fixed"?null:t.offsetParent}function Bt$1(t){var r=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,V=navigator.userAgent.indexOf("Trident")!==-1;if(V&&B$1(t)){var oe=N$2(t);if(oe.position==="fixed")return null}var ie=ge(t);for(Pe$1(ie)&&(ie=ie.host);B$1(ie)&&["html","body"].indexOf(C(ie))<0;){var le=N$2(ie);if(le.transform!=="none"||le.perspective!=="none"||le.contain==="paint"||["transform","perspective"].indexOf(le.willChange)!==-1||r&&le.willChange==="filter"||r&&le.filter&&le.filter!=="none")return ie;ie=ie.parentNode}return null}function se$1(t){for(var r=H$1(t),V=at$1(t);V&&Wt$1(V)&&N$2(V).position==="static";)V=at$1(V);return V&&(C(V)==="html"||C(V)==="body"&&N$2(V).position==="static")?r:V||Bt$1(t)||r}function Le$1(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fe(t,r,V){return X$1(t,ve(r,V))}function St$1(t,r,V){var oe=fe(t,r,V);return oe>V?V:oe}function st$1(){return{top:0,right:0,bottom:0,left:0}}function ft$1(t){return Object.assign({},st$1(),t)}function ct$1(t,r){return r.reduce(function(V,oe){return V[oe]=t,V},{})}var Tt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ft$1(typeof t!="number"?t:ct$1(t,G$1))};function Ht$1(t){var r,V=t.state,oe=t.name,ie=t.options,le=V.elements.arrow,ue=V.modifiersData.popperOffsets,de=q$2(V.placement),pe=Le$1(de),he=[P$2,W$1].indexOf(de)>=0,_e=he?"height":"width";if(!(!le||!ue)){var $e=Tt(ie.padding,V),Ie=ke(le),Ve=pe==="y"?E$1:P$2,Fe=pe==="y"?R$1:W$1,Ue=V.rects.reference[_e]+V.rects.reference[pe]-ue[pe]-V.rects.popper[_e],qe=ue[pe]-V.rects.reference[pe],Et=se$1(le),At=Et?pe==="y"?Et.clientHeight||0:Et.clientWidth||0:0,Lt=Ue/2-qe/2,hn=$e[Ve],_n=At-Ie[_e]-$e[Fe],vn=At/2-Ie[_e]/2+Lt,bn=fe(hn,vn,_n),Cn=pe;V.modifiersData[oe]=(r={},r[Cn]=bn,r.centerOffset=bn-vn,r)}}function Ct$1(t){var r=t.state,V=t.options,oe=V.element,ie=oe===void 0?"[data-popper-arrow]":oe;ie!=null&&(typeof ie=="string"&&(ie=r.elements.popper.querySelector(ie),!ie)||!it(r.elements.popper,ie)||(r.elements.arrow=ie))}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht$1,effect:Ct$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(t){return t.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt$1(t){var r=t.x,V=t.y,oe=window,ie=oe.devicePixelRatio||1;return{x:Z(r*ie)/ie||0,y:Z(V*ie)/ie||0}}function ut(t){var r,V=t.popper,oe=t.popperRect,ie=t.placement,le=t.variation,ue=t.offsets,de=t.position,pe=t.gpuAcceleration,he=t.adaptive,_e=t.roundOffsets,$e=t.isFixed,Ie=ue.x,Ve=Ie===void 0?0:Ie,Fe=ue.y,Ue=Fe===void 0?0:Fe,qe=typeof _e=="function"?_e({x:Ve,y:Ue}):{x:Ve,y:Ue};Ve=qe.x,Ue=qe.y;var Et=ue.hasOwnProperty("x"),At=ue.hasOwnProperty("y"),Lt=P$2,hn=E$1,_n=window;if(he){var vn=se$1(V),bn="clientHeight",Cn="clientWidth";if(vn===H$1(V)&&(vn=I$2(V),N$2(vn).position!=="static"&&de==="absolute"&&(bn="scrollHeight",Cn="scrollWidth")),vn=vn,ie===E$1||(ie===P$2||ie===W$1)&&le===J$1){hn=R$1;var Sn=$e&&vn===_n&&_n.visualViewport?_n.visualViewport.height:vn[bn];Ue-=Sn-oe.height,Ue*=pe?1:-1}if(ie===P$2||(ie===E$1||ie===R$1)&&le===J$1){Lt=W$1;var wn=$e&&vn===_n&&_n.visualViewport?_n.visualViewport.width:vn[Cn];Ve-=wn-oe.width,Ve*=pe?1:-1}}var En=Object.assign({position:de},he&&qt),xn=_e===!0?Vt$1({x:Ve,y:Ue}):{x:Ve,y:Ue};if(Ve=xn.x,Ue=xn.y,pe){var Pn;return Object.assign({},En,(Pn={},Pn[hn]=At?"0":"",Pn[Lt]=Et?"0":"",Pn.transform=(_n.devicePixelRatio||1)<=1?"translate("+Ve+"px, "+Ue+"px)":"translate3d("+Ve+"px, "+Ue+"px, 0)",Pn))}return Object.assign({},En,(r={},r[hn]=At?Ue+"px":"",r[Lt]=Et?Ve+"px":"",r.transform="",r))}function Nt$1(t){var r=t.state,V=t.options,oe=V.gpuAcceleration,ie=oe===void 0?!0:oe,le=V.adaptive,ue=le===void 0?!0:le,de=V.roundOffsets,pe=de===void 0?!0:de,he={placement:q$2(r.placement),variation:te(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:ie,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,ut(Object.assign({},he,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:ue,roundOffsets:pe})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,ut(Object.assign({},he,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:pe})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt$1,data:{}},ye={passive:!0};function It$1(t){var r=t.state,V=t.instance,oe=t.options,ie=oe.scroll,le=ie===void 0?!0:ie,ue=oe.resize,de=ue===void 0?!0:ue,pe=H$1(r.elements.popper),he=[].concat(r.scrollParents.reference,r.scrollParents.popper);return le&&he.forEach(function(_e){_e.addEventListener("scroll",V.update,ye)}),de&&pe.addEventListener("resize",V.update,ye),function(){le&&he.forEach(function(_e){_e.removeEventListener("scroll",V.update,ye)}),de&&pe.removeEventListener("resize",V.update,ye)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It$1,data:{}},_t$1={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,function(r){return _t$1[r]})}var zt$1={start:"end",end:"start"};function lt$2(t){return t.replace(/start|end/g,function(r){return zt$1[r]})}function We(t){var r=H$1(t),V=r.pageXOffset,oe=r.pageYOffset;return{scrollLeft:V,scrollTop:oe}}function Be$2(t){return ee$1(I$2(t)).left+We(t).scrollLeft}function Ft$1(t){var r=H$1(t),V=I$2(t),oe=r.visualViewport,ie=V.clientWidth,le=V.clientHeight,ue=0,de=0;return oe&&(ie=oe.width,le=oe.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(ue=oe.offsetLeft,de=oe.offsetTop)),{width:ie,height:le,x:ue+Be$2(t),y:de}}function Ut$1(t){var r,V=I$2(t),oe=We(t),ie=(r=t.ownerDocument)==null?void 0:r.body,le=X$1(V.scrollWidth,V.clientWidth,ie?ie.scrollWidth:0,ie?ie.clientWidth:0),ue=X$1(V.scrollHeight,V.clientHeight,ie?ie.scrollHeight:0,ie?ie.clientHeight:0),de=-oe.scrollLeft+Be$2(t),pe=-oe.scrollTop;return N$2(ie||V).direction==="rtl"&&(de+=X$1(V.clientWidth,ie?ie.clientWidth:0)-le),{width:le,height:ue,x:de,y:pe}}function Se$1(t){var r=N$2(t),V=r.overflow,oe=r.overflowX,ie=r.overflowY;return/auto|scroll|overlay|hidden/.test(V+ie+oe)}function dt$1(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:B$1(t)&&Se$1(t)?t:dt$1(ge(t))}function ce(t,r){var V;r===void 0&&(r=[]);var oe=dt$1(t),ie=oe===((V=t.ownerDocument)==null?void 0:V.body),le=H$1(oe),ue=ie?[le].concat(le.visualViewport||[],Se$1(oe)?oe:[]):oe,de=r.concat(ue);return ie?de:de.concat(ce(ge(ue)))}function Te$1(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt$1(t){var r=ee$1(t);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function ht(t,r){return r===je$1?Te$1(Ft$1(t)):Q$1(r)?Xt$1(r):Te$1(Ut$1(I$2(t)))}function Yt(t){var r=ce(ge(t)),V=["absolute","fixed"].indexOf(N$2(t).position)>=0,oe=V&&B$1(t)?se$1(t):t;return Q$1(oe)?r.filter(function(ie){return Q$1(ie)&&it(ie,oe)&&C(ie)!=="body"}):[]}function Gt(t,r,V){var oe=r==="clippingParents"?Yt(t):[].concat(r),ie=[].concat(oe,[V]),le=ie[0],ue=ie.reduce(function(de,pe){var he=ht(t,pe);return de.top=X$1(he.top,de.top),de.right=ve(he.right,de.right),de.bottom=ve(he.bottom,de.bottom),de.left=X$1(he.left,de.left),de},ht(t,le));return ue.width=ue.right-ue.left,ue.height=ue.bottom-ue.top,ue.x=ue.left,ue.y=ue.top,ue}function mt$1(t){var r=t.reference,V=t.element,oe=t.placement,ie=oe?q$2(oe):null,le=oe?te(oe):null,ue=r.x+r.width/2-V.width/2,de=r.y+r.height/2-V.height/2,pe;switch(ie){case E$1:pe={x:ue,y:r.y-V.height};break;case R$1:pe={x:ue,y:r.y+r.height};break;case W$1:pe={x:r.x+r.width,y:de};break;case P$2:pe={x:r.x-V.width,y:de};break;default:pe={x:r.x,y:r.y}}var he=ie?Le$1(ie):null;if(he!=null){var _e=he==="y"?"height":"width";switch(le){case U$2:pe[he]=pe[he]-(r[_e]/2-V[_e]/2);break;case J$1:pe[he]=pe[he]+(r[_e]/2-V[_e]/2);break}}return pe}function ne(t,r){r===void 0&&(r={});var V=r,oe=V.placement,ie=oe===void 0?t.placement:oe,le=V.boundary,ue=le===void 0?Xe:le,de=V.rootBoundary,pe=de===void 0?je$1:de,he=V.elementContext,_e=he===void 0?K:he,$e=V.altBoundary,Ie=$e===void 0?!1:$e,Ve=V.padding,Fe=Ve===void 0?0:Ve,Ue=ft$1(typeof Fe!="number"?Fe:ct$1(Fe,G$1)),qe=_e===K?Ye:K,Et=t.rects.popper,At=t.elements[Ie?qe:_e],Lt=Gt(Q$1(At)?At:At.contextElement||I$2(t.elements.popper),ue,pe),hn=ee$1(t.elements.reference),_n=mt$1({reference:hn,element:Et,strategy:"absolute",placement:ie}),vn=Te$1(Object.assign({},Et,_n)),bn=_e===K?vn:hn,Cn={top:Lt.top-bn.top+Ue.top,bottom:bn.bottom-Lt.bottom+Ue.bottom,left:Lt.left-bn.left+Ue.left,right:bn.right-Lt.right+Ue.right},Sn=t.modifiersData.offset;if(_e===K&&Sn){var wn=Sn[ie];Object.keys(Cn).forEach(function(En){var xn=[W$1,R$1].indexOf(En)>=0?1:-1,Pn=[E$1,R$1].indexOf(En)>=0?"y":"x";Cn[En]+=wn[Pn]*xn})}return Cn}function Jt(t,r){r===void 0&&(r={});var V=r,oe=V.placement,ie=V.boundary,le=V.rootBoundary,ue=V.padding,de=V.flipVariations,pe=V.allowedAutoPlacements,he=pe===void 0?Ee:pe,_e=te(oe),$e=_e?de?De:De.filter(function(Fe){return te(Fe)===_e}):G$1,Ie=$e.filter(function(Fe){return he.indexOf(Fe)>=0});Ie.length===0&&(Ie=$e);var Ve=Ie.reduce(function(Fe,Ue){return Fe[Ue]=ne(t,{placement:Ue,boundary:ie,rootBoundary:le,padding:ue})[q$2(Ue)],Fe},{});return Object.keys(Ve).sort(function(Fe,Ue){return Ve[Fe]-Ve[Ue]})}function Kt(t){if(q$2(t)===me)return[];var r=be(t);return[lt$2(t),r,lt$2(r)]}function Qt(t){var r=t.state,V=t.options,oe=t.name;if(!r.modifiersData[oe]._skip){for(var ie=V.mainAxis,le=ie===void 0?!0:ie,ue=V.altAxis,de=ue===void 0?!0:ue,pe=V.fallbackPlacements,he=V.padding,_e=V.boundary,$e=V.rootBoundary,Ie=V.altBoundary,Ve=V.flipVariations,Fe=Ve===void 0?!0:Ve,Ue=V.allowedAutoPlacements,qe=r.options.placement,Et=q$2(qe),At=Et===qe,Lt=pe||(At||!Fe?[be(qe)]:Kt(qe)),hn=[qe].concat(Lt).reduce(function(tr,yr){return tr.concat(q$2(yr)===me?Jt(r,{placement:yr,boundary:_e,rootBoundary:$e,padding:he,flipVariations:Fe,allowedAutoPlacements:Ue}):yr)},[]),_n=r.rects.reference,vn=r.rects.popper,bn=new Map,Cn=!0,Sn=hn[0],wn=0;wn=0,Nn=kn?"width":"height",Dn=ne(r,{placement:En,boundary:_e,rootBoundary:$e,altBoundary:Ie,padding:he}),Mn=kn?Pn?W$1:P$2:Pn?R$1:E$1;_n[Nn]>vn[Nn]&&(Mn=be(Mn));var Ln=be(Mn),An=[];if(le&&An.push(Dn[xn]<=0),de&&An.push(Dn[Mn]<=0,Dn[Ln]<=0),An.every(function(tr){return tr})){Sn=En,Cn=!1;break}bn.set(En,An)}if(Cn)for(var Vn=Fe?3:1,Wn=function(tr){var yr=hn.find(function(Jn){var Kn=bn.get(Jn);if(Kn)return Kn.slice(0,tr).every(function(Gn){return Gn})});if(yr)return Sn=yr,"break"},Fn=Vn;Fn>0;Fn--){var Yn=Wn(Fn);if(Yn==="break")break}r.placement!==Sn&&(r.modifiersData[oe]._skip=!0,r.placement=Sn,r.reset=!0)}}var vt$1={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt$1(t,r,V){return V===void 0&&(V={x:0,y:0}),{top:t.top-r.height-V.y,right:t.right-r.width+V.x,bottom:t.bottom-r.height+V.y,left:t.left-r.width-V.x}}function yt(t){return[E$1,W$1,R$1,P$2].some(function(r){return t[r]>=0})}function Zt$1(t){var r=t.state,V=t.name,oe=r.rects.reference,ie=r.rects.popper,le=r.modifiersData.preventOverflow,ue=ne(r,{elementContext:"reference"}),de=ne(r,{altBoundary:!0}),pe=gt$1(ue,oe),he=gt$1(de,ie,le),_e=yt(pe),$e=yt(he);r.modifiersData[V]={referenceClippingOffsets:pe,popperEscapeOffsets:he,isReferenceHidden:_e,hasPopperEscaped:$e},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":_e,"data-popper-escaped":$e})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt$1};function en$2(t,r,V){var oe=q$2(t),ie=[P$2,E$1].indexOf(oe)>=0?-1:1,le=typeof V=="function"?V(Object.assign({},r,{placement:t})):V,ue=le[0],de=le[1];return ue=ue||0,de=(de||0)*ie,[P$2,W$1].indexOf(oe)>=0?{x:de,y:ue}:{x:ue,y:de}}function tn$1(t){var r=t.state,V=t.options,oe=t.name,ie=V.offset,le=ie===void 0?[0,0]:ie,ue=Ee.reduce(function(_e,$e){return _e[$e]=en$2($e,r.rects,le),_e},{}),de=ue[r.placement],pe=de.x,he=de.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=pe,r.modifiersData.popperOffsets.y+=he),r.modifiersData[oe]=ue}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn$1};function nn(t){var r=t.state,V=t.name;r.modifiersData[V]=mt$1({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}var He$1={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn$1(t){return t==="x"?"y":"x"}function on(t){var r=t.state,V=t.options,oe=t.name,ie=V.mainAxis,le=ie===void 0?!0:ie,ue=V.altAxis,de=ue===void 0?!1:ue,pe=V.boundary,he=V.rootBoundary,_e=V.altBoundary,$e=V.padding,Ie=V.tether,Ve=Ie===void 0?!0:Ie,Fe=V.tetherOffset,Ue=Fe===void 0?0:Fe,qe=ne(r,{boundary:pe,rootBoundary:he,padding:$e,altBoundary:_e}),Et=q$2(r.placement),At=te(r.placement),Lt=!At,hn=Le$1(Et),_n=rn$1(hn),vn=r.modifiersData.popperOffsets,bn=r.rects.reference,Cn=r.rects.popper,Sn=typeof Ue=="function"?Ue(Object.assign({},r.rects,{placement:r.placement})):Ue,wn=typeof Sn=="number"?{mainAxis:Sn,altAxis:Sn}:Object.assign({mainAxis:0,altAxis:0},Sn),En=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,xn={x:0,y:0};if(vn){if(le){var Pn,kn=hn==="y"?E$1:P$2,Nn=hn==="y"?R$1:W$1,Dn=hn==="y"?"height":"width",Mn=vn[hn],Ln=Mn+qe[kn],An=Mn-qe[Nn],Vn=Ve?-Cn[Dn]/2:0,Wn=At===U$2?bn[Dn]:Cn[Dn],Fn=At===U$2?-Cn[Dn]:-bn[Dn],Yn=r.elements.arrow,tr=Ve&&Yn?ke(Yn):{width:0,height:0},yr=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:st$1(),Jn=yr[kn],Kn=yr[Nn],Gn=fe(0,bn[Dn],tr[Dn]),Qn=Lt?bn[Dn]/2-Vn-Gn-Jn-wn.mainAxis:Wn-Gn-Jn-wn.mainAxis,ur=Lt?-bn[Dn]/2+Vn+Gn+Kn+wn.mainAxis:Fn+Gn+Kn+wn.mainAxis,cr=r.elements.arrow&&se$1(r.elements.arrow),Un=cr?hn==="y"?cr.clientTop||0:cr.clientLeft||0:0,qn=(Pn=En==null?void 0:En[hn])!=null?Pn:0,er=Mn+Qn-qn-Un,pr=Mn+ur-qn,Er=fe(Ve?ve(Ln,er):Ln,Mn,Ve?X$1(An,pr):An);vn[hn]=Er,xn[hn]=Er-Mn}if(de){var dr,xr=hn==="x"?E$1:P$2,wr=hn==="x"?R$1:W$1,Cr=vn[_n],gr=_n==="y"?"height":"width",or=Cr+qe[xr],fr=Cr-qe[wr],kr=[E$1,P$2].indexOf(Et)!==-1,br=(dr=En==null?void 0:En[_n])!=null?dr:0,Ar=kr?or:Cr-bn[gr]-Cn[gr]-br+wn.altAxis,Dr=kr?Cr+bn[gr]+Cn[gr]-br-wn.altAxis:fr,Br=Ve&&kr?St$1(Ar,Cr,Dr):fe(Ve?Ar:or,Cr,Ve?Dr:fr);vn[_n]=Br,xn[_n]=Br-Cr}r.modifiersData[oe]=xn}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function sn(t){return t===H$1(t)||!B$1(t)?We(t):an(t)}function fn(t){var r=t.getBoundingClientRect(),V=Z(r.width)/t.offsetWidth||1,oe=Z(r.height)/t.offsetHeight||1;return V!==1||oe!==1}function cn(t,r,V){V===void 0&&(V=!1);var oe=B$1(r),ie=B$1(r)&&fn(r),le=I$2(r),ue=ee$1(t,ie),de={scrollLeft:0,scrollTop:0},pe={x:0,y:0};return(oe||!oe&&!V)&&((C(r)!=="body"||Se$1(le))&&(de=sn(r)),B$1(r)?(pe=ee$1(r,!0),pe.x+=r.clientLeft,pe.y+=r.clientTop):le&&(pe.x=Be$2(le))),{x:ue.left+de.scrollLeft-pe.x,y:ue.top+de.scrollTop-pe.y,width:ue.width,height:ue.height}}function pn(t){var r=new Map,V=new Set,oe=[];t.forEach(function(le){r.set(le.name,le)});function ie(le){V.add(le.name);var ue=[].concat(le.requires||[],le.requiresIfExists||[]);ue.forEach(function(de){if(!V.has(de)){var pe=r.get(de);pe&&ie(pe)}}),oe.push(le)}return t.forEach(function(le){V.has(le.name)||ie(le)}),oe}function un(t){var r=pn(t);return ot$1.reduce(function(V,oe){return V.concat(r.filter(function(ie){return ie.phase===oe}))},[])}function ln(t){var r;return function(){return r||(r=new Promise(function(V){Promise.resolve().then(function(){r=void 0,V(t())})})),r}}function dn(t){var r=t.reduce(function(V,oe){var ie=V[oe.name];return V[oe.name]=ie?Object.assign({},ie,oe,{options:Object.assign({},ie.options,oe.options),data:Object.assign({},ie.data,oe.data)}):oe,V},{});return Object.keys(r).map(function(V){return r[V]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t$2(){for(var t=arguments.length,r=new Array(t),V=0;V{const oe={name:"updateState",enabled:!0,phase:"write",fn:({state:pe})=>{const he=deriveState(pe);Object.assign(ue.value,he)},requires:["computeStyles"]},ie=computed(()=>{const{onFirstUpdate:pe,placement:he,strategy:_e,modifiers:$e}=unref(V);return{onFirstUpdate:pe,placement:he||"bottom",strategy:_e||"absolute",modifiers:[...$e||[],oe,{name:"applyStyles",enabled:!1}]}}),le=shallowRef(),ue=ref({styles:{popper:{position:unref(ie).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),de=()=>{le.value&&(le.value.destroy(),le.value=void 0)};return watch(ie,pe=>{const he=unref(le);he&&he.setOptions(pe)},{deep:!0}),watch([t,r],([pe,he])=>{de(),!(!pe||!he)&&(le.value=yn(pe,he,unref(ie)))}),onBeforeUnmount(()=>{de()}),{state:computed(()=>{var pe;return{...((pe=unref(le))==null?void 0:pe.state)||{}}}),styles:computed(()=>unref(ue).styles),attributes:computed(()=>unref(ue).attributes),update:()=>{var pe;return(pe=unref(le))==null?void 0:pe.update()},forceUpdate:()=>{var pe;return(pe=unref(le))==null?void 0:pe.forceUpdate()},instanceRef:computed(()=>unref(le))}};function deriveState(t){const r=Object.keys(t.elements),V=fromPairs(r.map(ie=>[ie,t.styles[ie]||{}])),oe=fromPairs(r.map(ie=>[ie,t.attributes[ie]]));return{styles:V,attributes:oe}}const useSameTarget=t=>{if(!t)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let r=!1,V=!1;return{onClick:ue=>{r&&V&&t(ue),r=V=!1},onMousedown:ue=>{r=ue.target===ue.currentTarget},onMouseup:ue=>{V=ue.target===ue.currentTarget}}},useThrottleRender=(t,r=0)=>{if(r===0)return t;const V=ref(!1);let oe=0;const ie=()=>{oe&&clearTimeout(oe),oe=window.setTimeout(()=>{V.value=t.value},r)};return onMounted(ie),watch(()=>t.value,le=>{le?ie():V.value=le}),V};function useTimeout(){let t;const r=(oe,ie)=>{V(),t=window.setTimeout(oe,ie)},V=()=>window.clearTimeout(t);return tryOnScopeDispose$1(()=>V()),{registerTimeout:r,cancelTimeout:V}}const defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=t=>{const r=useIdInjection(),V=useGetDerivedNamespace();return computed(()=>unref(t)||`${V.value}-id-${r.prefix}-${r.current++}`)};let registeredEscapeHandlers=[];const cachedHandler=t=>{const r=t;r.key===EVENT_CODE.esc&®isteredEscapeHandlers.forEach(V=>V(r))},useEscapeKeydown=t=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient$1&®isteredEscapeHandlers.push(t)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(r=>r!==t),registeredEscapeHandlers.length===0&&isClient$1&&document.removeEventListener("keydown",cachedHandler)})};let cachedContainer;const usePopperContainerId=()=>{const t=useGetDerivedNamespace(),r=useIdInjection(),V=computed(()=>`${t.value}-popper-container-${r.prefix}`),oe=computed(()=>`#${V.value}`);return{id:V,selector:oe}},createContainer=t=>{const r=document.createElement("div");return r.id=t,document.body.appendChild(r),r},usePopperContainer=()=>{const{id:t,selector:r}=usePopperContainerId();return onBeforeMount(()=>{isClient$1&&!cachedContainer&&!document.body.querySelector(r.value)&&(cachedContainer=createContainer(t.value))}),{id:t,selector:r}},useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:t,hideAfter:r,autoClose:V,open:oe,close:ie})=>{const{registerTimeout:le}=useTimeout(),{registerTimeout:ue,cancelTimeout:de}=useTimeout();return{onOpen:_e=>{le(()=>{oe(_e);const $e=unref(V);isNumber$4($e)&&$e>0&&ue(()=>{ie(_e)},$e)},unref(t))},onClose:_e=>{de(),le(()=>{ie(_e)},unref(r))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=t=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:V=>{t.value=V}})},useForwardRefDirective=t=>({mounted(r){t(r)},updated(r){t(r)},unmounted(){t(null)}}),zIndex=ref(0),defaultInitialZIndex=2e3,zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=t=>{const r=t||(getCurrentInstance()?inject(zIndexContextKey,void 0):void 0),V=computed(()=>{const le=unref(r);return isNumber$4(le)?le:defaultInitialZIndex}),oe=computed(()=>V.value+zIndex.value);return{initialZIndex:V,currentZIndex:oe,nextZIndex:()=>(zIndex.value++,oe.value)}},min$3=Math.min,max$3=Math.max,round$2=Math.round,createCoords=t=>({x:t,y:t});function clamp$3(t,r,V){return max$3(t,min$3(r,V))}function evaluate(t,r){return typeof t=="function"?t(r):t}function getSide(t){return t.split("-")[0]}function getAlignment(t){return t.split("-")[1]}function getOppositeAxis(t){return t==="x"?"y":"x"}function getAxisLength(t){return t==="y"?"height":"width"}function getSideAxis(t){return["top","bottom"].includes(getSide(t))?"y":"x"}function getAlignmentAxis(t){return getOppositeAxis(getSideAxis(t))}function expandPaddingObject(t){return{top:0,right:0,bottom:0,left:0,...t}}function getPaddingObject(t){return typeof t!="number"?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function computeCoordsFromPlacement(t,r,V){let{reference:oe,floating:ie}=t;const le=getSideAxis(r),ue=getAlignmentAxis(r),de=getAxisLength(ue),pe=getSide(r),he=le==="y",_e=oe.x+oe.width/2-ie.width/2,$e=oe.y+oe.height/2-ie.height/2,Ie=oe[de]/2-ie[de]/2;let Ve;switch(pe){case"top":Ve={x:_e,y:oe.y-ie.height};break;case"bottom":Ve={x:_e,y:oe.y+oe.height};break;case"right":Ve={x:oe.x+oe.width,y:$e};break;case"left":Ve={x:oe.x-ie.width,y:$e};break;default:Ve={x:oe.x,y:oe.y}}switch(getAlignment(r)){case"start":Ve[ue]-=Ie*(V&&he?-1:1);break;case"end":Ve[ue]+=Ie*(V&&he?-1:1);break}return Ve}const computePosition$1=async(t,r,V)=>{const{placement:oe="bottom",strategy:ie="absolute",middleware:le=[],platform:ue}=V,de=le.filter(Boolean),pe=await(ue.isRTL==null?void 0:ue.isRTL(r));let he=await ue.getElementRects({reference:t,floating:r,strategy:ie}),{x:_e,y:$e}=computeCoordsFromPlacement(he,oe,pe),Ie=oe,Ve={},Fe=0;for(let Ue=0;Ue({name:"arrow",options:t,async fn(r){const{x:V,y:oe,placement:ie,rects:le,platform:ue,elements:de}=r,{element:pe,padding:he=0}=evaluate(t,r)||{};if(pe==null)return{};const _e=getPaddingObject(he),$e={x:V,y:oe},Ie=getAlignmentAxis(ie),Ve=getAxisLength(Ie),Fe=await ue.getDimensions(pe),Ue=Ie==="y",qe=Ue?"top":"left",Et=Ue?"bottom":"right",At=Ue?"clientHeight":"clientWidth",Lt=le.reference[Ve]+le.reference[Ie]-$e[Ie]-le.floating[Ve],hn=$e[Ie]-le.reference[Ie],_n=await(ue.getOffsetParent==null?void 0:ue.getOffsetParent(pe));let vn=_n?_n[At]:0;(!vn||!await(ue.isElement==null?void 0:ue.isElement(_n)))&&(vn=de.floating[At]||le.floating[Ve]);const bn=Lt/2-hn/2,Cn=vn/2-Fe[Ve]/2-1,Sn=min$3(_e[qe],Cn),wn=min$3(_e[Et],Cn),En=Sn,xn=vn-Fe[Ve]-wn,Pn=vn/2-Fe[Ve]/2+bn,kn=clamp$3(En,Pn,xn),Dn=getAlignment(ie)!=null&&Pn!=kn&&le.reference[Ve]/2-(Pn"u"?!1:t instanceof ShadowRoot||t instanceof getWindow(t).ShadowRoot}function isOverflowElement(t){const{overflow:r,overflowX:V,overflowY:oe,display:ie}=getComputedStyle$2(t);return/auto|scroll|overlay|hidden|clip/.test(r+oe+V)&&!["inline","contents"].includes(ie)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){const r=isWebKit(),V=getComputedStyle$2(t);return V.transform!=="none"||V.perspective!=="none"||(V.containerType?V.containerType!=="normal":!1)||!r&&(V.backdropFilter?V.backdropFilter!=="none":!1)||!r&&(V.filter?V.filter!=="none":!1)||["transform","perspective","filter"].some(oe=>(V.willChange||"").includes(oe))||["paint","layout","strict","content"].some(oe=>(V.contain||"").includes(oe))}function getContainingBlock(t){let r=getParentNode(t);for(;isHTMLElement(r)&&!isLastTraversableNode(r);){if(isContainingBlock(r))return r;r=getParentNode(r)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}function getComputedStyle$2(t){return getWindow(t).getComputedStyle(t)}function getNodeScroll(t){return isElement$1(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getParentNode(t){if(getNodeName(t)==="html")return t;const r=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(r)?r.host:r}function getNearestOverflowAncestor(t){const r=getParentNode(t);return isLastTraversableNode(r)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(r)&&isOverflowElement(r)?r:getNearestOverflowAncestor(r)}function getOverflowAncestors(t,r){var V;r===void 0&&(r=[]);const oe=getNearestOverflowAncestor(t),ie=oe===((V=t.ownerDocument)==null?void 0:V.body),le=getWindow(oe);return ie?r.concat(le,le.visualViewport||[],isOverflowElement(oe)?oe:[]):r.concat(oe,getOverflowAncestors(oe))}function getCssDimensions(t){const r=getComputedStyle$2(t);let V=parseFloat(r.width)||0,oe=parseFloat(r.height)||0;const ie=isHTMLElement(t),le=ie?t.offsetWidth:V,ue=ie?t.offsetHeight:oe,de=round$2(V)!==le||round$2(oe)!==ue;return de&&(V=le,oe=ue),{width:V,height:oe,$:de}}function unwrapElement(t){return isElement$1(t)?t:t.contextElement}function getScale(t){const r=unwrapElement(t);if(!isHTMLElement(r))return createCoords(1);const V=r.getBoundingClientRect(),{width:oe,height:ie,$:le}=getCssDimensions(r);let ue=(le?round$2(V.width):V.width)/oe,de=(le?round$2(V.height):V.height)/ie;return(!ue||!Number.isFinite(ue))&&(ue=1),(!de||!Number.isFinite(de))&&(de=1),{x:ue,y:de}}const noOffsets=createCoords(0);function getVisualOffsets(t){const r=getWindow(t);return!isWebKit()||!r.visualViewport?noOffsets:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function shouldAddVisualOffsets(t,r,V){return r===void 0&&(r=!1),!V||r&&V!==getWindow(t)?!1:r}function getBoundingClientRect(t,r,V,oe){r===void 0&&(r=!1),V===void 0&&(V=!1);const ie=t.getBoundingClientRect(),le=unwrapElement(t);let ue=createCoords(1);r&&(oe?isElement$1(oe)&&(ue=getScale(oe)):ue=getScale(t));const de=shouldAddVisualOffsets(le,V,oe)?getVisualOffsets(le):createCoords(0);let pe=(ie.left+de.x)/ue.x,he=(ie.top+de.y)/ue.y,_e=ie.width/ue.x,$e=ie.height/ue.y;if(le){const Ie=getWindow(le),Ve=oe&&isElement$1(oe)?getWindow(oe):oe;let Fe=Ie.frameElement;for(;Fe&&oe&&Ve!==Ie;){const Ue=getScale(Fe),qe=Fe.getBoundingClientRect(),Et=getComputedStyle$2(Fe),At=qe.left+(Fe.clientLeft+parseFloat(Et.paddingLeft))*Ue.x,Lt=qe.top+(Fe.clientTop+parseFloat(Et.paddingTop))*Ue.y;pe*=Ue.x,he*=Ue.y,_e*=Ue.x,$e*=Ue.y,pe+=At,he+=Lt,Fe=getWindow(Fe).frameElement}}return rectToClientRect({width:_e,height:$e,x:pe,y:he})}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{rect:r,offsetParent:V,strategy:oe}=t;const ie=isHTMLElement(V),le=getDocumentElement(V);if(V===le)return r;let ue={scrollLeft:0,scrollTop:0},de=createCoords(1);const pe=createCoords(0);if((ie||!ie&&oe!=="fixed")&&((getNodeName(V)!=="body"||isOverflowElement(le))&&(ue=getNodeScroll(V)),isHTMLElement(V))){const he=getBoundingClientRect(V);de=getScale(V),pe.x=he.x+V.clientLeft,pe.y=he.y+V.clientTop}return{width:r.width*de.x,height:r.height*de.y,x:r.x*de.x-ue.scrollLeft*de.x+pe.x,y:r.y*de.y-ue.scrollTop*de.y+pe.y}}function getClientRects(t){return Array.from(t.getClientRects())}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getDocumentRect(t){const r=getDocumentElement(t),V=getNodeScroll(t),oe=t.ownerDocument.body,ie=max$3(r.scrollWidth,r.clientWidth,oe.scrollWidth,oe.clientWidth),le=max$3(r.scrollHeight,r.clientHeight,oe.scrollHeight,oe.clientHeight);let ue=-V.scrollLeft+getWindowScrollBarX(t);const de=-V.scrollTop;return getComputedStyle$2(oe).direction==="rtl"&&(ue+=max$3(r.clientWidth,oe.clientWidth)-ie),{width:ie,height:le,x:ue,y:de}}function getViewportRect(t,r){const V=getWindow(t),oe=getDocumentElement(t),ie=V.visualViewport;let le=oe.clientWidth,ue=oe.clientHeight,de=0,pe=0;if(ie){le=ie.width,ue=ie.height;const he=isWebKit();(!he||he&&r==="fixed")&&(de=ie.offsetLeft,pe=ie.offsetTop)}return{width:le,height:ue,x:de,y:pe}}function getInnerBoundingClientRect(t,r){const V=getBoundingClientRect(t,!0,r==="fixed"),oe=V.top+t.clientTop,ie=V.left+t.clientLeft,le=isHTMLElement(t)?getScale(t):createCoords(1),ue=t.clientWidth*le.x,de=t.clientHeight*le.y,pe=ie*le.x,he=oe*le.y;return{width:ue,height:de,x:pe,y:he}}function getClientRectFromClippingAncestor(t,r,V){let oe;if(r==="viewport")oe=getViewportRect(t,V);else if(r==="document")oe=getDocumentRect(getDocumentElement(t));else if(isElement$1(r))oe=getInnerBoundingClientRect(r,V);else{const ie=getVisualOffsets(t);oe={...r,x:r.x-ie.x,y:r.y-ie.y}}return rectToClientRect(oe)}function hasFixedPositionAncestor(t,r){const V=getParentNode(t);return V===r||!isElement$1(V)||isLastTraversableNode(V)?!1:getComputedStyle$2(V).position==="fixed"||hasFixedPositionAncestor(V,r)}function getClippingElementAncestors(t,r){const V=r.get(t);if(V)return V;let oe=getOverflowAncestors(t).filter(de=>isElement$1(de)&&getNodeName(de)!=="body"),ie=null;const le=getComputedStyle$2(t).position==="fixed";let ue=le?getParentNode(t):t;for(;isElement$1(ue)&&!isLastTraversableNode(ue);){const de=getComputedStyle$2(ue),pe=isContainingBlock(ue);!pe&&de.position==="fixed"&&(ie=null),(le?!pe&&!ie:!pe&&de.position==="static"&&!!ie&&["absolute","fixed"].includes(ie.position)||isOverflowElement(ue)&&!pe&&hasFixedPositionAncestor(t,ue))?oe=oe.filter(_e=>_e!==ue):ie=de,ue=getParentNode(ue)}return r.set(t,oe),oe}function getClippingRect(t){let{element:r,boundary:V,rootBoundary:oe,strategy:ie}=t;const ue=[...V==="clippingAncestors"?getClippingElementAncestors(r,this._c):[].concat(V),oe],de=ue[0],pe=ue.reduce((he,_e)=>{const $e=getClientRectFromClippingAncestor(r,_e,ie);return he.top=max$3($e.top,he.top),he.right=min$3($e.right,he.right),he.bottom=min$3($e.bottom,he.bottom),he.left=max$3($e.left,he.left),he},getClientRectFromClippingAncestor(r,de,ie));return{width:pe.right-pe.left,height:pe.bottom-pe.top,x:pe.left,y:pe.top}}function getDimensions(t){return getCssDimensions(t)}function getRectRelativeToOffsetParent(t,r,V){const oe=isHTMLElement(r),ie=getDocumentElement(r),le=V==="fixed",ue=getBoundingClientRect(t,!0,le,r);let de={scrollLeft:0,scrollTop:0};const pe=createCoords(0);if(oe||!oe&&!le)if((getNodeName(r)!=="body"||isOverflowElement(ie))&&(de=getNodeScroll(r)),oe){const he=getBoundingClientRect(r,!0,le,r);pe.x=he.x+r.clientLeft,pe.y=he.y+r.clientTop}else ie&&(pe.x=getWindowScrollBarX(ie));return{x:ue.left+de.scrollLeft-pe.x,y:ue.top+de.scrollTop-pe.y,width:ue.width,height:ue.height}}function getTrueOffsetParent(t,r){return!isHTMLElement(t)||getComputedStyle$2(t).position==="fixed"?null:r?r(t):t.offsetParent}function getOffsetParent(t,r){const V=getWindow(t);if(!isHTMLElement(t))return V;let oe=getTrueOffsetParent(t,r);for(;oe&&isTableElement(oe)&&getComputedStyle$2(oe).position==="static";)oe=getTrueOffsetParent(oe,r);return oe&&(getNodeName(oe)==="html"||getNodeName(oe)==="body"&&getComputedStyle$2(oe).position==="static"&&!isContainingBlock(oe))?V:oe||getContainingBlock(t)||V}const getElementRects=async function(t){let{reference:r,floating:V,strategy:oe}=t;const ie=this.getOffsetParent||getOffsetParent,le=this.getDimensions;return{reference:getRectRelativeToOffsetParent(r,await ie(V),oe),floating:{x:0,y:0,...await le(V)}}};function isRTL$1(t){return getComputedStyle$2(t).direction==="rtl"}const platform$2={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$1,isRTL:isRTL$1},computePosition=(t,r,V)=>{const oe=new Map,ie={platform:platform$2,...V},le={...ie.platform,_c:oe};return computePosition$1(t,r,{...ie,platform:le})};buildProps({});const unrefReference=t=>{if(!isClient$1)return;if(!t)return t;const r=unrefElement$1(t);return r||(isRef(t)?r:t)},useFloating=({middleware:t,placement:r,strategy:V})=>{const oe=ref(),ie=ref(),le=ref(),ue=ref(),de=ref({}),pe={x:le,y:ue,placement:r,strategy:V,middlewareData:de},he=async()=>{if(!isClient$1)return;const _e=unrefReference(oe),$e=unrefElement$1(ie);if(!_e||!$e)return;const Ie=await computePosition(_e,$e,{placement:unref(r),strategy:unref(V),middleware:unref(t)});keysOf(pe).forEach(Ve=>{pe[Ve].value=Ie[Ve]})};return onMounted(()=>{watchEffect(()=>{he()})}),{...pe,update:he,referenceRef:oe,contentRef:ie}},arrowMiddleware=({arrowRef:t,padding:r})=>({name:"arrow",options:{element:t,padding:r},fn(V){const oe=unref(t);return oe?arrow({element:oe,padding:r}).fn(V):{}}});function useCursor(t){const r=ref();function V(){if(t.value==null)return;const{selectionStart:ie,selectionEnd:le,value:ue}=t.value;if(ie==null||le==null)return;const de=ue.slice(0,Math.max(0,ie)),pe=ue.slice(Math.max(0,le));r.value={selectionStart:ie,selectionEnd:le,value:ue,beforeTxt:de,afterTxt:pe}}function oe(){if(t.value==null||r.value==null)return;const{value:ie}=t.value,{beforeTxt:le,afterTxt:ue,selectionStart:de}=r.value;if(le==null||ue==null||de==null)return;let pe=ie.length;if(ie.endsWith(ue))pe=ie.length-ue.length;else if(ie.startsWith(le))pe=le.length;else{const he=le[de-1],_e=ie.indexOf(he,de-1);_e!==-1&&(pe=_e+1)}t.value.setSelectionRange(pe,pe)}return[V,oe]}const getOrderedChildren=(t,r,V)=>flattedChildren(t.subTree).filter(le=>{var ue;return isVNode$1(le)&&((ue=le.type)==null?void 0:ue.name)===r&&!!le.component}).map(le=>le.component.uid).map(le=>V[le]).filter(le=>!!le),useOrderedChildren=(t,r)=>{const V={},oe=shallowRef([]);return{children:oe,addChild:ue=>{V[ue.uid]=ue,oe.value=getOrderedChildren(t,r,V)},removeChild:ue=>{delete V[ue],oe.value=oe.value.filter(de=>de.uid!==ue)}}},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const t=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref(t.size)||"")};function useFocusController(t,{afterFocus:r,afterBlur:V}={}){const oe=getCurrentInstance(),{emit:ie}=oe,le=shallowRef(),ue=ref(!1),de=_e=>{ue.value||(ue.value=!0,ie("focus",_e),r==null||r())},pe=_e=>{var $e;_e.relatedTarget&&(($e=le.value)!=null&&$e.contains(_e.relatedTarget))||(ue.value=!1,ie("blur",_e),V==null||V())},he=()=>{var _e;(_e=t.value)==null||_e.focus()};return watch(le,_e=>{_e&&_e.setAttribute("tabindex","-1")}),useEventListener$1(le,"click",he),{wrapperRef:le,isFocused:ue,handleFocus:de,handleBlur:pe}}const configProviderContextKey=Symbol(),globalConfig=ref();function useGlobalConfig(t,r=void 0){const V=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return t?computed(()=>{var oe,ie;return(ie=(oe=V.value)==null?void 0:oe[t])!=null?ie:r}):V}function useGlobalComponentSettings(t,r){const V=useGlobalConfig(),oe=useNamespace(t,computed(()=>{var de;return((de=V.value)==null?void 0:de.namespace)||defaultNamespace})),ie=useLocale(computed(()=>{var de;return(de=V.value)==null?void 0:de.locale})),le=useZIndex(computed(()=>{var de;return((de=V.value)==null?void 0:de.zIndex)||defaultInitialZIndex})),ue=computed(()=>{var de;return unref(r)||((de=V.value)==null?void 0:de.size)||""});return provideGlobalConfig(computed(()=>unref(V)||{})),{ns:oe,locale:ie,zIndex:le,size:ue}}const provideGlobalConfig=(t,r,V=!1)=>{var oe;const ie=!!getCurrentInstance(),le=ie?useGlobalConfig():void 0,ue=(oe=r==null?void 0:r.provide)!=null?oe:ie?provide:void 0;if(!ue)return;const de=computed(()=>{const pe=unref(t);return le!=null&&le.value?mergeConfig$1(le.value,pe):pe});return ue(configProviderContextKey,de),ue(localeContextKey,computed(()=>de.value.locale)),ue(namespaceContextKey,computed(()=>de.value.namespace)),ue(zIndexContextKey,computed(()=>de.value.zIndex)),ue(SIZE_INJECTION_KEY,{size:computed(()=>de.value.size||"")}),(V||!globalConfig.value)&&(globalConfig.value=de.value),de},mergeConfig$1=(t,r)=>{var V;const oe=[...new Set([...keysOf(t),...keysOf(r)])],ie={};for(const le of oe)ie[le]=(V=r[le])!=null?V:t[le];return ie},configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),messageConfig={},ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup(t,{slots:r}){watch(()=>t.message,oe=>{Object.assign(messageConfig,oe??{})},{immediate:!0,deep:!0});const V=provideGlobalConfig(t);return()=>renderSlot(r,"default",{config:V==null?void 0:V.value})}}),ElConfigProvider=withInstall(ConfigProvider),version$2="2.3.12",makeInstaller=(t=[])=>({version:version$2,install:(V,oe)=>{V[INSTALLED_KEY]||(V[INSTALLED_KEY]=!0,t.forEach(ie=>V.use(ie)),oe&&provideGlobalConfig(oe,V,!0))}}),affixProps=buildProps({zIndex:{type:definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),affixEmits={scroll:({scrollTop:t,fixed:r})=>isNumber$4(t)&&isBoolean$3(r),[CHANGE_EVENT]:t=>isBoolean$3(t)};var _export_sfc$1=(t,r)=>{const V=t.__vccOpts||t;for(const[oe,ie]of r)V[oe]=ie;return V};const COMPONENT_NAME$n="ElAffix",__default__$1C=defineComponent({name:COMPONENT_NAME$n}),_sfc_main$2k=defineComponent({...__default__$1C,props:affixProps,emits:affixEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useNamespace("affix"),le=shallowRef(),ue=shallowRef(),de=shallowRef(),{height:pe}=useWindowSize$1(),{height:he,width:_e,top:$e,bottom:Ie,update:Ve}=useElementBounding(ue,{windowScroll:!1}),Fe=useElementBounding(le),Ue=ref(!1),qe=ref(0),Et=ref(0),At=computed(()=>({height:Ue.value?`${he.value}px`:"",width:Ue.value?`${_e.value}px`:""})),Lt=computed(()=>{if(!Ue.value)return{};const vn=oe.offset?addUnit(oe.offset):0;return{height:`${he.value}px`,width:`${_e.value}px`,top:oe.position==="top"?vn:"",bottom:oe.position==="bottom"?vn:"",transform:Et.value?`translateY(${Et.value}px)`:"",zIndex:oe.zIndex}}),hn=()=>{if(de.value)if(qe.value=de.value instanceof Window?document.documentElement.scrollTop:de.value.scrollTop||0,oe.position==="top")if(oe.target){const vn=Fe.bottom.value-oe.offset-he.value;Ue.value=oe.offset>$e.value&&Fe.bottom.value>0,Et.value=vn<0?vn:0}else Ue.value=oe.offset>$e.value;else if(oe.target){const vn=pe.value-Fe.top.value-oe.offset-he.value;Ue.value=pe.value-oe.offsetFe.top.value,Et.value=vn<0?-vn:0}else Ue.value=pe.value-oe.offset{Ve(),V("scroll",{scrollTop:qe.value,fixed:Ue.value})};return watch(Ue,vn=>V("change",vn)),onMounted(()=>{var vn;oe.target?(le.value=(vn=document.querySelector(oe.target))!=null?vn:void 0,le.value||throwError$1(COMPONENT_NAME$n,`Target is not existed: ${oe.target}`)):le.value=document.documentElement,de.value=getScrollContainer(ue.value,!0),Ve()}),useEventListener$1(de,"scroll",_n),watchEffect(hn),r({update:hn,updateRoot:Ve}),(vn,bn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:ue,class:normalizeClass(unref(ie).b()),style:normalizeStyle$1(unref(At))},[createBaseVNode("div",{class:normalizeClass({[unref(ie).m("fixed")]:Ue.value}),style:normalizeStyle$1(unref(Lt))},[renderSlot(vn.$slots,"default")],6)],6))}});var Affix=_export_sfc$1(_sfc_main$2k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const ElAffix=withInstall(Affix),iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}}),__default__$1B=defineComponent({name:"ElIcon",inheritAttrs:!1}),_sfc_main$2j=defineComponent({...__default__$1B,props:iconProps,setup(t){const r=t,V=useNamespace("icon"),oe=computed(()=>{const{size:ie,color:le}=r;return!ie&&!le?{}:{fontSize:isUndefined$1(ie)?void 0:addUnit(ie),"--color":le}});return(ie,le)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(V).b(),style:unref(oe)},ie.$attrs),[renderSlot(ie.$slots,"default")],16))}});var Icon$2=_export_sfc$1(_sfc_main$2j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ElIcon=withInstall(Icon$2),alertEffects=["light","dark"],alertProps=buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:keysOf(TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:alertEffects,default:"light"}}),alertEmits={close:t=>t instanceof MouseEvent},__default__$1A=defineComponent({name:"ElAlert"}),_sfc_main$2i=defineComponent({...__default__$1A,props:alertProps,emits:alertEmits,setup(t,{emit:r}){const V=t,{Close:oe}=TypeComponents,ie=useSlots(),le=useNamespace("alert"),ue=ref(!0),de=computed(()=>TypeComponentsMap[V.type]),pe=computed(()=>[le.e("icon"),{[le.is("big")]:!!V.description||!!ie.default}]),he=computed(()=>({[le.is("bold")]:V.description||ie.default})),_e=$e=>{ue.value=!1,r("close",$e)};return($e,Ie)=>(openBlock(),createBlock(Transition,{name:unref(le).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(le).b(),unref(le).m($e.type),unref(le).is("center",$e.center),unref(le).is($e.effect)]),role:"alert"},[$e.showIcon&&unref(de)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(pe))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(de))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("content"))},[$e.title||$e.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(le).e("title"),unref(he)])},[renderSlot($e.$slots,"title",{},()=>[createTextVNode(toDisplayString$1($e.title),1)])],2)):createCommentVNode("v-if",!0),$e.$slots.default||$e.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(le).e("description"))},[renderSlot($e.$slots,"default",{},()=>[createTextVNode(toDisplayString$1($e.description),1)])],2)):createCommentVNode("v-if",!0),$e.closable?(openBlock(),createElementBlock(Fragment,{key:2},[$e.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(le).e("close-btn"),unref(le).is("customed")]),onClick:_e},toDisplayString$1($e.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(le).e("close-btn")),onClick:_e},{default:withCtx(()=>[createVNode(unref(oe))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,ue.value]])]),_:3},8,["name"]))}});var Alert=_export_sfc$1(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const ElAlert=withInstall(Alert),formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),useFormSize=(t,r={})=>{const V=ref(void 0),oe=r.prop?V:useProp("size"),ie=r.global?V:useGlobalSize(),le=r.form?{size:void 0}:inject(formContextKey,void 0),ue=r.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>oe.value||unref(t)||(ue==null?void 0:ue.size)||(le==null?void 0:le.size)||ie.value||"")},useFormDisabled=t=>{const r=useProp("disabled"),V=inject(formContextKey,void 0);return computed(()=>r.value||unref(t)||(V==null?void 0:V.disabled)||!1)},useFormItem=()=>{const t=inject(formContextKey,void 0),r=inject(formItemContextKey,void 0);return{form:t,formItem:r}},useFormItemInputId=(t,{formItemContext:r,disableIdGeneration:V,disableIdManagement:oe})=>{V||(V=ref(!1)),oe||(oe=ref(!1));const ie=ref();let le;const ue=computed(()=>{var de;return!!(!t.label&&r&&r.inputIds&&((de=r.inputIds)==null?void 0:de.length)<=1)});return onMounted(()=>{le=watch([toRef(t,"id"),V],([de,pe])=>{const he=de??(pe?void 0:useId().value);he!==ie.value&&(r!=null&&r.removeInputId&&(ie.value&&r.removeInputId(ie.value),!(oe!=null&&oe.value)&&!pe&&he&&r.addInputId(he)),ie.value=he)},{immediate:!0})}),onUnmounted(()=>{le&&le(),r!=null&&r.removeInputId&&ie.value&&r.removeInputId(ie.value)}),{isLabeledByFormItem:ue,inputId:ie}},formMetaProps=buildProps({size:{type:String,values:componentSizes},disabled:Boolean}),formProps=buildProps({...formMetaProps,model:Object,rules:{type:definePropType(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),formEmits={validate:(t,r,V)=>(isArray$c(t)||isString$6(t))&&isBoolean$3(r)&&isString$6(V)};function useFormLabelWidth(){const t=ref([]),r=computed(()=>{if(!t.value.length)return"0";const le=Math.max(...t.value);return le?`${le}px`:""});function V(le){const ue=t.value.indexOf(le);return ue===-1&&r.value,ue}function oe(le,ue){if(le&&ue){const de=V(ue);t.value.splice(de,1,le)}else le&&t.value.push(le)}function ie(le){const ue=V(le);ue>-1&&t.value.splice(ue,1)}return{autoLabelWidth:r,registerLabelWidth:oe,deregisterLabelWidth:ie}}const filterFields=(t,r)=>{const V=castArray$1(r);return V.length>0?t.filter(oe=>oe.prop&&V.includes(oe.prop)):t},COMPONENT_NAME$m="ElForm",__default__$1z=defineComponent({name:COMPONENT_NAME$m}),_sfc_main$2h=defineComponent({...__default__$1z,props:formProps,emits:formEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=[],le=useFormSize(),ue=useNamespace("form"),de=computed(()=>{const{labelPosition:At,inline:Lt}=oe;return[ue.b(),ue.m(le.value||"default"),{[ue.m(`label-${At}`)]:At,[ue.m("inline")]:Lt}]}),pe=At=>{ie.push(At)},he=At=>{At.prop&&ie.splice(ie.indexOf(At),1)},_e=(At=[])=>{oe.model&&filterFields(ie,At).forEach(Lt=>Lt.resetField())},$e=(At=[])=>{filterFields(ie,At).forEach(Lt=>Lt.clearValidate())},Ie=computed(()=>!!oe.model),Ve=At=>{if(ie.length===0)return[];const Lt=filterFields(ie,At);return Lt.length?Lt:[]},Fe=async At=>qe(void 0,At),Ue=async(At=[])=>{if(!Ie.value)return!1;const Lt=Ve(At);if(Lt.length===0)return!0;let hn={};for(const _n of Lt)try{await _n.validate("")}catch(vn){hn={...hn,...vn}}return Object.keys(hn).length===0?!0:Promise.reject(hn)},qe=async(At=[],Lt)=>{const hn=!isFunction$5(Lt);try{const _n=await Ue(At);return _n===!0&&(Lt==null||Lt(_n)),_n}catch(_n){if(_n instanceof Error)throw _n;const vn=_n;return oe.scrollToError&&Et(Object.keys(vn)[0]),Lt==null||Lt(!1,vn),hn&&Promise.reject(vn)}},Et=At=>{var Lt;const hn=filterFields(ie,At)[0];hn&&((Lt=hn.$el)==null||Lt.scrollIntoView(oe.scrollIntoViewOptions))};return watch(()=>oe.rules,()=>{oe.validateOnRuleChange&&Fe().catch(At=>void 0)},{deep:!0}),provide(formContextKey,reactive({...toRefs(oe),emit:V,resetFields:_e,clearValidate:$e,validateField:qe,addField:pe,removeField:he,...useFormLabelWidth()})),r({validate:Fe,validateField:qe,resetFields:_e,clearValidate:$e,scrollToField:Et}),(At,Lt)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(de))},[renderSlot(At.$slots,"default")],2))}});var Form=_export_sfc$1(_sfc_main$2h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(t,r,V){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(ie,le,ue){var de=[null];de.push.apply(de,le);var pe=Function.bind.apply(ie,de),he=new pe;return ue&&_setPrototypeOf(he,ue.prototype),he},_construct.apply(null,arguments)}function _isNativeFunction(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _wrapNativeSuper(t){var r=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(oe){if(oe===null||!_isNativeFunction(oe))return oe;if(typeof oe!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(oe))return r.get(oe);r.set(oe,ie)}function ie(){return _construct(oe,arguments,_getPrototypeOf(this).constructor)}return ie.prototype=Object.create(oe.prototype,{constructor:{value:ie,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(ie,oe)},_wrapNativeSuper(t)}var formatRegExp=/%[sdj%]/g,warning$1=function(){};typeof process<"u"&&process.env;function convertFieldsError(t){if(!t||!t.length)return null;var r={};return t.forEach(function(V){var oe=V.field;r[oe]=r[oe]||[],r[oe].push(V)}),r}function format$2(t){for(var r=arguments.length,V=new Array(r>1?r-1:0),oe=1;oe=le)return de;switch(de){case"%s":return String(V[ie++]);case"%d":return Number(V[ie++]);case"%j":try{return JSON.stringify(V[ie++])}catch{return"[Circular]"}break;default:return de}});return ue}return t}function isNativeStringType(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function isEmptyValue(t,r){return!!(t==null||r==="array"&&Array.isArray(t)&&!t.length||isNativeStringType(r)&&typeof t=="string"&&!t)}function asyncParallelArray(t,r,V){var oe=[],ie=0,le=t.length;function ue(de){oe.push.apply(oe,de||[]),ie++,ie===le&&V(oe)}t.forEach(function(de){r(de,ue)})}function asyncSerialArray(t,r,V){var oe=0,ie=t.length;function le(ue){if(ue&&ue.length){V(ue);return}var de=oe;oe=oe+1,de()\[\]\\.,;:\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},types$1={integer:function(r){return types$1.number(r)&&parseInt(r,10)===r},float:function(r){return types$1.number(r)&&!types$1.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return typeof r=="object"&&!types$1.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(pattern$2.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(getUrlRegex())},hex:function(r){return typeof r=="string"&&!!r.match(pattern$2.hex)}},type$1=function(r,V,oe,ie,le){if(r.required&&V===void 0){required$1(r,V,oe,ie,le);return}var ue=["integer","float","array","regexp","object","method","email","number","date","url","hex"],de=r.type;ue.indexOf(de)>-1?types$1[de](V)||ie.push(format$2(le.messages.types[de],r.fullField,r.type)):de&&typeof V!==r.type&&ie.push(format$2(le.messages.types[de],r.fullField,r.type))},range=function(r,V,oe,ie,le){var ue=typeof r.len=="number",de=typeof r.min=="number",pe=typeof r.max=="number",he=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_e=V,$e=null,Ie=typeof V=="number",Ve=typeof V=="string",Fe=Array.isArray(V);if(Ie?$e="number":Ve?$e="string":Fe&&($e="array"),!$e)return!1;Fe&&(_e=V.length),Ve&&(_e=V.replace(he,"_").length),ue?_e!==r.len&&ie.push(format$2(le.messages[$e].len,r.fullField,r.len)):de&&!pe&&_er.max?ie.push(format$2(le.messages[$e].max,r.fullField,r.max)):de&&pe&&(_er.max)&&ie.push(format$2(le.messages[$e].range,r.fullField,r.min,r.max))},ENUM$1="enum",enumerable$1=function(r,V,oe,ie,le){r[ENUM$1]=Array.isArray(r[ENUM$1])?r[ENUM$1]:[],r[ENUM$1].indexOf(V)===-1&&ie.push(format$2(le.messages[ENUM$1],r.fullField,r[ENUM$1].join(", ")))},pattern$1=function(r,V,oe,ie,le){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(V)||ie.push(format$2(le.messages.pattern.mismatch,r.fullField,V,r.pattern));else if(typeof r.pattern=="string"){var ue=new RegExp(r.pattern);ue.test(V)||ie.push(format$2(le.messages.pattern.mismatch,r.fullField,V,r.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V,"string")&&!r.required)return oe();rules.required(r,V,ie,ue,le,"string"),isEmptyValue(V,"string")||(rules.type(r,V,ie,ue,le),rules.range(r,V,ie,ue,le),rules.pattern(r,V,ie,ue,le),r.whitespace===!0&&rules.whitespace(r,V,ie,ue,le))}oe(ue)},method=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le),V!==void 0&&rules.type(r,V,ie,ue,le)}oe(ue)},number$3=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(V===""&&(V=void 0),isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le),V!==void 0&&(rules.type(r,V,ie,ue,le),rules.range(r,V,ie,ue,le))}oe(ue)},_boolean=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le),V!==void 0&&rules.type(r,V,ie,ue,le)}oe(ue)},regexp$1=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le),isEmptyValue(V)||rules.type(r,V,ie,ue,le)}oe(ue)},integer=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le),V!==void 0&&(rules.type(r,V,ie,ue,le),rules.range(r,V,ie,ue,le))}oe(ue)},floatFn=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le),V!==void 0&&(rules.type(r,V,ie,ue,le),rules.range(r,V,ie,ue,le))}oe(ue)},array=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(V==null&&!r.required)return oe();rules.required(r,V,ie,ue,le,"array"),V!=null&&(rules.type(r,V,ie,ue,le),rules.range(r,V,ie,ue,le))}oe(ue)},object=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le),V!==void 0&&rules.type(r,V,ie,ue,le)}oe(ue)},ENUM="enum",enumerable=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le),V!==void 0&&rules[ENUM](r,V,ie,ue,le)}oe(ue)},pattern=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V,"string")&&!r.required)return oe();rules.required(r,V,ie,ue,le),isEmptyValue(V,"string")||rules.pattern(r,V,ie,ue,le)}oe(ue)},date$1=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V,"date")&&!r.required)return oe();if(rules.required(r,V,ie,ue,le),!isEmptyValue(V,"date")){var pe;V instanceof Date?pe=V:pe=new Date(V),rules.type(r,pe,ie,ue,le),pe&&rules.range(r,pe.getTime(),ie,ue,le)}}oe(ue)},required=function(r,V,oe,ie,le){var ue=[],de=Array.isArray(V)?"array":typeof V;rules.required(r,V,ie,ue,le,de),oe(ue)},type=function(r,V,oe,ie,le){var ue=r.type,de=[],pe=r.required||!r.required&&ie.hasOwnProperty(r.field);if(pe){if(isEmptyValue(V,ue)&&!r.required)return oe();rules.required(r,V,ie,de,le,ue),isEmptyValue(V,ue)||rules.type(r,V,ie,de,le)}oe(de)},any=function(r,V,oe,ie,le){var ue=[],de=r.required||!r.required&&ie.hasOwnProperty(r.field);if(de){if(isEmptyValue(V)&&!r.required)return oe();rules.required(r,V,ie,ue,le)}oe(ue)},validators$2={string,method,number:number$3,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object,enum:enumerable,pattern,date:date$1,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var messages=newMessages(),Schema=function(){function t(V){this.rules=null,this._messages=messages,this.define(V)}var r=t.prototype;return r.define=function(oe){var ie=this;if(!oe)throw new Error("Cannot configure a schema with no rules");if(typeof oe!="object"||Array.isArray(oe))throw new Error("Rules must be an object");this.rules={},Object.keys(oe).forEach(function(le){var ue=oe[le];ie.rules[le]=Array.isArray(ue)?ue:[ue]})},r.messages=function(oe){return oe&&(this._messages=deepMerge(newMessages(),oe)),this._messages},r.validate=function(oe,ie,le){var ue=this;ie===void 0&&(ie={}),le===void 0&&(le=function(){});var de=oe,pe=ie,he=le;if(typeof pe=="function"&&(he=pe,pe={}),!this.rules||Object.keys(this.rules).length===0)return he&&he(null,de),Promise.resolve(de);function _e(Ue){var qe=[],Et={};function At(hn){if(Array.isArray(hn)){var _n;qe=(_n=qe).concat.apply(_n,hn)}else qe.push(hn)}for(var Lt=0;Lt");const ie=useNamespace("form"),le=ref(),ue=ref(0),de=()=>{var _e;if((_e=le.value)!=null&&_e.firstElementChild){const $e=window.getComputedStyle(le.value.firstElementChild).width;return Math.ceil(Number.parseFloat($e))}else return 0},pe=(_e="update")=>{nextTick(()=>{r.default&&t.isAutoWidth&&(_e==="update"?ue.value=de():_e==="remove"&&(V==null||V.deregisterLabelWidth(ue.value)))})},he=()=>pe("update");return onMounted(()=>{he()}),onBeforeUnmount(()=>{pe("remove")}),onUpdated(()=>he()),watch(ue,(_e,$e)=>{t.updateAll&&(V==null||V.registerLabelWidth(_e,$e))}),useResizeObserver$1(computed(()=>{var _e,$e;return($e=(_e=le.value)==null?void 0:_e.firstElementChild)!=null?$e:null}),he),()=>{var _e,$e;if(!r)return null;const{isAutoWidth:Ie}=t;if(Ie){const Ve=V==null?void 0:V.autoLabelWidth,Fe=oe==null?void 0:oe.hasLabel,Ue={};if(Fe&&Ve&&Ve!=="auto"){const qe=Math.max(0,Number.parseInt(Ve,10)-ue.value),Et=V.labelPosition==="left"?"marginRight":"marginLeft";qe&&(Ue[Et]=`${qe}px`)}return createVNode("div",{ref:le,class:[ie.be("item","label-wrap")],style:Ue},[(_e=r.default)==null?void 0:_e.call(r)])}else return createVNode(Fragment,{ref:le},[($e=r.default)==null?void 0:$e.call(r)])}}});const _hoisted_1$14=["role","aria-labelledby"],__default__$1y=defineComponent({name:"ElFormItem"}),_sfc_main$2g=defineComponent({...__default__$1y,props:formItemProps,setup(t,{expose:r}){const V=t,oe=useSlots(),ie=inject(formContextKey,void 0),le=inject(formItemContextKey,void 0),ue=useFormSize(void 0,{formItem:!1}),de=useNamespace("form-item"),pe=useId().value,he=ref([]),_e=ref(""),$e=refDebounced(_e,100),Ie=ref(""),Ve=ref();let Fe,Ue=!1;const qe=computed(()=>{if((ie==null?void 0:ie.labelPosition)==="top")return{};const Kn=addUnit(V.labelWidth||(ie==null?void 0:ie.labelWidth)||"");return Kn?{width:Kn}:{}}),Et=computed(()=>{if((ie==null?void 0:ie.labelPosition)==="top"||ie!=null&&ie.inline)return{};if(!V.label&&!V.labelWidth&&Sn)return{};const Kn=addUnit(V.labelWidth||(ie==null?void 0:ie.labelWidth)||"");return!V.label&&!oe.label?{marginLeft:Kn}:{}}),At=computed(()=>[de.b(),de.m(ue.value),de.is("error",_e.value==="error"),de.is("validating",_e.value==="validating"),de.is("success",_e.value==="success"),de.is("required",kn.value||V.required),de.is("no-asterisk",ie==null?void 0:ie.hideRequiredAsterisk),(ie==null?void 0:ie.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[de.m("feedback")]:ie==null?void 0:ie.statusIcon}]),Lt=computed(()=>isBoolean$3(V.inlineMessage)?V.inlineMessage:(ie==null?void 0:ie.inlineMessage)||!1),hn=computed(()=>[de.e("error"),{[de.em("error","inline")]:Lt.value}]),_n=computed(()=>V.prop?isString$6(V.prop)?V.prop:V.prop.join("."):""),vn=computed(()=>!!(V.label||oe.label)),bn=computed(()=>V.for||he.value.length===1?he.value[0]:void 0),Cn=computed(()=>!bn.value&&vn.value),Sn=!!le,wn=computed(()=>{const Kn=ie==null?void 0:ie.model;if(!(!Kn||!V.prop))return getProp(Kn,V.prop).value}),En=computed(()=>{const{required:Kn}=V,Gn=[];V.rules&&Gn.push(...castArray$1(V.rules));const Qn=ie==null?void 0:ie.rules;if(Qn&&V.prop){const ur=getProp(Qn,V.prop).value;ur&&Gn.push(...castArray$1(ur))}if(Kn!==void 0){const ur=Gn.map((cr,Un)=>[cr,Un]).filter(([cr])=>Object.keys(cr).includes("required"));if(ur.length>0)for(const[cr,Un]of ur)cr.required!==Kn&&(Gn[Un]={...cr,required:Kn});else Gn.push({required:Kn})}return Gn}),xn=computed(()=>En.value.length>0),Pn=Kn=>En.value.filter(Qn=>!Qn.trigger||!Kn?!0:Array.isArray(Qn.trigger)?Qn.trigger.includes(Kn):Qn.trigger===Kn).map(({trigger:Qn,...ur})=>ur),kn=computed(()=>En.value.some(Kn=>Kn.required)),Nn=computed(()=>{var Kn;return $e.value==="error"&&V.showMessage&&((Kn=ie==null?void 0:ie.showMessage)!=null?Kn:!0)}),Dn=computed(()=>`${V.label||""}${(ie==null?void 0:ie.labelSuffix)||""}`),Mn=Kn=>{_e.value=Kn},Ln=Kn=>{var Gn,Qn;const{errors:ur,fields:cr}=Kn;(!ur||!cr)&&console.error(Kn),Mn("error"),Ie.value=ur?(Qn=(Gn=ur==null?void 0:ur[0])==null?void 0:Gn.message)!=null?Qn:`${V.prop} is required`:"",ie==null||ie.emit("validate",V.prop,!1,Ie.value)},An=()=>{Mn("success"),ie==null||ie.emit("validate",V.prop,!0,"")},Vn=async Kn=>{const Gn=_n.value;return new Schema({[Gn]:Kn}).validate({[Gn]:wn.value},{firstFields:!0}).then(()=>(An(),!0)).catch(ur=>(Ln(ur),Promise.reject(ur)))},Wn=async(Kn,Gn)=>{if(Ue||!V.prop)return!1;const Qn=isFunction$5(Gn);if(!xn.value)return Gn==null||Gn(!1),!1;const ur=Pn(Kn);return ur.length===0?(Gn==null||Gn(!0),!0):(Mn("validating"),Vn(ur).then(()=>(Gn==null||Gn(!0),!0)).catch(cr=>{const{fields:Un}=cr;return Gn==null||Gn(!1,Un),Qn?!1:Promise.reject(Un)}))},Fn=()=>{Mn(""),Ie.value="",Ue=!1},Yn=async()=>{const Kn=ie==null?void 0:ie.model;if(!Kn||!V.prop)return;const Gn=getProp(Kn,V.prop);Ue=!0,Gn.value=clone$4(Fe),await nextTick(),Fn(),Ue=!1},tr=Kn=>{he.value.includes(Kn)||he.value.push(Kn)},yr=Kn=>{he.value=he.value.filter(Gn=>Gn!==Kn)};watch(()=>V.error,Kn=>{Ie.value=Kn||"",Mn(Kn?"error":"")},{immediate:!0}),watch(()=>V.validateStatus,Kn=>Mn(Kn||""));const Jn=reactive({...toRefs(V),$el:Ve,size:ue,validateState:_e,labelId:pe,inputIds:he,isGroup:Cn,hasLabel:vn,addInputId:tr,removeInputId:yr,resetField:Yn,clearValidate:Fn,validate:Wn});return provide(formItemContextKey,Jn),onMounted(()=>{V.prop&&(ie==null||ie.addField(Jn),Fe=clone$4(wn.value))}),onBeforeUnmount(()=>{ie==null||ie.removeField(Jn)}),r({size:ue,validateMessage:Ie,validateState:_e,validate:Wn,clearValidate:Fn,resetField:Yn}),(Kn,Gn)=>{var Qn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:Ve,class:normalizeClass(unref(At)),role:unref(Cn)?"group":void 0,"aria-labelledby":unref(Cn)?unref(pe):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(qe).width==="auto","update-all":((Qn=unref(ie))==null?void 0:Qn.labelWidth)==="auto"},{default:withCtx(()=>[unref(vn)?(openBlock(),createBlock(resolveDynamicComponent(unref(bn)?"label":"div"),{key:0,id:unref(pe),for:unref(bn),class:normalizeClass(unref(de).e("label")),style:normalizeStyle$1(unref(qe))},{default:withCtx(()=>[renderSlot(Kn.$slots,"label",{label:unref(Dn)},()=>[createTextVNode(toDisplayString$1(unref(Dn)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(de).e("content")),style:normalizeStyle$1(unref(Et))},[renderSlot(Kn.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(de).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(Nn)?renderSlot(Kn.$slots,"error",{key:0,error:Ie.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(hn))},toDisplayString$1(Ie.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$14)}}});var FormItem=_export_sfc$1(_sfc_main$2g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ElForm=withInstall(Form,{FormItem}),ElFormItem=withNoopInstall(FormItem);let hiddenTextarea;const HIDDEN_STYLE=` height:0 !important; visibility:hidden !important; ${isFirefox()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,CONTEXT_STYLE=["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 calculateNodeStyling(t){const r=window.getComputedStyle(t),V=r.getPropertyValue("box-sizing"),oe=Number.parseFloat(r.getPropertyValue("padding-bottom"))+Number.parseFloat(r.getPropertyValue("padding-top")),ie=Number.parseFloat(r.getPropertyValue("border-bottom-width"))+Number.parseFloat(r.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(ue=>`${ue}:${r.getPropertyValue(ue)}`).join(";"),paddingSize:oe,borderSize:ie,boxSizing:V}}function calcTextareaHeight(t,r=1,V){var oe;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:ie,borderSize:le,boxSizing:ue,contextStyle:de}=calculateNodeStyling(t);hiddenTextarea.setAttribute("style",`${de};${HIDDEN_STYLE}`),hiddenTextarea.value=t.value||t.placeholder||"";let pe=hiddenTextarea.scrollHeight;const he={};ue==="border-box"?pe=pe+le:ue==="content-box"&&(pe=pe-ie),hiddenTextarea.value="";const _e=hiddenTextarea.scrollHeight-ie;if(isNumber$4(r)){let $e=_e*r;ue==="border-box"&&($e=$e+ie+le),pe=Math.max($e,pe),he.minHeight=`${$e}px`}if(isNumber$4(V)){let $e=_e*V;ue==="border-box"&&($e=$e+ie+le),pe=Math.min($e,pe)}return he.height=`${pe}px`,(oe=hiddenTextarea.parentNode)==null||oe.removeChild(hiddenTextarea),hiddenTextarea=void 0,he}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([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:iconPropType},prefixIcon:{type:iconPropType},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:definePropType([Object,Array,String]),default:()=>mutable({})}}),inputEmits={[UPDATE_MODEL_EVENT]:t=>isString$6(t),input:t=>isString$6(t),change:t=>isString$6(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},_hoisted_1$13=["role"],_hoisted_2$I=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],_hoisted_3$o=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],__default__$1x=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main$2f=defineComponent({...__default__$1x,props:inputProps,emits:inputEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useAttrs$1(),le=useSlots(),ue=computed(()=>{const br={};return oe.containerRole==="combobox"&&(br["aria-haspopup"]=ie["aria-haspopup"],br["aria-owns"]=ie["aria-owns"],br["aria-expanded"]=ie["aria-expanded"]),br}),de=computed(()=>[oe.type==="textarea"?qe.b():Ue.b(),Ue.m(Ve.value),Ue.is("disabled",Fe.value),Ue.is("exceed",tr.value),{[Ue.b("group")]:le.prepend||le.append,[Ue.bm("group","append")]:le.append,[Ue.bm("group","prepend")]:le.prepend,[Ue.m("prefix")]:le.prefix||oe.prefixIcon,[Ue.m("suffix")]:le.suffix||oe.suffixIcon||oe.clearable||oe.showPassword,[Ue.bm("suffix","password-clear")]:Vn.value&&Wn.value},ie.class]),pe=computed(()=>[Ue.e("wrapper"),Ue.is("focus",wn.value)]),he=useAttrs({excludeKeys:computed(()=>Object.keys(ue.value))}),{form:_e,formItem:$e}=useFormItem(),{inputId:Ie}=useFormItemInputId(oe,{formItemContext:$e}),Ve=useFormSize(),Fe=useFormDisabled(),Ue=useNamespace("input"),qe=useNamespace("textarea"),Et=shallowRef(),At=shallowRef(),Lt=ref(!1),hn=ref(!1),_n=ref(!1),vn=ref(),bn=shallowRef(oe.inputStyle),Cn=computed(()=>Et.value||At.value),{wrapperRef:Sn,isFocused:wn,handleFocus:En,handleBlur:xn}=useFocusController(Cn,{afterBlur(){var br;oe.validateEvent&&((br=$e==null?void 0:$e.validate)==null||br.call($e,"blur").catch(Ar=>void 0))}}),Pn=computed(()=>{var br;return(br=_e==null?void 0:_e.statusIcon)!=null?br:!1}),kn=computed(()=>($e==null?void 0:$e.validateState)||""),Nn=computed(()=>kn.value&&ValidateComponentsMap[kn.value]),Dn=computed(()=>_n.value?view_default:hide_default),Mn=computed(()=>[ie.style,oe.inputStyle]),Ln=computed(()=>[oe.inputStyle,bn.value,{resize:oe.resize}]),An=computed(()=>isNil(oe.modelValue)?"":String(oe.modelValue)),Vn=computed(()=>oe.clearable&&!Fe.value&&!oe.readonly&&!!An.value&&(wn.value||Lt.value)),Wn=computed(()=>oe.showPassword&&!Fe.value&&!oe.readonly&&!!An.value&&(!!An.value||wn.value)),Fn=computed(()=>oe.showWordLimit&&!!he.value.maxlength&&(oe.type==="text"||oe.type==="textarea")&&!Fe.value&&!oe.readonly&&!oe.showPassword),Yn=computed(()=>An.value.length),tr=computed(()=>!!Fn.value&&Yn.value>Number(he.value.maxlength)),yr=computed(()=>!!le.suffix||!!oe.suffixIcon||Vn.value||oe.showPassword||Fn.value||!!kn.value&&Pn.value),[Jn,Kn]=useCursor(Et);useResizeObserver$1(At,br=>{if(ur(),!Fn.value||oe.resize!=="both")return;const Ar=br[0],{width:Dr}=Ar.contentRect;vn.value={right:`calc(100% - ${Dr+15+6}px)`}});const Gn=()=>{const{type:br,autosize:Ar}=oe;if(!(!isClient$1||br!=="textarea"||!At.value))if(Ar){const Dr=isObject$9(Ar)?Ar.minRows:void 0,Br=isObject$9(Ar)?Ar.maxRows:void 0,zr=calcTextareaHeight(At.value,Dr,Br);bn.value={overflowY:"hidden",...zr},nextTick(()=>{At.value.offsetHeight,bn.value=zr})}else bn.value={minHeight:calcTextareaHeight(At.value).minHeight}},ur=(br=>{let Ar=!1;return()=>{var Dr;if(Ar||!oe.autosize)return;((Dr=At.value)==null?void 0:Dr.offsetParent)===null||(br(),Ar=!0)}})(Gn),cr=()=>{const br=Cn.value,Ar=oe.formatter?oe.formatter(An.value):An.value;!br||br.value===Ar||(br.value=Ar)},Un=async br=>{Jn();let{value:Ar}=br.target;if(oe.formatter&&(Ar=oe.parser?oe.parser(Ar):Ar),!hn.value){if(Ar===An.value){cr();return}V(UPDATE_MODEL_EVENT,Ar),V("input",Ar),await nextTick(),cr(),Kn()}},qn=br=>{V("change",br.target.value)},er=br=>{V("compositionstart",br),hn.value=!0},pr=br=>{var Ar;V("compositionupdate",br);const Dr=(Ar=br.target)==null?void 0:Ar.value,Br=Dr[Dr.length-1]||"";hn.value=!isKorean(Br)},Er=br=>{V("compositionend",br),hn.value&&(hn.value=!1,Un(br))},dr=()=>{_n.value=!_n.value,xr()},xr=async()=>{var br;await nextTick(),(br=Cn.value)==null||br.focus()},wr=()=>{var br;return(br=Cn.value)==null?void 0:br.blur()},Cr=br=>{Lt.value=!1,V("mouseleave",br)},gr=br=>{Lt.value=!0,V("mouseenter",br)},or=br=>{V("keydown",br)},fr=()=>{var br;(br=Cn.value)==null||br.select()},kr=()=>{V(UPDATE_MODEL_EVENT,""),V("change",""),V("clear"),V("input","")};return watch(()=>oe.modelValue,()=>{var br;nextTick(()=>Gn()),oe.validateEvent&&((br=$e==null?void 0:$e.validate)==null||br.call($e,"change").catch(Ar=>void 0))}),watch(An,()=>cr()),watch(()=>oe.type,async()=>{await nextTick(),cr(),Gn()}),onMounted(()=>{!oe.formatter&&oe.parser,cr(),nextTick(Gn)}),r({input:Et,textarea:At,ref:Cn,textareaStyle:Ln,autosize:toRef(oe,"autosize"),focus:xr,blur:wr,select:fr,clear:kr,resizeTextarea:Gn}),(br,Ar)=>withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(ue),{class:unref(de),style:unref(Mn),role:br.containerRole,onMouseenter:gr,onMouseleave:Cr}),[createCommentVNode(" input "),br.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),br.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ue).be("group","prepend"))},[renderSlot(br.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref_key:"wrapperRef",ref:Sn,class:normalizeClass(unref(pe))},[createCommentVNode(" prefix slot "),br.$slots.prefix||br.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Ue).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(Ue).e("prefix-inner"))},[renderSlot(br.$slots,"prefix"),br.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ue).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(br.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(Ie),ref_key:"input",ref:Et,class:unref(Ue).e("inner")},unref(he),{type:br.showPassword?_n.value?"text":"password":br.type,disabled:unref(Fe),formatter:br.formatter,parser:br.parser,readonly:br.readonly,autocomplete:br.autocomplete,tabindex:br.tabindex,"aria-label":br.label,placeholder:br.placeholder,style:br.inputStyle,form:oe.form,onCompositionstart:er,onCompositionupdate:pr,onCompositionend:Er,onInput:Un,onFocus:Ar[0]||(Ar[0]=(...Dr)=>unref(En)&&unref(En)(...Dr)),onBlur:Ar[1]||(Ar[1]=(...Dr)=>unref(xn)&&unref(xn)(...Dr)),onChange:qn,onKeydown:or}),null,16,_hoisted_2$I),createCommentVNode(" suffix slot "),unref(yr)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Ue).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(Ue).e("suffix-inner"))},[!unref(Vn)||!unref(Wn)||!unref(Fn)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(br.$slots,"suffix"),br.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ue).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(br.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(Vn)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(Ue).e("icon"),unref(Ue).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:kr},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Wn)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(Ue).e("icon"),unref(Ue).e("password")]),onClick:dr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Dn))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(Fn)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(Ue).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(Ue).e("count-inner"))},toDisplayString$1(unref(Yn))+" / "+toDisplayString$1(unref(he).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(kn)&&unref(Nn)&&unref(Pn)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(Ue).e("icon"),unref(Ue).e("validateIcon"),unref(Ue).is("loading",unref(kn)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Nn))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),br.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(Ue).be("group","append"))},[renderSlot(br.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(Ie),ref_key:"textarea",ref:At,class:unref(qe).e("inner")},unref(he),{tabindex:br.tabindex,disabled:unref(Fe),readonly:br.readonly,autocomplete:br.autocomplete,style:unref(Ln),"aria-label":br.label,placeholder:br.placeholder,form:oe.form,onCompositionstart:er,onCompositionupdate:pr,onCompositionend:Er,onInput:Un,onFocus:Ar[2]||(Ar[2]=(...Dr)=>unref(En)&&unref(En)(...Dr)),onBlur:Ar[3]||(Ar[3]=(...Dr)=>unref(xn)&&unref(xn)(...Dr)),onChange:qn,onKeydown:or}),null,16,_hoisted_3$o),unref(Fn)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1(vn.value),class:normalizeClass(unref(Ue).e("count"))},toDisplayString$1(unref(Yn))+" / "+toDisplayString$1(unref(he).maxlength),7)):createCommentVNode("v-if",!0)],64))],16,_hoisted_1$13)),[[vShow,br.type!=="hidden"]])}});var Input=_export_sfc$1(_sfc_main$2f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ElInput=withInstall(Input),GAP=4,BAR_MAP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},renderThumbStyle$1=({move:t,size:r,bar:V})=>({[V.size]:r,transform:`translate${V.axis}(${t}%)`}),scrollbarContextKey=Symbol("scrollbarContextKey"),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$k="Thumb",_sfc_main$2e=defineComponent({__name:"thumb",props:thumbProps,setup(t){const r=t,V=inject(scrollbarContextKey),oe=useNamespace("scrollbar");V||throwError$1(COMPONENT_NAME$k,"can not inject scrollbar context");const ie=ref(),le=ref(),ue=ref({}),de=ref(!1);let pe=!1,he=!1,_e=isClient$1?document.onselectstart:null;const $e=computed(()=>BAR_MAP[r.vertical?"vertical":"horizontal"]),Ie=computed(()=>renderThumbStyle$1({size:r.size,move:r.move,bar:$e.value})),Ve=computed(()=>ie.value[$e.value.offset]**2/V.wrapElement[$e.value.scrollSize]/r.ratio/le.value[$e.value.offset]),Fe=vn=>{var bn;if(vn.stopPropagation(),vn.ctrlKey||[1,2].includes(vn.button))return;(bn=window.getSelection())==null||bn.removeAllRanges(),qe(vn);const Cn=vn.currentTarget;Cn&&(ue.value[$e.value.axis]=Cn[$e.value.offset]-(vn[$e.value.client]-Cn.getBoundingClientRect()[$e.value.direction]))},Ue=vn=>{if(!le.value||!ie.value||!V.wrapElement)return;const bn=Math.abs(vn.target.getBoundingClientRect()[$e.value.direction]-vn[$e.value.client]),Cn=le.value[$e.value.offset]/2,Sn=(bn-Cn)*100*Ve.value/ie.value[$e.value.offset];V.wrapElement[$e.value.scroll]=Sn*V.wrapElement[$e.value.scrollSize]/100},qe=vn=>{vn.stopImmediatePropagation(),pe=!0,document.addEventListener("mousemove",Et),document.addEventListener("mouseup",At),_e=document.onselectstart,document.onselectstart=()=>!1},Et=vn=>{if(!ie.value||!le.value||pe===!1)return;const bn=ue.value[$e.value.axis];if(!bn)return;const Cn=(ie.value.getBoundingClientRect()[$e.value.direction]-vn[$e.value.client])*-1,Sn=le.value[$e.value.offset]-bn,wn=(Cn-Sn)*100*Ve.value/ie.value[$e.value.offset];V.wrapElement[$e.value.scroll]=wn*V.wrapElement[$e.value.scrollSize]/100},At=()=>{pe=!1,ue.value[$e.value.axis]=0,document.removeEventListener("mousemove",Et),document.removeEventListener("mouseup",At),_n(),he&&(de.value=!1)},Lt=()=>{he=!1,de.value=!!r.size},hn=()=>{he=!0,de.value=pe};onBeforeUnmount(()=>{_n(),document.removeEventListener("mouseup",At)});const _n=()=>{document.onselectstart!==_e&&(document.onselectstart=_e)};return useEventListener$1(toRef(V,"scrollbarElement"),"mousemove",Lt),useEventListener$1(toRef(V,"scrollbarElement"),"mouseleave",hn),(vn,bn)=>(openBlock(),createBlock(Transition,{name:unref(oe).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:ie,class:normalizeClass([unref(oe).e("bar"),unref(oe).is(unref($e).key)]),onMousedown:Ue},[createBaseVNode("div",{ref_key:"thumb",ref:le,class:normalizeClass(unref(oe).e("thumb")),style:normalizeStyle$1(unref(Ie)),onMousedown:Fe},null,38)],34),[[vShow,vn.always||de.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc$1(_sfc_main$2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),_sfc_main$2d=defineComponent({__name:"bar",props:barProps,setup(t,{expose:r}){const V=t,oe=ref(0),ie=ref(0);return r({handleScroll:ue=>{if(ue){const de=ue.offsetHeight-GAP,pe=ue.offsetWidth-GAP;ie.value=ue.scrollTop*100/de*V.ratioY,oe.value=ue.scrollLeft*100/pe*V.ratioX}}}),(ue,de)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:oe.value,ratio:ue.ratioX,size:ue.width,always:ue.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:ie.value,ratio:ue.ratioY,size:ue.height,vertical:"",always:ue.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc$1(_sfc_main$2d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const scrollbarProps=buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),scrollbarEmits={scroll:({scrollTop:t,scrollLeft:r})=>[t,r].every(isNumber$4)},COMPONENT_NAME$j="ElScrollbar",__default__$1w=defineComponent({name:COMPONENT_NAME$j}),_sfc_main$2c=defineComponent({...__default__$1w,props:scrollbarProps,emits:scrollbarEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useNamespace("scrollbar");let le,ue;const de=ref(),pe=ref(),he=ref(),_e=ref("0"),$e=ref("0"),Ie=ref(),Ve=ref(1),Fe=ref(1),Ue=computed(()=>{const bn={};return oe.height&&(bn.height=addUnit(oe.height)),oe.maxHeight&&(bn.maxHeight=addUnit(oe.maxHeight)),[oe.wrapStyle,bn]}),qe=computed(()=>[oe.wrapClass,ie.e("wrap"),{[ie.em("wrap","hidden-default")]:!oe.native}]),Et=computed(()=>[ie.e("view"),oe.viewClass]),At=()=>{var bn;pe.value&&((bn=Ie.value)==null||bn.handleScroll(pe.value),V("scroll",{scrollTop:pe.value.scrollTop,scrollLeft:pe.value.scrollLeft}))};function Lt(bn,Cn){isObject$9(bn)?pe.value.scrollTo(bn):isNumber$4(bn)&&isNumber$4(Cn)&&pe.value.scrollTo(bn,Cn)}const hn=bn=>{isNumber$4(bn)&&(pe.value.scrollTop=bn)},_n=bn=>{isNumber$4(bn)&&(pe.value.scrollLeft=bn)},vn=()=>{if(!pe.value)return;const bn=pe.value.offsetHeight-GAP,Cn=pe.value.offsetWidth-GAP,Sn=bn**2/pe.value.scrollHeight,wn=Cn**2/pe.value.scrollWidth,En=Math.max(Sn,oe.minSize),xn=Math.max(wn,oe.minSize);Ve.value=Sn/(bn-Sn)/(En/(bn-En)),Fe.value=wn/(Cn-wn)/(xn/(Cn-xn)),$e.value=En+GAPoe.noresize,bn=>{bn?(le==null||le(),ue==null||ue()):({stop:le}=useResizeObserver$1(he,vn),ue=useEventListener$1("resize",vn))},{immediate:!0}),watch(()=>[oe.maxHeight,oe.height],()=>{oe.native||nextTick(()=>{var bn;vn(),pe.value&&((bn=Ie.value)==null||bn.handleScroll(pe.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:de,wrapElement:pe})),onMounted(()=>{oe.native||nextTick(()=>{vn()})}),onUpdated(()=>vn()),r({wrapRef:pe,update:vn,scrollTo:Lt,setScrollTop:hn,setScrollLeft:_n,handleScroll:At}),(bn,Cn)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:de,class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:pe,class:normalizeClass(unref(qe)),style:normalizeStyle$1(unref(Ue)),onScroll:At},[(openBlock(),createBlock(resolveDynamicComponent(bn.tag),{ref_key:"resizeRef",ref:he,class:normalizeClass(unref(Et)),style:normalizeStyle$1(bn.viewStyle)},{default:withCtx(()=>[renderSlot(bn.$slots,"default")]),_:3},8,["class","style"]))],38),bn.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:Ie,height:$e.value,width:_e.value,always:bn.always,"ratio-x":Fe.value,"ratio-y":Ve.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Scrollbar=_export_sfc$1(_sfc_main$2c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ElScrollbar=withInstall(Scrollbar),POPPER_INJECTION_KEY=Symbol("popper"),POPPER_CONTENT_INJECTION_KEY=Symbol("popperContent"),roleTypes=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],popperProps=buildProps({role:{type:String,values:roleTypes,default:"tooltip"}}),__default__$1v=defineComponent({name:"ElPopper",inheritAttrs:!1}),_sfc_main$2b=defineComponent({...__default__$1v,props:popperProps,setup(t,{expose:r}){const V=t,oe=ref(),ie=ref(),le=ref(),ue=ref(),de=computed(()=>V.role),pe={triggerRef:oe,popperInstanceRef:ie,contentRef:le,referenceRef:ue,role:de};return r(pe),provide(POPPER_INJECTION_KEY,pe),(he,_e)=>renderSlot(he.$slots,"default")}});var Popper=_export_sfc$1(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const popperArrowProps=buildProps({arrowOffset:{type:Number,default:5}}),__default__$1u=defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),_sfc_main$2a=defineComponent({...__default__$1u,props:popperArrowProps,setup(t,{expose:r}){const V=t,oe=useNamespace("popper"),{arrowOffset:ie,arrowRef:le,arrowStyle:ue}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch(()=>V.arrowOffset,de=>{ie.value=de}),onBeforeUnmount(()=>{le.value=void 0}),r({arrowRef:le}),(de,pe)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:le,class:normalizeClass(unref(oe).e("arrow")),style:normalizeStyle$1(unref(ue)),"data-popper-arrow":""},null,6))}});var ElPopperArrow=_export_sfc$1(_sfc_main$2a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup(t,{slots:r,attrs:V}){var oe;const ie=inject(FORWARD_REF_INJECTION_KEY),le=useForwardRefDirective((oe=ie==null?void 0:ie.setForwardRef)!=null?oe:NOOP);return()=>{var ue;const de=(ue=r.default)==null?void 0:ue.call(r,V);if(!de||de.length>1)return null;const pe=findFirstLegitChild(de);return pe?withDirectives(cloneVNode(pe,V),[[le]]):null}}});function findFirstLegitChild(t){if(!t)return null;const r=t;for(const V of r){if(isObject$9(V))switch(V.type){case Comment:continue;case Text$1:case"svg":return wrapTextContent(V);case Fragment:return findFirstLegitChild(V.children);default:return V}return wrapTextContent(V)}return null}function wrapTextContent(t){const r=useNamespace("only-child");return createVNode("span",{class:r.e("content")},[t])}const popperTriggerProps=buildProps({virtualRef:{type:definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:definePropType(Function)},onMouseleave:{type:definePropType(Function)},onClick:{type:definePropType(Function)},onKeydown:{type:definePropType(Function)},onFocus:{type:definePropType(Function)},onBlur:{type:definePropType(Function)},onContextmenu:{type:definePropType(Function)},id:String,open:Boolean}),__default__$1t=defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),_sfc_main$29=defineComponent({...__default__$1t,props:popperTriggerProps,setup(t,{expose:r}){const V=t,{role:oe,triggerRef:ie}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(ie);const le=computed(()=>de.value?V.id:void 0),ue=computed(()=>{if(oe&&oe.value==="tooltip")return V.open&&V.id?V.id:void 0}),de=computed(()=>{if(oe&&oe.value!=="tooltip")return oe.value}),pe=computed(()=>de.value?`${V.open}`:void 0);let he;return onMounted(()=>{watch(()=>V.virtualRef,_e=>{_e&&(ie.value=unrefElement$1(_e))},{immediate:!0}),watch(ie,(_e,$e)=>{he==null||he(),he=void 0,isElement$2(_e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(Ie=>{var Ve;const Fe=V[Ie];Fe&&(_e.addEventListener(Ie.slice(2).toLowerCase(),Fe),(Ve=$e==null?void 0:$e.removeEventListener)==null||Ve.call($e,Ie.slice(2).toLowerCase(),Fe))}),he=watch([le,ue,de,pe],Ie=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((Ve,Fe)=>{isNil(Ie[Fe])?_e.removeAttribute(Ve):_e.setAttribute(Ve,Ie[Fe])})},{immediate:!0})),isElement$2($e)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(Ie=>$e.removeAttribute(Ie))},{immediate:!0})}),onBeforeUnmount(()=>{he==null||he(),he=void 0}),r({triggerRef:ie}),(_e,$e)=>_e.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},_e.$attrs,{"aria-controls":unref(le),"aria-describedby":unref(ue),"aria-expanded":unref(pe),"aria-haspopup":unref(de)}),{default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc$1(_sfc_main$29,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const FOCUS_AFTER_TRAPPED="focus-trap.focus-after-trapped",FOCUS_AFTER_RELEASED="focus-trap.focus-after-released",FOCUSOUT_PREVENTED="focus-trap.focusout-prevented",FOCUS_AFTER_TRAPPED_OPTS={cancelable:!0,bubbles:!1},FOCUSOUT_PREVENTED_OPTS={cancelable:!0,bubbles:!1},ON_TRAP_FOCUS_EVT="focusAfterTrapped",ON_RELEASE_FOCUS_EVT="focusAfterReleased",FOCUS_TRAP_INJECTION_KEY=Symbol("elFocusTrap"),focusReason=ref(),lastUserFocusTimestamp=ref(0),lastAutomatedFocusTimestamp=ref(0);let focusReasonUserCount=0;const obtainAllFocusableElements=t=>{const r=[],V=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:oe=>{const ie=oe.tagName==="INPUT"&&oe.type==="hidden";return oe.disabled||oe.hidden||ie?NodeFilter.FILTER_SKIP:oe.tabIndex>=0||oe===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;V.nextNode();)r.push(V.currentNode);return r},getVisibleElement=(t,r)=>{for(const V of t)if(!isHidden(V,r))return V},isHidden=(t,r)=>{if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},getEdges=t=>{const r=obtainAllFocusableElements(t),V=getVisibleElement(r,t),oe=getVisibleElement(r.reverse(),t);return[V,oe]},isSelectable=t=>t instanceof HTMLInputElement&&"select"in t,tryFocus=(t,r)=>{if(t&&t.focus){const V=document.activeElement;t.focus({preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),t!==V&&isSelectable(t)&&r&&t.select()}};function removeFromStack(t,r){const V=[...t],oe=t.indexOf(r);return oe!==-1&&V.splice(oe,1),V}const createFocusableStack=()=>{let t=[];return{push:oe=>{const ie=t[0];ie&&oe!==ie&&ie.pause(),t=removeFromStack(t,oe),t.unshift(oe)},remove:oe=>{var ie,le;t=removeFromStack(t,oe),(le=(ie=t[0])==null?void 0:ie.resume)==null||le.call(ie)}}},focusFirstDescendant=(t,r=!1)=>{const V=document.activeElement;for(const oe of t)if(tryFocus(oe,r),document.activeElement!==V)return},focusableStack=createFocusableStack(),isFocusCausedByUserEvent=()=>lastUserFocusTimestamp.value>lastAutomatedFocusTimestamp.value,notifyFocusReasonPointer=()=>{focusReason.value="pointer",lastUserFocusTimestamp.value=window.performance.now()},notifyFocusReasonKeydown=()=>{focusReason.value="keyboard",lastUserFocusTimestamp.value=window.performance.now()},useFocusReason=()=>(onMounted(()=>{focusReasonUserCount===0&&(document.addEventListener("mousedown",notifyFocusReasonPointer),document.addEventListener("touchstart",notifyFocusReasonPointer),document.addEventListener("keydown",notifyFocusReasonKeydown)),focusReasonUserCount++}),onBeforeUnmount(()=>{focusReasonUserCount--,focusReasonUserCount<=0&&(document.removeEventListener("mousedown",notifyFocusReasonPointer),document.removeEventListener("touchstart",notifyFocusReasonPointer),document.removeEventListener("keydown",notifyFocusReasonKeydown))}),{focusReason,lastUserFocusTimestamp,lastAutomatedFocusTimestamp}),createFocusOutPreventedEvent=t=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:t}),_sfc_main$28=defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ON_TRAP_FOCUS_EVT,ON_RELEASE_FOCUS_EVT,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:r}){const V=ref();let oe,ie;const{focusReason:le}=useFocusReason();useEscapeKeydown(Fe=>{t.trapped&&!ue.paused&&r("release-requested",Fe)});const ue={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},de=Fe=>{if(!t.loop&&!t.trapped||ue.paused)return;const{key:Ue,altKey:qe,ctrlKey:Et,metaKey:At,currentTarget:Lt,shiftKey:hn}=Fe,{loop:_n}=t,vn=Ue===EVENT_CODE.tab&&!qe&&!Et&&!At,bn=document.activeElement;if(vn&&bn){const Cn=Lt,[Sn,wn]=getEdges(Cn);if(Sn&&wn){if(!hn&&bn===wn){const xn=createFocusOutPreventedEvent({focusReason:le.value});r("focusout-prevented",xn),xn.defaultPrevented||(Fe.preventDefault(),_n&&tryFocus(Sn,!0))}else if(hn&&[Sn,Cn].includes(bn)){const xn=createFocusOutPreventedEvent({focusReason:le.value});r("focusout-prevented",xn),xn.defaultPrevented||(Fe.preventDefault(),_n&&tryFocus(wn,!0))}}else if(bn===Cn){const xn=createFocusOutPreventedEvent({focusReason:le.value});r("focusout-prevented",xn),xn.defaultPrevented||Fe.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:V,onKeydown:de}),watch(()=>t.focusTrapEl,Fe=>{Fe&&(V.value=Fe)},{immediate:!0}),watch([V],([Fe],[Ue])=>{Fe&&(Fe.addEventListener("keydown",de),Fe.addEventListener("focusin",_e),Fe.addEventListener("focusout",$e)),Ue&&(Ue.removeEventListener("keydown",de),Ue.removeEventListener("focusin",_e),Ue.removeEventListener("focusout",$e))});const pe=Fe=>{r(ON_TRAP_FOCUS_EVT,Fe)},he=Fe=>r(ON_RELEASE_FOCUS_EVT,Fe),_e=Fe=>{const Ue=unref(V);if(!Ue)return;const qe=Fe.target,Et=Fe.relatedTarget,At=qe&&Ue.contains(qe);t.trapped||Et&&Ue.contains(Et)||(oe=Et),At&&r("focusin",Fe),!ue.paused&&t.trapped&&(At?ie=qe:tryFocus(ie,!0))},$e=Fe=>{const Ue=unref(V);if(!(ue.paused||!Ue))if(t.trapped){const qe=Fe.relatedTarget;!isNil(qe)&&!Ue.contains(qe)&&setTimeout(()=>{if(!ue.paused&&t.trapped){const Et=createFocusOutPreventedEvent({focusReason:le.value});r("focusout-prevented",Et),Et.defaultPrevented||tryFocus(ie,!0)}},0)}else{const qe=Fe.target;qe&&Ue.contains(qe)||r("focusout",Fe)}};async function Ie(){await nextTick();const Fe=unref(V);if(Fe){focusableStack.push(ue);const Ue=Fe.contains(document.activeElement)?oe:document.activeElement;if(oe=Ue,!Fe.contains(Ue)){const Et=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);Fe.addEventListener(FOCUS_AFTER_TRAPPED,pe),Fe.dispatchEvent(Et),Et.defaultPrevented||nextTick(()=>{let At=t.focusStartEl;isString$6(At)||(tryFocus(At),document.activeElement!==At&&(At="first")),At==="first"&&focusFirstDescendant(obtainAllFocusableElements(Fe),!0),(document.activeElement===Ue||At==="container")&&tryFocus(Fe)})}}}function Ve(){const Fe=unref(V);if(Fe){Fe.removeEventListener(FOCUS_AFTER_TRAPPED,pe);const Ue=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:le.value}});Fe.addEventListener(FOCUS_AFTER_RELEASED,he),Fe.dispatchEvent(Ue),!Ue.defaultPrevented&&(le.value=="keyboard"||!isFocusCausedByUserEvent()||Fe.contains(document.activeElement))&&tryFocus(oe??document.body),Fe.removeEventListener(FOCUS_AFTER_RELEASED,he),focusableStack.remove(ue)}}return onMounted(()=>{t.trapped&&Ie(),watch(()=>t.trapped,Fe=>{Fe?Ie():Ve()})}),onBeforeUnmount(()=>{t.trapped&&Ve()}),{onKeydown:de}}});function _sfc_render$w(t,r,V,oe,ie,le){return renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var ElFocusTrap=_export_sfc$1(_sfc_main$28,[["render",_sfc_render$w],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const POSITIONING_STRATEGIES=["fixed","absolute"],popperCoreConfigProps=buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ee,default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),popperContentProps=buildProps({...popperCoreConfigProps,id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:definePropType([String,Array,Object])},popperStyle:{type:definePropType([String,Array,Object])},referenceEl:{type:definePropType(Object)},triggerTargetEl:{type:definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),popperContentEmits={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},buildPopperOptions=(t,r=[])=>{const{placement:V,strategy:oe,popperOptions:ie}=t,le={placement:V,strategy:oe,...ie,modifiers:[...genModifiers(t),...r]};return deriveExtraModifiers(le,ie==null?void 0:ie.modifiers),le},unwrapMeasurableEl=t=>{if(isClient$1)return unrefElement$1(t)};function genModifiers(t){const{offset:r,gpuAcceleration:V,fallbackPlacements:oe}=t;return[{name:"offset",options:{offset:[0,r??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:oe}},{name:"computeStyles",options:{gpuAcceleration:V}}]}function deriveExtraModifiers(t,r){r&&(t.modifiers=[...t.modifiers,...r??[]])}const DEFAULT_ARROW_OFFSET=0,usePopperContent=t=>{const{popperInstanceRef:r,contentRef:V,triggerRef:oe,role:ie}=inject(POPPER_INJECTION_KEY,void 0),le=ref(),ue=ref(),de=computed(()=>({name:"eventListeners",enabled:!!t.visible})),pe=computed(()=>{var Et;const At=unref(le),Lt=(Et=unref(ue))!=null?Et:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(At),options:{element:At,padding:Lt}}}),he=computed(()=>({onFirstUpdate:()=>{Fe()},...buildPopperOptions(t,[unref(pe),unref(de)])})),_e=computed(()=>unwrapMeasurableEl(t.referenceEl)||unref(oe)),{attributes:$e,state:Ie,styles:Ve,update:Fe,forceUpdate:Ue,instanceRef:qe}=usePopper(_e,V,he);return watch(qe,Et=>r.value=Et),onMounted(()=>{watch(()=>{var Et;return(Et=unref(_e))==null?void 0:Et.getBoundingClientRect()},()=>{Fe()})}),{attributes:$e,arrowRef:le,contentRef:V,instanceRef:qe,state:Ie,styles:Ve,role:ie,forceUpdate:Ue,update:Fe}},usePopperContentDOM=(t,{attributes:r,styles:V,role:oe})=>{const{nextZIndex:ie}=useZIndex(),le=useNamespace("popper"),ue=computed(()=>unref(r).popper),de=ref(t.zIndex||ie()),pe=computed(()=>[le.b(),le.is("pure",t.pure),le.is(t.effect),t.popperClass]),he=computed(()=>[{zIndex:unref(de)},unref(V).popper,t.popperStyle||{}]),_e=computed(()=>oe.value==="dialog"?"false":void 0),$e=computed(()=>unref(V).arrow||{});return{ariaModal:_e,arrowStyle:$e,contentAttrs:ue,contentClass:pe,contentStyle:he,contentZIndex:de,updateZIndex:()=>{de.value=t.zIndex||ie()}}},usePopperContentFocusTrap=(t,r)=>{const V=ref(!1),oe=ref();return{focusStartRef:oe,trapped:V,onFocusAfterReleased:he=>{var _e;((_e=he.detail)==null?void 0:_e.focusReason)!=="pointer"&&(oe.value="first",r("blur"))},onFocusAfterTrapped:()=>{r("focus")},onFocusInTrap:he=>{t.visible&&!V.value&&(he.target&&(oe.value=he.target),V.value=!0)},onFocusoutPrevented:he=>{t.trapping||(he.detail.focusReason==="pointer"&&he.preventDefault(),V.value=!1)},onReleaseRequested:()=>{V.value=!1,r("close")}}},__default__$1s=defineComponent({name:"ElPopperContent"}),_sfc_main$27=defineComponent({...__default__$1s,props:popperContentProps,emits:popperContentEmits,setup(t,{expose:r,emit:V}){const oe=t,{focusStartRef:ie,trapped:le,onFocusAfterReleased:ue,onFocusAfterTrapped:de,onFocusInTrap:pe,onFocusoutPrevented:he,onReleaseRequested:_e}=usePopperContentFocusTrap(oe,V),{attributes:$e,arrowRef:Ie,contentRef:Ve,styles:Fe,instanceRef:Ue,role:qe,update:Et}=usePopperContent(oe),{ariaModal:At,arrowStyle:Lt,contentAttrs:hn,contentClass:_n,contentStyle:vn,updateZIndex:bn}=usePopperContentDOM(oe,{styles:Fe,attributes:$e,role:qe}),Cn=inject(formItemContextKey,void 0),Sn=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:Lt,arrowRef:Ie,arrowOffset:Sn}),Cn&&(Cn.addInputId||Cn.removeInputId)&&provide(formItemContextKey,{...Cn,addInputId:NOOP,removeInputId:NOOP});let wn;const En=(Pn=!0)=>{Et(),Pn&&bn()},xn=()=>{En(!1),oe.visible&&oe.focusOnShow?le.value=!0:oe.visible===!1&&(le.value=!1)};return onMounted(()=>{watch(()=>oe.triggerTargetEl,(Pn,kn)=>{wn==null||wn(),wn=void 0;const Nn=unref(Pn||Ve.value),Dn=unref(kn||Ve.value);isElement$2(Nn)&&(wn=watch([qe,()=>oe.ariaLabel,At,()=>oe.id],Mn=>{["role","aria-label","aria-modal","id"].forEach((Ln,An)=>{isNil(Mn[An])?Nn.removeAttribute(Ln):Nn.setAttribute(Ln,Mn[An])})},{immediate:!0})),Dn!==Nn&&isElement$2(Dn)&&["role","aria-label","aria-modal","id"].forEach(Mn=>{Dn.removeAttribute(Mn)})},{immediate:!0}),watch(()=>oe.visible,xn,{immediate:!0})}),onBeforeUnmount(()=>{wn==null||wn(),wn=void 0}),r({popperContentRef:Ve,popperInstanceRef:Ue,updatePopper:En,contentStyle:vn}),(Pn,kn)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:Ve},unref(hn),{style:unref(vn),class:unref(_n),tabindex:"-1",onMouseenter:kn[0]||(kn[0]=Nn=>Pn.$emit("mouseenter",Nn)),onMouseleave:kn[1]||(kn[1]=Nn=>Pn.$emit("mouseleave",Nn))}),[createVNode(unref(ElFocusTrap),{trapped:unref(le),"trap-on-focus-in":!0,"focus-trap-el":unref(Ve),"focus-start-el":unref(ie),onFocusAfterTrapped:unref(de),onFocusAfterReleased:unref(ue),onFocusin:unref(pe),onFocusoutPrevented:unref(he),onReleaseRequested:unref(_e)},{default:withCtx(()=>[renderSlot(Pn.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var ElPopperContent=_export_sfc$1(_sfc_main$27,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ElPopper=withInstall(Popper),TOOLTIP_INJECTION_KEY=Symbol("elTooltip"),useTooltipContentProps=buildProps({...useDelayedToggleProps,...popperContentProps,appendTo:{type:definePropType([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),useTooltipTriggerProps=buildProps({...popperTriggerProps,disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.space]}}),{useModelToggleProps:useTooltipModelToggleProps,useModelToggleEmits:useTooltipModelToggleEmits,useModelToggle:useTooltipModelToggle}=createModelToggleComposable("visible"),useTooltipProps=buildProps({...popperProps,...useTooltipModelToggleProps,...useTooltipContentProps,...useTooltipTriggerProps,...popperArrowProps,showArrow:{type:Boolean,default:!0}}),tooltipEmits=[...useTooltipModelToggleEmits,"before-show","before-hide","show","hide","open","close"],isTriggerType=(t,r)=>isArray$c(t)?t.includes(r):t===r,whenTrigger=(t,r,V)=>oe=>{isTriggerType(unref(t),r)&&V(oe)},__default__$1r=defineComponent({name:"ElTooltipTrigger"}),_sfc_main$26=defineComponent({...__default__$1r,props:useTooltipTriggerProps,setup(t,{expose:r}){const V=t,oe=useNamespace("tooltip"),{controlled:ie,id:le,open:ue,onOpen:de,onClose:pe,onToggle:he}=inject(TOOLTIP_INJECTION_KEY,void 0),_e=ref(null),$e=()=>{if(unref(ie)||V.disabled)return!0},Ie=toRef(V,"trigger"),Ve=composeEventHandlers($e,whenTrigger(Ie,"hover",de)),Fe=composeEventHandlers($e,whenTrigger(Ie,"hover",pe)),Ue=composeEventHandlers($e,whenTrigger(Ie,"click",hn=>{hn.button===0&&he(hn)})),qe=composeEventHandlers($e,whenTrigger(Ie,"focus",de)),Et=composeEventHandlers($e,whenTrigger(Ie,"focus",pe)),At=composeEventHandlers($e,whenTrigger(Ie,"contextmenu",hn=>{hn.preventDefault(),he(hn)})),Lt=composeEventHandlers($e,hn=>{const{code:_n}=hn;V.triggerKeys.includes(_n)&&(hn.preventDefault(),he(hn))});return r({triggerRef:_e}),(hn,_n)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref(le),"virtual-ref":hn.virtualRef,open:unref(ue),"virtual-triggering":hn.virtualTriggering,class:normalizeClass(unref(oe).e("trigger")),onBlur:unref(Et),onClick:unref(Ue),onContextmenu:unref(At),onFocus:unref(qe),onMouseenter:unref(Ve),onMouseleave:unref(Fe),onKeydown:unref(Lt)},{default:withCtx(()=>[renderSlot(hn.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ElTooltipTrigger=_export_sfc$1(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const __default__$1q=defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),_sfc_main$25=defineComponent({...__default__$1q,props:useTooltipContentProps,setup(t,{expose:r}){const V=t,{selector:oe}=usePopperContainerId(),ie=useNamespace("tooltip"),le=ref(null),ue=ref(!1),{controlled:de,id:pe,open:he,trigger:_e,onClose:$e,onOpen:Ie,onShow:Ve,onHide:Fe,onBeforeShow:Ue,onBeforeHide:qe}=inject(TOOLTIP_INJECTION_KEY,void 0),Et=computed(()=>V.transition||`${ie.namespace.value}-fade-in-linear`),At=computed(()=>V.persistent);onBeforeUnmount(()=>{ue.value=!0});const Lt=computed(()=>unref(At)?!0:unref(he)),hn=computed(()=>V.disabled?!1:unref(he)),_n=computed(()=>V.appendTo||oe.value),vn=computed(()=>{var Mn;return(Mn=V.style)!=null?Mn:{}}),bn=computed(()=>!unref(he)),Cn=()=>{Fe()},Sn=()=>{if(unref(de))return!0},wn=composeEventHandlers(Sn,()=>{V.enterable&&unref(_e)==="hover"&&Ie()}),En=composeEventHandlers(Sn,()=>{unref(_e)==="hover"&&$e()}),xn=()=>{var Mn,Ln;(Ln=(Mn=le.value)==null?void 0:Mn.updatePopper)==null||Ln.call(Mn),Ue==null||Ue()},Pn=()=>{qe==null||qe()},kn=()=>{Ve(),Dn=onClickOutside$1(computed(()=>{var Mn;return(Mn=le.value)==null?void 0:Mn.popperContentRef}),()=>{if(unref(de))return;unref(_e)!=="hover"&&$e()})},Nn=()=>{V.virtualTriggering||$e()};let Dn;return watch(()=>unref(he),Mn=>{Mn||Dn==null||Dn()},{flush:"post"}),watch(()=>V.content,()=>{var Mn,Ln;(Ln=(Mn=le.value)==null?void 0:Mn.updatePopper)==null||Ln.call(Mn)}),r({contentRef:le}),(Mn,Ln)=>(openBlock(),createBlock(Teleport,{disabled:!Mn.teleported,to:unref(_n)},[createVNode(Transition,{name:unref(Et),onAfterLeave:Cn,onBeforeEnter:xn,onAfterEnter:kn,onBeforeLeave:Pn},{default:withCtx(()=>[unref(Lt)?withDirectives((openBlock(),createBlock(unref(ElPopperContent),mergeProps({key:0,id:unref(pe),ref_key:"contentRef",ref:le},Mn.$attrs,{"aria-label":Mn.ariaLabel,"aria-hidden":unref(bn),"boundaries-padding":Mn.boundariesPadding,"fallback-placements":Mn.fallbackPlacements,"gpu-acceleration":Mn.gpuAcceleration,offset:Mn.offset,placement:Mn.placement,"popper-options":Mn.popperOptions,strategy:Mn.strategy,effect:Mn.effect,enterable:Mn.enterable,pure:Mn.pure,"popper-class":Mn.popperClass,"popper-style":[Mn.popperStyle,unref(vn)],"reference-el":Mn.referenceEl,"trigger-target-el":Mn.triggerTargetEl,visible:unref(hn),"z-index":Mn.zIndex,onMouseenter:unref(wn),onMouseleave:unref(En),onBlur:Nn,onClose:unref($e)}),{default:withCtx(()=>[ue.value?createCommentVNode("v-if",!0):renderSlot(Mn.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[vShow,unref(hn)]]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ElTooltipContent=_export_sfc$1(_sfc_main$25,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const _hoisted_1$12=["innerHTML"],_hoisted_2$H={key:1},__default__$1p=defineComponent({name:"ElTooltip"}),_sfc_main$24=defineComponent({...__default__$1p,props:useTooltipProps,emits:tooltipEmits,setup(t,{expose:r,emit:V}){const oe=t;usePopperContainer();const ie=useId(),le=ref(),ue=ref(),de=()=>{var Et;const At=unref(le);At&&((Et=At.popperInstanceRef)==null||Et.update())},pe=ref(!1),he=ref(),{show:_e,hide:$e,hasUpdateHandler:Ie}=useTooltipModelToggle({indicator:pe,toggleReason:he}),{onOpen:Ve,onClose:Fe}=useDelayedToggle({showAfter:toRef(oe,"showAfter"),hideAfter:toRef(oe,"hideAfter"),autoClose:toRef(oe,"autoClose"),open:_e,close:$e}),Ue=computed(()=>isBoolean$3(oe.visible)&&!Ie.value);provide(TOOLTIP_INJECTION_KEY,{controlled:Ue,id:ie,open:readonly(pe),trigger:toRef(oe,"trigger"),onOpen:Et=>{Ve(Et)},onClose:Et=>{Fe(Et)},onToggle:Et=>{unref(pe)?Fe(Et):Ve(Et)},onShow:()=>{V("show",he.value)},onHide:()=>{V("hide",he.value)},onBeforeShow:()=>{V("before-show",he.value)},onBeforeHide:()=>{V("before-hide",he.value)},updatePopper:de}),watch(()=>oe.disabled,Et=>{Et&&pe.value&&(pe.value=!1)});const qe=Et=>{var At,Lt;const hn=(Lt=(At=ue.value)==null?void 0:At.contentRef)==null?void 0:Lt.popperContentRef,_n=(Et==null?void 0:Et.relatedTarget)||document.activeElement;return hn&&hn.contains(_n)};return onDeactivated(()=>pe.value&&$e()),r({popperRef:le,contentRef:ue,isFocusInsideContent:qe,updatePopper:de,onOpen:Ve,onClose:Fe,hide:$e}),(Et,At)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:le,role:Et.role},{default:withCtx(()=>[createVNode(ElTooltipTrigger,{disabled:Et.disabled,trigger:Et.trigger,"trigger-keys":Et.triggerKeys,"virtual-ref":Et.virtualRef,"virtual-triggering":Et.virtualTriggering},{default:withCtx(()=>[Et.$slots.default?renderSlot(Et.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(ElTooltipContent,{ref_key:"contentRef",ref:ue,"aria-label":Et.ariaLabel,"boundaries-padding":Et.boundariesPadding,content:Et.content,disabled:Et.disabled,effect:Et.effect,enterable:Et.enterable,"fallback-placements":Et.fallbackPlacements,"hide-after":Et.hideAfter,"gpu-acceleration":Et.gpuAcceleration,offset:Et.offset,persistent:Et.persistent,"popper-class":Et.popperClass,"popper-style":Et.popperStyle,placement:Et.placement,"popper-options":Et.popperOptions,pure:Et.pure,"raw-content":Et.rawContent,"reference-el":Et.referenceEl,"trigger-target-el":Et.triggerTargetEl,"show-after":Et.showAfter,strategy:Et.strategy,teleported:Et.teleported,transition:Et.transition,"virtual-triggering":Et.virtualTriggering,"z-index":Et.zIndex,"append-to":Et.appendTo},{default:withCtx(()=>[renderSlot(Et.$slots,"content",{},()=>[Et.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:Et.content},null,8,_hoisted_1$12)):(openBlock(),createElementBlock("span",_hoisted_2$H,toDisplayString$1(Et.content),1))]),Et.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0,"arrow-offset":Et.arrowOffset},null,8,["arrow-offset"])):createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Tooltip=_export_sfc$1(_sfc_main$24,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),autocompleteProps=buildProps({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:definePropType([Function,Array]),default:NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:useTooltipContentProps.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),autocompleteEmits={[UPDATE_MODEL_EVENT]:t=>isString$6(t),[INPUT_EVENT]:t=>isString$6(t),[CHANGE_EVENT]:t=>isString$6(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>isObject$9(t)},_hoisted_1$11=["aria-expanded","aria-owns"],_hoisted_2$G={key:0},_hoisted_3$n=["id","aria-selected","onClick"],COMPONENT_NAME$i="ElAutocomplete",__default__$1o=defineComponent({name:COMPONENT_NAME$i,inheritAttrs:!1}),_sfc_main$23=defineComponent({...__default__$1o,props:autocompleteProps,emits:autocompleteEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useAttrs(),le=useAttrs$1(),ue=useFormDisabled(),de=useNamespace("autocomplete"),pe=ref(),he=ref(),_e=ref(),$e=ref();let Ie=!1,Ve=!1;const Fe=ref([]),Ue=ref(-1),qe=ref(""),Et=ref(!1),At=ref(!1),Lt=ref(!1),hn=computed(()=>de.b(String(generateId()))),_n=computed(()=>le.style),vn=computed(()=>(Fe.value.length>0||Lt.value)&&Et.value),bn=computed(()=>!oe.hideLoading&&Lt.value),Cn=computed(()=>pe.value?Array.from(pe.value.$el.querySelectorAll("input")):[]),Sn=()=>{vn.value&&(qe.value=`${pe.value.$el.offsetWidth}px`)},wn=()=>{Ue.value=-1},xn=debounce(async Jn=>{if(At.value)return;const Kn=Gn=>{Lt.value=!1,!At.value&&(isArray$c(Gn)?(Fe.value=Gn,Ue.value=oe.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$i,"autocomplete suggestions must be an array"))};if(Lt.value=!0,isArray$c(oe.fetchSuggestions))Kn(oe.fetchSuggestions);else{const Gn=await oe.fetchSuggestions(Jn,Kn);isArray$c(Gn)&&Kn(Gn)}},oe.debounce),Pn=Jn=>{const Kn=!!Jn;if(V(INPUT_EVENT,Jn),V(UPDATE_MODEL_EVENT,Jn),At.value=!1,Et.value||(Et.value=Kn),!oe.triggerOnFocus&&!Jn){At.value=!0,Fe.value=[];return}xn(Jn)},kn=Jn=>{var Kn;ue.value||(((Kn=Jn.target)==null?void 0:Kn.tagName)!=="INPUT"||Cn.value.includes(document.activeElement))&&(Et.value=!0)},Nn=Jn=>{V(CHANGE_EVENT,Jn)},Dn=Jn=>{Ve?Ve=!1:(Et.value=!0,V("focus",Jn),oe.triggerOnFocus&&!Ie&&xn(String(oe.modelValue)))},Mn=Jn=>{setTimeout(()=>{var Kn;if((Kn=_e.value)!=null&&Kn.isFocusInsideContent()){Ve=!0;return}Et.value&&Wn(),V("blur",Jn)})},Ln=()=>{Et.value=!1,V(UPDATE_MODEL_EVENT,""),V("clear")},An=async()=>{vn.value&&Ue.value>=0&&Ue.value{vn.value&&(Jn.preventDefault(),Jn.stopPropagation(),Wn())},Wn=()=>{Et.value=!1},Fn=()=>{var Jn;(Jn=pe.value)==null||Jn.focus()},Yn=()=>{var Jn;(Jn=pe.value)==null||Jn.blur()},tr=async Jn=>{V(INPUT_EVENT,Jn[oe.valueKey]),V(UPDATE_MODEL_EVENT,Jn[oe.valueKey]),V("select",Jn),Fe.value=[],Ue.value=-1},yr=Jn=>{if(!vn.value||Lt.value)return;if(Jn<0){Ue.value=-1;return}Jn>=Fe.value.length&&(Jn=Fe.value.length-1);const Kn=he.value.querySelector(`.${de.be("suggestion","wrap")}`),Qn=Kn.querySelectorAll(`.${de.be("suggestion","list")} li`)[Jn],ur=Kn.scrollTop,{offsetTop:cr,scrollHeight:Un}=Qn;cr+Un>ur+Kn.clientHeight&&(Kn.scrollTop+=Un),cr{vn.value&&Wn()}),onMounted(()=>{pe.value.ref.setAttribute("role","textbox"),pe.value.ref.setAttribute("aria-autocomplete","list"),pe.value.ref.setAttribute("aria-controls","id"),pe.value.ref.setAttribute("aria-activedescendant",`${hn.value}-item-${Ue.value}`),Ie=pe.value.ref.hasAttribute("readonly")}),r({highlightedIndex:Ue,activated:Et,loading:Lt,inputRef:pe,popperRef:_e,suggestions:Fe,handleSelect:tr,handleKeyEnter:An,focus:Fn,blur:Yn,close:Wn,highlight:yr}),(Jn,Kn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:_e,visible:unref(vn),placement:Jn.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(de).e("popper"),Jn.popperClass],teleported:Jn.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(de).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:Sn,onHide:wn},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:he,class:normalizeClass([unref(de).b("suggestion"),unref(de).is("loading",unref(bn))]),style:normalizeStyle$1({[Jn.fitInputWidth?"width":"minWidth"]:qe.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(hn),tag:"ul","wrap-class":unref(de).be("suggestion","wrap"),"view-class":unref(de).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref(bn)?(openBlock(),createElementBlock("li",_hoisted_2$G,[createVNode(unref(ElIcon),{class:normalizeClass(unref(de).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(Fe.value,(Gn,Qn)=>(openBlock(),createElementBlock("li",{id:`${unref(hn)}-item-${Qn}`,key:Qn,class:normalizeClass({highlighted:Ue.value===Qn}),role:"option","aria-selected":Ue.value===Qn,onClick:ur=>tr(Gn)},[renderSlot(Jn.$slots,"default",{item:Gn},()=>[createTextVNode(toDisplayString$1(Gn[Jn.valueKey]),1)])],10,_hoisted_3$n))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:$e,class:normalizeClass([unref(de).b(),Jn.$attrs.class]),style:normalizeStyle$1(unref(_n)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref(vn),"aria-owns":unref(hn)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:pe},unref(ie),{clearable:Jn.clearable,disabled:unref(ue),name:Jn.name,"model-value":Jn.modelValue,onInput:Pn,onChange:Nn,onFocus:Dn,onBlur:Mn,onClear:Ln,onKeydown:[Kn[0]||(Kn[0]=withKeys(withModifiers(Gn=>yr(Ue.value-1),["prevent"]),["up"])),Kn[1]||(Kn[1]=withKeys(withModifiers(Gn=>yr(Ue.value+1),["prevent"]),["down"])),withKeys(An,["enter"]),withKeys(Wn,["tab"]),withKeys(Vn,["esc"])],onMousedown:kn}),createSlots({_:2},[Jn.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(Jn.$slots,"prepend")])}:void 0,Jn.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(Jn.$slots,"append")])}:void 0,Jn.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(Jn.$slots,"prefix")])}:void 0,Jn.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(Jn.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,_hoisted_1$11)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Autocomplete=_export_sfc$1(_sfc_main$23,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const ElAutocomplete=withInstall(Autocomplete),avatarProps=buildProps({size:{type:[Number,String],values:componentSizes,default:"",validator:t=>isNumber$4(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:definePropType(String),default:"cover"}}),avatarEmits={error:t=>t instanceof Event},_hoisted_1$10=["src","alt","srcset"],__default__$1n=defineComponent({name:"ElAvatar"}),_sfc_main$22=defineComponent({...__default__$1n,props:avatarProps,emits:avatarEmits,setup(t,{emit:r}){const V=t,oe=useNamespace("avatar"),ie=ref(!1),le=computed(()=>{const{size:he,icon:_e,shape:$e}=V,Ie=[oe.b()];return isString$6(he)&&Ie.push(oe.m(he)),_e&&Ie.push(oe.m("icon")),$e&&Ie.push(oe.m($e)),Ie}),ue=computed(()=>{const{size:he}=V;return isNumber$4(he)?oe.cssVarBlock({size:addUnit(he)||""}):void 0}),de=computed(()=>({objectFit:V.fit}));watch(()=>V.src,()=>ie.value=!1);function pe(he){ie.value=!0,r("error",he)}return(he,_e)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le)),style:normalizeStyle$1(unref(ue))},[(he.src||he.srcSet)&&!ie.value?(openBlock(),createElementBlock("img",{key:0,src:he.src,alt:he.alt,srcset:he.srcSet,style:normalizeStyle$1(unref(de)),onError:pe},null,44,_hoisted_1$10)):he.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(he.icon)))]),_:1})):renderSlot(he.$slots,"default",{key:2})],6))}});var Avatar=_export_sfc$1(_sfc_main$22,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const ElAvatar=withInstall(Avatar),backtopProps={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},backtopEmits={click:t=>t instanceof MouseEvent},useBackTop=(t,r,V)=>{const oe=shallowRef(),ie=shallowRef(),le=ref(!1),ue=()=>{oe.value&&(le.value=oe.value.scrollTop>=t.visibilityHeight)},de=he=>{var _e;(_e=oe.value)==null||_e.scrollTo({top:0,behavior:"smooth"}),r("click",he)},pe=useThrottleFn(ue,300,!0);return useEventListener$1(ie,"scroll",pe),onMounted(()=>{var he;ie.value=document,oe.value=document.documentElement,t.target&&(oe.value=(he=document.querySelector(t.target))!=null?he:void 0,oe.value||throwError$1(V,`target does not exist: ${t.target}`),ie.value=oe.value),ue()}),{visible:le,handleClick:de}},COMPONENT_NAME$h="ElBacktop",__default__$1m=defineComponent({name:COMPONENT_NAME$h}),_sfc_main$21=defineComponent({...__default__$1m,props:backtopProps,emits:backtopEmits,setup(t,{emit:r}){const V=t,oe=useNamespace("backtop"),{handleClick:ie,visible:le}=useBackTop(V,r,COMPONENT_NAME$h),ue=computed(()=>({right:`${V.right}px`,bottom:`${V.bottom}px`}));return(de,pe)=>(openBlock(),createBlock(Transition,{name:`${unref(oe).namespace.value}-fade-in`},{default:withCtx(()=>[unref(le)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(unref(ue)),class:normalizeClass(unref(oe).b()),onClick:pe[0]||(pe[0]=withModifiers((...he)=>unref(ie)&&unref(ie)(...he),["stop"]))},[renderSlot(de.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).e("icon"))},{default:withCtx(()=>[createVNode(unref(caret_top_default))]),_:1},8,["class"])])],6)):createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var Backtop=_export_sfc$1(_sfc_main$21,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const ElBacktop=withInstall(Backtop),badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),_hoisted_1$$=["textContent"],__default__$1l=defineComponent({name:"ElBadge"}),_sfc_main$20=defineComponent({...__default__$1l,props:badgeProps,setup(t,{expose:r}){const V=t,oe=useNamespace("badge"),ie=computed(()=>V.isDot?"":isNumber$4(V.value)&&isNumber$4(V.max)?V.max(openBlock(),createElementBlock("div",{class:normalizeClass(unref(oe).b())},[renderSlot(le.$slots,"default"),createVNode(Transition,{name:`${unref(oe).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(oe).e("content"),unref(oe).em("content",le.type),unref(oe).is("fixed",!!le.$slots.default),unref(oe).is("dot",le.isDot)]),textContent:toDisplayString$1(unref(ie))},null,10,_hoisted_1$$),[[vShow,!le.hidden&&(unref(ie)||le.isDot)]])]),_:1},8,["name"])],2))}});var Badge=_export_sfc$1(_sfc_main$20,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const ElBadge=withInstall(Badge),breadcrumbKey=Symbol("breadcrumbKey"),breadcrumbProps=buildProps({separator:{type:String,default:"/"},separatorIcon:{type:iconPropType}}),__default__$1k=defineComponent({name:"ElBreadcrumb"}),_sfc_main$1$=defineComponent({...__default__$1k,props:breadcrumbProps,setup(t){const r=t,V=useNamespace("breadcrumb"),oe=ref();return provide(breadcrumbKey,r),onMounted(()=>{const ie=oe.value.querySelectorAll(`.${V.e("item")}`);ie.length&&ie[ie.length-1].setAttribute("aria-current","page")}),(ie,le)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:oe,class:normalizeClass(unref(V).b()),"aria-label":"Breadcrumb",role:"navigation"},[renderSlot(ie.$slots,"default")],2))}});var Breadcrumb=_export_sfc$1(_sfc_main$1$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const breadcrumbItemProps=buildProps({to:{type:definePropType([String,Object]),default:""},replace:{type:Boolean,default:!1}}),__default__$1j=defineComponent({name:"ElBreadcrumbItem"}),_sfc_main$1_=defineComponent({...__default__$1j,props:breadcrumbItemProps,setup(t){const r=t,V=getCurrentInstance(),oe=inject(breadcrumbKey,void 0),ie=useNamespace("breadcrumb"),le=V.appContext.config.globalProperties.$router,ue=ref(),de=()=>{!r.to||!le||(r.replace?le.replace(r.to):le.push(r.to))};return(pe,he)=>{var _e,$e;return openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:ue,class:normalizeClass([unref(ie).e("inner"),unref(ie).is("link",!!pe.to)]),role:"link",onClick:de},[renderSlot(pe.$slots,"default")],2),(_e=unref(oe))!=null&&_e.separatorIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(oe).separatorIcon)))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ie).e("separator")),role:"presentation"},toDisplayString$1(($e=unref(oe))==null?void 0:$e.separator),3))],2)}}});var BreadcrumbItem=_export_sfc$1(_sfc_main$1_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const ElBreadcrumb=withInstall(Breadcrumb,{BreadcrumbItem}),ElBreadcrumbItem=withNoopInstall(BreadcrumbItem),buttonGroupContextKey=Symbol("buttonGroupContextKey"),useButton=(t,r)=>{useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},computed(()=>t.type==="text"));const V=inject(buttonGroupContextKey,void 0),oe=useGlobalConfig("button"),{form:ie}=useFormItem(),le=useFormSize(computed(()=>V==null?void 0:V.size)),ue=useFormDisabled(),de=ref(),pe=useSlots(),he=computed(()=>t.type||(V==null?void 0:V.type)||""),_e=computed(()=>{var Fe,Ue,qe;return(qe=(Ue=t.autoInsertSpace)!=null?Ue:(Fe=oe.value)==null?void 0:Fe.autoInsertSpace)!=null?qe:!1}),$e=computed(()=>t.tag==="button"?{ariaDisabled:ue.value||t.loading,disabled:ue.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),Ie=computed(()=>{var Fe;const Ue=(Fe=pe.default)==null?void 0:Fe.call(pe);if(_e.value&&(Ue==null?void 0:Ue.length)===1){const qe=Ue[0];if((qe==null?void 0:qe.type)===Text$1){const Et=qe.children;return/^\p{Unified_Ideograph}{2}$/u.test(Et.trim())}}return!1});return{_disabled:ue,_size:le,_type:he,_ref:de,_props:$e,shouldAddSpace:Ie,handleClick:Fe=>{t.nativeType==="reset"&&(ie==null||ie.resetFields()),r("click",Fe)}}},buttonTypes=["default","primary","success","warning","info","danger","text",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:Boolean,type:{type:String,values:buttonTypes,default:""},icon:{type:iconPropType},nativeType:{type:String,values:buttonNativeTypes,default:"button"},loading:Boolean,loadingIcon:{type:iconPropType,default:()=>loading_default},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:definePropType([String,Object]),default:"button"}}),buttonEmits={click:t=>t instanceof MouseEvent};function bound01$1(t,r){isOnePointZero$1(t)&&(t="100%");var V=isPercentage$1(t);return t=r===360?t:Math.min(r,Math.max(0,parseFloat(t))),V&&(t=parseInt(String(t*r),10)/100),Math.abs(t-r)<1e-6?1:(r===360?t=(t<0?t%r+r:t%r)/parseFloat(String(r)):t=t%r/parseFloat(String(r)),t)}function clamp01(t){return Math.min(1,Math.max(0,t))}function isOnePointZero$1(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function isPercentage$1(t){return typeof t=="string"&&t.indexOf("%")!==-1}function boundAlpha(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function convertToPercentage(t){return t<=1?"".concat(Number(t)*100,"%"):t}function pad2(t){return t.length===1?"0"+t:String(t)}function rgbToRgb(t,r,V){return{r:bound01$1(t,255)*255,g:bound01$1(r,255)*255,b:bound01$1(V,255)*255}}function rgbToHsl(t,r,V){t=bound01$1(t,255),r=bound01$1(r,255),V=bound01$1(V,255);var oe=Math.max(t,r,V),ie=Math.min(t,r,V),le=0,ue=0,de=(oe+ie)/2;if(oe===ie)ue=0,le=0;else{var pe=oe-ie;switch(ue=de>.5?pe/(2-oe-ie):pe/(oe+ie),oe){case t:le=(r-V)/pe+(r1&&(V-=1),V<1/6?t+(r-t)*(6*V):V<1/2?r:V<2/3?t+(r-t)*(2/3-V)*6:t}function hslToRgb(t,r,V){var oe,ie,le;if(t=bound01$1(t,360),r=bound01$1(r,100),V=bound01$1(V,100),r===0)ie=V,le=V,oe=V;else{var ue=V<.5?V*(1+r):V+r-V*r,de=2*V-ue;oe=hue2rgb(de,ue,t+1/3),ie=hue2rgb(de,ue,t),le=hue2rgb(de,ue,t-1/3)}return{r:oe*255,g:ie*255,b:le*255}}function rgbToHsv(t,r,V){t=bound01$1(t,255),r=bound01$1(r,255),V=bound01$1(V,255);var oe=Math.max(t,r,V),ie=Math.min(t,r,V),le=0,ue=oe,de=oe-ie,pe=oe===0?0:de/oe;if(oe===ie)le=0;else{switch(oe){case t:le=(r-V)/de+(r>16,g:(t&65280)>>8,b:t&255}}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(t){var r={r:0,g:0,b:0},V=1,oe=null,ie=null,le=null,ue=!1,de=!1;return typeof t=="string"&&(t=stringInputToObject(t)),typeof t=="object"&&(isValidCSSUnit(t.r)&&isValidCSSUnit(t.g)&&isValidCSSUnit(t.b)?(r=rgbToRgb(t.r,t.g,t.b),ue=!0,de=String(t.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(t.h)&&isValidCSSUnit(t.s)&&isValidCSSUnit(t.v)?(oe=convertToPercentage(t.s),ie=convertToPercentage(t.v),r=hsvToRgb(t.h,oe,ie),ue=!0,de="hsv"):isValidCSSUnit(t.h)&&isValidCSSUnit(t.s)&&isValidCSSUnit(t.l)&&(oe=convertToPercentage(t.s),le=convertToPercentage(t.l),r=hslToRgb(t.h,oe,le),ue=!0,de="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(V=t.a)),V=boundAlpha(V),{ok:ue,format:t.format||de,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:V}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var r=!1;if(names[t])t=names[t],r=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var V=matchers.rgb.exec(t);return V?{r:V[1],g:V[2],b:V[3]}:(V=matchers.rgba.exec(t),V?{r:V[1],g:V[2],b:V[3],a:V[4]}:(V=matchers.hsl.exec(t),V?{h:V[1],s:V[2],l:V[3]}:(V=matchers.hsla.exec(t),V?{h:V[1],s:V[2],l:V[3],a:V[4]}:(V=matchers.hsv.exec(t),V?{h:V[1],s:V[2],v:V[3]}:(V=matchers.hsva.exec(t),V?{h:V[1],s:V[2],v:V[3],a:V[4]}:(V=matchers.hex8.exec(t),V?{r:parseIntFromHex(V[1]),g:parseIntFromHex(V[2]),b:parseIntFromHex(V[3]),a:convertHexToDecimal(V[4]),format:r?"name":"hex8"}:(V=matchers.hex6.exec(t),V?{r:parseIntFromHex(V[1]),g:parseIntFromHex(V[2]),b:parseIntFromHex(V[3]),format:r?"name":"hex"}:(V=matchers.hex4.exec(t),V?{r:parseIntFromHex(V[1]+V[1]),g:parseIntFromHex(V[2]+V[2]),b:parseIntFromHex(V[3]+V[3]),a:convertHexToDecimal(V[4]+V[4]),format:r?"name":"hex8"}:(V=matchers.hex3.exec(t),V?{r:parseIntFromHex(V[1]+V[1]),g:parseIntFromHex(V[2]+V[2]),b:parseIntFromHex(V[3]+V[3]),format:r?"name":"hex"}:!1)))))))))}function isValidCSSUnit(t){return!!matchers.CSS_UNIT.exec(String(t))}var TinyColor=function(){function t(r,V){r===void 0&&(r=""),V===void 0&&(V={});var oe;if(r instanceof t)return r;typeof r=="number"&&(r=numberInputToObject(r)),this.originalInput=r;var ie=inputToRGB(r);this.originalInput=r,this.r=ie.r,this.g=ie.g,this.b=ie.b,this.a=ie.a,this.roundA=Math.round(100*this.a)/100,this.format=(oe=V.format)!==null&&oe!==void 0?oe:ie.format,this.gradientType=V.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=ie.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},t.prototype.getLuminance=function(){var r=this.toRgb(),V,oe,ie,le=r.r/255,ue=r.g/255,de=r.b/255;return le<=.03928?V=le/12.92:V=Math.pow((le+.055)/1.055,2.4),ue<=.03928?oe=ue/12.92:oe=Math.pow((ue+.055)/1.055,2.4),de<=.03928?ie=de/12.92:ie=Math.pow((de+.055)/1.055,2.4),.2126*V+.7152*oe+.0722*ie},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(r){return this.a=boundAlpha(r),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var r=this.toHsl().s;return r===0},t.prototype.toHsv=function(){var r=rgbToHsv(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},t.prototype.toHsvString=function(){var r=rgbToHsv(this.r,this.g,this.b),V=Math.round(r.h*360),oe=Math.round(r.s*100),ie=Math.round(r.v*100);return this.a===1?"hsv(".concat(V,", ").concat(oe,"%, ").concat(ie,"%)"):"hsva(".concat(V,", ").concat(oe,"%, ").concat(ie,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var r=rgbToHsl(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},t.prototype.toHslString=function(){var r=rgbToHsl(this.r,this.g,this.b),V=Math.round(r.h*360),oe=Math.round(r.s*100),ie=Math.round(r.l*100);return this.a===1?"hsl(".concat(V,", ").concat(oe,"%, ").concat(ie,"%)"):"hsla(".concat(V,", ").concat(oe,"%, ").concat(ie,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(r){return r===void 0&&(r=!1),rgbToHex(this.r,this.g,this.b,r)},t.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},t.prototype.toHex8=function(r){return r===void 0&&(r=!1),rgbaToHex(this.r,this.g,this.b,this.a,r)},t.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},t.prototype.toHexShortString=function(r){return r===void 0&&(r=!1),this.a===1?this.toHexString(r):this.toHex8String(r)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var r=Math.round(this.r),V=Math.round(this.g),oe=Math.round(this.b);return this.a===1?"rgb(".concat(r,", ").concat(V,", ").concat(oe,")"):"rgba(".concat(r,", ").concat(V,", ").concat(oe,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var r=function(V){return"".concat(Math.round(bound01$1(V,255)*100),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var r=function(V){return Math.round(bound01$1(V,255)*100)};return this.a===1?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+rgbToHex(this.r,this.g,this.b,!1),V=0,oe=Object.entries(names);V=0,le=!V&&ie&&(r.startsWith("hex")||r==="name");return le?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(oe=this.toRgbString()),r==="prgb"&&(oe=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(oe=this.toHexString()),r==="hex3"&&(oe=this.toHexString(!0)),r==="hex4"&&(oe=this.toHex8String(!0)),r==="hex8"&&(oe=this.toHex8String()),r==="name"&&(oe=this.toName()),r==="hsl"&&(oe=this.toHslString()),r==="hsv"&&(oe=this.toHsvString()),oe||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(r){r===void 0&&(r=10);var V=this.toHsl();return V.l+=r/100,V.l=clamp01(V.l),new t(V)},t.prototype.brighten=function(r){r===void 0&&(r=10);var V=this.toRgb();return V.r=Math.max(0,Math.min(255,V.r-Math.round(255*-(r/100)))),V.g=Math.max(0,Math.min(255,V.g-Math.round(255*-(r/100)))),V.b=Math.max(0,Math.min(255,V.b-Math.round(255*-(r/100)))),new t(V)},t.prototype.darken=function(r){r===void 0&&(r=10);var V=this.toHsl();return V.l-=r/100,V.l=clamp01(V.l),new t(V)},t.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},t.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},t.prototype.desaturate=function(r){r===void 0&&(r=10);var V=this.toHsl();return V.s-=r/100,V.s=clamp01(V.s),new t(V)},t.prototype.saturate=function(r){r===void 0&&(r=10);var V=this.toHsl();return V.s+=r/100,V.s=clamp01(V.s),new t(V)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(r){var V=this.toHsl(),oe=(V.h+r)%360;return V.h=oe<0?360+oe:oe,new t(V)},t.prototype.mix=function(r,V){V===void 0&&(V=50);var oe=this.toRgb(),ie=new t(r).toRgb(),le=V/100,ue={r:(ie.r-oe.r)*le+oe.r,g:(ie.g-oe.g)*le+oe.g,b:(ie.b-oe.b)*le+oe.b,a:(ie.a-oe.a)*le+oe.a};return new t(ue)},t.prototype.analogous=function(r,V){r===void 0&&(r=6),V===void 0&&(V=30);var oe=this.toHsl(),ie=360/V,le=[this];for(oe.h=(oe.h-(ie*r>>1)+720)%360;--r;)oe.h=(oe.h+ie)%360,le.push(new t(oe));return le},t.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new t(r)},t.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var V=this.toHsv(),oe=V.h,ie=V.s,le=V.v,ue=[],de=1/r;r--;)ue.push(new t({h:oe,s:ie,v:le})),le=(le+de)%1;return ue},t.prototype.splitcomplement=function(){var r=this.toHsl(),V=r.h;return[this,new t({h:(V+72)%360,s:r.s,l:r.l}),new t({h:(V+216)%360,s:r.s,l:r.l})]},t.prototype.onBackground=function(r){var V=this.toRgb(),oe=new t(r).toRgb(),ie=V.a+oe.a*(1-V.a);return new t({r:(V.r*V.a+oe.r*oe.a*(1-V.a))/ie,g:(V.g*V.a+oe.g*oe.a*(1-V.a))/ie,b:(V.b*V.a+oe.b*oe.a*(1-V.a))/ie,a:ie})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(r){for(var V=this.toHsl(),oe=V.h,ie=[this],le=360/r,ue=1;ue{let oe={};const ie=t.color;if(ie){const le=new TinyColor(ie),ue=t.dark?le.tint(20).toString():darken(le,20);if(t.plain)oe=V.cssVarBlock({"bg-color":t.dark?darken(le,90):le.tint(90).toString(),"text-color":ie,"border-color":t.dark?darken(le,50):le.tint(50).toString(),"hover-text-color":`var(${V.cssVarName("color-white")})`,"hover-bg-color":ie,"hover-border-color":ie,"active-bg-color":ue,"active-text-color":`var(${V.cssVarName("color-white")})`,"active-border-color":ue}),r.value&&(oe[V.cssVarBlockName("disabled-bg-color")]=t.dark?darken(le,90):le.tint(90).toString(),oe[V.cssVarBlockName("disabled-text-color")]=t.dark?darken(le,50):le.tint(50).toString(),oe[V.cssVarBlockName("disabled-border-color")]=t.dark?darken(le,80):le.tint(80).toString());else{const de=t.dark?darken(le,30):le.tint(30).toString(),pe=le.isDark()?`var(${V.cssVarName("color-white")})`:`var(${V.cssVarName("color-black")})`;if(oe=V.cssVarBlock({"bg-color":ie,"text-color":pe,"border-color":ie,"hover-bg-color":de,"hover-text-color":pe,"hover-border-color":de,"active-bg-color":ue,"active-border-color":ue}),r.value){const he=t.dark?darken(le,50):le.tint(50).toString();oe[V.cssVarBlockName("disabled-bg-color")]=he,oe[V.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${V.cssVarName("color-white")})`,oe[V.cssVarBlockName("disabled-border-color")]=he}}}return oe})}const __default__$1i=defineComponent({name:"ElButton"}),_sfc_main$1Z=defineComponent({...__default__$1i,props:buttonProps,emits:buttonEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useButtonCustomStyle(oe),le=useNamespace("button"),{_ref:ue,_size:de,_type:pe,_disabled:he,_props:_e,shouldAddSpace:$e,handleClick:Ie}=useButton(oe,V);return r({ref:ue,size:de,type:pe,disabled:he,shouldAddSpace:$e}),(Ve,Fe)=>(openBlock(),createBlock(resolveDynamicComponent(Ve.tag),mergeProps({ref_key:"_ref",ref:ue},unref(_e),{class:[unref(le).b(),unref(le).m(unref(pe)),unref(le).m(unref(de)),unref(le).is("disabled",unref(he)),unref(le).is("loading",Ve.loading),unref(le).is("plain",Ve.plain),unref(le).is("round",Ve.round),unref(le).is("circle",Ve.circle),unref(le).is("text",Ve.text),unref(le).is("link",Ve.link),unref(le).is("has-bg",Ve.bg)],style:unref(ie),onClick:unref(Ie)}),{default:withCtx(()=>[Ve.loading?(openBlock(),createElementBlock(Fragment,{key:0},[Ve.$slots.loading?renderSlot(Ve.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(le).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ve.loadingIcon)))]),_:1},8,["class"]))],64)):Ve.icon||Ve.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[Ve.icon?(openBlock(),createBlock(resolveDynamicComponent(Ve.icon),{key:0})):renderSlot(Ve.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),Ve.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(le).em("text","expand")]:unref($e)})},[renderSlot(Ve.$slots,"default")],2)):createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Button=_export_sfc$1(_sfc_main$1Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type},__default__$1h=defineComponent({name:"ElButtonGroup"}),_sfc_main$1Y=defineComponent({...__default__$1h,props:buttonGroupProps,setup(t){const r=t;provide(buttonGroupContextKey,reactive({size:toRef(r,"size"),type:toRef(r,"type")}));const V=useNamespace("button");return(oe,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref(V).b("group")}`)},[renderSlot(oe.$slots,"default")],2))}});var ButtonGroup=_export_sfc$1(_sfc_main$1Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ElButton=withInstall(Button,{ButtonGroup}),ElButtonGroup$1=withNoopInstall(ButtonGroup);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var r=t.default;if(typeof r=="function"){var V=function oe(){return this instanceof oe?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};V.prototype=r.prototype}else V={};return Object.defineProperty(V,"__esModule",{value:!0}),Object.keys(t).forEach(function(oe){var ie=Object.getOwnPropertyDescriptor(t,oe);Object.defineProperty(V,oe,ie.get?ie:{enumerable:!0,get:function(){return t[oe]}})}),V}var dayjs_min={exports:{}};(function(t,r){(function(V,oe){t.exports=oe()})(commonjsGlobal,function(){var V=1e3,oe=6e4,ie=36e5,le="millisecond",ue="second",de="minute",pe="hour",he="day",_e="week",$e="month",Ie="quarter",Ve="year",Fe="date",Ue="Invalid Date",qe=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Et=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,At={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Pn){var kn=["th","st","nd","rd"],Nn=Pn%100;return"["+Pn+(kn[(Nn-20)%10]||kn[Nn]||kn[0])+"]"}},Lt=function(Pn,kn,Nn){var Dn=String(Pn);return!Dn||Dn.length>=kn?Pn:""+Array(kn+1-Dn.length).join(Nn)+Pn},hn={s:Lt,z:function(Pn){var kn=-Pn.utcOffset(),Nn=Math.abs(kn),Dn=Math.floor(Nn/60),Mn=Nn%60;return(kn<=0?"+":"-")+Lt(Dn,2,"0")+":"+Lt(Mn,2,"0")},m:function Pn(kn,Nn){if(kn.date()1)return Pn(An[0])}else{var Vn=kn.name;vn[Vn]=kn,Mn=Vn}return!Dn&&Mn&&(_n=Mn),Mn||!Dn&&_n},Sn=function(Pn,kn){if(bn(Pn))return Pn.clone();var Nn=typeof kn=="object"?kn:{};return Nn.date=Pn,Nn.args=arguments,new En(Nn)},wn=hn;wn.l=Cn,wn.i=bn,wn.w=function(Pn,kn){return Sn(Pn,{locale:kn.$L,utc:kn.$u,x:kn.$x,$offset:kn.$offset})};var En=function(){function Pn(Nn){this.$L=Cn(Nn.locale,null,!0),this.parse(Nn)}var kn=Pn.prototype;return kn.parse=function(Nn){this.$d=function(Dn){var Mn=Dn.date,Ln=Dn.utc;if(Mn===null)return new Date(NaN);if(wn.u(Mn))return new Date;if(Mn instanceof Date)return new Date(Mn);if(typeof Mn=="string"&&!/Z$/i.test(Mn)){var An=Mn.match(qe);if(An){var Vn=An[2]-1||0,Wn=(An[7]||"0").substring(0,3);return Ln?new Date(Date.UTC(An[1],Vn,An[3]||1,An[4]||0,An[5]||0,An[6]||0,Wn)):new Date(An[1],Vn,An[3]||1,An[4]||0,An[5]||0,An[6]||0,Wn)}}return new Date(Mn)}(Nn),this.$x=Nn.x||{},this.init()},kn.init=function(){var Nn=this.$d;this.$y=Nn.getFullYear(),this.$M=Nn.getMonth(),this.$D=Nn.getDate(),this.$W=Nn.getDay(),this.$H=Nn.getHours(),this.$m=Nn.getMinutes(),this.$s=Nn.getSeconds(),this.$ms=Nn.getMilliseconds()},kn.$utils=function(){return wn},kn.isValid=function(){return this.$d.toString()!==Ue},kn.isSame=function(Nn,Dn){var Mn=Sn(Nn);return this.startOf(Dn)<=Mn&&Mn<=this.endOf(Dn)},kn.isAfter=function(Nn,Dn){return Sn(Nn)68?1900:2e3)},he=function(Ue){return function(qe){this[Ue]=+qe}},_e=[/[+-]\d\d:?(\d\d)?|Z/,function(Ue){(this.zone||(this.zone={})).offset=function(qe){if(!qe||qe==="Z")return 0;var Et=qe.match(/([+-]|\d\d)/g),At=60*Et[1]+(+Et[2]||0);return At===0?0:Et[0]==="+"?-At:At}(Ue)}],$e=function(Ue){var qe=de[Ue];return qe&&(qe.indexOf?qe:qe.s.concat(qe.f))},Ie=function(Ue,qe){var Et,At=de.meridiem;if(At){for(var Lt=1;Lt<=24;Lt+=1)if(Ue.indexOf(At(Lt,0,qe))>-1){Et=Lt>12;break}}else Et=Ue===(qe?"pm":"PM");return Et},Ve={A:[ue,function(Ue){this.afternoon=Ie(Ue,!1)}],a:[ue,function(Ue){this.afternoon=Ie(Ue,!0)}],S:[/\d/,function(Ue){this.milliseconds=100*+Ue}],SS:[ie,function(Ue){this.milliseconds=10*+Ue}],SSS:[/\d{3}/,function(Ue){this.milliseconds=+Ue}],s:[le,he("seconds")],ss:[le,he("seconds")],m:[le,he("minutes")],mm:[le,he("minutes")],H:[le,he("hours")],h:[le,he("hours")],HH:[le,he("hours")],hh:[le,he("hours")],D:[le,he("day")],DD:[ie,he("day")],Do:[ue,function(Ue){var qe=de.ordinal,Et=Ue.match(/\d+/);if(this.day=Et[0],qe)for(var At=1;At<=31;At+=1)qe(At).replace(/\[|\]/g,"")===Ue&&(this.day=At)}],M:[le,he("month")],MM:[ie,he("month")],MMM:[ue,function(Ue){var qe=$e("months"),Et=($e("monthsShort")||qe.map(function(At){return At.slice(0,3)})).indexOf(Ue)+1;if(Et<1)throw new Error;this.month=Et%12||Et}],MMMM:[ue,function(Ue){var qe=$e("months").indexOf(Ue)+1;if(qe<1)throw new Error;this.month=qe%12||qe}],Y:[/[+-]?\d+/,he("year")],YY:[ie,function(Ue){this.year=pe(Ue)}],YYYY:[/\d{4}/,he("year")],Z:_e,ZZ:_e};function Fe(Ue){var qe,Et;qe=Ue,Et=de&&de.formats;for(var At=(Ue=qe.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Sn,wn,En){var xn=En&&En.toUpperCase();return wn||Et[En]||V[En]||Et[xn].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Pn,kn,Nn){return kn||Nn.slice(1)})})).match(oe),Lt=At.length,hn=0;hn-1)return new Date((Mn==="X"?1e3:1)*Dn);var An=Fe(Mn)(Dn),Vn=An.year,Wn=An.month,Fn=An.day,Yn=An.hours,tr=An.minutes,yr=An.seconds,Jn=An.milliseconds,Kn=An.zone,Gn=new Date,Qn=Fn||(Vn||Wn?1:Gn.getDate()),ur=Vn||Gn.getFullYear(),cr=0;Vn&&!Wn||(cr=Wn>0?Wn-1:Gn.getMonth());var Un=Yn||0,qn=tr||0,er=yr||0,pr=Jn||0;return Kn?new Date(Date.UTC(ur,cr,Qn,Un,qn,er,pr+60*Kn.offset*1e3)):Ln?new Date(Date.UTC(ur,cr,Qn,Un,qn,er,pr)):new Date(ur,cr,Qn,Un,qn,er,pr)}catch{return new Date("")}}(_n,Cn,vn),this.init(),xn&&xn!==!0&&(this.$L=this.locale(xn).$L),En&&_n!=this.format(Cn)&&(this.$d=new Date("")),de={}}else if(Cn instanceof Array)for(var Pn=Cn.length,kn=1;kn<=Pn;kn+=1){bn[1]=Cn[kn-1];var Nn=Et.apply(this,bn);if(Nn.isValid()){this.$d=Nn.$d,this.$L=Nn.$L,this.init();break}kn===Pn&&(this.$d=new Date(""))}else Lt.call(this,hn)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports),timeUnits$2=["hours","minutes","seconds"],DEFAULT_FORMATS_TIME="HH:mm:ss",DEFAULT_FORMATS_DATE="YYYY-MM-DD",DEFAULT_FORMATS_DATEPICKER={date:DEFAULT_FORMATS_DATE,dates:DEFAULT_FORMATS_DATE,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,monthrange:"YYYY-MM",daterange:DEFAULT_FORMATS_DATE,datetimerange:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`},buildTimeList=(t,r)=>[t>0?t-1:void 0,t,tArray.from(Array.from({length:t}).keys()),extractDateFormat=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function(t,r){const V=isDate$3(t),oe=isDate$3(r);return V&&oe?t.getTime()===r.getTime():!V&&!oe?t===r:!1},valueEquals=function(t,r){const V=isArray$c(t),oe=isArray$c(r);return V&&oe?t.length!==r.length?!1:t.every((ie,le)=>dateEquals(ie,r[le])):!V&&!oe?dateEquals(t,r):!1},parseDate$1=function(t,r,V){const oe=isEmpty(r)||r==="x"?dayjs(t).locale(V):dayjs(t,r).locale(V);return oe.isValid()?oe:void 0},formatter=function(t,r,V){return isEmpty(r)?t:r==="x"?+t:dayjs(t).locale(V).format(r)},makeList=(t,r)=>{var V;const oe=[],ie=r==null?void 0:r();for(let le=0;le({})},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:{type:Boolean,default:!1},...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),_hoisted_1$_=["id","name","placeholder","value","disabled","readonly"],_hoisted_2$F=["id","name","placeholder","value","disabled","readonly"],__default__$1g=defineComponent({name:"Picker"}),_sfc_main$1X=defineComponent({...__default__$1g,props:timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(t,{expose:r,emit:V}){const oe=t,ie=useAttrs$1(),{lang:le}=useLocale(),ue=useNamespace("date"),de=useNamespace("input"),pe=useNamespace("range"),{form:he,formItem:_e}=useFormItem(),$e=inject("ElPopperOptions",{}),Ie=ref(),Ve=ref(),Fe=ref(!1),Ue=ref(!1),qe=ref(null);let Et=!1,At=!1;const Lt=computed(()=>[ue.b("editor"),ue.bm("editor",oe.type),de.e("wrapper"),ue.is("disabled",Fn.value),ue.is("active",Fe.value),pe.b("editor"),dr?pe.bm("editor",dr.value):"",ie.class]),hn=computed(()=>[de.e("icon"),pe.e("close-icon"),Qn.value?"":pe.e("close-icon--hidden")]);watch(Fe,Zn=>{Zn?nextTick(()=>{Zn&&(qe.value=oe.modelValue)}):(Cr.value=null,nextTick(()=>{_n(oe.modelValue)}))});const _n=(Zn,Or)=>{(Or||!valueEquals(Zn,qe.value))&&(V("change",Zn),oe.validateEvent&&(_e==null||_e.validate("change").catch(Lr=>void 0)))},vn=Zn=>{if(!valueEquals(oe.modelValue,Zn)){let Or;isArray$c(Zn)?Or=Zn.map(Lr=>formatter(Lr,oe.valueFormat,le.value)):Zn&&(Or=formatter(Zn,oe.valueFormat,le.value)),V("update:modelValue",Zn&&Or,le.value)}},bn=Zn=>{V("keydown",Zn)},Cn=computed(()=>{if(Ve.value){const Zn=Er.value?Ve.value:Ve.value.$el;return Array.from(Zn.querySelectorAll("input"))}return[]}),Sn=(Zn,Or,Lr)=>{const Ur=Cn.value;Ur.length&&(!Lr||Lr==="min"?(Ur[0].setSelectionRange(Zn,Or),Ur[0].focus()):Lr==="max"&&(Ur[1].setSelectionRange(Zn,Or),Ur[1].focus()))},wn=()=>{Ln(!0,!0),nextTick(()=>{At=!1})},En=(Zn="",Or=!1)=>{Or||(At=!0),Fe.value=Or;let Lr;isArray$c(Zn)?Lr=Zn.map(Ur=>Ur.toDate()):Lr=Zn&&Zn.toDate(),Cr.value=null,vn(Lr)},xn=()=>{Ue.value=!0},Pn=()=>{V("visible-change",!0)},kn=Zn=>{(Zn==null?void 0:Zn.key)===EVENT_CODE.esc&&Ln(!0,!0)},Nn=()=>{Ue.value=!1,Fe.value=!1,At=!1,V("visible-change",!1)},Dn=()=>{Fe.value=!0},Mn=()=>{Fe.value=!1},Ln=(Zn=!0,Or=!1)=>{At=Or;const[Lr,Ur]=unref(Cn);let Kr=Lr;!Zn&&Er.value&&(Kr=Ur),Kr&&Kr.focus()},An=Zn=>{oe.readonly||Fn.value||Fe.value||At||(Fe.value=!0,V("focus",Zn))};let Vn;const Wn=Zn=>{const Or=async()=>{setTimeout(()=>{var Lr;Vn===Or&&(!((Lr=Ie.value)!=null&&Lr.isFocusInsideContent()&&!Et)&&Cn.value.filter(Ur=>Ur.contains(document.activeElement)).length===0&&(gr(),Fe.value=!1,V("blur",Zn),oe.validateEvent&&(_e==null||_e.validate("blur").catch(Ur=>void 0))),Et=!1)},0)};Vn=Or,Or()},Fn=computed(()=>oe.disabled||(he==null?void 0:he.disabled)),Yn=computed(()=>{let Zn;if(cr.value?mr.value.getDefaultValue&&(Zn=mr.value.getDefaultValue()):isArray$c(oe.modelValue)?Zn=oe.modelValue.map(Or=>parseDate$1(Or,oe.valueFormat,le.value)):Zn=parseDate$1(oe.modelValue,oe.valueFormat,le.value),mr.value.getRangeAvailableTime){const Or=mr.value.getRangeAvailableTime(Zn);isEqual$1(Or,Zn)||(Zn=Or,vn(isArray$c(Zn)?Zn.map(Lr=>Lr.toDate()):Zn.toDate()))}return isArray$c(Zn)&&Zn.some(Or=>!Or)&&(Zn=[]),Zn}),tr=computed(()=>{if(!mr.value.panelReady)return"";const Zn=fr(Yn.value);return isArray$c(Cr.value)?[Cr.value[0]||Zn&&Zn[0]||"",Cr.value[1]||Zn&&Zn[1]||""]:Cr.value!==null?Cr.value:!Jn.value&&cr.value||!Fe.value&&cr.value?"":Zn?Kn.value?Zn.join(", "):Zn:""}),yr=computed(()=>oe.type.includes("time")),Jn=computed(()=>oe.type.startsWith("time")),Kn=computed(()=>oe.type==="dates"),Gn=computed(()=>oe.prefixIcon||(yr.value?clock_default:calendar_default)),Qn=ref(!1),ur=Zn=>{oe.readonly||Fn.value||Qn.value&&(Zn.stopPropagation(),wn(),vn(null),_n(null,!0),Qn.value=!1,Fe.value=!1,mr.value.handleClear&&mr.value.handleClear())},cr=computed(()=>{const{modelValue:Zn}=oe;return!Zn||isArray$c(Zn)&&!Zn.filter(Boolean).length}),Un=async Zn=>{var Or;oe.readonly||Fn.value||(((Or=Zn.target)==null?void 0:Or.tagName)!=="INPUT"||Cn.value.includes(document.activeElement))&&(Fe.value=!0)},qn=()=>{oe.readonly||Fn.value||!cr.value&&oe.clearable&&(Qn.value=!0)},er=()=>{Qn.value=!1},pr=Zn=>{var Or;oe.readonly||Fn.value||(((Or=Zn.touches[0].target)==null?void 0:Or.tagName)!=="INPUT"||Cn.value.includes(document.activeElement))&&(Fe.value=!0)},Er=computed(()=>oe.type.includes("range")),dr=useFormSize(),xr=computed(()=>{var Zn,Or;return(Or=(Zn=unref(Ie))==null?void 0:Zn.popperRef)==null?void 0:Or.contentRef}),wr=computed(()=>{var Zn;return unref(Er)?unref(Ve):(Zn=unref(Ve))==null?void 0:Zn.$el});onClickOutside$1(wr,Zn=>{const Or=unref(xr),Lr=unref(wr);Or&&(Zn.target===Or||Zn.composedPath().includes(Or))||Zn.target===Lr||Zn.composedPath().includes(Lr)||(Fe.value=!1)});const Cr=ref(null),gr=()=>{if(Cr.value){const Zn=or(tr.value);Zn&&kr(Zn)&&(vn(isArray$c(Zn)?Zn.map(Or=>Or.toDate()):Zn.toDate()),Cr.value=null)}Cr.value===""&&(vn(null),_n(null),Cr.value=null)},or=Zn=>Zn?mr.value.parseUserInput(Zn):null,fr=Zn=>Zn?mr.value.formatToString(Zn):null,kr=Zn=>mr.value.isValidValue(Zn),br=async Zn=>{if(oe.readonly||Fn.value)return;const{code:Or}=Zn;if(bn(Zn),Or===EVENT_CODE.esc){Fe.value===!0&&(Fe.value=!1,Zn.preventDefault(),Zn.stopPropagation());return}if(Or===EVENT_CODE.down&&(mr.value.handleFocusPicker&&(Zn.preventDefault(),Zn.stopPropagation()),Fe.value===!1&&(Fe.value=!0,await nextTick()),mr.value.handleFocusPicker)){mr.value.handleFocusPicker();return}if(Or===EVENT_CODE.tab){Et=!0;return}if(Or===EVENT_CODE.enter||Or===EVENT_CODE.numpadEnter){(Cr.value===null||Cr.value===""||kr(or(tr.value)))&&(gr(),Fe.value=!1),Zn.stopPropagation();return}if(Cr.value){Zn.stopPropagation();return}mr.value.handleKeydownInput&&mr.value.handleKeydownInput(Zn)},Ar=Zn=>{Cr.value=Zn,Fe.value||(Fe.value=!0)},Dr=Zn=>{const Or=Zn.target;Cr.value?Cr.value=[Or.value,Cr.value[1]]:Cr.value=[Or.value,null]},Br=Zn=>{const Or=Zn.target;Cr.value?Cr.value=[Cr.value[0],Or.value]:Cr.value=[null,Or.value]},zr=()=>{var Zn;const Or=Cr.value,Lr=or(Or&&Or[0]),Ur=unref(Yn);if(Lr&&Lr.isValid()){Cr.value=[fr(Lr),((Zn=tr.value)==null?void 0:Zn[1])||null];const Kr=[Lr,Ur&&(Ur[1]||null)];kr(Kr)&&(vn(Kr),Cr.value=null)}},Rr=()=>{var Zn;const Or=unref(Cr),Lr=or(Or&&Or[1]),Ur=unref(Yn);if(Lr&&Lr.isValid()){Cr.value=[((Zn=unref(tr))==null?void 0:Zn[0])||null,fr(Lr)];const Kr=[Ur&&Ur[0],Lr];kr(Kr)&&(vn(Kr),Cr.value=null)}},mr=ref({}),ir=Zn=>{mr.value[Zn[0]]=Zn[1],mr.value.panelReady=!0},ar=Zn=>{V("calendar-change",Zn)},$r=(Zn,Or,Lr)=>{V("panel-change",Zn,Or,Lr)};return provide("EP_PICKER_BASE",{props:oe}),r({focus:Ln,handleFocusInput:An,handleBlurInput:Wn,handleOpen:Dn,handleClose:Mn,onPick:En}),(Zn,Or)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:Ie,visible:Fe.value,effect:"light",pure:"",trigger:"click"},Zn.$attrs,{role:"dialog",teleported:"",transition:`${unref(ue).namespace.value}-zoom-in-top`,"popper-class":[`${unref(ue).namespace.value}-picker__popper`,Zn.popperClass],"popper-options":unref($e),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:xn,onShow:Pn,onHide:Nn}),{default:withCtx(()=>[unref(Er)?(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:Ve,class:normalizeClass(unref(Lt)),style:normalizeStyle$1(Zn.$attrs.style),onClick:An,onMouseenter:qn,onMouseleave:er,onTouchstart:pr,onKeydown:br},[unref(Gn)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(de).e("icon"),unref(pe).e("icon")]),onMousedown:withModifiers(Un,["prevent"]),onTouchstart:pr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Gn))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:Zn.id&&Zn.id[0],autocomplete:"off",name:Zn.name&&Zn.name[0],placeholder:Zn.startPlaceholder,value:unref(tr)&&unref(tr)[0],disabled:unref(Fn),readonly:!Zn.editable||Zn.readonly,class:normalizeClass(unref(pe).b("input")),onMousedown:Un,onInput:Dr,onChange:zr,onFocus:An,onBlur:Wn},null,42,_hoisted_1$_),renderSlot(Zn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(pe).b("separator"))},toDisplayString$1(Zn.rangeSeparator),3)]),createBaseVNode("input",{id:Zn.id&&Zn.id[1],autocomplete:"off",name:Zn.name&&Zn.name[1],placeholder:Zn.endPlaceholder,value:unref(tr)&&unref(tr)[1],disabled:unref(Fn),readonly:!Zn.editable||Zn.readonly,class:normalizeClass(unref(pe).b("input")),onMousedown:Un,onFocus:An,onBlur:Wn,onInput:Br,onChange:Rr},null,42,_hoisted_2$F),Zn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(hn)),onClick:ur},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Zn.clearIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(unref(ElInput),{key:0,id:Zn.id,ref_key:"inputRef",ref:Ve,"container-role":"combobox","model-value":unref(tr),name:Zn.name,size:unref(dr),disabled:unref(Fn),placeholder:Zn.placeholder,class:normalizeClass([unref(ue).b("editor"),unref(ue).bm("editor",Zn.type),Zn.$attrs.class]),style:normalizeStyle$1(Zn.$attrs.style),readonly:!Zn.editable||Zn.readonly||unref(Kn)||Zn.type==="week",label:Zn.label,tabindex:Zn.tabindex,"validate-event":!1,onInput:Ar,onFocus:An,onBlur:Wn,onKeydown:br,onChange:gr,onMousedown:Un,onMouseenter:qn,onMouseleave:er,onTouchstart:pr,onClick:Or[0]||(Or[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[unref(Gn)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(de).e("icon")),onMousedown:withModifiers(Un,["prevent"]),onTouchstart:pr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Gn))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[Qn.value&&Zn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(de).e("icon")} clear-icon`),onClick:withModifiers(ur,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Zn.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:withCtx(()=>[renderSlot(Zn.$slots,"default",{visible:Fe.value,actualVisible:Ue.value,parsedValue:unref(Yn),format:Zn.format,unlinkPanels:Zn.unlinkPanels,type:Zn.type,defaultValue:Zn.defaultValue,onPick:En,onSelectRange:Sn,onSetPickerOption:ir,onCalendarChange:ar,onPanelChange:$r,onKeydown:kn,onMousedown:Or[1]||(Or[1]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var CommonPicker=_export_sfc$1(_sfc_main$1X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const panelTimePickerProps=buildProps({...timePanelSharedProps,datetimeRole:String,parsedValue:{type:definePropType(Object)}}),useTimePanel=({getAvailableHours:t,getAvailableMinutes:r,getAvailableSeconds:V})=>{const oe=(ue,de,pe,he)=>{const _e={hour:t,minute:r,second:V};let $e=ue;return["hour","minute","second"].forEach(Ie=>{if(_e[Ie]){let Ve;const Fe=_e[Ie];switch(Ie){case"minute":{Ve=Fe($e.hour(),de,he);break}case"second":{Ve=Fe($e.hour(),$e.minute(),de,he);break}default:{Ve=Fe(de,he);break}}if(Ve!=null&&Ve.length&&!Ve.includes($e[Ie]())){const Ue=pe?0:Ve.length-1;$e=$e[Ie](Ve[Ue])}}}),$e},ie={};return{timePickerOptions:ie,getAvailableTime:oe,onSetOption:([ue,de])=>{ie[ue]=de}}},makeAvailableArr=t=>{const r=(oe,ie)=>oe||ie,V=oe=>oe!==!0;return t.map(r).filter(V)},getTimeLists=(t,r,V)=>({getHoursList:(ue,de)=>makeList(24,t&&(()=>t==null?void 0:t(ue,de))),getMinutesList:(ue,de,pe)=>makeList(60,r&&(()=>r==null?void 0:r(ue,de,pe))),getSecondsList:(ue,de,pe,he)=>makeList(60,V&&(()=>V==null?void 0:V(ue,de,pe,he)))}),buildAvailableTimeSlotGetter=(t,r,V)=>{const{getHoursList:oe,getMinutesList:ie,getSecondsList:le}=getTimeLists(t,r,V);return{getAvailableHours:(he,_e)=>makeAvailableArr(oe(he,_e)),getAvailableMinutes:(he,_e,$e)=>makeAvailableArr(ie(he,_e,$e)),getAvailableSeconds:(he,_e,$e,Ie)=>makeAvailableArr(le(he,_e,$e,Ie))}},useOldValue=t=>{const r=ref(t.parsedValue);return watch(()=>t.visible,V=>{V||(r.value=t.parsedValue)}),r},nodeList=new Map;let startClick;isClient$1&&(document.addEventListener("mousedown",t=>startClick=t),document.addEventListener("mouseup",t=>{for(const r of nodeList.values())for(const{documentHandler:V}of r)V(t,startClick)}));function createDocumentHandler(t,r){let V=[];return Array.isArray(r.arg)?V=r.arg:isElement$2(r.arg)&&V.push(r.arg),function(oe,ie){const le=r.instance.popperRef,ue=oe.target,de=ie==null?void 0:ie.target,pe=!r||!r.instance,he=!ue||!de,_e=t.contains(ue)||t.contains(de),$e=t===ue,Ie=V.length&&V.some(Fe=>Fe==null?void 0:Fe.contains(ue))||V.length&&V.includes(de),Ve=le&&(le.contains(ue)||le.contains(de));pe||he||_e||$e||Ie||Ve||r.value(oe,ie)}}const ClickOutside={beforeMount(t,r){nodeList.has(t)||nodeList.set(t,[]),nodeList.get(t).push({documentHandler:createDocumentHandler(t,r),bindingFn:r.value})},updated(t,r){nodeList.has(t)||nodeList.set(t,[]);const V=nodeList.get(t),oe=V.findIndex(le=>le.bindingFn===r.oldValue),ie={documentHandler:createDocumentHandler(t,r),bindingFn:r.value};oe>=0?V.splice(oe,1,ie):V.push(ie)},unmounted(t){nodeList.delete(t)}},REPEAT_INTERVAL=100,REPEAT_DELAY=600,vRepeatClick={beforeMount(t,r){const V=r.value,{interval:oe=REPEAT_INTERVAL,delay:ie=REPEAT_DELAY}=isFunction$5(V)?{}:V;let le,ue;const de=()=>isFunction$5(V)?V():V.handler(),pe=()=>{ue&&(clearTimeout(ue),ue=void 0),le&&(clearInterval(le),le=void 0)};t.addEventListener("mousedown",he=>{he.button===0&&(pe(),de(),document.addEventListener("mouseup",()=>pe(),{once:!0}),ue=setTimeout(()=>{le=setInterval(()=>{de()},oe)},ie))})}},FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=t=>{if(FOCUS_STACK.length===0)return;const r=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(r.length>0&&t.code===EVENT_CODE.tab){if(r.length===1){t.preventDefault(),document.activeElement!==r[0]&&r[0].focus();return}const V=t.shiftKey,oe=t.target===r[0],ie=t.target===r[r.length-1];oe&&V&&(t.preventDefault(),r[r.length-1].focus()),ie&&!V&&(t.preventDefault(),r[0].focus())}},TrapFocus={beforeMount(t){t[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(t),FOCUS_STACK.push(t),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(t){nextTick(()=>{t[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(t)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}};var v=!1,o,f$1,s,u$1,d$1,N$1,l,p$1,m$3,w,D$2,x,E,M,F$1;function a$2(){if(!v){v=!0;var t=navigator.userAgent,r=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),V=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(x=/\b(iPhone|iP[ao]d)/.exec(t),E=/\b(iP[ao]d)/.exec(t),w=/Android/i.exec(t),M=/FBAN\/\w+;/i.exec(t),F$1=/Mobile/i.exec(t),D$2=!!/Win64/.exec(t),r){o=r[1]?parseFloat(r[1]):r[5]?parseFloat(r[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var oe=/(?:Trident\/(\d+.\d+))/.exec(t);N$1=oe?parseFloat(oe[1])+4:o,f$1=r[2]?parseFloat(r[2]):NaN,s=r[3]?parseFloat(r[3]):NaN,u$1=r[4]?parseFloat(r[4]):NaN,u$1?(r=/(?:Chrome\/(\d+\.\d+))/.exec(t),d$1=r&&r[1]?parseFloat(r[1]):NaN):d$1=NaN}else o=f$1=s=d$1=u$1=NaN;if(V){if(V[1]){var ie=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=ie?parseFloat(ie[1].replace("_",".")):!0}else l=!1;p$1=!!V[2],m$3=!!V[3]}else l=p$1=m$3=!1}}var _$2={ie:function(){return a$2()||o},ieCompatibilityMode:function(){return a$2()||N$1>o},ie64:function(){return _$2.ie()&&D$2},firefox:function(){return a$2()||f$1},opera:function(){return a$2()||s},webkit:function(){return a$2()||u$1},safari:function(){return _$2.webkit()},chrome:function(){return a$2()||d$1},windows:function(){return a$2()||p$1},osx:function(){return a$2()||l},linux:function(){return a$2()||m$3},iphone:function(){return a$2()||x},mobile:function(){return a$2()||x||E||w||F$1},nativeApp:function(){return a$2()||M},android:function(){return a$2()||w},ipad:function(){return a$2()||E}},A$1=_$2,c$2=!!(typeof window<"u"&&window.document&&window.document.createElement),U$1={canUseDOM:c$2,canUseWorkers:typeof Worker<"u",canUseEventListeners:c$2&&!!(window.addEventListener||window.attachEvent),canUseViewport:c$2&&!!window.screen,isInWorker:!c$2},h$1=U$1,X;h$1.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S(t,r){if(!h$1.canUseDOM||r&&!("addEventListener"in document))return!1;var V="on"+t,oe=V in document;if(!oe){var ie=document.createElement("div");ie.setAttribute(V,"return;"),oe=typeof ie[V]=="function"}return!oe&&X&&t==="wheel"&&(oe=document.implementation.hasFeature("Events.wheel","3.0")),oe}var b$1=S,O$1=10,I$1=40,P$1=800;function T(t){var r=0,V=0,oe=0,ie=0;return"detail"in t&&(V=t.detail),"wheelDelta"in t&&(V=-t.wheelDelta/120),"wheelDeltaY"in t&&(V=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(r=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(r=V,V=0),oe=r*O$1,ie=V*O$1,"deltaY"in t&&(ie=t.deltaY),"deltaX"in t&&(oe=t.deltaX),(oe||ie)&&t.deltaMode&&(t.deltaMode==1?(oe*=I$1,ie*=I$1):(oe*=P$1,ie*=P$1)),oe&&!r&&(r=oe<1?-1:1),ie&&!V&&(V=ie<1?-1:1),{spinX:r,spinY:V,pixelX:oe,pixelY:ie}}T.getEventType=function(){return A$1.firefox()?"DOMMouseScroll":b$1("wheel")?"wheel":"mousewheel"};var Y=T;/** * 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 mousewheel=function(t,r){if(t&&t.addEventListener){const V=function(oe){const ie=Y(oe);r&&Reflect.apply(r,this,[oe,ie])};t.addEventListener("wheel",V,{passive:!0})}},Mousewheel={beforeMount(t,r){mousewheel(t,r.value)}},basicTimeSpinnerProps=buildProps({role:{type:String,required:!0},spinnerDate:{type:definePropType(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:definePropType(String),default:""},...disabledTimeListsProps}),_hoisted_1$Z=["onClick"],_hoisted_2$E=["onMouseenter"],_sfc_main$1W=defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:["change","select-range","set-option"],setup(t,{emit:r}){const V=t,oe=useNamespace("time"),{getHoursList:ie,getMinutesList:le,getSecondsList:ue}=getTimeLists(V.disabledHours,V.disabledMinutes,V.disabledSeconds);let de=!1;const pe=ref(),he=ref(),_e=ref(),$e=ref(),Ie={hours:he,minutes:_e,seconds:$e},Ve=computed(()=>V.showSeconds?timeUnits$2:timeUnits$2.slice(0,2)),Fe=computed(()=>{const{spinnerDate:An}=V,Vn=An.hour(),Wn=An.minute(),Fn=An.second();return{hours:Vn,minutes:Wn,seconds:Fn}}),Ue=computed(()=>{const{hours:An,minutes:Vn}=unref(Fe);return{hours:ie(V.role),minutes:le(An,V.role),seconds:ue(An,Vn,V.role)}}),qe=computed(()=>{const{hours:An,minutes:Vn,seconds:Wn}=unref(Fe);return{hours:buildTimeList(An,23),minutes:buildTimeList(Vn,59),seconds:buildTimeList(Wn,59)}}),Et=debounce(An=>{de=!1,hn(An)},200),At=An=>{if(!!!V.amPmMode)return"";const Wn=V.amPmMode==="A";let Fn=An<12?" am":" pm";return Wn&&(Fn=Fn.toUpperCase()),Fn},Lt=An=>{let Vn;switch(An){case"hours":Vn=[0,2];break;case"minutes":Vn=[3,5];break;case"seconds":Vn=[6,8];break}const[Wn,Fn]=Vn;r("select-range",Wn,Fn),pe.value=An},hn=An=>{bn(An,unref(Fe)[An])},_n=()=>{hn("hours"),hn("minutes"),hn("seconds")},vn=An=>An.querySelector(`.${oe.namespace.value}-scrollbar__wrap`),bn=(An,Vn)=>{if(V.arrowControl)return;const Wn=unref(Ie[An]);Wn&&Wn.$el&&(vn(Wn.$el).scrollTop=Math.max(0,Vn*Cn(An)))},Cn=An=>{const Vn=unref(Ie[An]),Wn=Vn==null?void 0:Vn.$el.querySelector("li");return Wn&&Number.parseFloat(getStyle$1(Wn,"height"))||0},Sn=()=>{En(1)},wn=()=>{En(-1)},En=An=>{pe.value||Lt("hours");const Vn=pe.value,Wn=unref(Fe)[Vn],Fn=pe.value==="hours"?24:60,Yn=xn(Vn,Wn,An,Fn);Pn(Vn,Yn),bn(Vn,Yn),nextTick(()=>Lt(Vn))},xn=(An,Vn,Wn,Fn)=>{let Yn=(Vn+Wn+Fn)%Fn;const tr=unref(Ue)[An];for(;tr[Yn]&&Yn!==Vn;)Yn=(Yn+Wn+Fn)%Fn;return Yn},Pn=(An,Vn)=>{if(unref(Ue)[An][Vn])return;const{hours:Yn,minutes:tr,seconds:yr}=unref(Fe);let Jn;switch(An){case"hours":Jn=V.spinnerDate.hour(Vn).minute(tr).second(yr);break;case"minutes":Jn=V.spinnerDate.hour(Yn).minute(Vn).second(yr);break;case"seconds":Jn=V.spinnerDate.hour(Yn).minute(tr).second(Vn);break}r("change",Jn)},kn=(An,{value:Vn,disabled:Wn})=>{Wn||(Pn(An,Vn),Lt(An),bn(An,Vn))},Nn=An=>{de=!0,Et(An);const Vn=Math.min(Math.round((vn(unref(Ie[An]).$el).scrollTop-(Dn(An)*.5-10)/Cn(An)+3)/Cn(An)),An==="hours"?23:59);Pn(An,Vn)},Dn=An=>unref(Ie[An]).$el.offsetHeight,Mn=()=>{const An=Vn=>{const Wn=unref(Ie[Vn]);Wn&&Wn.$el&&(vn(Wn.$el).onscroll=()=>{Nn(Vn)})};An("hours"),An("minutes"),An("seconds")};onMounted(()=>{nextTick(()=>{!V.arrowControl&&Mn(),_n(),V.role==="start"&&Lt("hours")})});const Ln=(An,Vn)=>{Ie[Vn].value=An};return r("set-option",[`${V.role}_scrollDown`,En]),r("set-option",[`${V.role}_emitSelectRange`,Lt]),watch(()=>V.spinnerDate,()=>{de||_n()}),(An,Vn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b("spinner"),{"has-seconds":An.showSeconds}])},[An.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(Ve),Wn=>(openBlock(),createBlock(unref(ElScrollbar),{key:Wn,ref_for:!0,ref:Fn=>Ln(Fn,Wn),class:normalizeClass(unref(oe).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(oe).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Fn=>Lt(Wn),onMousemove:Fn=>hn(Wn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ue)[Wn],(Fn,Yn)=>(openBlock(),createElementBlock("li",{key:Yn,class:normalizeClass([unref(oe).be("spinner","item"),unref(oe).is("active",Yn===unref(Fe)[Wn]),unref(oe).is("disabled",Fn)]),onClick:tr=>kn(Wn,{value:Yn,disabled:Fn})},[Wn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(An.amPmMode?Yn%12||12:Yn)).slice(-2))+toDisplayString$1(At(Yn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Yn).slice(-2)),1)],64))],10,_hoisted_1$Z))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),An.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(Ve),Wn=>(openBlock(),createElementBlock("div",{key:Wn,class:normalizeClass([unref(oe).be("spinner","wrapper"),unref(oe).is("arrow")]),onMouseenter:Fn=>Lt(Wn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(oe).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),wn]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(oe).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),Sn]]),createBaseVNode("ul",{class:normalizeClass(unref(oe).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(qe)[Wn],(Fn,Yn)=>(openBlock(),createElementBlock("li",{key:Yn,class:normalizeClass([unref(oe).be("spinner","item"),unref(oe).is("active",Fn===unref(Fe)[Wn]),unref(oe).is("disabled",unref(Ue)[Wn][Fn])])},[typeof Fn=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[Wn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(An.amPmMode?Fn%12||12:Fn)).slice(-2))+toDisplayString$1(At(Fn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Fn).slice(-2)),1)],64))],64)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$E))),128)):createCommentVNode("v-if",!0)],2))}});var TimeSpinner=_export_sfc$1(_sfc_main$1W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$1V=defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup(t,{emit:r}){const V=t,oe=inject("EP_PICKER_BASE"),{arrowControl:ie,disabledHours:le,disabledMinutes:ue,disabledSeconds:de,defaultValue:pe}=oe.props,{getAvailableHours:he,getAvailableMinutes:_e,getAvailableSeconds:$e}=buildAvailableTimeSlotGetter(le,ue,de),Ie=useNamespace("time"),{t:Ve,lang:Fe}=useLocale(),Ue=ref([0,2]),qe=useOldValue(V),Et=computed(()=>isUndefined$1(V.actualVisible)?`${Ie.namespace.value}-zoom-in-top`:""),At=computed(()=>V.format.includes("ss")),Lt=computed(()=>V.format.includes("A")?"A":V.format.includes("a")?"a":""),hn=Ln=>{const An=dayjs(Ln).locale(Fe.value),Vn=kn(An);return An.isSame(Vn)},_n=()=>{r("pick",qe.value,!1)},vn=(Ln=!1,An=!1)=>{An||r("pick",V.parsedValue,Ln)},bn=Ln=>{if(!V.visible)return;const An=kn(Ln).millisecond(0);r("pick",An,!0)},Cn=(Ln,An)=>{r("select-range",Ln,An),Ue.value=[Ln,An]},Sn=Ln=>{const An=[0,3].concat(At.value?[6]:[]),Vn=["hours","minutes"].concat(At.value?["seconds"]:[]),Fn=(An.indexOf(Ue.value[0])+Ln+An.length)%An.length;En.start_emitSelectRange(Vn[Fn])},wn=Ln=>{const An=Ln.code,{left:Vn,right:Wn,up:Fn,down:Yn}=EVENT_CODE;if([Vn,Wn].includes(An)){Sn(An===Vn?-1:1),Ln.preventDefault();return}if([Fn,Yn].includes(An)){const tr=An===Fn?-1:1;En.start_scrollDown(tr),Ln.preventDefault();return}},{timePickerOptions:En,onSetOption:xn,getAvailableTime:Pn}=useTimePanel({getAvailableHours:he,getAvailableMinutes:_e,getAvailableSeconds:$e}),kn=Ln=>Pn(Ln,V.datetimeRole||"",!0),Nn=Ln=>Ln?dayjs(Ln,V.format).locale(Fe.value):null,Dn=Ln=>Ln?Ln.format(V.format):null,Mn=()=>dayjs(pe).locale(Fe.value);return r("set-picker-option",["isValidValue",hn]),r("set-picker-option",["formatToString",Dn]),r("set-picker-option",["parseUserInput",Nn]),r("set-picker-option",["handleKeydownInput",wn]),r("set-picker-option",["getRangeAvailableTime",kn]),r("set-picker-option",["getDefaultValue",Mn]),(Ln,An)=>(openBlock(),createBlock(Transition,{name:unref(Et)},{default:withCtx(()=>[Ln.actualVisible||Ln.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ie).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(Ie).be("panel","content"),{"has-seconds":unref(At)}])},[createVNode(TimeSpinner,{ref:"spinner",role:Ln.datetimeRole||"start","arrow-control":unref(ie),"show-seconds":unref(At),"am-pm-mode":unref(Lt),"spinner-date":Ln.parsedValue,"disabled-hours":unref(le),"disabled-minutes":unref(ue),"disabled-seconds":unref(de),onChange:bn,onSetOption:unref(xn),onSelectRange:Cn},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),createBaseVNode("div",{class:normalizeClass(unref(Ie).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ie).be("panel","btn"),"cancel"]),onClick:_n},toDisplayString$1(unref(Ve)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ie).be("panel","btn"),"confirm"]),onClick:An[0]||(An[0]=Vn=>vn())},toDisplayString$1(unref(Ve)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"]))}});var TimePickPanel=_export_sfc$1(_sfc_main$1V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const panelTimeRangeProps=buildProps({...timePanelSharedProps,parsedValue:{type:definePropType(Array)}}),_hoisted_1$Y=["disabled"],_sfc_main$1U=defineComponent({__name:"panel-time-range",props:panelTimeRangeProps,emits:["pick","select-range","set-picker-option"],setup(t,{emit:r}){const V=t,oe=(cr,Un)=>{const qn=[];for(let er=cr;er<=Un;er++)qn.push(er);return qn},{t:ie,lang:le}=useLocale(),ue=useNamespace("time"),de=useNamespace("picker"),pe=inject("EP_PICKER_BASE"),{arrowControl:he,disabledHours:_e,disabledMinutes:$e,disabledSeconds:Ie,defaultValue:Ve}=pe.props,Fe=computed(()=>[ue.be("range-picker","body"),ue.be("panel","content"),ue.is("arrow",he),hn.value?"has-seconds":""]),Ue=computed(()=>[ue.be("range-picker","body"),ue.be("panel","content"),ue.is("arrow",he),hn.value?"has-seconds":""]),qe=computed(()=>V.parsedValue[0]),Et=computed(()=>V.parsedValue[1]),At=useOldValue(V),Lt=()=>{r("pick",At.value,!1)},hn=computed(()=>V.format.includes("ss")),_n=computed(()=>V.format.includes("A")?"A":V.format.includes("a")?"a":""),vn=(cr=!1)=>{r("pick",[qe.value,Et.value],cr)},bn=cr=>{wn(cr.millisecond(0),Et.value)},Cn=cr=>{wn(qe.value,cr.millisecond(0))},Sn=cr=>{const Un=cr.map(er=>dayjs(er).locale(le.value)),qn=Wn(Un);return Un[0].isSame(qn[0])&&Un[1].isSame(qn[1])},wn=(cr,Un)=>{r("pick",[cr,Un],!0)},En=computed(()=>qe.value>Et.value),xn=ref([0,2]),Pn=(cr,Un)=>{r("select-range",cr,Un,"min"),xn.value=[cr,Un]},kn=computed(()=>hn.value?11:8),Nn=(cr,Un)=>{r("select-range",cr,Un,"max");const qn=unref(kn);xn.value=[cr+qn,Un+qn]},Dn=cr=>{const Un=hn.value?[0,3,6,11,14,17]:[0,3,8,11],qn=["hours","minutes"].concat(hn.value?["seconds"]:[]),pr=(Un.indexOf(xn.value[0])+cr+Un.length)%Un.length,Er=Un.length/2;pr{const Un=cr.code,{left:qn,right:er,up:pr,down:Er}=EVENT_CODE;if([qn,er].includes(Un)){Dn(Un===qn?-1:1),cr.preventDefault();return}if([pr,Er].includes(Un)){const dr=Un===pr?-1:1,xr=xn.value[0]{const qn=_e?_e(cr):[],er=cr==="start",Er=(Un||(er?Et.value:qe.value)).hour(),dr=er?oe(Er+1,23):oe(0,Er-1);return union$1(qn,dr)},An=(cr,Un,qn)=>{const er=$e?$e(cr,Un):[],pr=Un==="start",Er=qn||(pr?Et.value:qe.value),dr=Er.hour();if(cr!==dr)return er;const xr=Er.minute(),wr=pr?oe(xr+1,59):oe(0,xr-1);return union$1(er,wr)},Vn=(cr,Un,qn,er)=>{const pr=Ie?Ie(cr,Un,qn):[],Er=qn==="start",dr=er||(Er?Et.value:qe.value),xr=dr.hour(),wr=dr.minute();if(cr!==xr||Un!==wr)return pr;const Cr=dr.second(),gr=Er?oe(Cr+1,59):oe(0,Cr-1);return union$1(pr,gr)},Wn=([cr,Un])=>[Jn(cr,"start",!0,Un),Jn(Un,"end",!1,cr)],{getAvailableHours:Fn,getAvailableMinutes:Yn,getAvailableSeconds:tr}=buildAvailableTimeSlotGetter(Ln,An,Vn),{timePickerOptions:yr,getAvailableTime:Jn,onSetOption:Kn}=useTimePanel({getAvailableHours:Fn,getAvailableMinutes:Yn,getAvailableSeconds:tr}),Gn=cr=>cr?isArray$c(cr)?cr.map(Un=>dayjs(Un,V.format).locale(le.value)):dayjs(cr,V.format).locale(le.value):null,Qn=cr=>cr?isArray$c(cr)?cr.map(Un=>Un.format(V.format)):cr.format(V.format):null,ur=()=>{if(isArray$c(Ve))return Ve.map(Un=>dayjs(Un).locale(le.value));const cr=dayjs(Ve).locale(le.value);return[cr,cr.add(60,"m")]};return r("set-picker-option",["formatToString",Qn]),r("set-picker-option",["parseUserInput",Gn]),r("set-picker-option",["isValidValue",Sn]),r("set-picker-option",["handleKeydownInput",Mn]),r("set-picker-option",["getDefaultValue",ur]),r("set-picker-option",["getRangeAvailableTime",Wn]),(cr,Un)=>cr.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(ue).b("range-picker"),unref(de).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(ue).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(ue).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(ue).be("range-picker","header"))},toDisplayString$1(unref(ie)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass(unref(Fe))},[createVNode(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":unref(hn),"am-pm-mode":unref(_n),"arrow-control":unref(he),"spinner-date":unref(qe),"disabled-hours":Ln,"disabled-minutes":An,"disabled-seconds":Vn,onChange:bn,onSetOption:unref(Kn),onSelectRange:Pn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(ue).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(ue).be("range-picker","header"))},toDisplayString$1(unref(ie)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass(unref(Ue))},[createVNode(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":unref(hn),"am-pm-mode":unref(_n),"arrow-control":unref(he),"spinner-date":unref(Et),"disabled-hours":Ln,"disabled-minutes":An,"disabled-seconds":Vn,onChange:Cn,onSetOption:unref(Kn),onSelectRange:Nn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(ue).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(ue).be("panel","btn"),"cancel"]),onClick:Un[0]||(Un[0]=qn=>Lt())},toDisplayString$1(unref(ie)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(ue).be("panel","btn"),"confirm"]),disabled:unref(En),onClick:Un[1]||(Un[1]=qn=>vn())},toDisplayString$1(unref(ie)("el.datepicker.confirm")),11,_hoisted_1$Y)],2)],2)):createCommentVNode("v-if",!0)}});var TimeRangePanel=_export_sfc$1(_sfc_main$1U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);dayjs.extend(customParseFormat);var TimePicker=defineComponent({name:"ElTimePicker",install:null,props:{...timePickerDefaultProps,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,r){const V=ref(),[oe,ie]=t.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],le=ue=>r.emit("update:modelValue",ue);return provide("ElPopperOptions",t.popperOptions),r.expose({focus:ue=>{var de;(de=V.value)==null||de.handleFocusInput(ue)},blur:ue=>{var de;(de=V.value)==null||de.handleBlurInput(ue)},handleOpen:()=>{var ue;(ue=V.value)==null||ue.handleOpen()},handleClose:()=>{var ue;(ue=V.value)==null||ue.handleClose()}}),()=>{var ue;const de=(ue=t.format)!=null?ue:DEFAULT_FORMATS_TIME;return createVNode(CommonPicker,mergeProps(t,{ref:V,type:oe,format:de,"onUpdate:modelValue":le}),{default:pe=>createVNode(ie,pe,null)})}}});const _TimePicker=TimePicker;_TimePicker.install=t=>{t.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=(t,r)=>{const V=t.subtract(1,"month").endOf("month").date();return rangeArr(r).map((oe,ie)=>V-(r-ie-1))},getMonthDays=t=>{const r=t.daysInMonth();return rangeArr(r).map((V,oe)=>oe+1)},toNestedArr=t=>rangeArr(t.length/7).map(r=>{const V=r*7;return t.slice(V,V+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:t=>isObject$9(t)};var localeData$1={exports:{}};(function(t,r){(function(V,oe){t.exports=oe()})(commonjsGlobal,function(){return function(V,oe,ie){var le=oe.prototype,ue=function($e){return $e&&($e.indexOf?$e:$e.s)},de=function($e,Ie,Ve,Fe,Ue){var qe=$e.name?$e:$e.$locale(),Et=ue(qe[Ie]),At=ue(qe[Ve]),Lt=Et||At.map(function(_n){return _n.slice(0,Fe)});if(!Ue)return Lt;var hn=qe.weekStart;return Lt.map(function(_n,vn){return Lt[(vn+(hn||0))%7]})},pe=function(){return ie.Ls[ie.locale()]},he=function($e,Ie){return $e.formats[Ie]||function(Ve){return Ve.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Fe,Ue,qe){return Ue||qe.slice(1)})}($e.formats[Ie.toUpperCase()])},_e=function(){var $e=this;return{months:function(Ie){return Ie?Ie.format("MMMM"):de($e,"months")},monthsShort:function(Ie){return Ie?Ie.format("MMM"):de($e,"monthsShort","months",3)},firstDayOfWeek:function(){return $e.$locale().weekStart||0},weekdays:function(Ie){return Ie?Ie.format("dddd"):de($e,"weekdays")},weekdaysMin:function(Ie){return Ie?Ie.format("dd"):de($e,"weekdaysMin","weekdays",2)},weekdaysShort:function(Ie){return Ie?Ie.format("ddd"):de($e,"weekdaysShort","weekdays",3)},longDateFormat:function(Ie){return he($e.$locale(),Ie)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};le.localeData=function(){return _e.bind(this)()},ie.localeData=function(){var $e=pe();return{firstDayOfWeek:function(){return $e.weekStart||0},weekdays:function(){return ie.weekdays()},weekdaysShort:function(){return ie.weekdaysShort()},weekdaysMin:function(){return ie.weekdaysMin()},months:function(){return ie.months()},monthsShort:function(){return ie.monthsShort()},longDateFormat:function(Ie){return he($e,Ie)},meridiem:$e.meridiem,ordinal:$e.ordinal}},ie.months=function(){return de(pe(),"months")},ie.monthsShort=function(){return de(pe(),"monthsShort","months",3)},ie.weekdays=function($e){return de(pe(),"weekdays",null,null,$e)},ie.weekdaysShort=function($e){return de(pe(),"weekdaysShort","weekdays",3,$e)},ie.weekdaysMin=function($e){return de(pe(),"weekdaysMin","weekdays",2,$e)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),useDateTable=(t,r)=>{dayjs.extend(localeData);const V=dayjs.localeData().firstDayOfWeek(),{t:oe,lang:ie}=useLocale(),le=dayjs().locale(ie.value),ue=computed(()=>!!t.range&&!!t.range.length),de=computed(()=>{let Ie=[];if(ue.value){const[Ve,Fe]=t.range,Ue=rangeArr(Fe.date()-Ve.date()+1).map(At=>({text:Ve.date()+At,type:"current"}));let qe=Ue.length%7;qe=qe===0?0:7-qe;const Et=rangeArr(qe).map((At,Lt)=>({text:Lt+1,type:"next"}));Ie=Ue.concat(Et)}else{const Ve=t.date.startOf("month").day(),Fe=getPrevMonthLastDays(t.date,(Ve-V+7)%7).map(At=>({text:At,type:"prev"})),Ue=getMonthDays(t.date).map(At=>({text:At,type:"current"}));Ie=[...Fe,...Ue];const qe=7-(Ie.length%7||7),Et=rangeArr(qe).map((At,Lt)=>({text:Lt+1,type:"next"}));Ie=Ie.concat(Et)}return toNestedArr(Ie)}),pe=computed(()=>{const Ie=V;return Ie===0?WEEK_DAYS.map(Ve=>oe(`el.datepicker.weeks.${Ve}`)):WEEK_DAYS.slice(Ie).concat(WEEK_DAYS.slice(0,Ie)).map(Ve=>oe(`el.datepicker.weeks.${Ve}`))}),he=(Ie,Ve)=>{switch(Ve){case"prev":return t.date.startOf("month").subtract(1,"month").date(Ie);case"next":return t.date.startOf("month").add(1,"month").date(Ie);case"current":return t.date.date(Ie)}};return{now:le,isInRange:ue,rows:de,weekDays:pe,getFormattedDate:he,handlePickDay:({text:Ie,type:Ve})=>{const Fe=he(Ie,Ve);r("pick",Fe)},getSlotData:({text:Ie,type:Ve})=>{const Fe=he(Ie,Ve);return{isSelected:Fe.isSame(t.selectedDay),type:`${Ve}-month`,day:Fe.format("YYYY-MM-DD"),date:Fe.toDate()}}}},_hoisted_1$X={key:0},_hoisted_2$D=["onClick"],__default__$1f=defineComponent({name:"DateTable"}),_sfc_main$1T=defineComponent({...__default__$1f,props:dateTableProps,emits:dateTableEmits,setup(t,{expose:r,emit:V}){const oe=t,{isInRange:ie,now:le,rows:ue,weekDays:de,getFormattedDate:pe,handlePickDay:he,getSlotData:_e}=useDateTable(oe,V),$e=useNamespace("calendar-table"),Ie=useNamespace("calendar-day"),Ve=({text:Fe,type:Ue})=>{const qe=[Ue];if(Ue==="current"){const Et=pe(Fe,Ue);Et.isSame(oe.selectedDay,"day")&&qe.push(Ie.is("selected")),Et.isSame(le,"day")&&qe.push(Ie.is("today"))}return qe};return r({getFormattedDate:pe}),(Fe,Ue)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref($e).b(),unref($e).is("range",unref(ie))]),cellspacing:"0",cellpadding:"0"},[Fe.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$X,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(de),qe=>(openBlock(),createElementBlock("th",{key:qe},toDisplayString$1(qe),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),(qe,Et)=>(openBlock(),createElementBlock("tr",{key:Et,class:normalizeClass({[unref($e).e("row")]:!0,[unref($e).em("row","hide-border")]:Et===0&&Fe.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(qe,(At,Lt)=>(openBlock(),createElementBlock("td",{key:Lt,class:normalizeClass(Ve(At)),onClick:hn=>unref(he)(At)},[createBaseVNode("div",{class:normalizeClass(unref(Ie).b())},[renderSlot(Fe.$slots,"date-cell",{data:unref(_e)(At)},()=>[createBaseVNode("span",null,toDisplayString$1(At.text),1)])],2)],10,_hoisted_2$D))),128))],2))),128))])],2))}});var DateTable$1=_export_sfc$1(_sfc_main$1T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const adjacentMonth=(t,r)=>{const V=t.endOf("month"),oe=r.startOf("month"),le=V.isSame(oe,"week")?oe.add(1,"week"):oe;return[[t,V],[le.startOf("week"),r]]},threeConsecutiveMonth=(t,r)=>{const V=t.endOf("month"),oe=t.add(1,"month").startOf("month"),ie=V.isSame(oe,"week")?oe.add(1,"week"):oe,le=ie.endOf("month"),ue=r.startOf("month"),de=le.isSame(ue,"week")?ue.add(1,"week"):ue;return[[t,V],[ie.startOf("week"),le],[de.startOf("week"),r]]},useCalendar=(t,r,V)=>{const oe=useSlots(),{lang:ie}=useLocale(),le=ref(),ue=dayjs().locale(ie.value),de=computed({get(){return t.modelValue?he.value:le.value},set(Et){if(!Et)return;le.value=Et;const At=Et.toDate();r(INPUT_EVENT,At),r(UPDATE_MODEL_EVENT,At)}}),pe=computed(()=>{if(!t.range)return[];const Et=t.range.map(hn=>dayjs(hn).locale(ie.value)),[At,Lt]=Et;return At.isAfter(Lt)?[]:At.isSame(Lt,"month")?Fe(At,Lt):At.add(1,"month").month()!==Lt.month()?[]:Fe(At,Lt)}),he=computed(()=>t.modelValue?dayjs(t.modelValue).locale(ie.value):de.value||(pe.value.length?pe.value[0][0]:ue)),_e=computed(()=>he.value.subtract(1,"month").date(1)),$e=computed(()=>he.value.add(1,"month").date(1)),Ie=computed(()=>he.value.subtract(1,"year").date(1)),Ve=computed(()=>he.value.add(1,"year").date(1)),Fe=(Et,At)=>{const Lt=Et.startOf("week"),hn=At.endOf("week"),_n=Lt.get("month"),vn=hn.get("month");return _n===vn?[[Lt,hn]]:(_n+1)%12===vn?adjacentMonth(Lt,hn):_n+2===vn||(_n+1)%11===vn?threeConsecutiveMonth(Lt,hn):[]},Ue=Et=>{de.value=Et},qe=Et=>{const Lt={"prev-month":_e.value,"next-month":$e.value,"prev-year":Ie.value,"next-year":Ve.value,today:ue}[Et];Lt.isSame(he.value,"day")||Ue(Lt)};return useDeprecated({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},computed(()=>!!oe.dateCell)),{calculateValidatedDateRange:Fe,date:he,realSelectedDay:de,pickDay:Ue,selectDate:qe,validatedRange:pe}},isValidRange$1=t=>isArray$c(t)&&t.length===2&&t.every(r=>isDate$3(r)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1}}),calendarEmits={[UPDATE_MODEL_EVENT]:t=>isDate$3(t),[INPUT_EVENT]:t=>isDate$3(t)},COMPONENT_NAME$g="ElCalendar",__default__$1e=defineComponent({name:COMPONENT_NAME$g}),_sfc_main$1S=defineComponent({...__default__$1e,props:calendarProps,emits:calendarEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useNamespace("calendar"),{calculateValidatedDateRange:le,date:ue,pickDay:de,realSelectedDay:pe,selectDate:he,validatedRange:_e}=useCalendar(oe,V),{t:$e}=useLocale(),Ie=computed(()=>{const Ve=`el.datepicker.month${ue.value.format("M")}`;return`${ue.value.year()} ${$e("el.datepicker.year")} ${$e(Ve)}`});return r({selectedDay:pe,pickDay:de,selectDate:he,calculateValidatedDateRange:le}),(Ve,Fe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("header"))},[renderSlot(Ve.$slots,"header",{date:unref(Ie)},()=>[createBaseVNode("div",{class:normalizeClass(unref(ie).e("title"))},toDisplayString$1(unref(Ie)),3),unref(_e).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("button-group"))},[createVNode(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode(unref(ElButton),{size:"small",onClick:Fe[0]||(Fe[0]=Ue=>unref(he)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Fe[1]||(Fe[1]=Ue=>unref(he)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Fe[2]||(Fe[2]=Ue=>unref(he)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(_e).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("body"))},[createVNode(DateTable$1,{date:unref(ue),"selected-day":unref(pe),onPick:unref(de)},createSlots({_:2},[Ve.$slots["date-cell"]||Ve.$slots.dateCell?{name:"date-cell",fn:withCtx(Ue=>[Ve.$slots["date-cell"]?renderSlot(Ve.$slots,"date-cell",normalizeProps(mergeProps({key:0},Ue))):renderSlot(Ve.$slots,"dateCell",normalizeProps(mergeProps({key:1},Ue)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),(Ue,qe)=>(openBlock(),createBlock(DateTable$1,{key:qe,date:Ue[0],"selected-day":unref(pe),range:Ue,"hide-header":qe!==0,onPick:unref(de)},createSlots({_:2},[Ve.$slots["date-cell"]||Ve.$slots.dateCell?{name:"date-cell",fn:withCtx(Et=>[Ve.$slots["date-cell"]?renderSlot(Ve.$slots,"date-cell",normalizeProps(mergeProps({key:0},Et))):renderSlot(Ve.$slots,"dateCell",normalizeProps(mergeProps({key:1},Et)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Calendar=_export_sfc$1(_sfc_main$1S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ElCalendar=withInstall(Calendar),cardProps=buildProps({header:{type:String,default:""},bodyStyle:{type:definePropType([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),__default__$1d=defineComponent({name:"ElCard"}),_sfc_main$1R=defineComponent({...__default__$1d,props:cardProps,setup(t){const r=useNamespace("card");return(V,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b(),unref(r).is(`${V.shadow}-shadow`)])},[V.$slots.header||V.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("header"))},[renderSlot(V.$slots,"header",{},()=>[createTextVNode(toDisplayString$1(V.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([unref(r).e("body"),V.bodyClass]),style:normalizeStyle$1(V.bodyStyle)},[renderSlot(V.$slots,"default")],6)],2))}});var Card=_export_sfc$1(_sfc_main$1R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const ElCard=withInstall(Card),carouselProps=buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),carouselEmits={change:(t,r)=>[t,r].every(isNumber$4)},carouselContextKey=Symbol("carouselContextKey"),THROTTLE_TIME=300,useCarousel=(t,r,V)=>{const{children:oe,addChild:ie,removeChild:le}=useOrderedChildren(getCurrentInstance(),"ElCarouselItem"),ue=ref(-1),de=ref(null),pe=ref(!1),he=ref(),_e=ref(0),$e=computed(()=>t.arrow!=="never"&&!unref(Fe)),Ie=computed(()=>oe.value.some(An=>An.props.label.toString().length>0)),Ve=computed(()=>t.type==="card"),Fe=computed(()=>t.direction==="vertical"),Ue=computed(()=>t.height!=="auto"?{height:t.height}:{height:`${_e.value}px`,overflow:"hidden"}),qe=throttle$1(An=>{_n(An)},THROTTLE_TIME,{trailing:!0}),Et=throttle$1(An=>{Pn(An)},THROTTLE_TIME);function At(){de.value&&(clearInterval(de.value),de.value=null)}function Lt(){t.interval<=0||!t.autoplay||de.value||(de.value=setInterval(()=>hn(),t.interval))}const hn=()=>{ue.valueYn.props.name===An);Fn.length>0&&(An=oe.value.indexOf(Fn[0]))}if(An=Number(An),Number.isNaN(An)||An!==Math.floor(An))return;const Vn=oe.value.length,Wn=ue.value;An<0?ue.value=t.loop?Vn-1:0:An>=Vn?ue.value=t.loop?0:Vn-1:ue.value=An,Wn===ue.value&&vn(Wn),Dn()}function vn(An){oe.value.forEach((Vn,Wn)=>{Vn.translateItem(Wn,ue.value,An)})}function bn(An,Vn){var Wn,Fn,Yn,tr;const yr=unref(oe),Jn=yr.length;if(Jn===0||!An.states.inStage)return!1;const Kn=Vn+1,Gn=Vn-1,Qn=Jn-1,ur=yr[Qn].states.active,cr=yr[0].states.active,Un=(Fn=(Wn=yr[Kn])==null?void 0:Wn.states)==null?void 0:Fn.active,qn=(tr=(Yn=yr[Gn])==null?void 0:Yn.states)==null?void 0:tr.active;return Vn===Qn&&cr||Un?"left":Vn===0&&ur||qn?"right":!1}function Cn(){pe.value=!0,t.pauseOnHover&&At()}function Sn(){pe.value=!1,Lt()}function wn(An){unref(Fe)||oe.value.forEach((Vn,Wn)=>{An===bn(Vn,Wn)&&(Vn.states.hover=!0)})}function En(){unref(Fe)||oe.value.forEach(An=>{An.states.hover=!1})}function xn(An){ue.value=An}function Pn(An){t.trigger==="hover"&&An!==ue.value&&(ue.value=An)}function kn(){_n(ue.value-1)}function Nn(){_n(ue.value+1)}function Dn(){At(),Lt()}function Mn(An){t.height==="auto"&&(_e.value=An)}watch(()=>ue.value,(An,Vn)=>{vn(Vn),Vn>-1&&r("change",An,Vn)}),watch(()=>t.autoplay,An=>{An?Lt():At()}),watch(()=>t.loop,()=>{_n(ue.value)}),watch(()=>t.interval,()=>{Dn()}),watch(()=>oe.value,()=>{oe.value.length>0&&_n(t.initialIndex)});const Ln=shallowRef();return onMounted(()=>{Ln.value=useResizeObserver$1(he.value,()=>{vn()}),Lt()}),onBeforeUnmount(()=>{At(),he.value&&Ln.value&&Ln.value.stop()}),provide(carouselContextKey,{root:he,isCardType:Ve,isVertical:Fe,items:oe,loop:t.loop,addItem:ie,removeItem:le,setActiveItem:_n,setContainerHeight:Mn}),{root:he,activeIndex:ue,arrowDisplay:$e,hasLabel:Ie,hover:pe,isCardType:Ve,items:oe,isVertical:Fe,containerStyle:Ue,handleButtonEnter:wn,handleButtonLeave:En,handleIndicatorClick:xn,handleMouseEnter:Cn,handleMouseLeave:Sn,setActiveItem:_n,prev:kn,next:Nn,throttledArrowClick:qe,throttledIndicatorHover:Et}},_hoisted_1$W=["onMouseenter","onClick"],_hoisted_2$C={key:0},COMPONENT_NAME$f="ElCarousel",__default__$1c=defineComponent({name:COMPONENT_NAME$f}),_sfc_main$1Q=defineComponent({...__default__$1c,props:carouselProps,emits:carouselEmits,setup(t,{expose:r,emit:V}){const oe=t,{root:ie,activeIndex:le,arrowDisplay:ue,hasLabel:de,hover:pe,isCardType:he,items:_e,isVertical:$e,containerStyle:Ie,handleButtonEnter:Ve,handleButtonLeave:Fe,handleIndicatorClick:Ue,handleMouseEnter:qe,handleMouseLeave:Et,setActiveItem:At,prev:Lt,next:hn,throttledArrowClick:_n,throttledIndicatorHover:vn}=useCarousel(oe,V),bn=useNamespace("carousel"),Cn=computed(()=>{const wn=[bn.b(),bn.m(oe.direction)];return unref(he)&&wn.push(bn.m("card")),wn}),Sn=computed(()=>{const wn=[bn.e("indicators"),bn.em("indicators",oe.direction)];return unref(de)&&wn.push(bn.em("indicators","labels")),oe.indicatorPosition==="outside"&&wn.push(bn.em("indicators","outside")),unref($e)&&wn.push(bn.em("indicators","right")),wn});return r({setActiveItem:At,prev:Lt,next:hn}),(wn,En)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:ie,class:normalizeClass(unref(Cn)),onMouseenter:En[6]||(En[6]=withModifiers((...xn)=>unref(qe)&&unref(qe)(...xn),["stop"])),onMouseleave:En[7]||(En[7]=withModifiers((...xn)=>unref(Et)&&unref(Et)(...xn),["stop"]))},[createBaseVNode("div",{class:normalizeClass(unref(bn).e("container")),style:normalizeStyle$1(unref(Ie))},[unref(ue)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(bn).e("arrow"),unref(bn).em("arrow","left")]),onMouseenter:En[0]||(En[0]=xn=>unref(Ve)("left")),onMouseleave:En[1]||(En[1]=(...xn)=>unref(Fe)&&unref(Fe)(...xn)),onClick:En[2]||(En[2]=withModifiers(xn=>unref(_n)(unref(le)-1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],34),[[vShow,(wn.arrow==="always"||unref(pe))&&(oe.loop||unref(le)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(ue)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(bn).e("arrow"),unref(bn).em("arrow","right")]),onMouseenter:En[3]||(En[3]=xn=>unref(Ve)("right")),onMouseleave:En[4]||(En[4]=(...xn)=>unref(Fe)&&unref(Fe)(...xn)),onClick:En[5]||(En[5]=withModifiers(xn=>unref(_n)(unref(le)+1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],34),[[vShow,(wn.arrow==="always"||unref(pe))&&(oe.loop||unref(le)(openBlock(),createElementBlock("li",{key:Pn,class:normalizeClass([unref(bn).e("indicator"),unref(bn).em("indicator",wn.direction),unref(bn).is("active",Pn===unref(le))]),onMouseenter:kn=>unref(vn)(Pn),onClick:withModifiers(kn=>unref(Ue)(Pn),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(bn).e("button"))},[unref(de)?(openBlock(),createElementBlock("span",_hoisted_2$C,toDisplayString$1(xn.props.label),1)):createCommentVNode("v-if",!0)],2)],42,_hoisted_1$W))),128))],2)):createCommentVNode("v-if",!0)],34))}});var Carousel=_export_sfc$1(_sfc_main$1Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const carouselItemProps=buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),useCarouselItem=(t,r)=>{const V=inject(carouselContextKey),oe=getCurrentInstance(),ie=.83,le=ref(),ue=ref(!1),de=ref(0),pe=ref(1),he=ref(!1),_e=ref(!1),$e=ref(!1),Ie=ref(!1),{isCardType:Ve,isVertical:Fe}=V;function Ue(hn,_n,vn){const bn=vn-1,Cn=_n-1,Sn=_n+1,wn=vn/2;return _n===0&&hn===bn?-1:_n===bn&&hn===0?vn:hn=wn?vn+1:hn>Sn&&hn-_n>=wn?-2:hn}function qe(hn,_n){var vn,bn;const Cn=unref(Fe)?((vn=V.root.value)==null?void 0:vn.offsetHeight)||0:((bn=V.root.value)==null?void 0:bn.offsetWidth)||0;return $e.value?Cn*((2-ie)*(hn-_n)+1)/4:hn<_n?-(1+ie)*Cn/4:(3+ie)*Cn/4}function Et(hn,_n,vn){const bn=V.root.value;return bn?((vn?bn.offsetHeight:bn.offsetWidth)||0)*(hn-_n):0}const At=(hn,_n,vn)=>{var bn;const Cn=unref(Ve),Sn=(bn=V.items.value.length)!=null?bn:Number.NaN,wn=hn===_n;!Cn&&!isUndefined$1(vn)&&(Ie.value=wn||hn===vn),!wn&&Sn>2&&V.loop&&(hn=Ue(hn,_n,Sn));const En=unref(Fe);he.value=wn,Cn?($e.value=Math.round(Math.abs(hn-_n))<=1,de.value=qe(hn,_n),pe.value=unref(he)?1:ie):de.value=Et(hn,_n,En),_e.value=!0,wn&&le.value&&V.setContainerHeight(le.value.offsetHeight)};function Lt(){if(V&&unref(Ve)){const hn=V.items.value.findIndex(({uid:_n})=>_n===oe.uid);V.setActiveItem(hn)}}return onMounted(()=>{V.addItem({props:t,states:reactive({hover:ue,translate:de,scale:pe,active:he,ready:_e,inStage:$e,animating:Ie}),uid:oe.uid,translateItem:At})}),onUnmounted(()=>{V.removeItem(oe.uid)}),{carouselItemRef:le,active:he,animating:Ie,hover:ue,inStage:$e,isVertical:Fe,translate:de,isCardType:Ve,scale:pe,ready:_e,handleItemClick:Lt}},__default__$1b=defineComponent({name:"ElCarouselItem"}),_sfc_main$1P=defineComponent({...__default__$1b,props:carouselItemProps,setup(t){const r=t,V=useNamespace("carousel"),{carouselItemRef:oe,active:ie,animating:le,hover:ue,inStage:de,isVertical:pe,translate:he,isCardType:_e,scale:$e,ready:Ie,handleItemClick:Ve}=useCarouselItem(r),Fe=computed(()=>{const qe=`${`translate${unref(pe)?"Y":"X"}`}(${unref(he)}px)`,Et=`scale(${unref($e)})`;return{transform:[qe,Et].join(" ")}});return(Ue,qe)=>withDirectives((openBlock(),createElementBlock("div",{ref_key:"carouselItemRef",ref:oe,class:normalizeClass([unref(V).e("item"),unref(V).is("active",unref(ie)),unref(V).is("in-stage",unref(de)),unref(V).is("hover",unref(ue)),unref(V).is("animating",unref(le)),{[unref(V).em("item","card")]:unref(_e),[unref(V).em("item","card-vertical")]:unref(_e)&&unref(pe)}]),style:normalizeStyle$1(unref(Fe)),onClick:qe[0]||(qe[0]=(...Et)=>unref(Ve)&&unref(Ve)(...Et))},[unref(_e)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("mask"))},null,2)),[[vShow,!unref(ie)]]):createCommentVNode("v-if",!0),renderSlot(Ue.$slots,"default")],6)),[[vShow,unref(Ie)]])}});var CarouselItem=_export_sfc$1(_sfc_main$1P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const ElCarousel=withInstall(Carousel,{CarouselItem}),ElCarouselItem=withNoopInstall(CarouselItem),checkboxProps={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},checkboxEmits={[UPDATE_MODEL_EVENT]:t=>isString$6(t)||isNumber$4(t)||isBoolean$3(t),change:t=>isString$6(t)||isNumber$4(t)||isBoolean$3(t)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:t,isChecked:r})=>{const V=inject(checkboxGroupContextKey,void 0),oe=computed(()=>{var le,ue;const de=(le=V==null?void 0:V.max)==null?void 0:le.value,pe=(ue=V==null?void 0:V.min)==null?void 0:ue.value;return!isUndefined$1(de)&&t.value.length>=de&&!r.value||!isUndefined$1(pe)&&t.value.length<=pe&&r.value});return{isDisabled:useFormDisabled(computed(()=>(V==null?void 0:V.disabled.value)||oe.value)),isLimitDisabled:oe}},useCheckboxEvent=(t,{model:r,isLimitExceeded:V,hasOwnLabel:oe,isDisabled:ie,isLabeledByFormItem:le})=>{const ue=inject(checkboxGroupContextKey,void 0),{formItem:de}=useFormItem(),{emit:pe}=getCurrentInstance();function he(Fe){var Ue,qe;return Fe===t.trueLabel||Fe===!0?(Ue=t.trueLabel)!=null?Ue:!0:(qe=t.falseLabel)!=null?qe:!1}function _e(Fe,Ue){pe("change",he(Fe),Ue)}function $e(Fe){if(V.value)return;const Ue=Fe.target;pe("change",he(Ue.checked),Fe)}async function Ie(Fe){V.value||!oe.value&&!ie.value&&le.value&&(Fe.composedPath().some(Et=>Et.tagName==="LABEL")||(r.value=he([!1,t.falseLabel].includes(r.value)),await nextTick(),_e(r.value,Fe)))}const Ve=computed(()=>(ue==null?void 0:ue.validateEvent)||t.validateEvent);return watch(()=>t.modelValue,()=>{Ve.value&&(de==null||de.validate("change").catch(Fe=>void 0))}),{handleChange:$e,onClickRoot:Ie}},useCheckboxModel=t=>{const r=ref(!1),{emit:V}=getCurrentInstance(),oe=inject(checkboxGroupContextKey,void 0),ie=computed(()=>isUndefined$1(oe)===!1),le=ref(!1);return{model:computed({get(){var de,pe;return ie.value?(de=oe==null?void 0:oe.modelValue)==null?void 0:de.value:(pe=t.modelValue)!=null?pe:r.value},set(de){var pe,he;ie.value&&isArray$c(de)?(le.value=((pe=oe==null?void 0:oe.max)==null?void 0:pe.value)!==void 0&&de.length>(oe==null?void 0:oe.max.value),le.value===!1&&((he=oe==null?void 0:oe.changeEvent)==null||he.call(oe,de))):(V(UPDATE_MODEL_EVENT,de),r.value=de)}}),isGroup:ie,isLimitExceeded:le}},useCheckboxStatus=(t,r,{model:V})=>{const oe=inject(checkboxGroupContextKey,void 0),ie=ref(!1),le=computed(()=>{const he=V.value;return isBoolean$3(he)?he:isArray$c(he)?isObject$9(t.label)?he.map(toRaw).some(_e=>isEqual$1(_e,t.label)):he.map(toRaw).includes(t.label):he!=null?he===t.trueLabel:!!he}),ue=useFormSize(computed(()=>{var he;return(he=oe==null?void 0:oe.size)==null?void 0:he.value}),{prop:!0}),de=useFormSize(computed(()=>{var he;return(he=oe==null?void 0:oe.size)==null?void 0:he.value})),pe=computed(()=>!!(r.default||t.label));return{checkboxButtonSize:ue,isChecked:le,isFocused:ie,checkboxSize:de,hasOwnLabel:pe}},setStoreValue=(t,{model:r})=>{function V(){isArray$c(r.value)&&!r.value.includes(t.label)?r.value.push(t.label):r.value=t.trueLabel||!0}t.checked&&V()},useCheckbox=(t,r)=>{const{formItem:V}=useFormItem(),{model:oe,isGroup:ie,isLimitExceeded:le}=useCheckboxModel(t),{isFocused:ue,isChecked:de,checkboxButtonSize:pe,checkboxSize:he,hasOwnLabel:_e}=useCheckboxStatus(t,r,{model:oe}),{isDisabled:$e}=useCheckboxDisabled({model:oe,isChecked:de}),{inputId:Ie,isLabeledByFormItem:Ve}=useFormItemInputId(t,{formItemContext:V,disableIdGeneration:_e,disableIdManagement:ie}),{handleChange:Fe,onClickRoot:Ue}=useCheckboxEvent(t,{model:oe,isLimitExceeded:le,hasOwnLabel:_e,isDisabled:$e,isLabeledByFormItem:Ve});return setStoreValue(t,{model:oe}),{inputId:Ie,isLabeledByFormItem:Ve,isChecked:de,isDisabled:$e,isFocused:ue,checkboxButtonSize:pe,checkboxSize:he,hasOwnLabel:_e,model:oe,handleChange:Fe,onClickRoot:Ue}},_hoisted_1$V=["tabindex","role","aria-checked"],_hoisted_2$B=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_hoisted_3$m=["id","aria-hidden","disabled","value","name","tabindex"],__default__$1a=defineComponent({name:"ElCheckbox"}),_sfc_main$1O=defineComponent({...__default__$1a,props:checkboxProps,emits:checkboxEmits,setup(t){const r=t,V=useSlots(),{inputId:oe,isLabeledByFormItem:ie,isChecked:le,isDisabled:ue,isFocused:de,checkboxSize:pe,hasOwnLabel:he,model:_e,handleChange:$e,onClickRoot:Ie}=useCheckbox(r,V),Ve=useNamespace("checkbox"),Fe=computed(()=>[Ve.b(),Ve.m(pe.value),Ve.is("disabled",ue.value),Ve.is("bordered",r.border),Ve.is("checked",le.value)]),Ue=computed(()=>[Ve.e("input"),Ve.is("disabled",ue.value),Ve.is("checked",le.value),Ve.is("indeterminate",r.indeterminate),Ve.is("focus",de.value)]);return(qe,Et)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(he)&&unref(ie)?"span":"label"),{class:normalizeClass(unref(Fe)),"aria-controls":qe.indeterminate?qe.controls:null,onClick:unref(Ie)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(Ue)),tabindex:qe.indeterminate?0:void 0,role:qe.indeterminate?"checkbox":void 0,"aria-checked":qe.indeterminate?"mixed":void 0},[qe.trueLabel||qe.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(oe),"onUpdate:modelValue":Et[0]||(Et[0]=At=>isRef(_e)?_e.value=At:null),class:normalizeClass(unref(Ve).e("original")),type:"checkbox","aria-hidden":qe.indeterminate?"true":"false",name:qe.name,tabindex:qe.tabindex,disabled:unref(ue),"true-value":qe.trueLabel,"false-value":qe.falseLabel,onChange:Et[1]||(Et[1]=(...At)=>unref($e)&&unref($e)(...At)),onFocus:Et[2]||(Et[2]=At=>de.value=!0),onBlur:Et[3]||(Et[3]=At=>de.value=!1),onClick:Et[4]||(Et[4]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$B)),[[vModelCheckbox,unref(_e)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(oe),"onUpdate:modelValue":Et[5]||(Et[5]=At=>isRef(_e)?_e.value=At:null),class:normalizeClass(unref(Ve).e("original")),type:"checkbox","aria-hidden":qe.indeterminate?"true":"false",disabled:unref(ue),value:qe.label,name:qe.name,tabindex:qe.tabindex,onChange:Et[6]||(Et[6]=(...At)=>unref($e)&&unref($e)(...At)),onFocus:Et[7]||(Et[7]=At=>de.value=!0),onBlur:Et[8]||(Et[8]=At=>de.value=!1),onClick:Et[9]||(Et[9]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_3$m)),[[vModelCheckbox,unref(_e)]]),createBaseVNode("span",{class:normalizeClass(unref(Ve).e("inner"))},null,2)],10,_hoisted_1$V),unref(he)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Ve).e("label"))},[renderSlot(qe.$slots,"default"),qe.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(qe.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Checkbox=_export_sfc$1(_sfc_main$1O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _hoisted_1$U=["name","tabindex","disabled","true-value","false-value"],_hoisted_2$A=["name","tabindex","disabled","value"],__default__$19=defineComponent({name:"ElCheckboxButton"}),_sfc_main$1N=defineComponent({...__default__$19,props:checkboxProps,emits:checkboxEmits,setup(t){const r=t,V=useSlots(),{isFocused:oe,isChecked:ie,isDisabled:le,checkboxButtonSize:ue,model:de,handleChange:pe}=useCheckbox(r,V),he=inject(checkboxGroupContextKey,void 0),_e=useNamespace("checkbox"),$e=computed(()=>{var Ve,Fe,Ue,qe;const Et=(Fe=(Ve=he==null?void 0:he.fill)==null?void 0:Ve.value)!=null?Fe:"";return{backgroundColor:Et,borderColor:Et,color:(qe=(Ue=he==null?void 0:he.textColor)==null?void 0:Ue.value)!=null?qe:"",boxShadow:Et?`-1px 0 0 0 ${Et}`:void 0}}),Ie=computed(()=>[_e.b("button"),_e.bm("button",ue.value),_e.is("disabled",le.value),_e.is("checked",ie.value),_e.is("focus",oe.value)]);return(Ve,Fe)=>(openBlock(),createElementBlock("label",{class:normalizeClass(unref(Ie))},[Ve.trueLabel||Ve.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":Fe[0]||(Fe[0]=Ue=>isRef(de)?de.value=Ue:null),class:normalizeClass(unref(_e).be("button","original")),type:"checkbox",name:Ve.name,tabindex:Ve.tabindex,disabled:unref(le),"true-value":Ve.trueLabel,"false-value":Ve.falseLabel,onChange:Fe[1]||(Fe[1]=(...Ue)=>unref(pe)&&unref(pe)(...Ue)),onFocus:Fe[2]||(Fe[2]=Ue=>oe.value=!0),onBlur:Fe[3]||(Fe[3]=Ue=>oe.value=!1),onClick:Fe[4]||(Fe[4]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$U)),[[vModelCheckbox,unref(de)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":Fe[5]||(Fe[5]=Ue=>isRef(de)?de.value=Ue:null),class:normalizeClass(unref(_e).be("button","original")),type:"checkbox",name:Ve.name,tabindex:Ve.tabindex,disabled:unref(le),value:Ve.label,onChange:Fe[6]||(Fe[6]=(...Ue)=>unref(pe)&&unref(pe)(...Ue)),onFocus:Fe[7]||(Fe[7]=Ue=>oe.value=!0),onBlur:Fe[8]||(Fe[8]=Ue=>oe.value=!1),onClick:Fe[9]||(Fe[9]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$A)),[[vModelCheckbox,unref(de)]]),Ve.$slots.default||Ve.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(_e).be("button","inner")),style:normalizeStyle$1(unref(ie)?unref($e):void 0)},[renderSlot(Ve.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ve.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc$1(_sfc_main$1N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const checkboxGroupProps=buildProps({modelValue:{type:definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:useSizeProp,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),checkboxGroupEmits={[UPDATE_MODEL_EVENT]:t=>isArray$c(t),change:t=>isArray$c(t)},__default__$18=defineComponent({name:"ElCheckboxGroup"}),_sfc_main$1M=defineComponent({...__default__$18,props:checkboxGroupProps,emits:checkboxGroupEmits,setup(t,{emit:r}){const V=t,oe=useNamespace("checkbox"),{formItem:ie}=useFormItem(),{inputId:le,isLabeledByFormItem:ue}=useFormItemInputId(V,{formItemContext:ie}),de=async he=>{r(UPDATE_MODEL_EVENT,he),await nextTick(),r("change",he)},pe=computed({get(){return V.modelValue},set(he){de(he)}});return provide(checkboxGroupContextKey,{...pick$1(toRefs(V),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:pe,changeEvent:de}),watch(()=>V.modelValue,()=>{V.validateEvent&&(ie==null||ie.validate("change").catch(he=>void 0))}),(he,_e)=>{var $e;return openBlock(),createBlock(resolveDynamicComponent(he.tag),{id:unref(le),class:normalizeClass(unref(oe).b("group")),role:"group","aria-label":unref(ue)?void 0:he.label||"checkbox-group","aria-labelledby":unref(ue)?($e=unref(ie))==null?void 0:$e.labelId:void 0},{default:withCtx(()=>[renderSlot(he.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CheckboxGroup=_export_sfc$1(_sfc_main$1M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ElCheckbox=withInstall(Checkbox,{CheckboxButton,CheckboxGroup}),ElCheckboxButton=withNoopInstall(CheckboxButton),ElCheckboxGroup$1=withNoopInstall(CheckboxGroup),radioPropsBase=buildProps({size:useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),radioProps=buildProps({...radioPropsBase,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),radioEmits={[UPDATE_MODEL_EVENT]:t=>isString$6(t)||isNumber$4(t)||isBoolean$3(t),[CHANGE_EVENT]:t=>isString$6(t)||isNumber$4(t)||isBoolean$3(t)},radioGroupKey=Symbol("radioGroupKey"),useRadio=(t,r)=>{const V=ref(),oe=inject(radioGroupKey,void 0),ie=computed(()=>!!oe),le=computed({get(){return ie.value?oe.modelValue:t.modelValue},set(_e){ie.value?oe.changeEvent(_e):r&&r(UPDATE_MODEL_EVENT,_e),V.value.checked=t.modelValue===t.label}}),ue=useFormSize(computed(()=>oe==null?void 0:oe.size)),de=useFormDisabled(computed(()=>oe==null?void 0:oe.disabled)),pe=ref(!1),he=computed(()=>de.value||ie.value&&le.value!==t.label?-1:0);return{radioRef:V,isGroup:ie,radioGroup:oe,focus:pe,size:ue,disabled:de,tabIndex:he,modelValue:le}},_hoisted_1$T=["value","name","disabled"],__default__$17=defineComponent({name:"ElRadio"}),_sfc_main$1L=defineComponent({...__default__$17,props:radioProps,emits:radioEmits,setup(t,{emit:r}){const V=t,oe=useNamespace("radio"),{radioRef:ie,radioGroup:le,focus:ue,size:de,disabled:pe,modelValue:he}=useRadio(V,r);function _e(){nextTick(()=>r("change",he.value))}return($e,Ie)=>{var Ve;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(oe).b(),unref(oe).is("disabled",unref(pe)),unref(oe).is("focus",unref(ue)),unref(oe).is("bordered",$e.border),unref(oe).is("checked",unref(he)===$e.label),unref(oe).m(unref(de))])},[createBaseVNode("span",{class:normalizeClass([unref(oe).e("input"),unref(oe).is("disabled",unref(pe)),unref(oe).is("checked",unref(he)===$e.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:ie,"onUpdate:modelValue":Ie[0]||(Ie[0]=Fe=>isRef(he)?he.value=Fe:null),class:normalizeClass(unref(oe).e("original")),value:$e.label,name:$e.name||((Ve=unref(le))==null?void 0:Ve.name),disabled:unref(pe),type:"radio",onFocus:Ie[1]||(Ie[1]=Fe=>ue.value=!0),onBlur:Ie[2]||(Ie[2]=Fe=>ue.value=!1),onChange:_e,onClick:Ie[3]||(Ie[3]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$T),[[vModelRadio,unref(he)]]),createBaseVNode("span",{class:normalizeClass(unref(oe).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(oe).e("label")),onKeydown:Ie[4]||(Ie[4]=withModifiers(()=>{},["stop"]))},[renderSlot($e.$slots,"default",{},()=>[createTextVNode(toDisplayString$1($e.label),1)])],34)],2)}}});var Radio=_export_sfc$1(_sfc_main$1L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps({...radioPropsBase,name:{type:String,default:""}}),_hoisted_1$S=["value","name","disabled"],__default__$16=defineComponent({name:"ElRadioButton"}),_sfc_main$1K=defineComponent({...__default__$16,props:radioButtonProps,setup(t){const r=t,V=useNamespace("radio"),{radioRef:oe,focus:ie,size:le,disabled:ue,modelValue:de,radioGroup:pe}=useRadio(r),he=computed(()=>({backgroundColor:(pe==null?void 0:pe.fill)||"",borderColor:(pe==null?void 0:pe.fill)||"",boxShadow:pe!=null&&pe.fill?`-1px 0 0 0 ${pe.fill}`:"",color:(pe==null?void 0:pe.textColor)||""}));return(_e,$e)=>{var Ie;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(V).b("button"),unref(V).is("active",unref(de)===_e.label),unref(V).is("disabled",unref(ue)),unref(V).is("focus",unref(ie)),unref(V).bm("button",unref(le))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:oe,"onUpdate:modelValue":$e[0]||($e[0]=Ve=>isRef(de)?de.value=Ve:null),class:normalizeClass(unref(V).be("button","original-radio")),value:_e.label,type:"radio",name:_e.name||((Ie=unref(pe))==null?void 0:Ie.name),disabled:unref(ue),onFocus:$e[1]||($e[1]=Ve=>ie.value=!0),onBlur:$e[2]||($e[2]=Ve=>ie.value=!1),onClick:$e[3]||($e[3]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$S),[[vModelRadio,unref(de)]]),createBaseVNode("span",{class:normalizeClass(unref(V).be("button","inner")),style:normalizeStyle$1(unref(de)===_e.label?unref(he):{}),onKeydown:$e[4]||($e[4]=withModifiers(()=>{},["stop"]))},[renderSlot(_e.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(_e.label),1)])],38)],2)}}});var RadioButton=_export_sfc$1(_sfc_main$1K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const radioGroupProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),radioGroupEmits=radioEmits,_hoisted_1$R=["id","aria-label","aria-labelledby"],__default__$15=defineComponent({name:"ElRadioGroup"}),_sfc_main$1J=defineComponent({...__default__$15,props:radioGroupProps,emits:radioGroupEmits,setup(t,{emit:r}){const V=t,oe=useNamespace("radio"),ie=useId(),le=ref(),{formItem:ue}=useFormItem(),{inputId:de,isLabeledByFormItem:pe}=useFormItemInputId(V,{formItemContext:ue}),he=$e=>{r(UPDATE_MODEL_EVENT,$e),nextTick(()=>r("change",$e))};onMounted(()=>{const $e=le.value.querySelectorAll("[type=radio]"),Ie=$e[0];!Array.from($e).some(Ve=>Ve.checked)&&Ie&&(Ie.tabIndex=0)});const _e=computed(()=>V.name||ie.value);return provide(radioGroupKey,reactive({...toRefs(V),changeEvent:he,name:_e})),watch(()=>V.modelValue,()=>{V.validateEvent&&(ue==null||ue.validate("change").catch($e=>void 0))}),($e,Ie)=>(openBlock(),createElementBlock("div",{id:unref(de),ref_key:"radioGroupRef",ref:le,class:normalizeClass(unref(oe).b("group")),role:"radiogroup","aria-label":unref(pe)?void 0:$e.label||"radio-group","aria-labelledby":unref(pe)?unref(ue).labelId:void 0},[renderSlot($e.$slots,"default")],10,_hoisted_1$R))}});var RadioGroup=_export_sfc$1(_sfc_main$1J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const ElRadio=withInstall(Radio,{RadioButton,RadioGroup}),ElRadioGroup=withNoopInstall(RadioGroup),ElRadioButton=withNoopInstall(RadioButton);var NodeContent$1=defineComponent({name:"NodeContent",setup(){return{ns:useNamespace("cascader-node")}},render(){const{ns:t}=this,{node:r,panel:V}=this.$parent,{data:oe,label:ie}=r,{renderLabelFn:le}=V;return h$2("span",{class:t.e("label")},le?le({node:r,data:oe}):ie)}});const CASCADER_PANEL_INJECTION_KEY=Symbol(),_sfc_main$1I=defineComponent({name:"ElCascaderNode",components:{ElCheckbox,ElRadio,NodeContent:NodeContent$1,ElIcon,Check:check_default,Loading:loading_default,ArrowRight:arrow_right_default},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:r}){const V=inject(CASCADER_PANEL_INJECTION_KEY),oe=useNamespace("cascader-node"),ie=computed(()=>V.isHoverMenu),le=computed(()=>V.config.multiple),ue=computed(()=>V.config.checkStrictly),de=computed(()=>{var vn;return(vn=V.checkedNodes[0])==null?void 0:vn.uid}),pe=computed(()=>t.node.isDisabled),he=computed(()=>t.node.isLeaf),_e=computed(()=>ue.value&&!he.value||!pe.value),$e=computed(()=>Ve(V.expandingNode)),Ie=computed(()=>ue.value&&V.checkedNodes.some(Ve)),Ve=vn=>{var bn;const{level:Cn,uid:Sn}=t.node;return((bn=vn==null?void 0:vn.pathNodes[Cn-1])==null?void 0:bn.uid)===Sn},Fe=()=>{$e.value||V.expandNode(t.node)},Ue=vn=>{const{node:bn}=t;vn!==bn.checked&&V.handleCheckChange(bn,vn)},qe=()=>{V.lazyLoad(t.node,()=>{he.value||Fe()})},Et=vn=>{ie.value&&(At(),!he.value&&r("expand",vn))},At=()=>{const{node:vn}=t;!_e.value||vn.loading||(vn.loaded?Fe():qe())},Lt=()=>{ie.value&&!he.value||(he.value&&!pe.value&&!ue.value&&!le.value?_n(!0):At())},hn=vn=>{ue.value?(Ue(vn),t.node.loaded&&Fe()):_n(vn)},_n=vn=>{t.node.loaded?(Ue(vn),!ue.value&&Fe()):qe()};return{panel:V,isHoverMenu:ie,multiple:le,checkStrictly:ue,checkedNodeId:de,isDisabled:pe,isLeaf:he,expandable:_e,inExpandingPath:$e,inCheckedPath:Ie,ns:oe,handleHoverExpand:Et,handleExpand:At,handleClick:Lt,handleCheck:_n,handleSelectCheck:hn}}}),_hoisted_1$Q=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$z=createBaseVNode("span",null,null,-1);function _sfc_render$v(t,r,V,oe,ie,le){const ue=resolveComponent("el-checkbox"),de=resolveComponent("el-radio"),pe=resolveComponent("check"),he=resolveComponent("el-icon"),_e=resolveComponent("node-content"),$e=resolveComponent("loading"),Ie=resolveComponent("arrow-right");return openBlock(),createElementBlock("li",{id:`${t.menuId}-${t.node.uid}`,role:"menuitem","aria-haspopup":!t.isLeaf,"aria-owns":t.isLeaf?null:t.menuId,"aria-expanded":t.inExpandingPath,tabindex:t.expandable?-1:void 0,class:normalizeClass([t.ns.b(),t.ns.is("selectable",t.checkStrictly),t.ns.is("active",t.node.checked),t.ns.is("disabled",!t.expandable),t.inExpandingPath&&"in-active-path",t.inCheckedPath&&"in-checked-path"]),onMouseenter:r[2]||(r[2]=(...Ve)=>t.handleHoverExpand&&t.handleHoverExpand(...Ve)),onFocus:r[3]||(r[3]=(...Ve)=>t.handleHoverExpand&&t.handleHoverExpand(...Ve)),onClick:r[4]||(r[4]=(...Ve)=>t.handleClick&&t.handleClick(...Ve))},[createCommentVNode(" prefix "),t.multiple?(openBlock(),createBlock(ue,{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:t.isDisabled,onClick:r[0]||(r[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":t.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):t.checkStrictly?(openBlock(),createBlock(de,{key:1,"model-value":t.checkedNodeId,label:t.node.uid,disabled:t.isDisabled,"onUpdate:modelValue":t.handleSelectCheck,onClick:r[1]||(r[1]=withModifiers(()=>{},["stop"]))},{default:withCtx(()=>[createCommentVNode(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 `),_hoisted_2$z]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):t.isLeaf&&t.node.checked?(openBlock(),createBlock(he,{key:2,class:normalizeClass(t.ns.e("prefix"))},{default:withCtx(()=>[createVNode(pe)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(_e),createCommentVNode(" postfix "),t.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[t.node.loading?(openBlock(),createBlock(he,{key:0,class:normalizeClass([t.ns.is("loading"),t.ns.e("postfix")])},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"])):(openBlock(),createBlock(he,{key:1,class:normalizeClass(["arrow-right",t.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Ie)]),_:1},8,["class"]))],64))],42,_hoisted_1$Q)}var ElCascaderNode=_export_sfc$1(_sfc_main$1I,[["render",_sfc_render$v],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$1H=defineComponent({name:"ElCascaderMenu",components:{Loading:loading_default,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(t){const r=getCurrentInstance(),V=useNamespace("cascader-menu"),{t:oe}=useLocale(),ie=generateId();let le=null,ue=null;const de=inject(CASCADER_PANEL_INJECTION_KEY),pe=ref(null),he=computed(()=>!t.nodes.length),_e=computed(()=>!de.initialLoaded),$e=computed(()=>`cascader-menu-${ie}-${t.index}`),Ie=qe=>{le=qe.target},Ve=qe=>{if(!(!de.isHoverMenu||!le||!pe.value))if(le.contains(qe.target)){Fe();const Et=r.vnode.el,{left:At}=Et.getBoundingClientRect(),{offsetWidth:Lt,offsetHeight:hn}=Et,_n=qe.clientX-At,vn=le.offsetTop,bn=vn+le.offsetHeight;pe.value.innerHTML=` `}else ue||(ue=window.setTimeout(Ue,de.config.hoverThreshold))},Fe=()=>{ue&&(clearTimeout(ue),ue=null)},Ue=()=>{pe.value&&(pe.value.innerHTML="",Fe())};return{ns:V,panel:de,hoverZone:pe,isEmpty:he,isLoading:_e,menuId:$e,t:oe,handleExpand:Ie,handleMouseMove:Ve,clearHoverZone:Ue}}});function _sfc_render$u(t,r,V,oe,ie,le){const ue=resolveComponent("el-cascader-node"),de=resolveComponent("loading"),pe=resolveComponent("el-icon"),he=resolveComponent("el-scrollbar");return openBlock(),createBlock(he,{key:t.menuId,tag:"ul",role:"menu",class:normalizeClass(t.ns.b()),"wrap-class":t.ns.e("wrap"),"view-class":[t.ns.e("list"),t.ns.is("empty",t.isEmpty)],onMousemove:t.handleMouseMove,onMouseleave:t.clearHoverZone},{default:withCtx(()=>{var _e;return[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.nodes,$e=>(openBlock(),createBlock(ue,{key:$e.uid,node:$e,"menu-id":t.menuId,onExpand:t.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),t.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.e("empty-text"))},[createVNode(pe,{size:"14",class:normalizeClass(t.ns.is("loading"))},{default:withCtx(()=>[createVNode(de)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString$1(t.t("el.cascader.loading")),1)],2)):t.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.e("empty-text"))},toDisplayString$1(t.t("el.cascader.noData")),3)):(_e=t.panel)!=null&&_e.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass(t.ns.e("hover-zone"))},null,2)):createCommentVNode("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ElCascaderMenu=_export_sfc$1(_sfc_main$1H,[["render",_sfc_render$u],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let uid=0;const calculatePathNodes=t=>{const r=[t];let{parent:V}=t;for(;V;)r.unshift(V),V=V.parent;return r};let Node$2=class So{constructor(r,V,oe,ie=!1){this.data=r,this.config=V,this.parent=oe,this.root=ie,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:le,label:ue,children:de}=V,pe=r[de],he=calculatePathNodes(this);this.level=ie?0:oe?oe.level+1:1,this.value=r[le],this.label=r[ue],this.pathNodes=he,this.pathValues=he.map(_e=>_e.value),this.pathLabels=he.map(_e=>_e.label),this.childrenData=pe,this.children=(pe||[]).map(_e=>new So(_e,V,this)),this.loaded=!V.lazy||this.isLeaf||!isEmpty(pe)}get isDisabled(){const{data:r,parent:V,config:oe}=this,{disabled:ie,checkStrictly:le}=oe;return(isFunction$5(ie)?ie(r,this):!!r[ie])||!le&&(V==null?void 0:V.isDisabled)}get isLeaf(){const{data:r,config:V,childrenData:oe,loaded:ie}=this,{lazy:le,leaf:ue}=V,de=isFunction$5(ue)?ue(r,this):r[ue];return isUndefined$1(de)?le&&!ie?!1:!(Array.isArray(oe)&&oe.length):!!de}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(r){const{childrenData:V,children:oe}=this,ie=new So(r,this.config,this);return Array.isArray(V)?V.push(r):this.childrenData=[r],oe.push(ie),ie}calcText(r,V){const oe=r?this.pathLabels.join(V):this.label;return this.text=oe,oe}broadcast(r,...V){const oe=`onParent${capitalize$1(r)}`;this.children.forEach(ie=>{ie&&(ie.broadcast(r,...V),ie[oe]&&ie[oe](...V))})}emit(r,...V){const{parent:oe}=this,ie=`onChild${capitalize$1(r)}`;oe&&(oe[ie]&&oe[ie](...V),oe.emit(r,...V))}onParentCheck(r){this.isDisabled||this.setCheckState(r)}onChildCheck(){const{children:r}=this,V=r.filter(ie=>!ie.isDisabled),oe=V.length?V.every(ie=>ie.checked):!1;this.setCheckState(oe)}setCheckState(r){const V=this.children.length,oe=this.children.reduce((ie,le)=>{const ue=le.checked?1:le.indeterminate?.5:0;return ie+ue},0);this.checked=this.loaded&&this.children.filter(ie=>!ie.isDisabled).every(ie=>ie.loaded&&ie.checked)&&r,this.indeterminate=this.loaded&&oe!==V&&oe>0}doCheck(r){if(this.checked===r)return;const{checkStrictly:V,multiple:oe}=this.config;V||!oe?this.checked=r:(this.broadcast("check",r),this.setCheckState(r),this.emit("check"))}};const flatNodes=(t,r)=>t.reduce((V,oe)=>(oe.isLeaf?V.push(oe):(!r&&V.push(oe),V=V.concat(flatNodes(oe.children,r))),V),[]);class Store{constructor(r,V){this.config=V;const oe=(r||[]).map(ie=>new Node$2(ie,this.config));this.nodes=oe,this.allNodes=flatNodes(oe,!1),this.leafNodes=flatNodes(oe,!0)}getNodes(){return this.nodes}getFlattedNodes(r){return r?this.leafNodes:this.allNodes}appendNode(r,V){const oe=V?V.appendChild(r):new Node$2(r,this.config);V||this.nodes.push(oe),this.allNodes.push(oe),oe.isLeaf&&this.leafNodes.push(oe)}appendNodes(r,V){r.forEach(oe=>this.appendNode(oe,V))}getNodeByValue(r,V=!1){return!r&&r!==0?null:this.getFlattedNodes(V).find(ie=>isEqual$1(ie.value,r)||isEqual$1(ie.pathValues,r))||null}getSameNode(r){return r&&this.getFlattedNodes(!1).find(({value:oe,level:ie})=>isEqual$1(r.value,oe)&&r.level===ie)||null}}const CommonProps=buildProps({modelValue:{type:definePropType([Number,String,Array])},options:{type:definePropType(Array),default:()=>[]},props:{type:definePropType(Object),default:()=>({})}}),DefaultProps={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:NOOP,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},useCascaderConfig=t=>computed(()=>({...DefaultProps,...t.props})),getMenuIndex=t=>{if(!t)return 0;const r=t.id.split("-");return Number(r[r.length-2])},checkNode=t=>{if(!t)return;const r=t.querySelector("input");r?r.click():isLeaf(t)&&t.click()},sortByOriginalOrder=(t,r)=>{const V=r.slice(0),oe=V.map(le=>le.uid),ie=t.reduce((le,ue)=>{const de=oe.indexOf(ue.uid);return de>-1&&(le.push(ue),V.splice(de,1),oe.splice(de,1)),le},[]);return ie.push(...V),ie},_sfc_main$1G=defineComponent({name:"ElCascaderPanel",components:{ElCascaderMenu},props:{...CommonProps,border:{type:Boolean,default:!0},renderLabel:Function},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"close","expand-change"],setup(t,{emit:r,slots:V}){let oe=!1;const ie=useNamespace("cascader"),le=useCascaderConfig(t);let ue=null;const de=ref(!0),pe=ref([]),he=ref(null),_e=ref([]),$e=ref(null),Ie=ref([]),Ve=computed(()=>le.value.expandTrigger==="hover"),Fe=computed(()=>t.renderLabel||V.default),Ue=()=>{const{options:xn}=t,Pn=le.value;oe=!1,ue=new Store(xn,Pn),_e.value=[ue.getNodes()],Pn.lazy&&isEmpty(t.options)?(de.value=!1,qe(void 0,kn=>{kn&&(ue=new Store(kn,Pn),_e.value=[ue.getNodes()]),de.value=!0,Cn(!1,!0)})):Cn(!1,!0)},qe=(xn,Pn)=>{const kn=le.value;xn=xn||new Node$2({},kn,void 0,!0),xn.loading=!0;const Nn=Dn=>{const Mn=xn,Ln=Mn.root?null:Mn;Dn&&(ue==null||ue.appendNodes(Dn,Ln)),Mn.loading=!1,Mn.loaded=!0,Mn.childrenData=Mn.childrenData||[],Pn&&Pn(Dn)};kn.lazyLoad(xn,Nn)},Et=(xn,Pn)=>{var kn;const{level:Nn}=xn,Dn=_e.value.slice(0,Nn);let Mn;xn.isLeaf?Mn=xn.pathNodes[Nn-2]:(Mn=xn,Dn.push(xn.children)),((kn=$e.value)==null?void 0:kn.uid)!==(Mn==null?void 0:Mn.uid)&&($e.value=xn,_e.value=Dn,!Pn&&r("expand-change",(xn==null?void 0:xn.pathValues)||[]))},At=(xn,Pn,kn=!0)=>{const{checkStrictly:Nn,multiple:Dn}=le.value,Mn=Ie.value[0];oe=!0,!Dn&&(Mn==null||Mn.doCheck(!1)),xn.doCheck(Pn),bn(),kn&&!Dn&&!Nn&&r("close"),!kn&&!Dn&&!Nn&&Lt(xn)},Lt=xn=>{xn&&(xn=xn.parent,Lt(xn),xn&&Et(xn))},hn=xn=>ue==null?void 0:ue.getFlattedNodes(xn),_n=xn=>{var Pn;return(Pn=hn(xn))==null?void 0:Pn.filter(kn=>kn.checked!==!1)},vn=()=>{Ie.value.forEach(xn=>xn.doCheck(!1)),bn(),_e.value=_e.value.slice(0,1),$e.value=null,r("expand-change",[])},bn=()=>{var xn;const{checkStrictly:Pn,multiple:kn}=le.value,Nn=Ie.value,Dn=_n(!Pn),Mn=sortByOriginalOrder(Nn,Dn),Ln=Mn.map(An=>An.valueByOption);Ie.value=Mn,he.value=kn?Ln:(xn=Ln[0])!=null?xn:null},Cn=(xn=!1,Pn=!1)=>{const{modelValue:kn}=t,{lazy:Nn,multiple:Dn,checkStrictly:Mn}=le.value,Ln=!Mn;if(!(!de.value||oe||!Pn&&isEqual$1(kn,he.value)))if(Nn&&!xn){const Vn=unique(flattenDeep(castArray(kn))).map(Wn=>ue==null?void 0:ue.getNodeByValue(Wn)).filter(Wn=>!!Wn&&!Wn.loaded&&!Wn.loading);Vn.length?Vn.forEach(Wn=>{qe(Wn,()=>Cn(!1,Pn))}):Cn(!0,Pn)}else{const An=Dn?castArray(kn):[kn],Vn=unique(An.map(Wn=>ue==null?void 0:ue.getNodeByValue(Wn,Ln)));Sn(Vn,Pn),he.value=cloneDeep(kn)}},Sn=(xn,Pn=!0)=>{const{checkStrictly:kn}=le.value,Nn=Ie.value,Dn=xn.filter(An=>!!An&&(kn||An.isLeaf)),Mn=ue==null?void 0:ue.getSameNode($e.value),Ln=Pn&&Mn||Dn[0];Ln?Ln.pathNodes.forEach(An=>Et(An,!0)):$e.value=null,Nn.forEach(An=>An.doCheck(!1)),t.props.multiple?reactive(Dn).forEach(An=>An.doCheck(!0)):Dn.forEach(An=>An.doCheck(!0)),Ie.value=Dn,nextTick(wn)},wn=()=>{isClient$1&&pe.value.forEach(xn=>{const Pn=xn==null?void 0:xn.$el;if(Pn){const kn=Pn.querySelector(`.${ie.namespace.value}-scrollbar__wrap`),Nn=Pn.querySelector(`.${ie.b("node")}.${ie.is("active")}`)||Pn.querySelector(`.${ie.b("node")}.in-active-path`);scrollIntoView(kn,Nn)}})},En=xn=>{const Pn=xn.target,{code:kn}=xn;switch(kn){case EVENT_CODE.up:case EVENT_CODE.down:{xn.preventDefault();const Nn=kn===EVENT_CODE.up?-1:1;focusNode(getSibling(Pn,Nn,`.${ie.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{xn.preventDefault();const Nn=pe.value[getMenuIndex(Pn)-1],Dn=Nn==null?void 0:Nn.$el.querySelector(`.${ie.b("node")}[aria-expanded="true"]`);focusNode(Dn);break}case EVENT_CODE.right:{xn.preventDefault();const Nn=pe.value[getMenuIndex(Pn)+1],Dn=Nn==null?void 0:Nn.$el.querySelector(`.${ie.b("node")}[tabindex="-1"]`);focusNode(Dn);break}case EVENT_CODE.enter:checkNode(Pn);break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:le,expandingNode:$e,checkedNodes:Ie,isHoverMenu:Ve,initialLoaded:de,renderLabelFn:Fe,lazyLoad:qe,expandNode:Et,handleCheckChange:At})),watch([le,()=>t.options],Ue,{deep:!0,immediate:!0}),watch(()=>t.modelValue,()=>{oe=!1,Cn()},{deep:!0}),watch(()=>he.value,xn=>{isEqual$1(xn,t.modelValue)||(r(UPDATE_MODEL_EVENT,xn),r(CHANGE_EVENT,xn))}),onBeforeUpdate(()=>pe.value=[]),onMounted(()=>!isEmpty(t.modelValue)&&Cn()),{ns:ie,menuList:pe,menus:_e,checkedNodes:Ie,handleKeyDown:En,handleCheckChange:At,getFlattedNodes:hn,getCheckedNodes:_n,clearCheckedNodes:vn,calculateCheckedValue:bn,scrollToExpandingNode:wn}}});function _sfc_render$t(t,r,V,oe,ie,le){const ue=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b("panel"),t.ns.is("bordered",t.border)]),onKeydown:r[0]||(r[0]=(...de)=>t.handleKeyDown&&t.handleKeyDown(...de))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.menus,(de,pe)=>(openBlock(),createBlock(ue,{key:pe,ref_for:!0,ref:he=>t.menuList[pe]=he,index:pe,nodes:[...de]},null,8,["index","nodes"]))),128))],34)}var CascaderPanel=_export_sfc$1(_sfc_main$1G,[["render",_sfc_render$t],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);CascaderPanel.install=t=>{t.component(CascaderPanel.name,CascaderPanel)};const _CascaderPanel=CascaderPanel,ElCascaderPanel=_CascaderPanel,tagProps=buildProps({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},__default__$14=defineComponent({name:"ElTag"}),_sfc_main$1F=defineComponent({...__default__$14,props:tagProps,emits:tagEmits,setup(t,{emit:r}){const V=t,oe=useFormSize(),ie=useNamespace("tag"),le=computed(()=>{const{type:pe,hit:he,effect:_e,closable:$e,round:Ie}=V;return[ie.b(),ie.is("closable",$e),ie.m(pe),ie.m(oe.value),ie.m(_e),ie.is("hit",he),ie.is("round",Ie)]}),ue=pe=>{r("close",pe)},de=pe=>{r("click",pe)};return(pe,he)=>pe.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(le)),style:normalizeStyle$1({backgroundColor:pe.color}),onClick:de},[createBaseVNode("span",{class:normalizeClass(unref(ie).e("content"))},[renderSlot(pe.$slots,"default")],2),pe.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("close")),onClick:withModifiers(ue,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(ie).namespace.value}-zoom-in-center`,appear:""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(le)),style:normalizeStyle$1({backgroundColor:pe.color}),onClick:de},[createBaseVNode("span",{class:normalizeClass(unref(ie).e("content"))},[renderSlot(pe.$slots,"default")],2),pe.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("close")),onClick:withModifiers(ue,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Tag=_export_sfc$1(_sfc_main$1F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ElTag=withInstall(Tag),cascaderProps=buildProps({...CommonProps,size:useSizeProp,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:definePropType(Function),default:(t,r)=>t.text.includes(r)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:definePropType(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:useTooltipContentProps.teleported,tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),cascaderEmits={[UPDATE_MODEL_EVENT]:t=>!!t||t===null,[CHANGE_EVENT]:t=>!!t||t===null,focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,visibleChange:t=>isBoolean$3(t),expandChange:t=>!!t,removeTag:t=>!!t},_hoisted_1$P={key:0},_hoisted_2$y=["placeholder","onKeydown"],_hoisted_3$l=["onClick"],COMPONENT_NAME$e="ElCascader",__default__$13=defineComponent({name:COMPONENT_NAME$e}),_sfc_main$1E=defineComponent({...__default__$13,props:cascaderProps,emits:cascaderEmits,setup(t,{expose:r,emit:V}){const oe=t,ie={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ir})=>{const{modifiersData:ar,placement:$r}=ir;["right","left","bottom","top"].includes($r)||(ar.arrow.x=35)},requires:["arrow"]}]},le=useAttrs$1();let ue=0,de=0;const pe=useNamespace("cascader"),he=useNamespace("input"),{t:_e}=useLocale(),{form:$e,formItem:Ie}=useFormItem(),Ve=ref(null),Fe=ref(null),Ue=ref(null),qe=ref(null),Et=ref(null),At=ref(!1),Lt=ref(!1),hn=ref(!1),_n=ref(!1),vn=ref(""),bn=ref(""),Cn=ref([]),Sn=ref([]),wn=ref([]),En=ref(!1),xn=computed(()=>le.style),Pn=computed(()=>oe.disabled||($e==null?void 0:$e.disabled)),kn=computed(()=>oe.placeholder||_e("el.cascader.placeholder")),Nn=computed(()=>bn.value||Cn.value.length>0||En.value?"":kn.value),Dn=useFormSize(),Mn=computed(()=>["small"].includes(Dn.value)?"small":"default"),Ln=computed(()=>!!oe.props.multiple),An=computed(()=>!oe.filterable||Ln.value),Vn=computed(()=>Ln.value?bn.value:vn.value),Wn=computed(()=>{var ir;return((ir=qe.value)==null?void 0:ir.checkedNodes)||[]}),Fn=computed(()=>!oe.clearable||Pn.value||hn.value||!Lt.value?!1:!!Wn.value.length),Yn=computed(()=>{const{showAllLevels:ir,separator:ar}=oe,$r=Wn.value;return $r.length?Ln.value?"":$r[0].calcText(ir,ar):""}),tr=computed({get(){return cloneDeep(oe.modelValue)},set(ir){V(UPDATE_MODEL_EVENT,ir),V(CHANGE_EVENT,ir),oe.validateEvent&&(Ie==null||Ie.validate("change").catch(ar=>void 0))}}),yr=computed(()=>[pe.b(),pe.m(Dn.value),pe.is("disabled",Pn.value),le.class]),Jn=computed(()=>[he.e("icon"),"icon-arrow-down",pe.is("reverse",At.value)]),Kn=computed(()=>pe.is("focus",At.value||_n.value)),Gn=computed(()=>{var ir,ar;return(ar=(ir=Ve.value)==null?void 0:ir.popperRef)==null?void 0:ar.contentRef}),Qn=ir=>{var ar,$r,Zn;Pn.value||(ir=ir??!At.value,ir!==At.value&&(At.value=ir,($r=(ar=Fe.value)==null?void 0:ar.input)==null||$r.setAttribute("aria-expanded",`${ir}`),ir?(ur(),nextTick((Zn=qe.value)==null?void 0:Zn.scrollToExpandingNode)):oe.filterable&&fr(),V("visibleChange",ir)))},ur=()=>{nextTick(()=>{var ir;(ir=Ve.value)==null||ir.updatePopper()})},cr=()=>{hn.value=!1},Un=ir=>{const{showAllLevels:ar,separator:$r}=oe;return{node:ir,key:ir.uid,text:ir.calcText(ar,$r),hitState:!1,closable:!Pn.value&&!ir.isDisabled,isCollapseTag:!1}},qn=ir=>{var ar;const $r=ir.node;$r.doCheck(!1),(ar=qe.value)==null||ar.calculateCheckedValue(),V("removeTag",$r.valueByOption)},er=()=>{if(!Ln.value)return;const ir=Wn.value,ar=[],$r=[];if(ir.forEach(Zn=>$r.push(Un(Zn))),Sn.value=$r,ir.length){ir.slice(0,oe.maxCollapseTags).forEach(Lr=>ar.push(Un(Lr)));const Zn=ir.slice(oe.maxCollapseTags),Or=Zn.length;Or&&(oe.collapseTags?ar.push({key:-1,text:`+ ${Or}`,closable:!1,isCollapseTag:!0}):Zn.forEach(Lr=>ar.push(Un(Lr))))}Cn.value=ar},pr=()=>{var ir,ar;const{filterMethod:$r,showAllLevels:Zn,separator:Or}=oe,Lr=(ar=(ir=qe.value)==null?void 0:ir.getFlattedNodes(!oe.props.checkStrictly))==null?void 0:ar.filter(Ur=>Ur.isDisabled?!1:(Ur.calcText(Zn,Or),$r(Ur,Vn.value)));Ln.value&&(Cn.value.forEach(Ur=>{Ur.hitState=!1}),Sn.value.forEach(Ur=>{Ur.hitState=!1})),hn.value=!0,wn.value=Lr,ur()},Er=()=>{var ir;let ar;hn.value&&Et.value?ar=Et.value.$el.querySelector(`.${pe.e("suggestion-item")}`):ar=(ir=qe.value)==null?void 0:ir.$el.querySelector(`.${pe.b("node")}[tabindex="-1"]`),ar&&(ar.focus(),!hn.value&&ar.click())},dr=()=>{var ir,ar;const $r=(ir=Fe.value)==null?void 0:ir.input,Zn=Ue.value,Or=(ar=Et.value)==null?void 0:ar.$el;if(!(!isClient$1||!$r)){if(Or){const Lr=Or.querySelector(`.${pe.e("suggestion-list")}`);Lr.style.minWidth=`${$r.offsetWidth}px`}if(Zn){const{offsetHeight:Lr}=Zn,Ur=Cn.value.length>0?`${Math.max(Lr+6,ue)}px`:`${ue}px`;$r.style.height=Ur,ur()}}},xr=ir=>{var ar;return(ar=qe.value)==null?void 0:ar.getCheckedNodes(ir)},wr=ir=>{ur(),V("expandChange",ir)},Cr=ir=>{var ar;const $r=(ar=ir.target)==null?void 0:ar.value;if(ir.type==="compositionend")En.value=!1,nextTick(()=>Rr($r));else{const Zn=$r[$r.length-1]||"";En.value=!isKorean(Zn)}},gr=ir=>{if(!En.value)switch(ir.code){case EVENT_CODE.enter:Qn();break;case EVENT_CODE.down:Qn(!0),nextTick(Er),ir.preventDefault();break;case EVENT_CODE.esc:At.value===!0&&(ir.preventDefault(),ir.stopPropagation(),Qn(!1));break;case EVENT_CODE.tab:Qn(!1);break}},or=()=>{var ir;(ir=qe.value)==null||ir.clearCheckedNodes(),!At.value&&oe.filterable&&fr(),Qn(!1)},fr=()=>{const{value:ir}=Yn;vn.value=ir,bn.value=ir},kr=ir=>{var ar,$r;const{checked:Zn}=ir;Ln.value?(ar=qe.value)==null||ar.handleCheckChange(ir,!Zn,!1):(!Zn&&(($r=qe.value)==null||$r.handleCheckChange(ir,!0,!1)),Qn(!1))},br=ir=>{const ar=ir.target,{code:$r}=ir;switch($r){case EVENT_CODE.up:case EVENT_CODE.down:{const Zn=$r===EVENT_CODE.up?-1:1;focusNode(getSibling(ar,Zn,`.${pe.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:ar.click();break}},Ar=()=>{const ir=Cn.value,ar=ir[ir.length-1];de=bn.value?0:de+1,!(!ar||!de||oe.collapseTags&&ir.length>1)&&(ar.hitState?qn(ar):ar.hitState=!0)},Dr=ir=>{const ar=ir.target,$r=pe.e("search-input");ar.className===$r&&(_n.value=!0),V("focus",ir)},Br=ir=>{_n.value=!1,V("blur",ir)},zr=debounce(()=>{const{value:ir}=Vn;if(!ir)return;const ar=oe.beforeFilter(ir);isPromise(ar)?ar.then(pr).catch(()=>{}):ar!==!1?pr():cr()},oe.debounce),Rr=(ir,ar)=>{!At.value&&Qn(!0),!(ar!=null&&ar.isComposing)&&(ir?zr():cr())},mr=ir=>Number.parseFloat(useCssVar(he.cssVarName("input-height"),ir).value)-2;return watch(hn,ur),watch([Wn,Pn],er),watch(Cn,()=>{nextTick(()=>dr())}),watch(Dn,async()=>{await nextTick();const ir=Fe.value.input;ue=mr(ir)||ue,dr()}),watch(Yn,fr,{immediate:!0}),onMounted(()=>{const ir=Fe.value.input,ar=mr(ir);ue=ir.offsetHeight||ar,useResizeObserver$1(ir,dr)}),r({getCheckedNodes:xr,cascaderPanelRef:qe,togglePopperVisible:Qn,contentRef:Gn}),(ir,ar)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:Ve,visible:At.value,teleported:ir.teleported,"popper-class":[unref(pe).e("dropdown"),ir.popperClass],"popper-options":ie,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${unref(pe).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:cr},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(unref(yr)),style:normalizeStyle$1(unref(xn)),onClick:ar[5]||(ar[5]=()=>Qn(unref(An)?void 0:!0)),onKeydown:gr,onMouseenter:ar[6]||(ar[6]=$r=>Lt.value=!0),onMouseleave:ar[7]||(ar[7]=$r=>Lt.value=!1)},[createVNode(unref(ElInput),{ref_key:"input",ref:Fe,modelValue:vn.value,"onUpdate:modelValue":ar[1]||(ar[1]=$r=>vn.value=$r),placeholder:unref(Nn),readonly:unref(An),disabled:unref(Pn),"validate-event":!1,size:unref(Dn),class:normalizeClass(unref(Kn)),tabindex:unref(Ln)&&ir.filterable&&!unref(Pn)?-1:void 0,onCompositionstart:Cr,onCompositionupdate:Cr,onCompositionend:Cr,onFocus:Dr,onBlur:Br,onInput:Rr},{suffix:withCtx(()=>[unref(Fn)?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref(he).e("icon"),"icon-circle-close"]),onClick:withModifiers(or,["stop"])},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onClick"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(unref(Jn)),onClick:ar[0]||(ar[0]=withModifiers($r=>Qn(),["stop"]))},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),unref(Ln)?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:Ue,class:normalizeClass(unref(pe).e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Cn.value,$r=>(openBlock(),createBlock(unref(ElTag),{key:$r.key,type:ir.tagType,size:unref(Mn),hit:$r.hitState,closable:$r.closable,"disable-transitions":"",onClose:Zn=>qn($r)},{default:withCtx(()=>[$r.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$P,toDisplayString$1($r.text),1)):(openBlock(),createBlock(unref(ElTooltip),{key:1,disabled:At.value||!ir.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1($r.text),1)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(pe).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Sn.value.slice(ir.maxCollapseTags),(Zn,Or)=>(openBlock(),createElementBlock("div",{key:Or,class:normalizeClass(unref(pe).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:Zn.key,class:"in-tooltip",type:ir.tagType,size:unref(Mn),hit:Zn.hitState,closable:Zn.closable,"disable-transitions":"",onClose:Lr=>qn(Zn)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(Zn.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),ir.filterable&&!unref(Pn)?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":ar[2]||(ar[2]=$r=>bn.value=$r),type:"text",class:normalizeClass(unref(pe).e("search-input")),placeholder:unref(Yn)?"":unref(kn),onInput:ar[3]||(ar[3]=$r=>Rr(bn.value,$r)),onClick:ar[4]||(ar[4]=withModifiers($r=>Qn(!0),["stop"])),onKeydown:withKeys(Ar,["delete"]),onCompositionstart:Cr,onCompositionupdate:Cr,onCompositionend:Cr,onFocus:Dr,onBlur:Br},null,42,_hoisted_2$y)),[[vModelText,bn.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),()=>Qn(!1),unref(Gn)]])]),content:withCtx(()=>[withDirectives(createVNode(unref(_CascaderPanel),{ref_key:"cascaderPanelRef",ref:qe,modelValue:unref(tr),"onUpdate:modelValue":ar[8]||(ar[8]=$r=>isRef(tr)?tr.value=$r:null),options:ir.options,props:oe.props,border:!1,"render-label":ir.$slots.default,onExpandChange:wr,onClose:ar[9]||(ar[9]=$r=>ir.$nextTick(()=>Qn(!1)))},null,8,["modelValue","options","props","render-label"]),[[vShow,!hn.value]]),ir.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:0,ref_key:"suggestionPanel",ref:Et,tag:"ul",class:normalizeClass(unref(pe).e("suggestion-panel")),"view-class":unref(pe).e("suggestion-list"),onKeydown:br},{default:withCtx(()=>[wn.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(wn.value,$r=>(openBlock(),createElementBlock("li",{key:$r.uid,class:normalizeClass([unref(pe).e("suggestion-item"),unref(pe).is("checked",$r.checked)]),tabindex:-1,onClick:Zn=>kr($r)},[createBaseVNode("span",null,toDisplayString$1($r.text),1),$r.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_3$l))),128)):renderSlot(ir.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref(pe).e("empty-text"))},toDisplayString$1(unref(_e)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,hn.value]]):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Cascader=_export_sfc$1(_sfc_main$1E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Cascader.install=t=>{t.component(Cascader.name,Cascader)};const _Cascader=Cascader,ElCascader=_Cascader,checkTagProps=buildProps({checked:{type:Boolean,default:!1}}),checkTagEmits={"update:checked":t=>isBoolean$3(t),[CHANGE_EVENT]:t=>isBoolean$3(t)},__default__$12=defineComponent({name:"ElCheckTag"}),_sfc_main$1D=defineComponent({...__default__$12,props:checkTagProps,emits:checkTagEmits,setup(t,{emit:r}){const V=t,oe=useNamespace("check-tag"),ie=computed(()=>[oe.b(),oe.is("checked",V.checked)]),le=()=>{const ue=!V.checked;r(CHANGE_EVENT,ue),r("update:checked",ue)};return(ue,de)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie)),onClick:le},[renderSlot(ue.$slots,"default")],2))}});var CheckTag=_export_sfc$1(_sfc_main$1D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ElCheckTag=withInstall(CheckTag),rowContextKey=Symbol("rowContextKey"),RowJustify=["start","center","end","space-around","space-between","space-evenly"],RowAlign=["top","middle","bottom"],rowProps=buildProps({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:RowJustify,default:"start"},align:{type:String,values:RowAlign}}),__default__$11=defineComponent({name:"ElRow"}),_sfc_main$1C=defineComponent({...__default__$11,props:rowProps,setup(t){const r=t,V=useNamespace("row"),oe=computed(()=>r.gutter);provide(rowContextKey,{gutter:oe});const ie=computed(()=>{const ue={};return r.gutter&&(ue.marginRight=ue.marginLeft=`-${r.gutter/2}px`),ue}),le=computed(()=>[V.b(),V.is(`justify-${r.justify}`,r.justify!=="start"),V.is(`align-${r.align}`,!!r.align)]);return(ue,de)=>(openBlock(),createBlock(resolveDynamicComponent(ue.tag),{class:normalizeClass(unref(le)),style:normalizeStyle$1(unref(ie))},{default:withCtx(()=>[renderSlot(ue.$slots,"default")]),_:3},8,["class","style"]))}});var Row=_export_sfc$1(_sfc_main$1C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ElRow=withInstall(Row),colProps=buildProps({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:definePropType([Number,Object]),default:()=>mutable({})},sm:{type:definePropType([Number,Object]),default:()=>mutable({})},md:{type:definePropType([Number,Object]),default:()=>mutable({})},lg:{type:definePropType([Number,Object]),default:()=>mutable({})},xl:{type:definePropType([Number,Object]),default:()=>mutable({})}}),__default__$10=defineComponent({name:"ElCol"}),_sfc_main$1B=defineComponent({...__default__$10,props:colProps,setup(t){const r=t,{gutter:V}=inject(rowContextKey,{gutter:computed(()=>0)}),oe=useNamespace("col"),ie=computed(()=>{const ue={};return V.value&&(ue.paddingLeft=ue.paddingRight=`${V.value/2}px`),ue}),le=computed(()=>{const ue=[];return["span","offset","pull","push"].forEach(he=>{const _e=r[he];isNumber$4(_e)&&(he==="span"?ue.push(oe.b(`${r[he]}`)):_e>0&&ue.push(oe.b(`${he}-${r[he]}`)))}),["xs","sm","md","lg","xl"].forEach(he=>{isNumber$4(r[he])?ue.push(oe.b(`${he}-${r[he]}`)):isObject$9(r[he])&&Object.entries(r[he]).forEach(([_e,$e])=>{ue.push(_e!=="span"?oe.b(`${he}-${_e}-${$e}`):oe.b(`${he}-${$e}`))})}),V.value&&ue.push(oe.is("guttered")),[oe.b(),ue]});return(ue,de)=>(openBlock(),createBlock(resolveDynamicComponent(ue.tag),{class:normalizeClass(unref(le)),style:normalizeStyle$1(unref(ie))},{default:withCtx(()=>[renderSlot(ue.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc$1(_sfc_main$1B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=t=>typeof isNumber$4(t),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),useCollapse=(t,r)=>{const V=ref(castArray$1(t.modelValue)),oe=le=>{V.value=le;const ue=t.accordion?V.value[0]:V.value;r(UPDATE_MODEL_EVENT,ue),r(CHANGE_EVENT,ue)},ie=le=>{if(t.accordion)oe([V.value[0]===le?"":le]);else{const ue=[...V.value],de=ue.indexOf(le);de>-1?ue.splice(de,1):ue.push(le),oe(ue)}};return watch(()=>t.modelValue,()=>V.value=castArray$1(t.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:V,handleItemClick:ie}),{activeNames:V,setActiveNames:oe}},useCollapseDOM=()=>{const t=useNamespace("collapse");return{rootKls:computed(()=>t.b())}},__default__$$=defineComponent({name:"ElCollapse"}),_sfc_main$1A=defineComponent({...__default__$$,props:collapseProps,emits:collapseEmits,setup(t,{expose:r,emit:V}){const oe=t,{activeNames:ie,setActiveNames:le}=useCollapse(oe,V),{rootKls:ue}=useCollapseDOM();return r({activeNames:ie,setActiveNames:le}),(de,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue)),role:"tablist","aria-multiselectable":"true"},[renderSlot(de.$slots,"default")],2))}});var Collapse=_export_sfc$1(_sfc_main$1A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const __default__$_=defineComponent({name:"ElCollapseTransition"}),_sfc_main$1z=defineComponent({...__default__$_,setup(t){const r=useNamespace("collapse-transition"),V=ie=>{ie.style.maxHeight="",ie.style.overflow=ie.dataset.oldOverflow,ie.style.paddingTop=ie.dataset.oldPaddingTop,ie.style.paddingBottom=ie.dataset.oldPaddingBottom},oe={beforeEnter(ie){ie.dataset||(ie.dataset={}),ie.dataset.oldPaddingTop=ie.style.paddingTop,ie.dataset.oldPaddingBottom=ie.style.paddingBottom,ie.style.maxHeight=0,ie.style.paddingTop=0,ie.style.paddingBottom=0},enter(ie){ie.dataset.oldOverflow=ie.style.overflow,ie.scrollHeight!==0?ie.style.maxHeight=`${ie.scrollHeight}px`:ie.style.maxHeight=0,ie.style.paddingTop=ie.dataset.oldPaddingTop,ie.style.paddingBottom=ie.dataset.oldPaddingBottom,ie.style.overflow="hidden"},afterEnter(ie){ie.style.maxHeight="",ie.style.overflow=ie.dataset.oldOverflow},enterCancelled(ie){V(ie)},beforeLeave(ie){ie.dataset||(ie.dataset={}),ie.dataset.oldPaddingTop=ie.style.paddingTop,ie.dataset.oldPaddingBottom=ie.style.paddingBottom,ie.dataset.oldOverflow=ie.style.overflow,ie.style.maxHeight=`${ie.scrollHeight}px`,ie.style.overflow="hidden"},leave(ie){ie.scrollHeight!==0&&(ie.style.maxHeight=0,ie.style.paddingTop=0,ie.style.paddingBottom=0)},afterLeave(ie){V(ie)},leaveCancelled(ie){V(ie)}};return(ie,le)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(r).b()},toHandlers(oe)),{default:withCtx(()=>[renderSlot(ie.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc$1(_sfc_main$1z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);CollapseTransition.install=t=>{t.component(CollapseTransition.name,CollapseTransition)};const _CollapseTransition=CollapseTransition,ElCollapseTransition=_CollapseTransition,collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:()=>generateId()},disabled:Boolean}),useCollapseItem=t=>{const r=inject(collapseContextKey),V=ref(!1),oe=ref(!1),ie=ref(generateId()),le=computed(()=>r==null?void 0:r.activeNames.value.includes(t.name));return{focusing:V,id:ie,isActive:le,handleFocus:()=>{setTimeout(()=>{oe.value?oe.value=!1:V.value=!0},50)},handleHeaderClick:()=>{t.disabled||(r==null||r.handleItemClick(t.name),V.value=!1,oe.value=!0)},handleEnterClick:()=>{r==null||r.handleItemClick(t.name)}}},useCollapseItemDOM=(t,{focusing:r,isActive:V,id:oe})=>{const ie=useNamespace("collapse"),le=computed(()=>[ie.b("item"),ie.is("active",unref(V)),ie.is("disabled",t.disabled)]),ue=computed(()=>[ie.be("item","header"),ie.is("active",unref(V)),{focusing:unref(r)&&!t.disabled}]),de=computed(()=>[ie.be("item","arrow"),ie.is("active",unref(V))]),pe=computed(()=>ie.be("item","wrap")),he=computed(()=>ie.be("item","content")),_e=computed(()=>ie.b(`content-${unref(oe)}`)),$e=computed(()=>ie.b(`head-${unref(oe)}`));return{arrowKls:de,headKls:ue,rootKls:le,itemWrapperKls:pe,itemContentKls:he,scopedContentId:_e,scopedHeadId:$e}},_hoisted_1$O=["aria-expanded","aria-controls","aria-describedby"],_hoisted_2$x=["id","tabindex"],_hoisted_3$k=["id","aria-hidden","aria-labelledby"],__default__$Z=defineComponent({name:"ElCollapseItem"}),_sfc_main$1y=defineComponent({...__default__$Z,props:collapseItemProps,setup(t,{expose:r}){const V=t,{focusing:oe,id:ie,isActive:le,handleFocus:ue,handleHeaderClick:de,handleEnterClick:pe}=useCollapseItem(V),{arrowKls:he,headKls:_e,rootKls:$e,itemWrapperKls:Ie,itemContentKls:Ve,scopedContentId:Fe,scopedHeadId:Ue}=useCollapseItemDOM(V,{focusing:oe,isActive:le,id:ie});return r({isActive:le}),(qe,Et)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref($e))},[createBaseVNode("div",{role:"tab","aria-expanded":unref(le),"aria-controls":unref(Fe),"aria-describedby":unref(Fe)},[createBaseVNode("div",{id:unref(Ue),class:normalizeClass(unref(_e)),role:"button",tabindex:qe.disabled?-1:0,onClick:Et[0]||(Et[0]=(...At)=>unref(de)&&unref(de)(...At)),onKeypress:Et[1]||(Et[1]=withKeys(withModifiers((...At)=>unref(pe)&&unref(pe)(...At),["stop","prevent"]),["space","enter"])),onFocus:Et[2]||(Et[2]=(...At)=>unref(ue)&&unref(ue)(...At)),onBlur:Et[3]||(Et[3]=At=>oe.value=!1)},[renderSlot(qe.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(qe.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass(unref(he))},{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1},8,["class"])],42,_hoisted_2$x)],8,_hoisted_1$O),createVNode(unref(_CollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(Fe),class:normalizeClass(unref(Ie)),role:"tabpanel","aria-hidden":!unref(le),"aria-labelledby":unref(Ue)},[createBaseVNode("div",{class:normalizeClass(unref(Ve))},[renderSlot(qe.$slots,"default")],2)],10,_hoisted_3$k),[[vShow,unref(le)]])]),_:3})],2))}});var CollapseItem=_export_sfc$1(_sfc_main$1y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const ElCollapse=withInstall(Collapse,{CollapseItem}),ElCollapseItem=withNoopInstall(CollapseItem),alphaSliderProps=buildProps({color:{type:definePropType(Object),required:!0},vertical:{type:Boolean,default:!1}});let isDragging=!1;function draggable(t,r){if(!isClient$1)return;const V=function(le){var ue;(ue=r.drag)==null||ue.call(r,le)},oe=function(le){var ue;document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",oe),document.removeEventListener("touchmove",V),document.removeEventListener("touchend",oe),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(ue=r.end)==null||ue.call(r,le)},ie=function(le){var ue;isDragging||(le.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",V),document.addEventListener("mouseup",oe),document.addEventListener("touchmove",V),document.addEventListener("touchend",oe),isDragging=!0,(ue=r.start)==null||ue.call(r,le))};t.addEventListener("mousedown",ie),t.addEventListener("touchstart",ie)}const useAlphaSlider=t=>{const r=getCurrentInstance(),V=shallowRef(),oe=shallowRef();function ie(ue){ue.target!==V.value&&le(ue)}function le(ue){if(!oe.value||!V.value)return;const pe=r.vnode.el.getBoundingClientRect(),{clientX:he,clientY:_e}=getClientXY(ue);if(t.vertical){let $e=_e-pe.top;$e=Math.max(V.value.offsetHeight/2,$e),$e=Math.min($e,pe.height-V.value.offsetHeight/2),t.color.set("alpha",Math.round(($e-V.value.offsetHeight/2)/(pe.height-V.value.offsetHeight)*100))}else{let $e=he-pe.left;$e=Math.max(V.value.offsetWidth/2,$e),$e=Math.min($e,pe.width-V.value.offsetWidth/2),t.color.set("alpha",Math.round(($e-V.value.offsetWidth/2)/(pe.width-V.value.offsetWidth)*100))}}return{thumb:V,bar:oe,handleDrag:le,handleClick:ie}},useAlphaSliderDOM=(t,{bar:r,thumb:V,handleDrag:oe})=>{const ie=getCurrentInstance(),le=useNamespace("color-alpha-slider"),ue=ref(0),de=ref(0),pe=ref();function he(){if(!V.value||t.vertical)return 0;const At=ie.vnode.el,Lt=t.color.get("alpha");return At?Math.round(Lt*(At.offsetWidth-V.value.offsetWidth/2)/100):0}function _e(){if(!V.value)return 0;const At=ie.vnode.el;if(!t.vertical)return 0;const Lt=t.color.get("alpha");return At?Math.round(Lt*(At.offsetHeight-V.value.offsetHeight/2)/100):0}function $e(){if(t.color&&t.color.value){const{r:At,g:Lt,b:hn}=t.color.toRgb();return`linear-gradient(to right, rgba(${At}, ${Lt}, ${hn}, 0) 0%, rgba(${At}, ${Lt}, ${hn}, 1) 100%)`}return""}function Ie(){ue.value=he(),de.value=_e(),pe.value=$e()}onMounted(()=>{if(!r.value||!V.value)return;const At={drag:Lt=>{oe(Lt)},end:Lt=>{oe(Lt)}};draggable(r.value,At),draggable(V.value,At),Ie()}),watch(()=>t.color.get("alpha"),()=>Ie()),watch(()=>t.color.value,()=>Ie());const Ve=computed(()=>[le.b(),le.is("vertical",t.vertical)]),Fe=computed(()=>le.e("bar")),Ue=computed(()=>le.e("thumb")),qe=computed(()=>({background:pe.value})),Et=computed(()=>({left:addUnit(ue.value),top:addUnit(de.value)}));return{rootKls:Ve,barKls:Fe,barStyle:qe,thumbKls:Ue,thumbStyle:Et,update:Ie}},COMPONENT_NAME$d="ElColorAlphaSlider",__default__$Y=defineComponent({name:COMPONENT_NAME$d}),_sfc_main$1x=defineComponent({...__default__$Y,props:alphaSliderProps,setup(t,{expose:r}){const V=t,{bar:oe,thumb:ie,handleDrag:le,handleClick:ue}=useAlphaSlider(V),{rootKls:de,barKls:pe,barStyle:he,thumbKls:_e,thumbStyle:$e,update:Ie}=useAlphaSliderDOM(V,{bar:oe,thumb:ie,handleDrag:le});return r({update:Ie,bar:oe,thumb:ie}),(Ve,Fe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(de))},[createBaseVNode("div",{ref_key:"bar",ref:oe,class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(he)),onClick:Fe[0]||(Fe[0]=(...Ue)=>unref(ue)&&unref(ue)(...Ue))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:ie,class:normalizeClass(unref(_e)),style:normalizeStyle$1(unref($e))},null,6)],2))}});var AlphaSlider=_export_sfc$1(_sfc_main$1x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const _sfc_main$1w=defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const r=useNamespace("color-hue-slider"),V=getCurrentInstance(),oe=ref(),ie=ref(),le=ref(0),ue=ref(0),de=computed(()=>t.color.get("hue"));watch(()=>de.value,()=>{Ie()});function pe(Ve){Ve.target!==oe.value&&he(Ve)}function he(Ve){if(!ie.value||!oe.value)return;const Ue=V.vnode.el.getBoundingClientRect(),{clientX:qe,clientY:Et}=getClientXY(Ve);let At;if(t.vertical){let Lt=Et-Ue.top;Lt=Math.min(Lt,Ue.height-oe.value.offsetHeight/2),Lt=Math.max(oe.value.offsetHeight/2,Lt),At=Math.round((Lt-oe.value.offsetHeight/2)/(Ue.height-oe.value.offsetHeight)*360)}else{let Lt=qe-Ue.left;Lt=Math.min(Lt,Ue.width-oe.value.offsetWidth/2),Lt=Math.max(oe.value.offsetWidth/2,Lt),At=Math.round((Lt-oe.value.offsetWidth/2)/(Ue.width-oe.value.offsetWidth)*360)}t.color.set("hue",At)}function _e(){if(!oe.value)return 0;const Ve=V.vnode.el;if(t.vertical)return 0;const Fe=t.color.get("hue");return Ve?Math.round(Fe*(Ve.offsetWidth-oe.value.offsetWidth/2)/360):0}function $e(){if(!oe.value)return 0;const Ve=V.vnode.el;if(!t.vertical)return 0;const Fe=t.color.get("hue");return Ve?Math.round(Fe*(Ve.offsetHeight-oe.value.offsetHeight/2)/360):0}function Ie(){le.value=_e(),ue.value=$e()}return onMounted(()=>{if(!ie.value||!oe.value)return;const Ve={drag:Fe=>{he(Fe)},end:Fe=>{he(Fe)}};draggable(ie.value,Ve),draggable(oe.value,Ve),Ie()}),{bar:ie,thumb:oe,thumbLeft:le,thumbTop:ue,hueValue:de,handleClick:pe,update:Ie,ns:r}}});function _sfc_render$s(t,r,V,oe,ie,le){return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b(),t.ns.is("vertical",t.vertical)])},[createBaseVNode("div",{ref:"bar",class:normalizeClass(t.ns.e("bar")),onClick:r[0]||(r[0]=(...ue)=>t.handleClick&&t.handleClick(...ue))},null,2),createBaseVNode("div",{ref:"thumb",class:normalizeClass(t.ns.e("thumb")),style:normalizeStyle$1({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var HueSlider=_export_sfc$1(_sfc_main$1w,[["render",_sfc_render$s],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const colorPickerProps=buildProps({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:useSizeProp,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:definePropType(Array)},validateEvent:{type:Boolean,default:!0}}),colorPickerEmits={[UPDATE_MODEL_EVENT]:t=>isString$6(t)||isNil(t),[CHANGE_EVENT]:t=>isString$6(t)||isNil(t),activeChange:t=>isString$6(t)||isNil(t)},colorPickerContextKey=Symbol("colorPickerContextKey"),hsv2hsl=function(t,r,V){return[t,r*V/((t=(2-r)*V)<1?t:2-t)||0,t/2]},isOnePointZero=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},isPercentage=function(t){return typeof t=="string"&&t.includes("%")},bound01=function(t,r){isOnePointZero(t)&&(t="100%");const V=isPercentage(t);return t=Math.min(r,Math.max(0,Number.parseFloat(`${t}`))),V&&(t=Number.parseInt(`${t*r}`,10)/100),Math.abs(t-r)<1e-6?1:t%r/Number.parseFloat(r)},INT_HEX_MAP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hexOne=t=>{t=Math.min(Math.round(t),255);const r=Math.floor(t/16),V=t%16;return`${INT_HEX_MAP[r]||r}${INT_HEX_MAP[V]||V}`},toHex$1=function({r:t,g:r,b:V}){return Number.isNaN(+t)||Number.isNaN(+r)||Number.isNaN(+V)?"":`#${hexOne(t)}${hexOne(r)}${hexOne(V)}`},HEX_INT_MAP={A:10,B:11,C:12,D:13,E:14,F:15},parseHexChannel=function(t){return t.length===2?(HEX_INT_MAP[t[0].toUpperCase()]||+t[0])*16+(HEX_INT_MAP[t[1].toUpperCase()]||+t[1]):HEX_INT_MAP[t[1].toUpperCase()]||+t[1]},hsl2hsv=function(t,r,V){r=r/100,V=V/100;let oe=r;const ie=Math.max(V,.01);V*=2,r*=V<=1?V:2-V,oe*=ie<=1?ie:2-ie;const le=(V+r)/2,ue=V===0?2*oe/(ie+oe):2*r/(V+r);return{h:t,s:ue*100,v:le*100}},rgb2hsv=(t,r,V)=>{t=bound01(t,255),r=bound01(r,255),V=bound01(V,255);const oe=Math.max(t,r,V),ie=Math.min(t,r,V);let le;const ue=oe,de=oe-ie,pe=oe===0?0:de/oe;if(oe===ie)le=0;else{switch(oe){case t:{le=(r-V)/de+(r{this._hue=Math.max(0,Math.min(360,oe)),this._saturation=Math.max(0,Math.min(100,ie)),this._value=Math.max(0,Math.min(100,le)),this.doOnChange()};if(r.includes("hsl")){const oe=r.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(ie=>ie!=="").map((ie,le)=>le>2?Number.parseFloat(ie):Number.parseInt(ie,10));if(oe.length===4?this._alpha=Number.parseFloat(oe[3])*100:oe.length===3&&(this._alpha=100),oe.length>=3){const{h:ie,s:le,v:ue}=hsl2hsv(oe[0],oe[1],oe[2]);V(ie,le,ue)}}else if(r.includes("hsv")){const oe=r.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(ie=>ie!=="").map((ie,le)=>le>2?Number.parseFloat(ie):Number.parseInt(ie,10));oe.length===4?this._alpha=Number.parseFloat(oe[3])*100:oe.length===3&&(this._alpha=100),oe.length>=3&&V(oe[0],oe[1],oe[2])}else if(r.includes("rgb")){const oe=r.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(ie=>ie!=="").map((ie,le)=>le>2?Number.parseFloat(ie):Number.parseInt(ie,10));if(oe.length===4?this._alpha=Number.parseFloat(oe[3])*100:oe.length===3&&(this._alpha=100),oe.length>=3){const{h:ie,s:le,v:ue}=rgb2hsv(oe[0],oe[1],oe[2]);V(ie,le,ue)}}else if(r.includes("#")){const oe=r.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(oe))return;let ie,le,ue;oe.length===3?(ie=parseHexChannel(oe[0]+oe[0]),le=parseHexChannel(oe[1]+oe[1]),ue=parseHexChannel(oe[2]+oe[2])):(oe.length===6||oe.length===8)&&(ie=parseHexChannel(oe.slice(0,2)),le=parseHexChannel(oe.slice(2,4)),ue=parseHexChannel(oe.slice(4,6))),oe.length===8?this._alpha=parseHexChannel(oe.slice(6))/255*100:(oe.length===3||oe.length===6)&&(this._alpha=100);const{h:de,s:pe,v:he}=rgb2hsv(ie,le,ue);V(de,pe,he)}}compare(r){return Math.abs(r._hue-this._hue)<2&&Math.abs(r._saturation-this._saturation)<1&&Math.abs(r._value-this._value)<1&&Math.abs(r._alpha-this._alpha)<1}doOnChange(){const{_hue:r,_saturation:V,_value:oe,_alpha:ie,format:le}=this;if(this.enableAlpha)switch(le){case"hsl":{const ue=hsv2hsl(r,V/100,oe/100);this.value=`hsla(${r}, ${Math.round(ue[1]*100)}%, ${Math.round(ue[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${r}, ${Math.round(V)}%, ${Math.round(oe)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex$1(hsv2rgb(r,V,oe))}${hexOne(ie*255/100)}`;break}default:{const{r:ue,g:de,b:pe}=hsv2rgb(r,V,oe);this.value=`rgba(${ue}, ${de}, ${pe}, ${this.get("alpha")/100})`}}else switch(le){case"hsl":{const ue=hsv2hsl(r,V/100,oe/100);this.value=`hsl(${r}, ${Math.round(ue[1]*100)}%, ${Math.round(ue[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${r}, ${Math.round(V)}%, ${Math.round(oe)}%)`;break}case"rgb":{const{r:ue,g:de,b:pe}=hsv2rgb(r,V,oe);this.value=`rgb(${ue}, ${de}, ${pe})`;break}default:this.value=toHex$1(hsv2rgb(r,V,oe))}}}const _sfc_main$1v=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(t){const r=useNamespace("color-predefine"),{currentColor:V}=inject(colorPickerContextKey),oe=ref(le(t.colors,t.color));watch(()=>V.value,ue=>{const de=new Color;de.fromString(ue),oe.value.forEach(pe=>{pe.selected=de.compare(pe)})}),watchEffect(()=>{oe.value=le(t.colors,t.color)});function ie(ue){t.color.fromString(t.colors[ue])}function le(ue,de){return ue.map(pe=>{const he=new Color;return he.enableAlpha=!0,he.format="rgba",he.fromString(pe),he.selected=he.value===de.value,he})}return{rgbaColors:oe,handleSelect:ie,ns:r}}}),_hoisted_1$N=["onClick"];function _sfc_render$r(t,r,V,oe,ie,le){return openBlock(),createElementBlock("div",{class:normalizeClass(t.ns.b())},[createBaseVNode("div",{class:normalizeClass(t.ns.e("colors"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.rgbaColors,(ue,de)=>(openBlock(),createElementBlock("div",{key:t.colors[de],class:normalizeClass([t.ns.e("color-selector"),t.ns.is("alpha",ue._alpha<100),{selected:ue.selected}]),onClick:pe=>t.handleSelect(de)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:ue.value})},null,4)],10,_hoisted_1$N))),128))],2)],2)}var Predefine=_export_sfc$1(_sfc_main$1v,[["render",_sfc_render$r],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const _sfc_main$1u=defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const r=useNamespace("color-svpanel"),V=getCurrentInstance(),oe=ref(0),ie=ref(0),le=ref("hsl(0, 100%, 50%)"),ue=computed(()=>{const he=t.color.get("hue"),_e=t.color.get("value");return{hue:he,value:_e}});function de(){const he=t.color.get("saturation"),_e=t.color.get("value"),$e=V.vnode.el,{clientWidth:Ie,clientHeight:Ve}=$e;ie.value=he*Ie/100,oe.value=(100-_e)*Ve/100,le.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function pe(he){const $e=V.vnode.el.getBoundingClientRect(),{clientX:Ie,clientY:Ve}=getClientXY(he);let Fe=Ie-$e.left,Ue=Ve-$e.top;Fe=Math.max(0,Fe),Fe=Math.min(Fe,$e.width),Ue=Math.max(0,Ue),Ue=Math.min(Ue,$e.height),ie.value=Fe,oe.value=Ue,t.color.set({saturation:Fe/$e.width*100,value:100-Ue/$e.height*100})}return watch(()=>ue.value,()=>{de()}),onMounted(()=>{draggable(V.vnode.el,{drag:he=>{pe(he)},end:he=>{pe(he)}}),de()}),{cursorTop:oe,cursorLeft:ie,background:le,colorValue:ue,handleDrag:pe,update:de,ns:r}}}),_hoisted_1$M=createBaseVNode("div",null,null,-1),_hoisted_2$w=[_hoisted_1$M];function _sfc_render$q(t,r,V,oe,ie,le){return openBlock(),createElementBlock("div",{class:normalizeClass(t.ns.b()),style:normalizeStyle$1({backgroundColor:t.background})},[createBaseVNode("div",{class:normalizeClass(t.ns.e("white"))},null,2),createBaseVNode("div",{class:normalizeClass(t.ns.e("black"))},null,2),createBaseVNode("div",{class:normalizeClass(t.ns.e("cursor")),style:normalizeStyle$1({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},_hoisted_2$w,6)],6)}var SvPanel=_export_sfc$1(_sfc_main$1u,[["render",_sfc_render$q],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const _hoisted_1$L=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],__default__$X=defineComponent({name:"ElColorPicker"}),_sfc_main$1t=defineComponent({...__default__$X,props:colorPickerProps,emits:colorPickerEmits,setup(t,{expose:r,emit:V}){const oe=t,{t:ie}=useLocale(),le=useNamespace("color"),{formItem:ue}=useFormItem(),de=useFormSize(),pe=useFormDisabled(),{inputId:he,isLabeledByFormItem:_e}=useFormItemInputId(oe,{formItemContext:ue}),$e=ref(),Ie=ref(),Ve=ref(),Fe=ref();let Ue=!0;const qe=reactive(new Color({enableAlpha:oe.showAlpha,format:oe.colorFormat||"",value:oe.modelValue})),Et=ref(!1),At=ref(!1),Lt=ref(""),hn=computed(()=>!oe.modelValue&&!At.value?"transparent":Sn(qe,oe.showAlpha)),_n=computed(()=>!oe.modelValue&&!At.value?"":qe.value),vn=computed(()=>_e.value?void 0:oe.label||ie("el.colorpicker.defaultLabel")),bn=computed(()=>_e.value?ue==null?void 0:ue.labelId:void 0),Cn=computed(()=>[le.b("picker"),le.is("disabled",pe.value),le.bm("picker",de.value)]);function Sn(An,Vn){if(!(An instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:Wn,g:Fn,b:Yn}=An.toRgb();return Vn?`rgba(${Wn}, ${Fn}, ${Yn}, ${An.get("alpha")/100})`:`rgb(${Wn}, ${Fn}, ${Yn})`}function wn(An){Et.value=An}const En=debounce(wn,100);function xn(){pe.value||wn(!0)}function Pn(){En(!1),kn()}function kn(){nextTick(()=>{oe.modelValue?qe.fromString(oe.modelValue):(qe.value="",nextTick(()=>{At.value=!1}))})}function Nn(){pe.value||En(!Et.value)}function Dn(){qe.fromString(Lt.value)}function Mn(){const An=qe.value;V(UPDATE_MODEL_EVENT,An),V("change",An),oe.validateEvent&&(ue==null||ue.validate("change").catch(Vn=>void 0)),En(!1),nextTick(()=>{const Vn=new Color({enableAlpha:oe.showAlpha,format:oe.colorFormat||"",value:oe.modelValue});qe.compare(Vn)||kn()})}function Ln(){En(!1),V(UPDATE_MODEL_EVENT,null),V("change",null),oe.modelValue!==null&&oe.validateEvent&&(ue==null||ue.validate("change").catch(An=>void 0)),kn()}return onMounted(()=>{oe.modelValue&&(Lt.value=_n.value)}),watch(()=>oe.modelValue,An=>{An?An&&An!==qe.value&&(Ue=!1,qe.fromString(An)):At.value=!1}),watch(()=>_n.value,An=>{Lt.value=An,Ue&&V("activeChange",An),Ue=!0}),watch(()=>qe.value,()=>{!oe.modelValue&&!At.value&&(At.value=!0)}),watch(()=>Et.value,()=>{nextTick(()=>{var An,Vn,Wn;(An=$e.value)==null||An.update(),(Vn=Ie.value)==null||Vn.update(),(Wn=Ve.value)==null||Wn.update()})}),provide(colorPickerContextKey,{currentColor:_n}),r({color:qe,show:xn,hide:Pn}),(An,Vn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:Fe,visible:Et.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[unref(le).be("picker","panel"),unref(le).b("dropdown"),An.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${unref(le).namespace.value}-zoom-in-top`,persistent:""},{content:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",null,[createBaseVNode("div",{class:normalizeClass(unref(le).be("dropdown","main-wrapper"))},[createVNode(HueSlider,{ref_key:"hue",ref:$e,class:"hue-slider",color:unref(qe),vertical:""},null,8,["color"]),createVNode(SvPanel,{ref_key:"sv",ref:Ie,color:unref(qe)},null,8,["color"])],2),An.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alpha",ref:Ve,color:unref(qe)},null,8,["color"])):createCommentVNode("v-if",!0),An.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine",color:unref(qe),colors:An.predefine},null,8,["color","colors"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).be("dropdown","btns"))},[createBaseVNode("span",{class:normalizeClass(unref(le).be("dropdown","value"))},[createVNode(unref(ElInput),{modelValue:Lt.value,"onUpdate:modelValue":Vn[0]||(Vn[0]=Wn=>Lt.value=Wn),"validate-event":!1,size:"small",onKeyup:withKeys(Dn,["enter"]),onBlur:Dn},null,8,["modelValue","onKeyup"])],2),createVNode(unref(ElButton),{class:normalizeClass(unref(le).be("dropdown","link-btn")),text:"",size:"small",onClick:Ln},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ie)("el.colorpicker.clear")),1)]),_:1},8,["class"]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(le).be("dropdown","btn")),onClick:Mn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(ie)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[unref(ClickOutside),Pn]])]),default:withCtx(()=>[createBaseVNode("div",{id:unref(he),class:normalizeClass(unref(Cn)),role:"button","aria-label":unref(vn),"aria-labelledby":unref(bn),"aria-description":unref(ie)("el.colorpicker.description",{color:An.modelValue||""}),tabindex:An.tabindex,onKeydown:withKeys(Nn,["enter"])},[unref(pe)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).be("picker","mask"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).be("picker","trigger")),onClick:Nn},[createBaseVNode("span",{class:normalizeClass([unref(le).be("picker","color"),unref(le).is("alpha",An.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(le).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:unref(hn)})},[withDirectives(createVNode(unref(ElIcon),{class:normalizeClass([unref(le).be("picker","icon"),unref(le).is("icon-arrow-down")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]),[[vShow,An.modelValue||At.value]]),!An.modelValue&&!At.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(le).be("picker","empty"),unref(le).is("icon-close")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)],2)],2)],42,_hoisted_1$L)]),_:1},8,["visible","popper-class","transition"]))}});var ColorPicker=_export_sfc$1(_sfc_main$1t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const ElColorPicker=withInstall(ColorPicker),__default__$W=defineComponent({name:"ElContainer"}),_sfc_main$1s=defineComponent({...__default__$W,props:{direction:{type:String}},setup(t){const r=t,V=useSlots(),oe=useNamespace("container"),ie=computed(()=>r.direction==="vertical"?!0:r.direction==="horizontal"?!1:V&&V.default?V.default().some(ue=>{const de=ue.type.name;return de==="ElHeader"||de==="ElFooter"}):!1);return(le,ue)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(oe).b(),unref(oe).is("vertical",unref(ie))])},[renderSlot(le.$slots,"default")],2))}});var Container=_export_sfc$1(_sfc_main$1s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const __default__$V=defineComponent({name:"ElAside"}),_sfc_main$1r=defineComponent({...__default__$V,props:{width:{type:String,default:null}},setup(t){const r=t,V=useNamespace("aside"),oe=computed(()=>r.width?V.cssVarBlock({width:r.width}):{});return(ie,le)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(V).b()),style:normalizeStyle$1(unref(oe))},[renderSlot(ie.$slots,"default")],6))}});var Aside=_export_sfc$1(_sfc_main$1r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const __default__$U=defineComponent({name:"ElFooter"}),_sfc_main$1q=defineComponent({...__default__$U,props:{height:{type:String,default:null}},setup(t){const r=t,V=useNamespace("footer"),oe=computed(()=>r.height?V.cssVarBlock({height:r.height}):{});return(ie,le)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(V).b()),style:normalizeStyle$1(unref(oe))},[renderSlot(ie.$slots,"default")],6))}});var Footer$2=_export_sfc$1(_sfc_main$1q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const __default__$T=defineComponent({name:"ElHeader"}),_sfc_main$1p=defineComponent({...__default__$T,props:{height:{type:String,default:null}},setup(t){const r=t,V=useNamespace("header"),oe=computed(()=>r.height?V.cssVarBlock({height:r.height}):{});return(ie,le)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(V).b()),style:normalizeStyle$1(unref(oe))},[renderSlot(ie.$slots,"default")],6))}});var Header=_export_sfc$1(_sfc_main$1p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const __default__$S=defineComponent({name:"ElMain"}),_sfc_main$1o=defineComponent({...__default__$S,setup(t){const r=useNamespace("main");return(V,oe)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(r).b())},[renderSlot(V.$slots,"default")],2))}});var Main=_export_sfc$1(_sfc_main$1o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ElContainer=withInstall(Container,{Aside,Footer:Footer$2,Header,Main}),ElAside=withNoopInstall(Aside),ElFooter=withNoopInstall(Footer$2),ElHeader=withNoopInstall(Header),ElMain=withNoopInstall(Main);var advancedFormat$1={exports:{}};(function(t,r){(function(V,oe){t.exports=oe()})(commonjsGlobal,function(){return function(V,oe){var ie=oe.prototype,le=ie.format;ie.format=function(ue){var de=this,pe=this.$locale();if(!this.isValid())return le.bind(this)(ue);var he=this.$utils(),_e=(ue||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function($e){switch($e){case"Q":return Math.ceil((de.$M+1)/3);case"Do":return pe.ordinal(de.$D);case"gggg":return de.weekYear();case"GGGG":return de.isoWeekYear();case"wo":return pe.ordinal(de.week(),"W");case"w":case"ww":return he.s(de.week(),$e==="w"?1:2,"0");case"W":case"WW":return he.s(de.isoWeek(),$e==="W"?1:2,"0");case"k":case"kk":return he.s(String(de.$H===0?24:de.$H),$e==="k"?1:2,"0");case"X":return Math.floor(de.$d.getTime()/1e3);case"x":return de.$d.getTime();case"z":return"["+de.offsetName()+"]";case"zzz":return"["+de.offsetName("long")+"]";default:return $e}});return le.bind(this)(_e)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function(t,r){(function(V,oe){t.exports=oe()})(commonjsGlobal,function(){var V="week",oe="year";return function(ie,le,ue){var de=le.prototype;de.week=function(pe){if(pe===void 0&&(pe=null),pe!==null)return this.add(7*(pe-this.week()),"day");var he=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var _e=ue(this).startOf(oe).add(1,oe).date(he),$e=ue(this).endOf(V);if(_e.isBefore($e))return 1}var Ie=ue(this).startOf(oe).date(he).startOf(V).subtract(1,"millisecond"),Ve=this.diff(Ie,V,!0);return Ve<0?ue(this).startOf("week").week():Math.ceil(Ve)},de.weeks=function(pe){return pe===void 0&&(pe=null),this.week(pe)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function(t,r){(function(V,oe){t.exports=oe()})(commonjsGlobal,function(){return function(V,oe){oe.prototype.weekYear=function(){var ie=this.month(),le=this.week(),ue=this.year();return le===1&&ie===11?ue+1:ie===0&&le>=52?ue-1:ue}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function(t,r){(function(V,oe){t.exports=oe()})(commonjsGlobal,function(){return function(V,oe,ie){oe.prototype.dayOfYear=function(le){var ue=Math.round((ie(this).startOf("day")-ie(this).startOf("year"))/864e5)+1;return le==null?ue:this.add(le-ue,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function(t,r){(function(V,oe){t.exports=oe()})(commonjsGlobal,function(){return function(V,oe){oe.prototype.isSameOrAfter=function(ie,le){return this.isSame(ie,le)||this.isAfter(ie,le)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function(t,r){(function(V,oe){t.exports=oe()})(commonjsGlobal,function(){return function(V,oe){oe.prototype.isSameOrBefore=function(ie,le){return this.isSame(ie,le)||this.isBefore(ie,le)}}})})(isSameOrBefore$1);var isSameOrBeforeExports=isSameOrBefore$1.exports;const isSameOrBefore=getDefaultExportFromCjs(isSameOrBeforeExports),ROOT_PICKER_INJECTION_KEY=Symbol(),datePickerProps=buildProps({...timePickerDefaultProps,type:{type:definePropType(String),default:"date"}}),selectionModes=["date","dates","year","month","week","range"],datePickerSharedProps=buildProps({disabledDate:{type:definePropType(Function)},date:{type:definePropType(Object),required:!0},minDate:{type:definePropType(Object)},maxDate:{type:definePropType(Object)},parsedValue:{type:definePropType([Object,Array])},rangeState:{type:definePropType(Object),default:()=>({endDate:null,selecting:!1})}}),panelSharedProps=buildProps({type:{type:definePropType(String),required:!0,values:datePickTypes}}),panelRangeSharedProps=buildProps({unlinkPanels:Boolean,parsedValue:{type:definePropType(Array)}}),selectionModeWithDefault=t=>({type:String,values:selectionModes,default:t}),panelDatePickProps=buildProps({...panelSharedProps,parsedValue:{type:definePropType([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),basicDateTableProps=buildProps({...datePickerSharedProps,cellClassName:{type:definePropType(Function)},showWeekNumber:Boolean,selectionMode:selectionModeWithDefault("date")}),isValidRange=t=>{if(!isArray$c(t))return!1;const[r,V]=t;return dayjs.isDayjs(r)&&dayjs.isDayjs(V)&&r.isSameOrBefore(V)},getDefaultValue=(t,{lang:r,unit:V,unlinkPanels:oe})=>{let ie;if(isArray$c(t)){let[le,ue]=t.map(de=>dayjs(de).locale(r));return oe||(ue=le.add(1,V)),[le,ue]}else t?ie=dayjs(t):ie=dayjs();return ie=ie.locale(r),[ie,ie.add(1,V)]},buildPickerTable=(t,r,{columnIndexOffset:V,startDate:oe,nextEndDate:ie,now:le,unit:ue,relativeDateGetter:de,setCellMetadata:pe,setRowMetadata:he})=>{for(let _e=0;_e{const{cell:oe}=t;if(V.default){const ie=V.default(oe).filter(le=>le.patchFlag!==-2&&le.type.toString()!=="Symbol(Comment)");if(ie.length)return ie}return createVNode("div",{class:r.b()},[createVNode("span",{class:r.e("text")},[oe==null?void 0:oe.text])])}}});const _hoisted_1$K=["aria-label","onMousedown"],_hoisted_2$v={key:0,scope:"col"},_hoisted_3$j=["aria-label"],_hoisted_4$c=["aria-current","aria-selected","tabindex"],_sfc_main$1n=defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:["changerange","pick","select"],setup(t,{expose:r,emit:V}){const oe=t,ie=useNamespace("date-table"),{t:le,lang:ue}=useLocale(),de=ref(),pe=ref(),he=ref(),_e=ref(),$e=ref([[],[],[],[],[],[]]);let Ie=!1;const Ve=oe.date.$locale().weekStart||7,Fe=oe.date.locale("en").localeData().weekdaysShort().map(Fn=>Fn.toLowerCase()),Ue=computed(()=>Ve>3?7-Ve:-Ve),qe=computed(()=>{const Fn=oe.date.startOf("month");return Fn.subtract(Fn.day()||7,"day")}),Et=computed(()=>Fe.concat(Fe).slice(Ve,Ve+7)),At=computed(()=>flatten(Cn.value).some(Fn=>Fn.isCurrent)),Lt=computed(()=>{const Fn=oe.date.startOf("month"),Yn=Fn.day()||7,tr=Fn.daysInMonth(),yr=Fn.subtract(1,"month").daysInMonth();return{startOfMonthDay:Yn,dateCountOfMonth:tr,dateCountOfLastMonth:yr}}),hn=computed(()=>oe.selectionMode==="dates"?castArray(oe.parsedValue):[]),_n=(Fn,{count:Yn,rowIndex:tr,columnIndex:yr})=>{const{startOfMonthDay:Jn,dateCountOfMonth:Kn,dateCountOfLastMonth:Gn}=unref(Lt),Qn=unref(Ue);if(tr>=0&&tr<=1){const ur=Jn+Qn<0?7+Jn+Qn:Jn+Qn;if(yr+tr*7>=ur)return Fn.text=Yn,!0;Fn.text=Gn-(ur-yr%7)+1+tr*7,Fn.type="prev-month"}else return Yn<=Kn?Fn.text=Yn:(Fn.text=Yn-Kn,Fn.type="next-month"),!0;return!1},vn=(Fn,{columnIndex:Yn,rowIndex:tr},yr)=>{const{disabledDate:Jn,cellClassName:Kn}=oe,Gn=unref(hn),Qn=_n(Fn,{count:yr,rowIndex:tr,columnIndex:Yn}),ur=Fn.dayjs.toDate();return Fn.selected=Gn.find(cr=>cr.valueOf()===Fn.dayjs.valueOf()),Fn.isSelected=!!Fn.selected,Fn.isCurrent=En(Fn),Fn.disabled=Jn==null?void 0:Jn(ur),Fn.customClass=Kn==null?void 0:Kn(ur),Qn},bn=Fn=>{if(oe.selectionMode==="week"){const[Yn,tr]=oe.showWeekNumber?[1,7]:[0,6],yr=Wn(Fn[Yn+1]);Fn[Yn].inRange=yr,Fn[Yn].start=yr,Fn[tr].inRange=yr,Fn[tr].end=yr}},Cn=computed(()=>{const{minDate:Fn,maxDate:Yn,rangeState:tr,showWeekNumber:yr}=oe,Jn=Ue.value,Kn=$e.value,Gn="day";let Qn=1;if(yr)for(let ur=0;ur<6;ur++)Kn[ur][0]||(Kn[ur][0]={type:"week",text:qe.value.add(ur*7+1,Gn).week()});return buildPickerTable({row:6,column:7},Kn,{startDate:Fn,columnIndexOffset:yr?1:0,nextEndDate:tr.endDate||Yn||tr.selecting&&Fn||null,now:dayjs().locale(unref(ue)).startOf(Gn),unit:Gn,relativeDateGetter:ur=>qe.value.add(ur-Jn,Gn),setCellMetadata:(...ur)=>{vn(...ur,Qn)&&(Qn+=1)},setRowMetadata:bn}),Kn});watch(()=>oe.date,async()=>{var Fn,Yn;(Fn=de.value)!=null&&Fn.contains(document.activeElement)&&(await nextTick(),(Yn=pe.value)==null||Yn.focus())});const Sn=async()=>{var Fn;(Fn=pe.value)==null||Fn.focus()},wn=(Fn="")=>["normal","today"].includes(Fn),En=Fn=>oe.selectionMode==="date"&&wn(Fn.type)&&xn(Fn,oe.parsedValue),xn=(Fn,Yn)=>Yn?dayjs(Yn).locale(ue.value).isSame(oe.date.date(Number(Fn.text)),"day"):!1,Pn=Fn=>{const Yn=[];return wn(Fn.type)&&!Fn.disabled?(Yn.push("available"),Fn.type==="today"&&Yn.push("today")):Yn.push(Fn.type),En(Fn)&&Yn.push("current"),Fn.inRange&&(wn(Fn.type)||oe.selectionMode==="week")&&(Yn.push("in-range"),Fn.start&&Yn.push("start-date"),Fn.end&&Yn.push("end-date")),Fn.disabled&&Yn.push("disabled"),Fn.selected&&Yn.push("selected"),Fn.customClass&&Yn.push(Fn.customClass),Yn.join(" ")},kn=(Fn,Yn)=>{const tr=Fn*7+(Yn-(oe.showWeekNumber?1:0))-Ue.value;return qe.value.add(tr,"day")},Nn=Fn=>{var Yn;if(!oe.rangeState.selecting)return;let tr=Fn.target;if(tr.tagName==="SPAN"&&(tr=(Yn=tr.parentNode)==null?void 0:Yn.parentNode),tr.tagName==="DIV"&&(tr=tr.parentNode),tr.tagName!=="TD")return;const yr=tr.parentNode.rowIndex-1,Jn=tr.cellIndex;Cn.value[yr][Jn].disabled||(yr!==he.value||Jn!==_e.value)&&(he.value=yr,_e.value=Jn,V("changerange",{selecting:!0,endDate:kn(yr,Jn)}))},Dn=Fn=>!At.value&&(Fn==null?void 0:Fn.text)===1&&Fn.type==="normal"||Fn.isCurrent,Mn=Fn=>{Ie||At.value||oe.selectionMode!=="date"||Vn(Fn,!0)},Ln=Fn=>{Fn.target.closest("td")&&(Ie=!0)},An=Fn=>{Fn.target.closest("td")&&(Ie=!1)},Vn=(Fn,Yn=!1)=>{const tr=Fn.target.closest("td");if(!tr)return;const yr=tr.parentNode.rowIndex-1,Jn=tr.cellIndex,Kn=Cn.value[yr][Jn];if(Kn.disabled||Kn.type==="week")return;const Gn=kn(yr,Jn);if(oe.selectionMode==="range")!oe.rangeState.selecting||!oe.minDate?(V("pick",{minDate:Gn,maxDate:null}),V("select",!0)):(Gn>=oe.minDate?V("pick",{minDate:oe.minDate,maxDate:Gn}):V("pick",{minDate:Gn,maxDate:oe.minDate}),V("select",!1));else if(oe.selectionMode==="date")V("pick",Gn,Yn);else if(oe.selectionMode==="week"){const Qn=Gn.week(),ur=`${Gn.year()}w${Qn}`;V("pick",{year:Gn.year(),week:Qn,value:ur,date:Gn.startOf("week")})}else if(oe.selectionMode==="dates"){const Qn=Kn.selected?castArray(oe.parsedValue).filter(ur=>(ur==null?void 0:ur.valueOf())!==Gn.valueOf()):castArray(oe.parsedValue).concat([Gn]);V("pick",Qn)}},Wn=Fn=>{if(oe.selectionMode!=="week")return!1;let Yn=oe.date.startOf("day");if(Fn.type==="prev-month"&&(Yn=Yn.subtract(1,"month")),Fn.type==="next-month"&&(Yn=Yn.add(1,"month")),Yn=Yn.date(Number.parseInt(Fn.text,10)),oe.parsedValue&&!Array.isArray(oe.parsedValue)){const tr=(oe.parsedValue.day()-Ve+7)%7-1;return oe.parsedValue.subtract(tr,"day").isSame(Yn,"day")}return!1};return r({focus:Sn}),(Fn,Yn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(le)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:normalizeClass([unref(ie).b(),{"is-week-mode":Fn.selectionMode==="week"}]),onClick:Vn,onMousemove:Nn,onMousedown:withModifiers(Ln,["prevent"]),onMouseup:An},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:de},[createBaseVNode("tr",null,[Fn.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_2$v,toDisplayString$1(unref(le)("el.datepicker.week")),1)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Et),(tr,yr)=>(openBlock(),createElementBlock("th",{key:yr,scope:"col","aria-label":unref(le)("el.datepicker.weeksFull."+tr)},toDisplayString$1(unref(le)("el.datepicker.weeks."+tr)),9,_hoisted_3$j))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Cn),(tr,yr)=>(openBlock(),createElementBlock("tr",{key:yr,class:normalizeClass([unref(ie).e("row"),{current:Wn(tr[1])}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(tr,(Jn,Kn)=>(openBlock(),createElementBlock("td",{key:`${yr}.${Kn}`,ref_for:!0,ref:Gn=>Dn(Jn)&&(pe.value=Gn),class:normalizeClass(Pn(Jn)),"aria-current":Jn.isCurrent?"date":void 0,"aria-selected":Jn.isCurrent,tabindex:Dn(Jn)?0:-1,onFocus:Mn},[createVNode(unref(ElDatePickerCell),{cell:Jn},null,8,["cell"])],42,_hoisted_4$c))),128))],2))),128))],512)],42,_hoisted_1$K))}});var DateTable=_export_sfc$1(_sfc_main$1n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const basicMonthTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("month")}),_hoisted_1$J=["aria-label"],_hoisted_2$u=["aria-selected","aria-label","tabindex","onKeydown"],_hoisted_3$i={class:"cell"},_sfc_main$1m=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup(t,{expose:r,emit:V}){const oe=t,ie=(hn,_n,vn)=>{const bn=dayjs().locale(vn).startOf("month").month(_n).year(hn),Cn=bn.daysInMonth();return rangeArr(Cn).map(Sn=>bn.add(Sn,"day").toDate())},le=useNamespace("month-table"),{t:ue,lang:de}=useLocale(),pe=ref(),he=ref(),_e=ref(oe.date.locale("en").localeData().monthsShort().map(hn=>hn.toLowerCase())),$e=ref([[],[],[]]),Ie=ref(),Ve=ref(),Fe=computed(()=>{var hn,_n;const vn=$e.value,bn=dayjs().locale(de.value).startOf("month");for(let Cn=0;Cn<3;Cn++){const Sn=vn[Cn];for(let wn=0;wn<4;wn++){const En=Sn[wn]||(Sn[wn]={row:Cn,column:wn,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});En.type="normal";const xn=Cn*4+wn,Pn=oe.date.startOf("year").month(xn),kn=oe.rangeState.endDate||oe.maxDate||oe.rangeState.selecting&&oe.minDate||null;En.inRange=!!(oe.minDate&&Pn.isSameOrAfter(oe.minDate,"month")&&kn&&Pn.isSameOrBefore(kn,"month"))||!!(oe.minDate&&Pn.isSameOrBefore(oe.minDate,"month")&&kn&&Pn.isSameOrAfter(kn,"month")),(hn=oe.minDate)!=null&&hn.isSameOrAfter(kn)?(En.start=!!(kn&&Pn.isSame(kn,"month")),En.end=oe.minDate&&Pn.isSame(oe.minDate,"month")):(En.start=!!(oe.minDate&&Pn.isSame(oe.minDate,"month")),En.end=!!(kn&&Pn.isSame(kn,"month"))),bn.isSame(Pn)&&(En.type="today"),En.text=xn,En.disabled=((_n=oe.disabledDate)==null?void 0:_n.call(oe,Pn.toDate()))||!1}}return vn}),Ue=()=>{var hn;(hn=he.value)==null||hn.focus()},qe=hn=>{const _n={},vn=oe.date.year(),bn=new Date,Cn=hn.text;return _n.disabled=oe.disabledDate?ie(vn,Cn,de.value).every(oe.disabledDate):!1,_n.current=castArray(oe.parsedValue).findIndex(Sn=>dayjs.isDayjs(Sn)&&Sn.year()===vn&&Sn.month()===Cn)>=0,_n.today=bn.getFullYear()===vn&&bn.getMonth()===Cn,hn.inRange&&(_n["in-range"]=!0,hn.start&&(_n["start-date"]=!0),hn.end&&(_n["end-date"]=!0)),_n},Et=hn=>{const _n=oe.date.year(),vn=hn.text;return castArray(oe.date).findIndex(bn=>bn.year()===_n&&bn.month()===vn)>=0},At=hn=>{var _n;if(!oe.rangeState.selecting)return;let vn=hn.target;if(vn.tagName==="A"&&(vn=(_n=vn.parentNode)==null?void 0:_n.parentNode),vn.tagName==="DIV"&&(vn=vn.parentNode),vn.tagName!=="TD")return;const bn=vn.parentNode.rowIndex,Cn=vn.cellIndex;Fe.value[bn][Cn].disabled||(bn!==Ie.value||Cn!==Ve.value)&&(Ie.value=bn,Ve.value=Cn,V("changerange",{selecting:!0,endDate:oe.date.startOf("year").month(bn*4+Cn)}))},Lt=hn=>{var _n;const vn=(_n=hn.target)==null?void 0:_n.closest("td");if((vn==null?void 0:vn.tagName)!=="TD"||hasClass(vn,"disabled"))return;const bn=vn.cellIndex,Sn=vn.parentNode.rowIndex*4+bn,wn=oe.date.startOf("year").month(Sn);oe.selectionMode==="range"?oe.rangeState.selecting?(oe.minDate&&wn>=oe.minDate?V("pick",{minDate:oe.minDate,maxDate:wn}):V("pick",{minDate:wn,maxDate:oe.minDate}),V("select",!1)):(V("pick",{minDate:wn,maxDate:null}),V("select",!0)):V("pick",Sn)};return watch(()=>oe.date,async()=>{var hn,_n;(hn=pe.value)!=null&&hn.contains(document.activeElement)&&(await nextTick(),(_n=he.value)==null||_n.focus())}),r({focus:Ue}),(hn,_n)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(ue)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(le).b()),onClick:Lt,onMousemove:At},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:pe},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),(vn,bn)=>(openBlock(),createElementBlock("tr",{key:bn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(vn,(Cn,Sn)=>(openBlock(),createElementBlock("td",{key:Sn,ref_for:!0,ref:wn=>Et(Cn)&&(he.value=wn),class:normalizeClass(qe(Cn)),"aria-selected":`${Et(Cn)}`,"aria-label":unref(ue)(`el.datepicker.month${+Cn.text+1}`),tabindex:Et(Cn)?0:-1,onKeydown:[withKeys(withModifiers(Lt,["prevent","stop"]),["space"]),withKeys(withModifiers(Lt,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$i,toDisplayString$1(unref(ue)("el.datepicker.months."+_e.value[Cn.text])),1)])],42,_hoisted_2$u))),128))]))),128))],512)],42,_hoisted_1$J))}});var MonthTable=_export_sfc$1(_sfc_main$1m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date,disabledDate,parsedValue}=datePickerSharedProps,basicYearTableProps=buildProps({date,disabledDate,parsedValue}),_hoisted_1$I=["aria-label"],_hoisted_2$t=["aria-selected","tabindex","onKeydown"],_hoisted_3$h={class:"cell"},_hoisted_4$b={key:1},_sfc_main$1l=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["pick"],setup(t,{expose:r,emit:V}){const oe=t,ie=(Ue,qe)=>{const Et=dayjs(String(Ue)).locale(qe).startOf("year"),Lt=Et.endOf("year").dayOfYear();return rangeArr(Lt).map(hn=>Et.add(hn,"day").toDate())},le=useNamespace("year-table"),{t:ue,lang:de}=useLocale(),pe=ref(),he=ref(),_e=computed(()=>Math.floor(oe.date.year()/10)*10),$e=()=>{var Ue;(Ue=he.value)==null||Ue.focus()},Ie=Ue=>{const qe={},Et=dayjs().locale(de.value);return qe.disabled=oe.disabledDate?ie(Ue,de.value).every(oe.disabledDate):!1,qe.current=castArray(oe.parsedValue).findIndex(At=>At.year()===Ue)>=0,qe.today=Et.year()===Ue,qe},Ve=Ue=>Ue===_e.value&&oe.date.year()<_e.value&&oe.date.year()>_e.value+9||castArray(oe.date).findIndex(qe=>qe.year()===Ue)>=0,Fe=Ue=>{const Et=Ue.target.closest("td");if(Et&&Et.textContent){if(hasClass(Et,"disabled"))return;const At=Et.textContent||Et.innerText;V("pick",Number(At))}};return watch(()=>oe.date,async()=>{var Ue,qe;(Ue=pe.value)!=null&&Ue.contains(document.activeElement)&&(await nextTick(),(qe=he.value)==null||qe.focus())}),r({focus:$e}),(Ue,qe)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(ue)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(le).b()),onClick:Fe},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:pe},[(openBlock(),createElementBlock(Fragment,null,renderList(3,(Et,At)=>createBaseVNode("tr",{key:At},[(openBlock(),createElementBlock(Fragment,null,renderList(4,(Lt,hn)=>(openBlock(),createElementBlock(Fragment,{key:At+"_"+hn},[At*4+hn<10?(openBlock(),createElementBlock("td",{key:0,ref_for:!0,ref:_n=>Ve(unref(_e)+At*4+hn)&&(he.value=_n),class:normalizeClass(["available",Ie(unref(_e)+At*4+hn)]),"aria-selected":`${Ve(unref(_e)+At*4+hn)}`,tabindex:Ve(unref(_e)+At*4+hn)?0:-1,onKeydown:[withKeys(withModifiers(Fe,["prevent","stop"]),["space"]),withKeys(withModifiers(Fe,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$h,toDisplayString$1(unref(_e)+At*4+hn),1)],42,_hoisted_2$t)):(openBlock(),createElementBlock("td",_hoisted_4$b))],64))),64))])),64))],512)],10,_hoisted_1$I))}});var YearTable=_export_sfc$1(_sfc_main$1l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const _hoisted_1$H=["onClick"],_hoisted_2$s=["aria-label"],_hoisted_3$g=["aria-label"],_hoisted_4$a=["aria-label"],_hoisted_5$7=["aria-label"],_sfc_main$1k=defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup(t,{emit:r}){const V=t,oe=(mr,ir,ar)=>!0,ie=useNamespace("picker-panel"),le=useNamespace("date-picker"),ue=useAttrs$1(),de=useSlots(),{t:pe,lang:he}=useLocale(),_e=inject("EP_PICKER_BASE"),$e=inject(TOOLTIP_INJECTION_KEY),{shortcuts:Ie,disabledDate:Ve,cellClassName:Fe,defaultTime:Ue}=_e.props,qe=toRef(_e.props,"defaultValue"),Et=ref(),At=ref(dayjs().locale(he.value)),Lt=ref(!1);let hn=!1;const _n=computed(()=>dayjs(Ue).locale(he.value)),vn=computed(()=>At.value.month()),bn=computed(()=>At.value.year()),Cn=ref([]),Sn=ref(null),wn=ref(null),En=mr=>Cn.value.length>0?oe(mr,Cn.value,V.format||"HH:mm:ss"):!0,xn=mr=>Ue&&!er.value&&!Lt.value&&!hn?_n.value.year(mr.year()).month(mr.month()).date(mr.date()):Jn.value?mr.millisecond(0):mr.startOf("day"),Pn=(mr,...ir)=>{if(!mr)r("pick",mr,...ir);else if(isArray$c(mr)){const ar=mr.map(xn);r("pick",ar,...ir)}else r("pick",xn(mr),...ir);Sn.value=null,wn.value=null,Lt.value=!1,hn=!1},kn=(mr,ir)=>{if(Vn.value==="date"){mr=mr;let ar=V.parsedValue?V.parsedValue.year(mr.year()).month(mr.month()).date(mr.date()):mr;En(ar)||(ar=Cn.value[0][0].year(mr.year()).month(mr.month()).date(mr.date())),At.value=ar,Pn(ar,Jn.value||ir)}else Vn.value==="week"?Pn(mr.date):Vn.value==="dates"&&Pn(mr,!0)},Nn=mr=>{const ir=mr?"add":"subtract";At.value=At.value[ir](1,"month"),Rr("month")},Dn=mr=>{const ir=At.value,ar=mr?"add":"subtract";At.value=Mn.value==="year"?ir[ar](10,"year"):ir[ar](1,"year"),Rr("year")},Mn=ref("date"),Ln=computed(()=>{const mr=pe("el.datepicker.year");if(Mn.value==="year"){const ir=Math.floor(bn.value/10)*10;return mr?`${ir} ${mr} - ${ir+9} ${mr}`:`${ir} - ${ir+9}`}return`${bn.value} ${mr}`}),An=mr=>{const ir=isFunction$5(mr.value)?mr.value():mr.value;if(ir){hn=!0,Pn(dayjs(ir).locale(he.value));return}mr.onClick&&mr.onClick({attrs:ue,slots:de,emit:r})},Vn=computed(()=>{const{type:mr}=V;return["week","month","year","dates"].includes(mr)?mr:"date"}),Wn=computed(()=>Vn.value==="date"?Mn.value:Vn.value),Fn=computed(()=>!!Ie.length),Yn=async mr=>{At.value=At.value.startOf("month").month(mr),Vn.value==="month"?Pn(At.value,!1):(Mn.value="date",["month","year","date","week"].includes(Vn.value)&&(Pn(At.value,!0),await nextTick(),Dr())),Rr("month")},tr=async mr=>{Vn.value==="year"?(At.value=At.value.startOf("year").year(mr),Pn(At.value,!1)):(At.value=At.value.year(mr),Mn.value="month",["month","year","date","week"].includes(Vn.value)&&(Pn(At.value,!0),await nextTick(),Dr())),Rr("year")},yr=async mr=>{Mn.value=mr,await nextTick(),Dr()},Jn=computed(()=>V.type==="datetime"||V.type==="datetimerange"),Kn=computed(()=>Jn.value||Vn.value==="dates"),Gn=computed(()=>Ve?V.parsedValue?isArray$c(V.parsedValue)?Ve(V.parsedValue[0].toDate()):Ve(V.parsedValue.toDate()):!0:!1),Qn=()=>{if(Vn.value==="dates")Pn(V.parsedValue);else{let mr=V.parsedValue;if(!mr){const ir=dayjs(Ue).locale(he.value),ar=Ar();mr=ir.year(ar.year()).month(ar.month()).date(ar.date())}At.value=mr,Pn(mr)}},ur=computed(()=>Ve?Ve(dayjs().locale(he.value).toDate()):!1),cr=()=>{const ir=dayjs().locale(he.value).toDate();Lt.value=!0,(!Ve||!Ve(ir))&&En(ir)&&(At.value=dayjs().locale(he.value),Pn(At.value))},Un=computed(()=>extractTimeFormat(V.format)),qn=computed(()=>extractDateFormat(V.format)),er=computed(()=>{if(wn.value)return wn.value;if(!(!V.parsedValue&&!qe.value))return(V.parsedValue||At.value).format(Un.value)}),pr=computed(()=>{if(Sn.value)return Sn.value;if(!(!V.parsedValue&&!qe.value))return(V.parsedValue||At.value).format(qn.value)}),Er=ref(!1),dr=()=>{Er.value=!0},xr=()=>{Er.value=!1},wr=mr=>({hour:mr.hour(),minute:mr.minute(),second:mr.second(),year:mr.year(),month:mr.month(),date:mr.date()}),Cr=(mr,ir,ar)=>{const{hour:$r,minute:Zn,second:Or}=wr(mr),Lr=V.parsedValue?V.parsedValue.hour($r).minute(Zn).second(Or):mr;At.value=Lr,Pn(At.value,!0),ar||(Er.value=ir)},gr=mr=>{const ir=dayjs(mr,Un.value).locale(he.value);if(ir.isValid()&&En(ir)){const{year:ar,month:$r,date:Zn}=wr(At.value);At.value=ir.year(ar).month($r).date(Zn),wn.value=null,Er.value=!1,Pn(At.value,!0)}},or=mr=>{const ir=dayjs(mr,qn.value).locale(he.value);if(ir.isValid()){if(Ve&&Ve(ir.toDate()))return;const{hour:ar,minute:$r,second:Zn}=wr(At.value);At.value=ir.hour(ar).minute($r).second(Zn),Sn.value=null,Pn(At.value,!0)}},fr=mr=>dayjs.isDayjs(mr)&&mr.isValid()&&(Ve?!Ve(mr.toDate()):!0),kr=mr=>Vn.value==="dates"?mr.map(ir=>ir.format(V.format)):mr.format(V.format),br=mr=>dayjs(mr,V.format).locale(he.value),Ar=()=>{const mr=dayjs(qe.value).locale(he.value);if(!qe.value){const ir=_n.value;return dayjs().hour(ir.hour()).minute(ir.minute()).second(ir.second()).locale(he.value)}return mr},Dr=async()=>{var mr;["week","month","year","date"].includes(Vn.value)&&((mr=Et.value)==null||mr.focus(),Vn.value==="week"&&zr(EVENT_CODE.down))},Br=mr=>{const{code:ir}=mr;[EVENT_CODE.up,EVENT_CODE.down,EVENT_CODE.left,EVENT_CODE.right,EVENT_CODE.home,EVENT_CODE.end,EVENT_CODE.pageUp,EVENT_CODE.pageDown].includes(ir)&&(zr(ir),mr.stopPropagation(),mr.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes(ir)&&Sn.value===null&&wn.value===null&&(mr.preventDefault(),Pn(At.value,!1))},zr=mr=>{var ir;const{up:ar,down:$r,left:Zn,right:Or,home:Lr,end:Ur,pageUp:Kr,pageDown:qr}=EVENT_CODE,no={year:{[ar]:-4,[$r]:4,[Zn]:-1,[Or]:1,offset:(_r,Pr)=>_r.setFullYear(_r.getFullYear()+Pr)},month:{[ar]:-4,[$r]:4,[Zn]:-1,[Or]:1,offset:(_r,Pr)=>_r.setMonth(_r.getMonth()+Pr)},week:{[ar]:-1,[$r]:1,[Zn]:-1,[Or]:1,offset:(_r,Pr)=>_r.setDate(_r.getDate()+Pr*7)},date:{[ar]:-7,[$r]:7,[Zn]:-1,[Or]:1,[Lr]:_r=>-_r.getDay(),[Ur]:_r=>-_r.getDay()+6,[Kr]:_r=>-new Date(_r.getFullYear(),_r.getMonth(),0).getDate(),[qr]:_r=>new Date(_r.getFullYear(),_r.getMonth()+1,0).getDate(),offset:(_r,Pr)=>_r.setDate(_r.getDate()+Pr)}},Xr=At.value.toDate();for(;Math.abs(At.value.diff(Xr,"year",!0))<1;){const _r=no[Wn.value];if(!_r)return;if(_r.offset(Xr,isFunction$5(_r[mr])?_r[mr](Xr):(ir=_r[mr])!=null?ir:0),Ve&&Ve(Xr))break;const Pr=dayjs(Xr).locale(he.value);At.value=Pr,r("pick",Pr,!0);break}},Rr=mr=>{r("panel-change",At.value.toDate(),mr,Mn.value)};return watch(()=>Vn.value,mr=>{if(["month","year"].includes(mr)){Mn.value=mr;return}Mn.value="date"},{immediate:!0}),watch(()=>Mn.value,()=>{$e==null||$e.updatePopper()}),watch(()=>qe.value,mr=>{mr&&(At.value=Ar())},{immediate:!0}),watch(()=>V.parsedValue,mr=>{if(mr){if(Vn.value==="dates"||Array.isArray(mr))return;At.value=mr}else At.value=Ar()},{immediate:!0}),r("set-picker-option",["isValidValue",fr]),r("set-picker-option",["formatToString",kr]),r("set-picker-option",["parseUserInput",br]),r("set-picker-option",["handleFocusPicker",Dr]),(mr,ir)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(le).b(),{"has-sidebar":mr.$slots.sidebar||unref(Fn),"has-time":unref(Jn)}])},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("body-wrapper"))},[renderSlot(mr.$slots,"sidebar",{class:normalizeClass(unref(ie).e("sidebar"))}),unref(Fn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(ar,$r)=>(openBlock(),createElementBlock("button",{key:$r,type:"button",class:normalizeClass(unref(ie).e("shortcut")),onClick:Zn=>An(ar)},toDisplayString$1(ar.text),11,_hoisted_1$H))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("body"))},[unref(Jn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(le).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(pe)("el.datepicker.selectDate"),"model-value":unref(pr),size:"small","validate-event":!1,onInput:ir[0]||(ir[0]=ar=>Sn.value=ar),onChange:or},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(le).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(pe)("el.datepicker.selectTime"),"model-value":unref(er),size:"small","validate-event":!1,onFocus:dr,onInput:ir[1]||(ir[1]=ar=>wn.value=ar),onChange:gr},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:Er.value,format:unref(Un),"parsed-value":At.value,onPick:Cr},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),xr]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(le).e("header"),(Mn.value==="year"||Mn.value==="month")&&unref(le).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(le).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref(pe)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref(ie).e("icon-btn")]),onClick:ir[2]||(ir[2]=ar=>Dn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_2$s),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(pe)("el.datepicker.prevMonth"),class:normalizeClass([unref(ie).e("icon-btn"),"arrow-left"]),onClick:ir[3]||(ir[3]=ar=>Nn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_3$g),[[vShow,Mn.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(le).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ir[4]||(ir[4]=withKeys(ar=>yr("year"),["enter"])),onClick:ir[5]||(ir[5]=ar=>yr("year"))},toDisplayString$1(unref(Ln)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(le).e("header-label"),{active:Mn.value==="month"}]),onKeydown:ir[6]||(ir[6]=withKeys(ar=>yr("month"),["enter"])),onClick:ir[7]||(ir[7]=ar=>yr("month"))},toDisplayString$1(unref(pe)(`el.datepicker.month${unref(vn)+1}`)),35),[[vShow,Mn.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(le).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(pe)("el.datepicker.nextMonth"),class:normalizeClass([unref(ie).e("icon-btn"),"arrow-right"]),onClick:ir[8]||(ir[8]=ar=>Nn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_4$a),[[vShow,Mn.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref(pe)("el.datepicker.nextYear"),class:normalizeClass([unref(ie).e("icon-btn"),"d-arrow-right"]),onClick:ir[9]||(ir[9]=ar=>Dn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_5$7)],2)],2),[[vShow,Mn.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content")),onKeydown:Br},[Mn.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:Et,"selection-mode":unref(Vn),date:At.value,"parsed-value":mr.parsedValue,"disabled-date":unref(Ve),"cell-class-name":unref(Fe),onPick:kn},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):createCommentVNode("v-if",!0),Mn.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:Et,date:At.value,"disabled-date":unref(Ve),"parsed-value":mr.parsedValue,onPick:tr},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",!0),Mn.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:Et,date:At.value,"parsed-value":mr.parsedValue,"disabled-date":unref(Ve),onPick:Yn},null,8,["date","parsed-value","disabled-date"])):createCommentVNode("v-if",!0)],34)],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ie).e("footer"))},[withDirectives(createVNode(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref(ie).e("link-btn")),disabled:unref(ur),onClick:cr},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(pe)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[vShow,unref(Vn)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(ie).e("link-btn")),disabled:unref(Gn),onClick:Qn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(pe)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[vShow,unref(Kn)&&Mn.value==="date"]])],2))}});var DatePickPanel=_export_sfc$1(_sfc_main$1k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const panelDateRangeProps=buildProps({...panelSharedProps,...panelRangeSharedProps}),useShortcut=t=>{const{emit:r}=getCurrentInstance(),V=useAttrs$1(),oe=useSlots();return le=>{const ue=isFunction$5(le.value)?le.value():le.value;if(ue){r("pick",[dayjs(ue[0]).locale(t.value),dayjs(ue[1]).locale(t.value)]);return}le.onClick&&le.onClick({attrs:V,slots:oe,emit:r})}},useRangePicker=(t,{defaultValue:r,leftDate:V,rightDate:oe,unit:ie,onParsedValueChanged:le})=>{const{emit:ue}=getCurrentInstance(),{pickerNs:de}=inject(ROOT_PICKER_INJECTION_KEY),pe=useNamespace("date-range-picker"),{t:he,lang:_e}=useLocale(),$e=useShortcut(_e),Ie=ref(),Ve=ref(),Fe=ref({endDate:null,selecting:!1}),Ue=Lt=>{Fe.value=Lt},qe=(Lt=!1)=>{const hn=unref(Ie),_n=unref(Ve);isValidRange([hn,_n])&&ue("pick",[hn,_n],Lt)},Et=Lt=>{Fe.value.selecting=Lt,Lt||(Fe.value.endDate=null)},At=()=>{const[Lt,hn]=getDefaultValue(unref(r),{lang:unref(_e),unit:ie,unlinkPanels:t.unlinkPanels});Ie.value=void 0,Ve.value=void 0,V.value=Lt,oe.value=hn};return watch(r,Lt=>{Lt&&At()},{immediate:!0}),watch(()=>t.parsedValue,Lt=>{if(isArray$c(Lt)&&Lt.length===2){const[hn,_n]=Lt;Ie.value=hn,V.value=hn,Ve.value=_n,le(unref(Ie),unref(Ve))}else At()},{immediate:!0}),{minDate:Ie,maxDate:Ve,rangeState:Fe,lang:_e,ppNs:de,drpNs:pe,handleChangeRange:Ue,handleRangeConfirm:qe,handleShortcutClick:$e,onSelect:Et,t:he}},_hoisted_1$G=["onClick"],_hoisted_2$r=["disabled"],_hoisted_3$f=["disabled"],_hoisted_4$9=["disabled"],_hoisted_5$6=["disabled"],unit$1="month",_sfc_main$1j=defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(t,{emit:r}){const V=t,oe=inject("EP_PICKER_BASE"),{disabledDate:ie,cellClassName:le,format:ue,defaultTime:de,clearable:pe}=oe.props,he=toRef(oe.props,"shortcuts"),_e=toRef(oe.props,"defaultValue"),{lang:$e}=useLocale(),Ie=ref(dayjs().locale($e.value)),Ve=ref(dayjs().locale($e.value).add(1,unit$1)),{minDate:Fe,maxDate:Ue,rangeState:qe,ppNs:Et,drpNs:At,handleChangeRange:Lt,handleRangeConfirm:hn,handleShortcutClick:_n,onSelect:vn,t:bn}=useRangePicker(V,{defaultValue:_e,leftDate:Ie,rightDate:Ve,unit:unit$1,onParsedValueChanged:ir}),Cn=ref({min:null,max:null}),Sn=ref({min:null,max:null}),wn=computed(()=>`${Ie.value.year()} ${bn("el.datepicker.year")} ${bn(`el.datepicker.month${Ie.value.month()+1}`)}`),En=computed(()=>`${Ve.value.year()} ${bn("el.datepicker.year")} ${bn(`el.datepicker.month${Ve.value.month()+1}`)}`),xn=computed(()=>Ie.value.year()),Pn=computed(()=>Ie.value.month()),kn=computed(()=>Ve.value.year()),Nn=computed(()=>Ve.value.month()),Dn=computed(()=>!!he.value.length),Mn=computed(()=>Cn.value.min!==null?Cn.value.min:Fe.value?Fe.value.format(Fn.value):""),Ln=computed(()=>Cn.value.max!==null?Cn.value.max:Ue.value||Fe.value?(Ue.value||Fe.value).format(Fn.value):""),An=computed(()=>Sn.value.min!==null?Sn.value.min:Fe.value?Fe.value.format(Wn.value):""),Vn=computed(()=>Sn.value.max!==null?Sn.value.max:Ue.value||Fe.value?(Ue.value||Fe.value).format(Wn.value):""),Wn=computed(()=>extractTimeFormat(ue)),Fn=computed(()=>extractDateFormat(ue)),Yn=ar=>isValidRange(ar)&&(ie?!ie(ar[0].toDate())&&!ie(ar[1].toDate()):!0),tr=()=>{Ie.value=Ie.value.subtract(1,"year"),V.unlinkPanels||(Ve.value=Ie.value.add(1,"month")),Un("year")},yr=()=>{Ie.value=Ie.value.subtract(1,"month"),V.unlinkPanels||(Ve.value=Ie.value.add(1,"month")),Un("month")},Jn=()=>{V.unlinkPanels?Ve.value=Ve.value.add(1,"year"):(Ie.value=Ie.value.add(1,"year"),Ve.value=Ie.value.add(1,"month")),Un("year")},Kn=()=>{V.unlinkPanels?Ve.value=Ve.value.add(1,"month"):(Ie.value=Ie.value.add(1,"month"),Ve.value=Ie.value.add(1,"month")),Un("month")},Gn=()=>{Ie.value=Ie.value.add(1,"year"),Un("year")},Qn=()=>{Ie.value=Ie.value.add(1,"month"),Un("month")},ur=()=>{Ve.value=Ve.value.subtract(1,"year"),Un("year")},cr=()=>{Ve.value=Ve.value.subtract(1,"month"),Un("month")},Un=ar=>{r("panel-change",[Ie.value.toDate(),Ve.value.toDate()],ar)},qn=computed(()=>{const ar=(Pn.value+1)%12,$r=Pn.value+1>=12?1:0;return V.unlinkPanels&&new Date(xn.value+$r,ar)V.unlinkPanels&&kn.value*12+Nn.value-(xn.value*12+Pn.value+1)>=12),pr=computed(()=>!(Fe.value&&Ue.value&&!qe.value.selecting&&isValidRange([Fe.value,Ue.value]))),Er=computed(()=>V.type==="datetime"||V.type==="datetimerange"),dr=(ar,$r)=>{if(ar)return de?dayjs(de[$r]||de).locale($e.value).year(ar.year()).month(ar.month()).date(ar.date()):ar},xr=(ar,$r=!0)=>{const Zn=ar.minDate,Or=ar.maxDate,Lr=dr(Zn,0),Ur=dr(Or,1);Ue.value===Ur&&Fe.value===Lr||(r("calendar-change",[Zn.toDate(),Or&&Or.toDate()]),Ue.value=Ur,Fe.value=Lr,!(!$r||Er.value)&&hn())},wr=ref(!1),Cr=ref(!1),gr=()=>{wr.value=!1},or=()=>{Cr.value=!1},fr=(ar,$r)=>{Cn.value[$r]=ar;const Zn=dayjs(ar,Fn.value).locale($e.value);if(Zn.isValid()){if(ie&&ie(Zn.toDate()))return;$r==="min"?(Ie.value=Zn,Fe.value=(Fe.value||Ie.value).year(Zn.year()).month(Zn.month()).date(Zn.date()),!V.unlinkPanels&&(!Ue.value||Ue.value.isBefore(Fe.value))&&(Ve.value=Zn.add(1,"month"),Ue.value=Fe.value.add(1,"month"))):(Ve.value=Zn,Ue.value=(Ue.value||Ve.value).year(Zn.year()).month(Zn.month()).date(Zn.date()),!V.unlinkPanels&&(!Fe.value||Fe.value.isAfter(Ue.value))&&(Ie.value=Zn.subtract(1,"month"),Fe.value=Ue.value.subtract(1,"month")))}},kr=(ar,$r)=>{Cn.value[$r]=null},br=(ar,$r)=>{Sn.value[$r]=ar;const Zn=dayjs(ar,Wn.value).locale($e.value);Zn.isValid()&&($r==="min"?(wr.value=!0,Fe.value=(Fe.value||Ie.value).hour(Zn.hour()).minute(Zn.minute()).second(Zn.second()),(!Ue.value||Ue.value.isBefore(Fe.value))&&(Ue.value=Fe.value)):(Cr.value=!0,Ue.value=(Ue.value||Ve.value).hour(Zn.hour()).minute(Zn.minute()).second(Zn.second()),Ve.value=Ue.value,Ue.value&&Ue.value.isBefore(Fe.value)&&(Fe.value=Ue.value)))},Ar=(ar,$r)=>{Sn.value[$r]=null,$r==="min"?(Ie.value=Fe.value,wr.value=!1):(Ve.value=Ue.value,Cr.value=!1)},Dr=(ar,$r,Zn)=>{Sn.value.min||(ar&&(Ie.value=ar,Fe.value=(Fe.value||Ie.value).hour(ar.hour()).minute(ar.minute()).second(ar.second())),Zn||(wr.value=$r),(!Ue.value||Ue.value.isBefore(Fe.value))&&(Ue.value=Fe.value,Ve.value=ar))},Br=(ar,$r,Zn)=>{Sn.value.max||(ar&&(Ve.value=ar,Ue.value=(Ue.value||Ve.value).hour(ar.hour()).minute(ar.minute()).second(ar.second())),Zn||(Cr.value=$r),Ue.value&&Ue.value.isBefore(Fe.value)&&(Fe.value=Ue.value))},zr=()=>{Ie.value=getDefaultValue(unref(_e),{lang:unref($e),unit:"month",unlinkPanels:V.unlinkPanels})[0],Ve.value=Ie.value.add(1,"month"),r("pick",null)},Rr=ar=>isArray$c(ar)?ar.map($r=>$r.format(ue)):ar.format(ue),mr=ar=>isArray$c(ar)?ar.map($r=>dayjs($r,ue).locale($e.value)):dayjs(ar,ue).locale($e.value);function ir(ar,$r){if(V.unlinkPanels&&$r){const Zn=(ar==null?void 0:ar.year())||0,Or=(ar==null?void 0:ar.month())||0,Lr=$r.year(),Ur=$r.month();Ve.value=Zn===Lr&&Or===Ur?$r.add(1,unit$1):$r}else Ve.value=Ie.value.add(1,unit$1),$r&&(Ve.value=Ve.value.hour($r.hour()).minute($r.minute()).second($r.second()))}return r("set-picker-option",["isValidValue",Yn]),r("set-picker-option",["parseUserInput",mr]),r("set-picker-option",["formatToString",Rr]),r("set-picker-option",["handleClear",zr]),(ar,$r)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Et).b(),unref(At).b(),{"has-sidebar":ar.$slots.sidebar||unref(Dn),"has-time":unref(Er)}])},[createBaseVNode("div",{class:normalizeClass(unref(Et).e("body-wrapper"))},[renderSlot(ar.$slots,"sidebar",{class:normalizeClass(unref(Et).e("sidebar"))}),unref(Dn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Et).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(he),(Zn,Or)=>(openBlock(),createElementBlock("button",{key:Or,type:"button",class:normalizeClass(unref(Et).e("shortcut")),onClick:Lr=>unref(_n)(Zn)},toDisplayString$1(Zn.text),11,_hoisted_1$G))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Et).e("body"))},[unref(Er)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(At).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(At).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(At).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(qe).selecting,placeholder:unref(bn)("el.datepicker.startDate"),class:normalizeClass(unref(At).e("editor")),"model-value":unref(Mn),"validate-event":!1,onInput:$r[0]||($r[0]=Zn=>fr(Zn,"min")),onChange:$r[1]||($r[1]=Zn=>kr(Zn,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(At).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(At).e("editor")),disabled:unref(qe).selecting,placeholder:unref(bn)("el.datepicker.startTime"),"model-value":unref(An),"validate-event":!1,onFocus:$r[2]||($r[2]=Zn=>wr.value=!0),onInput:$r[3]||($r[3]=Zn=>br(Zn,"min")),onChange:$r[4]||($r[4]=Zn=>Ar(Zn,"min"))},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:wr.value,format:unref(Wn),"datetime-role":"start","parsed-value":Ie.value,onPick:Dr},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),gr]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(At).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(At).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(At).e("editor")),disabled:unref(qe).selecting,placeholder:unref(bn)("el.datepicker.endDate"),"model-value":unref(Ln),readonly:!unref(Fe),"validate-event":!1,onInput:$r[5]||($r[5]=Zn=>fr(Zn,"max")),onChange:$r[6]||($r[6]=Zn=>kr(Zn,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(At).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(At).e("editor")),disabled:unref(qe).selecting,placeholder:unref(bn)("el.datepicker.endTime"),"model-value":unref(Vn),readonly:!unref(Fe),"validate-event":!1,onFocus:$r[7]||($r[7]=Zn=>unref(Fe)&&(Cr.value=!0)),onInput:$r[8]||($r[8]=Zn=>br(Zn,"max")),onChange:$r[9]||($r[9]=Zn=>Ar(Zn,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:Cr.value,format:unref(Wn),"parsed-value":Ve.value,onPick:Br},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),or]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(Et).e("content"),unref(At).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(At).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Et).e("icon-btn"),"d-arrow-left"]),onClick:tr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Et).e("icon-btn"),"arrow-left"]),onClick:yr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),ar.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(er),class:normalizeClass([[unref(Et).e("icon-btn"),{"is-disabled":!unref(er)}],"d-arrow-right"]),onClick:Gn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$r)):createCommentVNode("v-if",!0),ar.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(qn),class:normalizeClass([[unref(Et).e("icon-btn"),{"is-disabled":!unref(qn)}],"arrow-right"]),onClick:Qn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_3$f)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(wn)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:Ie.value,"min-date":unref(Fe),"max-date":unref(Ue),"range-state":unref(qe),"disabled-date":unref(ie),"cell-class-name":unref(le),onChangerange:unref(Lt),onPick:xr,onSelect:unref(vn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(Et).e("content"),unref(At).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(At).e("header"))},[ar.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(er),class:normalizeClass([[unref(Et).e("icon-btn"),{"is-disabled":!unref(er)}],"d-arrow-left"]),onClick:ur},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_4$9)):createCommentVNode("v-if",!0),ar.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(qn),class:normalizeClass([[unref(Et).e("icon-btn"),{"is-disabled":!unref(qn)}],"arrow-left"]),onClick:cr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_5$6)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Et).e("icon-btn"),"d-arrow-right"]),onClick:Jn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Et).e("icon-btn"),"arrow-right"]),onClick:Kn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(En)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:Ve.value,"min-date":unref(Fe),"max-date":unref(Ue),"range-state":unref(qe),"disabled-date":unref(ie),"cell-class-name":unref(le),onChangerange:unref(Lt),onPick:xr,onSelect:unref(vn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(Er)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Et).e("footer"))},[unref(pe)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(Et).e("link-btn")),onClick:zr},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(bn)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(Et).e("link-btn")),disabled:unref(pr),onClick:$r[10]||($r[10]=Zn=>unref(hn)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(bn)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):createCommentVNode("v-if",!0)],2))}});var DateRangePickPanel=_export_sfc$1(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const panelMonthRangeProps=buildProps({...panelRangeSharedProps}),panelMonthRangeEmits=["pick","set-picker-option"],useMonthRangeHeader=({unlinkPanels:t,leftDate:r,rightDate:V})=>{const{t:oe}=useLocale(),ie=()=>{r.value=r.value.subtract(1,"year"),t.value||(V.value=V.value.subtract(1,"year"))},le=()=>{t.value||(r.value=r.value.add(1,"year")),V.value=V.value.add(1,"year")},ue=()=>{r.value=r.value.add(1,"year")},de=()=>{V.value=V.value.subtract(1,"year")},pe=computed(()=>`${r.value.year()} ${oe("el.datepicker.year")}`),he=computed(()=>`${V.value.year()} ${oe("el.datepicker.year")}`),_e=computed(()=>r.value.year()),$e=computed(()=>V.value.year()===r.value.year()?r.value.year()+1:V.value.year());return{leftPrevYear:ie,rightNextYear:le,leftNextYear:ue,rightPrevYear:de,leftLabel:pe,rightLabel:he,leftYear:_e,rightYear:$e}},_hoisted_1$F=["onClick"],_hoisted_2$q=["disabled"],_hoisted_3$e=["disabled"],unit="year",__default__$R=defineComponent({name:"DatePickerMonthRange"}),_sfc_main$1i=defineComponent({...__default__$R,props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup(t,{emit:r}){const V=t,{lang:oe}=useLocale(),ie=inject("EP_PICKER_BASE"),{shortcuts:le,disabledDate:ue,format:de}=ie.props,pe=toRef(ie.props,"defaultValue"),he=ref(dayjs().locale(oe.value)),_e=ref(dayjs().locale(oe.value).add(1,unit)),{minDate:$e,maxDate:Ie,rangeState:Ve,ppNs:Fe,drpNs:Ue,handleChangeRange:qe,handleRangeConfirm:Et,handleShortcutClick:At,onSelect:Lt}=useRangePicker(V,{defaultValue:pe,leftDate:he,rightDate:_e,unit,onParsedValueChanged:Dn}),hn=computed(()=>!!le.length),{leftPrevYear:_n,rightNextYear:vn,leftNextYear:bn,rightPrevYear:Cn,leftLabel:Sn,rightLabel:wn,leftYear:En,rightYear:xn}=useMonthRangeHeader({unlinkPanels:toRef(V,"unlinkPanels"),leftDate:he,rightDate:_e}),Pn=computed(()=>V.unlinkPanels&&xn.value>En.value+1),kn=(Mn,Ln=!0)=>{const An=Mn.minDate,Vn=Mn.maxDate;Ie.value===Vn&&$e.value===An||(Ie.value=Vn,$e.value=An,Ln&&Et())},Nn=Mn=>Mn.map(Ln=>Ln.format(de));function Dn(Mn,Ln){if(V.unlinkPanels&&Ln){const An=(Mn==null?void 0:Mn.year())||0,Vn=Ln.year();_e.value=An===Vn?Ln.add(1,unit):Ln}else _e.value=he.value.add(1,unit)}return r("set-picker-option",["formatToString",Nn]),(Mn,Ln)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Fe).b(),unref(Ue).b(),{"has-sidebar":!!Mn.$slots.sidebar||unref(hn)}])},[createBaseVNode("div",{class:normalizeClass(unref(Fe).e("body-wrapper"))},[renderSlot(Mn.$slots,"sidebar",{class:normalizeClass(unref(Fe).e("sidebar"))}),unref(hn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Fe).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),(An,Vn)=>(openBlock(),createElementBlock("button",{key:Vn,type:"button",class:normalizeClass(unref(Fe).e("shortcut")),onClick:Wn=>unref(At)(An)},toDisplayString$1(An.text),11,_hoisted_1$F))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Fe).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(Fe).e("content"),unref(Ue).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Ue).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Fe).e("icon-btn"),"d-arrow-left"]),onClick:Ln[0]||(Ln[0]=(...An)=>unref(_n)&&unref(_n)(...An))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),Mn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Pn),class:normalizeClass([[unref(Fe).e("icon-btn"),{[unref(Fe).is("disabled")]:!unref(Pn)}],"d-arrow-right"]),onClick:Ln[1]||(Ln[1]=(...An)=>unref(bn)&&unref(bn)(...An))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$q)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(Sn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:he.value,"min-date":unref($e),"max-date":unref(Ie),"range-state":unref(Ve),"disabled-date":unref(ue),onChangerange:unref(qe),onPick:kn,onSelect:unref(Lt)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(Fe).e("content"),unref(Ue).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Ue).e("header"))},[Mn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Pn),class:normalizeClass([[unref(Fe).e("icon-btn"),{"is-disabled":!unref(Pn)}],"d-arrow-left"]),onClick:Ln[2]||(Ln[2]=(...An)=>unref(Cn)&&unref(Cn)(...An))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_3$e)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Fe).e("icon-btn"),"d-arrow-right"]),onClick:Ln[3]||(Ln[3]=(...An)=>unref(vn)&&unref(vn)(...An))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(wn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:_e.value,"min-date":unref($e),"max-date":unref(Ie),"range-state":unref(Ve),"disabled-date":unref(ue),onChangerange:unref(qe),onPick:kn,onSelect:unref(Lt)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var MonthRangePickPanel=_export_sfc$1(_sfc_main$1i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const getPanel=function(t){switch(t){case"daterange":case"datetimerange":return DateRangePickPanel;case"monthrange":return MonthRangePickPanel;default:return DatePickPanel}};dayjs.extend(localeData);dayjs.extend(advancedFormat);dayjs.extend(customParseFormat);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(dayOfYear);dayjs.extend(isSameOrAfter);dayjs.extend(isSameOrBefore);var DatePicker=defineComponent({name:"ElDatePicker",install:null,props:datePickerProps,emits:["update:modelValue"],setup(t,{expose:r,emit:V,slots:oe}){const ie=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef(t,"popperOptions"))),provide(ROOT_PICKER_INJECTION_KEY,{slots:oe,pickerNs:ie});const le=ref();r({focus:(pe=!0)=>{var he;(he=le.value)==null||he.focus(pe)},handleOpen:()=>{var pe;(pe=le.value)==null||pe.handleOpen()},handleClose:()=>{var pe;(pe=le.value)==null||pe.handleClose()}});const de=pe=>{V("update:modelValue",pe)};return()=>{var pe;const he=(pe=t.format)!=null?pe:DEFAULT_FORMATS_DATEPICKER[t.type]||DEFAULT_FORMATS_DATE,_e=getPanel(t.type);return createVNode(CommonPicker,mergeProps(t,{format:he,type:t.type,ref:le,"onUpdate:modelValue":de}),{default:$e=>createVNode(_e,$e,null),"range-separator":oe["range-separator"]})}}});const _DatePicker=DatePicker;_DatePicker.install=t=>{t.component(_DatePicker.name,_DatePicker)};const ElDatePicker=_DatePicker,descriptionsKey=Symbol("elDescriptions");var ElDescriptionsCell=defineComponent({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:inject(descriptionsKey,{})}},render(){var t,r,V,oe,ie,le;const ue=getNormalizedProps(this.cell),{border:de,direction:pe}=this.descriptions,he=pe==="vertical",_e=((V=(r=(t=this.cell)==null?void 0:t.children)==null?void 0:r.label)==null?void 0:V.call(r))||ue.label,$e=(le=(ie=(oe=this.cell)==null?void 0:oe.children)==null?void 0:ie.default)==null?void 0:le.call(ie),Ie=ue.span,Ve=ue.align?`is-${ue.align}`:"",Fe=ue.labelAlign?`is-${ue.labelAlign}`:Ve,Ue=ue.className,qe=ue.labelClassName,Et={width:addUnit(ue.width),minWidth:addUnit(ue.minWidth)},At=useNamespace("descriptions");switch(this.type){case"label":return h$2(this.tag,{style:Et,class:[At.e("cell"),At.e("label"),At.is("bordered-label",de),At.is("vertical-label",he),Fe,qe],colSpan:he?Ie:1},_e);case"content":return h$2(this.tag,{style:Et,class:[At.e("cell"),At.e("content"),At.is("bordered-content",de),At.is("vertical-content",he),Ve,Ue],colSpan:he?Ie:Ie*2-1},$e);default:return h$2("td",{style:Et,class:[At.e("cell"),Ve],colSpan:Ie},[isNil(_e)?void 0:h$2("span",{class:[At.e("label"),qe]},_e),h$2("span",{class:[At.e("content"),Ue]},$e)])}}});const descriptionsRowProps=buildProps({row:{type:Array,default:()=>[]}}),_hoisted_1$E={key:1},__default__$Q=defineComponent({name:"ElDescriptionsRow"}),_sfc_main$1h=defineComponent({...__default__$Q,props:descriptionsRowProps,setup(t){const r=inject(descriptionsKey,{});return(V,oe)=>unref(r).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(V.row,(ie,le)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${le}`,cell:ie,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(V.row,(ie,le)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${le}`,cell:ie,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$E,[(openBlock(!0),createElementBlock(Fragment,null,renderList(V.row,(ie,le)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${le}`},[unref(r).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(ElDescriptionsCell),{cell:ie,tag:"td",type:"label"},null,8,["cell"]),createVNode(unref(ElDescriptionsCell),{cell:ie,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:ie,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var ElDescriptionsRow=_export_sfc$1(_sfc_main$1h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const descriptionProps=buildProps({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:useSizeProp,title:{type:String,default:""},extra:{type:String,default:""}}),__default__$P=defineComponent({name:"ElDescriptions"}),_sfc_main$1g=defineComponent({...__default__$P,props:descriptionProps,setup(t){const r=t,V=useNamespace("descriptions"),oe=useFormSize(),ie=useSlots();provide(descriptionsKey,r);const le=computed(()=>[V.b(),V.m(oe.value)]),ue=(pe,he,_e,$e=!1)=>(pe.props||(pe.props={}),he>_e&&(pe.props.span=_e),$e&&(pe.props.span=he),pe),de=()=>{var pe;const he=flattedChildren((pe=ie.default)==null?void 0:pe.call(ie)).filter(Fe=>{var Ue;return((Ue=Fe==null?void 0:Fe.type)==null?void 0:Ue.name)==="ElDescriptionsItem"}),_e=[];let $e=[],Ie=r.column,Ve=0;return he.forEach((Fe,Ue)=>{var qe;const Et=((qe=Fe.props)==null?void 0:qe.span)||1;if(UeIe?Ie:Et),Ue===he.length-1){const At=r.column-Ve%r.column;$e.push(ue(Fe,At,Ie,!0)),_e.push($e);return}Et(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le))},[pe.title||pe.extra||pe.$slots.title||pe.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(V).e("title"))},[renderSlot(pe.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(pe.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(V).e("extra"))},[renderSlot(pe.$slots,"extra",{},()=>[createTextVNode(toDisplayString$1(pe.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(V).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(V).e("table"),unref(V).is("bordered",pe.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(de(),(_e,$e)=>(openBlock(),createBlock(ElDescriptionsRow,{key:$e,row:_e},null,8,["row"]))),128))])],2)],2)],2))}});var Descriptions=_export_sfc$1(_sfc_main$1g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),DescriptionsItem=defineComponent({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const ElDescriptions=withInstall(Descriptions,{DescriptionsItem}),ElDescriptionsItem=withNoopInstall(DescriptionsItem),overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:t=>t instanceof MouseEvent},BLOCK="overlay";var Overlay$1=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup(t,{slots:r,emit:V}){const oe=useNamespace(BLOCK),ie=pe=>{V("click",pe)},{onClick:le,onMousedown:ue,onMouseup:de}=useSameTarget(t.customMaskEvent?void 0:ie);return()=>t.mask?createVNode("div",{class:[oe.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:le,onMousedown:ue,onMouseup:de},[renderSlot(r,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$2("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(r,"default")])}});const ElOverlay=Overlay$1,dialogInjectionKey=Symbol("dialogInjectionKey"),dialogContentProps=buildProps({center:Boolean,alignCenter:Boolean,closeIcon:{type:iconPropType},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),dialogContentEmits={close:()=>!0},_hoisted_1$D=["aria-level"],_hoisted_2$p=["aria-label"],_hoisted_3$d=["id"],__default__$O=defineComponent({name:"ElDialogContent"}),_sfc_main$1f=defineComponent({...__default__$O,props:dialogContentProps,emits:dialogContentEmits,setup(t){const r=t,{t:V}=useLocale(),{Close:oe}=CloseComponents,{dialogRef:ie,headerRef:le,bodyId:ue,ns:de,style:pe}=inject(dialogInjectionKey),{focusTrapRef:he}=inject(FOCUS_TRAP_INJECTION_KEY),_e=computed(()=>[de.b(),de.is("fullscreen",r.fullscreen),de.is("draggable",r.draggable),de.is("align-center",r.alignCenter),{[de.m("center")]:r.center},r.customClass]),$e=composeRefs(he,ie),Ie=computed(()=>r.draggable);return useDraggable(ie,le,Ie),(Ve,Fe)=>(openBlock(),createElementBlock("div",{ref:unref($e),class:normalizeClass(unref(_e)),style:normalizeStyle$1(unref(pe)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:le,class:normalizeClass(unref(de).e("header"))},[renderSlot(Ve.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading","aria-level":Ve.ariaLevel,class:normalizeClass(unref(de).e("title"))},toDisplayString$1(Ve.title),11,_hoisted_1$D)]),Ve.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(V)("el.dialog.close"),class:normalizeClass(unref(de).e("headerbtn")),type:"button",onClick:Fe[0]||(Fe[0]=Ue=>Ve.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(de).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ve.closeIcon||unref(oe))))]),_:1},8,["class"])],10,_hoisted_2$p)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(ue),class:normalizeClass(unref(de).e("body"))},[renderSlot(Ve.$slots,"default")],10,_hoisted_3$d),Ve.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(de).e("footer"))},[renderSlot(Ve.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6))}});var ElDialogContent=_export_sfc$1(_sfc_main$1f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps({...dialogContentProps,appendToBody:Boolean,beforeClose:{type:definePropType(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:t=>isBoolean$3(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useDialog=(t,r)=>{const oe=getCurrentInstance().emit,{nextZIndex:ie}=useZIndex();let le="";const ue=useId(),de=useId(),pe=ref(!1),he=ref(!1),_e=ref(!1),$e=ref(t.zIndex||ie());let Ie,Ve;const Fe=useGlobalConfig("namespace",defaultNamespace),Ue=computed(()=>{const kn={},Nn=`--${Fe.value}-dialog`;return t.fullscreen||(t.top&&(kn[`${Nn}-margin-top`]=t.top),t.width&&(kn[`${Nn}-width`]=addUnit(t.width))),kn}),qe=computed(()=>t.alignCenter?{display:"flex"}:{});function Et(){oe("opened")}function At(){oe("closed"),oe(UPDATE_MODEL_EVENT,!1),t.destroyOnClose&&(_e.value=!1)}function Lt(){oe("close")}function hn(){Ve==null||Ve(),Ie==null||Ie(),t.openDelay&&t.openDelay>0?{stop:Ie}=useTimeoutFn$1(()=>Cn(),t.openDelay):Cn()}function _n(){Ie==null||Ie(),Ve==null||Ve(),t.closeDelay&&t.closeDelay>0?{stop:Ve}=useTimeoutFn$1(()=>Sn(),t.closeDelay):Sn()}function vn(){function kn(Nn){Nn||(he.value=!0,pe.value=!1)}t.beforeClose?t.beforeClose(kn):_n()}function bn(){t.closeOnClickModal&&vn()}function Cn(){isClient$1&&(pe.value=!0)}function Sn(){pe.value=!1}function wn(){oe("openAutoFocus")}function En(){oe("closeAutoFocus")}function xn(kn){var Nn;((Nn=kn.detail)==null?void 0:Nn.focusReason)==="pointer"&&kn.preventDefault()}t.lockScroll&&useLockscreen(pe);function Pn(){t.closeOnPressEscape&&vn()}return watch(()=>t.modelValue,kn=>{kn?(he.value=!1,hn(),_e.value=!0,$e.value=t.zIndex?$e.value++:ie(),nextTick(()=>{oe("open"),r.value&&(r.value.scrollTop=0)})):pe.value&&_n()}),watch(()=>t.fullscreen,kn=>{r.value&&(kn?(le=r.value.style.transform,r.value.style.transform=""):r.value.style.transform=le)}),onMounted(()=>{t.modelValue&&(pe.value=!0,_e.value=!0,hn())}),{afterEnter:Et,afterLeave:At,beforeLeave:Lt,handleClose:vn,onModalClick:bn,close:_n,doClose:Sn,onOpenAutoFocus:wn,onCloseAutoFocus:En,onCloseRequested:Pn,onFocusoutPrevented:xn,titleId:ue,bodyId:de,closed:he,style:Ue,overlayDialogStyle:qe,rendered:_e,visible:pe,zIndex:$e}},_hoisted_1$C=["aria-label","aria-labelledby","aria-describedby"],__default__$N=defineComponent({name:"ElDialog",inheritAttrs:!1}),_sfc_main$1e=defineComponent({...__default__$N,props:dialogProps,emits:dialogEmits,setup(t,{expose:r}){const V=t,oe=useSlots();useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},computed(()=>!!oe.title)),useDeprecated({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},computed(()=>!!V.customClass));const ie=useNamespace("dialog"),le=ref(),ue=ref(),de=ref(),{visible:pe,titleId:he,bodyId:_e,style:$e,overlayDialogStyle:Ie,rendered:Ve,zIndex:Fe,afterEnter:Ue,afterLeave:qe,beforeLeave:Et,handleClose:At,onModalClick:Lt,onOpenAutoFocus:hn,onCloseAutoFocus:_n,onCloseRequested:vn,onFocusoutPrevented:bn}=useDialog(V,le);provide(dialogInjectionKey,{dialogRef:le,headerRef:ue,bodyId:_e,ns:ie,rendered:Ve,style:$e});const Cn=useSameTarget(Lt),Sn=computed(()=>V.draggable&&!V.fullscreen);return r({visible:pe,dialogContentRef:de}),(wn,En)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!wn.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(Ue),onAfterLeave:unref(qe),onBeforeLeave:unref(Et),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:wn.modal,"overlay-class":wn.modalClass,"z-index":unref(Fe)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":wn.title||void 0,"aria-labelledby":wn.title?void 0:unref(he),"aria-describedby":unref(_e),class:normalizeClass(`${unref(ie).namespace.value}-overlay-dialog`),style:normalizeStyle$1(unref(Ie)),onClick:En[0]||(En[0]=(...xn)=>unref(Cn).onClick&&unref(Cn).onClick(...xn)),onMousedown:En[1]||(En[1]=(...xn)=>unref(Cn).onMousedown&&unref(Cn).onMousedown(...xn)),onMouseup:En[2]||(En[2]=(...xn)=>unref(Cn).onMouseup&&unref(Cn).onMouseup(...xn))},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref(pe),"focus-start-el":"container",onFocusAfterTrapped:unref(hn),onFocusAfterReleased:unref(_n),onFocusoutPrevented:unref(bn),onReleaseRequested:unref(vn)},{default:withCtx(()=>[unref(Ve)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:de},wn.$attrs,{"custom-class":wn.customClass,center:wn.center,"align-center":wn.alignCenter,"close-icon":wn.closeIcon,draggable:unref(Sn),fullscreen:wn.fullscreen,"show-close":wn.showClose,title:wn.title,"aria-level":wn.headerAriaLevel,onClose:unref(At)}),createSlots({header:withCtx(()=>[wn.$slots.title?renderSlot(wn.$slots,"title",{key:1}):renderSlot(wn.$slots,"header",{key:0,close:unref(At),titleId:unref(he),titleClass:unref(ie).e("title")})]),default:withCtx(()=>[renderSlot(wn.$slots,"default")]),_:2},[wn.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(wn.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,_hoisted_1$C)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(pe)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Dialog=_export_sfc$1(_sfc_main$1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const ElDialog=withInstall(Dialog),dividerProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:definePropType(String),default:"solid"}}),__default__$M=defineComponent({name:"ElDivider"}),_sfc_main$1d=defineComponent({...__default__$M,props:dividerProps,setup(t){const r=t,V=useNamespace("divider"),oe=computed(()=>V.cssVar({"border-style":r.borderStyle}));return(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b(),unref(V).m(ie.direction)]),style:normalizeStyle$1(unref(oe)),role:"separator"},[ie.$slots.default&&ie.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(V).e("text"),unref(V).is(ie.contentPosition)])},[renderSlot(ie.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider=_export_sfc$1(_sfc_main$1d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ElDivider=withInstall(Divider),drawerProps=buildProps({...dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),drawerEmits=dialogEmits,_sfc_main$1c=defineComponent({name:"ElDrawer",components:{ElOverlay,ElFocusTrap,ElIcon,Close:close_default},inheritAttrs:!1,props:drawerProps,emits:drawerEmits,setup(t,{slots:r}){useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},computed(()=>!!r.title)),useDeprecated({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},computed(()=>!!t.customClass));const V=ref(),oe=ref(),ie=useNamespace("drawer"),{t:le}=useLocale(),ue=computed(()=>t.direction==="rtl"||t.direction==="ltr"),de=computed(()=>addUnit(t.size));return{...useDialog(t,V),drawerRef:V,focusStartRef:oe,isHorizontal:ue,drawerSize:de,ns:ie,t:le}}}),_hoisted_1$B=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$o=["id","aria-level"],_hoisted_3$c=["aria-label"],_hoisted_4$8=["id"];function _sfc_render$p(t,r,V,oe,ie,le){const ue=resolveComponent("close"),de=resolveComponent("el-icon"),pe=resolveComponent("el-focus-trap"),he=resolveComponent("el-overlay");return openBlock(),createBlock(Teleport,{to:"body",disabled:!t.appendToBody},[createVNode(Transition,{name:t.ns.b("fade"),onAfterEnter:t.afterEnter,onAfterLeave:t.afterLeave,onBeforeLeave:t.beforeLeave,persisted:""},{default:withCtx(()=>[withDirectives(createVNode(he,{mask:t.modal,"overlay-class":t.modalClass,"z-index":t.zIndex,onClick:t.onModalClick},{default:withCtx(()=>[createVNode(pe,{loop:"",trapped:t.visible,"focus-trap-el":t.drawerRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",mergeProps({ref:"drawerRef","aria-modal":"true","aria-label":t.title||void 0,"aria-labelledby":t.title?void 0:t.titleId,"aria-describedby":t.bodyId},t.$attrs,{class:[t.ns.b(),t.direction,t.visible&&"open",t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,role:"dialog",onClick:r[1]||(r[1]=withModifiers(()=>{},["stop"]))}),[createBaseVNode("span",{ref:"focusStartRef",class:normalizeClass(t.ns.e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass(t.ns.e("header"))},[t.$slots.title?renderSlot(t.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot(t.$slots,"header",{key:0,close:t.handleClose,titleId:t.titleId,titleClass:t.ns.e("title")},()=>[t.$slots.title?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,id:t.titleId,role:"heading","aria-level":t.headerAriaLevel,class:normalizeClass(t.ns.e("title"))},toDisplayString$1(t.title),11,_hoisted_2$o))]),t.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":t.t("el.drawer.close"),class:normalizeClass(t.ns.e("close-btn")),type:"button",onClick:r[0]||(r[0]=(..._e)=>t.handleClose&&t.handleClose(..._e))},[createVNode(de,{class:normalizeClass(t.ns.e("close"))},{default:withCtx(()=>[createVNode(ue)]),_:1},8,["class"])],10,_hoisted_3$c)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),t.rendered?(openBlock(),createElementBlock("div",{key:1,id:t.bodyId,class:normalizeClass(t.ns.e("body"))},[renderSlot(t.$slots,"default")],10,_hoisted_4$8)):createCommentVNode("v-if",!0),t.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(t.ns.e("footer"))},[renderSlot(t.$slots,"footer")],2)):createCommentVNode("v-if",!0)],16,_hoisted_1$B)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,t.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Drawer=_export_sfc$1(_sfc_main$1c,[["render",_sfc_render$p],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),_sfc_main$1b=defineComponent({inheritAttrs:!1});function _sfc_render$o(t,r,V,oe,ie,le){return renderSlot(t.$slots,"default")}var Collection=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$o],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1a=defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function _sfc_render$n(t,r,V,oe,ie,le){return renderSlot(t.$slots,"default")}var CollectionItem=_export_sfc$1(_sfc_main$1a,[["render",_sfc_render$n],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const COLLECTION_ITEM_SIGN="data-el-collection-item",createCollectionWithScope=t=>{const r=`El${t}Collection`,V=`${r}Item`,oe=Symbol(r),ie=Symbol(V),le={...Collection,name:r,setup(){const de=ref(null),pe=new Map;provide(oe,{itemMap:pe,getItems:()=>{const _e=unref(de);if(!_e)return[];const $e=Array.from(_e.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...pe.values()].sort((Ve,Fe)=>$e.indexOf(Ve.ref)-$e.indexOf(Fe.ref))},collectionRef:de})}},ue={...CollectionItem,name:V,setup(de,{attrs:pe}){const he=ref(null),_e=inject(oe,void 0);provide(ie,{collectionItemRef:he}),onMounted(()=>{const $e=unref(he);$e&&_e.itemMap.set($e,{ref:$e,...pe})}),onBeforeUnmount(()=>{const $e=unref(he);_e.itemMap.delete($e)})}};return{COLLECTION_INJECTION_KEY:oe,COLLECTION_ITEM_INJECTION_KEY:ie,ElCollection:le,ElCollectionItem:ue}},rovingFocusGroupProps=buildProps({style:{type:definePropType([String,Array,Object])},currentTabId:{type:definePropType(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:definePropType(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ElCollection$1,ElCollectionItem:ElCollectionItem$1,COLLECTION_INJECTION_KEY:COLLECTION_INJECTION_KEY$1,COLLECTION_ITEM_INJECTION_KEY:COLLECTION_ITEM_INJECTION_KEY$1}=createCollectionWithScope("RovingFocusGroup"),ROVING_FOCUS_GROUP_INJECTION_KEY=Symbol("elRovingFocusGroup"),ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY=Symbol("elRovingFocusGroupItem"),MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},getDirectionAwareKey=(t,r)=>{if(r!=="rtl")return t;switch(t){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return t}},getFocusIntent=(t,r,V)=>{const oe=getDirectionAwareKey(t.key,V);if(!(r==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(oe))&&!(r==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(oe)))return MAP_KEY_TO_FOCUS_INTENT[oe]},reorderArray=(t,r)=>t.map((V,oe)=>t[(oe+r)%t.length]),focusFirst=t=>{const{activeElement:r}=document;for(const V of t)if(V===r||(V.focus(),r!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$19=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup(t,{emit:r}){var V;const oe=ref((V=t.currentTabId||t.defaultCurrentTabId)!=null?V:null),ie=ref(!1),le=ref(!1),ue=ref(null),{getItems:de}=inject(COLLECTION_INJECTION_KEY$1,void 0),pe=computed(()=>[{outline:"none"},t.style]),he=Ue=>{r(CURRENT_TAB_ID_CHANGE_EVT,Ue)},_e=()=>{ie.value=!0},$e=composeEventHandlers(Ue=>{var qe;(qe=t.onMousedown)==null||qe.call(t,Ue)},()=>{le.value=!0}),Ie=composeEventHandlers(Ue=>{var qe;(qe=t.onFocus)==null||qe.call(t,Ue)},Ue=>{const qe=!unref(le),{target:Et,currentTarget:At}=Ue;if(Et===At&&qe&&!unref(ie)){const Lt=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(At==null||At.dispatchEvent(Lt),!Lt.defaultPrevented){const hn=de().filter(Sn=>Sn.focusable),_n=hn.find(Sn=>Sn.active),vn=hn.find(Sn=>Sn.id===unref(oe)),Cn=[_n,vn,...hn].filter(Boolean).map(Sn=>Sn.ref);focusFirst(Cn)}}le.value=!1}),Ve=composeEventHandlers(Ue=>{var qe;(qe=t.onBlur)==null||qe.call(t,Ue)},()=>{ie.value=!1}),Fe=(...Ue)=>{r("entryFocus",...Ue)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(oe),loop:toRef(t,"loop"),tabIndex:computed(()=>unref(ie)?-1:0),rovingFocusGroupRef:ue,rovingFocusGroupRootStyle:pe,orientation:toRef(t,"orientation"),dir:toRef(t,"dir"),onItemFocus:he,onItemShiftTab:_e,onBlur:Ve,onFocus:Ie,onMousedown:$e}),watch(()=>t.currentTabId,Ue=>{oe.value=Ue??null}),useEventListener$1(ue,ENTRY_FOCUS_EVT,Fe)}});function _sfc_render$m(t,r,V,oe,ie,le){return renderSlot(t.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$m],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const _sfc_main$18=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection$1,ElRovingFocusGroupImpl}});function _sfc_render$l(t,r,V,oe,ie,le){const ue=resolveComponent("el-roving-focus-group-impl"),de=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(de,null,{default:withCtx(()=>[createVNode(ue,normalizeProps(guardReactiveProps(t.$attrs)),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$l],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const _sfc_main$17=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem$1},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(t,{emit:r}){const{currentTabbedId:V,loop:oe,onItemFocus:ie,onItemShiftTab:le}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:ue}=inject(COLLECTION_INJECTION_KEY$1,void 0),de=useId(),pe=ref(null),he=composeEventHandlers(Ve=>{r("mousedown",Ve)},Ve=>{t.focusable?ie(unref(de)):Ve.preventDefault()}),_e=composeEventHandlers(Ve=>{r("focus",Ve)},()=>{ie(unref(de))}),$e=composeEventHandlers(Ve=>{r("keydown",Ve)},Ve=>{const{key:Fe,shiftKey:Ue,target:qe,currentTarget:Et}=Ve;if(Fe===EVENT_CODE.tab&&Ue){le();return}if(qe!==Et)return;const At=getFocusIntent(Ve);if(At){Ve.preventDefault();let hn=ue().filter(_n=>_n.focusable).map(_n=>_n.ref);switch(At){case"last":{hn.reverse();break}case"prev":case"next":{At==="prev"&&hn.reverse();const _n=hn.indexOf(Et);hn=oe.value?reorderArray(hn,_n+1):hn.slice(_n+1);break}}nextTick(()=>{focusFirst(hn)})}}),Ie=computed(()=>V.value===unref(de));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:pe,tabIndex:computed(()=>unref(Ie)?0:-1),handleMousedown:he,handleFocus:_e,handleKeydown:$e}),{id:de,handleKeydown:$e,handleFocus:_e,handleMousedown:he}}});function _sfc_render$k(t,r,V,oe,ie,le){const ue=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(ue,{id:t.id,focusable:t.focusable,active:t.active},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc$1(_sfc_main$17,[["render",_sfc_render$k],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const dropdownProps=buildProps({trigger:useTooltipTriggerProps.trigger,effect:{...useTooltipContentProps.effect,default:"light"},type:{type:definePropType(String)},placement:{type:definePropType(String),default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:definePropType([Number,String]),default:0},maxHeight:{type:definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:definePropType(Object)},teleported:useTooltipContentProps.teleported}),dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}}),dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}}),FIRST_KEYS=[EVENT_CODE.down,EVENT_CODE.pageDown,EVENT_CODE.home],LAST_KEYS=[EVENT_CODE.up,EVENT_CODE.pageUp,EVENT_CODE.end],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],{ElCollection,ElCollectionItem,COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY}=createCollectionWithScope("Dropdown"),DROPDOWN_INJECTION_KEY=Symbol("elDropdown"),{ButtonGroup:ElButtonGroup}=ElButton,_sfc_main$16=defineComponent({name:"ElDropdown",components:{ElButton,ElButtonGroup,ElScrollbar,ElDropdownCollection:ElCollection,ElTooltip,ElRovingFocusGroup,ElOnlyChild:OnlyChild,ElIcon,ArrowDown:arrow_down_default},props:dropdownProps,emits:["visible-change","click","command"],setup(t,{emit:r}){const V=getCurrentInstance(),oe=useNamespace("dropdown"),{t:ie}=useLocale(),le=ref(),ue=ref(),de=ref(null),pe=ref(null),he=ref(null),_e=ref(null),$e=ref(!1),Ie=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down],Ve=computed(()=>({maxHeight:addUnit(t.maxHeight)})),Fe=computed(()=>[oe.m(_n.value)]),Ue=computed(()=>castArray$1(t.trigger)),qe=useId().value,Et=computed(()=>t.id||qe);watch([le,Ue],([Mn,Ln],[An])=>{var Vn,Wn,Fn;(Vn=An==null?void 0:An.$el)!=null&&Vn.removeEventListener&&An.$el.removeEventListener("pointerenter",bn),(Wn=Mn==null?void 0:Mn.$el)!=null&&Wn.removeEventListener&&Mn.$el.removeEventListener("pointerenter",bn),(Fn=Mn==null?void 0:Mn.$el)!=null&&Fn.addEventListener&&Ln.includes("hover")&&Mn.$el.addEventListener("pointerenter",bn)},{immediate:!0}),onBeforeUnmount(()=>{var Mn,Ln;(Ln=(Mn=le.value)==null?void 0:Mn.$el)!=null&&Ln.removeEventListener&&le.value.$el.removeEventListener("pointerenter",bn)});function At(){Lt()}function Lt(){var Mn;(Mn=de.value)==null||Mn.onClose()}function hn(){var Mn;(Mn=de.value)==null||Mn.onOpen()}const _n=useFormSize();function vn(...Mn){r("command",...Mn)}function bn(){var Mn,Ln;(Ln=(Mn=le.value)==null?void 0:Mn.$el)==null||Ln.focus()}function Cn(){}function Sn(){const Mn=unref(pe);Ue.value.includes("hover")&&(Mn==null||Mn.focus()),_e.value=null}function wn(Mn){_e.value=Mn}function En(Mn){$e.value||(Mn.preventDefault(),Mn.stopImmediatePropagation())}function xn(){r("visible-change",!0)}function Pn(Mn){(Mn==null?void 0:Mn.type)==="keydown"&&pe.value.focus()}function kn(){r("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:pe,role:computed(()=>t.role),triggerId:Et,isUsingKeyboard:$e,onItemEnter:Cn,onItemLeave:Sn}),provide("elDropdown",{instance:V,dropdownSize:_n,handleClick:At,commandHandler:vn,trigger:toRef(t,"trigger"),hideOnClick:toRef(t,"hideOnClick")}),{t:ie,ns:oe,scrollbar:he,wrapStyle:Ve,dropdownTriggerKls:Fe,dropdownSize:_n,triggerId:Et,triggerKeys:Ie,currentTabId:_e,handleCurrentTabIdChange:wn,handlerMainButtonClick:Mn=>{r("click",Mn)},handleEntryFocus:En,handleClose:Lt,handleOpen:hn,handleBeforeShowTooltip:xn,handleShowTooltip:Pn,handleBeforeHideTooltip:kn,onFocusAfterTrapped:Mn=>{var Ln,An;Mn.preventDefault(),(An=(Ln=pe.value)==null?void 0:Ln.focus)==null||An.call(Ln,{preventScroll:!0})},popperRef:de,contentRef:pe,triggeringElementRef:le,referenceElementRef:ue}}});function _sfc_render$j(t,r,V,oe,ie,le){var ue;const de=resolveComponent("el-dropdown-collection"),pe=resolveComponent("el-roving-focus-group"),he=resolveComponent("el-scrollbar"),_e=resolveComponent("el-only-child"),$e=resolveComponent("el-tooltip"),Ie=resolveComponent("el-button"),Ve=resolveComponent("arrow-down"),Fe=resolveComponent("el-icon"),Ue=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b(),t.ns.is("disabled",t.disabled)])},[createVNode($e,{ref:"popperRef",role:t.role,effect:t.effect,"fallback-placements":["bottom","top"],"popper-options":t.popperOptions,"gpu-acceleration":!1,"hide-after":t.trigger==="hover"?t.hideTimeout:0,"manual-mode":!0,placement:t.placement,"popper-class":[t.ns.e("popper"),t.popperClass],"reference-element":(ue=t.referenceElementRef)==null?void 0:ue.$el,trigger:t.trigger,"trigger-keys":t.triggerKeys,"trigger-target-el":t.contentRef,"show-after":t.trigger==="hover"?t.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":t.triggeringElementRef,"virtual-triggering":t.splitButton,disabled:t.disabled,transition:`${t.ns.namespace.value}-zoom-in-top`,teleported:t.teleported,pure:"",persistent:"",onBeforeShow:t.handleBeforeShowTooltip,onShow:t.handleShowTooltip,onBeforeHide:t.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode(he,{ref:"scrollbar","wrap-style":t.wrapStyle,tag:"div","view-class":t.ns.e("list")},{default:withCtx(()=>[createVNode(pe,{loop:t.loop,"current-tab-id":t.currentTabId,orientation:"horizontal",onCurrentTabIdChange:t.handleCurrentTabIdChange,onEntryFocus:t.handleEntryFocus},{default:withCtx(()=>[createVNode(de,null,{default:withCtx(()=>[renderSlot(t.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[t.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode(_e,{id:t.triggerId,ref:"triggeringElementRef",role:"button",tabindex:t.tabindex},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),t.splitButton?(openBlock(),createBlock(Ue,{key:0},{default:withCtx(()=>[createVNode(Ie,mergeProps({ref:"referenceElementRef"},t.buttonProps,{size:t.dropdownSize,type:t.type,disabled:t.disabled,tabindex:t.tabindex,onClick:t.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode(Ie,mergeProps({id:t.triggerId,ref:"triggeringElementRef"},t.buttonProps,{role:"button",size:t.dropdownSize,type:t.type,class:t.ns.e("caret-button"),disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode(Fe,{class:normalizeClass(t.ns.e("icon"))},{default:withCtx(()=>[createVNode(Ve)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):createCommentVNode("v-if",!0)],2)}var Dropdown=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$15=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup(t,{emit:r}){const V=useNamespace("dropdown"),{role:oe}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:ie}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{collectionItemRef:le}=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),{rovingFocusGroupItemRef:ue,tabIndex:de,handleFocus:pe,handleKeydown:he,handleMousedown:_e}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),$e=composeRefs(ie,le,ue),Ie=computed(()=>oe.value==="menu"?"menuitem":oe.value==="navigation"?"link":"button"),Ve=composeEventHandlers(Fe=>{const{code:Ue}=Fe;if(Ue===EVENT_CODE.enter||Ue===EVENT_CODE.space)return Fe.preventDefault(),Fe.stopImmediatePropagation(),r("clickimpl",Fe),!0},he);return{ns:V,itemRef:$e,dataset:{[COLLECTION_ITEM_SIGN]:""},role:Ie,tabIndex:de,handleFocus:pe,handleKeydown:Ve,handleMousedown:_e}}}),_hoisted_1$A=["aria-disabled","tabindex","role"];function _sfc_render$i(t,r,V,oe,ie,le){const ue=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[t.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,role:"separator",class:t.ns.bem("menu","item","divided")},t.$attrs),null,16)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:t.itemRef},{...t.dataset,...t.$attrs},{"aria-disabled":t.disabled,class:[t.ns.be("menu","item"),t.ns.is("disabled",t.disabled)],tabindex:t.tabIndex,role:t.role,onClick:r[0]||(r[0]=de=>t.$emit("clickimpl",de)),onFocus:r[1]||(r[1]=(...de)=>t.handleFocus&&t.handleFocus(...de)),onKeydown:r[2]||(r[2]=withModifiers((...de)=>t.handleKeydown&&t.handleKeydown(...de),["self"])),onMousedown:r[3]||(r[3]=(...de)=>t.handleMousedown&&t.handleMousedown(...de)),onPointermove:r[4]||(r[4]=de=>t.$emit("pointermove",de)),onPointerleave:r[5]||(r[5]=de=>t.$emit("pointerleave",de))}),[t.icon?(openBlock(),createBlock(ue,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.icon)))]),_:1})):createCommentVNode("v-if",!0),renderSlot(t.$slots,"default")],16,_hoisted_1$A)],64)}var ElDropdownItemImpl=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const t=inject("elDropdown",{}),r=computed(()=>t==null?void 0:t.dropdownSize);return{elDropdown:t,_elDropdownSize:r}},_sfc_main$14=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup(t,{emit:r,attrs:V}){const{elDropdown:oe}=useDropdown(),ie=getCurrentInstance(),le=ref(null),ue=computed(()=>{var Ve,Fe;return(Fe=(Ve=unref(le))==null?void 0:Ve.textContent)!=null?Fe:""}),{onItemEnter:de,onItemLeave:pe}=inject(DROPDOWN_INJECTION_KEY,void 0),he=composeEventHandlers(Ve=>(r("pointermove",Ve),Ve.defaultPrevented),whenMouse(Ve=>{if(t.disabled){pe(Ve);return}const Fe=Ve.currentTarget;Fe===document.activeElement||Fe.contains(document.activeElement)||(de(Ve),Ve.defaultPrevented||Fe==null||Fe.focus())})),_e=composeEventHandlers(Ve=>(r("pointerleave",Ve),Ve.defaultPrevented),whenMouse(Ve=>{pe(Ve)})),$e=composeEventHandlers(Ve=>{if(!t.disabled)return r("click",Ve),Ve.type!=="keydown"&&Ve.defaultPrevented},Ve=>{var Fe,Ue,qe;if(t.disabled){Ve.stopImmediatePropagation();return}(Fe=oe==null?void 0:oe.hideOnClick)!=null&&Fe.value&&((Ue=oe.handleClick)==null||Ue.call(oe)),(qe=oe.commandHandler)==null||qe.call(oe,t.command,ie,Ve)}),Ie=computed(()=>({...t,...V}));return{handleClick:$e,handlePointerMove:he,handlePointerLeave:_e,textContent:ue,propsAndAttrs:Ie}}});function _sfc_render$h(t,r,V,oe,ie,le){var ue;const de=resolveComponent("el-dropdown-item-impl"),pe=resolveComponent("el-roving-focus-item"),he=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock(he,{disabled:t.disabled,"text-value":(ue=t.textValue)!=null?ue:t.textContent},{default:withCtx(()=>[createVNode(pe,{focusable:!t.disabled},{default:withCtx(()=>[createVNode(de,mergeProps(t.propsAndAttrs,{onPointerleave:t.handlePointerLeave,onPointermove:t.handlePointerMove,onClickimpl:t.handleClick}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var DropdownItem=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$13=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup(t){const r=useNamespace("dropdown"),{_elDropdownSize:V}=useDropdown(),oe=V.value,{focusTrapRef:ie,onKeydown:le}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:ue,role:de,triggerId:pe}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:he,getItems:_e}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:$e,rovingFocusGroupRootStyle:Ie,tabIndex:Ve,onBlur:Fe,onFocus:Ue,onMousedown:qe}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:Et}=inject(COLLECTION_INJECTION_KEY$1,void 0),At=computed(()=>[r.b("menu"),r.bm("menu",oe==null?void 0:oe.value)]),Lt=composeRefs(ue,he,ie,$e,Et),hn=composeEventHandlers(vn=>{var bn;(bn=t.onKeydown)==null||bn.call(t,vn)},vn=>{const{currentTarget:bn,code:Cn,target:Sn}=vn;if(bn.contains(Sn),EVENT_CODE.tab===Cn&&vn.stopImmediatePropagation(),vn.preventDefault(),Sn!==unref(ue)||!FIRST_LAST_KEYS.includes(Cn))return;const En=_e().filter(xn=>!xn.disabled).map(xn=>xn.ref);LAST_KEYS.includes(Cn)&&En.reverse(),focusFirst(En)});return{size:oe,rovingFocusGroupRootStyle:Ie,tabIndex:Ve,dropdownKls:At,role:de,triggerId:pe,dropdownListWrapperRef:Lt,handleKeydown:vn=>{hn(vn),le(vn)},onBlur:Fe,onFocus:Ue,onMousedown:qe}}}),_hoisted_1$z=["role","aria-labelledby"];function _sfc_render$g(t,r,V,oe,ie,le){return openBlock(),createElementBlock("ul",{ref:t.dropdownListWrapperRef,class:normalizeClass(t.dropdownKls),style:normalizeStyle$1(t.rovingFocusGroupRootStyle),tabindex:-1,role:t.role,"aria-labelledby":t.triggerId,onBlur:r[0]||(r[0]=(...ue)=>t.onBlur&&t.onBlur(...ue)),onFocus:r[1]||(r[1]=(...ue)=>t.onFocus&&t.onFocus(...ue)),onKeydown:r[2]||(r[2]=withModifiers((...ue)=>t.handleKeydown&&t.handleKeydown(...ue),["self"])),onMousedown:r[3]||(r[3]=withModifiers((...ue)=>t.onMousedown&&t.onMousedown(...ue),["self"]))},[renderSlot(t.$slots,"default")],46,_hoisted_1$z)}var DropdownMenu=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$g],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const ElDropdown=withInstall(Dropdown,{DropdownItem,DropdownMenu}),ElDropdownItem=withNoopInstall(DropdownItem),ElDropdownMenu=withNoopInstall(DropdownMenu),_hoisted_1$y={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_hoisted_2$n=["id"],_hoisted_3$b=["stop-color"],_hoisted_4$7=["stop-color"],_hoisted_5$5=["id"],_hoisted_6$2=["stop-color"],_hoisted_7=["stop-color"],_hoisted_8=["id"],_hoisted_9={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_hoisted_10={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},_hoisted_11={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},_hoisted_12=["fill"],_hoisted_13=["fill"],_hoisted_14={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},_hoisted_15=["fill"],_hoisted_16=["fill"],_hoisted_17=["fill"],_hoisted_18=["fill"],_hoisted_19=["fill"],_hoisted_20={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},_hoisted_21=["fill","xlink:href"],_hoisted_22=["fill","mask"],_hoisted_23=["fill"],__default__$L=defineComponent({name:"ImgEmpty"}),_sfc_main$12=defineComponent({...__default__$L,setup(t){const r=useNamespace("empty"),V=useId();return(oe,ie)=>(openBlock(),createElementBlock("svg",_hoisted_1$y,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref(V)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${unref(r).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$b),createBaseVNode("stop",{"stop-color":`var(${unref(r).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$7)],8,_hoisted_2$n),createBaseVNode("linearGradient",{id:`linearGradient-2-${unref(V)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${unref(r).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$2),createBaseVNode("stop",{"stop-color":`var(${unref(r).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7)],8,_hoisted_5$5),createBaseVNode("rect",{id:`path-3-${unref(V)}`,x:"0",y:"0",width:"17",height:"36"},null,8,_hoisted_8)]),createBaseVNode("g",_hoisted_9,[createBaseVNode("g",_hoisted_10,[createBaseVNode("g",_hoisted_11,[createBaseVNode("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${unref(r).cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12),createBaseVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${unref(r).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,_hoisted_13),createBaseVNode("g",_hoisted_14,[createBaseVNode("polygon",{id:"Rectangle-Copy-10",fill:`var(${unref(r).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_hoisted_15),createBaseVNode("polygon",{id:"Rectangle-Copy-11",fill:`var(${unref(r).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,_hoisted_16),createBaseVNode("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${unref(V)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,_hoisted_17),createBaseVNode("polygon",{id:"Rectangle-Copy-13",fill:`var(${unref(r).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,_hoisted_18)]),createBaseVNode("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${unref(V)})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19),createBaseVNode("g",_hoisted_20,[createBaseVNode("use",{id:"Mask",fill:`var(${unref(r).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${unref(V)}`},null,8,_hoisted_21),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${unref(r).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref(V)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,_hoisted_22)]),createBaseVNode("polygon",{id:"Rectangle-Copy-18",fill:`var(${unref(r).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,_hoisted_23)])])])]))}});var ImgEmpty=_export_sfc$1(_sfc_main$12,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const emptyProps=buildProps({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),_hoisted_1$x=["src"],_hoisted_2$m={key:1},__default__$K=defineComponent({name:"ElEmpty"}),_sfc_main$11=defineComponent({...__default__$K,props:emptyProps,setup(t){const r=t,{t:V}=useLocale(),oe=useNamespace("empty"),ie=computed(()=>r.description||V("el.table.emptyText")),le=computed(()=>({width:addUnit(r.imageSize)}));return(ue,de)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(oe).b())},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("image")),style:normalizeStyle$1(unref(le))},[ue.image?(openBlock(),createElementBlock("img",{key:0,src:ue.image,ondragstart:"return false"},null,8,_hoisted_1$x)):renderSlot(ue.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(oe).e("description"))},[ue.$slots.description?renderSlot(ue.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$m,toDisplayString$1(unref(ie)),1))],2),ue.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("bottom"))},[renderSlot(ue.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var Empty=_export_sfc$1(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const ElEmpty=withInstall(Empty),imageViewerProps=buildProps({urlList:{type:definePropType(Array),default:()=>mutable([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageViewerEmits={close:()=>!0,switch:t=>isNumber$4(t)},_hoisted_1$w=["src"],__default__$J=defineComponent({name:"ElImageViewer"}),_sfc_main$10=defineComponent({...__default__$J,props:imageViewerProps,emits:imageViewerEmits,setup(t,{expose:r,emit:V}){const oe=t,ie={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},{t:le}=useLocale(),ue=useNamespace("image-viewer"),{nextZIndex:de}=useZIndex(),pe=ref(),he=ref([]),_e=effectScope(),$e=ref(!0),Ie=ref(oe.initialIndex),Ve=shallowRef(ie.CONTAIN),Fe=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Ue=computed(()=>{const{urlList:An}=oe;return An.length<=1}),qe=computed(()=>Ie.value===0),Et=computed(()=>Ie.value===oe.urlList.length-1),At=computed(()=>oe.urlList[Ie.value]),Lt=computed(()=>[ue.e("btn"),ue.e("prev"),ue.is("disabled",!oe.infinite&&qe.value)]),hn=computed(()=>[ue.e("btn"),ue.e("next"),ue.is("disabled",!oe.infinite&&Et.value)]),_n=computed(()=>{const{scale:An,deg:Vn,offsetX:Wn,offsetY:Fn,enableTransition:Yn}=Fe.value;let tr=Wn/An,yr=Fn/An;switch(Vn%360){case 90:case-270:[tr,yr]=[yr,-tr];break;case 180:case-180:[tr,yr]=[-tr,-yr];break;case 270:case-90:[tr,yr]=[-yr,tr];break}const Jn={transform:`scale(${An}) rotate(${Vn}deg) translate(${tr}px, ${yr}px)`,transition:Yn?"transform .3s":""};return Ve.value.name===ie.CONTAIN.name&&(Jn.maxWidth=Jn.maxHeight="100%"),Jn}),vn=computed(()=>isNumber$4(oe.zIndex)?oe.zIndex:de());function bn(){Sn(),V("close")}function Cn(){const An=throttle$1(Wn=>{switch(Wn.code){case EVENT_CODE.esc:oe.closeOnPressEscape&&bn();break;case EVENT_CODE.space:kn();break;case EVENT_CODE.left:Dn();break;case EVENT_CODE.up:Ln("zoomIn");break;case EVENT_CODE.right:Mn();break;case EVENT_CODE.down:Ln("zoomOut");break}}),Vn=throttle$1(Wn=>{const Fn=Wn.deltaY||Wn.deltaX;Ln(Fn<0?"zoomIn":"zoomOut",{zoomRate:oe.zoomRate,enableTransition:!1})});_e.run(()=>{useEventListener$1(document,"keydown",An),useEventListener$1(document,"wheel",Vn)})}function Sn(){_e.stop()}function wn(){$e.value=!1}function En(An){$e.value=!1,An.target.alt=le("el.image.error")}function xn(An){if($e.value||An.button!==0||!pe.value)return;Fe.value.enableTransition=!1;const{offsetX:Vn,offsetY:Wn}=Fe.value,Fn=An.pageX,Yn=An.pageY,tr=throttle$1(Jn=>{Fe.value={...Fe.value,offsetX:Vn+Jn.pageX-Fn,offsetY:Wn+Jn.pageY-Yn}}),yr=useEventListener$1(document,"mousemove",tr);useEventListener$1(document,"mouseup",()=>{yr()}),An.preventDefault()}function Pn(){Fe.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function kn(){if($e.value)return;const An=keysOf(ie),Vn=Object.values(ie),Wn=Ve.value.name,Yn=(Vn.findIndex(tr=>tr.name===Wn)+1)%An.length;Ve.value=ie[An[Yn]],Pn()}function Nn(An){const Vn=oe.urlList.length;Ie.value=(An+Vn)%Vn}function Dn(){qe.value&&!oe.infinite||Nn(Ie.value-1)}function Mn(){Et.value&&!oe.infinite||Nn(Ie.value+1)}function Ln(An,Vn={}){if($e.value)return;const{zoomRate:Wn,rotateDeg:Fn,enableTransition:Yn}={zoomRate:oe.zoomRate,rotateDeg:90,enableTransition:!0,...Vn};switch(An){case"zoomOut":Fe.value.scale>.2&&(Fe.value.scale=Number.parseFloat((Fe.value.scale/Wn).toFixed(3)));break;case"zoomIn":Fe.value.scale<7&&(Fe.value.scale=Number.parseFloat((Fe.value.scale*Wn).toFixed(3)));break;case"clockwise":Fe.value.deg+=Fn;break;case"anticlockwise":Fe.value.deg-=Fn;break}Fe.value.enableTransition=Yn}return watch(At,()=>{nextTick(()=>{const An=he.value[0];An!=null&&An.complete||($e.value=!0)})}),watch(Ie,An=>{Pn(),V("switch",An)}),onMounted(()=>{var An,Vn;Cn(),(Vn=(An=pe.value)==null?void 0:An.focus)==null||Vn.call(An)}),r({setActiveItem:Nn}),(An,Vn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!An.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:pe,tabindex:-1,class:normalizeClass(unref(ue).e("wrapper")),style:normalizeStyle$1({zIndex:unref(vn)})},[createBaseVNode("div",{class:normalizeClass(unref(ue).e("mask")),onClick:Vn[0]||(Vn[0]=withModifiers(Wn=>An.hideOnClickModal&&bn(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(ue).e("btn"),unref(ue).e("close")]),onClick:bn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),unref(Ue)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass(unref(Lt)),onClick:Dn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass(unref(hn)),onClick:Mn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(ue).e("btn"),unref(ue).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(ue).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:Vn[1]||(Vn[1]=Wn=>Ln("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoom_out_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Vn[2]||(Vn[2]=Wn=>Ln("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(ue).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:kn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ve).icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(ue).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:Vn[3]||(Vn[3]=Wn=>Ln("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_left_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Vn[4]||(Vn[4]=Wn=>Ln("clockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_right_default))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(ue).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(An.urlList,(Wn,Fn)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:Yn=>he.value[Fn]=Yn,key:Wn,src:Wn,style:normalizeStyle$1(unref(_n)),class:normalizeClass(unref(ue).e("img")),onLoad:wn,onError:En,onMousedown:xn},null,46,_hoisted_1$w)),[[vShow,Fn===Ie.value]])),128))],2),renderSlot(An.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var ImageViewer=_export_sfc$1(_sfc_main$10,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ElImageViewer=withInstall(ImageViewer),imageProps=buildProps({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageEmits={load:t=>t instanceof Event,error:t=>t instanceof Event,switch:t=>isNumber$4(t),close:()=>!0,show:()=>!0},_hoisted_1$v=["src","loading"],_hoisted_2$l={key:0},__default__$I=defineComponent({name:"ElImage",inheritAttrs:!1}),_sfc_main$$=defineComponent({...__default__$I,props:imageProps,emits:imageEmits,setup(t,{emit:r}){const V=t;let oe="";const{t:ie}=useLocale(),le=useNamespace("image"),ue=useAttrs$1(),de=useAttrs(),pe=ref(),he=ref(!1),_e=ref(!0),$e=ref(!1),Ie=ref(),Ve=ref(),Fe=isClient$1&&"loading"in HTMLImageElement.prototype;let Ue,qe;const Et=computed(()=>[le.e("inner"),hn.value&&le.e("preview"),_e.value&&le.is("loading")]),At=computed(()=>ue.style),Lt=computed(()=>{const{fit:Ln}=V;return isClient$1&&Ln?{objectFit:Ln}:{}}),hn=computed(()=>{const{previewSrcList:Ln}=V;return Array.isArray(Ln)&&Ln.length>0}),_n=computed(()=>{const{previewSrcList:Ln,initialIndex:An}=V;let Vn=An;return An>Ln.length-1&&(Vn=0),Vn}),vn=computed(()=>V.loading==="eager"?!1:!Fe&&V.loading==="lazy"||V.lazy),bn=()=>{isClient$1&&(_e.value=!0,he.value=!1,pe.value=V.src)};function Cn(Ln){_e.value=!1,he.value=!1,r("load",Ln)}function Sn(Ln){_e.value=!1,he.value=!0,r("error",Ln)}function wn(){isInContainer(Ie.value,Ve.value)&&(bn(),Pn())}const En=useThrottleFn(wn,200,!0);async function xn(){var Ln;if(!isClient$1)return;await nextTick();const{scrollContainer:An}=V;isElement$2(An)?Ve.value=An:isString$6(An)&&An!==""?Ve.value=(Ln=document.querySelector(An))!=null?Ln:void 0:Ie.value&&(Ve.value=getScrollContainer(Ie.value)),Ve.value&&(Ue=useEventListener$1(Ve,"scroll",En),setTimeout(()=>wn(),100))}function Pn(){!isClient$1||!Ve.value||!En||(Ue==null||Ue(),Ve.value=void 0)}function kn(Ln){if(Ln.ctrlKey){if(Ln.deltaY<0)return Ln.preventDefault(),!1;if(Ln.deltaY>0)return Ln.preventDefault(),!1}}function Nn(){hn.value&&(qe=useEventListener$1("wheel",kn,{passive:!1}),oe=document.body.style.overflow,document.body.style.overflow="hidden",$e.value=!0,r("show"))}function Dn(){qe==null||qe(),document.body.style.overflow=oe,$e.value=!1,r("close")}function Mn(Ln){r("switch",Ln)}return watch(()=>V.src,()=>{vn.value?(_e.value=!0,he.value=!1,Pn(),xn()):bn()}),onMounted(()=>{vn.value?xn():bn()}),(Ln,An)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:Ie,class:normalizeClass([unref(le).b(),Ln.$attrs.class]),style:normalizeStyle$1(unref(At))},[he.value?renderSlot(Ln.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(le).e("error"))},toDisplayString$1(unref(ie)("el.image.error")),3)]):(openBlock(),createElementBlock(Fragment,{key:1},[pe.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(de),{src:pe.value,loading:Ln.loading,style:unref(Lt),class:unref(Et),onClick:Nn,onLoad:Cn,onError:Sn}),null,16,_hoisted_1$v)):createCommentVNode("v-if",!0),_e.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("wrapper"))},[renderSlot(Ln.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(le).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),unref(hn)?(openBlock(),createElementBlock(Fragment,{key:2},[$e.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":Ln.zIndex,"initial-index":unref(_n),infinite:Ln.infinite,"zoom-rate":Ln.zoomRate,"url-list":Ln.previewSrcList,"hide-on-click-modal":Ln.hideOnClickModal,teleported:Ln.previewTeleported,"close-on-press-escape":Ln.closeOnPressEscape,onClose:Dn,onSwitch:Mn},{default:withCtx(()=>[Ln.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$l,[renderSlot(Ln.$slots,"viewer")])):createCommentVNode("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],6))}});var Image$1=_export_sfc$1(_sfc_main$$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const ElImage=withInstall(Image$1),inputNumberProps=buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||isNumber$4(t)||["min","max"].includes(t),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:t=>t>=0&&t===Number.parseInt(`${t}`,10)},validateEvent:{type:Boolean,default:!0}}),inputNumberEmits={[CHANGE_EVENT]:(t,r)=>r!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[INPUT_EVENT]:t=>isNumber$4(t)||isNil(t),[UPDATE_MODEL_EVENT]:t=>isNumber$4(t)||isNil(t)},_hoisted_1$u=["aria-label","onKeydown"],_hoisted_2$k=["aria-label","onKeydown"],__default__$H=defineComponent({name:"ElInputNumber"}),_sfc_main$_=defineComponent({...__default__$H,props:inputNumberProps,emits:inputNumberEmits,setup(t,{expose:r,emit:V}){const oe=t,{t:ie}=useLocale(),le=useNamespace("input-number"),ue=ref(),de=reactive({currentValue:oe.modelValue,userInput:null}),{formItem:pe}=useFormItem(),he=computed(()=>isNumber$4(oe.modelValue)&&oe.modelValue<=oe.min),_e=computed(()=>isNumber$4(oe.modelValue)&&oe.modelValue>=oe.max),$e=computed(()=>{const Pn=Et(oe.step);return isUndefined$1(oe.precision)?Math.max(Et(oe.modelValue),Pn):(Pn>oe.precision,oe.precision)}),Ie=computed(()=>oe.controls&&oe.controlsPosition==="right"),Ve=useFormSize(),Fe=useFormDisabled(),Ue=computed(()=>{if(de.userInput!==null)return de.userInput;let Pn=de.currentValue;if(isNil(Pn))return"";if(isNumber$4(Pn)){if(Number.isNaN(Pn))return"";isUndefined$1(oe.precision)||(Pn=Pn.toFixed(oe.precision))}return Pn}),qe=(Pn,kn)=>{if(isUndefined$1(kn)&&(kn=$e.value),kn===0)return Math.round(Pn);let Nn=String(Pn);const Dn=Nn.indexOf(".");if(Dn===-1||!Nn.replace(".","").split("")[Dn+kn])return Pn;const An=Nn.length;return Nn.charAt(An-1)==="5"&&(Nn=`${Nn.slice(0,Math.max(0,An-1))}6`),Number.parseFloat(Number(Nn).toFixed(kn))},Et=Pn=>{if(isNil(Pn))return 0;const kn=Pn.toString(),Nn=kn.indexOf(".");let Dn=0;return Nn!==-1&&(Dn=kn.length-Nn-1),Dn},At=(Pn,kn=1)=>isNumber$4(Pn)?qe(Pn+oe.step*kn):de.currentValue,Lt=()=>{if(oe.readonly||Fe.value||_e.value)return;const Pn=Number(Ue.value)||0,kn=At(Pn);vn(kn),V(INPUT_EVENT,de.currentValue)},hn=()=>{if(oe.readonly||Fe.value||he.value)return;const Pn=Number(Ue.value)||0,kn=At(Pn,-1);vn(kn),V(INPUT_EVENT,de.currentValue)},_n=(Pn,kn)=>{const{max:Nn,min:Dn,step:Mn,precision:Ln,stepStrictly:An,valueOnClear:Vn}=oe;NnNn||WnNn?Nn:Dn,kn&&V(UPDATE_MODEL_EVENT,Wn)),Wn},vn=(Pn,kn=!0)=>{var Nn;const Dn=de.currentValue,Mn=_n(Pn);if(!kn){V(UPDATE_MODEL_EVENT,Mn);return}Dn!==Mn&&(de.userInput=null,V(UPDATE_MODEL_EVENT,Mn),V(CHANGE_EVENT,Mn,Dn),oe.validateEvent&&((Nn=pe==null?void 0:pe.validate)==null||Nn.call(pe,"change").catch(Ln=>void 0)),de.currentValue=Mn)},bn=Pn=>{de.userInput=Pn;const kn=Pn===""?null:Number(Pn);V(INPUT_EVENT,kn),vn(kn,!1)},Cn=Pn=>{const kn=Pn!==""?Number(Pn):"";(isNumber$4(kn)&&!Number.isNaN(kn)||Pn==="")&&vn(kn),de.userInput=null},Sn=()=>{var Pn,kn;(kn=(Pn=ue.value)==null?void 0:Pn.focus)==null||kn.call(Pn)},wn=()=>{var Pn,kn;(kn=(Pn=ue.value)==null?void 0:Pn.blur)==null||kn.call(Pn)},En=Pn=>{V("focus",Pn)},xn=Pn=>{var kn;V("blur",Pn),oe.validateEvent&&((kn=pe==null?void 0:pe.validate)==null||kn.call(pe,"blur").catch(Nn=>void 0))};return watch(()=>oe.modelValue,Pn=>{const kn=_n(de.userInput),Nn=_n(Pn,!0);!isNumber$4(kn)&&(!kn||kn!==Nn)&&(de.currentValue=Nn,de.userInput=null)},{immediate:!0}),onMounted(()=>{var Pn;const{min:kn,max:Nn,modelValue:Dn}=oe,Mn=(Pn=ue.value)==null?void 0:Pn.input;if(Mn.setAttribute("role","spinbutton"),Number.isFinite(Nn)?Mn.setAttribute("aria-valuemax",String(Nn)):Mn.removeAttribute("aria-valuemax"),Number.isFinite(kn)?Mn.setAttribute("aria-valuemin",String(kn)):Mn.removeAttribute("aria-valuemin"),Mn.setAttribute("aria-valuenow",de.currentValue||de.currentValue===0?String(de.currentValue):""),Mn.setAttribute("aria-disabled",String(Fe.value)),!isNumber$4(Dn)&&Dn!=null){let Ln=Number(Dn);Number.isNaN(Ln)&&(Ln=null),V(UPDATE_MODEL_EVENT,Ln)}}),onUpdated(()=>{var Pn,kn;const Nn=(Pn=ue.value)==null?void 0:Pn.input;Nn==null||Nn.setAttribute("aria-valuenow",`${(kn=de.currentValue)!=null?kn:""}`)}),r({focus:Sn,blur:wn}),(Pn,kn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b(),unref(le).m(unref(Ve)),unref(le).is("disabled",unref(Fe)),unref(le).is("without-controls",!Pn.controls),unref(le).is("controls-right",unref(Ie))]),onDragstart:kn[1]||(kn[1]=withModifiers(()=>{},["prevent"]))},[Pn.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref(ie)("el.inputNumber.decrease"),class:normalizeClass([unref(le).e("decrease"),unref(le).is("disabled",unref(he))]),onKeydown:withKeys(hn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Ie)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})],42,_hoisted_1$u)),[[unref(vRepeatClick),hn]]):createCommentVNode("v-if",!0),Pn.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref(ie)("el.inputNumber.increase"),class:normalizeClass([unref(le).e("increase"),unref(le).is("disabled",unref(_e))]),onKeydown:withKeys(Lt,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Ie)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})],42,_hoisted_2$k)),[[unref(vRepeatClick),Lt]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:Pn.id,ref_key:"input",ref:ue,type:"number",step:Pn.step,"model-value":unref(Ue),placeholder:Pn.placeholder,readonly:Pn.readonly,disabled:unref(Fe),size:unref(Ve),max:Pn.max,min:Pn.min,name:Pn.name,label:Pn.label,"validate-event":!1,onWheel:kn[0]||(kn[0]=withModifiers(()=>{},["prevent"])),onKeydown:[withKeys(withModifiers(Lt,["prevent"]),["up"]),withKeys(withModifiers(hn,["prevent"]),["down"])],onBlur:xn,onFocus:En,onInput:bn,onChange:Cn},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var InputNumber=_export_sfc$1(_sfc_main$_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const ElInputNumber=withInstall(InputNumber),linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:iconPropType}}),linkEmits={click:t=>t instanceof MouseEvent},_hoisted_1$t=["href"],__default__$G=defineComponent({name:"ElLink"}),_sfc_main$Z=defineComponent({...__default__$G,props:linkProps,emits:linkEmits,setup(t,{emit:r}){const V=t,oe=useNamespace("link"),ie=computed(()=>[oe.b(),oe.m(V.type),oe.is("disabled",V.disabled),oe.is("underline",V.underline&&!V.disabled)]);function le(ue){V.disabled||r("click",ue)}return(ue,de)=>(openBlock(),createElementBlock("a",{class:normalizeClass(unref(ie)),href:ue.disabled||!ue.href?void 0:ue.href,onClick:le},[ue.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ue.icon)))]),_:1})):createCommentVNode("v-if",!0),ue.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(oe).e("inner"))},[renderSlot(ue.$slots,"default")],2)):createCommentVNode("v-if",!0),ue.$slots.icon?renderSlot(ue.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$t))}});var Link=_export_sfc$1(_sfc_main$Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);let SubMenu$1=class{constructor(r,V){this.parent=r,this.domNode=V,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(r){r===this.subMenuItems.length?r=0:r<0&&(r=this.subMenuItems.length-1),this.subMenuItems[r].focus(),this.subIndex=r}addListeners(){const r=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,V=>{V.addEventListener("keydown",oe=>{let ie=!1;switch(oe.code){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),ie=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),ie=!0;break}case EVENT_CODE.tab:{triggerEvent(r,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{ie=!0,oe.currentTarget.click();break}}return ie&&(oe.preventDefault(),oe.stopPropagation()),!1})})}},MenuItem$1=class{constructor(r,V){this.domNode=r,this.submenu=null,this.submenu=null,this.init(V)}init(r){this.domNode.setAttribute("tabindex","0");const V=this.domNode.querySelector(`.${r}-menu`);V&&(this.submenu=new SubMenu$1(this,V)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",r=>{let V=!1;switch(r.code){case EVENT_CODE.down:{triggerEvent(r.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),V=!0;break}case EVENT_CODE.up:{triggerEvent(r.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),V=!0;break}case EVENT_CODE.tab:{triggerEvent(r.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{V=!0,r.currentTarget.click();break}}V&&r.preventDefault()})}},Menu$1=class{constructor(r,V){this.domNode=r,this.init(V)}init(r){const V=this.domNode.childNodes;Array.from(V).forEach(oe=>{oe.nodeType===1&&new MenuItem$1(oe,r)})}};const _sfc_main$Y=defineComponent({name:"ElMenuCollapseTransition",setup(){const t=useNamespace("menu");return{listeners:{onBeforeEnter:V=>V.style.opacity="0.2",onEnter(V,oe){addClass(V,`${t.namespace.value}-opacity-transition`),V.style.opacity="1",oe()},onAfterEnter(V){removeClass(V,`${t.namespace.value}-opacity-transition`),V.style.opacity=""},onBeforeLeave(V){V.dataset||(V.dataset={}),hasClass(V,t.m("collapse"))?(removeClass(V,t.m("collapse")),V.dataset.oldOverflow=V.style.overflow,V.dataset.scrollWidth=V.clientWidth.toString(),addClass(V,t.m("collapse"))):(addClass(V,t.m("collapse")),V.dataset.oldOverflow=V.style.overflow,V.dataset.scrollWidth=V.clientWidth.toString(),removeClass(V,t.m("collapse"))),V.style.width=`${V.scrollWidth}px`,V.style.overflow="hidden"},onLeave(V){addClass(V,"horizontal-collapse-transition"),V.style.width=`${V.dataset.scrollWidth}px`}}}}});function _sfc_render$f(t,r,V,oe,ie,le){return openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},t.listeners),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16)}var ElMenuCollapseTransition=_export_sfc$1(_sfc_main$Y,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu(t,r){const V=computed(()=>{let ie=t.parent;const le=[r.value];for(;ie.type.name!=="ElMenu";)ie.props.index&&le.unshift(ie.props.index),ie=ie.parent;return le});return{parentMenu:computed(()=>{let ie=t.parent;for(;ie&&!["ElMenu","ElSubMenu"].includes(ie.type.name);)ie=ie.parent;return ie}),indexPath:V}}function useMenuColor(t){return computed(()=>{const V=t.backgroundColor;return V?new TinyColor(V).shade(20).toString():""})}const useMenuCssVar=(t,r)=>{const V=useNamespace("menu");return computed(()=>V.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":useMenuColor(t).value||"","active-color":t.activeTextColor||"",level:`${r}`}))},subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:iconPropType},expandOpenIcon:{type:iconPropType},collapseCloseIcon:{type:iconPropType},collapseOpenIcon:{type:iconPropType}}),COMPONENT_NAME$c="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$c,props:subMenuProps,setup(t,{slots:r,expose:V}){useDeprecated({from:"popper-append-to-body",replacement:"teleported",scope:COMPONENT_NAME$c,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},computed(()=>t.popperAppendToBody!==void 0));const oe=getCurrentInstance(),{indexPath:ie,parentMenu:le}=useMenu(oe,computed(()=>t.index)),ue=useNamespace("menu"),de=useNamespace("sub-menu"),pe=inject("rootMenu");pe||throwError$1(COMPONENT_NAME$c,"can not inject root menu");const he=inject(`subMenu:${le.value.uid}`);he||throwError$1(COMPONENT_NAME$c,"can not inject sub menu");const _e=ref({}),$e=ref({});let Ie;const Ve=ref(!1),Fe=ref(),Ue=ref(null),qe=computed(()=>En.value==="horizontal"&&At.value?"bottom-start":"right-start"),Et=computed(()=>En.value==="horizontal"&&At.value||En.value==="vertical"&&!pe.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?vn.value?t.expandOpenIcon:t.expandCloseIcon:arrow_down_default:t.collapseCloseIcon&&t.collapseOpenIcon?vn.value?t.collapseOpenIcon:t.collapseCloseIcon:arrow_right_default),At=computed(()=>he.level===0),Lt=computed(()=>{var Vn;const Wn=(Vn=t.teleported)!=null?Vn:t.popperAppendToBody;return Wn===void 0?At.value:Wn}),hn=computed(()=>pe.props.collapse?`${ue.namespace.value}-zoom-in-left`:`${ue.namespace.value}-zoom-in-top`),_n=computed(()=>En.value==="horizontal"&&At.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),vn=computed(()=>pe.openedMenus.includes(t.index)),bn=computed(()=>{let Vn=!1;return Object.values(_e.value).forEach(Wn=>{Wn.active&&(Vn=!0)}),Object.values($e.value).forEach(Wn=>{Wn.active&&(Vn=!0)}),Vn}),Cn=computed(()=>pe.props.backgroundColor||""),Sn=computed(()=>pe.props.activeTextColor||""),wn=computed(()=>pe.props.textColor||""),En=computed(()=>pe.props.mode),xn=reactive({index:t.index,indexPath:ie,active:bn}),Pn=useMenuCssVar(pe.props,he.level+1),kn=computed(()=>En.value!=="horizontal"?{color:wn.value}:{borderBottomColor:bn.value?pe.props.activeTextColor?Sn.value:"":"transparent",color:bn.value?Sn.value:wn.value}),Nn=()=>{var Vn,Wn,Fn;return(Fn=(Wn=(Vn=Ue.value)==null?void 0:Vn.popperRef)==null?void 0:Wn.popperInstanceRef)==null?void 0:Fn.destroy()},Dn=Vn=>{Vn||Nn()},Mn=()=>{pe.props.menuTrigger==="hover"&&pe.props.mode==="horizontal"||pe.props.collapse&&pe.props.mode==="vertical"||t.disabled||pe.handleSubMenuClick({index:t.index,indexPath:ie.value,active:bn.value})},Ln=(Vn,Wn=t.showTimeout)=>{var Fn;Vn.type!=="focus"&&(pe.props.menuTrigger==="click"&&pe.props.mode==="horizontal"||!pe.props.collapse&&pe.props.mode==="vertical"||t.disabled||(he.mouseInChild.value=!0,Ie==null||Ie(),{stop:Ie}=useTimeoutFn$1(()=>{pe.openMenu(t.index,ie.value)},Wn),Lt.value&&((Fn=le.value.vnode.el)==null||Fn.dispatchEvent(new MouseEvent("mouseenter")))))},An=(Vn=!1)=>{var Wn,Fn;pe.props.menuTrigger==="click"&&pe.props.mode==="horizontal"||!pe.props.collapse&&pe.props.mode==="vertical"||(Ie==null||Ie(),he.mouseInChild.value=!1,{stop:Ie}=useTimeoutFn$1(()=>!Ve.value&&pe.closeMenu(t.index,ie.value),t.hideTimeout),Lt.value&&Vn&&((Wn=oe.parent)==null?void 0:Wn.type.name)==="ElSubMenu"&&((Fn=he.handleMouseleave)==null||Fn.call(he,!0)))};watch(()=>pe.props.collapse,Vn=>Dn(!!Vn));{const Vn=Fn=>{$e.value[Fn.index]=Fn},Wn=Fn=>{delete $e.value[Fn.index]};provide(`subMenu:${oe.uid}`,{addSubMenu:Vn,removeSubMenu:Wn,handleMouseleave:An,mouseInChild:Ve,level:he.level+1})}return V({opened:vn}),onMounted(()=>{pe.addSubMenu(xn),he.addSubMenu(xn)}),onBeforeUnmount(()=>{he.removeSubMenu(xn),pe.removeSubMenu(xn)}),()=>{var Vn;const Wn=[(Vn=r.title)==null?void 0:Vn.call(r),h$2(ElIcon,{class:de.e("icon-arrow"),style:{transform:vn.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&pe.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$6(Et.value)?h$2(oe.appContext.components[Et.value]):h$2(Et.value)})],Fn=pe.isMenuPopup?h$2(ElTooltip,{ref:Ue,visible:vn.value,effect:"light",pure:!0,offset:t.popperOffset,showArrow:!1,persistent:!0,popperClass:t.popperClass,placement:qe.value,teleported:Lt.value,fallbackPlacements:_n.value,transition:hn.value,gpuAcceleration:!1},{content:()=>{var Yn;return h$2("div",{class:[ue.m(En.value),ue.m("popup-container"),t.popperClass],onMouseenter:tr=>Ln(tr,100),onMouseleave:()=>An(!0),onFocus:tr=>Ln(tr,100)},[h$2("ul",{class:[ue.b(),ue.m("popup"),ue.m(`popup-${qe.value}`)],style:Pn.value},[(Yn=r.default)==null?void 0:Yn.call(r)])])},default:()=>h$2("div",{class:de.e("title"),style:[kn.value,{backgroundColor:Cn.value}],onClick:Mn},Wn)}):h$2(Fragment,{},[h$2("div",{class:de.e("title"),style:[kn.value,{backgroundColor:Cn.value}],ref:Fe,onClick:Mn},Wn),h$2(_CollapseTransition,{},{default:()=>{var Yn;return withDirectives(h$2("ul",{role:"menu",class:[ue.b(),ue.m("inline")],style:Pn.value},[(Yn=r.default)==null?void 0:Yn.call(r)]),[[vShow,vn.value]])}})]);return h$2("li",{class:[de.b(),de.is("active",bn.value),de.is("opened",vn.value),de.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:vn.value,onMouseenter:Ln,onMouseleave:()=>An(!0),onFocus:Ln},[Fn])}}});const menuProps=buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:definePropType(Array),default:()=>mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),checkIndexPath=t=>Array.isArray(t)&&t.every(r=>isString$6(r)),menuEmits={close:(t,r)=>isString$6(t)&&checkIndexPath(r),open:(t,r)=>isString$6(t)&&checkIndexPath(r),select:(t,r,V,oe)=>isString$6(t)&&checkIndexPath(r)&&isObject$9(V)&&(oe===void 0||oe instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup(t,{emit:r,slots:V,expose:oe}){const ie=getCurrentInstance(),le=ie.appContext.config.globalProperties.$router,ue=ref(),de=useNamespace("menu"),pe=useNamespace("sub-menu"),he=ref(-1),_e=ref(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),$e=ref(t.defaultActive),Ie=ref({}),Ve=ref({}),Fe=computed(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),Ue=()=>{const En=$e.value&&Ie.value[$e.value];if(!En||t.mode==="horizontal"||t.collapse)return;En.indexPath.forEach(Pn=>{const kn=Ve.value[Pn];kn&&qe(Pn,kn.indexPath)})},qe=(En,xn)=>{_e.value.includes(En)||(t.uniqueOpened&&(_e.value=_e.value.filter(Pn=>xn.includes(Pn))),_e.value.push(En),r("open",En,xn))},Et=En=>{const xn=_e.value.indexOf(En);xn!==-1&&_e.value.splice(xn,1)},At=(En,xn)=>{Et(En),r("close",En,xn)},Lt=({index:En,indexPath:xn})=>{_e.value.includes(En)?At(En,xn):qe(En,xn)},hn=En=>{(t.mode==="horizontal"||t.collapse)&&(_e.value=[]);const{index:xn,indexPath:Pn}=En;if(!(isNil(xn)||isNil(Pn)))if(t.router&&le){const kn=En.route||xn,Nn=le.push(kn).then(Dn=>(Dn||($e.value=xn),Dn));r("select",xn,Pn,{index:xn,indexPath:Pn,route:kn},Nn)}else $e.value=xn,r("select",xn,Pn,{index:xn,indexPath:Pn})},_n=En=>{const xn=Ie.value,Pn=xn[En]||$e.value&&xn[$e.value]||xn[t.defaultActive];Pn?$e.value=Pn.index:$e.value=En},vn=()=>{var En,xn;if(!ue.value)return-1;const Pn=Array.from((xn=(En=ue.value)==null?void 0:En.childNodes)!=null?xn:[]).filter(Vn=>Vn.nodeName!=="#comment"&&(Vn.nodeName!=="#text"||Vn.nodeValue)),kn=64,Nn=Number.parseInt(getComputedStyle(ue.value).paddingLeft,10),Dn=Number.parseInt(getComputedStyle(ue.value).paddingRight,10),Mn=ue.value.clientWidth-Nn-Dn;let Ln=0,An=0;return Pn.forEach((Vn,Wn)=>{Ln+=Vn.offsetWidth||0,Ln<=Mn-kn&&(An=Wn+1)}),An===Pn.length?-1:An},bn=(En,xn=33.34)=>{let Pn;return()=>{Pn&&clearTimeout(Pn),Pn=setTimeout(()=>{En()},xn)}};let Cn=!0;const Sn=()=>{const En=()=>{he.value=-1,nextTick(()=>{he.value=vn()})};Cn?En():bn(En)(),Cn=!1};watch(()=>t.defaultActive,En=>{Ie.value[En]||($e.value=""),_n(En)}),watch(()=>t.collapse,En=>{En&&(_e.value=[])}),watch(Ie.value,Ue);let wn;watchEffect(()=>{t.mode==="horizontal"&&t.ellipsis?wn=useResizeObserver$1(ue,Sn).stop:wn==null||wn()});{const En=Nn=>{Ve.value[Nn.index]=Nn},xn=Nn=>{delete Ve.value[Nn.index]};provide("rootMenu",reactive({props:t,openedMenus:_e,items:Ie,subMenus:Ve,activeIndex:$e,isMenuPopup:Fe,addMenuItem:Nn=>{Ie.value[Nn.index]=Nn},removeMenuItem:Nn=>{delete Ie.value[Nn.index]},addSubMenu:En,removeSubMenu:xn,openMenu:qe,closeMenu:At,handleMenuItemClick:hn,handleSubMenuClick:Lt})),provide(`subMenu:${ie.uid}`,{addSubMenu:En,removeSubMenu:xn,mouseInChild:ref(!1),level:0})}return onMounted(()=>{t.mode==="horizontal"&&new Menu$1(ie.vnode.el,de.namespace.value)}),oe({open:xn=>{const{indexPath:Pn}=Ve.value[xn];Pn.forEach(kn=>qe(kn,Pn))},close:Et,handleResize:Sn}),()=>{var En,xn;let Pn=(xn=(En=V.default)==null?void 0:En.call(V))!=null?xn:[];const kn=[];if(t.mode==="horizontal"&&ue.value){const Mn=flattedChildren(Pn),Ln=he.value===-1?Mn:Mn.slice(0,he.value),An=he.value===-1?[]:Mn.slice(he.value);An!=null&&An.length&&t.ellipsis&&(Pn=Ln,kn.push(h$2(SubMenu,{index:"sub-menu-more",class:pe.e("hide-arrow")},{title:()=>h$2(ElIcon,{class:pe.e("icon-more")},{default:()=>h$2(more_default)}),default:()=>An})))}const Nn=useMenuCssVar(t,0),Dn=h$2("ul",{key:String(t.collapse),role:"menubar",ref:ue,style:Nn.value,class:{[de.b()]:!0,[de.m(t.mode)]:!0,[de.m("collapse")]:t.collapse}},[...Pn,...kn]);return t.collapseTransition&&t.mode==="vertical"?h$2(ElMenuCollapseTransition,()=>Dn):Dn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:t=>isString$6(t.index)&&Array.isArray(t.indexPath)},COMPONENT_NAME$b="ElMenuItem",_sfc_main$X=defineComponent({name:COMPONENT_NAME$b,components:{ElTooltip},props:menuItemProps,emits:menuItemEmits,setup(t,{emit:r}){const V=getCurrentInstance(),oe=inject("rootMenu"),ie=useNamespace("menu"),le=useNamespace("menu-item");oe||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const{parentMenu:ue,indexPath:de}=useMenu(V,toRef(t,"index")),pe=inject(`subMenu:${ue.value.uid}`);pe||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const he=computed(()=>t.index===oe.activeIndex),_e=reactive({index:t.index,indexPath:de,active:he}),$e=()=>{t.disabled||(oe.handleMenuItemClick({index:t.index,indexPath:de.value,route:t.route}),r("click",_e))};return onMounted(()=>{pe.addSubMenu(_e),oe.addMenuItem(_e)}),onBeforeUnmount(()=>{pe.removeSubMenu(_e),oe.removeMenuItem(_e)}),{parentMenu:ue,rootMenu:oe,active:he,nsMenu:ie,nsMenuItem:le,handleClick:$e}}});function _sfc_render$e(t,r,V,oe,ie,le){const ue=resolveComponent("el-tooltip");return openBlock(),createElementBlock("li",{class:normalizeClass([t.nsMenuItem.b(),t.nsMenuItem.is("active",t.active),t.nsMenuItem.is("disabled",t.disabled)]),role:"menuitem",tabindex:"-1",onClick:r[0]||(r[0]=(...de)=>t.handleClick&&t.handleClick(...de))},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(openBlock(),createBlock(ue,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:withCtx(()=>[renderSlot(t.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(t.nsMenu.be("tooltip","trigger"))},[renderSlot(t.$slots,"default")],2)]),_:3},8,["effect"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot(t.$slots,"default"),renderSlot(t.$slots,"title")],64))],2)}var MenuItem=_export_sfc$1(_sfc_main$X,[["render",_sfc_render$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const menuItemGroupProps={title:String},COMPONENT_NAME$a="ElMenuItemGroup",_sfc_main$W=defineComponent({name:COMPONENT_NAME$a,props:menuItemGroupProps,setup(){return{ns:useNamespace("menu-item-group")}}});function _sfc_render$d(t,r,V,oe,ie,le){return openBlock(),createElementBlock("li",{class:normalizeClass(t.ns.b())},[createBaseVNode("div",{class:normalizeClass(t.ns.e("title"))},[t.$slots.title?renderSlot(t.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(t.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot(t.$slots,"default")])],2)}var MenuItemGroup=_export_sfc$1(_sfc_main$W,[["render",_sfc_render$d],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const ElMenu=withInstall(Menu,{MenuItem,MenuItemGroup,SubMenu}),ElMenuItem=withNoopInstall(MenuItem),ElMenuItemGroup=withNoopInstall(MenuItemGroup),ElSubMenu=withNoopInstall(SubMenu),pageHeaderProps=buildProps({icon:{type:iconPropType,default:()=>back_default},title:String,content:{type:String,default:""}}),pageHeaderEmits={back:()=>!0},_hoisted_1$s=["aria-label"],__default__$F=defineComponent({name:"ElPageHeader"}),_sfc_main$V=defineComponent({...__default__$F,props:pageHeaderProps,emits:pageHeaderEmits,setup(t,{emit:r}){const V=useSlots(),{t:oe}=useLocale(),ie=useNamespace("page-header"),le=computed(()=>[ie.b(),{[ie.m("has-breadcrumb")]:!!V.breadcrumb,[ie.m("has-extra")]:!!V.extra,[ie.is("contentful")]:!!V.default}]);function ue(){r("back")}return(de,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le))},[de.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("breadcrumb"))},[renderSlot(de.$slots,"breadcrumb")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("left"))},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("back")),role:"button",tabindex:"0",onClick:ue},[de.icon||de.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":de.title||unref(oe)("el.pageHeader.title"),class:normalizeClass(unref(ie).e("icon"))},[renderSlot(de.$slots,"icon",{},()=>[de.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$s)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("title"))},[renderSlot(de.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(de.title||unref(oe)("el.pageHeader.title")),1)])],2)],2),createVNode(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content"))},[renderSlot(de.$slots,"content",{},()=>[createTextVNode(toDisplayString$1(de.content),1)])],2)],2),de.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("extra"))},[renderSlot(de.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),de.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("main"))},[renderSlot(de.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var PageHeader=_export_sfc$1(_sfc_main$V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const ElPageHeader=withInstall(PageHeader),elPaginationKey=Symbol("elPaginationKey"),paginationPrevProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:iconPropType}}),paginationPrevEmits={click:t=>t instanceof MouseEvent},_hoisted_1$r=["disabled","aria-label","aria-disabled"],_hoisted_2$j={key:0},__default__$E=defineComponent({name:"ElPaginationPrev"}),_sfc_main$U=defineComponent({...__default__$E,props:paginationPrevProps,emits:paginationPrevEmits,setup(t){const r=t,{t:V}=useLocale(),oe=computed(()=>r.disabled||r.currentPage<=1);return(ie,le)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(oe),"aria-label":ie.prevText||unref(V)("el.pagination.prev"),"aria-disabled":unref(oe),onClick:le[0]||(le[0]=ue=>ie.$emit("click",ue))},[ie.prevText?(openBlock(),createElementBlock("span",_hoisted_2$j,toDisplayString$1(ie.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ie.prevIcon)))]),_:1}))],8,_hoisted_1$r))}});var Prev=_export_sfc$1(_sfc_main$U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const paginationNextProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:iconPropType}}),_hoisted_1$q=["disabled","aria-label","aria-disabled"],_hoisted_2$i={key:0},__default__$D=defineComponent({name:"ElPaginationNext"}),_sfc_main$T=defineComponent({...__default__$D,props:paginationNextProps,emits:["click"],setup(t){const r=t,{t:V}=useLocale(),oe=computed(()=>r.disabled||r.currentPage===r.pageCount||r.pageCount===0);return(ie,le)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(oe),"aria-label":ie.nextText||unref(V)("el.pagination.next"),"aria-disabled":unref(oe),onClick:le[0]||(le[0]=ue=>ie.$emit("click",ue))},[ie.nextText?(openBlock(),createElementBlock("span",_hoisted_2$i,toDisplayString$1(ie.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ie.nextIcon)))]),_:1}))],8,_hoisted_1$q))}});var Next=_export_sfc$1(_sfc_main$T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const selectGroupKey=Symbol("ElSelectGroup"),selectKey=Symbol("ElSelect");function useOption$1(t,r){const V=inject(selectKey),oe=inject(selectGroupKey,{disabled:!1}),ie=computed(()=>Object.prototype.toString.call(t.value).toLowerCase()==="[object object]"),le=computed(()=>V.props.multiple?$e(V.props.modelValue,t.value):Ie(t.value,V.props.modelValue)),ue=computed(()=>{if(V.props.multiple){const Ue=V.props.modelValue||[];return!le.value&&Ue.length>=V.props.multipleLimit&&V.props.multipleLimit>0}else return!1}),de=computed(()=>t.label||(ie.value?"":t.value)),pe=computed(()=>t.value||t.label||""),he=computed(()=>t.disabled||r.groupDisabled||ue.value),_e=getCurrentInstance(),$e=(Ue=[],qe)=>{if(ie.value){const Et=V.props.valueKey;return Ue&&Ue.some(At=>toRaw(get$1(At,Et))===get$1(qe,Et))}else return Ue&&Ue.includes(qe)},Ie=(Ue,qe)=>{if(ie.value){const{valueKey:Et}=V.props;return get$1(Ue,Et)===get$1(qe,Et)}else return Ue===qe},Ve=()=>{!t.disabled&&!oe.disabled&&(V.hoverIndex=V.optionsArray.indexOf(_e.proxy))};watch(()=>de.value,()=>{!t.created&&!V.props.remote&&V.setSelected()}),watch(()=>t.value,(Ue,qe)=>{const{remote:Et,valueKey:At}=V.props;if(Object.is(Ue,qe)||(V.onOptionDestroy(qe,_e.proxy),V.onOptionCreate(_e.proxy)),!t.created&&!Et){if(At&&typeof Ue=="object"&&typeof qe=="object"&&Ue[At]===qe[At])return;V.setSelected()}}),watch(()=>oe.disabled,()=>{r.groupDisabled=oe.disabled},{immediate:!0});const{queryChange:Fe}=toRaw(V);return watch(Fe,Ue=>{const{query:qe}=unref(Ue),Et=new RegExp(escapeStringRegexp(qe),"i");r.visible=Et.test(de.value)||t.created,r.visible||V.filteredOptionsCount--},{immediate:!0}),{select:V,currentLabel:de,currentValue:pe,itemSelected:le,isDisabled:he,hoverItem:Ve}}const _sfc_main$S=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const r=useNamespace("select"),V=computed(()=>[r.be("dropdown","item"),r.is("disabled",unref(ue)),{selected:unref(le),hover:unref(_e)}]),oe=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:ie,itemSelected:le,isDisabled:ue,select:de,hoverItem:pe}=useOption$1(t,oe),{visible:he,hover:_e}=toRefs(oe),$e=getCurrentInstance().proxy;de.onOptionCreate($e),onBeforeUnmount(()=>{const Ve=$e.value,{selected:Fe}=de,qe=(de.props.multiple?Fe:[Fe]).some(Et=>Et.value===$e.value);nextTick(()=>{de.cachedOptions.get(Ve)===$e&&!qe&&de.cachedOptions.delete(Ve)}),de.onOptionDestroy(Ve,$e)});function Ie(){t.disabled!==!0&&oe.groupDisabled!==!0&&de.handleOptionSelect($e)}return{ns:r,containerKls:V,currentLabel:ie,itemSelected:le,isDisabled:ue,select:de,hoverItem:pe,visible:he,hover:_e,selectOptionClick:Ie,states:oe}}});function _sfc_render$c(t,r,V,oe,ie,le){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass(t.containerKls),onMouseenter:r[0]||(r[0]=(...ue)=>t.hoverItem&&t.hoverItem(...ue)),onClick:r[1]||(r[1]=withModifiers((...ue)=>t.selectOptionClick&&t.selectOptionClick(...ue),["stop"]))},[renderSlot(t.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString$1(t.currentLabel),1)])],34)),[[vShow,t.visible]])}var Option=_export_sfc$1(_sfc_main$S,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _sfc_main$R=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=inject(selectKey),r=useNamespace("select"),V=computed(()=>t.props.popperClass),oe=computed(()=>t.props.multiple),ie=computed(()=>t.props.fitInputWidth),le=ref("");function ue(){var de;le.value=`${(de=t.selectWrapper)==null?void 0:de.offsetWidth}px`}return onMounted(()=>{ue(),useResizeObserver$1(t.selectWrapper,ue)}),{ns:r,minWidth:le,popperClass:V,isMultiple:oe,isFitInputWidth:ie}}});function _sfc_render$b(t,r,V,oe,ie,le){return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:normalizeStyle$1({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[renderSlot(t.$slots,"default")],6)}var ElSelectMenu$1=_export_sfc$1(_sfc_main$R,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function useSelectStates(t){const{t:r}=useLocale();return reactive({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:t.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:r("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const useSelect$2=(t,r,V)=>{const{t:oe}=useLocale(),ie=useNamespace("select");useDeprecated({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},computed(()=>t.suffixTransition===!1));const le=ref(null),ue=ref(null),de=ref(null),pe=ref(null),he=ref(null),_e=ref(null),$e=ref(null),Ie=ref(null),Ve=ref(-1),Fe=shallowRef({query:""}),Ue=shallowRef(""),qe=ref([]);let Et=0;const{form:At,formItem:Lt}=useFormItem(),hn=computed(()=>!t.filterable||t.multiple||!r.visible),_n=computed(()=>t.disabled||(At==null?void 0:At.disabled)),vn=computed(()=>{const _r=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:t.modelValue!==void 0&&t.modelValue!==null&&t.modelValue!=="";return t.clearable&&!_n.value&&r.inputHovering&&_r}),bn=computed(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),Cn=computed(()=>ie.is("reverse",bn.value&&r.visible&&t.suffixTransition)),Sn=computed(()=>(At==null?void 0:At.statusIcon)&&(Lt==null?void 0:Lt.validateState)&&ValidateComponentsMap[Lt==null?void 0:Lt.validateState]),wn=computed(()=>t.remote?300:0),En=computed(()=>t.loading?t.loadingText||oe("el.select.loading"):t.remote&&r.query===""&&r.options.size===0?!1:t.filterable&&r.query&&r.options.size>0&&r.filteredOptionsCount===0?t.noMatchText||oe("el.select.noMatch"):r.options.size===0?t.noDataText||oe("el.select.noData"):null),xn=computed(()=>{const _r=Array.from(r.options.values()),Pr=[];return qe.value.forEach(sr=>{const Ir=_r.findIndex(Hr=>Hr.currentLabel===sr);Ir>-1&&Pr.push(_r[Ir])}),Pr.length?Pr:_r}),Pn=computed(()=>Array.from(r.cachedOptions.values())),kn=computed(()=>{const _r=xn.value.filter(Pr=>!Pr.created).some(Pr=>Pr.currentLabel===r.query);return t.filterable&&t.allowCreate&&r.query!==""&&!_r}),Nn=useFormSize(),Dn=computed(()=>["small"].includes(Nn.value)?"small":"default"),Mn=computed({get(){return r.visible&&En.value!==!1},set(_r){r.visible=_r}});watch([()=>_n.value,()=>Nn.value,()=>At==null?void 0:At.size],()=>{nextTick(()=>{Ln()})}),watch(()=>t.placeholder,_r=>{r.cachedPlaceHolder=r.currentPlaceholder=_r,t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(r.currentPlaceholder="")}),watch(()=>t.modelValue,(_r,Pr)=>{t.multiple&&(Ln(),_r&&_r.length>0||ue.value&&r.query!==""?r.currentPlaceholder="":r.currentPlaceholder=r.cachedPlaceHolder,t.filterable&&!t.reserveKeyword&&(r.query="",An(r.query))),Fn(),t.filterable&&!t.multiple&&(r.inputLength=20),!isEqual$1(_r,Pr)&&t.validateEvent&&(Lt==null||Lt.validate("change").catch(sr=>void 0))},{flush:"post",deep:!0}),watch(()=>r.visible,_r=>{var Pr,sr,Ir,Hr,Nr;_r?((sr=(Pr=pe.value)==null?void 0:Pr.updatePopper)==null||sr.call(Pr),t.filterable&&(r.filteredOptionsCount=r.optionsCount,r.query=t.remote?"":r.selectedLabel,(Hr=(Ir=de.value)==null?void 0:Ir.focus)==null||Hr.call(Ir),t.multiple?(Nr=ue.value)==null||Nr.focus():r.selectedLabel&&(r.currentPlaceholder=`${r.selectedLabel}`,r.selectedLabel=""),An(r.query),!t.multiple&&!t.remote&&(Fe.value.query="",triggerRef(Fe),triggerRef(Ue)))):(t.filterable&&(isFunction$5(t.filterMethod)&&t.filterMethod(""),isFunction$5(t.remoteMethod)&&t.remoteMethod("")),r.query="",r.previousQuery=null,r.selectedLabel="",r.inputLength=20,r.menuVisibleOnFocus=!1,tr(),nextTick(()=>{ue.value&&ue.value.value===""&&r.selected.length===0&&(r.currentPlaceholder=r.cachedPlaceHolder)}),t.multiple||(r.selected&&(t.filterable&&t.allowCreate&&r.createdSelected&&r.createdLabel?r.selectedLabel=r.createdLabel:r.selectedLabel=r.selected.currentLabel,t.filterable&&(r.query=r.selectedLabel)),t.filterable&&(r.currentPlaceholder=r.cachedPlaceHolder))),V.emit("visible-change",_r)}),watch(()=>r.options.entries(),()=>{var _r,Pr,sr;if(!isClient$1)return;(Pr=(_r=pe.value)==null?void 0:_r.updatePopper)==null||Pr.call(_r),t.multiple&&Ln();const Ir=((sr=$e.value)==null?void 0:sr.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!isUndefined$1(t.modelValue)||!Array.from(Ir).includes(document.activeElement))&&Fn(),t.defaultFirstOption&&(t.filterable||t.remote)&&r.filteredOptionsCount&&Wn()},{flush:"post"}),watch(()=>r.hoverIndex,_r=>{isNumber$4(_r)&&_r>-1?Ve.value=xn.value[_r]||{}:Ve.value={},xn.value.forEach(Pr=>{Pr.hover=Ve.value===Pr})});const Ln=()=>{nextTick(()=>{var _r,Pr;if(!le.value)return;const sr=le.value.$el.querySelector("input");Et=Et||(sr.clientHeight>0?sr.clientHeight+2:0);const Ir=_e.value,Hr=getComponentSize(Nn.value||(At==null?void 0:At.size)),Nr=Nn.value||Hr===Et||Et<=0?Hr:Et;!(sr.offsetParent===null)&&(sr.style.height=`${(r.selected.length===0?Nr:Math.max(Ir?Ir.clientHeight+(Ir.clientHeight>Nr?6:0):0,Nr))-2}px`),r.visible&&En.value!==!1&&((Pr=(_r=pe.value)==null?void 0:_r.updatePopper)==null||Pr.call(_r))})},An=async _r=>{if(!(r.previousQuery===_r||r.isOnComposition)){if(r.previousQuery===null&&(isFunction$5(t.filterMethod)||isFunction$5(t.remoteMethod))){r.previousQuery=_r;return}r.previousQuery=_r,nextTick(()=>{var Pr,sr;r.visible&&((sr=(Pr=pe.value)==null?void 0:Pr.updatePopper)==null||sr.call(Pr))}),r.hoverIndex=-1,t.multiple&&t.filterable&&nextTick(()=>{if(!_n.value){const Pr=ue.value.value.length*15+20;r.inputLength=t.collapseTags?Math.min(50,Pr):Pr,Vn()}Ln()}),t.remote&&isFunction$5(t.remoteMethod)?(r.hoverIndex=-1,t.remoteMethod(_r)):isFunction$5(t.filterMethod)?(t.filterMethod(_r),triggerRef(Ue)):(r.filteredOptionsCount=r.optionsCount,Fe.value.query=_r,triggerRef(Fe),triggerRef(Ue)),t.defaultFirstOption&&(t.filterable||t.remote)&&r.filteredOptionsCount&&(await nextTick(),Wn())}},Vn=()=>{r.currentPlaceholder!==""&&(r.currentPlaceholder=ue.value.value?"":r.cachedPlaceHolder)},Wn=()=>{const _r=xn.value.filter(Ir=>Ir.visible&&!Ir.disabled&&!Ir.states.groupDisabled),Pr=_r.find(Ir=>Ir.created),sr=_r[0];r.hoverIndex=Er(xn.value,Pr||sr)},Fn=()=>{var _r;if(t.multiple)r.selectedLabel="";else{const sr=Yn(t.modelValue);(_r=sr.props)!=null&&_r.created?(r.createdLabel=sr.props.value,r.createdSelected=!0):r.createdSelected=!1,r.selectedLabel=sr.currentLabel,r.selected=sr,t.filterable&&(r.query=r.selectedLabel);return}const Pr=[];Array.isArray(t.modelValue)&&t.modelValue.forEach(sr=>{Pr.push(Yn(sr))}),r.selected=Pr,nextTick(()=>{Ln()})},Yn=_r=>{let Pr;const sr=toRawType(_r).toLowerCase()==="object",Ir=toRawType(_r).toLowerCase()==="null",Hr=toRawType(_r).toLowerCase()==="undefined";for(let Zr=r.cachedOptions.size-1;Zr>=0;Zr--){const Qr=Pn.value[Zr];if(sr?get$1(Qr.value,t.valueKey)===get$1(_r,t.valueKey):Qr.value===_r){Pr={value:_r,currentLabel:Qr.currentLabel,isDisabled:Qr.isDisabled};break}}if(Pr)return Pr;const Nr=sr?_r.label:!Ir&&!Hr?_r:"",Gr={value:_r,currentLabel:Nr};return t.multiple&&(Gr.hitState=!1),Gr},tr=()=>{setTimeout(()=>{const _r=t.valueKey;t.multiple?r.selected.length>0?r.hoverIndex=Math.min.apply(null,r.selected.map(Pr=>xn.value.findIndex(sr=>get$1(sr,_r)===get$1(Pr,_r)))):r.hoverIndex=-1:r.hoverIndex=xn.value.findIndex(Pr=>$r(Pr)===$r(r.selected))},300)},yr=()=>{var _r,Pr;Jn(),(Pr=(_r=pe.value)==null?void 0:_r.updatePopper)==null||Pr.call(_r),t.multiple&&Ln()},Jn=()=>{var _r;r.inputWidth=(_r=le.value)==null?void 0:_r.$el.offsetWidth},Kn=()=>{t.filterable&&r.query!==r.selectedLabel&&(r.query=r.selectedLabel,An(r.query))},Gn=debounce(()=>{Kn()},wn.value),Qn=debounce(_r=>{An(_r.target.value)},wn.value),ur=_r=>{isEqual$1(t.modelValue,_r)||V.emit(CHANGE_EVENT,_r)},cr=_r=>findLastIndex(_r,Pr=>!r.disabledOptions.has(Pr)),Un=_r=>{if(_r.code!==EVENT_CODE.delete){if(_r.target.value.length<=0&&!or()){const Pr=t.modelValue.slice(),sr=cr(Pr);if(sr<0)return;Pr.splice(sr,1),V.emit(UPDATE_MODEL_EVENT,Pr),ur(Pr)}_r.target.value.length===1&&t.modelValue.length===0&&(r.currentPlaceholder=r.cachedPlaceHolder)}},qn=(_r,Pr)=>{const sr=r.selected.indexOf(Pr);if(sr>-1&&!_n.value){const Ir=t.modelValue.slice();Ir.splice(sr,1),V.emit(UPDATE_MODEL_EVENT,Ir),ur(Ir),V.emit("remove-tag",Pr.value)}_r.stopPropagation(),Ar()},er=_r=>{_r.stopPropagation();const Pr=t.multiple?[]:"";if(!isString$6(Pr))for(const sr of r.selected)sr.isDisabled&&Pr.push(sr.value);V.emit(UPDATE_MODEL_EVENT,Pr),ur(Pr),r.hoverIndex=-1,r.visible=!1,V.emit("clear"),Ar()},pr=_r=>{var Pr;if(t.multiple){const sr=(t.modelValue||[]).slice(),Ir=Er(sr,_r.value);Ir>-1?sr.splice(Ir,1):(t.multipleLimit<=0||sr.length{xr(_r)})},Er=(_r=[],Pr)=>{if(!isObject$9(Pr))return _r.indexOf(Pr);const sr=t.valueKey;let Ir=-1;return _r.some((Hr,Nr)=>toRaw(get$1(Hr,sr))===get$1(Pr,sr)?(Ir=Nr,!0):!1),Ir},dr=()=>{const _r=ue.value||le.value;_r&&(_r==null||_r.focus())},xr=_r=>{var Pr,sr,Ir,Hr,Nr;const Gr=Array.isArray(_r)?_r[0]:_r;let Zr=null;if(Gr!=null&&Gr.value){const Qr=xn.value.filter(eo=>eo.value===Gr.value);Qr.length>0&&(Zr=Qr[0].$el)}if(pe.value&&Zr){const Qr=(Hr=(Ir=(sr=(Pr=pe.value)==null?void 0:Pr.popperRef)==null?void 0:sr.contentRef)==null?void 0:Ir.querySelector)==null?void 0:Hr.call(Ir,`.${ie.be("dropdown","wrap")}`);Qr&&scrollIntoView(Qr,Zr)}(Nr=Ie.value)==null||Nr.handleScroll()},wr=_r=>{r.optionsCount++,r.filteredOptionsCount++,r.options.set(_r.value,_r),r.cachedOptions.set(_r.value,_r),_r.disabled&&r.disabledOptions.set(_r.value,_r)},Cr=(_r,Pr)=>{r.options.get(_r)===Pr&&(r.optionsCount--,r.filteredOptionsCount--,r.options.delete(_r))},gr=_r=>{_r.code!==EVENT_CODE.backspace&&or(!1),r.inputLength=ue.value.value.length*15+20,Ln()},or=_r=>{if(!Array.isArray(r.selected))return;const Pr=cr(r.selected.map(Ir=>Ir.value)),sr=r.selected[Pr];if(sr)return _r===!0||_r===!1?(sr.hitState=_r,_r):(sr.hitState=!sr.hitState,sr.hitState)},fr=_r=>{const Pr=_r.target.value;if(_r.type==="compositionend")r.isOnComposition=!1,nextTick(()=>An(Pr));else{const sr=Pr[Pr.length-1]||"";r.isOnComposition=!isKorean(sr)}},kr=()=>{nextTick(()=>xr(r.selected))},br=_r=>{r.focused||((t.automaticDropdown||t.filterable)&&(t.filterable&&!r.visible&&(r.menuVisibleOnFocus=!0),r.visible=!0),r.focused=!0,V.emit("focus",_r))},Ar=()=>{var _r,Pr;r.visible?(_r=ue.value||le.value)==null||_r.focus():(Pr=le.value)==null||Pr.focus()},Dr=()=>{var _r,Pr,sr;r.visible=!1,(_r=le.value)==null||_r.blur(),(sr=(Pr=de.value)==null?void 0:Pr.blur)==null||sr.call(Pr)},Br=_r=>{var Pr,sr,Ir;(Pr=pe.value)!=null&&Pr.isFocusInsideContent(_r)||(sr=he.value)!=null&&sr.isFocusInsideContent(_r)||(Ir=$e.value)!=null&&Ir.contains(_r.relatedTarget)||(r.visible&&Rr(),r.focused=!1,V.emit("blur",_r))},zr=_r=>{er(_r)},Rr=()=>{r.visible=!1},mr=_r=>{r.visible&&(_r.preventDefault(),_r.stopPropagation(),r.visible=!1)},ir=_r=>{_r&&!r.mouseEnter||_n.value||(r.menuVisibleOnFocus?r.menuVisibleOnFocus=!1:(!pe.value||!pe.value.isFocusInsideContent())&&(r.visible=!r.visible),Ar())},ar=()=>{r.visible?xn.value[r.hoverIndex]&&pr(xn.value[r.hoverIndex]):ir()},$r=_r=>isObject$9(_r.value)?get$1(_r.value,t.valueKey):_r.value,Zn=computed(()=>xn.value.filter(_r=>_r.visible).every(_r=>_r.disabled)),Or=computed(()=>r.selected.slice(0,t.maxCollapseTags)),Lr=computed(()=>r.selected.slice(t.maxCollapseTags)),Ur=_r=>{if(!r.visible){r.visible=!0;return}if(!(r.options.size===0||r.filteredOptionsCount===0)&&!r.isOnComposition&&!Zn.value){_r==="next"?(r.hoverIndex++,r.hoverIndex===r.options.size&&(r.hoverIndex=0)):_r==="prev"&&(r.hoverIndex--,r.hoverIndex<0&&(r.hoverIndex=r.options.size-1));const Pr=xn.value[r.hoverIndex];(Pr.disabled===!0||Pr.states.groupDisabled===!0||!Pr.visible)&&Ur(_r),nextTick(()=>xr(Ve.value))}},Kr=()=>{r.mouseEnter=!0},qr=()=>{r.mouseEnter=!1},no=(_r,Pr)=>{var sr,Ir;qn(_r,Pr),(Ir=(sr=he.value)==null?void 0:sr.updatePopper)==null||Ir.call(sr)},Xr=computed(()=>({maxWidth:`${unref(r.inputWidth)-32-(Sn.value?22:0)}px`,width:"100%"}));return{optionList:qe,optionsArray:xn,selectSize:Nn,handleResize:yr,debouncedOnInputChange:Gn,debouncedQueryChange:Qn,deletePrevTag:Un,deleteTag:qn,deleteSelected:er,handleOptionSelect:pr,scrollToOption:xr,readonly:hn,resetInputHeight:Ln,showClose:vn,iconComponent:bn,iconReverse:Cn,showNewOption:kn,collapseTagSize:Dn,setSelected:Fn,managePlaceholder:Vn,selectDisabled:_n,emptyText:En,toggleLastOptionHitState:or,resetInputState:gr,handleComposition:fr,onOptionCreate:wr,onOptionDestroy:Cr,handleMenuEnter:kr,handleFocus:br,focus:Ar,blur:Dr,handleBlur:Br,handleClearClick:zr,handleClose:Rr,handleKeydownEscape:mr,toggleMenu:ir,selectOption:ar,getValueKey:$r,navigateOptions:Ur,handleDeleteTooltipTag:no,dropMenuVisible:Mn,queryChange:Fe,groupQueryChange:Ue,showTagList:Or,collapseTagList:Lr,selectTagsStyle:Xr,reference:le,input:ue,iOSInput:de,tooltipRef:pe,tagTooltipRef:he,tags:_e,selectWrapper:$e,scrollbar:Ie,handleMouseEnter:Kr,handleMouseLeave:qr}};var ElOptions=defineComponent({name:"ElOptions",emits:["update-options"],setup(t,{slots:r,emit:V}){let oe=[];function ie(le,ue){if(le.length!==ue.length)return!1;for(const[de]of le.entries())if(le[de]!=ue[de])return!1;return!0}return()=>{var le,ue;const de=(le=r.default)==null?void 0:le.call(r),pe=[];function he(_e){Array.isArray(_e)&&_e.forEach($e=>{var Ie,Ve,Fe,Ue;const qe=(Ie=($e==null?void 0:$e.type)||{})==null?void 0:Ie.name;qe==="ElOptionGroup"?he(!isString$6($e.children)&&!Array.isArray($e.children)&&isFunction$5((Ve=$e.children)==null?void 0:Ve.default)?(Fe=$e.children)==null?void 0:Fe.default():$e.children):qe==="ElOption"?pe.push((Ue=$e.props)==null?void 0:Ue.label):Array.isArray($e.children)&&he($e.children)})}return de.length&&he((ue=de[0])==null?void 0:ue.children),ie(pe,oe)||(oe=pe,V("update-options",pe)),de}}});const COMPONENT_NAME$9="ElSelect",_sfc_main$Q=defineComponent({name:COMPONENT_NAME$9,componentName:COMPONENT_NAME$9,components:{ElInput,ElSelectMenu:ElSelectMenu$1,ElOption:Option,ElOptions,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:isValidComponentSize},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iconPropType,default:circle_close_default},fitInputWidth:Boolean,suffixIcon:{type:iconPropType,default:arrow_down_default},tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Ee,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup(t,r){const V=useNamespace("select"),oe=useNamespace("input"),{t:ie}=useLocale(),le=useSelectStates(t),{optionList:ue,optionsArray:de,selectSize:pe,readonly:he,handleResize:_e,collapseTagSize:$e,debouncedOnInputChange:Ie,debouncedQueryChange:Ve,deletePrevTag:Fe,deleteTag:Ue,deleteSelected:qe,handleOptionSelect:Et,scrollToOption:At,setSelected:Lt,resetInputHeight:hn,managePlaceholder:_n,showClose:vn,selectDisabled:bn,iconComponent:Cn,iconReverse:Sn,showNewOption:wn,emptyText:En,toggleLastOptionHitState:xn,resetInputState:Pn,handleComposition:kn,onOptionCreate:Nn,onOptionDestroy:Dn,handleMenuEnter:Mn,handleFocus:Ln,focus:An,blur:Vn,handleBlur:Wn,handleClearClick:Fn,handleClose:Yn,handleKeydownEscape:tr,toggleMenu:yr,selectOption:Jn,getValueKey:Kn,navigateOptions:Gn,handleDeleteTooltipTag:Qn,dropMenuVisible:ur,reference:cr,input:Un,iOSInput:qn,tooltipRef:er,tagTooltipRef:pr,tags:Er,selectWrapper:dr,scrollbar:xr,queryChange:wr,groupQueryChange:Cr,handleMouseEnter:gr,handleMouseLeave:or,showTagList:fr,collapseTagList:kr,selectTagsStyle:br}=useSelect$2(t,le,r),{inputWidth:Ar,selected:Dr,inputLength:Br,filteredOptionsCount:zr,visible:Rr,selectedLabel:mr,hoverIndex:ir,query:ar,inputHovering:$r,currentPlaceholder:Zn,menuVisibleOnFocus:Or,isOnComposition:Lr,options:Ur,cachedOptions:Kr,optionsCount:qr,prefixWidth:no}=toRefs(le),Xr=computed(()=>{const eo=[V.b()],oo=unref(pe);return oo&&eo.push(V.m(oo)),t.disabled&&eo.push(V.m("disabled")),eo}),_r=computed(()=>[V.e("tags"),V.is("disabled",unref(bn))]),Pr=computed(()=>[V.b("tags-wrapper"),{"has-prefix":unref(no)&&unref(Dr).length}]),sr=computed(()=>[V.e("input"),V.is(unref(pe)),V.is("disabled",unref(bn))]),Ir=computed(()=>[V.e("input"),V.is(unref(pe)),V.em("input","iOS")]),Hr=computed(()=>[V.is("empty",!t.allowCreate&&!!unref(ar)&&unref(zr)===0)]),Nr=computed(()=>({maxWidth:`${unref(Ar)>123?unref(Ar)-123:unref(Ar)-75}px`})),Gr=computed(()=>({marginLeft:`${unref(no)}px`,flexGrow:1,width:`${unref(Br)/(unref(Ar)-32)}%`,maxWidth:`${unref(Ar)-42}px`}));provide(selectKey,reactive({props:t,options:Ur,optionsArray:de,cachedOptions:Kr,optionsCount:qr,filteredOptionsCount:zr,hoverIndex:ir,handleOptionSelect:Et,onOptionCreate:Nn,onOptionDestroy:Dn,selectWrapper:dr,selected:Dr,setSelected:Lt,queryChange:wr,groupQueryChange:Cr})),onMounted(()=>{le.cachedPlaceHolder=Zn.value=t.placeholder||(()=>ie("el.select.placeholder")),t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(Zn.value=""),useResizeObserver$1(dr,_e),t.remote&&t.multiple&&hn(),nextTick(()=>{const eo=cr.value&&cr.value.$el;if(eo&&(Ar.value=eo.getBoundingClientRect().width,r.slots.prefix)){const oo=eo.querySelector(`.${oe.e("prefix")}`);no.value=Math.max(oo.getBoundingClientRect().width+11,30)}}),Lt()}),t.multiple&&!Array.isArray(t.modelValue)&&r.emit(UPDATE_MODEL_EVENT,[]),!t.multiple&&Array.isArray(t.modelValue)&&r.emit(UPDATE_MODEL_EVENT,"");const Zr=computed(()=>{var eo,oo;return(oo=(eo=er.value)==null?void 0:eo.popperRef)==null?void 0:oo.contentRef});return{isIOS:isIOS$1,onOptionsRendered:eo=>{ue.value=eo},prefixWidth:no,selectSize:pe,readonly:he,handleResize:_e,collapseTagSize:$e,debouncedOnInputChange:Ie,debouncedQueryChange:Ve,deletePrevTag:Fe,deleteTag:Ue,handleDeleteTooltipTag:Qn,deleteSelected:qe,handleOptionSelect:Et,scrollToOption:At,inputWidth:Ar,selected:Dr,inputLength:Br,filteredOptionsCount:zr,visible:Rr,selectedLabel:mr,hoverIndex:ir,query:ar,inputHovering:$r,currentPlaceholder:Zn,menuVisibleOnFocus:Or,isOnComposition:Lr,options:Ur,resetInputHeight:hn,managePlaceholder:_n,showClose:vn,selectDisabled:bn,iconComponent:Cn,iconReverse:Sn,showNewOption:wn,emptyText:En,toggleLastOptionHitState:xn,resetInputState:Pn,handleComposition:kn,handleMenuEnter:Mn,handleFocus:Ln,focus:An,blur:Vn,handleBlur:Wn,handleClearClick:Fn,handleClose:Yn,handleKeydownEscape:tr,toggleMenu:yr,selectOption:Jn,getValueKey:Kn,navigateOptions:Gn,dropMenuVisible:ur,reference:cr,input:Un,iOSInput:qn,tooltipRef:er,popperPaneRef:Zr,tags:Er,selectWrapper:dr,scrollbar:xr,wrapperKls:Xr,tagsKls:_r,tagWrapperKls:Pr,inputKls:sr,iOSInputKls:Ir,scrollbarKls:Hr,selectTagsStyle:br,nsSelect:V,tagTextStyle:Nr,inputStyle:Gr,handleMouseEnter:gr,handleMouseLeave:or,showTagList:fr,collapseTagList:kr,tagTooltipRef:pr}}}),_hoisted_1$p=["disabled","autocomplete","aria-label"],_hoisted_2$h=["disabled"],_hoisted_3$a={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function _sfc_render$a(t,r,V,oe,ie,le){const ue=resolveComponent("el-tag"),de=resolveComponent("el-tooltip"),pe=resolveComponent("el-icon"),he=resolveComponent("el-input"),_e=resolveComponent("el-option"),$e=resolveComponent("el-options"),Ie=resolveComponent("el-scrollbar"),Ve=resolveComponent("el-select-menu"),Fe=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass(t.wrapperKls),onMouseenter:r[22]||(r[22]=(...Ue)=>t.handleMouseEnter&&t.handleMouseEnter(...Ue)),onMouseleave:r[23]||(r[23]=(...Ue)=>t.handleMouseLeave&&t.handleMouseLeave(...Ue)),onClick:r[24]||(r[24]=withModifiers((...Ue)=>t.toggleMenu&&t.toggleMenu(...Ue),["stop"]))},[createVNode(de,{ref:"tooltipRef",visible:t.dropMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onShow:t.handleMenuEnter},{default:withCtx(()=>[createBaseVNode("div",{class:"select-trigger",onMouseenter:r[20]||(r[20]=Ue=>t.inputHovering=!0),onMouseleave:r[21]||(r[21]=Ue=>t.inputHovering=!1)},[t.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",tabindex:"-1",class:normalizeClass(t.tagsKls),style:normalizeStyle$1(t.selectTagsStyle),onClick:r[15]||(r[15]=(...Ue)=>t.focus&&t.focus(...Ue))},[t.collapseTags&&t.selected.length?(openBlock(),createBlock(Transition,{key:0,onAfterLeave:t.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.tagWrapperKls)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.showTagList,Ue=>(openBlock(),createBlock(ue,{key:t.getValueKey(Ue),closable:!t.selectDisabled&&!Ue.isDisabled,size:t.collapseTagSize,hit:Ue.hitState,type:t.tagType,"disable-transitions":"",onClose:qe=>t.deleteTag(qe,Ue)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text")),style:normalizeStyle$1(t.tagTextStyle)},toDisplayString$1(Ue.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),t.selected.length>t.maxCollapseTags?(openBlock(),createBlock(ue,{key:0,closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":""},{default:withCtx(()=>[t.collapseTagsTooltip?(openBlock(),createBlock(de,{key:0,ref:"tagTooltipRef",disabled:t.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text"))},"+ "+toDisplayString$1(t.selected.length-t.maxCollapseTags),3)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(t.nsSelect.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.collapseTagList,Ue=>(openBlock(),createElementBlock("div",{key:t.getValueKey(Ue),class:normalizeClass(t.nsSelect.e("collapse-tag"))},[createVNode(ue,{class:"in-tooltip",closable:!t.selectDisabled&&!Ue.isDisabled,size:t.collapseTagSize,hit:Ue.hitState,type:t.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:qe=>t.handleDeleteTooltipTag(qe,Ue)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:t.inputWidth-75+"px"})},toDisplayString$1(Ue.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(t.nsSelect.e("tags-text"))},"+ "+toDisplayString$1(t.selected.length-t.maxCollapseTags),3))]),_:1},8,["size","type"])):createCommentVNode("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):createCommentVNode("v-if",!0),t.collapseTags?createCommentVNode("v-if",!0):(openBlock(),createBlock(Transition,{key:1,onAfterLeave:t.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.tagWrapperKls),style:normalizeStyle$1(t.prefixWidth&&t.selected.length?{marginLeft:`${t.prefixWidth}px`}:"")},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.selected,Ue=>(openBlock(),createBlock(ue,{key:t.getValueKey(Ue),closable:!t.selectDisabled&&!Ue.isDisabled,size:t.collapseTagSize,hit:Ue.hitState,type:t.tagType,"disable-transitions":"",onClose:qe=>t.deleteTag(qe,Ue)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:t.inputWidth-75+"px"})},toDisplayString$1(Ue.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),t.filterable&&!t.selectDisabled?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":r[0]||(r[0]=Ue=>t.query=Ue),type:"text",class:normalizeClass(t.inputKls),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:normalizeStyle$1(t.inputStyle),"aria-label":t.ariaLabel,onFocus:r[1]||(r[1]=(...Ue)=>t.handleFocus&&t.handleFocus(...Ue)),onBlur:r[2]||(r[2]=(...Ue)=>t.handleBlur&&t.handleBlur(...Ue)),onKeyup:r[3]||(r[3]=(...Ue)=>t.managePlaceholder&&t.managePlaceholder(...Ue)),onKeydown:[r[4]||(r[4]=(...Ue)=>t.resetInputState&&t.resetInputState(...Ue)),r[5]||(r[5]=withKeys(withModifiers(Ue=>t.navigateOptions("next"),["prevent"]),["down"])),r[6]||(r[6]=withKeys(withModifiers(Ue=>t.navigateOptions("prev"),["prevent"]),["up"])),r[7]||(r[7]=withKeys((...Ue)=>t.handleKeydownEscape&&t.handleKeydownEscape(...Ue),["esc"])),r[8]||(r[8]=withKeys(withModifiers((...Ue)=>t.selectOption&&t.selectOption(...Ue),["stop","prevent"]),["enter"])),r[9]||(r[9]=withKeys((...Ue)=>t.deletePrevTag&&t.deletePrevTag(...Ue),["delete"])),r[10]||(r[10]=withKeys(Ue=>t.visible=!1,["tab"]))],onCompositionstart:r[11]||(r[11]=(...Ue)=>t.handleComposition&&t.handleComposition(...Ue)),onCompositionupdate:r[12]||(r[12]=(...Ue)=>t.handleComposition&&t.handleComposition(...Ue)),onCompositionend:r[13]||(r[13]=(...Ue)=>t.handleComposition&&t.handleComposition(...Ue)),onInput:r[14]||(r[14]=(...Ue)=>t.debouncedQueryChange&&t.debouncedQueryChange(...Ue))},null,46,_hoisted_1$p)),[[vModelText,t.query]]):createCommentVNode("v-if",!0)],6)):createCommentVNode("v-if",!0),createCommentVNode(" fix: https://github.com/element-plus/element-plus/issues/11415 "),t.isIOS&&!t.multiple&&t.filterable&&t.readonly?(openBlock(),createElementBlock("input",{key:1,ref:"iOSInput",class:normalizeClass(t.iOSInputKls),disabled:t.selectDisabled,type:"text"},null,10,_hoisted_2$h)):createCommentVNode("v-if",!0),createVNode(he,{id:t.id,ref:"reference",modelValue:t.selectedLabel,"onUpdate:modelValue":r[16]||(r[16]=Ue=>t.selectedLabel=Ue),type:"text",placeholder:typeof t.currentPlaceholder=="function"?t.currentPlaceholder():t.currentPlaceholder,name:t.name,autocomplete:t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,class:normalizeClass([t.nsSelect.is("focus",t.visible)]),tabindex:t.multiple&&t.filterable?-1:void 0,label:t.ariaLabel,onFocus:t.handleFocus,onBlur:t.handleBlur,onInput:t.debouncedOnInputChange,onPaste:t.debouncedOnInputChange,onCompositionstart:t.handleComposition,onCompositionupdate:t.handleComposition,onCompositionend:t.handleComposition,onKeydown:[r[17]||(r[17]=withKeys(withModifiers(Ue=>t.navigateOptions("next"),["stop","prevent"]),["down"])),r[18]||(r[18]=withKeys(withModifiers(Ue=>t.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers(t.selectOption,["stop","prevent"]),["enter"]),withKeys(t.handleKeydownEscape,["esc"]),r[19]||(r[19]=withKeys(Ue=>t.visible=!1,["tab"]))]},createSlots({suffix:withCtx(()=>[t.iconComponent&&!t.showClose?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),t.showClose&&t.clearIcon?(openBlock(),createBlock(pe,{key:1,class:normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:2},[t.$slots.prefix?{name:"prefix",fn:withCtx(()=>[createBaseVNode("div",_hoisted_3$a,[renderSlot(t.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:withCtx(()=>[createVNode(Ve,null,{default:withCtx(()=>[withDirectives(createVNode(Ie,{ref:"scrollbar",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:normalizeClass(t.scrollbarKls)},{default:withCtx(()=>[t.showNewOption?(openBlock(),createBlock(_e,{key:0,value:t.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode($e,{onUpdateOptions:t.onOptionsRendered},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[vShow,t.options.size>0&&!t.loading]]),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&t.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[t.$slots.empty?renderSlot(t.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(t.nsSelect.be("dropdown","empty"))},toDisplayString$1(t.emptyText),3))],64)):createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[Fe,t.handleClose,t.popperPaneRef]])}var Select$1=_export_sfc$1(_sfc_main$Q,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const _sfc_main$P=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const r=useNamespace("select"),V=ref(!0),oe=getCurrentInstance(),ie=ref([]);provide(selectGroupKey,reactive({...toRefs(t)}));const le=inject(selectKey);onMounted(()=>{ie.value=ue(oe.subTree)});const ue=pe=>{const he=[];return Array.isArray(pe.children)&&pe.children.forEach(_e=>{var $e;_e.type&&_e.type.name==="ElOption"&&_e.component&&_e.component.proxy?he.push(_e.component.proxy):($e=_e.children)!=null&&$e.length&&he.push(...ue(_e))}),he},{groupQueryChange:de}=toRaw(le);return watch(de,()=>{V.value=ie.value.some(pe=>pe.visible===!0)},{flush:"post"}),{visible:V,ns:r}}});function _sfc_render$9(t,r,V,oe,ie,le){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass(t.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass(t.ns.be("group","title"))},toDisplayString$1(t.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass(t.ns.b("group"))},[renderSlot(t.$slots,"default")],2)])],2)),[[vShow,t.visible]])}var OptionGroup=_export_sfc$1(_sfc_main$P,[["render",_sfc_render$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ElSelect=withInstall(Select$1,{Option,OptionGroup}),ElOption=withNoopInstall(Option),ElOptionGroup=withNoopInstall(OptionGroup),usePagination=()=>inject(elPaginationKey,{}),paginationSizesProps=buildProps({pageSize:{type:Number,required:!0},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:componentSizes}}),__default__$C=defineComponent({name:"ElPaginationSizes"}),_sfc_main$O=defineComponent({...__default__$C,props:paginationSizesProps,emits:["page-size-change"],setup(t,{emit:r}){const V=t,{t:oe}=useLocale(),ie=useNamespace("pagination"),le=usePagination(),ue=ref(V.pageSize);watch(()=>V.pageSizes,(he,_e)=>{if(!isEqual$1(he,_e)&&Array.isArray(he)){const $e=he.includes(V.pageSize)?V.pageSize:V.pageSizes[0];r("page-size-change",$e)}}),watch(()=>V.pageSize,he=>{ue.value=he});const de=computed(()=>V.pageSizes);function pe(he){var _e;he!==ue.value&&(ue.value=he,(_e=le.handleSizeChange)==null||_e.call(le,Number(he)))}return(he,_e)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":ue.value,disabled:he.disabled,"popper-class":he.popperClass,size:he.size,"validate-event":!1,onChange:pe},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(de),$e=>(openBlock(),createBlock(unref(ElOption),{key:$e,value:$e,label:$e+unref(oe)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Sizes=_export_sfc$1(_sfc_main$O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const paginationJumperProps=buildProps({size:{type:String,values:componentSizes}}),_hoisted_1$o=["disabled"],__default__$B=defineComponent({name:"ElPaginationJumper"}),_sfc_main$N=defineComponent({...__default__$B,props:paginationJumperProps,setup(t){const{t:r}=useLocale(),V=useNamespace("pagination"),{pageCount:oe,disabled:ie,currentPage:le,changeEvent:ue}=usePagination(),de=ref(),pe=computed(()=>{var $e;return($e=de.value)!=null?$e:le==null?void 0:le.value});function he($e){de.value=$e?+$e:""}function _e($e){$e=Math.trunc(+$e),ue==null||ue($e),de.value=void 0}return($e,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(V).e("jump")),disabled:unref(ie)},[createBaseVNode("span",{class:normalizeClass([unref(V).e("goto")])},toDisplayString$1(unref(r)("el.pagination.goto")),3),createVNode(unref(ElInput),{size:$e.size,class:normalizeClass([unref(V).e("editor"),unref(V).is("in-pagination")]),min:1,max:unref(oe),disabled:unref(ie),"model-value":unref(pe),"validate-event":!1,label:unref(r)("el.pagination.page"),type:"number","onUpdate:modelValue":he,onChange:_e},null,8,["size","class","max","disabled","model-value","label"]),createBaseVNode("span",{class:normalizeClass([unref(V).e("classifier")])},toDisplayString$1(unref(r)("el.pagination.pageClassifier")),3)],10,_hoisted_1$o))}});var Jumper=_export_sfc$1(_sfc_main$N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const paginationTotalProps=buildProps({total:{type:Number,default:1e3}}),_hoisted_1$n=["disabled"],__default__$A=defineComponent({name:"ElPaginationTotal"}),_sfc_main$M=defineComponent({...__default__$A,props:paginationTotalProps,setup(t){const{t:r}=useLocale(),V=useNamespace("pagination"),{disabled:oe}=usePagination();return(ie,le)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(V).e("total")),disabled:unref(oe)},toDisplayString$1(unref(r)("el.pagination.total",{total:ie.total})),11,_hoisted_1$n))}});var Total=_export_sfc$1(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const paginationPagerProps=buildProps({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),_hoisted_1$m=["onKeyup"],_hoisted_2$g=["aria-current","aria-label","tabindex"],_hoisted_3$9=["tabindex","aria-label"],_hoisted_4$6=["aria-current","aria-label","tabindex"],_hoisted_5$4=["tabindex","aria-label"],_hoisted_6$1=["aria-current","aria-label","tabindex"],__default__$z=defineComponent({name:"ElPaginationPager"}),_sfc_main$L=defineComponent({...__default__$z,props:paginationPagerProps,emits:["change"],setup(t,{emit:r}){const V=t,oe=useNamespace("pager"),ie=useNamespace("icon"),{t:le}=useLocale(),ue=ref(!1),de=ref(!1),pe=ref(!1),he=ref(!1),_e=ref(!1),$e=ref(!1),Ie=computed(()=>{const hn=V.pagerCount,_n=(hn-1)/2,vn=Number(V.currentPage),bn=Number(V.pageCount);let Cn=!1,Sn=!1;bn>hn&&(vn>hn-_n&&(Cn=!0),vn["more","btn-quickprev",ie.b(),oe.is("disabled",V.disabled)]),Fe=computed(()=>["more","btn-quicknext",ie.b(),oe.is("disabled",V.disabled)]),Ue=computed(()=>V.disabled?-1:0);watchEffect(()=>{const hn=(V.pagerCount-1)/2;ue.value=!1,de.value=!1,V.pageCount>V.pagerCount&&(V.currentPage>V.pagerCount-hn&&(ue.value=!0),V.currentPagebn&&(vn=bn)),vn!==Cn&&r("change",vn)}return(hn,_n)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(oe).b()),onClick:Lt,onKeyup:withKeys(At,["enter"])},[hn.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(oe).is("active",hn.currentPage===1),unref(oe).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===1,"aria-label":unref(le)("el.pagination.currentPage",{pager:1}),tabindex:unref(Ue)}," 1 ",10,_hoisted_2$g)):createCommentVNode("v-if",!0),ue.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(unref(Ve)),tabindex:unref(Ue),"aria-label":unref(le)("el.pagination.prevPages",{pager:hn.pagerCount-2}),onMouseenter:_n[0]||(_n[0]=vn=>qe(!0)),onMouseleave:_n[1]||(_n[1]=vn=>pe.value=!1),onFocus:_n[2]||(_n[2]=vn=>Et(!0)),onBlur:_n[3]||(_n[3]=vn=>_e.value=!1)},[(pe.value||_e.value)&&!hn.disabled?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_3$9)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),vn=>(openBlock(),createElementBlock("li",{key:vn,class:normalizeClass([[unref(oe).is("active",hn.currentPage===vn),unref(oe).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===vn,"aria-label":unref(le)("el.pagination.currentPage",{pager:vn}),tabindex:unref(Ue)},toDisplayString$1(vn),11,_hoisted_4$6))),128)),de.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(unref(Fe)),tabindex:unref(Ue),"aria-label":unref(le)("el.pagination.nextPages",{pager:hn.pagerCount-2}),onMouseenter:_n[4]||(_n[4]=vn=>qe()),onMouseleave:_n[5]||(_n[5]=vn=>he.value=!1),onFocus:_n[6]||(_n[6]=vn=>Et()),onBlur:_n[7]||(_n[7]=vn=>$e.value=!1)},[(he.value||$e.value)&&!hn.disabled?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_5$4)):createCommentVNode("v-if",!0),hn.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(oe).is("active",hn.currentPage===hn.pageCount),unref(oe).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===hn.pageCount,"aria-label":unref(le)("el.pagination.currentPage",{pager:hn.pageCount}),tabindex:unref(Ue)},toDisplayString$1(hn.pageCount),11,_hoisted_6$1)):createCommentVNode("v-if",!0)],42,_hoisted_1$m))}});var Pager=_export_sfc$1(_sfc_main$L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=t=>typeof t!="number",paginationProps=buildProps({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:t=>isNumber$4(t)&&Math.trunc(t)===t&&t>4&&t<22&&t%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:iconPropType,default:()=>arrow_left_default},nextText:{type:String,default:""},nextIcon:{type:iconPropType,default:()=>arrow_right_default},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),paginationEmits={"update:current-page":t=>isNumber$4(t),"update:page-size":t=>isNumber$4(t),"size-change":t=>isNumber$4(t),"current-change":t=>isNumber$4(t),"prev-click":t=>isNumber$4(t),"next-click":t=>isNumber$4(t)},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup(t,{emit:r,slots:V}){const{t:oe}=useLocale(),ie=useNamespace("pagination"),le=getCurrentInstance().vnode.props||{},ue="onUpdate:currentPage"in le||"onUpdate:current-page"in le||"onCurrentChange"in le,de="onUpdate:pageSize"in le||"onUpdate:page-size"in le||"onSizeChange"in le,pe=computed(()=>{if(isAbsent(t.total)&&isAbsent(t.pageCount)||!isAbsent(t.currentPage)&&!ue)return!1;if(t.layout.includes("sizes")){if(isAbsent(t.pageCount)){if(!isAbsent(t.total)&&!isAbsent(t.pageSize)&&!de)return!1}else if(!de)return!1}return!0}),he=ref(isAbsent(t.defaultPageSize)?10:t.defaultPageSize),_e=ref(isAbsent(t.defaultCurrentPage)?1:t.defaultCurrentPage),$e=computed({get(){return isAbsent(t.pageSize)?he.value:t.pageSize},set(Lt){isAbsent(t.pageSize)&&(he.value=Lt),de&&(r("update:page-size",Lt),r("size-change",Lt))}}),Ie=computed(()=>{let Lt=0;return isAbsent(t.pageCount)?isAbsent(t.total)||(Lt=Math.max(1,Math.ceil(t.total/$e.value))):Lt=t.pageCount,Lt}),Ve=computed({get(){return isAbsent(t.currentPage)?_e.value:t.currentPage},set(Lt){let hn=Lt;Lt<1?hn=1:Lt>Ie.value&&(hn=Ie.value),isAbsent(t.currentPage)&&(_e.value=hn),ue&&(r("update:current-page",hn),r("current-change",hn))}});watch(Ie,Lt=>{Ve.value>Lt&&(Ve.value=Lt)});function Fe(Lt){Ve.value=Lt}function Ue(Lt){$e.value=Lt;const hn=Ie.value;Ve.value>hn&&(Ve.value=hn)}function qe(){t.disabled||(Ve.value-=1,r("prev-click",Ve.value))}function Et(){t.disabled||(Ve.value+=1,r("next-click",Ve.value))}function At(Lt,hn){Lt&&(Lt.props||(Lt.props={}),Lt.props.class=[Lt.props.class,hn].join(" "))}return provide(elPaginationKey,{pageCount:Ie,disabled:computed(()=>t.disabled),currentPage:Ve,changeEvent:Fe,handleSizeChange:Ue}),()=>{var Lt,hn;if(!pe.value)return oe("el.pagination.deprecationWarning"),null;if(!t.layout||t.hideOnSinglePage&&Ie.value<=1)return null;const _n=[],vn=[],bn=h$2("div",{class:ie.e("rightwrapper")},vn),Cn={prev:h$2(Prev,{disabled:t.disabled,currentPage:Ve.value,prevText:t.prevText,prevIcon:t.prevIcon,onClick:qe}),jumper:h$2(Jumper,{size:t.small?"small":"default"}),pager:h$2(Pager,{currentPage:Ve.value,pageCount:Ie.value,pagerCount:t.pagerCount,onChange:Fe,disabled:t.disabled}),next:h$2(Next,{disabled:t.disabled,currentPage:Ve.value,pageCount:Ie.value,nextText:t.nextText,nextIcon:t.nextIcon,onClick:Et}),sizes:h$2(Sizes,{pageSize:$e.value,pageSizes:t.pageSizes,popperClass:t.popperClass,disabled:t.disabled,size:t.small?"small":"default"}),slot:(hn=(Lt=V==null?void 0:V.default)==null?void 0:Lt.call(V))!=null?hn:null,total:h$2(Total,{total:isAbsent(t.total)?0:t.total})},Sn=t.layout.split(",").map(En=>En.trim());let wn=!1;return Sn.forEach(En=>{if(En==="->"){wn=!0;return}wn?vn.push(Cn[En]):_n.push(Cn[En])}),At(_n[0],ie.is("first")),At(_n[_n.length-1],ie.is("last")),wn&&vn.length>0&&(At(vn[0],ie.is("first")),At(vn[vn.length-1],ie.is("last")),_n.push(bn)),h$2("div",{class:[ie.b(),ie.is("background",t.background),{[ie.m("small")]:t.small}]},_n)}}});const ElPagination=withInstall(Pagination),popconfirmProps=buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:buttonTypes,default:"primary"},cancelButtonType:{type:String,values:buttonTypes,default:"text"},icon:{type:iconPropType,default:()=>question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:useTooltipContentProps.teleported,persistent:useTooltipContentProps.persistent,width:{type:[String,Number],default:150}}),popconfirmEmits={confirm:t=>t instanceof MouseEvent,cancel:t=>t instanceof MouseEvent},__default__$y=defineComponent({name:"ElPopconfirm"}),_sfc_main$K=defineComponent({...__default__$y,props:popconfirmProps,emits:popconfirmEmits,setup(t,{emit:r}){const V=t,{t:oe}=useLocale(),ie=useNamespace("popconfirm"),le=ref(),ue=()=>{var Ie,Ve;(Ve=(Ie=le.value)==null?void 0:Ie.onClose)==null||Ve.call(Ie)},de=computed(()=>({width:addUnit(V.width)})),pe=Ie=>{r("confirm",Ie),ue()},he=Ie=>{r("cancel",Ie),ue()},_e=computed(()=>V.confirmButtonText||oe("el.popconfirm.confirmButtonText")),$e=computed(()=>V.cancelButtonText||oe("el.popconfirm.cancelButtonText"));return(Ie,Ve)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:le,trigger:"click",effect:"light"},Ie.$attrs,{"popper-class":`${unref(ie).namespace.value}-popover`,"popper-style":unref(de),teleported:Ie.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":Ie.hideAfter,persistent:Ie.persistent}),{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("main"))},[!Ie.hideIcon&&Ie.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("icon")),style:normalizeStyle$1({color:Ie.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString$1(Ie.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(ie).e("action"))},[createVNode(unref(ElButton),{size:"small",type:Ie.cancelButtonType==="text"?"":Ie.cancelButtonType,text:Ie.cancelButtonType==="text",onClick:he},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:Ie.confirmButtonType==="text"?"":Ie.confirmButtonType,text:Ie.confirmButtonType==="text",onClick:pe},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(_e)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[Ie.$slots.reference?renderSlot(Ie.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Popconfirm=_export_sfc$1(_sfc_main$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ElPopconfirm=withInstall(Popconfirm),popoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,placement:dropdownProps.placement,disabled:useTooltipTriggerProps.disabled,visible:useTooltipContentProps.visible,transition:useTooltipContentProps.transition,popperOptions:dropdownProps.popperOptions,tabindex:dropdownProps.tabindex,content:useTooltipContentProps.content,popperStyle:useTooltipContentProps.popperStyle,popperClass:useTooltipContentProps.popperClass,enterable:{...useTooltipContentProps.enterable,default:!0},effect:{...useTooltipContentProps.effect,default:"light"},teleported:useTooltipContentProps.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),popoverEmits={"update:visible":t=>isBoolean$3(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},updateEventKeyRaw="onUpdate:visible",__default__$x=defineComponent({name:"ElPopover"}),_sfc_main$J=defineComponent({...__default__$x,props:popoverProps,emits:popoverEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=computed(()=>oe[updateEventKeyRaw]),le=useNamespace("popover"),ue=ref(),de=computed(()=>{var qe;return(qe=unref(ue))==null?void 0:qe.popperRef}),pe=computed(()=>[{width:addUnit(oe.width)},oe.popperStyle]),he=computed(()=>[le.b(),oe.popperClass,{[le.m("plain")]:!!oe.content}]),_e=computed(()=>oe.transition===`${le.namespace.value}-fade-in-linear`),$e=()=>{var qe;(qe=ue.value)==null||qe.hide()},Ie=()=>{V("before-enter")},Ve=()=>{V("before-leave")},Fe=()=>{V("after-enter")},Ue=()=>{V("update:visible",!1),V("after-leave")};return r({popperRef:de,hide:$e}),(qe,Et)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:ue},qe.$attrs,{trigger:qe.trigger,placement:qe.placement,disabled:qe.disabled,visible:qe.visible,transition:qe.transition,"popper-options":qe.popperOptions,tabindex:qe.tabindex,content:qe.content,offset:qe.offset,"show-after":qe.showAfter,"hide-after":qe.hideAfter,"auto-close":qe.autoClose,"show-arrow":qe.showArrow,"aria-label":qe.title,effect:qe.effect,enterable:qe.enterable,"popper-class":unref(he),"popper-style":unref(pe),teleported:qe.teleported,persistent:qe.persistent,"gpu-acceleration":unref(_e),"onUpdate:visible":unref(ie),onBeforeShow:Ie,onBeforeHide:Ve,onShow:Fe,onHide:Ue}),{content:withCtx(()=>[qe.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("title")),role:"title"},toDisplayString$1(qe.title),3)):createCommentVNode("v-if",!0),renderSlot(qe.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(qe.content),1)])]),default:withCtx(()=>[qe.$slots.reference?renderSlot(qe.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Popover=_export_sfc$1(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const attachEvents=(t,r)=>{const V=r.arg||r.value,oe=V==null?void 0:V.popperRef;oe&&(oe.triggerRef=t)};var PopoverDirective={mounted(t,r){attachEvents(t,r)},updated(t,r){attachEvents(t,r)}};const VPopover="popover",ElPopoverDirective=withInstallDirective(PopoverDirective,VPopover),ElPopover=withInstall(Popover,{directive:ElPopoverDirective}),progressProps=buildProps({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:definePropType([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:definePropType(Function),default:t=>`${t}%`}}),_hoisted_1$l=["aria-valuenow"],_hoisted_2$f={viewBox:"0 0 100 100"},_hoisted_3$8=["d","stroke","stroke-linecap","stroke-width"],_hoisted_4$5=["d","stroke","opacity","stroke-linecap","stroke-width"],_hoisted_5$3={key:0},__default__$w=defineComponent({name:"ElProgress"}),_sfc_main$I=defineComponent({...__default__$w,props:progressProps,setup(t){const r=t,V={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},oe=useNamespace("progress"),ie=computed(()=>({width:`${r.percentage}%`,animationDuration:`${r.duration}s`,backgroundColor:At(r.percentage)})),le=computed(()=>(r.strokeWidth/r.width*100).toFixed(1)),ue=computed(()=>["circle","dashboard"].includes(r.type)?Number.parseInt(`${50-Number.parseFloat(le.value)/2}`,10):0),de=computed(()=>{const Lt=ue.value,hn=r.type==="dashboard";return` M 50 50 m 0 ${hn?"":"-"}${Lt} a ${Lt} ${Lt} 0 1 1 0 ${hn?"-":""}${Lt*2} a ${Lt} ${Lt} 0 1 1 0 ${hn?"":"-"}${Lt*2} `}),pe=computed(()=>2*Math.PI*ue.value),he=computed(()=>r.type==="dashboard"?.75:1),_e=computed(()=>`${-1*pe.value*(1-he.value)/2}px`),$e=computed(()=>({strokeDasharray:`${pe.value*he.value}px, ${pe.value}px`,strokeDashoffset:_e.value})),Ie=computed(()=>({strokeDasharray:`${pe.value*he.value*(r.percentage/100)}px, ${pe.value}px`,strokeDashoffset:_e.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),Ve=computed(()=>{let Lt;return r.color?Lt=At(r.percentage):Lt=V[r.status]||V.default,Lt}),Fe=computed(()=>r.status==="warning"?warning_filled_default:r.type==="line"?r.status==="success"?circle_check_default:circle_close_default:r.status==="success"?check_default:close_default),Ue=computed(()=>r.type==="line"?12+r.strokeWidth*.4:r.width*.111111+2),qe=computed(()=>r.format(r.percentage));function Et(Lt){const hn=100/Lt.length;return Lt.map((vn,bn)=>isString$6(vn)?{color:vn,percentage:(bn+1)*hn}:vn).sort((vn,bn)=>vn.percentage-bn.percentage)}const At=Lt=>{var hn;const{color:_n}=r;if(isFunction$5(_n))return _n(Lt);if(isString$6(_n))return _n;{const vn=Et(_n);for(const bn of vn)if(bn.percentage>Lt)return bn.color;return(hn=vn[vn.length-1])==null?void 0:hn.color}};return(Lt,hn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b(),unref(oe).m(Lt.type),unref(oe).is(Lt.status),{[unref(oe).m("without-text")]:!Lt.showText,[unref(oe).m("text-inside")]:Lt.textInside}]),role:"progressbar","aria-valuenow":Lt.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[Lt.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(oe).be("bar","outer")),style:normalizeStyle$1({height:`${Lt.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(oe).be("bar","inner"),{[unref(oe).bem("bar","inner","indeterminate")]:Lt.indeterminate},{[unref(oe).bem("bar","inner","striped")]:Lt.striped},{[unref(oe).bem("bar","inner","striped-flow")]:Lt.stripedFlow}]),style:normalizeStyle$1(unref(ie))},[(Lt.showText||Lt.$slots.default)&&Lt.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).be("bar","innerText"))},[renderSlot(Lt.$slots,"default",{percentage:Lt.percentage},()=>[createBaseVNode("span",null,toDisplayString$1(unref(qe)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).b("circle")),style:normalizeStyle$1({height:`${Lt.width}px`,width:`${Lt.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$f,[createBaseVNode("path",{class:normalizeClass(unref(oe).be("circle","track")),d:unref(de),stroke:`var(${unref(oe).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":Lt.strokeLinecap,"stroke-width":unref(le),fill:"none",style:normalizeStyle$1(unref($e))},null,14,_hoisted_3$8),createBaseVNode("path",{class:normalizeClass(unref(oe).be("circle","path")),d:unref(de),stroke:unref(Ve),fill:"none",opacity:Lt.percentage?1:0,"stroke-linecap":Lt.strokeLinecap,"stroke-width":unref(le),style:normalizeStyle$1(unref(Ie))},null,14,_hoisted_4$5)]))],6)),(Lt.showText||Lt.$slots.default)&&!Lt.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(oe).e("text")),style:normalizeStyle$1({fontSize:`${unref(Ue)}px`})},[renderSlot(Lt.$slots,"default",{percentage:Lt.percentage},()=>[Lt.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Fe))))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$3,toDisplayString$1(unref(qe)),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$l))}});var Progress=_export_sfc$1(_sfc_main$I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const ElProgress=withInstall(Progress),rateProps=buildProps({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:definePropType([Array,Object]),default:()=>mutable(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:definePropType([Array,Object]),default:()=>[star_filled_default,star_filled_default,star_filled_default]},voidIcon:{type:iconPropType,default:()=>star_default},disabledVoidIcon:{type:iconPropType,default:()=>star_filled_default},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:definePropType(Array),default:()=>mutable(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:useSizeProp,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),rateEmits={[CHANGE_EVENT]:t=>isNumber$4(t),[UPDATE_MODEL_EVENT]:t=>isNumber$4(t)},_hoisted_1$k=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$e=["onMousemove","onClick"],__default__$v=defineComponent({name:"ElRate"}),_sfc_main$H=defineComponent({...__default__$v,props:rateProps,emits:rateEmits,setup(t,{expose:r,emit:V}){const oe=t;function ie(Dn,Mn){const Ln=Wn=>isObject$9(Wn),An=Object.keys(Mn).map(Wn=>+Wn).filter(Wn=>{const Fn=Mn[Wn];return(Ln(Fn)?Fn.excluded:!1)?DnWn-Fn),Vn=Mn[An[0]];return Ln(Vn)&&Vn.value||Vn}const le=inject(formContextKey,void 0),ue=inject(formItemContextKey,void 0),de=useFormSize(),pe=useNamespace("rate"),{inputId:he,isLabeledByFormItem:_e}=useFormItemInputId(oe,{formItemContext:ue}),$e=ref(oe.modelValue),Ie=ref(-1),Ve=ref(!0),Fe=computed(()=>[pe.b(),pe.m(de.value)]),Ue=computed(()=>oe.disabled||(le==null?void 0:le.disabled)),qe=computed(()=>pe.cssVarBlock({"void-color":oe.voidColor,"disabled-void-color":oe.disabledVoidColor,"fill-color":hn.value})),Et=computed(()=>{let Dn="";return oe.showScore?Dn=oe.scoreTemplate.replace(/\{\s*value\s*\}/,Ue.value?`${oe.modelValue}`:`${$e.value}`):oe.showText&&(Dn=oe.texts[Math.ceil($e.value)-1]),Dn}),At=computed(()=>oe.modelValue*100-Math.floor(oe.modelValue)*100),Lt=computed(()=>isArray$c(oe.colors)?{[oe.lowThreshold]:oe.colors[0],[oe.highThreshold]:{value:oe.colors[1],excluded:!0},[oe.max]:oe.colors[2]}:oe.colors),hn=computed(()=>{const Dn=ie($e.value,Lt.value);return isObject$9(Dn)?"":Dn}),_n=computed(()=>{let Dn="";return Ue.value?Dn=`${At.value}%`:oe.allowHalf&&(Dn="50%"),{color:hn.value,width:Dn}}),vn=computed(()=>{let Dn=isArray$c(oe.icons)?[...oe.icons]:{...oe.icons};return Dn=markRaw(Dn),isArray$c(Dn)?{[oe.lowThreshold]:Dn[0],[oe.highThreshold]:{value:Dn[1],excluded:!0},[oe.max]:Dn[2]}:Dn}),bn=computed(()=>ie(oe.modelValue,vn.value)),Cn=computed(()=>Ue.value?isString$6(oe.disabledVoidIcon)?oe.disabledVoidIcon:markRaw(oe.disabledVoidIcon):isString$6(oe.voidIcon)?oe.voidIcon:markRaw(oe.voidIcon)),Sn=computed(()=>ie($e.value,vn.value));function wn(Dn){const Mn=Ue.value&&At.value>0&&Dn-1oe.modelValue,Ln=oe.allowHalf&&Ve.value&&Dn-.5<=$e.value&&Dn>$e.value;return Mn||Ln}function En(Dn){oe.clearable&&Dn===oe.modelValue&&(Dn=0),V(UPDATE_MODEL_EVENT,Dn),oe.modelValue!==Dn&&V("change",Dn)}function xn(Dn){Ue.value||(oe.allowHalf&&Ve.value?En($e.value):En(Dn))}function Pn(Dn){if(Ue.value)return;let Mn=$e.value;const Ln=Dn.code;return Ln===EVENT_CODE.up||Ln===EVENT_CODE.right?(oe.allowHalf?Mn+=.5:Mn+=1,Dn.stopPropagation(),Dn.preventDefault()):(Ln===EVENT_CODE.left||Ln===EVENT_CODE.down)&&(oe.allowHalf?Mn-=.5:Mn-=1,Dn.stopPropagation(),Dn.preventDefault()),Mn=Mn<0?0:Mn,Mn=Mn>oe.max?oe.max:Mn,V(UPDATE_MODEL_EVENT,Mn),V("change",Mn),Mn}function kn(Dn,Mn){if(!Ue.value){if(oe.allowHalf&&Mn){let Ln=Mn.target;hasClass(Ln,pe.e("item"))&&(Ln=Ln.querySelector(`.${pe.e("icon")}`)),(Ln.clientWidth===0||hasClass(Ln,pe.e("decimal")))&&(Ln=Ln.parentNode),Ve.value=Mn.offsetX*2<=Ln.clientWidth,$e.value=Ve.value?Dn-.5:Dn}else $e.value=Dn;Ie.value=Dn}}function Nn(){Ue.value||(oe.allowHalf&&(Ve.value=oe.modelValue!==Math.floor(oe.modelValue)),$e.value=oe.modelValue,Ie.value=-1)}return watch(()=>oe.modelValue,Dn=>{$e.value=Dn,Ve.value=oe.modelValue!==Math.floor(oe.modelValue)}),oe.modelValue||V(UPDATE_MODEL_EVENT,0),r({setCurrentValue:kn,resetCurrentValue:Nn}),(Dn,Mn)=>{var Ln;return openBlock(),createElementBlock("div",{id:unref(he),class:normalizeClass([unref(Fe),unref(pe).is("disabled",unref(Ue))]),role:"slider","aria-label":unref(_e)?void 0:Dn.label||"rating","aria-labelledby":unref(_e)?(Ln=unref(ue))==null?void 0:Ln.labelId:void 0,"aria-valuenow":$e.value,"aria-valuetext":unref(Et)||void 0,"aria-valuemin":"0","aria-valuemax":Dn.max,tabindex:"0",style:normalizeStyle$1(unref(qe)),onKeydown:Pn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Dn.max,(An,Vn)=>(openBlock(),createElementBlock("span",{key:Vn,class:normalizeClass(unref(pe).e("item")),onMousemove:Wn=>kn(An,Wn),onMouseleave:Nn,onClick:Wn=>xn(An)},[createVNode(unref(ElIcon),{class:normalizeClass([unref(pe).e("icon"),{hover:Ie.value===An},unref(pe).is("active",An<=$e.value)])},{default:withCtx(()=>[wn(An)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(Sn)),null,null,512)),[[vShow,An<=$e.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(Cn)),null,null,512)),[[vShow,!(An<=$e.value)]])],64)),wn(An)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle$1(unref(_n)),class:normalizeClass([unref(pe).e("icon"),unref(pe).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(bn))))]),_:1},8,["style","class"])):createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,_hoisted_2$e))),128)),Dn.showText||Dn.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(pe).e("text"))},toDisplayString$1(unref(Et)),3)):createCommentVNode("v-if",!0)],46,_hoisted_1$k)}}});var Rate=_export_sfc$1(_sfc_main$H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ElRate=withInstall(Rate),IconMap={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},IconComponentMap={[IconMap.success]:circle_check_filled_default,[IconMap.warning]:warning_filled_default,[IconMap.error]:circle_close_filled_default,[IconMap.info]:info_filled_default},resultProps=buildProps({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),__default__$u=defineComponent({name:"ElResult"}),_sfc_main$G=defineComponent({...__default__$u,props:resultProps,setup(t){const r=t,V=useNamespace("result"),oe=computed(()=>{const ie=r.icon,le=ie&&IconMap[ie]?IconMap[ie]:"icon-info",ue=IconComponentMap[le]||IconComponentMap["icon-info"];return{class:le,component:ue}});return(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(V).b())},[createBaseVNode("div",{class:normalizeClass(unref(V).e("icon"))},[renderSlot(ie.$slots,"icon",{},()=>[unref(oe).component?(openBlock(),createBlock(resolveDynamicComponent(unref(oe).component),{key:0,class:normalizeClass(unref(oe).class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),ie.title||ie.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("title"))},[renderSlot(ie.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString$1(ie.title),1)])],2)):createCommentVNode("v-if",!0),ie.subTitle||ie.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(V).e("subtitle"))},[renderSlot(ie.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString$1(ie.subTitle),1)])],2)):createCommentVNode("v-if",!0),ie.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(V).e("extra"))},[renderSlot(ie.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2))}});var Result=_export_sfc$1(_sfc_main$G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result);var safeIsNaN=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function isEqual(t,r){return!!(t===r||safeIsNaN(t)&&safeIsNaN(r))}function areInputsEqual(t,r){if(t.length!==r.length)return!1;for(var V=0;V{const r=getCurrentInstance().proxy.$props;return computed(()=>{const V=(oe,ie,le)=>({});return r.perfMode?memoize(V):memoizeOne(V)})},DEFAULT_DYNAMIC_LIST_ITEM_SIZE=50,ITEM_RENDER_EVT="itemRendered",SCROLL_EVT="scroll",FORWARD="forward",BACKWARD="backward",AUTO_ALIGNMENT="auto",SMART_ALIGNMENT="smart",START_ALIGNMENT="start",CENTERED_ALIGNMENT="center",END_ALIGNMENT="end",HORIZONTAL$1="horizontal",VERTICAL$1="vertical",LTR="ltr",RTL="rtl",RTL_OFFSET_NAG="negative",RTL_OFFSET_POS_ASC="positive-ascending",RTL_OFFSET_POS_DESC="positive-descending",ScrollbarDirKey={[HORIZONTAL$1]:"left",[VERTICAL$1]:"top"},SCROLLBAR_MIN_SIZE=20,LayoutKeys={[HORIZONTAL$1]:"deltaX",[VERTICAL$1]:"deltaY"},useWheel=({atEndEdge:t,atStartEdge:r,layout:V},oe)=>{let ie,le=0;const ue=pe=>pe<0&&r.value||pe>0&&t.value;return{hasReachedEdge:ue,onWheel:pe=>{cAF(ie);const he=pe[LayoutKeys[V.value]];ue(le)&&ue(le+he)||(le+=he,isFirefox()||pe.preventDefault(),ie=rAF(()=>{oe(le),le=0}))}}},itemSize$1=buildProp({type:definePropType([Number,Function]),required:!0}),estimatedItemSize=buildProp({type:Number}),cache$1=buildProp({type:Number,default:2}),direction=buildProp({type:String,values:["ltr","rtl"],default:"ltr"}),initScrollOffset=buildProp({type:Number,default:0}),total=buildProp({type:Number,required:!0}),layout$3=buildProp({type:String,values:["horizontal","vertical"],default:VERTICAL$1}),virtualizedProps=buildProps({className:{type:String,default:""},containerElement:{type:definePropType([String,Object]),default:"div"},data:{type:definePropType(Array),default:()=>mutable([])},direction,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:definePropType([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),virtualizedListProps=buildProps({cache:cache$1,estimatedItemSize,layout:layout$3,initScrollOffset,total,itemSize:itemSize$1,...virtualizedProps}),scrollbarSize={type:Number,default:6},startGap={type:Number,default:0},endGap={type:Number,default:2},virtualizedGridProps=buildProps({columnCache:cache$1,columnWidth:itemSize$1,estimatedColumnWidth:estimatedItemSize,estimatedRowHeight:estimatedItemSize,initScrollLeft:initScrollOffset,initScrollTop:initScrollOffset,itemKey:{type:definePropType(Function),default:({columnIndex:t,rowIndex:r})=>`${r}:${t}`},rowCache:cache$1,rowHeight:itemSize$1,totalColumn:total,totalRow:total,hScrollbarSize:scrollbarSize,vScrollbarSize:scrollbarSize,scrollbarStartGap:startGap,scrollbarEndGap:endGap,role:String,...virtualizedProps}),virtualizedScrollbarProps=buildProps({alwaysOn:Boolean,class:String,layout:layout$3,total,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize,startGap,endGap,visible:Boolean}),getScrollDir=(t,r)=>tt===LTR||t===RTL||t===HORIZONTAL$1,isRTL=t=>t===RTL;let cachedRTLResult=null;function getRTLOffsetType(t=!1){if(cachedRTLResult===null||t){const r=document.createElement("div"),V=r.style;V.width="50px",V.height="50px",V.overflow="scroll",V.direction="rtl";const oe=document.createElement("div"),ie=oe.style;return ie.width="100px",ie.height="100px",r.appendChild(oe),document.body.appendChild(r),r.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(r.scrollLeft=1,r.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(r),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:t,size:r,bar:V},oe){const ie={},le=`translate${V.axis}(${t}px)`;return ie[V.size]=r,ie.transform=le,ie.msTransform=le,ie.webkitTransform=le,oe==="horizontal"?ie.height="100%":ie.width="100%",ie}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup(t,{emit:r}){const V=computed(()=>t.startGap+t.endGap),oe=useNamespace("virtual-scrollbar"),ie=useNamespace("scrollbar"),le=ref(),ue=ref();let de=null,pe=null;const he=reactive({isDragging:!1,traveled:0}),_e=computed(()=>BAR_MAP[t.layout]),$e=computed(()=>t.clientSize-unref(V)),Ie=computed(()=>({position:"absolute",width:`${HORIZONTAL$1===t.layout?$e.value:t.scrollbarSize}px`,height:`${HORIZONTAL$1===t.layout?t.scrollbarSize:$e.value}px`,[ScrollbarDirKey[t.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),Ve=computed(()=>{const vn=t.ratio,bn=t.clientSize;if(vn>=100)return Number.POSITIVE_INFINITY;if(vn>=50)return vn*bn/100;const Cn=bn/3;return Math.floor(Math.min(Math.max(vn*bn,SCROLLBAR_MIN_SIZE),Cn))}),Fe=computed(()=>{if(!Number.isFinite(Ve.value))return{display:"none"};const vn=`${Ve.value}px`;return renderThumbStyle({bar:_e.value,size:vn,move:he.traveled},t.layout)}),Ue=computed(()=>Math.floor(t.clientSize-Ve.value-unref(V))),qe=()=>{window.addEventListener("mousemove",hn),window.addEventListener("mouseup",Lt);const vn=unref(ue);vn&&(pe=document.onselectstart,document.onselectstart=()=>!1,vn.addEventListener("touchmove",hn),vn.addEventListener("touchend",Lt))},Et=()=>{window.removeEventListener("mousemove",hn),window.removeEventListener("mouseup",Lt),document.onselectstart=pe,pe=null;const vn=unref(ue);vn&&(vn.removeEventListener("touchmove",hn),vn.removeEventListener("touchend",Lt))},At=vn=>{vn.stopImmediatePropagation(),!(vn.ctrlKey||[1,2].includes(vn.button))&&(he.isDragging=!0,he[_e.value.axis]=vn.currentTarget[_e.value.offset]-(vn[_e.value.client]-vn.currentTarget.getBoundingClientRect()[_e.value.direction]),r("start-move"),qe())},Lt=()=>{he.isDragging=!1,he[_e.value.axis]=0,r("stop-move"),Et()},hn=vn=>{const{isDragging:bn}=he;if(!bn||!ue.value||!le.value)return;const Cn=he[_e.value.axis];if(!Cn)return;cAF(de);const Sn=(le.value.getBoundingClientRect()[_e.value.direction]-vn[_e.value.client])*-1,wn=ue.value[_e.value.offset]-Cn,En=Sn-wn;de=rAF(()=>{he.traveled=Math.max(t.startGap,Math.min(En,Ue.value)),r("scroll",En,Ue.value)})},_n=vn=>{const bn=Math.abs(vn.target.getBoundingClientRect()[_e.value.direction]-vn[_e.value.client]),Cn=ue.value[_e.value.offset]/2,Sn=bn-Cn;he.traveled=Math.max(0,Math.min(Sn,Ue.value)),r("scroll",Sn,Ue.value)};return watch(()=>t.scrollFrom,vn=>{he.isDragging||(he.traveled=Math.ceil(vn*Ue.value))}),onBeforeUnmount(()=>{Et()}),()=>h$2("div",{role:"presentation",ref:le,class:[oe.b(),t.class,(t.alwaysOn||he.isDragging)&&"always-on"],style:Ie.value,onMousedown:withModifiers(_n,["stop","prevent"]),onTouchstartPrevent:At},h$2("div",{ref:ue,class:ie.e("thumb"),style:Fe.value,onMousedown:At},[]))}}),createList$1=({name:t,getOffset:r,getItemSize:V,getItemOffset:oe,getEstimatedTotalSize:ie,getStartIndexForOffset:le,getStopIndexForStartIndex:ue,initCache:de,clearCache:pe,validateProps:he})=>defineComponent({name:t??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(_e,{emit:$e,expose:Ie}){he(_e);const Ve=getCurrentInstance(),Fe=useNamespace("vl"),Ue=ref(de(_e,Ve)),qe=useCache(),Et=ref(),At=ref(),Lt=ref(),hn=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$4(_e.initScrollOffset)?_e.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:_e.scrollbarAlwaysOn}),_n=computed(()=>{const{total:Yn,cache:tr}=_e,{isScrolling:yr,scrollDir:Jn,scrollOffset:Kn}=unref(hn);if(Yn===0)return[0,0,0,0];const Gn=le(_e,Kn,unref(Ue)),Qn=ue(_e,Gn,Kn,unref(Ue)),ur=!yr||Jn===BACKWARD?Math.max(1,tr):1,cr=!yr||Jn===FORWARD?Math.max(1,tr):1;return[Math.max(0,Gn-ur),Math.max(0,Math.min(Yn-1,Qn+cr)),Gn,Qn]}),vn=computed(()=>ie(_e,unref(Ue))),bn=computed(()=>isHorizontal(_e.layout)),Cn=computed(()=>[{position:"relative",[`overflow-${bn.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:_e.direction,height:isNumber$4(_e.height)?`${_e.height}px`:_e.height,width:isNumber$4(_e.width)?`${_e.width}px`:_e.width},_e.style]),Sn=computed(()=>{const Yn=unref(vn),tr=unref(bn);return{height:tr?"100%":`${Yn}px`,pointerEvents:unref(hn).isScrolling?"none":void 0,width:tr?`${Yn}px`:"100%"}}),wn=computed(()=>bn.value?_e.width:_e.height),{onWheel:En}=useWheel({atStartEdge:computed(()=>hn.value.scrollOffset<=0),atEndEdge:computed(()=>hn.value.scrollOffset>=vn.value),layout:computed(()=>_e.layout)},Yn=>{var tr,yr;(yr=(tr=Lt.value).onMouseUp)==null||yr.call(tr),Mn(Math.min(hn.value.scrollOffset+Yn,vn.value-wn.value))}),xn=()=>{const{total:Yn}=_e;if(Yn>0){const[Kn,Gn,Qn,ur]=unref(_n);$e(ITEM_RENDER_EVT,Kn,Gn,Qn,ur)}const{scrollDir:tr,scrollOffset:yr,updateRequested:Jn}=unref(hn);$e(SCROLL_EVT,tr,yr,Jn)},Pn=Yn=>{const{clientHeight:tr,scrollHeight:yr,scrollTop:Jn}=Yn.currentTarget,Kn=unref(hn);if(Kn.scrollOffset===Jn)return;const Gn=Math.max(0,Math.min(Jn,yr-tr));hn.value={...Kn,isScrolling:!0,scrollDir:getScrollDir(Kn.scrollOffset,Gn),scrollOffset:Gn,updateRequested:!1},nextTick(Vn)},kn=Yn=>{const{clientWidth:tr,scrollLeft:yr,scrollWidth:Jn}=Yn.currentTarget,Kn=unref(hn);if(Kn.scrollOffset===yr)return;const{direction:Gn}=_e;let Qn=yr;if(Gn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Qn=-yr;break}case RTL_OFFSET_POS_DESC:{Qn=Jn-tr-yr;break}}Qn=Math.max(0,Math.min(Qn,Jn-tr)),hn.value={...Kn,isScrolling:!0,scrollDir:getScrollDir(Kn.scrollOffset,Qn),scrollOffset:Qn,updateRequested:!1},nextTick(Vn)},Nn=Yn=>{unref(bn)?kn(Yn):Pn(Yn),xn()},Dn=(Yn,tr)=>{const yr=(vn.value-wn.value)/tr*Yn;Mn(Math.min(vn.value-wn.value,yr))},Mn=Yn=>{Yn=Math.max(Yn,0),Yn!==unref(hn).scrollOffset&&(hn.value={...unref(hn),scrollOffset:Yn,scrollDir:getScrollDir(unref(hn).scrollOffset,Yn),updateRequested:!0},nextTick(Vn))},Ln=(Yn,tr=AUTO_ALIGNMENT)=>{const{scrollOffset:yr}=unref(hn);Yn=Math.max(0,Math.min(Yn,_e.total-1)),Mn(r(_e,Yn,tr,yr,unref(Ue)))},An=Yn=>{const{direction:tr,itemSize:yr,layout:Jn}=_e,Kn=qe.value(pe&&yr,pe&&Jn,pe&&tr);let Gn;if(hasOwn$4(Kn,String(Yn)))Gn=Kn[Yn];else{const Qn=oe(_e,Yn,unref(Ue)),ur=V(_e,Yn,unref(Ue)),cr=unref(bn),Un=tr===RTL,qn=cr?Qn:0;Kn[Yn]=Gn={position:"absolute",left:Un?void 0:`${qn}px`,right:Un?`${qn}px`:void 0,top:cr?0:`${Qn}px`,height:cr?"100%":`${ur}px`,width:cr?`${ur}px`:"100%"}}return Gn},Vn=()=>{hn.value.isScrolling=!1,nextTick(()=>{qe.value(-1,null,null)})},Wn=()=>{const Yn=Et.value;Yn&&(Yn.scrollTop=0)};onMounted(()=>{if(!isClient$1)return;const{initScrollOffset:Yn}=_e,tr=unref(Et);isNumber$4(Yn)&&tr&&(unref(bn)?tr.scrollLeft=Yn:tr.scrollTop=Yn),xn()}),onUpdated(()=>{const{direction:Yn,layout:tr}=_e,{scrollOffset:yr,updateRequested:Jn}=unref(hn),Kn=unref(Et);if(Jn&&Kn)if(tr===HORIZONTAL$1)if(Yn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Kn.scrollLeft=-yr;break}case RTL_OFFSET_POS_ASC:{Kn.scrollLeft=yr;break}default:{const{clientWidth:Gn,scrollWidth:Qn}=Kn;Kn.scrollLeft=Qn-Gn-yr;break}}else Kn.scrollLeft=yr;else Kn.scrollTop=yr});const Fn={ns:Fe,clientSize:wn,estimatedTotalSize:vn,windowStyle:Cn,windowRef:Et,innerRef:At,innerStyle:Sn,itemsToRender:_n,scrollbarRef:Lt,states:hn,getItemStyle:An,onScroll:Nn,onScrollbarScroll:Dn,onWheel:En,scrollTo:Mn,scrollToItem:Ln,resetScrollTop:Wn};return Ie({windowRef:Et,innerRef:At,getItemStyleCache:qe,scrollTo:Mn,scrollToItem:Ln,resetScrollTop:Wn,states:hn}),Fn},render(_e){var $e;const{$slots:Ie,className:Ve,clientSize:Fe,containerElement:Ue,data:qe,getItemStyle:Et,innerElement:At,itemsToRender:Lt,innerStyle:hn,layout:_n,total:vn,onScroll:bn,onScrollbarScroll:Cn,onWheel:Sn,states:wn,useIsScrolling:En,windowStyle:xn,ns:Pn}=_e,[kn,Nn]=Lt,Dn=resolveDynamicComponent(Ue),Mn=resolveDynamicComponent(At),Ln=[];if(vn>0)for(let Fn=kn;Fn<=Nn;Fn++)Ln.push(($e=Ie.default)==null?void 0:$e.call(Ie,{data:qe,key:Fn,index:Fn,isScrolling:En?wn.isScrolling:void 0,style:Et(Fn)}));const An=[h$2(Mn,{style:hn,ref:"innerRef"},isString$6(Mn)?Ln:{default:()=>Ln})],Vn=h$2(ScrollBar,{ref:"scrollbarRef",clientSize:Fe,layout:_n,onScroll:Cn,ratio:Fe*100/this.estimatedTotalSize,scrollFrom:wn.scrollOffset/(this.estimatedTotalSize-Fe),total:vn}),Wn=h$2(Dn,{class:[Pn.e("window"),Ve],style:xn,onScroll:bn,onWheel:Sn,ref:"windowRef",key:0},isString$6(Dn)?[An]:{default:()=>[An]});return h$2("div",{key:0,class:[Pn.e("wrapper"),wn.scrollbarAlwaysOn?"always-on":""]},[Wn,Vn])}}),FixedSizeList=createList$1({name:"ElFixedSizeList",getItemOffset:({itemSize:t},r)=>r*t,getItemSize:({itemSize:t})=>t,getEstimatedTotalSize:({total:t,itemSize:r})=>r*t,getOffset:({height:t,total:r,itemSize:V,layout:oe,width:ie},le,ue,de)=>{const pe=isHorizontal(oe)?ie:t,he=Math.max(0,r*V-pe),_e=Math.min(he,le*V),$e=Math.max(0,(le+1)*V-pe);switch(ue===SMART_ALIGNMENT&&(de>=$e-pe&&de<=_e+pe?ue=AUTO_ALIGNMENT:ue=CENTERED_ALIGNMENT),ue){case START_ALIGNMENT:return _e;case END_ALIGNMENT:return $e;case CENTERED_ALIGNMENT:{const Ie=Math.round($e+(_e-$e)/2);return Iehe+Math.floor(pe/2)?he:Ie}case AUTO_ALIGNMENT:default:return de>=$e&&de<=_e?de:de<$e?$e:_e}},getStartIndexForOffset:({total:t,itemSize:r},V)=>Math.max(0,Math.min(t-1,Math.floor(V/r))),getStopIndexForStartIndex:({height:t,total:r,itemSize:V,layout:oe,width:ie},le,ue)=>{const de=le*V,pe=isHorizontal(oe)?ie:t,he=Math.ceil((pe+ue-de)/V);return Math.max(0,Math.min(r-1,le+he-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=(t,r,V)=>{const{itemSize:oe}=t,{items:ie,lastVisitedIndex:le}=V;if(r>le){let ue=0;if(le>=0){const de=ie[le];ue=de.offset+de.size}for(let de=le+1;de<=r;de++){const pe=oe(de);ie[de]={offset:ue,size:pe},ue+=pe}V.lastVisitedIndex=r}return ie[r]},findItem$1=(t,r,V)=>{const{items:oe,lastVisitedIndex:ie}=r;return(ie>0?oe[ie].offset:0)>=V?bs$1(t,r,0,ie,V):es$1(t,r,Math.max(0,ie),V)},bs$1=(t,r,V,oe,ie)=>{for(;V<=oe;){const le=V+Math.floor((oe-V)/2),ue=getItemFromCache$1(t,le,r).offset;if(ue===ie)return le;ueie&&(oe=le-1)}return Math.max(0,V-1)},es$1=(t,r,V,oe)=>{const{total:ie}=t;let le=1;for(;V{let ie=0;if(oe>=t&&(oe=t-1),oe>=0){const de=r[oe];ie=de.offset+de.size}const ue=(t-oe-1)*V;return ie+ue},DynamicSizeList=createList$1({name:"ElDynamicSizeList",getItemOffset:(t,r,V)=>getItemFromCache$1(t,r,V).offset,getItemSize:(t,r,{items:V})=>V[r].size,getEstimatedTotalSize,getOffset:(t,r,V,oe,ie)=>{const{height:le,layout:ue,width:de}=t,pe=isHorizontal(ue)?de:le,he=getItemFromCache$1(t,r,ie),_e=getEstimatedTotalSize(t,ie),$e=Math.max(0,Math.min(_e-pe,he.offset)),Ie=Math.max(0,he.offset-pe+he.size);switch(V===SMART_ALIGNMENT&&(oe>=Ie-pe&&oe<=$e+pe?V=AUTO_ALIGNMENT:V=CENTERED_ALIGNMENT),V){case START_ALIGNMENT:return $e;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:return Math.round(Ie+($e-Ie)/2);case AUTO_ALIGNMENT:default:return oe>=Ie&&oe<=$e?oe:oefindItem$1(t,V,r),getStopIndexForStartIndex:(t,r,V,oe)=>{const{height:ie,total:le,layout:ue,width:de}=t,pe=isHorizontal(ue)?de:ie,he=getItemFromCache$1(t,r,oe),_e=V+pe;let $e=he.offset+he.size,Ie=r;for(;Ie{var le,ue;V.lastVisitedIndex=Math.min(V.lastVisitedIndex,oe-1),(le=r.exposed)==null||le.getItemStyleCache(-1),ie&&((ue=r.proxy)==null||ue.$forceUpdate())},V},clearCache:!1,validateProps:({itemSize:t})=>{}}),useGridWheel=({atXEndEdge:t,atXStartEdge:r,atYEndEdge:V,atYStartEdge:oe},ie)=>{let le=null,ue=0,de=0;const pe=(_e,$e)=>{const Ie=_e<=0&&r.value||_e>=0&&t.value,Ve=$e<=0&&oe.value||$e>=0&&V.value;return Ie&&Ve};return{hasReachedEdge:pe,onWheel:_e=>{cAF(le);let $e=_e.deltaX,Ie=_e.deltaY;Math.abs($e)>Math.abs(Ie)?Ie=0:$e=0,_e.shiftKey&&Ie!==0&&($e=Ie,Ie=0),!(pe(ue,de)&&pe(ue+$e,de+Ie))&&(ue+=$e,de+=Ie,_e.preventDefault(),le=rAF(()=>{ie(ue,de),ue=0,de=0}))}}},createGrid=({name:t,clearCache:r,getColumnPosition:V,getColumnStartIndexForOffset:oe,getColumnStopIndexForStartIndex:ie,getEstimatedTotalHeight:le,getEstimatedTotalWidth:ue,getColumnOffset:de,getRowOffset:pe,getRowPosition:he,getRowStartIndexForOffset:_e,getRowStopIndexForStartIndex:$e,initCache:Ie,injectToInstance:Ve,validateProps:Fe})=>defineComponent({name:t??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(Ue,{emit:qe,expose:Et,slots:At}){const Lt=useNamespace("vl");Fe(Ue);const hn=getCurrentInstance(),_n=ref(Ie(Ue,hn));Ve==null||Ve(hn,_n);const vn=ref(),bn=ref(),Cn=ref(),Sn=ref(null),wn=ref({isScrolling:!1,scrollLeft:isNumber$4(Ue.initScrollLeft)?Ue.initScrollLeft:0,scrollTop:isNumber$4(Ue.initScrollTop)?Ue.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),En=useCache(),xn=computed(()=>Number.parseInt(`${Ue.height}`,10)),Pn=computed(()=>Number.parseInt(`${Ue.width}`,10)),kn=computed(()=>{const{totalColumn:dr,totalRow:xr,columnCache:wr}=Ue,{isScrolling:Cr,xAxisScrollDir:gr,scrollLeft:or}=unref(wn);if(dr===0||xr===0)return[0,0,0,0];const fr=oe(Ue,or,unref(_n)),kr=ie(Ue,fr,or,unref(_n)),br=!Cr||gr===BACKWARD?Math.max(1,wr):1,Ar=!Cr||gr===FORWARD?Math.max(1,wr):1;return[Math.max(0,fr-br),Math.max(0,Math.min(dr-1,kr+Ar)),fr,kr]}),Nn=computed(()=>{const{totalColumn:dr,totalRow:xr,rowCache:wr}=Ue,{isScrolling:Cr,yAxisScrollDir:gr,scrollTop:or}=unref(wn);if(dr===0||xr===0)return[0,0,0,0];const fr=_e(Ue,or,unref(_n)),kr=$e(Ue,fr,or,unref(_n)),br=!Cr||gr===BACKWARD?Math.max(1,wr):1,Ar=!Cr||gr===FORWARD?Math.max(1,wr):1;return[Math.max(0,fr-br),Math.max(0,Math.min(xr-1,kr+Ar)),fr,kr]}),Dn=computed(()=>le(Ue,unref(_n))),Mn=computed(()=>ue(Ue,unref(_n))),Ln=computed(()=>{var dr;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:Ue.direction,height:isNumber$4(Ue.height)?`${Ue.height}px`:Ue.height,width:isNumber$4(Ue.width)?`${Ue.width}px`:Ue.width},(dr=Ue.style)!=null?dr:{}]}),An=computed(()=>{const dr=`${unref(Mn)}px`;return{height:`${unref(Dn)}px`,pointerEvents:unref(wn).isScrolling?"none":void 0,width:dr}}),Vn=()=>{const{totalColumn:dr,totalRow:xr}=Ue;if(dr>0&&xr>0){const[kr,br,Ar,Dr]=unref(kn),[Br,zr,Rr,mr]=unref(Nn);qe(ITEM_RENDER_EVT,{columnCacheStart:kr,columnCacheEnd:br,rowCacheStart:Br,rowCacheEnd:zr,columnVisibleStart:Ar,columnVisibleEnd:Dr,rowVisibleStart:Rr,rowVisibleEnd:mr})}const{scrollLeft:wr,scrollTop:Cr,updateRequested:gr,xAxisScrollDir:or,yAxisScrollDir:fr}=unref(wn);qe(SCROLL_EVT,{xAxisScrollDir:or,scrollLeft:wr,yAxisScrollDir:fr,scrollTop:Cr,updateRequested:gr})},Wn=dr=>{const{clientHeight:xr,clientWidth:wr,scrollHeight:Cr,scrollLeft:gr,scrollTop:or,scrollWidth:fr}=dr.currentTarget,kr=unref(wn);if(kr.scrollTop===or&&kr.scrollLeft===gr)return;let br=gr;if(isRTL(Ue.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:br=-gr;break;case RTL_OFFSET_POS_DESC:br=fr-wr-gr;break}wn.value={...kr,isScrolling:!0,scrollLeft:br,scrollTop:Math.max(0,Math.min(or,Cr-xr)),updateRequested:!0,xAxisScrollDir:getScrollDir(kr.scrollLeft,br),yAxisScrollDir:getScrollDir(kr.scrollTop,or)},nextTick(()=>Gn()),Qn(),Vn()},Fn=(dr,xr)=>{const wr=unref(xn),Cr=(Dn.value-wr)/xr*dr;yr({scrollTop:Math.min(Dn.value-wr,Cr)})},Yn=(dr,xr)=>{const wr=unref(Pn),Cr=(Mn.value-wr)/xr*dr;yr({scrollLeft:Math.min(Mn.value-wr,Cr)})},{onWheel:tr}=useGridWheel({atXStartEdge:computed(()=>wn.value.scrollLeft<=0),atXEndEdge:computed(()=>wn.value.scrollLeft>=Mn.value-unref(Pn)),atYStartEdge:computed(()=>wn.value.scrollTop<=0),atYEndEdge:computed(()=>wn.value.scrollTop>=Dn.value-unref(xn))},(dr,xr)=>{var wr,Cr,gr,or;(Cr=(wr=bn.value)==null?void 0:wr.onMouseUp)==null||Cr.call(wr),(or=(gr=Cn.value)==null?void 0:gr.onMouseUp)==null||or.call(gr);const fr=unref(Pn),kr=unref(xn);yr({scrollLeft:Math.min(wn.value.scrollLeft+dr,Mn.value-fr),scrollTop:Math.min(wn.value.scrollTop+xr,Dn.value-kr)})}),yr=({scrollLeft:dr=wn.value.scrollLeft,scrollTop:xr=wn.value.scrollTop})=>{dr=Math.max(dr,0),xr=Math.max(xr,0);const wr=unref(wn);xr===wr.scrollTop&&dr===wr.scrollLeft||(wn.value={...wr,xAxisScrollDir:getScrollDir(wr.scrollLeft,dr),yAxisScrollDir:getScrollDir(wr.scrollTop,xr),scrollLeft:dr,scrollTop:xr,updateRequested:!0},nextTick(()=>Gn()),Qn(),Vn())},Jn=(dr=0,xr=0,wr=AUTO_ALIGNMENT)=>{const Cr=unref(wn);xr=Math.max(0,Math.min(xr,Ue.totalColumn-1)),dr=Math.max(0,Math.min(dr,Ue.totalRow-1));const gr=getScrollBarWidth(Lt.namespace.value),or=unref(_n),fr=le(Ue,or),kr=ue(Ue,or);yr({scrollLeft:de(Ue,xr,wr,Cr.scrollLeft,or,kr>Ue.width?gr:0),scrollTop:pe(Ue,dr,wr,Cr.scrollTop,or,fr>Ue.height?gr:0)})},Kn=(dr,xr)=>{const{columnWidth:wr,direction:Cr,rowHeight:gr}=Ue,or=En.value(r&&wr,r&&gr,r&&Cr),fr=`${dr},${xr}`;if(hasOwn$4(or,fr))return or[fr];{const[,kr]=V(Ue,xr,unref(_n)),br=unref(_n),Ar=isRTL(Cr),[Dr,Br]=he(Ue,dr,br),[zr]=V(Ue,xr,br);return or[fr]={position:"absolute",left:Ar?void 0:`${kr}px`,right:Ar?`${kr}px`:void 0,top:`${Br}px`,height:`${Dr}px`,width:`${zr}px`},or[fr]}},Gn=()=>{wn.value.isScrolling=!1,nextTick(()=>{En.value(-1,null,null)})};onMounted(()=>{if(!isClient$1)return;const{initScrollLeft:dr,initScrollTop:xr}=Ue,wr=unref(vn);wr&&(isNumber$4(dr)&&(wr.scrollLeft=dr),isNumber$4(xr)&&(wr.scrollTop=xr)),Vn()});const Qn=()=>{const{direction:dr}=Ue,{scrollLeft:xr,scrollTop:wr,updateRequested:Cr}=unref(wn),gr=unref(vn);if(Cr&&gr){if(dr===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{gr.scrollLeft=-xr;break}case RTL_OFFSET_POS_ASC:{gr.scrollLeft=xr;break}default:{const{clientWidth:or,scrollWidth:fr}=gr;gr.scrollLeft=fr-or-xr;break}}else gr.scrollLeft=Math.max(0,xr);gr.scrollTop=Math.max(0,wr)}},{resetAfterColumnIndex:ur,resetAfterRowIndex:cr,resetAfter:Un}=hn.proxy;Et({windowRef:vn,innerRef:Sn,getItemStyleCache:En,scrollTo:yr,scrollToItem:Jn,states:wn,resetAfterColumnIndex:ur,resetAfterRowIndex:cr,resetAfter:Un});const qn=()=>{const{scrollbarAlwaysOn:dr,scrollbarStartGap:xr,scrollbarEndGap:wr,totalColumn:Cr,totalRow:gr}=Ue,or=unref(Pn),fr=unref(xn),kr=unref(Mn),br=unref(Dn),{scrollLeft:Ar,scrollTop:Dr}=unref(wn),Br=h$2(ScrollBar,{ref:bn,alwaysOn:dr,startGap:xr,endGap:wr,class:Lt.e("horizontal"),clientSize:or,layout:"horizontal",onScroll:Yn,ratio:or*100/kr,scrollFrom:Ar/(kr-or),total:gr,visible:!0}),zr=h$2(ScrollBar,{ref:Cn,alwaysOn:dr,startGap:xr,endGap:wr,class:Lt.e("vertical"),clientSize:fr,layout:"vertical",onScroll:Fn,ratio:fr*100/br,scrollFrom:Dr/(br-fr),total:Cr,visible:!0});return{horizontalScrollbar:Br,verticalScrollbar:zr}},er=()=>{var dr;const[xr,wr]=unref(kn),[Cr,gr]=unref(Nn),{data:or,totalColumn:fr,totalRow:kr,useIsScrolling:br,itemKey:Ar}=Ue,Dr=[];if(kr>0&&fr>0)for(let Br=Cr;Br<=gr;Br++)for(let zr=xr;zr<=wr;zr++)Dr.push((dr=At.default)==null?void 0:dr.call(At,{columnIndex:zr,data:or,key:Ar({columnIndex:zr,data:or,rowIndex:Br}),isScrolling:br?unref(wn).isScrolling:void 0,style:Kn(Br,zr),rowIndex:Br}));return Dr},pr=()=>{const dr=resolveDynamicComponent(Ue.innerElement),xr=er();return[h$2(dr,{style:unref(An),ref:Sn},isString$6(dr)?xr:{default:()=>xr})]};return()=>{const dr=resolveDynamicComponent(Ue.containerElement),{horizontalScrollbar:xr,verticalScrollbar:wr}=qn(),Cr=pr();return h$2("div",{key:0,class:Lt.e("wrapper"),role:Ue.role},[h$2(dr,{class:Ue.className,style:unref(Ln),onScroll:Wn,onWheel:tr,ref:vn},isString$6(dr)?Cr:{default:()=>Cr}),xr,wr])}}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:t},r)=>[t,r*t],getRowPosition:({rowHeight:t},r)=>[t,r*t],getEstimatedTotalHeight:({totalRow:t,rowHeight:r})=>r*t,getEstimatedTotalWidth:({totalColumn:t,columnWidth:r})=>r*t,getColumnOffset:({totalColumn:t,columnWidth:r,width:V},oe,ie,le,ue,de)=>{V=Number(V);const pe=Math.max(0,t*r-V),he=Math.min(pe,oe*r),_e=Math.max(0,oe*r-V+de+r);switch(ie==="smart"&&(le>=_e-V&&le<=he+V?ie=AUTO_ALIGNMENT:ie=CENTERED_ALIGNMENT),ie){case START_ALIGNMENT:return he;case END_ALIGNMENT:return _e;case CENTERED_ALIGNMENT:{const $e=Math.round(_e+(he-_e)/2);return $epe+Math.floor(V/2)?pe:$e}case AUTO_ALIGNMENT:default:return le>=_e&&le<=he?le:_e>he||le<_e?_e:he}},getRowOffset:({rowHeight:t,height:r,totalRow:V},oe,ie,le,ue,de)=>{r=Number(r);const pe=Math.max(0,V*t-r),he=Math.min(pe,oe*t),_e=Math.max(0,oe*t-r+de+t);switch(ie===SMART_ALIGNMENT&&(le>=_e-r&&le<=he+r?ie=AUTO_ALIGNMENT:ie=CENTERED_ALIGNMENT),ie){case START_ALIGNMENT:return he;case END_ALIGNMENT:return _e;case CENTERED_ALIGNMENT:{const $e=Math.round(_e+(he-_e)/2);return $epe+Math.floor(r/2)?pe:$e}case AUTO_ALIGNMENT:default:return le>=_e&&le<=he?le:_e>he||le<_e?_e:he}},getColumnStartIndexForOffset:({columnWidth:t,totalColumn:r},V)=>Math.max(0,Math.min(r-1,Math.floor(V/t))),getColumnStopIndexForStartIndex:({columnWidth:t,totalColumn:r,width:V},oe,ie)=>{const le=oe*t,ue=Math.ceil((V+ie-le)/t);return Math.max(0,Math.min(r-1,oe+ue-1))},getRowStartIndexForOffset:({rowHeight:t,totalRow:r},V)=>Math.max(0,Math.min(r-1,Math.floor(V/t))),getRowStopIndexForStartIndex:({rowHeight:t,totalRow:r,height:V},oe,ie)=>{const le=oe*t,ue=Math.ceil((V+ie-le)/t);return Math.max(0,Math.min(r-1,oe+ue-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:t,rowHeight:r})=>{}}),{max:max$2,min:min$2,floor}=Math,ACCESS_SIZER_KEY_MAP={column:"columnWidth",row:"rowHeight"},ACCESS_LAST_VISITED_KEY_MAP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},getItemFromCache=(t,r,V,oe)=>{const[ie,le,ue]=[V[oe],t[ACCESS_SIZER_KEY_MAP[oe]],V[ACCESS_LAST_VISITED_KEY_MAP[oe]]];if(r>ue){let de=0;if(ue>=0){const pe=ie[ue];de=pe.offset+pe.size}for(let pe=ue+1;pe<=r;pe++){const he=le(pe);ie[pe]={offset:de,size:he},de+=he}V[ACCESS_LAST_VISITED_KEY_MAP[oe]]=r}return ie[r]},bs=(t,r,V,oe,ie,le)=>{for(;V<=oe;){const ue=V+floor((oe-V)/2),de=getItemFromCache(t,ue,r,le).offset;if(de===ie)return ue;de{const le=ie==="column"?t.totalColumn:t.totalRow;let ue=1;for(;V{const[ie,le]=[r[oe],r[ACCESS_LAST_VISITED_KEY_MAP[oe]]];return(le>0?ie[le].offset:0)>=V?bs(t,r,0,le,V,oe):es(t,r,max$2(0,le),V,oe)},getEstimatedTotalHeight=({totalRow:t},{estimatedRowHeight:r,lastVisitedRowIndex:V,row:oe})=>{let ie=0;if(V>=t&&(V=t-1),V>=0){const de=oe[V];ie=de.offset+de.size}const ue=(t-V-1)*r;return ie+ue},getEstimatedTotalWidth=({totalColumn:t},{column:r,estimatedColumnWidth:V,lastVisitedColumnIndex:oe})=>{let ie=0;if(oe>t&&(oe=t-1),oe>=0){const de=r[oe];ie=de.offset+de.size}const ue=(t-oe-1)*V;return ie+ue},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=(t,r,V,oe,ie,le,ue)=>{const[de,pe]=[le==="row"?t.height:t.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[le]],he=getItemFromCache(t,r,ie,le),_e=pe(t,ie),$e=max$2(0,min$2(_e-de,he.offset)),Ie=max$2(0,he.offset-de+ue+he.size);switch(V===SMART_ALIGNMENT&&(oe>=Ie-de&&oe<=$e+de?V=AUTO_ALIGNMENT:V=CENTERED_ALIGNMENT),V){case START_ALIGNMENT:return $e;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:return Math.round(Ie+($e-Ie)/2);case AUTO_ALIGNMENT:default:return oe>=Ie&&oe<=$e?oe:Ie>$e||oe{const oe=getItemFromCache(t,r,V,"column");return[oe.size,oe.offset]},getRowPosition:(t,r,V)=>{const oe=getItemFromCache(t,r,V,"row");return[oe.size,oe.offset]},getColumnOffset:(t,r,V,oe,ie,le)=>getOffset$1(t,r,V,oe,ie,"column",le),getRowOffset:(t,r,V,oe,ie,le)=>getOffset$1(t,r,V,oe,ie,"row",le),getColumnStartIndexForOffset:(t,r,V)=>findItem(t,V,r,"column"),getColumnStopIndexForStartIndex:(t,r,V,oe)=>{const ie=getItemFromCache(t,r,oe,"column"),le=V+t.width;let ue=ie.offset+ie.size,de=r;for(;defindItem(t,V,r,"row"),getRowStopIndexForStartIndex:(t,r,V,oe)=>{const{totalRow:ie,height:le}=t,ue=getItemFromCache(t,r,oe,"row"),de=V+le;let pe=ue.size+ue.offset,he=r;for(;he{const V=({columnIndex:le,rowIndex:ue},de)=>{var pe,he;de=isUndefined$1(de)?!0:de,isNumber$4(le)&&(r.value.lastVisitedColumnIndex=Math.min(r.value.lastVisitedColumnIndex,le-1)),isNumber$4(ue)&&(r.value.lastVisitedRowIndex=Math.min(r.value.lastVisitedRowIndex,ue-1)),(pe=t.exposed)==null||pe.getItemStyleCache.value(-1,null,null),de&&((he=t.proxy)==null||he.$forceUpdate())},oe=(le,ue)=>{V({columnIndex:le},ue)},ie=(le,ue)=>{V({rowIndex:le},ue)};Object.assign(t.proxy,{resetAfterColumnIndex:oe,resetAfterRowIndex:ie,resetAfter:V})},initCache:({estimatedColumnWidth:t=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:r=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:t,estimatedRowHeight:r,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:t,rowHeight:r})=>{}}),_sfc_main$F=defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$8(t,r,V,oe,ie,le){return t.item.isTitle?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.be("group","title")),style:normalizeStyle$1([t.style,{lineHeight:`${t.height}px`}])},toDisplayString$1(t.item.label),7)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.be("group","split")),style:normalizeStyle$1(t.style)},[createBaseVNode("span",{class:normalizeClass(t.ns.be("group","split-dash")),style:normalizeStyle$1({top:`${t.height/2}px`})},null,6)],6))}var GroupItem=_export_sfc$1(_sfc_main$F,[["render",_sfc_render$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption(t,{emit:r}){return{hoverItem:()=>{t.disabled||r("hover",t.index)},selectOptionClick:()=>{t.disabled||r("select",t.item,t.index)}}}const SelectProps={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:circle_close_default},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:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:isValidComponentSize},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:definePropType(String),values:Ee,default:"bottom-start"}},OptionProps={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},_sfc_main$E=defineComponent({props:OptionProps,emits:["select","hover"],setup(t,{emit:r}){const V=useNamespace("select"),{hoverItem:oe,selectOptionClick:ie}=useOption(t,{emit:r});return{ns:V,hoverItem:oe,selectOptionClick:ie}}}),_hoisted_1$j=["aria-selected"];function _sfc_render$7(t,r,V,oe,ie,le){return openBlock(),createElementBlock("li",{"aria-selected":t.selected,style:normalizeStyle$1(t.style),class:normalizeClass([t.ns.be("dropdown","option-item"),t.ns.is("selected",t.selected),t.ns.is("disabled",t.disabled),t.ns.is("created",t.created),{hover:t.hovering}]),onMouseenter:r[0]||(r[0]=(...ue)=>t.hoverItem&&t.hoverItem(...ue)),onClick:r[1]||(r[1]=withModifiers((...ue)=>t.selectOptionClick&&t.selectOptionClick(...ue),["stop"]))},[renderSlot(t.$slots,"default",{item:t.item,index:t.index,disabled:t.disabled},()=>[createBaseVNode("span",null,toDisplayString$1(t.item.label),1)])],46,_hoisted_1$j)}var OptionItem=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const selectV2InjectionKey=Symbol("ElSelectV2Injection");var ElSelectMenu=defineComponent({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(t,{slots:r,expose:V}){const oe=inject(selectV2InjectionKey),ie=useNamespace("select"),le=ref([]),ue=ref(),de=computed(()=>t.data.length);watch(()=>de.value,()=>{var Cn,Sn;(Sn=(Cn=oe.popper.value).updatePopper)==null||Sn.call(Cn)});const pe=computed(()=>isUndefined$1(oe.props.estimatedOptionHeight)),he=computed(()=>pe.value?{itemSize:oe.props.itemHeight}:{estimatedSize:oe.props.estimatedOptionHeight,itemSize:Cn=>le.value[Cn]}),_e=(Cn=[],Sn)=>{const{props:{valueKey:wn}}=oe;return isObject$9(Sn)?Cn&&Cn.some(En=>get$1(En,wn)===get$1(Sn,wn)):Cn.includes(Sn)},$e=(Cn,Sn)=>{if(isObject$9(Sn)){const{valueKey:wn}=oe.props;return get$1(Cn,wn)===get$1(Sn,wn)}else return Cn===Sn},Ie=(Cn,Sn)=>{const{valueKey:wn}=oe.props;return oe.props.multiple?_e(Cn,get$1(Sn,wn)):$e(Cn,get$1(Sn,wn))},Ve=(Cn,Sn)=>{const{disabled:wn,multiple:En,multipleLimit:xn}=oe.props;return wn||!Sn&&(En?xn>0&&Cn.length>=xn:!1)},Fe=Cn=>t.hoveringIndex===Cn;V({listRef:ue,isSized:pe,isItemDisabled:Ve,isItemHovering:Fe,isItemSelected:Ie,scrollToItem:Cn=>{const Sn=ue.value;Sn&&Sn.scrollToItem(Cn)},resetScrollTop:()=>{const Cn=ue.value;Cn&&Cn.resetScrollTop()}});const Et=Cn=>{const{index:Sn,data:wn,style:En}=Cn,xn=unref(pe),{itemSize:Pn,estimatedSize:kn}=unref(he),{modelValue:Nn}=oe.props,{onSelect:Dn,onHover:Mn}=oe,Ln=wn[Sn];if(Ln.type==="Group")return createVNode(GroupItem,{item:Ln,style:En,height:xn?Pn:kn},null);const An=Ie(Nn,Ln),Vn=Ve(Nn,An),Wn=Fe(Sn);return createVNode(OptionItem,mergeProps(Cn,{selected:An,disabled:Ln.disabled||Vn,created:!!Ln.created,hovering:Wn,item:Ln,onSelect:Dn,onHover:Mn}),{default:Fn=>{var Yn;return((Yn=r.default)==null?void 0:Yn.call(r,Fn))||createVNode("span",null,[Ln.label])}})},{onKeyboardNavigate:At,onKeyboardSelect:Lt}=oe,hn=()=>{At("forward")},_n=()=>{At("backward")},vn=()=>{oe.expanded=!1},bn=Cn=>{const{code:Sn}=Cn,{tab:wn,esc:En,down:xn,up:Pn,enter:kn}=EVENT_CODE;switch(Sn!==wn&&(Cn.preventDefault(),Cn.stopPropagation()),Sn){case wn:case En:{vn();break}case xn:{hn();break}case Pn:{_n();break}case kn:{Lt();break}}};return()=>{var Cn;const{data:Sn,width:wn}=t,{height:En,multiple:xn,scrollbarAlwaysOn:Pn}=oe.props;if(Sn.length===0)return createVNode("div",{class:ie.b("dropdown"),style:{width:`${wn}px`}},[(Cn=r.empty)==null?void 0:Cn.call(r)]);const kn=unref(pe)?FixedSizeList:DynamicSizeList;return createVNode("div",{class:[ie.b("dropdown"),ie.is("multiple",xn)]},[createVNode(kn,mergeProps({ref:ue},unref(he),{className:ie.be("dropdown","list"),scrollbarAlwaysOn:Pn,data:Sn,height:En,width:wn,total:Sn.length,onKeydown:bn}),{default:Nn=>createVNode(Et,Nn,null)})])}}});function useAllowCreate(t,r){const V=ref(0),oe=ref(null),ie=computed(()=>t.allowCreate&&t.filterable);function le(_e){const $e=Ie=>Ie.value===_e;return t.options&&t.options.some($e)||r.createdOptions.some($e)}function ue(_e){ie.value&&(t.multiple&&_e.created?V.value++:oe.value=_e)}function de(_e){if(ie.value)if(_e&&_e.length>0&&!le(_e)){const $e={value:_e,label:_e,created:!0,disabled:!1};r.createdOptions.length>=V.value?r.createdOptions[V.value]=$e:r.createdOptions.push($e)}else if(t.multiple)r.createdOptions.length=V.value;else{const $e=oe.value;r.createdOptions.length=0,$e&&$e.created&&r.createdOptions.push($e)}}function pe(_e){if(!ie.value||!_e||!_e.created||_e.created&&t.reserveKeyword&&r.inputValue===_e.label)return;const $e=r.createdOptions.findIndex(Ie=>Ie.value===_e.value);~$e&&(r.createdOptions.splice($e,1),V.value--)}function he(){ie.value&&(r.createdOptions.length=0,V.value=0)}return{createNewOption:de,removeNewOption:pe,selectNewOption:ue,clearAllNewOption:he}}const flattenOptions=t=>{const r=[];return t.forEach(V=>{isArray$c(V.options)?(r.push({label:V.label,isTitle:!0,type:"Group"}),V.options.forEach(oe=>{r.push(oe)}),r.push({type:"Group"})):r.push(V)}),r};function useInput(t){const r=ref(!1);return{handleCompositionStart:()=>{r.value=!0},handleCompositionUpdate:le=>{const ue=le.target.value,de=ue[ue.length-1]||"";r.value=!isKorean(de)},handleCompositionEnd:le=>{r.value&&(r.value=!1,isFunction$5(t)&&t(le))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=(t,r)=>{const{t:V}=useLocale(),oe=useNamespace("select-v2"),ie=useNamespace("input"),{form:le,formItem:ue}=useFormItem(),de=reactive({inputValue:DEFAULT_INPUT_PLACEHOLDER,displayInputValue:DEFAULT_INPUT_PLACEHOLDER,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),pe=ref(-1),he=ref(-1),_e=ref(null),$e=ref(null),Ie=ref(null),Ve=ref(null),Fe=ref(null),Ue=ref(null),qe=ref(null),Et=ref(!1),At=computed(()=>t.disabled||(le==null?void 0:le.disabled)),Lt=computed(()=>{const sr=xn.value.length*34;return sr>t.height?t.height:sr}),hn=computed(()=>!isNil(t.modelValue)),_n=computed(()=>{const sr=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:hn.value;return t.clearable&&!At.value&&de.comboBoxHovering&&sr}),vn=computed(()=>t.remote&&t.filterable?"":arrow_up_default),bn=computed(()=>vn.value&&oe.is("reverse",Et.value)),Cn=computed(()=>(ue==null?void 0:ue.validateState)||""),Sn=computed(()=>ValidateComponentsMap[Cn.value]),wn=computed(()=>t.remote?300:0),En=computed(()=>{const sr=xn.value;return t.loading?t.loadingText||V("el.select.loading"):t.remote&&de.inputValue===""&&sr.length===0?!1:t.filterable&&de.inputValue&&sr.length>0?t.noMatchText||V("el.select.noMatch"):sr.length===0?t.noDataText||V("el.select.noData"):null}),xn=computed(()=>{const sr=Ir=>{const Hr=de.inputValue,Nr=new RegExp(escapeStringRegexp(Hr),"i");return Hr?Nr.test(Ir.label||""):!0};return t.loading?[]:flattenOptions(t.options.concat(de.createdOptions).map(Ir=>{if(isArray$c(Ir.options)){const Hr=Ir.options.filter(sr);if(Hr.length>0)return{...Ir,options:Hr}}else if(t.remote||sr(Ir))return Ir;return null}).filter(Ir=>Ir!==null))}),Pn=computed(()=>{const sr=new Map;return xn.value.forEach((Ir,Hr)=>{sr.set(or(Ir),{option:Ir,index:Hr})}),sr}),kn=computed(()=>xn.value.every(sr=>sr.disabled)),Nn=useFormSize(),Dn=computed(()=>Nn.value==="small"?"small":"default"),Mn=computed(()=>{const sr=Ue.value,Ir=Dn.value||"default",Hr=sr?Number.parseInt(getComputedStyle(sr).paddingLeft):0,Nr=sr?Number.parseInt(getComputedStyle(sr).paddingRight):0;return de.selectWidth-Nr-Hr-TAG_BASE_WIDTH[Ir]}),Ln=()=>{var sr;he.value=((sr=Fe.value)==null?void 0:sr.offsetWidth)||200},An=computed(()=>({width:`${de.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(de.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),Vn=computed(()=>isArray$c(t.modelValue)?t.modelValue.length===0&&!de.displayInputValue:t.filterable?de.displayInputValue.length===0:!0),Wn=computed(()=>{const sr=t.placeholder||V("el.select.placeholder");return t.multiple||isNil(t.modelValue)?sr:de.selectedLabel}),Fn=computed(()=>{var sr,Ir;return(Ir=(sr=Ve.value)==null?void 0:sr.popperRef)==null?void 0:Ir.contentRef}),Yn=computed(()=>{if(t.multiple){const sr=t.modelValue.length;if(t.modelValue.length>0&&Pn.value.has(t.modelValue[sr-1])){const{index:Ir}=Pn.value.get(t.modelValue[sr-1]);return Ir}}else if(t.modelValue&&Pn.value.has(t.modelValue)){const{index:sr}=Pn.value.get(t.modelValue);return sr}return-1}),tr=computed({get(){return Et.value&&En.value!==!1},set(sr){Et.value=sr}}),yr=computed(()=>de.cachedOptions.slice(0,t.maxCollapseTags)),Jn=computed(()=>de.cachedOptions.slice(t.maxCollapseTags)),{createNewOption:Kn,removeNewOption:Gn,selectNewOption:Qn,clearAllNewOption:ur}=useAllowCreate(t,de),{handleCompositionStart:cr,handleCompositionUpdate:Un,handleCompositionEnd:qn}=useInput(sr=>qr(sr)),er=()=>{var sr,Ir,Hr;(Ir=(sr=$e.value)==null?void 0:sr.focus)==null||Ir.call(sr),(Hr=Ve.value)==null||Hr.updatePopper()},pr=()=>{if(!t.automaticDropdown&&!At.value)return de.isComposing&&(de.softFocus=!0),nextTick(()=>{var sr,Ir;Et.value=!Et.value,(Ir=(sr=$e.value)==null?void 0:sr.focus)==null||Ir.call(sr)})},Er=()=>(t.filterable&&de.inputValue!==de.selectedLabel&&(de.query=de.selectedLabel),xr(de.inputValue),nextTick(()=>{Kn(de.inputValue)})),dr=debounce(Er,wn.value),xr=sr=>{de.previousQuery!==sr&&(de.previousQuery=sr,t.filterable&&isFunction$5(t.filterMethod)?t.filterMethod(sr):t.filterable&&t.remote&&isFunction$5(t.remoteMethod)&&t.remoteMethod(sr))},wr=sr=>{isEqual$1(t.modelValue,sr)||r(CHANGE_EVENT,sr)},Cr=sr=>{r(UPDATE_MODEL_EVENT,sr),wr(sr),de.previousValue=sr==null?void 0:sr.toString()},gr=(sr=[],Ir)=>{if(!isObject$9(Ir))return sr.indexOf(Ir);const Hr=t.valueKey;let Nr=-1;return sr.some((Gr,Zr)=>get$1(Gr,Hr)===get$1(Ir,Hr)?(Nr=Zr,!0):!1),Nr},or=sr=>isObject$9(sr)?get$1(sr,t.valueKey):sr,fr=sr=>isObject$9(sr)?sr.label:sr,kr=()=>nextTick(()=>{var sr,Ir;if(!$e.value)return;const Hr=Ue.value;Fe.value.height=Hr.offsetHeight,Et.value&&En.value!==!1&&((Ir=(sr=Ve.value)==null?void 0:sr.updatePopper)==null||Ir.call(sr))}),br=()=>{var sr,Ir;if(Ar(),Ln(),(Ir=(sr=Ve.value)==null?void 0:sr.updatePopper)==null||Ir.call(sr),t.multiple)return kr()},Ar=()=>{const sr=Ue.value;sr&&(de.selectWidth=sr.getBoundingClientRect().width)},Dr=(sr,Ir,Hr=!0)=>{var Nr,Gr;if(t.multiple){let Zr=t.modelValue.slice();const Qr=gr(Zr,or(sr));Qr>-1?(Zr=[...Zr.slice(0,Qr),...Zr.slice(Qr+1)],de.cachedOptions.splice(Qr,1),Gn(sr)):(t.multipleLimit<=0||Zr.length{const{valueKey:Hr}=t,Nr=t.modelValue.indexOf(get$1(Ir,Hr));if(Nr>-1&&!At.value){const Gr=[...t.modelValue.slice(0,Nr),...t.modelValue.slice(Nr+1)];return de.cachedOptions.splice(Nr,1),Cr(Gr),r("remove-tag",get$1(Ir,Hr)),de.softFocus=!0,Gn(Ir),nextTick(er)}sr.stopPropagation()},zr=sr=>{const Ir=de.isComposing;de.isComposing=!0,de.softFocus?de.softFocus=!1:Ir||r("focus",sr)},Rr=sr=>(de.softFocus=!1,nextTick(()=>{var Ir,Hr;(Hr=(Ir=$e.value)==null?void 0:Ir.blur)==null||Hr.call(Ir),qe.value&&(de.calculatedWidth=qe.value.getBoundingClientRect().width),de.isSilentBlur?de.isSilentBlur=!1:de.isComposing&&r("blur",sr),de.isComposing=!1})),mr=()=>{de.displayInputValue.length>0?$r(""):Et.value=!1},ir=sr=>{if(de.displayInputValue.length===0){sr.preventDefault();const Ir=t.modelValue.slice();Ir.pop(),Gn(de.cachedOptions.pop()),Cr(Ir)}},ar=()=>{let sr;return isArray$c(t.modelValue)?sr=[]:sr=void 0,de.softFocus=!0,t.multiple?de.cachedOptions=[]:de.selectedLabel="",Et.value=!1,Cr(sr),r("clear"),ur(),nextTick(er)},$r=sr=>{de.displayInputValue=sr,de.inputValue=sr},Zn=(sr,Ir=void 0)=>{const Hr=xn.value;if(!["forward","backward"].includes(sr)||At.value||Hr.length<=0||kn.value)return;if(!Et.value)return pr();Ir===void 0&&(Ir=de.hoveringIndex);let Nr=-1;sr==="forward"?(Nr=Ir+1,Nr>=Hr.length&&(Nr=0)):sr==="backward"&&(Nr=Ir-1,(Nr<0||Nr>=Hr.length)&&(Nr=Hr.length-1));const Gr=Hr[Nr];if(Gr.disabled||Gr.type==="Group")return Zn(sr,Nr);Lr(Nr),_r(Nr)},Or=()=>{if(Et.value)~de.hoveringIndex&&xn.value[de.hoveringIndex]&&Dr(xn.value[de.hoveringIndex],de.hoveringIndex,!1);else return pr()},Lr=sr=>{de.hoveringIndex=sr},Ur=()=>{de.hoveringIndex=-1},Kr=()=>{var sr;const Ir=$e.value;Ir&&((sr=Ir.focus)==null||sr.call(Ir))},qr=sr=>{const Ir=sr.target.value;if($r(Ir),de.displayInputValue.length>0&&!Et.value&&(Et.value=!0),de.calculatedWidth=qe.value.getBoundingClientRect().width,t.multiple&&kr(),t.remote)dr();else return Er()},no=()=>(Et.value=!1,Rr()),Xr=()=>(de.inputValue=de.displayInputValue,nextTick(()=>{~Yn.value&&(Lr(Yn.value),_r(de.hoveringIndex))})),_r=sr=>{Ie.value.scrollToItem(sr)},Pr=()=>{if(Ur(),t.multiple)if(t.modelValue.length>0){let sr=!1;de.cachedOptions.length=0,de.previousValue=t.modelValue.toString();for(const Ir of t.modelValue)if(Pn.value.has(Ir)){const{index:Hr,option:Nr}=Pn.value.get(Ir);de.cachedOptions.push(Nr),sr||Lr(Hr),sr=!0}}else de.cachedOptions=[],de.previousValue=void 0;else if(hn.value){de.previousValue=t.modelValue;const sr=xn.value,Ir=sr.findIndex(Hr=>or(Hr)===or(t.modelValue));~Ir?(de.selectedLabel=sr[Ir].label,Lr(Ir)):de.selectedLabel=`${t.modelValue}`}else de.selectedLabel="",de.previousValue=void 0;ur(),Ln()};return watch(Et,sr=>{var Ir,Hr;r("visible-change",sr),sr?(Hr=(Ir=Ve.value).update)==null||Hr.call(Ir):(de.displayInputValue="",de.previousQuery=null,Kn(""))}),watch(()=>t.modelValue,(sr,Ir)=>{var Hr;(!sr||sr.toString()!==de.previousValue)&&Pr(),!isEqual$1(sr,Ir)&&t.validateEvent&&((Hr=ue==null?void 0:ue.validate)==null||Hr.call(ue,"change").catch(Nr=>void 0))},{deep:!0}),watch(()=>t.options,()=>{const sr=$e.value;(!sr||sr&&document.activeElement!==sr)&&Pr()},{deep:!0}),watch(xn,()=>nextTick(Ie.value.resetScrollTop)),watch(()=>tr.value,sr=>{sr||Ur()}),onMounted(()=>{Pr()}),useResizeObserver$1(Fe,br),{collapseTagSize:Dn,currentPlaceholder:Wn,expanded:Et,emptyText:En,popupHeight:Lt,debounce:wn,filteredOptions:xn,iconComponent:vn,iconReverse:bn,inputWrapperStyle:An,popperSize:he,dropdownMenuVisible:tr,hasModelValue:hn,shouldShowPlaceholder:Vn,selectDisabled:At,selectSize:Nn,showClearBtn:_n,states:de,tagMaxWidth:Mn,nsSelectV2:oe,nsInput:ie,calculatorRef:qe,controlRef:_e,inputRef:$e,menuRef:Ie,popper:Ve,selectRef:Fe,selectionRef:Ue,popperRef:Fn,validateState:Cn,validateIcon:Sn,showTagList:yr,collapseTagList:Jn,debouncedOnInputChange:dr,deleteTag:Br,getLabel:fr,getValueKey:or,handleBlur:Rr,handleClear:ar,handleClickOutside:no,handleDel:ir,handleEsc:mr,handleFocus:zr,handleMenuEnter:Xr,handleResize:br,toggleMenu:pr,scrollTo:_r,onInput:qr,onKeyboardNavigate:Zn,onKeyboardSelect:Or,onSelect:Dr,onHover:Lr,onUpdateInputValue:$r,handleCompositionStart:cr,handleCompositionEnd:qn,handleCompositionUpdate:Un}},_sfc_main$D=defineComponent({name:"ElSelectV2",components:{ElSelectMenu,ElTag,ElTooltip,ElIcon},directives:{ClickOutside,ModelText:vModelText},props:SelectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:r}){const V=computed(()=>{const{modelValue:ie,multiple:le}=t,ue=le?[]:void 0;return isArray$c(ie)?le?ie:ue:le?ue:ie}),oe=useSelect$1(reactive({...toRefs(t),modelValue:V}),r);return provide(selectV2InjectionKey,{props:reactive({...toRefs(t),height:oe.popupHeight,modelValue:V}),popper:oe.popper,onSelect:oe.onSelect,onHover:oe.onHover,onKeyboardNavigate:oe.onKeyboardNavigate,onKeyboardSelect:oe.onKeyboardSelect}),{...oe,modelValue:V}}}),_hoisted_1$i={key:0},_hoisted_2$d=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],_hoisted_3$7=["textContent"],_hoisted_4$4=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],_hoisted_5$2=["textContent"];function _sfc_render$6(t,r,V,oe,ie,le){const ue=resolveComponent("el-tag"),de=resolveComponent("el-tooltip"),pe=resolveComponent("el-icon"),he=resolveComponent("el-select-menu"),_e=resolveDirective("model-text"),$e=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([t.nsSelectV2.b(),t.nsSelectV2.m(t.selectSize)]),onClick:r[24]||(r[24]=withModifiers((...Ie)=>t.toggleMenu&&t.toggleMenu(...Ie),["stop"])),onMouseenter:r[25]||(r[25]=Ie=>t.states.comboBoxHovering=!0),onMouseleave:r[26]||(r[26]=Ie=>t.states.comboBoxHovering=!1)},[createVNode(de,{ref:"popper",visible:t.dropdownMenuVisible,teleported:t.teleported,"popper-class":[t.nsSelectV2.e("popper"),t.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,placement:t.placement,pure:"",transition:`${t.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:r[23]||(r[23]=Ie=>t.states.inputValue=t.states.displayInputValue)},{default:withCtx(()=>[createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([t.nsSelectV2.e("wrapper"),t.nsSelectV2.is("focused",t.states.isComposing||t.expanded),t.nsSelectV2.is("hovering",t.states.comboBoxHovering),t.nsSelectV2.is("filterable",t.filterable),t.nsSelectV2.is("disabled",t.selectDisabled)])},[t.$slots.prefix?(openBlock(),createElementBlock("div",_hoisted_1$i,[renderSlot(t.$slots,"prefix")])):createCommentVNode("v-if",!0),t.multiple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.nsSelectV2.e("selection"))},[t.collapseTags&&t.modelValue.length>0?(openBlock(),createElementBlock(Fragment,{key:0},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.showTagList,Ie=>(openBlock(),createElementBlock("div",{key:t.getValueKey(Ie),class:normalizeClass(t.nsSelectV2.e("selected-item"))},[createVNode(ue,{closable:!t.selectDisabled&&!(Ie!=null&&Ie.disable),size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:Ve=>t.deleteTag(Ve,Ie)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},toDisplayString$1(Ie==null?void 0:Ie.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass(t.nsSelectV2.e("selected-item"))},[t.modelValue.length>t.maxCollapseTags?(openBlock(),createBlock(ue,{key:0,closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[t.collapseTagsTooltip?(openBlock(),createBlock(de,{key:0,disabled:t.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},"+ "+toDisplayString$1(t.modelValue.length-t.maxCollapseTags),7)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(t.nsSelectV2.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.collapseTagList,Ie=>(openBlock(),createElementBlock("div",{key:t.getValueKey(Ie),class:normalizeClass(t.nsSelectV2.e("selected-item"))},[createVNode(ue,{closable:!t.selectDisabled&&!Ie.disabled,size:t.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:Ve=>t.deleteTag(Ve,Ie)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},toDisplayString$1(t.getLabel(Ie)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},"+ "+toDisplayString$1(t.modelValue.length-t.maxCollapseTags),7))]),_:1},8,["size"])):createCommentVNode("v-if",!0)],2)],64)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(t.states.cachedOptions,Ie=>(openBlock(),createElementBlock("div",{key:t.getValueKey(Ie),class:normalizeClass(t.nsSelectV2.e("selected-item"))},[createVNode(ue,{closable:!t.selectDisabled&&!Ie.disabled,size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:Ve=>t.deleteTag(Ve,Ie)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},toDisplayString$1(t.getLabel(Ie)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")]),style:normalizeStyle$1(t.inputWrapperStyle)},[withDirectives(createBaseVNode("input",{id:t.id,ref:"inputRef",autocomplete:t.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":t.expanded,"aria-labelledby":t.label,class:normalizeClass([t.nsSelectV2.is(t.selectSize),t.nsSelectV2.e("combobox-input")]),disabled:t.disabled,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",name:t.name,unselectable:t.expanded?"on":void 0,"onUpdate:modelValue":r[0]||(r[0]=(...Ie)=>t.onUpdateInputValue&&t.onUpdateInputValue(...Ie)),onFocus:r[1]||(r[1]=(...Ie)=>t.handleFocus&&t.handleFocus(...Ie)),onBlur:r[2]||(r[2]=(...Ie)=>t.handleBlur&&t.handleBlur(...Ie)),onInput:r[3]||(r[3]=(...Ie)=>t.onInput&&t.onInput(...Ie)),onCompositionstart:r[4]||(r[4]=(...Ie)=>t.handleCompositionStart&&t.handleCompositionStart(...Ie)),onCompositionupdate:r[5]||(r[5]=(...Ie)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...Ie)),onCompositionend:r[6]||(r[6]=(...Ie)=>t.handleCompositionEnd&&t.handleCompositionEnd(...Ie)),onKeydown:[r[7]||(r[7]=withKeys(withModifiers(Ie=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),r[8]||(r[8]=withKeys(withModifiers(Ie=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),r[9]||(r[9]=withKeys(withModifiers((...Ie)=>t.onKeyboardSelect&&t.onKeyboardSelect(...Ie),["stop","prevent"]),["enter"])),r[10]||(r[10]=withKeys(withModifiers((...Ie)=>t.handleEsc&&t.handleEsc(...Ie),["stop","prevent"]),["esc"])),r[11]||(r[11]=withKeys(withModifiers((...Ie)=>t.handleDel&&t.handleDel(...Ie),["stop"]),["delete"]))]},null,42,_hoisted_2$d),[[_e,t.states.displayInputValue]]),t.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(t.nsSelectV2.e("input-calculator")),textContent:toDisplayString$1(t.states.displayInputValue)},null,10,_hoisted_3$7)):createCommentVNode("v-if",!0)],6)],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:normalizeClass([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")])},[withDirectives(createBaseVNode("input",{id:t.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":t.label,"aria-expanded":t.expanded,autocapitalize:"off",autocomplete:t.autocomplete,class:normalizeClass(t.nsSelectV2.e("combobox-input")),disabled:t.disabled,name:t.name,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",unselectable:t.expanded?"on":void 0,onCompositionstart:r[12]||(r[12]=(...Ie)=>t.handleCompositionStart&&t.handleCompositionStart(...Ie)),onCompositionupdate:r[13]||(r[13]=(...Ie)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...Ie)),onCompositionend:r[14]||(r[14]=(...Ie)=>t.handleCompositionEnd&&t.handleCompositionEnd(...Ie)),onFocus:r[15]||(r[15]=(...Ie)=>t.handleFocus&&t.handleFocus(...Ie)),onBlur:r[16]||(r[16]=(...Ie)=>t.handleBlur&&t.handleBlur(...Ie)),onInput:r[17]||(r[17]=(...Ie)=>t.onInput&&t.onInput(...Ie)),onKeydown:[r[18]||(r[18]=withKeys(withModifiers(Ie=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),r[19]||(r[19]=withKeys(withModifiers(Ie=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),r[20]||(r[20]=withKeys(withModifiers((...Ie)=>t.onKeyboardSelect&&t.onKeyboardSelect(...Ie),["stop","prevent"]),["enter"])),r[21]||(r[21]=withKeys(withModifiers((...Ie)=>t.handleEsc&&t.handleEsc(...Ie),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":r[22]||(r[22]=(...Ie)=>t.onUpdateInputValue&&t.onUpdateInputValue(...Ie))},null,42,_hoisted_4$4),[[_e,t.states.displayInputValue]])],2),t.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-calculator")]),textContent:toDisplayString$1(t.states.displayInputValue)},null,10,_hoisted_5$2)):createCommentVNode("v-if",!0)],64)),t.shouldShowPlaceholder?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([t.nsSelectV2.e("placeholder"),t.nsSelectV2.is("transparent",t.multiple?t.modelValue.length===0:!t.hasModelValue)])},toDisplayString$1(t.currentPlaceholder),3)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("suffix"))},[t.iconComponent?withDirectives((openBlock(),createBlock(pe,{key:0,class:normalizeClass([t.nsSelectV2.e("caret"),t.nsInput.e("icon"),t.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])),[[vShow,!t.showClearBtn]]):createCommentVNode("v-if",!0),t.showClearBtn&&t.clearIcon?(openBlock(),createBlock(pe,{key:1,class:normalizeClass([t.nsSelectV2.e("caret"),t.nsInput.e("icon")]),onClick:withModifiers(t.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),t.validateState&&t.validateIcon?(openBlock(),createBlock(pe,{key:2,class:normalizeClass([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]),content:withCtx(()=>[createVNode(he,{ref:"menuRef",data:t.filteredOptions,width:t.popperSize,"hovering-index":t.states.hoveringIndex,"scrollbar-always-on":t.scrollbarAlwaysOn},{default:withCtx(Ie=>[renderSlot(t.$slots,"default",normalizeProps(guardReactiveProps(Ie)))]),empty:withCtx(()=>[renderSlot(t.$slots,"empty",{},()=>[createBaseVNode("p",{class:normalizeClass(t.nsSelectV2.e("empty"))},toDisplayString$1(t.emptyText?t.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[$e,t.handleClickOutside,t.popperRef]])}var Select=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Select.install=t=>{t.component(Select.name,Select)};const _Select=Select,ElSelectV2=_Select,skeletonProps=buildProps({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),__default__$t=defineComponent({name:"ElSkeletonItem"}),_sfc_main$C=defineComponent({...__default__$t,props:skeletonItemProps,setup(t){const r=useNamespace("skeleton");return(V,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).e("item"),unref(r).e(V.variant)])},[V.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",!0)],2))}});var SkeletonItem=_export_sfc$1(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const __default__$s=defineComponent({name:"ElSkeleton"}),_sfc_main$B=defineComponent({...__default__$s,props:skeletonProps,setup(t,{expose:r}){const V=t,oe=useNamespace("skeleton"),ie=useThrottleRender(toRef(V,"loading"),V.throttle);return r({uiLoading:ie}),(le,ue)=>unref(ie)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(oe).b(),unref(oe).is("animated",le.animated)]},le.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(le.count,de=>(openBlock(),createElementBlock(Fragment,{key:de},[le.loading?renderSlot(le.$slots,"template",{key:de},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(oe).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(le.rows,pe=>(openBlock(),createBlock(SkeletonItem,{key:pe,class:normalizeClass([unref(oe).e("paragraph"),unref(oe).is("last",pe===le.rows&&le.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot(le.$slots,"default",normalizeProps(mergeProps({key:1},le.$attrs)))}});var Skeleton=_export_sfc$1(_sfc_main$B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ElSkeleton=withInstall(Skeleton,{SkeletonItem}),ElSkeletonItem=withNoopInstall(SkeletonItem),sliderContextKey=Symbol("sliderContextKey"),sliderProps=buildProps({modelValue:{type:definePropType([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:useSizeProp,inputSize:useSizeProp,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:definePropType(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:definePropType(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ee,default:"top"},marks:{type:definePropType(Object)},validateEvent:{type:Boolean,default:!0}}),isValidValue$1=t=>isNumber$4(t)||isArray$c(t)&&t.every(isNumber$4),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},useLifecycle=(t,r,V)=>{const oe=ref();return onMounted(async()=>{t.range?(Array.isArray(t.modelValue)?(r.firstValue=Math.max(t.min,t.modelValue[0]),r.secondValue=Math.min(t.max,t.modelValue[1])):(r.firstValue=t.min,r.secondValue=t.max),r.oldValue=[r.firstValue,r.secondValue]):(typeof t.modelValue!="number"||Number.isNaN(t.modelValue)?r.firstValue=t.min:r.firstValue=Math.min(t.max,Math.max(t.min,t.modelValue)),r.oldValue=r.firstValue),useEventListener$1(window,"resize",V),await nextTick(),V()}),{sliderWrapper:oe}},useMarks=t=>computed(()=>t.marks?Object.keys(t.marks).map(Number.parseFloat).sort((V,oe)=>V-oe).filter(V=>V<=t.max&&V>=t.min).map(V=>({point:V,position:(V-t.min)*100/(t.max-t.min),mark:t.marks[V]})):[]),useSlide=(t,r,V)=>{const{form:oe,formItem:ie}=useFormItem(),le=shallowRef(),ue=ref(),de=ref(),pe={firstButton:ue,secondButton:de},he=computed(()=>t.disabled||(oe==null?void 0:oe.disabled)||!1),_e=computed(()=>Math.min(r.firstValue,r.secondValue)),$e=computed(()=>Math.max(r.firstValue,r.secondValue)),Ie=computed(()=>t.range?`${100*($e.value-_e.value)/(t.max-t.min)}%`:`${100*(r.firstValue-t.min)/(t.max-t.min)}%`),Ve=computed(()=>t.range?`${100*(_e.value-t.min)/(t.max-t.min)}%`:"0%"),Fe=computed(()=>t.vertical?{height:t.height}:{}),Ue=computed(()=>t.vertical?{height:Ie.value,bottom:Ve.value}:{width:Ie.value,left:Ve.value}),qe=()=>{le.value&&(r.sliderSize=le.value[`client${t.vertical?"Height":"Width"}`])},Et=En=>{const xn=t.min+En*(t.max-t.min)/100;if(!t.range)return ue;let Pn;return Math.abs(_e.value-xn)r.secondValue?"firstButton":"secondButton",pe[Pn]},At=En=>{const xn=Et(En);return xn.value.setPosition(En),xn},Lt=En=>{r.firstValue=En,_n(t.range?[_e.value,$e.value]:En)},hn=En=>{r.secondValue=En,t.range&&_n([_e.value,$e.value])},_n=En=>{V(UPDATE_MODEL_EVENT,En),V(INPUT_EVENT,En)},vn=async()=>{await nextTick(),V(CHANGE_EVENT,t.range?[_e.value,$e.value]:t.modelValue)},bn=En=>{var xn,Pn,kn,Nn,Dn,Mn;if(he.value||r.dragging)return;qe();let Ln=0;if(t.vertical){const An=(kn=(Pn=(xn=En.touches)==null?void 0:xn.item(0))==null?void 0:Pn.clientY)!=null?kn:En.clientY;Ln=(le.value.getBoundingClientRect().bottom-An)/r.sliderSize*100}else{const An=(Mn=(Dn=(Nn=En.touches)==null?void 0:Nn.item(0))==null?void 0:Dn.clientX)!=null?Mn:En.clientX,Vn=le.value.getBoundingClientRect().left;Ln=(An-Vn)/r.sliderSize*100}if(!(Ln<0||Ln>100))return At(Ln)};return{elFormItem:ie,slider:le,firstButton:ue,secondButton:de,sliderDisabled:he,minValue:_e,maxValue:$e,runwayStyle:Fe,barStyle:Ue,resetSize:qe,setPosition:At,emitChange:vn,onSliderWrapperPrevent:En=>{var xn,Pn;((xn=pe.firstButton.value)!=null&&xn.dragging||(Pn=pe.secondButton.value)!=null&&Pn.dragging)&&En.preventDefault()},onSliderClick:En=>{bn(En)&&vn()},onSliderDown:async En=>{const xn=bn(En);xn&&(await nextTick(),xn.value.onButtonDown(En))},setFirstValue:Lt,setSecondValue:hn}},{left,down,right,up,home:home$2,end:end$1,pageUp,pageDown}=EVENT_CODE,useTooltip=(t,r,V)=>{const oe=ref(),ie=ref(!1),le=computed(()=>r.value instanceof Function),ue=computed(()=>le.value&&r.value(t.modelValue)||t.modelValue),de=debounce(()=>{V.value&&(ie.value=!0)},50),pe=debounce(()=>{V.value&&(ie.value=!1)},50);return{tooltip:oe,tooltipVisible:ie,formatValue:ue,displayTooltip:de,hideTooltip:pe}},useSliderButton=(t,r,V)=>{const{disabled:oe,min:ie,max:le,step:ue,showTooltip:de,precision:pe,sliderSize:he,formatTooltip:_e,emitChange:$e,resetSize:Ie,updateDragging:Ve}=inject(sliderContextKey),{tooltip:Fe,tooltipVisible:Ue,formatValue:qe,displayTooltip:Et,hideTooltip:At}=useTooltip(t,_e,de),Lt=ref(),hn=computed(()=>`${(t.modelValue-ie.value)/(le.value-ie.value)*100}%`),_n=computed(()=>t.vertical?{bottom:hn.value}:{left:hn.value}),vn=()=>{r.hovering=!0,Et()},bn=()=>{r.hovering=!1,r.dragging||At()},Cn=Fn=>{oe.value||(Fn.preventDefault(),Ln(Fn),window.addEventListener("mousemove",An),window.addEventListener("touchmove",An),window.addEventListener("mouseup",Vn),window.addEventListener("touchend",Vn),window.addEventListener("contextmenu",Vn),Lt.value.focus())},Sn=Fn=>{oe.value||(r.newPosition=Number.parseFloat(hn.value)+Fn/(le.value-ie.value)*100,Wn(r.newPosition),$e())},wn=()=>{Sn(-ue.value)},En=()=>{Sn(ue.value)},xn=()=>{Sn(-ue.value*4)},Pn=()=>{Sn(ue.value*4)},kn=()=>{oe.value||(Wn(0),$e())},Nn=()=>{oe.value||(Wn(100),$e())},Dn=Fn=>{let Yn=!0;[left,down].includes(Fn.key)?wn():[right,up].includes(Fn.key)?En():Fn.key===home$2?kn():Fn.key===end$1?Nn():Fn.key===pageDown?xn():Fn.key===pageUp?Pn():Yn=!1,Yn&&Fn.preventDefault()},Mn=Fn=>{let Yn,tr;return Fn.type.startsWith("touch")?(tr=Fn.touches[0].clientY,Yn=Fn.touches[0].clientX):(tr=Fn.clientY,Yn=Fn.clientX),{clientX:Yn,clientY:tr}},Ln=Fn=>{r.dragging=!0,r.isClick=!0;const{clientX:Yn,clientY:tr}=Mn(Fn);t.vertical?r.startY=tr:r.startX=Yn,r.startPosition=Number.parseFloat(hn.value),r.newPosition=r.startPosition},An=Fn=>{if(r.dragging){r.isClick=!1,Et(),Ie();let Yn;const{clientX:tr,clientY:yr}=Mn(Fn);t.vertical?(r.currentY=yr,Yn=(r.startY-r.currentY)/he.value*100):(r.currentX=tr,Yn=(r.currentX-r.startX)/he.value*100),r.newPosition=r.startPosition+Yn,Wn(r.newPosition)}},Vn=()=>{r.dragging&&(setTimeout(()=>{r.dragging=!1,r.hovering||At(),r.isClick||Wn(r.newPosition),$e()},0),window.removeEventListener("mousemove",An),window.removeEventListener("touchmove",An),window.removeEventListener("mouseup",Vn),window.removeEventListener("touchend",Vn),window.removeEventListener("contextmenu",Vn))},Wn=async Fn=>{if(Fn===null||Number.isNaN(+Fn))return;Fn<0?Fn=0:Fn>100&&(Fn=100);const Yn=100/((le.value-ie.value)/ue.value);let yr=Math.round(Fn/Yn)*Yn*(le.value-ie.value)*.01+ie.value;yr=Number.parseFloat(yr.toFixed(pe.value)),yr!==t.modelValue&&V(UPDATE_MODEL_EVENT,yr),!r.dragging&&t.modelValue!==r.oldValue&&(r.oldValue=t.modelValue),await nextTick(),r.dragging&&Et(),Fe.value.updatePopper()};return watch(()=>r.dragging,Fn=>{Ve(Fn)}),{disabled:oe,button:Lt,tooltip:Fe,tooltipVisible:Ue,showTooltip:de,wrapperStyle:_n,formatValue:qe,handleMouseEnter:vn,handleMouseLeave:bn,onButtonDown:Cn,onKeyDown:Dn,setPosition:Wn}},useStops=(t,r,V,oe)=>({stops:computed(()=>{if(!t.showStops||t.min>t.max)return[];if(t.step===0)return[];const ue=(t.max-t.min)/t.step,de=100*t.step/(t.max-t.min),pe=Array.from({length:ue-1}).map((he,_e)=>(_e+1)*de);return t.range?pe.filter(he=>he<100*(V.value-t.min)/(t.max-t.min)||he>100*(oe.value-t.min)/(t.max-t.min)):pe.filter(he=>he>100*(r.firstValue-t.min)/(t.max-t.min))}),getStopStyle:ue=>t.vertical?{bottom:`${ue}%`}:{left:`${ue}%`}}),useWatch=(t,r,V,oe,ie,le)=>{const ue=he=>{ie(UPDATE_MODEL_EVENT,he),ie(INPUT_EVENT,he)},de=()=>t.range?![V.value,oe.value].every((he,_e)=>he===r.oldValue[_e]):t.modelValue!==r.oldValue,pe=()=>{var he,_e;t.min>t.max&&throwError$1("Slider","min should not be greater than max.");const $e=t.modelValue;t.range&&Array.isArray($e)?$e[1]t.max?ue([t.max,t.max]):$e[0]t.max?ue([$e[0],t.max]):(r.firstValue=$e[0],r.secondValue=$e[1],de()&&(t.validateEvent&&((he=le==null?void 0:le.validate)==null||he.call(le,"change").catch(Ie=>void 0)),r.oldValue=$e.slice())):!t.range&&typeof $e=="number"&&!Number.isNaN($e)&&($et.max?ue(t.max):(r.firstValue=$e,de()&&(t.validateEvent&&((_e=le==null?void 0:le.validate)==null||_e.call(le,"change").catch(Ie=>void 0)),r.oldValue=$e)))};pe(),watch(()=>r.dragging,he=>{he||pe()}),watch(()=>t.modelValue,(he,_e)=>{r.dragging||Array.isArray(he)&&Array.isArray(_e)&&he.every(($e,Ie)=>$e===_e[Ie])&&r.firstValue===he[0]&&r.secondValue===he[1]||pe()},{deep:!0}),watch(()=>[t.min,t.max],()=>{pe()})},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:t=>isNumber$4(t)},_hoisted_1$h=["tabindex"],__default__$r=defineComponent({name:"ElSliderButton"}),_sfc_main$A=defineComponent({...__default__$r,props:sliderButtonProps,emits:sliderButtonEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useNamespace("slider"),le=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:oe.modelValue}),{disabled:ue,button:de,tooltip:pe,showTooltip:he,tooltipVisible:_e,wrapperStyle:$e,formatValue:Ie,handleMouseEnter:Ve,handleMouseLeave:Fe,onButtonDown:Ue,onKeyDown:qe,setPosition:Et}=useSliderButton(oe,le,V),{hovering:At,dragging:Lt}=toRefs(le);return r({onButtonDown:Ue,onKeyDown:qe,setPosition:Et,hovering:At,dragging:Lt}),(hn,_n)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:de,class:normalizeClass([unref(ie).e("button-wrapper"),{hover:unref(At),dragging:unref(Lt)}]),style:normalizeStyle$1(unref($e)),tabindex:unref(ue)?-1:0,onMouseenter:_n[0]||(_n[0]=(...vn)=>unref(Ve)&&unref(Ve)(...vn)),onMouseleave:_n[1]||(_n[1]=(...vn)=>unref(Fe)&&unref(Fe)(...vn)),onMousedown:_n[2]||(_n[2]=(...vn)=>unref(Ue)&&unref(Ue)(...vn)),onTouchstart:_n[3]||(_n[3]=(...vn)=>unref(Ue)&&unref(Ue)(...vn)),onFocus:_n[4]||(_n[4]=(...vn)=>unref(Ve)&&unref(Ve)(...vn)),onBlur:_n[5]||(_n[5]=(...vn)=>unref(Fe)&&unref(Fe)(...vn)),onKeydown:_n[6]||(_n[6]=(...vn)=>unref(qe)&&unref(qe)(...vn))},[createVNode(unref(ElTooltip),{ref_key:"tooltip",ref:pe,visible:unref(_e),placement:hn.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":hn.tooltipClass,disabled:!unref(he),persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(unref(Ie)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref(ie).e("button"),{hover:unref(At),dragging:unref(Lt)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,_hoisted_1$h))}});var SliderButton=_export_sfc$1(_sfc_main$A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const sliderMarkerProps=buildProps({mark:{type:definePropType([String,Object]),default:void 0}});var SliderMarker=defineComponent({name:"ElSliderMarker",props:sliderMarkerProps,setup(t){const r=useNamespace("slider"),V=computed(()=>isString$6(t.mark)?t.mark:t.mark.label),oe=computed(()=>isString$6(t.mark)?void 0:t.mark.style);return()=>h$2("div",{class:r.e("marks-text"),style:oe.value},V.value)}});const _hoisted_1$g=["id","role","aria-label","aria-labelledby"],_hoisted_2$c={key:1},__default__$q=defineComponent({name:"ElSlider"}),_sfc_main$z=defineComponent({...__default__$q,props:sliderProps,emits:sliderEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useNamespace("slider"),{t:le}=useLocale(),ue=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:de,slider:pe,firstButton:he,secondButton:_e,sliderDisabled:$e,minValue:Ie,maxValue:Ve,runwayStyle:Fe,barStyle:Ue,resetSize:qe,emitChange:Et,onSliderWrapperPrevent:At,onSliderClick:Lt,onSliderDown:hn,setFirstValue:_n,setSecondValue:vn}=useSlide(oe,ue,V),{stops:bn,getStopStyle:Cn}=useStops(oe,ue,Ie,Ve),{inputId:Sn,isLabeledByFormItem:wn}=useFormItemInputId(oe,{formItemContext:de}),En=useFormSize(),xn=computed(()=>oe.inputSize||En.value),Pn=computed(()=>oe.label||le("el.slider.defaultLabel",{min:oe.min,max:oe.max})),kn=computed(()=>oe.range?oe.rangeStartLabel||le("el.slider.defaultRangeStartLabel"):Pn.value),Nn=computed(()=>oe.formatValueText?oe.formatValueText(Fn.value):`${Fn.value}`),Dn=computed(()=>oe.rangeEndLabel||le("el.slider.defaultRangeEndLabel")),Mn=computed(()=>oe.formatValueText?oe.formatValueText(Yn.value):`${Yn.value}`),Ln=computed(()=>[ie.b(),ie.m(En.value),ie.is("vertical",oe.vertical),{[ie.m("with-input")]:oe.showInput}]),An=useMarks(oe);useWatch(oe,ue,Ie,Ve,V,de);const Vn=computed(()=>{const Jn=[oe.min,oe.max,oe.step].map(Kn=>{const Gn=`${Kn}`.split(".")[1];return Gn?Gn.length:0});return Math.max.apply(null,Jn)}),{sliderWrapper:Wn}=useLifecycle(oe,ue,qe),{firstValue:Fn,secondValue:Yn,sliderSize:tr}=toRefs(ue),yr=Jn=>{ue.dragging=Jn};return provide(sliderContextKey,{...toRefs(oe),sliderSize:tr,disabled:$e,precision:Vn,emitChange:Et,resetSize:qe,updateDragging:yr}),r({onSliderClick:Lt}),(Jn,Kn)=>{var Gn,Qn;return openBlock(),createElementBlock("div",{id:Jn.range?unref(Sn):void 0,ref_key:"sliderWrapper",ref:Wn,class:normalizeClass(unref(Ln)),role:Jn.range?"group":void 0,"aria-label":Jn.range&&!unref(wn)?unref(Pn):void 0,"aria-labelledby":Jn.range&&unref(wn)?(Gn=unref(de))==null?void 0:Gn.labelId:void 0,onTouchstart:Kn[2]||(Kn[2]=(...ur)=>unref(At)&&unref(At)(...ur)),onTouchmove:Kn[3]||(Kn[3]=(...ur)=>unref(At)&&unref(At)(...ur))},[createBaseVNode("div",{ref_key:"slider",ref:pe,class:normalizeClass([unref(ie).e("runway"),{"show-input":Jn.showInput&&!Jn.range},unref(ie).is("disabled",unref($e))]),style:normalizeStyle$1(unref(Fe)),onMousedown:Kn[0]||(Kn[0]=(...ur)=>unref(hn)&&unref(hn)(...ur)),onTouchstart:Kn[1]||(Kn[1]=(...ur)=>unref(hn)&&unref(hn)(...ur))},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("bar")),style:normalizeStyle$1(unref(Ue))},null,6),createVNode(SliderButton,{id:Jn.range?void 0:unref(Sn),ref_key:"firstButton",ref:he,"model-value":unref(Fn),vertical:Jn.vertical,"tooltip-class":Jn.tooltipClass,placement:Jn.placement,role:"slider","aria-label":Jn.range||!unref(wn)?unref(kn):void 0,"aria-labelledby":!Jn.range&&unref(wn)?(Qn=unref(de))==null?void 0:Qn.labelId:void 0,"aria-valuemin":Jn.min,"aria-valuemax":Jn.range?unref(Yn):Jn.max,"aria-valuenow":unref(Fn),"aria-valuetext":unref(Nn),"aria-orientation":Jn.vertical?"vertical":"horizontal","aria-disabled":unref($e),"onUpdate:modelValue":unref(_n)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Jn.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:_e,"model-value":unref(Yn),vertical:Jn.vertical,"tooltip-class":Jn.tooltipClass,placement:Jn.placement,role:"slider","aria-label":unref(Dn),"aria-valuemin":unref(Fn),"aria-valuemax":Jn.max,"aria-valuenow":unref(Yn),"aria-valuetext":unref(Mn),"aria-orientation":Jn.vertical?"vertical":"horizontal","aria-disabled":unref($e),"onUpdate:modelValue":unref(vn)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):createCommentVNode("v-if",!0),Jn.showStops?(openBlock(),createElementBlock("div",_hoisted_2$c,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(bn),(ur,cr)=>(openBlock(),createElementBlock("div",{key:cr,class:normalizeClass(unref(ie).e("stop")),style:normalizeStyle$1(unref(Cn)(ur))},null,6))),128))])):createCommentVNode("v-if",!0),unref(An).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(An),(ur,cr)=>(openBlock(),createElementBlock("div",{key:cr,style:normalizeStyle$1(unref(Cn)(ur.position)),class:normalizeClass([unref(ie).e("stop"),unref(ie).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref(ie).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(An),(ur,cr)=>(openBlock(),createBlock(unref(SliderMarker),{key:cr,mark:ur.mark,style:normalizeStyle$1(unref(Cn)(ur.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),Jn.showInput&&!Jn.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Fn),class:normalizeClass(unref(ie).e("input")),step:Jn.step,disabled:unref($e),controls:Jn.showInputControls,min:Jn.min,max:Jn.max,debounce:Jn.debounce,size:unref(xn),"onUpdate:modelValue":unref(_n),onChange:unref(Et)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],42,_hoisted_1$g)}}});var Slider=_export_sfc$1(_sfc_main$z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const ElSlider=withInstall(Slider),spaceItemProps=buildProps({prefixCls:{type:String}}),SpaceItem=defineComponent({name:"ElSpaceItem",props:spaceItemProps,setup(t,{slots:r}){const V=useNamespace("space"),oe=computed(()=>`${t.prefixCls||V.b()}__item`);return()=>h$2("div",{class:oe.value},renderSlot(r,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace(t){const r=useNamespace("space"),V=computed(()=>[r.b(),r.m(t.direction),t.class]),oe=ref(0),ie=ref(0),le=computed(()=>{const de=t.wrap||t.fill?{flexWrap:"wrap",marginBottom:`-${ie.value}px`}:{},pe={alignItems:t.alignment};return[de,pe,t.style]}),ue=computed(()=>{const de={paddingBottom:`${ie.value}px`,marginRight:`${oe.value}px`},pe=t.fill?{flexGrow:1,minWidth:`${t.fillRatio}%`}:{};return[de,pe]});return watchEffect(()=>{const{size:de="small",wrap:pe,direction:he,fill:_e}=t;if(isArray$c(de)){const[$e=0,Ie=0]=de;oe.value=$e,ie.value=Ie}else{let $e;isNumber$4(de)?$e=de:$e=SIZE_MAP[de||"small"]||SIZE_MAP.small,(pe||_e)&&he==="horizontal"?oe.value=ie.value=$e:he==="horizontal"?(oe.value=$e,ie.value=0):(ie.value=$e,oe.value=0)}}),{classes:V,containerStyle:le,itemStyle:ue}}const spaceProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:definePropType([String,Object,Array]),default:""},style:{type:definePropType([String,Array,Object]),default:""},alignment:{type:definePropType(String),default:"center"},prefixCls:{type:String},spacer:{type:definePropType([Object,String,Number,Array]),default:null,validator:t=>isVNode$1(t)||isNumber$4(t)||isString$6(t)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:t=>isNumber$4(t)||isArray$c(t)&&t.length===2&&t.every(isNumber$4)}}),Space=defineComponent({name:"ElSpace",props:spaceProps,setup(t,{slots:r}){const{classes:V,containerStyle:oe,itemStyle:ie}=useSpace(t);function le(ue,de="",pe=[]){const{prefixCls:he}=t;return ue.forEach((_e,$e)=>{isFragment(_e)?isArray$c(_e.children)&&_e.children.forEach((Ie,Ve)=>{isFragment(Ie)&&isArray$c(Ie.children)?le(Ie.children,`${de+Ve}-`,pe):pe.push(createVNode(SpaceItem,{style:ie.value,prefixCls:he,key:`nested-${de+Ve}`},{default:()=>[Ie]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(_e)&&pe.push(createVNode(SpaceItem,{style:ie.value,prefixCls:he,key:`LoopKey${de+$e}`},{default:()=>[_e]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),pe}return()=>{var ue;const{spacer:de,direction:pe}=t,he=renderSlot(r,"default",{key:0},()=>[]);if(((ue=he.children)!=null?ue:[]).length===0)return null;if(isArray$c(he.children)){let _e=le(he.children);if(de){const $e=_e.length-1;_e=_e.reduce((Ie,Ve,Fe)=>{const Ue=[...Ie,Ve];return Fe!==$e&&Ue.push(createVNode("span",{style:[ie.value,pe==="vertical"?"width: 100%":null],key:Fe},[isVNode$1(de)?de:createTextVNode(de,PatchFlags.TEXT)],PatchFlags.STYLE)),Ue},[])}return createVNode("div",{class:V.value,style:oe.value},_e,PatchFlags.STYLE|PatchFlags.CLASS)}return he.children}}}),ElSpace=withInstall(Space),statisticProps=buildProps({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:definePropType([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:definePropType([String,Object,Array])}}),__default__$p=defineComponent({name:"ElStatistic"}),_sfc_main$y=defineComponent({...__default__$p,props:statisticProps,setup(t,{expose:r}){const V=t,oe=useNamespace("statistic"),ie=computed(()=>{const{value:le,formatter:ue,precision:de,decimalSeparator:pe,groupSeparator:he}=V;if(isFunction$5(ue))return ue(le);if(!isNumber$4(le))return le;let[_e,$e=""]=String(le).split(".");return $e=$e.padEnd(de,"0").slice(0,de>0?de:0),_e=_e.replace(/\B(?=(\d{3})+(?!\d))/g,he),[_e,$e].join($e?pe:"")});return r({displayValue:ie}),(le,ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(oe).b())},[le.$slots.title||le.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("head"))},[renderSlot(le.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(le.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("content"))},[le.$slots.prefix||le.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("prefix"))},[renderSlot(le.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString$1(le.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(oe).e("number")),style:normalizeStyle$1(le.valueStyle)},toDisplayString$1(unref(ie)),7),le.$slots.suffix||le.suffix?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).e("suffix"))},[renderSlot(le.$slots,"suffix",{},()=>[createBaseVNode("span",null,toDisplayString$1(le.suffix),1)])],2)):createCommentVNode("v-if",!0)],2)],2))}});var Statistic=_export_sfc$1(_sfc_main$y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const ElStatistic=withInstall(Statistic),countdownProps=buildProps({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:definePropType([Number,Object]),default:0},valueStyle:{type:definePropType([String,Object,Array])}}),countdownEmits={finish:()=>!0,[CHANGE_EVENT]:t=>isNumber$4(t)},timeUnits$1=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],getTime$1=t=>isNumber$4(t)?new Date(t).getTime():t.valueOf(),formatTime$2=(t,r)=>{let V=t;const oe=/\[([^\]]*)]/g;return timeUnits$1.reduce((le,[ue,de])=>{const pe=new RegExp(`${ue}+(?![^\\[\\]]*\\])`,"g");if(pe.test(le)){const he=Math.floor(V/de);return V-=he*de,le.replace(pe,_e=>String(he).padStart(_e.length,"0"))}return le},r).replace(oe,"$1")},__default__$o=defineComponent({name:"ElCountdown"}),_sfc_main$x=defineComponent({...__default__$o,props:countdownProps,emits:countdownEmits,setup(t,{expose:r,emit:V}){const oe=t;let ie;const le=ref(getTime$1(oe.value)-Date.now()),ue=computed(()=>formatTime$2(le.value,oe.format)),de=_e=>formatTime$2(_e,oe.format),pe=()=>{ie&&(cAF(ie),ie=void 0)},he=()=>{const _e=getTime$1(oe.value),$e=()=>{let Ie=_e-Date.now();V("change",Ie),Ie<=0?(Ie=0,pe(),V("finish")):ie=rAF($e),le.value=Ie};ie=rAF($e)};return watch(()=>[oe.value,oe.format],()=>{pe(),he()},{immediate:!0}),onBeforeUnmount(()=>{pe()}),r({displayValue:ue}),(_e,$e)=>(openBlock(),createBlock(unref(ElStatistic),{value:le.value,title:_e.title,prefix:_e.prefix,suffix:_e.suffix,"value-style":_e.valueStyle,formatter:de},createSlots({_:2},[renderList(_e.$slots,(Ie,Ve)=>({name:Ve,fn:withCtx(()=>[renderSlot(_e.$slots,Ve)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Countdown=_export_sfc$1(_sfc_main$x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const ElCountdown=withInstall(Countdown),stepsProps=buildProps({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),stepsEmits={[CHANGE_EVENT]:(t,r)=>[t,r].every(isNumber$4)},__default__$n=defineComponent({name:"ElSteps"}),_sfc_main$w=defineComponent({...__default__$n,props:stepsProps,emits:stepsEmits,setup(t,{emit:r}){const V=t,oe=useNamespace("steps"),{children:ie,addChild:le,removeChild:ue}=useOrderedChildren(getCurrentInstance(),"ElStep");return watch(ie,()=>{ie.value.forEach((de,pe)=>{de.setIndex(pe)})}),provide("ElSteps",{props:V,steps:ie,addStep:le,removeStep:ue}),watch(()=>V.active,(de,pe)=>{r(CHANGE_EVENT,de,pe)}),(de,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b(),unref(oe).m(de.simple?"simple":de.direction)])},[renderSlot(de.$slots,"default")],2))}});var Steps=_export_sfc$1(_sfc_main$w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const stepProps=buildProps({title:{type:String,default:""},icon:{type:iconPropType},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),__default__$m=defineComponent({name:"ElStep"}),_sfc_main$v=defineComponent({...__default__$m,props:stepProps,setup(t){const r=t,V=useNamespace("step"),oe=ref(-1),ie=ref({}),le=ref(""),ue=inject("ElSteps"),de=getCurrentInstance();onMounted(()=>{watch([()=>ue.props.active,()=>ue.props.processStatus,()=>ue.props.finishStatus],([vn])=>{hn(vn)},{immediate:!0})}),onBeforeUnmount(()=>{ue.removeStep(_n.uid)});const pe=computed(()=>r.status||le.value),he=computed(()=>{const vn=ue.steps.value[oe.value-1];return vn?vn.currentStatus:"wait"}),_e=computed(()=>ue.props.alignCenter),$e=computed(()=>ue.props.direction==="vertical"),Ie=computed(()=>ue.props.simple),Ve=computed(()=>ue.steps.value.length),Fe=computed(()=>{var vn;return((vn=ue.steps.value[Ve.value-1])==null?void 0:vn.uid)===(de==null?void 0:de.uid)}),Ue=computed(()=>Ie.value?"":ue.props.space),qe=computed(()=>[V.b(),V.is(Ie.value?"simple":ue.props.direction),V.is("flex",Fe.value&&!Ue.value&&!_e.value),V.is("center",_e.value&&!$e.value&&!Ie.value)]),Et=computed(()=>{const vn={flexBasis:isNumber$4(Ue.value)?`${Ue.value}px`:Ue.value?Ue.value:`${100/(Ve.value-(_e.value?0:1))}%`};return $e.value||Fe.value&&(vn.maxWidth=`${100/Ve.value}%`),vn}),At=vn=>{oe.value=vn},Lt=vn=>{const bn=vn==="wait",Cn={transitionDelay:`${bn?"-":""}${150*oe.value}ms`},Sn=vn===ue.props.processStatus||bn?0:100;Cn.borderWidth=Sn&&!Ie.value?"1px":0,Cn[ue.props.direction==="vertical"?"height":"width"]=`${Sn}%`,ie.value=Cn},hn=vn=>{vn>oe.value?le.value=ue.props.finishStatus:vn===oe.value&&he.value!=="error"?le.value=ue.props.processStatus:le.value="wait";const bn=ue.steps.value[oe.value-1];bn&&bn.calcProgress(le.value)},_n=reactive({uid:de.uid,currentStatus:pe,setIndex:At,calcProgress:Lt});return ue.addStep(_n),(vn,bn)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(unref(Et)),class:normalizeClass(unref(qe))},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(V).e("head"),unref(V).is(unref(pe))])},[unref(Ie)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(V).e("line-inner")),style:normalizeStyle$1(ie.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(V).e("icon"),unref(V).is(vn.icon||vn.$slots.icon?"icon":"text")])},[renderSlot(vn.$slots,"icon",{},()=>[vn.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(V).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(vn.icon)))]),_:1},8,["class"])):unref(pe)==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(V).e("icon-inner"),unref(V).is("status")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):unref(pe)==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(V).e("icon-inner"),unref(V).is("status")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):unref(Ie)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref(V).e("icon-inner"))},toDisplayString$1(oe.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(V).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(V).e("title"),unref(V).is(unref(pe))])},[renderSlot(vn.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(vn.title),1)])],2),unref(Ie)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(V).e("description"),unref(V).is(unref(pe))])},[renderSlot(vn.$slots,"description",{},()=>[createTextVNode(toDisplayString$1(vn.description),1)])],2))],2)],6))}});var Step=_export_sfc$1(_sfc_main$v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const ElSteps=withInstall(Steps,{Step}),ElStep=withNoopInstall(Step),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:iconPropType},activeActionIcon:{type:iconPropType},activeIcon:{type:iconPropType},inactiveIcon:{type:iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:definePropType(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),switchEmits={[UPDATE_MODEL_EVENT]:t=>isBoolean$3(t)||isString$6(t)||isNumber$4(t),[CHANGE_EVENT]:t=>isBoolean$3(t)||isString$6(t)||isNumber$4(t),[INPUT_EVENT]:t=>isBoolean$3(t)||isString$6(t)||isNumber$4(t)},_hoisted_1$f=["onClick"],_hoisted_2$b=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],_hoisted_3$6=["aria-hidden"],_hoisted_4$3=["aria-hidden"],_hoisted_5$1=["aria-hidden"],COMPONENT_NAME$8="ElSwitch",__default__$l=defineComponent({name:COMPONENT_NAME$8}),_sfc_main$u=defineComponent({...__default__$l,props:switchProps,emits:switchEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=getCurrentInstance(),{formItem:le}=useFormItem(),ue=useFormSize(),de=useNamespace("switch");(Cn=>{Cn.forEach(Sn=>{useDeprecated({from:Sn[0],replacement:Sn[1],scope:COMPONENT_NAME$8,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},computed(()=>{var wn;return!!((wn=ie.vnode.props)!=null&&wn[Sn[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:he}=useFormItemInputId(oe,{formItemContext:le}),_e=useFormDisabled(computed(()=>oe.loading)),$e=ref(oe.modelValue!==!1),Ie=ref(),Ve=ref(),Fe=computed(()=>[de.b(),de.m(ue.value),de.is("disabled",_e.value),de.is("checked",Lt.value)]),Ue=computed(()=>[de.e("label"),de.em("label","left"),de.is("active",!Lt.value)]),qe=computed(()=>[de.e("label"),de.em("label","right"),de.is("active",Lt.value)]),Et=computed(()=>({width:addUnit(oe.width)}));watch(()=>oe.modelValue,()=>{$e.value=!0}),watch(()=>oe.value,()=>{$e.value=!1});const At=computed(()=>$e.value?oe.modelValue:oe.value),Lt=computed(()=>At.value===oe.activeValue);[oe.activeValue,oe.inactiveValue].includes(At.value)||(V(UPDATE_MODEL_EVENT,oe.inactiveValue),V(CHANGE_EVENT,oe.inactiveValue),V(INPUT_EVENT,oe.inactiveValue)),watch(Lt,Cn=>{var Sn;Ie.value.checked=Cn,oe.validateEvent&&((Sn=le==null?void 0:le.validate)==null||Sn.call(le,"change").catch(wn=>void 0))});const hn=()=>{const Cn=Lt.value?oe.inactiveValue:oe.activeValue;V(UPDATE_MODEL_EVENT,Cn),V(CHANGE_EVENT,Cn),V(INPUT_EVENT,Cn),nextTick(()=>{Ie.value.checked=Lt.value})},_n=()=>{if(_e.value)return;const{beforeChange:Cn}=oe;if(!Cn){hn();return}const Sn=Cn();[isPromise(Sn),isBoolean$3(Sn)].includes(!0)||throwError$1(COMPONENT_NAME$8,"beforeChange must return type `Promise` or `boolean`"),isPromise(Sn)?Sn.then(En=>{En&&hn()}).catch(En=>{}):Sn&&hn()},vn=computed(()=>de.cssVarBlock({...oe.activeColor?{"on-color":oe.activeColor}:null,...oe.inactiveColor?{"off-color":oe.inactiveColor}:null,...oe.borderColor?{"border-color":oe.borderColor}:null})),bn=()=>{var Cn,Sn;(Sn=(Cn=Ie.value)==null?void 0:Cn.focus)==null||Sn.call(Cn)};return onMounted(()=>{Ie.value.checked=Lt.value}),r({focus:bn,checked:Lt}),(Cn,Sn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Fe)),style:normalizeStyle$1(unref(vn)),onClick:withModifiers(_n,["prevent"])},[createBaseVNode("input",{id:unref(he),ref_key:"input",ref:Ie,class:normalizeClass(unref(de).e("input")),type:"checkbox",role:"switch","aria-checked":unref(Lt),"aria-disabled":unref(_e),name:Cn.name,"true-value":Cn.activeValue,"false-value":Cn.inactiveValue,disabled:unref(_e),tabindex:Cn.tabindex,onChange:hn,onKeydown:withKeys(_n,["enter"])},null,42,_hoisted_2$b),!Cn.inlinePrompt&&(Cn.inactiveIcon||Cn.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Ue))},[Cn.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Cn.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!Cn.inactiveIcon&&Cn.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":unref(Lt)},toDisplayString$1(Cn.inactiveText),9,_hoisted_3$6)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{ref_key:"core",ref:Ve,class:normalizeClass(unref(de).e("core")),style:normalizeStyle$1(unref(Et))},[Cn.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(de).e("inner"))},[Cn.activeIcon||Cn.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(de).is("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Lt)?Cn.activeIcon:Cn.inactiveIcon)))]),_:1},8,["class"])):Cn.activeText||Cn.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(de).is("text")),"aria-hidden":!unref(Lt)},toDisplayString$1(unref(Lt)?Cn.activeText:Cn.inactiveText),11,_hoisted_4$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(de).e("action"))},[Cn.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(de).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])):Cn.activeActionIcon&&unref(Lt)?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Cn.activeActionIcon)))]),_:1})):Cn.inactiveActionIcon&&!unref(Lt)?(openBlock(),createBlock(unref(ElIcon),{key:2},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Cn.inactiveActionIcon)))]),_:1})):createCommentVNode("v-if",!0)],2)],6),!Cn.inlinePrompt&&(Cn.activeIcon||Cn.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(qe))},[Cn.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Cn.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!Cn.activeIcon&&Cn.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!unref(Lt)},toDisplayString$1(Cn.activeText),9,_hoisted_5$1)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$f))}});var Switch=_export_sfc$1(_sfc_main$u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ElSwitch=withInstall(Switch);/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */var matchHtmlRegExp=/["'&<>]/,escapeHtml_1=escapeHtml$1;function escapeHtml$1(t){var r=""+t,V=matchHtmlRegExp.exec(r);if(!V)return r;var oe,ie="",le=0,ue=0;for(le=V.index;letypeof he=="string"?get$1(de,he):he(de,pe,t))):(r!=="$key"&&isObject$9(de)&&"$value"in de&&(de=de.$value),[isObject$9(de)?get$1(de,r):de])},ue=function(de,pe){if(oe)return oe(de.value,pe.value);for(let he=0,_e=de.key.length;he<_e;he++){if(de.key[he]pe.key[he])return 1}return 0};return t.map((de,pe)=>({value:de,index:pe,key:le?le(de,pe):null})).sort((de,pe)=>{let he=ue(de,pe);return he||(he=de.index-pe.index),he*+V}).map(de=>de.value)},getColumnById=function(t,r){let V=null;return t.columns.forEach(oe=>{oe.id===r&&(V=oe)}),V},getColumnByKey=function(t,r){let V=null;for(let oe=0;oe{if(!t)throw new Error("Row is required when get row identity");if(typeof r=="string"){if(!r.includes("."))return`${t[r]}`;const V=r.split(".");let oe=t;for(const ie of V)oe=oe[ie];return`${oe}`}else if(typeof r=="function")return r.call(null,t)},getKeysMap=function(t,r){const V={};return(t||[]).forEach((oe,ie)=>{V[getRowIdentity(oe,r)]={row:oe,index:ie}}),V};function mergeOptions$1(t,r){const V={};let oe;for(oe in t)V[oe]=t[oe];for(oe in r)if(hasOwn$4(r,oe)){const ie=r[oe];typeof ie<"u"&&(V[oe]=ie)}return V}function parseWidth(t){return t===""||t!==void 0&&(t=Number.parseInt(t,10),Number.isNaN(t)&&(t="")),t}function parseMinWidth(t){return t===""||t!==void 0&&(t=parseWidth(t),Number.isNaN(t)&&(t=80)),t}function parseHeight(t){return typeof t=="number"?t:typeof t=="string"?/^\d+(?:px)?$/.test(t)?Number.parseInt(t,10):t:null}function compose(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,V)=>(...oe)=>r(V(...oe)))}function toggleRowStatus(t,r,V){let oe=!1;const ie=t.indexOf(r),le=ie!==-1,ue=de=>{de==="add"?t.push(r):t.splice(ie,1),oe=!0,isArray$c(r.children)&&r.children.forEach(pe=>{toggleRowStatus(t,pe,V??!le)})};return isBoolean$3(V)?V&&!le?ue("add"):!V&&le&&ue("remove"):ue(le?"remove":"add"),oe}function walkTreeNode(t,r,V="children",oe="hasChildren"){const ie=ue=>!(Array.isArray(ue)&&ue.length);function le(ue,de,pe){r(ue,de,pe),de.forEach(he=>{if(he[oe]){r(he,null,pe+1);return}const _e=he[V];ie(_e)||le(he,_e,pe+1)})}t.forEach(ue=>{if(ue[oe]){r(ue,null,0);return}const de=ue[V];ie(de)||le(ue,de,0)})}let removePopper;function createTablePopper(t,r,V,oe,ie){ie=merge$4({enterable:!0,showArrow:!0},ie);const le=t==null?void 0:t.dataset.prefix,ue=t==null?void 0:t.querySelector(`.${le}-scrollbar__wrap`);function de(){const qe=ie.effect==="light",Et=document.createElement("div");return Et.className=[`${le}-popper`,qe?"is-light":"is-dark",ie.popperClass||""].join(" "),V=escapeHtml$2(V),Et.innerHTML=V,Et.style.zIndex=String(oe()),t==null||t.appendChild(Et),Et}function pe(){const qe=document.createElement("div");return qe.className=`${le}-popper__arrow`,qe}function he(){_e&&_e.update()}removePopper==null||removePopper(),removePopper=()=>{try{_e&&_e.destroy(),Ve&&(t==null||t.removeChild(Ve)),r.removeEventListener("mouseenter",$e),r.removeEventListener("mouseleave",Ie),ue==null||ue.removeEventListener("scroll",removePopper),removePopper=void 0}catch{}};let _e=null,$e=he,Ie=removePopper;ie.enterable&&({onOpen:$e,onClose:Ie}=useDelayedToggle({showAfter:ie.showAfter,hideAfter:ie.hideAfter,open:he,close:removePopper}));const Ve=de();Ve.onmouseenter=$e,Ve.onmouseleave=Ie;const Fe=[];if(ie.offset&&Fe.push({name:"offset",options:{offset:[0,ie.offset]}}),ie.showArrow){const qe=Ve.appendChild(pe());Fe.push({name:"arrow",options:{element:qe,padding:10}})}const Ue=ie.popperOptions||{};return _e=yn(r,Ve,{placement:ie.placement||"top",strategy:"fixed",...Ue,modifiers:Ue.modifiers?Fe.concat(Ue.modifiers):Fe}),r.addEventListener("mouseenter",$e),r.addEventListener("mouseleave",Ie),ue==null||ue.addEventListener("scroll",removePopper),_e}function getCurrentColumns(t){return t.children?flatMap(t.children,getCurrentColumns):[t]}function getColSpan(t,r){return t+r.colSpan}const isFixedColumn=(t,r,V,oe)=>{let ie=0,le=t;const ue=V.states.columns.value;if(oe){const pe=getCurrentColumns(oe[t]);ie=ue.slice(0,ue.indexOf(pe[0])).reduce(getColSpan,0),le=ie+pe.reduce(getColSpan,0)-1}else ie=t;let de;switch(r){case"left":le=ue.length-V.states.rightFixedLeafColumnsLength.value&&(de="right");break;default:le=ue.length-V.states.rightFixedLeafColumnsLength.value&&(de="right")}return de?{direction:de,start:ie,after:le}:{}},getFixedColumnsClass=(t,r,V,oe,ie,le=0)=>{const ue=[],{direction:de,start:pe,after:he}=isFixedColumn(r,V,oe,ie);if(de){const _e=de==="left";ue.push(`${t}-fixed-column--${de}`),_e&&he+le===oe.states.fixedLeafColumnsLength.value-1?ue.push("is-last-column"):!_e&&pe-le===oe.states.columns.value.length-oe.states.rightFixedLeafColumnsLength.value&&ue.push("is-first-column")}return ue};function getOffset(t,r){return t+(r.realWidth===null||Number.isNaN(r.realWidth)?Number(r.width):r.realWidth)}const getFixedColumnOffset=(t,r,V,oe)=>{const{direction:ie,start:le=0,after:ue=0}=isFixedColumn(t,r,V,oe);if(!ie)return;const de={},pe=ie==="left",he=V.states.columns.value;return pe?de.left=he.slice(0,le).reduce(getOffset,0):de.right=he.slice(ue+1).reverse().reduce(getOffset,0),de},ensurePosition=(t,r)=>{t&&(Number.isNaN(t[r])||(t[r]=`${t[r]}px`))};function useExpand(t){const r=getCurrentInstance(),V=ref(!1),oe=ref([]);return{updateExpandRows:()=>{const pe=t.data.value||[],he=t.rowKey.value;if(V.value)oe.value=pe.slice();else if(he){const _e=getKeysMap(oe.value,he);oe.value=pe.reduce(($e,Ie)=>{const Ve=getRowIdentity(Ie,he);return _e[Ve]&&$e.push(Ie),$e},[])}else oe.value=[]},toggleRowExpansion:(pe,he)=>{toggleRowStatus(oe.value,pe,he)&&r.emit("expand-change",pe,oe.value.slice())},setExpandRowKeys:pe=>{r.store.assertRowKey();const he=t.data.value||[],_e=t.rowKey.value,$e=getKeysMap(he,_e);oe.value=pe.reduce((Ie,Ve)=>{const Fe=$e[Ve];return Fe&&Ie.push(Fe.row),Ie},[])},isRowExpanded:pe=>{const he=t.rowKey.value;return he?!!getKeysMap(oe.value,he)[getRowIdentity(pe,he)]:oe.value.includes(pe)},states:{expandRows:oe,defaultExpandAll:V}}}function useCurrent(t){const r=getCurrentInstance(),V=ref(null),oe=ref(null),ie=he=>{r.store.assertRowKey(),V.value=he,ue(he)},le=()=>{V.value=null},ue=he=>{const{data:_e,rowKey:$e}=t;let Ie=null;$e.value&&(Ie=(unref(_e)||[]).find(Ve=>getRowIdentity(Ve,$e.value)===he)),oe.value=Ie,r.emit("current-change",oe.value,null)};return{setCurrentRowKey:ie,restoreCurrentRowKey:le,setCurrentRowByKey:ue,updateCurrentRow:he=>{const _e=oe.value;if(he&&he!==_e){oe.value=he,r.emit("current-change",oe.value,_e);return}!he&&_e&&(oe.value=null,r.emit("current-change",null,_e))},updateCurrentRowData:()=>{const he=t.rowKey.value,_e=t.data.value||[],$e=oe.value;if(!_e.includes($e)&&$e){if(he){const Ie=getRowIdentity($e,he);ue(Ie)}else oe.value=null;oe.value===null&&r.emit("current-change",null,$e)}else V.value&&(ue(V.value),le())},states:{_currentRowKey:V,currentRow:oe}}}function useTree$2(t){const r=ref([]),V=ref({}),oe=ref(16),ie=ref(!1),le=ref({}),ue=ref("hasChildren"),de=ref("children"),pe=getCurrentInstance(),he=computed(()=>{if(!t.rowKey.value)return{};const Et=t.data.value||[];return $e(Et)}),_e=computed(()=>{const Et=t.rowKey.value,At=Object.keys(le.value),Lt={};return At.length&&At.forEach(hn=>{if(le.value[hn].length){const _n={children:[]};le.value[hn].forEach(vn=>{const bn=getRowIdentity(vn,Et);_n.children.push(bn),vn[ue.value]&&!Lt[bn]&&(Lt[bn]={children:[]})}),Lt[hn]=_n}}),Lt}),$e=Et=>{const At=t.rowKey.value,Lt={};return walkTreeNode(Et,(hn,_n,vn)=>{const bn=getRowIdentity(hn,At);Array.isArray(_n)?Lt[bn]={children:_n.map(Cn=>getRowIdentity(Cn,At)),level:vn}:ie.value&&(Lt[bn]={children:[],lazy:!0,level:vn})},de.value,ue.value),Lt},Ie=(Et=!1,At=(Lt=>(Lt=pe.store)==null?void 0:Lt.states.defaultExpandAll.value)())=>{var Lt;const hn=he.value,_n=_e.value,vn=Object.keys(hn),bn={};if(vn.length){const Cn=unref(V),Sn=[],wn=(xn,Pn)=>{if(Et)return r.value?At||r.value.includes(Pn):!!(At||xn!=null&&xn.expanded);{const kn=At||r.value&&r.value.includes(Pn);return!!(xn!=null&&xn.expanded||kn)}};vn.forEach(xn=>{const Pn=Cn[xn],kn={...hn[xn]};if(kn.expanded=wn(Pn,xn),kn.lazy){const{loaded:Nn=!1,loading:Dn=!1}=Pn||{};kn.loaded=!!Nn,kn.loading=!!Dn,Sn.push(xn)}bn[xn]=kn});const En=Object.keys(_n);ie.value&&En.length&&Sn.length&&En.forEach(xn=>{const Pn=Cn[xn],kn=_n[xn].children;if(Sn.includes(xn)){if(bn[xn].children.length!==0)throw new Error("[ElTable]children must be an empty array.");bn[xn].children=kn}else{const{loaded:Nn=!1,loading:Dn=!1}=Pn||{};bn[xn]={lazy:!0,loaded:!!Nn,loading:!!Dn,expanded:wn(Pn,xn),children:kn,level:""}}})}V.value=bn,(Lt=pe.store)==null||Lt.updateTableScrollY()};watch(()=>r.value,()=>{Ie(!0)}),watch(()=>he.value,()=>{Ie()}),watch(()=>_e.value,()=>{Ie()});const Ve=Et=>{r.value=Et,Ie()},Fe=(Et,At)=>{pe.store.assertRowKey();const Lt=t.rowKey.value,hn=getRowIdentity(Et,Lt),_n=hn&&V.value[hn];if(hn&&_n&&"expanded"in _n){const vn=_n.expanded;At=typeof At>"u"?!_n.expanded:At,V.value[hn].expanded=At,vn!==At&&pe.emit("expand-change",Et,At),pe.store.updateTableScrollY()}},Ue=Et=>{pe.store.assertRowKey();const At=t.rowKey.value,Lt=getRowIdentity(Et,At),hn=V.value[Lt];ie.value&&hn&&"loaded"in hn&&!hn.loaded?qe(Et,Lt,hn):Fe(Et,void 0)},qe=(Et,At,Lt)=>{const{load:hn}=pe.props;hn&&!V.value[At].loaded&&(V.value[At].loading=!0,hn(Et,Lt,_n=>{if(!Array.isArray(_n))throw new TypeError("[ElTable] data must be an array");V.value[At].loading=!1,V.value[At].loaded=!0,V.value[At].expanded=!0,_n.length&&(le.value[At]=_n),pe.emit("expand-change",Et,!0)}))};return{loadData:qe,loadOrToggle:Ue,toggleTreeExpansion:Fe,updateTreeExpandKeys:Ve,updateTreeData:Ie,normalize:$e,states:{expandRowKeys:r,treeData:V,indent:oe,lazy:ie,lazyTreeNodeMap:le,lazyColumnIdentifier:ue,childrenColumnName:de}}}const sortData=(t,r)=>{const V=r.sortingColumn;return!V||typeof V.sortable=="string"?t:orderBy(t,r.sortProp,r.sortOrder,V.sortMethod,V.sortBy)},doFlattenColumns=t=>{const r=[];return t.forEach(V=>{V.children&&V.children.length>0?r.push.apply(r,doFlattenColumns(V.children)):r.push(V)}),r};function useWatcher$1(){var t;const r=getCurrentInstance(),{size:V}=toRefs((t=r.proxy)==null?void 0:t.$props),oe=ref(null),ie=ref([]),le=ref([]),ue=ref(!1),de=ref([]),pe=ref([]),he=ref([]),_e=ref([]),$e=ref([]),Ie=ref([]),Ve=ref([]),Fe=ref([]),Ue=[],qe=ref(0),Et=ref(0),At=ref(0),Lt=ref(!1),hn=ref([]),_n=ref(!1),vn=ref(!1),bn=ref(null),Cn=ref({}),Sn=ref(null),wn=ref(null),En=ref(null),xn=ref(null),Pn=ref(null);watch(ie,()=>r.state&&Mn(!1),{deep:!0});const kn=()=>{if(!oe.value)throw new Error("[ElTable] prop row-key is required")},Nn=Rr=>{var mr;(mr=Rr.children)==null||mr.forEach(ir=>{ir.fixed=Rr.fixed,Nn(ir)})},Dn=()=>{de.value.forEach($r=>{Nn($r)}),_e.value=de.value.filter($r=>$r.fixed===!0||$r.fixed==="left"),$e.value=de.value.filter($r=>$r.fixed==="right"),_e.value.length>0&&de.value[0]&&de.value[0].type==="selection"&&!de.value[0].fixed&&(de.value[0].fixed=!0,_e.value.unshift(de.value[0]));const Rr=de.value.filter($r=>!$r.fixed);pe.value=[].concat(_e.value).concat(Rr).concat($e.value);const mr=doFlattenColumns(Rr),ir=doFlattenColumns(_e.value),ar=doFlattenColumns($e.value);qe.value=mr.length,Et.value=ir.length,At.value=ar.length,he.value=[].concat(ir).concat(mr).concat(ar),ue.value=_e.value.length>0||$e.value.length>0},Mn=(Rr,mr=!1)=>{Rr&&Dn(),mr?r.state.doLayout():r.state.debouncedUpdateLayout()},Ln=Rr=>hn.value.includes(Rr),An=()=>{Lt.value=!1,hn.value.length&&(hn.value=[],r.emit("selection-change",[]))},Vn=()=>{let Rr;if(oe.value){Rr=[];const mr=getKeysMap(hn.value,oe.value),ir=getKeysMap(ie.value,oe.value);for(const ar in mr)hasOwn$4(mr,ar)&&!ir[ar]&&Rr.push(mr[ar].row)}else Rr=hn.value.filter(mr=>!ie.value.includes(mr));if(Rr.length){const mr=hn.value.filter(ir=>!Rr.includes(ir));hn.value=mr,r.emit("selection-change",mr.slice())}},Wn=()=>(hn.value||[]).slice(),Fn=(Rr,mr=void 0,ir=!0)=>{if(toggleRowStatus(hn.value,Rr,mr)){const $r=(hn.value||[]).slice();ir&&r.emit("select",$r,Rr),r.emit("selection-change",$r)}},Yn=()=>{var Rr,mr;const ir=vn.value?!Lt.value:!(Lt.value||hn.value.length);Lt.value=ir;let ar=!1,$r=0;const Zn=(mr=(Rr=r==null?void 0:r.store)==null?void 0:Rr.states)==null?void 0:mr.rowKey.value;ie.value.forEach((Or,Lr)=>{const Ur=Lr+$r;bn.value?bn.value.call(null,Or,Ur)&&toggleRowStatus(hn.value,Or,ir)&&(ar=!0):toggleRowStatus(hn.value,Or,ir)&&(ar=!0),$r+=Jn(getRowIdentity(Or,Zn))}),ar&&r.emit("selection-change",hn.value?hn.value.slice():[]),r.emit("select-all",hn.value)},tr=()=>{const Rr=getKeysMap(hn.value,oe.value);ie.value.forEach(mr=>{const ir=getRowIdentity(mr,oe.value),ar=Rr[ir];ar&&(hn.value[ar.index]=mr)})},yr=()=>{var Rr,mr,ir;if(((Rr=ie.value)==null?void 0:Rr.length)===0){Lt.value=!1;return}let ar;oe.value&&(ar=getKeysMap(hn.value,oe.value));const $r=function(Ur){return ar?!!ar[getRowIdentity(Ur,oe.value)]:hn.value.includes(Ur)};let Zn=!0,Or=0,Lr=0;for(let Ur=0,Kr=(ie.value||[]).length;Ur{var mr;if(!r||!r.store)return 0;const{treeData:ir}=r.store.states;let ar=0;const $r=(mr=ir.value[Rr])==null?void 0:mr.children;return $r&&(ar+=$r.length,$r.forEach(Zn=>{ar+=Jn(Zn)})),ar},Kn=(Rr,mr)=>{Array.isArray(Rr)||(Rr=[Rr]);const ir={};return Rr.forEach(ar=>{Cn.value[ar.id]=mr,ir[ar.columnKey||ar.id]=mr}),ir},Gn=(Rr,mr,ir)=>{wn.value&&wn.value!==Rr&&(wn.value.order=null),wn.value=Rr,En.value=mr,xn.value=ir},Qn=()=>{let Rr=unref(le);Object.keys(Cn.value).forEach(mr=>{const ir=Cn.value[mr];if(!ir||ir.length===0)return;const ar=getColumnById({columns:he.value},mr);ar&&ar.filterMethod&&(Rr=Rr.filter($r=>ir.some(Zn=>ar.filterMethod.call(null,Zn,$r,ar))))}),Sn.value=Rr},ur=()=>{ie.value=sortData(Sn.value,{sortingColumn:wn.value,sortProp:En.value,sortOrder:xn.value})},cr=(Rr=void 0)=>{Rr&&Rr.filter||Qn(),ur()},Un=Rr=>{const{tableHeaderRef:mr}=r.refs;if(!mr)return;const ir=Object.assign({},mr.filterPanels),ar=Object.keys(ir);if(ar.length)if(typeof Rr=="string"&&(Rr=[Rr]),Array.isArray(Rr)){const $r=Rr.map(Zn=>getColumnByKey({columns:he.value},Zn));ar.forEach(Zn=>{const Or=$r.find(Lr=>Lr.id===Zn);Or&&(Or.filteredValue=[])}),r.store.commit("filterChange",{column:$r,values:[],silent:!0,multi:!0})}else ar.forEach($r=>{const Zn=he.value.find(Or=>Or.id===$r);Zn&&(Zn.filteredValue=[])}),Cn.value={},r.store.commit("filterChange",{column:{},values:[],silent:!0})},qn=()=>{wn.value&&(Gn(null,null,null),r.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:er,toggleRowExpansion:pr,updateExpandRows:Er,states:dr,isRowExpanded:xr}=useExpand({data:ie,rowKey:oe}),{updateTreeExpandKeys:wr,toggleTreeExpansion:Cr,updateTreeData:gr,loadOrToggle:or,states:fr}=useTree$2({data:ie,rowKey:oe}),{updateCurrentRowData:kr,updateCurrentRow:br,setCurrentRowKey:Ar,states:Dr}=useCurrent({data:ie,rowKey:oe});return{assertRowKey:kn,updateColumns:Dn,scheduleLayout:Mn,isSelected:Ln,clearSelection:An,cleanSelection:Vn,getSelectionRows:Wn,toggleRowSelection:Fn,_toggleAllSelection:Yn,toggleAllSelection:null,updateSelectionByRowKey:tr,updateAllSelected:yr,updateFilters:Kn,updateCurrentRow:br,updateSort:Gn,execFilter:Qn,execSort:ur,execQuery:cr,clearFilter:Un,clearSort:qn,toggleRowExpansion:pr,setExpandRowKeysAdapter:Rr=>{er(Rr),wr(Rr)},setCurrentRowKey:Ar,toggleRowExpansionAdapter:(Rr,mr)=>{he.value.some(({type:ar})=>ar==="expand")?pr(Rr,mr):Cr(Rr,mr)},isRowExpanded:xr,updateExpandRows:Er,updateCurrentRowData:kr,loadOrToggle:or,updateTreeData:gr,states:{tableSize:V,rowKey:oe,data:ie,_data:le,isComplex:ue,_columns:de,originColumns:pe,columns:he,fixedColumns:_e,rightFixedColumns:$e,leafColumns:Ie,fixedLeafColumns:Ve,rightFixedLeafColumns:Fe,updateOrderFns:Ue,leafColumnsLength:qe,fixedLeafColumnsLength:Et,rightFixedLeafColumnsLength:At,isAllSelected:Lt,selection:hn,reserveSelection:_n,selectOnIndeterminate:vn,selectable:bn,filters:Cn,filteredData:Sn,sortingColumn:wn,sortProp:En,sortOrder:xn,hoverRow:Pn,...dr,...fr,...Dr}}}function replaceColumn(t,r){return t.map(V=>{var oe;return V.id===r.id?r:((oe=V.children)!=null&&oe.length&&(V.children=replaceColumn(V.children,r)),V)})}function sortColumn(t){t.forEach(r=>{var V,oe;r.no=(V=r.getColumnIndex)==null?void 0:V.call(r),(oe=r.children)!=null&&oe.length&&sortColumn(r.children)}),t.sort((r,V)=>r.no-V.no)}function useStore(){const t=getCurrentInstance(),r=useWatcher$1();return{ns:useNamespace("table"),...r,mutations:{setData(ue,de){const pe=unref(ue._data)!==de;ue.data.value=de,ue._data.value=de,t.store.execQuery(),t.store.updateCurrentRowData(),t.store.updateExpandRows(),t.store.updateTreeData(t.store.states.defaultExpandAll.value),unref(ue.reserveSelection)?(t.store.assertRowKey(),t.store.updateSelectionByRowKey()):pe?t.store.clearSelection():t.store.cleanSelection(),t.store.updateAllSelected(),t.$ready&&t.store.scheduleLayout()},insertColumn(ue,de,pe,he){const _e=unref(ue._columns);let $e=[];pe?(pe&&!pe.children&&(pe.children=[]),pe.children.push(de),$e=replaceColumn(_e,pe)):(_e.push(de),$e=_e),sortColumn($e),ue._columns.value=$e,ue.updateOrderFns.push(he),de.type==="selection"&&(ue.selectable.value=de.selectable,ue.reserveSelection.value=de.reserveSelection),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},updateColumnOrder(ue,de){var pe;((pe=de.getColumnIndex)==null?void 0:pe.call(de))!==de.no&&(sortColumn(ue._columns.value),t.$ready&&t.store.updateColumns())},removeColumn(ue,de,pe,he){const _e=unref(ue._columns)||[];if(pe)pe.children.splice(pe.children.findIndex(Ie=>Ie.id===de.id),1),nextTick(()=>{var Ie;((Ie=pe.children)==null?void 0:Ie.length)===0&&delete pe.children}),ue._columns.value=replaceColumn(_e,pe);else{const Ie=_e.indexOf(de);Ie>-1&&(_e.splice(Ie,1),ue._columns.value=_e)}const $e=ue.updateOrderFns.indexOf(he);$e>-1&&ue.updateOrderFns.splice($e,1),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},sort(ue,de){const{prop:pe,order:he,init:_e}=de;if(pe){const $e=unref(ue.columns).find(Ie=>Ie.property===pe);$e&&($e.order=he,t.store.updateSort($e,pe,he),t.store.commit("changeSortCondition",{init:_e}))}},changeSortCondition(ue,de){const{sortingColumn:pe,sortProp:he,sortOrder:_e}=ue,$e=unref(pe),Ie=unref(he),Ve=unref(_e);Ve===null&&(ue.sortingColumn.value=null,ue.sortProp.value=null);const Fe={filter:!0};t.store.execQuery(Fe),(!de||!(de.silent||de.init))&&t.emit("sort-change",{column:$e,prop:Ie,order:Ve}),t.store.updateTableScrollY()},filterChange(ue,de){const{column:pe,values:he,silent:_e}=de,$e=t.store.updateFilters(pe,he);t.store.execQuery(),_e||t.emit("filter-change",$e),t.store.updateTableScrollY()},toggleAllSelection(){t.store.toggleAllSelection()},rowSelectedChanged(ue,de){t.store.toggleRowSelection(de),t.store.updateAllSelected()},setHoverRow(ue,de){ue.hoverRow.value=de},setCurrentRow(ue,de){t.store.updateCurrentRow(de)}},commit:function(ue,...de){const pe=t.store.mutations;if(pe[ue])pe[ue].apply(t,[t.store.states].concat(de));else throw new Error(`Action not found: ${ue}`)},updateTableScrollY:function(){nextTick(()=>t.layout.updateScrollY.apply(t.layout))}}}const InitialStateMap={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function createStore(t,r){if(!t)throw new Error("Table is required.");const V=useStore();return V.toggleAllSelection=debounce(V._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(oe=>{handleValue(getArrKeysValue(r,oe),oe,V)}),proxyTableProps(V,r),V}function proxyTableProps(t,r){Object.keys(InitialStateMap).forEach(V=>{watch(()=>getArrKeysValue(r,V),oe=>{handleValue(oe,V,t)})})}function handleValue(t,r,V){let oe=t,ie=InitialStateMap[r];typeof InitialStateMap[r]=="object"&&(ie=ie.key,oe=oe||InitialStateMap[r].default),V.states[ie].value=oe}function getArrKeysValue(t,r){if(r.includes(".")){const V=r.split(".");let oe=t;return V.forEach(ie=>{oe=oe[ie]}),oe}else return t[r]}class TableLayout{constructor(r){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ref(null),this.scrollX=ref(!1),this.scrollY=ref(!1),this.bodyWidth=ref(null),this.fixedWidth=ref(null),this.rightFixedWidth=ref(null),this.gutterWidth=0;for(const V in r)hasOwn$4(r,V)&&(isRef(this[V])?this[V].value=r[V]:this[V]=r[V]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const V=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(V!=null&&V.wrapRef)){let oe=!0;const ie=this.scrollY.value;return oe=V.wrapRef.scrollHeight>V.wrapRef.clientHeight,this.scrollY.value=oe,ie!==oe}return!1}setHeight(r,V="height"){if(!isClient$1)return;const oe=this.table.vnode.el;if(r=parseHeight(r),this.height.value=Number(r),!oe&&(r||r===0))return nextTick(()=>this.setHeight(r,V));typeof r=="number"?(oe.style[V]=`${r}px`,this.updateElsHeight()):typeof r=="string"&&(oe.style[V]=r,this.updateElsHeight())}setMaxHeight(r){this.setHeight(r,"max-height")}getFlattenColumns(){const r=[];return this.table.store.states.columns.value.forEach(oe=>{oe.isColumnGroup?r.push.apply(r,oe.columns):r.push(oe)}),r}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(r){if(!r)return!0;let V=r;for(;V.tagName!=="DIV";){if(getComputedStyle(V).display==="none")return!0;V=V.parentElement}return!1}updateColumnsWidth(){if(!isClient$1)return;const r=this.fit,V=this.table.vnode.el.clientWidth;let oe=0;const ie=this.getFlattenColumns(),le=ie.filter(pe=>typeof pe.width!="number");if(ie.forEach(pe=>{typeof pe.width=="number"&&pe.realWidth&&(pe.realWidth=null)}),le.length>0&&r){if(ie.forEach(pe=>{oe+=Number(pe.width||pe.minWidth||80)}),oe<=V){this.scrollX.value=!1;const pe=V-oe;if(le.length===1)le[0].realWidth=Number(le[0].minWidth||80)+pe;else{const he=le.reduce((Ie,Ve)=>Ie+Number(Ve.minWidth||80),0),_e=pe/he;let $e=0;le.forEach((Ie,Ve)=>{if(Ve===0)return;const Fe=Math.floor(Number(Ie.minWidth||80)*_e);$e+=Fe,Ie.realWidth=Number(Ie.minWidth||80)+Fe}),le[0].realWidth=Number(le[0].minWidth||80)+pe-$e}}else this.scrollX.value=!0,le.forEach(pe=>{pe.realWidth=Number(pe.minWidth)});this.bodyWidth.value=Math.max(oe,V),this.table.state.resizeState.value.width=this.bodyWidth.value}else ie.forEach(pe=>{!pe.width&&!pe.minWidth?pe.realWidth=80:pe.realWidth=Number(pe.width||pe.minWidth),oe+=pe.realWidth}),this.scrollX.value=oe>V,this.bodyWidth.value=oe;const ue=this.store.states.fixedColumns.value;if(ue.length>0){let pe=0;ue.forEach(he=>{pe+=Number(he.realWidth||he.width)}),this.fixedWidth.value=pe}const de=this.store.states.rightFixedColumns.value;if(de.length>0){let pe=0;de.forEach(he=>{pe+=Number(he.realWidth||he.width)}),this.rightFixedWidth.value=pe}this.notifyObservers("columns")}addObserver(r){this.observers.push(r)}removeObserver(r){const V=this.observers.indexOf(r);V!==-1&&this.observers.splice(V,1)}notifyObservers(r){this.observers.forEach(oe=>{var ie,le;switch(r){case"columns":(ie=oe.state)==null||ie.onColumnsChange(this);break;case"scrollable":(le=oe.state)==null||le.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${r}.`)}})}}const{CheckboxGroup:ElCheckboxGroup}=ElCheckbox,_sfc_main$t=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox,ElCheckboxGroup,ElScrollbar,ElTooltip,ElIcon,ArrowDown:arrow_down_default,ArrowUp:arrow_up_default},directives:{ClickOutside},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(t){const r=getCurrentInstance(),{t:V}=useLocale(),oe=useNamespace("table-filter"),ie=r==null?void 0:r.parent;ie.filterPanels.value[t.column.id]||(ie.filterPanels.value[t.column.id]=r);const le=ref(!1),ue=ref(null),de=computed(()=>t.column&&t.column.filters),pe=computed({get:()=>{var hn;return(((hn=t.column)==null?void 0:hn.filteredValue)||[])[0]},set:hn=>{he.value&&(typeof hn<"u"&&hn!==null?he.value.splice(0,1,hn):he.value.splice(0,1))}}),he=computed({get(){return t.column?t.column.filteredValue||[]:[]},set(hn){t.column&&t.upDataColumn("filteredValue",hn)}}),_e=computed(()=>t.column?t.column.filterMultiple:!0),$e=hn=>hn.value===pe.value,Ie=()=>{le.value=!1},Ve=hn=>{hn.stopPropagation(),le.value=!le.value},Fe=()=>{le.value=!1},Ue=()=>{At(he.value),Ie()},qe=()=>{he.value=[],At(he.value),Ie()},Et=hn=>{pe.value=hn,At(typeof hn<"u"&&hn!==null?he.value:[]),Ie()},At=hn=>{t.store.commit("filterChange",{column:t.column,values:hn}),t.store.updateAllSelected()};watch(le,hn=>{t.column&&t.upDataColumn("filterOpened",hn)},{immediate:!0});const Lt=computed(()=>{var hn,_n;return(_n=(hn=ue.value)==null?void 0:hn.popperRef)==null?void 0:_n.contentRef});return{tooltipVisible:le,multiple:_e,filteredValue:he,filterValue:pe,filters:de,handleConfirm:Ue,handleReset:qe,handleSelect:Et,isActive:$e,t:V,ns:oe,showFilterPanel:Ve,hideFilterPanel:Fe,popperPaneRef:Lt,tooltip:ue}}}),_hoisted_1$e={key:0},_hoisted_2$a=["disabled"],_hoisted_3$5=["label","onClick"];function _sfc_render$5(t,r,V,oe,ie,le){const ue=resolveComponent("el-checkbox"),de=resolveComponent("el-checkbox-group"),pe=resolveComponent("el-scrollbar"),he=resolveComponent("arrow-up"),_e=resolveComponent("arrow-down"),$e=resolveComponent("el-icon"),Ie=resolveComponent("el-tooltip"),Ve=resolveDirective("click-outside");return openBlock(),createBlock(Ie,{ref:"tooltip",visible:t.tooltipVisible,offset:0,placement:t.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":t.ns.b(),persistent:""},{content:withCtx(()=>[t.multiple?(openBlock(),createElementBlock("div",_hoisted_1$e,[createBaseVNode("div",{class:normalizeClass(t.ns.e("content"))},[createVNode(pe,{"wrap-class":t.ns.e("wrap")},{default:withCtx(()=>[createVNode(de,{modelValue:t.filteredValue,"onUpdate:modelValue":r[0]||(r[0]=Fe=>t.filteredValue=Fe),class:normalizeClass(t.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.filters,Fe=>(openBlock(),createBlock(ue,{key:Fe.value,label:Fe.value},{default:withCtx(()=>[createTextVNode(toDisplayString$1(Fe.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass(t.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass({[t.ns.is("disabled")]:t.filteredValue.length===0}),disabled:t.filteredValue.length===0,type:"button",onClick:r[1]||(r[1]=(...Fe)=>t.handleConfirm&&t.handleConfirm(...Fe))},toDisplayString$1(t.t("el.table.confirmFilter")),11,_hoisted_2$a),createBaseVNode("button",{type:"button",onClick:r[2]||(r[2]=(...Fe)=>t.handleReset&&t.handleReset(...Fe))},toDisplayString$1(t.t("el.table.resetFilter")),1)],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass(t.ns.e("list"))},[createBaseVNode("li",{class:normalizeClass([t.ns.e("list-item"),{[t.ns.is("active")]:t.filterValue===void 0||t.filterValue===null}]),onClick:r[3]||(r[3]=Fe=>t.handleSelect(null))},toDisplayString$1(t.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList(t.filters,Fe=>(openBlock(),createElementBlock("li",{key:Fe.value,class:normalizeClass([t.ns.e("list-item"),t.ns.is("active",t.isActive(Fe))]),label:Fe.value,onClick:Ue=>t.handleSelect(Fe.value)},toDisplayString$1(Fe.text),11,_hoisted_3$5))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${t.ns.namespace.value}-table__column-filter-trigger`,`${t.ns.namespace.value}-none-outline`]),onClick:r[4]||(r[4]=(...Fe)=>t.showFilterPanel&&t.showFilterPanel(...Fe))},[createVNode($e,null,{default:withCtx(()=>[t.column.filterOpened?(openBlock(),createBlock(he,{key:0})):(openBlock(),createBlock(_e,{key:1}))]),_:1})],2)),[[Ve,t.hideFilterPanel,t.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var FilterPanel=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver(t){const r=getCurrentInstance();onBeforeMount(()=>{V.value.addObserver(r)}),onMounted(()=>{oe(V.value),ie(V.value)}),onUpdated(()=>{oe(V.value),ie(V.value)}),onUnmounted(()=>{V.value.removeObserver(r)});const V=computed(()=>{const le=t.layout;if(!le)throw new Error("Can not find table layout.");return le}),oe=le=>{var ue;const de=((ue=t.vnode.el)==null?void 0:ue.querySelectorAll("colgroup > col"))||[];if(!de.length)return;const pe=le.getFlattenColumns(),he={};pe.forEach(_e=>{he[_e.id]=_e});for(let _e=0,$e=de.length;_e<$e;_e++){const Ie=de[_e],Ve=Ie.getAttribute("name"),Fe=he[Ve];Fe&&Ie.setAttribute("width",Fe.realWidth||Fe.width)}},ie=le=>{var ue,de;const pe=((ue=t.vnode.el)==null?void 0:ue.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let _e=0,$e=pe.length;_e<$e;_e++)pe[_e].setAttribute("width",le.scrollY.value?le.gutterWidth:"0");const he=((de=t.vnode.el)==null?void 0:de.querySelectorAll("th.gutter"))||[];for(let _e=0,$e=he.length;_e<$e;_e++){const Ie=he[_e];Ie.style.width=le.scrollY.value?`${le.gutterWidth}px`:"0",Ie.style.display=le.scrollY.value?"":"none"}};return{tableLayout:V.value,onColumnsChange:oe,onScrollableChange:ie}}const TABLE_INJECTION_KEY=Symbol("ElTable");function useEvent(t,r){const V=getCurrentInstance(),oe=inject(TABLE_INJECTION_KEY),ie=Ue=>{Ue.stopPropagation()},le=(Ue,qe)=>{!qe.filters&&qe.sortable?Fe(Ue,qe,!1):qe.filterable&&!qe.sortable&&ie(Ue),oe==null||oe.emit("header-click",qe,Ue)},ue=(Ue,qe)=>{oe==null||oe.emit("header-contextmenu",qe,Ue)},de=ref(null),pe=ref(!1),he=ref({}),_e=(Ue,qe)=>{if(isClient$1&&!(qe.children&&qe.children.length>0)&&de.value&&t.border){pe.value=!0;const Et=oe;r("set-drag-visible",!0);const Lt=(Et==null?void 0:Et.vnode.el).getBoundingClientRect().left,hn=V.vnode.el.querySelector(`th.${qe.id}`),_n=hn.getBoundingClientRect(),vn=_n.left-Lt+30;addClass(hn,"noclick"),he.value={startMouseLeft:Ue.clientX,startLeft:_n.right-Lt,startColumnLeft:_n.left-Lt,tableLeft:Lt};const bn=Et==null?void 0:Et.refs.resizeProxy;bn.style.left=`${he.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const Cn=wn=>{const En=wn.clientX-he.value.startMouseLeft,xn=he.value.startLeft+En;bn.style.left=`${Math.max(vn,xn)}px`},Sn=()=>{if(pe.value){const{startColumnLeft:wn,startLeft:En}=he.value,Pn=Number.parseInt(bn.style.left,10)-wn;qe.width=qe.realWidth=Pn,Et==null||Et.emit("header-dragend",qe.width,En-wn,qe,Ue),requestAnimationFrame(()=>{t.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",pe.value=!1,de.value=null,he.value={},r("set-drag-visible",!1)}document.removeEventListener("mousemove",Cn),document.removeEventListener("mouseup",Sn),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(hn,"noclick")},0)};document.addEventListener("mousemove",Cn),document.addEventListener("mouseup",Sn)}},$e=(Ue,qe)=>{if(qe.children&&qe.children.length>0)return;const Et=Ue.target;if(!isElement$2(Et))return;const At=Et==null?void 0:Et.closest("th");if(!(!qe||!qe.resizable)&&!pe.value&&t.border){const Lt=At.getBoundingClientRect(),hn=document.body.style;Lt.width>12&&Lt.right-Ue.pageX<8?(hn.cursor="col-resize",hasClass(At,"is-sortable")&&(At.style.cursor="col-resize"),de.value=qe):pe.value||(hn.cursor="",hasClass(At,"is-sortable")&&(At.style.cursor="pointer"),de.value=null)}},Ie=()=>{isClient$1&&(document.body.style.cursor="")},Ve=({order:Ue,sortOrders:qe})=>{if(Ue==="")return qe[0];const Et=qe.indexOf(Ue||null);return qe[Et>qe.length-2?0:Et+1]},Fe=(Ue,qe,Et)=>{var At;Ue.stopPropagation();const Lt=qe.order===Et?null:Et||Ve(qe),hn=(At=Ue.target)==null?void 0:At.closest("th");if(hn&&hasClass(hn,"noclick")){removeClass(hn,"noclick");return}if(!qe.sortable)return;const _n=t.store.states;let vn=_n.sortProp.value,bn;const Cn=_n.sortingColumn.value;(Cn!==qe||Cn===qe&&Cn.order===null)&&(Cn&&(Cn.order=null),_n.sortingColumn.value=qe,vn=qe.property),Lt?bn=qe.order=Lt:bn=qe.order=null,_n.sortProp.value=vn,_n.sortOrder.value=bn,oe==null||oe.store.commit("changeSortCondition")};return{handleHeaderClick:le,handleHeaderContextMenu:ue,handleMouseDown:_e,handleMouseMove:$e,handleMouseOut:Ie,handleSortClick:Fe,handleFilterClick:ie}}function useStyle$2(t){const r=inject(TABLE_INJECTION_KEY),V=useNamespace("table");return{getHeaderRowStyle:de=>{const pe=r==null?void 0:r.props.headerRowStyle;return typeof pe=="function"?pe.call(null,{rowIndex:de}):pe},getHeaderRowClass:de=>{const pe=[],he=r==null?void 0:r.props.headerRowClassName;return typeof he=="string"?pe.push(he):typeof he=="function"&&pe.push(he.call(null,{rowIndex:de})),pe.join(" ")},getHeaderCellStyle:(de,pe,he,_e)=>{var $e;let Ie=($e=r==null?void 0:r.props.headerCellStyle)!=null?$e:{};typeof Ie=="function"&&(Ie=Ie.call(null,{rowIndex:de,columnIndex:pe,row:he,column:_e}));const Ve=getFixedColumnOffset(pe,_e.fixed,t.store,he);return ensurePosition(Ve,"left"),ensurePosition(Ve,"right"),Object.assign({},Ie,Ve)},getHeaderCellClass:(de,pe,he,_e)=>{const $e=getFixedColumnsClass(V.b(),pe,_e.fixed,t.store,he),Ie=[_e.id,_e.order,_e.headerAlign,_e.className,_e.labelClassName,...$e];_e.children||Ie.push("is-leaf"),_e.sortable&&Ie.push("is-sortable");const Ve=r==null?void 0:r.props.headerCellClassName;return typeof Ve=="string"?Ie.push(Ve):typeof Ve=="function"&&Ie.push(Ve.call(null,{rowIndex:de,columnIndex:pe,row:he,column:_e})),Ie.push(V.e("cell")),Ie.filter(Fe=>!!Fe).join(" ")}}}const getAllColumns=t=>{const r=[];return t.forEach(V=>{V.children?(r.push(V),r.push.apply(r,getAllColumns(V.children))):r.push(V)}),r},convertToRows=t=>{let r=1;const V=(le,ue)=>{if(ue&&(le.level=ue.level+1,r{V(pe,le),de+=pe.colSpan}),le.colSpan=de}else le.colSpan=1};t.forEach(le=>{le.level=1,V(le,void 0)});const oe=[];for(let le=0;le{le.children?(le.rowSpan=1,le.children.forEach(ue=>ue.isSubColumn=!0)):le.rowSpan=r-le.level+1,oe[le.level-1].push(le)}),oe};function useUtils$1(t){const r=inject(TABLE_INJECTION_KEY),V=computed(()=>convertToRows(t.store.states.originColumns.value));return{isGroup:computed(()=>{const le=V.value.length>1;return le&&r&&(r.state.isGroup.value=!0),le}),toggleAllSelection:le=>{le.stopPropagation(),r==null||r.store.commit("toggleAllSelection")},columnRows:V}}var TableHeader=defineComponent({name:"ElTableHeader",components:{ElCheckbox},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(t,{emit:r}){const V=getCurrentInstance(),oe=inject(TABLE_INJECTION_KEY),ie=useNamespace("table"),le=ref({}),{onColumnsChange:ue,onScrollableChange:de}=useLayoutObserver(oe);onMounted(async()=>{await nextTick(),await nextTick();const{prop:vn,order:bn}=t.defaultSort;oe==null||oe.store.commit("sort",{prop:vn,order:bn,init:!0})});const{handleHeaderClick:pe,handleHeaderContextMenu:he,handleMouseDown:_e,handleMouseMove:$e,handleMouseOut:Ie,handleSortClick:Ve,handleFilterClick:Fe}=useEvent(t,r),{getHeaderRowStyle:Ue,getHeaderRowClass:qe,getHeaderCellStyle:Et,getHeaderCellClass:At}=useStyle$2(t),{isGroup:Lt,toggleAllSelection:hn,columnRows:_n}=useUtils$1(t);return V.state={onColumnsChange:ue,onScrollableChange:de},V.filterPanels=le,{ns:ie,filterPanels:le,onColumnsChange:ue,onScrollableChange:de,columnRows:_n,getHeaderRowClass:qe,getHeaderRowStyle:Ue,getHeaderCellClass:At,getHeaderCellStyle:Et,handleHeaderClick:pe,handleHeaderContextMenu:he,handleMouseDown:_e,handleMouseMove:$e,handleMouseOut:Ie,handleSortClick:Ve,handleFilterClick:Fe,isGroup:Lt,toggleAllSelection:hn}},render(){const{ns:t,isGroup:r,columnRows:V,getHeaderCellStyle:oe,getHeaderCellClass:ie,getHeaderRowClass:le,getHeaderRowStyle:ue,handleHeaderClick:de,handleHeaderContextMenu:pe,handleMouseDown:he,handleMouseMove:_e,handleSortClick:$e,handleMouseOut:Ie,store:Ve,$parent:Fe}=this;let Ue=1;return h$2("thead",{class:{[t.is("group")]:r}},V.map((qe,Et)=>h$2("tr",{class:le(Et),key:Et,style:ue(Et)},qe.map((At,Lt)=>(At.rowSpan>Ue&&(Ue=At.rowSpan),h$2("th",{class:ie(Et,Lt,qe,At),colspan:At.colSpan,key:`${At.id}-thead`,rowspan:At.rowSpan,style:oe(Et,Lt,qe,At),onClick:hn=>de(hn,At),onContextmenu:hn=>pe(hn,At),onMousedown:hn=>he(hn,At),onMousemove:hn=>_e(hn,At),onMouseout:Ie},[h$2("div",{class:["cell",At.filteredValue&&At.filteredValue.length>0?"highlight":""]},[At.renderHeader?At.renderHeader({column:At,$index:Lt,store:Ve,_self:Fe}):At.label,At.sortable&&h$2("span",{onClick:hn=>$e(hn,At),class:"caret-wrapper"},[h$2("i",{onClick:hn=>$e(hn,At,"ascending"),class:"sort-caret ascending"}),h$2("i",{onClick:hn=>$e(hn,At,"descending"),class:"sort-caret descending"})]),At.filterable&&h$2(FilterPanel,{store:Ve,placement:At.filterPlacement||"bottom-start",column:At,upDataColumn:(hn,_n)=>{At[hn]=_n}})])]))))))}});function useEvents(t){const r=inject(TABLE_INJECTION_KEY),V=ref(""),oe=ref(h$2("div")),{nextZIndex:ie}=useZIndex(),le=(Fe,Ue,qe)=>{var Et;const At=r,Lt=getCell(Fe);let hn;const _n=(Et=At==null?void 0:At.vnode.el)==null?void 0:Et.dataset.prefix;Lt&&(hn=getColumnByCell({columns:t.store.states.columns.value},Lt,_n),hn&&(At==null||At.emit(`cell-${qe}`,Ue,hn,Lt,Fe))),At==null||At.emit(`row-${qe}`,Ue,hn,Fe)},ue=(Fe,Ue)=>{le(Fe,Ue,"dblclick")},de=(Fe,Ue)=>{t.store.commit("setCurrentRow",Ue),le(Fe,Ue,"click")},pe=(Fe,Ue)=>{le(Fe,Ue,"contextmenu")},he=debounce(Fe=>{t.store.commit("setHoverRow",Fe)},30),_e=debounce(()=>{t.store.commit("setHoverRow",null)},30),$e=Fe=>{const Ue=window.getComputedStyle(Fe,null),qe=Number.parseInt(Ue.paddingLeft,10)||0,Et=Number.parseInt(Ue.paddingRight,10)||0,At=Number.parseInt(Ue.paddingTop,10)||0,Lt=Number.parseInt(Ue.paddingBottom,10)||0;return{left:qe,right:Et,top:At,bottom:Lt}};return{handleDoubleClick:ue,handleClick:de,handleContextMenu:pe,handleMouseEnter:he,handleMouseLeave:_e,handleCellMouseEnter:(Fe,Ue,qe)=>{var Et;const At=r,Lt=getCell(Fe),hn=(Et=At==null?void 0:At.vnode.el)==null?void 0:Et.dataset.prefix;if(Lt){const Mn=getColumnByCell({columns:t.store.states.columns.value},Lt,hn),Ln=At.hoverState={cell:Lt,column:Mn,row:Ue};At==null||At.emit("cell-mouse-enter",Ln.row,Ln.column,Ln.cell,Fe)}if(!qe)return;const _n=Fe.target.querySelector(".cell");if(!(hasClass(_n,`${hn}-tooltip`)&&_n.childNodes.length))return;const vn=document.createRange();vn.setStart(_n,0),vn.setEnd(_n,_n.childNodes.length);let bn=vn.getBoundingClientRect().width,Cn=vn.getBoundingClientRect().height;bn-Math.floor(bn)<.001&&(bn=Math.floor(bn)),Cn-Math.floor(Cn)<.001&&(Cn=Math.floor(Cn));const{top:En,left:xn,right:Pn,bottom:kn}=$e(_n),Nn=xn+Pn,Dn=En+kn;(bn+Nn>_n.offsetWidth||Cn+Dn>_n.offsetHeight||_n.scrollWidth>_n.offsetWidth)&&createTablePopper(r==null?void 0:r.refs.tableWrapper,Lt,Lt.innerText||Lt.textContent,ie,qe)},handleCellMouseLeave:Fe=>{if(!getCell(Fe))return;const qe=r==null?void 0:r.hoverState;r==null||r.emit("cell-mouse-leave",qe==null?void 0:qe.row,qe==null?void 0:qe.column,qe==null?void 0:qe.cell,Fe)},tooltipContent:V,tooltipTrigger:oe}}function useStyles$1(t){const r=inject(TABLE_INJECTION_KEY),V=useNamespace("table");return{getRowStyle:(he,_e)=>{const $e=r==null?void 0:r.props.rowStyle;return typeof $e=="function"?$e.call(null,{row:he,rowIndex:_e}):$e||null},getRowClass:(he,_e)=>{const $e=[V.e("row")];r!=null&&r.props.highlightCurrentRow&&he===t.store.states.currentRow.value&&$e.push("current-row"),t.stripe&&_e%2===1&&$e.push(V.em("row","striped"));const Ie=r==null?void 0:r.props.rowClassName;return typeof Ie=="string"?$e.push(Ie):typeof Ie=="function"&&$e.push(Ie.call(null,{row:he,rowIndex:_e})),$e},getCellStyle:(he,_e,$e,Ie)=>{const Ve=r==null?void 0:r.props.cellStyle;let Fe=Ve??{};typeof Ve=="function"&&(Fe=Ve.call(null,{rowIndex:he,columnIndex:_e,row:$e,column:Ie}));const Ue=getFixedColumnOffset(_e,t==null?void 0:t.fixed,t.store);return ensurePosition(Ue,"left"),ensurePosition(Ue,"right"),Object.assign({},Fe,Ue)},getCellClass:(he,_e,$e,Ie,Ve)=>{const Fe=getFixedColumnsClass(V.b(),_e,t==null?void 0:t.fixed,t.store,void 0,Ve),Ue=[Ie.id,Ie.align,Ie.className,...Fe],qe=r==null?void 0:r.props.cellClassName;return typeof qe=="string"?Ue.push(qe):typeof qe=="function"&&Ue.push(qe.call(null,{rowIndex:he,columnIndex:_e,row:$e,column:Ie})),Ue.push(V.e("cell")),Ue.filter(Et=>!!Et).join(" ")},getSpan:(he,_e,$e,Ie)=>{let Ve=1,Fe=1;const Ue=r==null?void 0:r.props.spanMethod;if(typeof Ue=="function"){const qe=Ue({row:he,column:_e,rowIndex:$e,columnIndex:Ie});Array.isArray(qe)?(Ve=qe[0],Fe=qe[1]):typeof qe=="object"&&(Ve=qe.rowspan,Fe=qe.colspan)}return{rowspan:Ve,colspan:Fe}},getColspanRealWidth:(he,_e,$e)=>{if(_e<1)return he[$e].realWidth;const Ie=he.map(({realWidth:Ve,width:Fe})=>Ve||Fe).slice($e,$e+_e);return Number(Ie.reduce((Ve,Fe)=>Number(Ve)+Number(Fe),-1))}}}function useRender$1(t){const r=inject(TABLE_INJECTION_KEY),V=useNamespace("table"),{handleDoubleClick:oe,handleClick:ie,handleContextMenu:le,handleMouseEnter:ue,handleMouseLeave:de,handleCellMouseEnter:pe,handleCellMouseLeave:he,tooltipContent:_e,tooltipTrigger:$e}=useEvents(t),{getRowStyle:Ie,getRowClass:Ve,getCellStyle:Fe,getCellClass:Ue,getSpan:qe,getColspanRealWidth:Et}=useStyles$1(t),At=computed(()=>t.store.states.columns.value.findIndex(({type:bn})=>bn==="default")),Lt=(bn,Cn)=>{const Sn=r.props.rowKey;return Sn?getRowIdentity(bn,Sn):Cn},hn=(bn,Cn,Sn,wn=!1)=>{const{tooltipEffect:En,tooltipOptions:xn,store:Pn}=t,{indent:kn,columns:Nn}=Pn.states,Dn=Ve(bn,Cn);let Mn=!0;return Sn&&(Dn.push(V.em("row",`level-${Sn.level}`)),Mn=Sn.display),h$2("tr",{style:[Mn?null:{display:"none"},Ie(bn,Cn)],class:Dn,key:Lt(bn,Cn),onDblclick:An=>oe(An,bn),onClick:An=>ie(An,bn),onContextmenu:An=>le(An,bn),onMouseenter:()=>ue(Cn),onMouseleave:de},Nn.value.map((An,Vn)=>{const{rowspan:Wn,colspan:Fn}=qe(bn,An,Cn,Vn);if(!Wn||!Fn)return null;const Yn=Object.assign({},An);Yn.realWidth=Et(Nn.value,Fn,Vn);const tr={store:t.store,_self:t.context||r,column:Yn,row:bn,$index:Cn,cellIndex:Vn,expanded:wn};Vn===At.value&&Sn&&(tr.treeNode={indent:Sn.level*kn.value,level:Sn.level},typeof Sn.expanded=="boolean"&&(tr.treeNode.expanded=Sn.expanded,"loading"in Sn&&(tr.treeNode.loading=Sn.loading),"noLazyChildren"in Sn&&(tr.treeNode.noLazyChildren=Sn.noLazyChildren)));const yr=`${Cn},${Vn}`,Jn=Yn.columnKey||Yn.rawColumnKey||"",Kn=_n(Vn,An,tr),Gn=An.showOverflowTooltip&&merge$4({effect:En},xn,An.showOverflowTooltip);return h$2("td",{style:Fe(Cn,Vn,bn,An),class:Ue(Cn,Vn,bn,An,Fn-1),key:`${Jn}${yr}`,rowspan:Wn,colspan:Fn,onMouseenter:Qn=>pe(Qn,bn,Gn),onMouseleave:he},[Kn])}))},_n=(bn,Cn,Sn)=>Cn.renderCell(Sn);return{wrappedRowRender:(bn,Cn)=>{const Sn=t.store,{isRowExpanded:wn,assertRowKey:En}=Sn,{treeData:xn,lazyTreeNodeMap:Pn,childrenColumnName:kn,rowKey:Nn}=Sn.states,Dn=Sn.states.columns.value;if(Dn.some(({type:Ln})=>Ln==="expand")){const Ln=wn(bn),An=hn(bn,Cn,void 0,Ln),Vn=r.renderExpanded;return Ln?Vn?[[An,h$2("tr",{key:`expanded-row__${An.key}`},[h$2("td",{colspan:Dn.length,class:`${V.e("cell")} ${V.e("expanded-cell")}`},[Vn({row:bn,$index:Cn,store:Sn,expanded:Ln})])])]]:(console.error("[Element Error]renderExpanded is required."),An):[[An]]}else if(Object.keys(xn.value).length){En();const Ln=getRowIdentity(bn,Nn.value);let An=xn.value[Ln],Vn=null;An&&(Vn={expanded:An.expanded,level:An.level,display:!0},typeof An.lazy=="boolean"&&(typeof An.loaded=="boolean"&&An.loaded&&(Vn.noLazyChildren=!(An.children&&An.children.length)),Vn.loading=An.loading));const Wn=[hn(bn,Cn,Vn)];if(An){let Fn=0;const Yn=(yr,Jn)=>{yr&&yr.length&&Jn&&yr.forEach(Kn=>{const Gn={display:Jn.display&&Jn.expanded,level:Jn.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Qn=getRowIdentity(Kn,Nn.value);if(Qn==null)throw new Error("For nested data item, row-key is required.");if(An={...xn.value[Qn]},An&&(Gn.expanded=An.expanded,An.level=An.level||Gn.level,An.display=!!(An.expanded&&Gn.display),typeof An.lazy=="boolean"&&(typeof An.loaded=="boolean"&&An.loaded&&(Gn.noLazyChildren=!(An.children&&An.children.length)),Gn.loading=An.loading)),Fn++,Wn.push(hn(Kn,Cn+Fn,Gn)),An){const ur=Pn.value[Qn]||Kn[kn.value];Yn(ur,An)}})};An.display=!0;const tr=Pn.value[Ln]||bn[kn.value];Yn(tr,An)}return Wn}else return hn(bn,Cn,void 0)},tooltipContent:_e,tooltipTrigger:$e}}const defaultProps$2={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var TableBody=defineComponent({name:"ElTableBody",props:defaultProps$2,setup(t){const r=getCurrentInstance(),V=inject(TABLE_INJECTION_KEY),oe=useNamespace("table"),{wrappedRowRender:ie,tooltipContent:le,tooltipTrigger:ue}=useRender$1(t),{onColumnsChange:de,onScrollableChange:pe}=useLayoutObserver(V);return watch(t.store.states.hoverRow,(he,_e)=>{!t.store.states.isComplex.value||!isClient$1||rAF(()=>{const $e=r==null?void 0:r.vnode.el,Ie=Array.from(($e==null?void 0:$e.children)||[]).filter(Ue=>Ue==null?void 0:Ue.classList.contains(`${oe.e("row")}`)),Ve=Ie[_e],Fe=Ie[he];Ve&&removeClass(Ve,"hover-row"),Fe&&addClass(Fe,"hover-row")})}),onUnmounted(()=>{var he;(he=removePopper)==null||he()}),{ns:oe,onColumnsChange:de,onScrollableChange:pe,wrappedRowRender:ie,tooltipContent:le,tooltipTrigger:ue}},render(){const{wrappedRowRender:t,store:r}=this,V=r.states.data.value||[];return h$2("tbody",{},[V.reduce((oe,ie)=>oe.concat(t(ie,oe.length)),[])])}});function hColgroup(t){const r=t.tableLayout==="auto";let V=t.columns||[];r&&V.every(ie=>ie.width===void 0)&&(V=[]);const oe=ie=>{const le={key:`${t.tableLayout}_${ie.id}`,style:{},name:void 0};return r?le.style={width:`${ie.width}px`}:le.name=ie.id,le};return h$2("colgroup",{},V.map(ie=>h$2("col",oe(ie))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const t=inject(TABLE_INJECTION_KEY),r=t==null?void 0:t.store,V=computed(()=>r.states.fixedLeafColumnsLength.value),oe=computed(()=>r.states.rightFixedColumns.value.length),ie=computed(()=>r.states.columns.value.length),le=computed(()=>r.states.fixedColumns.value.length),ue=computed(()=>r.states.rightFixedColumns.value.length);return{leftFixedLeafCount:V,rightFixedLeafCount:oe,columnsCount:ie,leftFixedCount:le,rightFixedCount:ue,columns:r.states.columns}}function useStyle$1(t){const{columns:r}=useMapState(),V=useNamespace("table");return{getCellClasses:(le,ue)=>{const de=le[ue],pe=[V.e("cell"),de.id,de.align,de.labelClassName,...getFixedColumnsClass(V.b(),ue,de.fixed,t.store)];return de.className&&pe.push(de.className),de.children||pe.push(V.is("leaf")),pe},getCellStyles:(le,ue)=>{const de=getFixedColumnOffset(ue,le.fixed,t.store);return ensurePosition(de,"left"),ensurePosition(de,"right"),de},columns:r}}var TableFooter=defineComponent({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(t){const{getCellClasses:r,getCellStyles:V,columns:oe}=useStyle$1(t);return{ns:useNamespace("table"),getCellClasses:r,getCellStyles:V,columns:oe}},render(){const{columns:t,getCellStyles:r,getCellClasses:V,summaryMethod:oe,sumText:ie,ns:le}=this,ue=this.store.states.data.value;let de=[];return oe?de=oe({columns:t,data:ue}):t.forEach((pe,he)=>{if(he===0){de[he]=ie;return}const _e=ue.map(Fe=>Number(Fe[pe.property])),$e=[];let Ie=!0;_e.forEach(Fe=>{if(!Number.isNaN(+Fe)){Ie=!1;const Ue=`${Fe}`.split(".")[1];$e.push(Ue?Ue.length:0)}});const Ve=Math.max.apply(null,$e);Ie?de[he]="":de[he]=_e.reduce((Fe,Ue)=>{const qe=Number(Ue);return Number.isNaN(+qe)?Fe:Number.parseFloat((Fe+Ue).toFixed(Math.min(Ve,20)))},0)}),h$2("table",{class:le.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:t}),h$2("tbody",[h$2("tr",{},[...t.map((pe,he)=>h$2("td",{key:he,colspan:pe.colSpan,rowspan:pe.rowSpan,class:V(t,he),style:r(pe,he)},[h$2("div",{class:["cell",pe.labelClassName]},[de[he]])]))])])])}});function useUtils(t){return{setCurrentRow:_e=>{t.commit("setCurrentRow",_e)},getSelectionRows:()=>t.getSelectionRows(),toggleRowSelection:(_e,$e)=>{t.toggleRowSelection(_e,$e,!1),t.updateAllSelected()},clearSelection:()=>{t.clearSelection()},clearFilter:_e=>{t.clearFilter(_e)},toggleAllSelection:()=>{t.commit("toggleAllSelection")},toggleRowExpansion:(_e,$e)=>{t.toggleRowExpansionAdapter(_e,$e)},clearSort:()=>{t.clearSort()},sort:(_e,$e)=>{t.commit("sort",{prop:_e,order:$e})}}}function useStyle(t,r,V,oe){const ie=ref(!1),le=ref(null),ue=ref(!1),de=An=>{ue.value=An},pe=ref({width:null,height:null,headerHeight:null}),he=ref(!1),_e={display:"inline-block",verticalAlign:"middle"},$e=ref(),Ie=ref(0),Ve=ref(0),Fe=ref(0),Ue=ref(0),qe=ref(0);watchEffect(()=>{r.setHeight(t.height)}),watchEffect(()=>{r.setMaxHeight(t.maxHeight)}),watch(()=>[t.currentRowKey,V.states.rowKey],([An,Vn])=>{!unref(Vn)||!unref(An)||V.setCurrentRowKey(`${An}`)},{immediate:!0}),watch(()=>t.data,An=>{oe.store.commit("setData",An)},{immediate:!0,deep:!0}),watchEffect(()=>{t.expandRowKeys&&V.setExpandRowKeysAdapter(t.expandRowKeys)});const Et=()=>{oe.store.commit("setHoverRow",null),oe.hoverState&&(oe.hoverState=null)},At=(An,Vn)=>{const{pixelX:Wn,pixelY:Fn}=Vn;Math.abs(Wn)>=Math.abs(Fn)&&(oe.refs.bodyWrapper.scrollLeft+=Vn.pixelX/5)},Lt=computed(()=>t.height||t.maxHeight||V.states.fixedColumns.value.length>0||V.states.rightFixedColumns.value.length>0),hn=computed(()=>({width:r.bodyWidth.value?`${r.bodyWidth.value}px`:""})),_n=()=>{Lt.value&&r.updateElsHeight(),r.updateColumnsWidth(),requestAnimationFrame(Sn)};onMounted(async()=>{await nextTick(),V.updateColumns(),wn(),requestAnimationFrame(_n);const An=oe.vnode.el,Vn=oe.refs.headerWrapper;t.flexible&&An&&An.parentElement&&(An.parentElement.style.minWidth="0"),pe.value={width:$e.value=An.offsetWidth,height:An.offsetHeight,headerHeight:t.showHeader&&Vn?Vn.offsetHeight:null},V.states.columns.value.forEach(Wn=>{Wn.filteredValue&&Wn.filteredValue.length&&oe.store.commit("filterChange",{column:Wn,values:Wn.filteredValue,silent:!0})}),oe.$ready=!0});const vn=(An,Vn)=>{if(!An)return;const Wn=Array.from(An.classList).filter(Fn=>!Fn.startsWith("is-scrolling-"));Wn.push(r.scrollX.value?Vn:"is-scrolling-none"),An.className=Wn.join(" ")},bn=An=>{const{tableWrapper:Vn}=oe.refs;vn(Vn,An)},Cn=An=>{const{tableWrapper:Vn}=oe.refs;return!!(Vn&&Vn.classList.contains(An))},Sn=function(){if(!oe.refs.scrollBarRef)return;if(!r.scrollX.value){const Jn="is-scrolling-none";Cn(Jn)||bn(Jn);return}const An=oe.refs.scrollBarRef.wrapRef;if(!An)return;const{scrollLeft:Vn,offsetWidth:Wn,scrollWidth:Fn}=An,{headerWrapper:Yn,footerWrapper:tr}=oe.refs;Yn&&(Yn.scrollLeft=Vn),tr&&(tr.scrollLeft=Vn);const yr=Fn-Wn-1;Vn>=yr?bn("is-scrolling-right"):bn(Vn===0?"is-scrolling-left":"is-scrolling-middle")},wn=()=>{oe.refs.scrollBarRef&&(oe.refs.scrollBarRef.wrapRef&&useEventListener$1(oe.refs.scrollBarRef.wrapRef,"scroll",Sn,{passive:!0}),t.fit?useResizeObserver$1(oe.vnode.el,En):useEventListener$1(window,"resize",En),useResizeObserver$1(oe.refs.bodyWrapper,()=>{var An,Vn;En(),(Vn=(An=oe.refs)==null?void 0:An.scrollBarRef)==null||Vn.update()}))},En=()=>{var An,Vn,Wn,Fn;const Yn=oe.vnode.el;if(!oe.$ready||!Yn)return;let tr=!1;const{width:yr,height:Jn,headerHeight:Kn}=pe.value,Gn=$e.value=Yn.offsetWidth;yr!==Gn&&(tr=!0);const Qn=Yn.offsetHeight;(t.height||Lt.value)&&Jn!==Qn&&(tr=!0);const ur=t.tableLayout==="fixed"?oe.refs.headerWrapper:(An=oe.refs.tableHeaderRef)==null?void 0:An.$el;t.showHeader&&(ur==null?void 0:ur.offsetHeight)!==Kn&&(tr=!0),Ie.value=((Vn=oe.refs.tableWrapper)==null?void 0:Vn.scrollHeight)||0,Fe.value=(ur==null?void 0:ur.scrollHeight)||0,Ue.value=((Wn=oe.refs.footerWrapper)==null?void 0:Wn.offsetHeight)||0,qe.value=((Fn=oe.refs.appendWrapper)==null?void 0:Fn.offsetHeight)||0,Ve.value=Ie.value-Fe.value-Ue.value-qe.value,tr&&(pe.value={width:Gn,height:Qn,headerHeight:t.showHeader&&(ur==null?void 0:ur.offsetHeight)||0},_n())},xn=useFormSize(),Pn=computed(()=>{const{bodyWidth:An,scrollY:Vn,gutterWidth:Wn}=r;return An.value?`${An.value-(Vn.value?Wn:0)}px`:""}),kn=computed(()=>t.maxHeight?"fixed":t.tableLayout),Nn=computed(()=>{if(t.data&&t.data.length)return null;let An="100%";t.height&&Ve.value&&(An=`${Ve.value}px`);const Vn=$e.value;return{width:Vn?`${Vn}px`:"",height:An}}),Dn=computed(()=>t.height?{height:Number.isNaN(Number(t.height))?t.height:`${t.height}px`}:t.maxHeight?{maxHeight:Number.isNaN(Number(t.maxHeight))?t.maxHeight:`${t.maxHeight}px`}:{}),Mn=computed(()=>t.height?{height:"100%"}:t.maxHeight?Number.isNaN(Number(t.maxHeight))?{maxHeight:`calc(${t.maxHeight} - ${Fe.value+Ue.value}px)`}:{maxHeight:`${t.maxHeight-Fe.value-Ue.value}px`}:{});return{isHidden:ie,renderExpanded:le,setDragVisible:de,isGroup:he,handleMouseLeave:Et,handleHeaderFooterMousewheel:At,tableSize:xn,emptyBlockStyle:Nn,handleFixedMousewheel:(An,Vn)=>{const Wn=oe.refs.bodyWrapper;if(Math.abs(Vn.spinY)>0){const Fn=Wn.scrollTop;Vn.pixelY<0&&Fn!==0&&An.preventDefault(),Vn.pixelY>0&&Wn.scrollHeight-Wn.clientHeight>Fn&&An.preventDefault(),Wn.scrollTop+=Math.ceil(Vn.pixelY/5)}else Wn.scrollLeft+=Math.ceil(Vn.pixelX/5)},resizeProxyVisible:ue,bodyWidth:Pn,resizeState:pe,doLayout:_n,tableBodyStyles:hn,tableLayout:kn,scrollbarViewStyle:_e,tableInnerStyle:Dn,scrollbarStyle:Mn}}function useKeyRender(t){const r=ref(),V=()=>{const ie=t.vnode.el.querySelector(".hidden-columns"),le={childList:!0,subtree:!0},ue=t.store.states.updateOrderFns;r.value=new MutationObserver(()=>{ue.forEach(de=>de())}),r.value.observe(ie,le)};onMounted(()=>{V()}),onUnmounted(()=>{var oe;(oe=r.value)==null||oe.disconnect()})}var defaultProps$1={data:{type:Array,default:()=>[]},size:useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};const useScrollbar$1=()=>{const t=ref(),r=(le,ue)=>{const de=t.value;de&&de.scrollTo(le,ue)},V=(le,ue)=>{const de=t.value;de&&isNumber$4(ue)&&["Top","Left"].includes(le)&&de[`setScroll${le}`](ue)};return{scrollBarRef:t,scrollTo:r,setScrollTop:le=>V("Top",le),setScrollLeft:le=>V("Left",le)}};let tableIdSeed=1;const _sfc_main$s=defineComponent({name:"ElTable",directives:{Mousewheel},components:{TableHeader,TableBody,TableFooter,ElScrollbar,hColgroup},props:defaultProps$1,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(t){const{t:r}=useLocale(),V=useNamespace("table"),oe=getCurrentInstance();provide(TABLE_INJECTION_KEY,oe);const ie=createStore(oe,t);oe.store=ie;const le=new TableLayout({store:oe.store,table:oe,fit:t.fit,showHeader:t.showHeader});oe.layout=le;const ue=computed(()=>(ie.states.data.value||[]).length===0),{setCurrentRow:de,getSelectionRows:pe,toggleRowSelection:he,clearSelection:_e,clearFilter:$e,toggleAllSelection:Ie,toggleRowExpansion:Ve,clearSort:Fe,sort:Ue}=useUtils(ie),{isHidden:qe,renderExpanded:Et,setDragVisible:At,isGroup:Lt,handleMouseLeave:hn,handleHeaderFooterMousewheel:_n,tableSize:vn,emptyBlockStyle:bn,handleFixedMousewheel:Cn,resizeProxyVisible:Sn,bodyWidth:wn,resizeState:En,doLayout:xn,tableBodyStyles:Pn,tableLayout:kn,scrollbarViewStyle:Nn,tableInnerStyle:Dn,scrollbarStyle:Mn}=useStyle(t,le,ie,oe),{scrollBarRef:Ln,scrollTo:An,setScrollLeft:Vn,setScrollTop:Wn}=useScrollbar$1(),Fn=debounce(xn,50),Yn=`${V.namespace.value}-table_${tableIdSeed++}`;oe.tableId=Yn,oe.state={isGroup:Lt,resizeState:En,doLayout:xn,debouncedUpdateLayout:Fn};const tr=computed(()=>t.sumText||r("el.table.sumText")),yr=computed(()=>t.emptyText||r("el.table.emptyText"));return useKeyRender(oe),{ns:V,layout:le,store:ie,handleHeaderFooterMousewheel:_n,handleMouseLeave:hn,tableId:Yn,tableSize:vn,isHidden:qe,isEmpty:ue,renderExpanded:Et,resizeProxyVisible:Sn,resizeState:En,isGroup:Lt,bodyWidth:wn,tableBodyStyles:Pn,emptyBlockStyle:bn,debouncedUpdateLayout:Fn,handleFixedMousewheel:Cn,setCurrentRow:de,getSelectionRows:pe,toggleRowSelection:he,clearSelection:_e,clearFilter:$e,toggleAllSelection:Ie,toggleRowExpansion:Ve,clearSort:Fe,doLayout:xn,sort:Ue,t:r,setDragVisible:At,context:oe,computedSumText:tr,computedEmptyText:yr,tableLayout:kn,scrollbarViewStyle:Nn,tableInnerStyle:Dn,scrollbarStyle:Mn,scrollBarRef:Ln,scrollTo:An,setScrollLeft:Vn,setScrollTop:Wn}}}),_hoisted_1$d=["data-prefix"],_hoisted_2$9={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$4(t,r,V,oe,ie,le){const ue=resolveComponent("hColgroup"),de=resolveComponent("table-header"),pe=resolveComponent("table-body"),he=resolveComponent("el-scrollbar"),_e=resolveComponent("table-footer"),$e=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[t.ns.m("fit")]:t.fit,[t.ns.m("striped")]:t.stripe,[t.ns.m("border")]:t.border||t.isGroup,[t.ns.m("hidden")]:t.isHidden,[t.ns.m("group")]:t.isGroup,[t.ns.m("fluid-height")]:t.maxHeight,[t.ns.m("scrollable-x")]:t.layout.scrollX.value,[t.ns.m("scrollable-y")]:t.layout.scrollY.value,[t.ns.m("enable-row-hover")]:!t.store.states.isComplex.value,[t.ns.m("enable-row-transition")]:(t.store.states.data.value||[]).length!==0&&(t.store.states.data.value||[]).length<100,"has-footer":t.showSummary},t.ns.m(t.tableSize),t.className,t.ns.b(),t.ns.m(`layout-${t.tableLayout}`)]),style:normalizeStyle$1(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:r[0]||(r[0]=(...Ie)=>t.handleMouseLeave&&t.handleMouseLeave(...Ie))},[createBaseVNode("div",{class:normalizeClass(t.ns.e("inner-wrapper")),style:normalizeStyle$1(t.tableInnerStyle)},[createBaseVNode("div",_hoisted_2$9,[renderSlot(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass(t.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass(t.ns.e("header")),style:normalizeStyle$1(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(ue,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),createVNode(de,{ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[$e,t.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass(t.ns.e("body-wrapper"))},[createVNode(he,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1({width:t.bodyWidth,tableLayout:t.tableLayout})},[createVNode(ue,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(openBlock(),createBlock(de,{key:0,ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode(pe,{context:t.context,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"tooltip-effect":t.tooltipEffect,"tooltip-options":t.tooltipOptions,"row-style":t.rowStyle,store:t.store,stripe:t.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),t.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle$1(t.emptyBlockStyle),class:normalizeClass(t.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(t.ns.e("empty-text"))},[renderSlot(t.$slots,"empty",{},()=>[createTextVNode(toDisplayString$1(t.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),t.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass(t.ns.e("append-wrapper"))},[renderSlot(t.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),t.showSummary?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass(t.ns.e("footer-wrapper"))},[createVNode(_e,{border:t.border,"default-sort":t.defaultSort,store:t.store,style:normalizeStyle$1(t.tableBodyStyles),"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[vShow,!t.isEmpty],[$e,t.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),t.border||t.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(t.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],6),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass(t.ns.e("column-resize-proxy"))},null,2),[[vShow,t.resizeProxyVisible]])],46,_hoisted_1$d)}var Table=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$4],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const defaultClassNames={selection:"table-column--selection",expand:"table__expand-column"},cellStarts={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},getDefaultClassName=t=>defaultClassNames[t]||"",cellForced={selection:{renderHeader({store:t,column:r}){function V(){return t.states.data.value&&t.states.data.value.length===0}return h$2(ElCheckbox,{disabled:V(),size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":t.toggleAllSelection,modelValue:t.states.isAllSelected.value,ariaLabel:r.label})},renderCell({row:t,column:r,store:V,$index:oe}){return h$2(ElCheckbox,{disabled:r.selectable?!r.selectable.call(null,t,oe):!1,size:V.states.tableSize.value,onChange:()=>{V.commit("rowSelectedChanged",t)},onClick:ie=>ie.stopPropagation(),modelValue:V.isSelected(t),ariaLabel:r.label})},sortable:!1,resizable:!1},index:{renderHeader({column:t}){return t.label||"#"},renderCell({column:t,$index:r}){let V=r+1;const oe=t.index;return typeof oe=="number"?V=r+oe:typeof oe=="function"&&(V=oe(r)),h$2("div",{},[V])},sortable:!1},expand:{renderHeader({column:t}){return t.label||""},renderCell({row:t,store:r,expanded:V}){const{ns:oe}=r,ie=[oe.e("expand-icon")];return V&&ie.push(oe.em("expand-icon","expanded")),h$2("div",{class:ie,onClick:function(ue){ue.stopPropagation(),r.toggleRowExpansion(t)}},{default:()=>[h$2(ElIcon,null,{default:()=>[h$2(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:t,column:r,$index:V}){var oe;const ie=r.property,le=ie&&getProp(t,ie).value;return r&&r.formatter?r.formatter(t,r,le,V):((oe=le==null?void 0:le.toString)==null?void 0:oe.call(le))||""}function treeCellPrefix({row:t,treeNode:r,store:V},oe=!1){const{ns:ie}=V;if(!r)return oe?[h$2("span",{class:ie.e("placeholder")})]:null;const le=[],ue=function(de){de.stopPropagation(),!r.loading&&V.loadOrToggle(t)};if(r.indent&&le.push(h$2("span",{class:ie.e("indent"),style:{"padding-left":`${r.indent}px`}})),typeof r.expanded=="boolean"&&!r.noLazyChildren){const de=[ie.e("expand-icon"),r.expanded?ie.em("expand-icon","expanded"):""];let pe=arrow_right_default;r.loading&&(pe=loading_default),le.push(h$2("div",{class:de,onClick:ue},{default:()=>[h$2(ElIcon,{class:{[ie.is("loading")]:r.loading}},{default:()=>[h$2(pe)]})]}))}else le.push(h$2("span",{class:ie.e("placeholder")}));return le}function getAllAliases(t,r){return t.reduce((V,oe)=>(V[oe]=oe,V),r)}function useWatcher(t,r){const V=getCurrentInstance();return{registerComplexWatchers:()=>{const le=["fixed"],ue={realWidth:"width",realMinWidth:"minWidth"},de=getAllAliases(le,ue);Object.keys(de).forEach(pe=>{const he=ue[pe];hasOwn$4(r,he)&&watch(()=>r[he],_e=>{let $e=_e;he==="width"&&pe==="realWidth"&&($e=parseWidth(_e)),he==="minWidth"&&pe==="realMinWidth"&&($e=parseMinWidth(_e)),V.columnConfig.value[he]=$e,V.columnConfig.value[pe]=$e;const Ie=he==="fixed";t.value.store.scheduleLayout(Ie)})})},registerNormalWatchers:()=>{const le=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],ue={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},de=getAllAliases(le,ue);Object.keys(de).forEach(pe=>{const he=ue[pe];hasOwn$4(r,he)&&watch(()=>r[he],_e=>{V.columnConfig.value[pe]=_e})})}}}function useRender(t,r,V){const oe=getCurrentInstance(),ie=ref(""),le=ref(!1),ue=ref(),de=ref(),pe=useNamespace("table");watchEffect(()=>{ue.value=t.align?`is-${t.align}`:null,ue.value}),watchEffect(()=>{de.value=t.headerAlign?`is-${t.headerAlign}`:ue.value,de.value});const he=computed(()=>{let hn=oe.vnode.vParent||oe.parent;for(;hn&&!hn.tableId&&!hn.columnId;)hn=hn.vnode.vParent||hn.parent;return hn}),_e=computed(()=>{const{store:hn}=oe.parent;if(!hn)return!1;const{treeData:_n}=hn.states,vn=_n.value;return vn&&Object.keys(vn).length>0}),$e=ref(parseWidth(t.width)),Ie=ref(parseMinWidth(t.minWidth)),Ve=hn=>($e.value&&(hn.width=$e.value),Ie.value&&(hn.minWidth=Ie.value),!$e.value&&Ie.value&&(hn.width=void 0),hn.minWidth||(hn.minWidth=80),hn.realWidth=Number(hn.width===void 0?hn.minWidth:hn.width),hn),Fe=hn=>{const _n=hn.type,vn=cellForced[_n]||{};Object.keys(vn).forEach(Cn=>{const Sn=vn[Cn];Cn!=="className"&&Sn!==void 0&&(hn[Cn]=Sn)});const bn=getDefaultClassName(_n);if(bn){const Cn=`${unref(pe.namespace)}-${bn}`;hn.className=hn.className?`${hn.className} ${Cn}`:Cn}return hn},Ue=hn=>{Array.isArray(hn)?hn.forEach(vn=>_n(vn)):_n(hn);function _n(vn){var bn;((bn=vn==null?void 0:vn.type)==null?void 0:bn.name)==="ElTableColumn"&&(vn.vParent=oe)}};return{columnId:ie,realAlign:ue,isSubColumn:le,realHeaderAlign:de,columnOrTableParent:he,setColumnWidth:Ve,setColumnForcedProps:Fe,setColumnRenders:hn=>{t.renderHeader||hn.type!=="selection"&&(hn.renderHeader=vn=>{oe.columnConfig.value.label;const bn=r.header;return bn?bn(vn):hn.label});let _n=hn.renderCell;return hn.type==="expand"?(hn.renderCell=vn=>h$2("div",{class:"cell"},[_n(vn)]),V.value.renderExpanded=vn=>r.default?r.default(vn):r.default):(_n=_n||defaultRenderCell,hn.renderCell=vn=>{let bn=null;if(r.default){const Pn=r.default(vn);bn=Pn.some(kn=>kn.type!==Comment)?Pn:_n(vn)}else bn=_n(vn);const{columns:Cn}=V.value.store.states,Sn=Cn.value.findIndex(Pn=>Pn.type==="default"),wn=_e.value&&vn.cellIndex===Sn,En=treeCellPrefix(vn,wn),xn={class:"cell",style:{}};return hn.showOverflowTooltip&&(xn.class=`${xn.class} ${unref(pe.namespace)}-tooltip`,xn.style={width:`${(vn.column.realWidth||Number(vn.column.width))-1}px`}),Ue(bn),h$2("div",xn,[En,bn])}),hn},getPropsData:(...hn)=>hn.reduce((_n,vn)=>(Array.isArray(vn)&&vn.forEach(bn=>{_n[bn]=t[bn]}),_n),{}),getColumnElIndex:(hn,_n)=>Array.prototype.indexOf.call(hn,_n),updateColumnOrder:()=>{V.value.store.commit("updateColumnOrder",oe.columnConfig.value)}}}var defaultProps={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:t=>t.every(r=>["ascending","descending",null].includes(r))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps,setup(t,{slots:r}){const V=getCurrentInstance(),oe=ref({}),ie=computed(()=>{let Lt=V.parent;for(;Lt&&!Lt.tableId;)Lt=Lt.parent;return Lt}),{registerNormalWatchers:le,registerComplexWatchers:ue}=useWatcher(ie,t),{columnId:de,isSubColumn:pe,realHeaderAlign:he,columnOrTableParent:_e,setColumnWidth:$e,setColumnForcedProps:Ie,setColumnRenders:Ve,getPropsData:Fe,getColumnElIndex:Ue,realAlign:qe,updateColumnOrder:Et}=useRender(t,r,ie),At=_e.value;de.value=`${At.tableId||At.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{pe.value=ie.value!==At;const Lt=t.type||"default",hn=t.sortable===""?!0:t.sortable,_n=isUndefined$1(t.showOverflowTooltip)?At.props.showOverflowTooltip:t.showOverflowTooltip,vn={...cellStarts[Lt],id:de.value,type:Lt,property:t.prop||t.property,align:qe,headerAlign:he,showOverflowTooltip:_n,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:hn,index:t.index,rawColumnKey:V.vnode.key};let En=Fe(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);En=mergeOptions$1(vn,En),En=compose(Ve,$e,Ie)(En),oe.value=En,le(),ue()}),onMounted(()=>{var Lt;const hn=_e.value,_n=pe.value?hn.vnode.el.children:(Lt=hn.refs.hiddenColumns)==null?void 0:Lt.children,vn=()=>Ue(_n||[],V.vnode.el);oe.value.getColumnIndex=vn,vn()>-1&&ie.value.store.commit("insertColumn",oe.value,pe.value?hn.columnConfig.value:null,Et)}),onBeforeUnmount(()=>{ie.value.store.commit("removeColumn",oe.value,pe.value?At.columnConfig.value:null,Et)}),V.columnId=de.value,V.columnConfig=oe},render(){var t,r,V;try{const oe=(r=(t=this.$slots).default)==null?void 0:r.call(t,{row:{},column:{},$index:-1}),ie=[];if(Array.isArray(oe))for(const ue of oe)((V=ue.type)==null?void 0:V.name)==="ElTableColumn"||ue.shapeFlag&2?ie.push(ue):ue.type===Fragment&&Array.isArray(ue.children)&&ue.children.forEach(de=>{(de==null?void 0:de.patchFlag)!==1024&&!isString$6(de==null?void 0:de.children)&&ie.push(de)});return h$2("div",ie)}catch{return h$2("div",[])}}});const ElTable=withInstall(Table,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=(t=>(t.ASC="asc",t.DESC="desc",t))(SortOrder||{}),Alignment=(t=>(t.CENTER="center",t.RIGHT="right",t))(Alignment||{}),FixedDir=(t=>(t.LEFT="left",t.RIGHT="right",t))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=(t,r,V)=>{var oe;const ie={flexGrow:0,flexShrink:0,...V?{}:{flexGrow:t.flexGrow||0,flexShrink:t.flexShrink||1}};V||(ie.flexShrink=1);const le={...(oe=t.style)!=null?oe:{},...ie,flexBasis:"auto",width:t.width};return r||(t.maxWidth&&(le.maxWidth=t.maxWidth),t.minWidth&&(le.minWidth=t.minWidth)),le};function useColumns(t,r,V){const oe=computed(()=>unref(r).filter(Ue=>!Ue.hidden)),ie=computed(()=>unref(oe).filter(Ue=>Ue.fixed==="left"||Ue.fixed===!0)),le=computed(()=>unref(oe).filter(Ue=>Ue.fixed==="right")),ue=computed(()=>unref(oe).filter(Ue=>!Ue.fixed)),de=computed(()=>{const Ue=[];return unref(ie).forEach(qe=>{Ue.push({...qe,placeholderSign})}),unref(ue).forEach(qe=>{Ue.push(qe)}),unref(le).forEach(qe=>{Ue.push({...qe,placeholderSign})}),Ue}),pe=computed(()=>unref(ie).length||unref(le).length),he=computed(()=>unref(r).reduce((qe,Et)=>(qe[Et.key]=calcColumnStyle(Et,unref(V),t.fixed),qe),{})),_e=computed(()=>unref(oe).reduce((Ue,qe)=>Ue+qe.width,0)),$e=Ue=>unref(r).find(qe=>qe.key===Ue),Ie=Ue=>unref(he)[Ue],Ve=(Ue,qe)=>{Ue.width=qe};function Fe(Ue){var qe;const{key:Et}=Ue.currentTarget.dataset;if(!Et)return;const{sortState:At,sortBy:Lt}=t;let hn=SortOrder.ASC;isObject$9(At)?hn=oppositeOrderMap[At[Et]]:hn=oppositeOrderMap[Lt.order],(qe=t.onColumnSort)==null||qe.call(t,{column:$e(Et),key:Et,order:hn})}return{columns:r,columnsStyles:he,columnsTotalWidth:_e,fixedColumnsOnLeft:ie,fixedColumnsOnRight:le,hasFixedColumns:pe,mainColumns:de,normalColumns:ue,visibleColumns:oe,getColumn:$e,getColumnStyle:Ie,updateColumnWidth:Ve,onColumnSorted:Fe}}const useScrollbar=(t,{mainTableRef:r,leftTableRef:V,rightTableRef:oe,onMaybeEndReached:ie})=>{const le=ref({scrollLeft:0,scrollTop:0});function ue(Ve){var Fe,Ue,qe;const{scrollTop:Et}=Ve;(Fe=r.value)==null||Fe.scrollTo(Ve),(Ue=V.value)==null||Ue.scrollToTop(Et),(qe=oe.value)==null||qe.scrollToTop(Et)}function de(Ve){le.value=Ve,ue(Ve)}function pe(Ve){le.value.scrollTop=Ve,ue(unref(le))}function he(Ve){var Fe,Ue;le.value.scrollLeft=Ve,(Ue=(Fe=r.value)==null?void 0:Fe.scrollTo)==null||Ue.call(Fe,unref(le))}function _e(Ve){var Fe;de(Ve),(Fe=t.onScroll)==null||Fe.call(t,Ve)}function $e({scrollTop:Ve}){const{scrollTop:Fe}=unref(le);Ve!==Fe&&pe(Ve)}function Ie(Ve,Fe="auto"){var Ue;(Ue=r.value)==null||Ue.scrollToRow(Ve,Fe)}return watch(()=>unref(le).scrollTop,(Ve,Fe)=>{Ve>Fe&&ie()}),{scrollPos:le,scrollTo:de,scrollToLeft:he,scrollToTop:pe,scrollToRow:Ie,onScroll:_e,onVerticalScroll:$e}},useRow=(t,{mainTableRef:r,leftTableRef:V,rightTableRef:oe})=>{const ie=getCurrentInstance(),{emit:le}=ie,ue=shallowRef(!1),de=shallowRef(null),pe=ref(t.defaultExpandedRowKeys||[]),he=ref(-1),_e=shallowRef(null),$e=ref({}),Ie=ref({}),Ve=shallowRef({}),Fe=shallowRef({}),Ue=shallowRef({}),qe=computed(()=>isNumber$4(t.estimatedRowHeight));function Et(Cn){var Sn;(Sn=t.onRowsRendered)==null||Sn.call(t,Cn),Cn.rowCacheEnd>unref(he)&&(he.value=Cn.rowCacheEnd)}function At({hovered:Cn,rowKey:Sn}){de.value=Cn?Sn:null}function Lt({expanded:Cn,rowData:Sn,rowIndex:wn,rowKey:En}){var xn,Pn;const kn=[...unref(pe)],Nn=kn.indexOf(En);Cn?Nn===-1&&kn.push(En):Nn>-1&&kn.splice(Nn,1),pe.value=kn,le("update:expandedRowKeys",kn),(xn=t.onRowExpand)==null||xn.call(t,{expanded:Cn,rowData:Sn,rowIndex:wn,rowKey:En}),(Pn=t.onExpandedRowsChange)==null||Pn.call(t,kn)}const hn=debounce(()=>{var Cn,Sn,wn,En;ue.value=!0,$e.value={...unref($e),...unref(Ie)},_n(unref(_e),!1),Ie.value={},_e.value=null,(Cn=r.value)==null||Cn.forceUpdate(),(Sn=V.value)==null||Sn.forceUpdate(),(wn=oe.value)==null||wn.forceUpdate(),(En=ie.proxy)==null||En.$forceUpdate(),ue.value=!1},0);function _n(Cn,Sn=!1){unref(qe)&&[r,V,oe].forEach(wn=>{const En=unref(wn);En&&En.resetAfterRowIndex(Cn,Sn)})}function vn(Cn,Sn,wn){const En=unref(_e);(En===null||En>wn)&&(_e.value=wn),Ie.value[Cn]=Sn}function bn({rowKey:Cn,height:Sn,rowIndex:wn},En){En?En===FixedDir.RIGHT?Ue.value[Cn]=Sn:Ve.value[Cn]=Sn:Fe.value[Cn]=Sn;const xn=Math.max(...[Ve,Ue,Fe].map(Pn=>Pn.value[Cn]||0));unref($e)[Cn]!==xn&&(vn(Cn,xn,wn),hn())}return{hoveringRowKey:de,expandedRowKeys:pe,lastRenderedRowIndex:he,isDynamic:qe,isResetting:ue,rowHeights:$e,resetAfterIndex:_n,onRowExpanded:Lt,onRowHovered:At,onRowsRendered:Et,onRowHeightChange:bn}},useData=(t,{expandedRowKeys:r,lastRenderedRowIndex:V,resetAfterIndex:oe})=>{const ie=ref({}),le=computed(()=>{const de={},{data:pe,rowKey:he}=t,_e=unref(r);if(!_e||!_e.length)return pe;const $e=[],Ie=new Set;_e.forEach(Fe=>Ie.add(Fe));let Ve=pe.slice();for(Ve.forEach(Fe=>de[Fe[he]]=0);Ve.length>0;){const Fe=Ve.shift();$e.push(Fe),Ie.has(Fe[he])&&Array.isArray(Fe.children)&&Fe.children.length>0&&(Ve=[...Fe.children,...Ve],Fe.children.forEach(Ue=>de[Ue[he]]=de[Fe[he]]+1))}return ie.value=de,$e}),ue=computed(()=>{const{data:de,expandColumnKey:pe}=t;return pe?unref(le):de});return watch(ue,(de,pe)=>{de!==pe&&(V.value=-1,oe(0,!0))}),{data:ue,depthMap:ie}},sumReducer=(t,r)=>t+r,sum=t=>isArray$c(t)?t.reduce(sumReducer,0):t,tryCall=(t,r,V={})=>isFunction$5(t)?t(r):t??V,enforceUnit=t=>(["width","maxWidth","minWidth","height"].forEach(r=>{t[r]=addUnit(t[r])}),t),componentToSlot=t=>isVNode$1(t)?r=>h$2(t,r):t,useStyles=(t,{columnsTotalWidth:r,data:V,fixedColumnsOnLeft:oe,fixedColumnsOnRight:ie})=>{const le=computed(()=>{const{fixed:Lt,width:hn,vScrollbarSize:_n}=t,vn=hn-_n;return Lt?Math.max(Math.round(unref(r)),vn):vn}),ue=computed(()=>unref(le)+(t.fixed?t.vScrollbarSize:0)),de=computed(()=>{const{height:Lt=0,maxHeight:hn=0,footerHeight:_n,hScrollbarSize:vn}=t;if(hn>0){const bn=unref(Fe),Cn=unref(pe),wn=unref(Ve)+bn+Cn+vn;return Math.min(wn,hn-_n)}return Lt-_n}),pe=computed(()=>{const{rowHeight:Lt,estimatedRowHeight:hn}=t,_n=unref(V);return isNumber$4(hn)?_n.length*hn:_n.length*Lt}),he=computed(()=>{const{maxHeight:Lt}=t,hn=unref(de);if(isNumber$4(Lt)&&Lt>0)return hn;const _n=unref(pe)+unref(Ve)+unref(Fe);return Math.min(hn,_n)}),_e=Lt=>Lt.width,$e=computed(()=>sum(unref(oe).map(_e))),Ie=computed(()=>sum(unref(ie).map(_e))),Ve=computed(()=>sum(t.headerHeight)),Fe=computed(()=>{var Lt;return(((Lt=t.fixedData)==null?void 0:Lt.length)||0)*t.rowHeight}),Ue=computed(()=>unref(de)-unref(Ve)-unref(Fe)),qe=computed(()=>{const{style:Lt={},height:hn,width:_n}=t;return enforceUnit({...Lt,height:hn,width:_n})}),Et=computed(()=>enforceUnit({height:t.footerHeight})),At=computed(()=>({top:addUnit(unref(Ve)),bottom:addUnit(t.footerHeight),width:addUnit(t.width)}));return{bodyWidth:le,fixedTableHeight:he,mainTableHeight:de,leftTableWidth:$e,rightTableWidth:Ie,headerWidth:ue,rowsHeight:pe,windowHeight:Ue,footerHeight:Et,emptyStyle:At,rootStyle:qe,headerHeight:Ve}},useAutoResize=t=>{const r=ref(),V=ref(0),oe=ref(0);let ie;return onMounted(()=>{ie=useResizeObserver$1(r,([le])=>{const{width:ue,height:de}=le.contentRect,{paddingLeft:pe,paddingRight:he,paddingTop:_e,paddingBottom:$e}=getComputedStyle(le.target),Ie=Number.parseInt(pe)||0,Ve=Number.parseInt(he)||0,Fe=Number.parseInt(_e)||0,Ue=Number.parseInt($e)||0;V.value=ue-Ie-Ve,oe.value=de-Fe-Ue}).stop}),onBeforeUnmount(()=>{ie==null||ie()}),watch([V,oe],([le,ue])=>{var de;(de=t.onResize)==null||de.call(t,{width:le,height:ue})}),{sizer:r,width:V,height:oe}};function useTable(t){const r=ref(),V=ref(),oe=ref(),{columns:ie,columnsStyles:le,columnsTotalWidth:ue,fixedColumnsOnLeft:de,fixedColumnsOnRight:pe,hasFixedColumns:he,mainColumns:_e,onColumnSorted:$e}=useColumns(t,toRef(t,"columns"),toRef(t,"fixed")),{scrollTo:Ie,scrollToLeft:Ve,scrollToTop:Fe,scrollToRow:Ue,onScroll:qe,onVerticalScroll:Et,scrollPos:At}=useScrollbar(t,{mainTableRef:r,leftTableRef:V,rightTableRef:oe,onMaybeEndReached:Un}),{expandedRowKeys:Lt,hoveringRowKey:hn,lastRenderedRowIndex:_n,isDynamic:vn,isResetting:bn,rowHeights:Cn,resetAfterIndex:Sn,onRowExpanded:wn,onRowHeightChange:En,onRowHovered:xn,onRowsRendered:Pn}=useRow(t,{mainTableRef:r,leftTableRef:V,rightTableRef:oe}),{data:kn,depthMap:Nn}=useData(t,{expandedRowKeys:Lt,lastRenderedRowIndex:_n,resetAfterIndex:Sn}),{bodyWidth:Dn,fixedTableHeight:Mn,mainTableHeight:Ln,leftTableWidth:An,rightTableWidth:Vn,headerWidth:Wn,rowsHeight:Fn,windowHeight:Yn,footerHeight:tr,emptyStyle:yr,rootStyle:Jn,headerHeight:Kn}=useStyles(t,{columnsTotalWidth:ue,data:kn,fixedColumnsOnLeft:de,fixedColumnsOnRight:pe}),Gn=shallowRef(!1),Qn=ref(),ur=computed(()=>{const qn=unref(kn).length===0;return isArray$c(t.fixedData)?t.fixedData.length===0&&qn:qn});function cr(qn){const{estimatedRowHeight:er,rowHeight:pr,rowKey:Er}=t;return er?unref(Cn)[unref(kn)[qn][Er]]||er:pr}function Un(){const{onEndReached:qn}=t;if(!qn)return;const{scrollTop:er}=unref(At),pr=unref(Fn),Er=unref(Yn),dr=pr-(er+Er)+t.hScrollbarSize;unref(_n)>=0&&pr===er+unref(Ln)-unref(Kn)&&qn(dr)}return watch(()=>t.expandedRowKeys,qn=>Lt.value=qn,{deep:!0}),{columns:ie,containerRef:Qn,mainTableRef:r,leftTableRef:V,rightTableRef:oe,isDynamic:vn,isResetting:bn,isScrolling:Gn,hoveringRowKey:hn,hasFixedColumns:he,columnsStyles:le,columnsTotalWidth:ue,data:kn,expandedRowKeys:Lt,depthMap:Nn,fixedColumnsOnLeft:de,fixedColumnsOnRight:pe,mainColumns:_e,bodyWidth:Dn,emptyStyle:yr,rootStyle:Jn,headerWidth:Wn,footerHeight:tr,mainTableHeight:Ln,fixedTableHeight:Mn,leftTableWidth:An,rightTableWidth:Vn,showEmpty:ur,getRowHeight:cr,onColumnSorted:$e,onRowHovered:xn,onRowExpanded:wn,onRowsRendered:Pn,onRowHeightChange:En,scrollTo:Ie,scrollToLeft:Ve,scrollToTop:Fe,scrollToRow:Ue,onScroll:qe,onVerticalScroll:Et}}const TableV2InjectionKey=Symbol("tableV2"),classType=String,columns={type:definePropType(Array),required:!0},fixedDataType={type:definePropType(Array)},dataType={...fixedDataType,required:!0},expandColumnKey=String,expandKeys={type:definePropType(Array),default:()=>mutable([])},requiredNumber={type:Number,required:!0},rowKey={type:definePropType([String,Number,Symbol]),default:"id"},styleType={type:definePropType(Object)},tableV2RowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},depth:Number,expandColumnKey,estimatedRowHeight:{...virtualizedGridProps.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:definePropType(Function)},onRowHover:{type:definePropType(Function)},onRowHeightChange:{type:definePropType(Function)},rowData:{type:definePropType(Object),required:!0},rowEventHandlers:{type:definePropType(Object)},rowIndex:{type:Number,required:!0},rowKey,style:{type:definePropType(Object)}}),requiredNumberType={type:Number,required:!0},tableV2HeaderProps=buildProps({class:String,columns,fixedHeaderData:{type:definePropType(Array)},headerData:{type:definePropType(Array),required:!0},headerHeight:{type:definePropType([Number,Array]),default:50},rowWidth:requiredNumberType,rowHeight:{type:Number,default:50},height:requiredNumberType,width:requiredNumberType}),tableV2GridProps=buildProps({columns,data:dataType,fixedData:fixedDataType,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,width:requiredNumber,height:requiredNumber,headerWidth:requiredNumber,headerHeight:tableV2HeaderProps.headerHeight,bodyWidth:requiredNumber,rowHeight:requiredNumber,cache:virtualizedListProps.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:virtualizedGridProps.scrollbarAlwaysOn,scrollbarStartGap:virtualizedGridProps.scrollbarStartGap,scrollbarEndGap:virtualizedGridProps.scrollbarEndGap,class:classType,style:styleType,containerStyle:styleType,getRowHeight:{type:definePropType(Function),required:!0},rowKey:tableV2RowProps.rowKey,onRowsRendered:{type:definePropType(Function)},onScroll:{type:definePropType(Function)}}),tableV2Props=buildProps({cache:tableV2GridProps.cache,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,rowKey,headerClass:{type:definePropType([String,Function])},headerProps:{type:definePropType([Object,Function])},headerCellProps:{type:definePropType([Object,Function])},headerHeight:tableV2HeaderProps.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:definePropType([String,Function])},rowProps:{type:definePropType([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:definePropType([Object,Function])},columns,data:dataType,dataGetter:{type:definePropType(Function)},fixedData:fixedDataType,expandColumnKey:tableV2RowProps.expandColumnKey,expandedRowKeys:expandKeys,defaultExpandedRowKeys:expandKeys,class:classType,fixed:Boolean,style:{type:definePropType(Object)},width:requiredNumber,height:requiredNumber,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:virtualizedGridProps.hScrollbarSize,vScrollbarSize:virtualizedGridProps.vScrollbarSize,scrollbarAlwaysOn:virtualizedScrollbarProps.alwaysOn,sortBy:{type:definePropType(Object),default:()=>({})},sortState:{type:definePropType(Object),default:void 0},onColumnSort:{type:definePropType(Function)},onExpandedRowsChange:{type:definePropType(Function)},onEndReached:{type:definePropType(Function)},onRowExpand:tableV2RowProps.onRowExpand,onScroll:tableV2GridProps.onScroll,onRowsRendered:tableV2GridProps.onRowsRendered,rowEventHandlers:tableV2RowProps.rowEventHandlers}),TableV2Cell=(t,{slots:r})=>{var V;const{cellData:oe,style:ie}=t,le=((V=oe==null?void 0:oe.toString)==null?void 0:V.call(oe))||"";return createVNode("div",{class:t.class,title:le,style:ie},[r.default?r.default(t):le])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=(t,{slots:r})=>{var V,oe;return r.default?r.default(t):createVNode("div",{class:t.class,title:(V=t.column)==null?void 0:V.title},[(oe=t.column)==null?void 0:oe.title])};HeaderCell.displayName="ElTableV2HeaderCell";HeaderCell.inheritAttrs=!1;const tableV2HeaderRowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},headerIndex:Number,style:{type:definePropType(Object)}}),TableV2HeaderRow=defineComponent({name:"ElTableV2HeaderRow",props:tableV2HeaderRowProps,setup(t,{slots:r}){return()=>{const{columns:V,columnsStyles:oe,headerIndex:ie,style:le}=t;let ue=V.map((de,pe)=>r.cell({columns:V,column:de,columnIndex:pe,headerIndex:ie,style:oe[de.key]}));return r.header&&(ue=r.header({cells:ue.map(de=>isArray$c(de)&&de.length===1?de[0]:de),columns:V,headerIndex:ie})),createVNode("div",{class:t.class,style:le,role:"row"},[ue])}}}),COMPONENT_NAME$7="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$7,props:tableV2HeaderProps,setup(t,{slots:r,expose:V}){const oe=useNamespace("table-v2"),ie=ref(),le=computed(()=>enforceUnit({width:t.width,height:t.height})),ue=computed(()=>enforceUnit({width:t.rowWidth,height:t.height})),de=computed(()=>castArray$1(unref(t.headerHeight))),pe=$e=>{const Ie=unref(ie);nextTick(()=>{Ie!=null&&Ie.scroll&&Ie.scroll({left:$e})})},he=()=>{const $e=oe.e("fixed-header-row"),{columns:Ie,fixedHeaderData:Ve,rowHeight:Fe}=t;return Ve==null?void 0:Ve.map((Ue,qe)=>{var Et;const At=enforceUnit({height:Fe,width:"100%"});return(Et=r.fixed)==null?void 0:Et.call(r,{class:$e,columns:Ie,rowData:Ue,rowIndex:-(qe+1),style:At})})},_e=()=>{const $e=oe.e("dynamic-header-row"),{columns:Ie}=t;return unref(de).map((Ve,Fe)=>{var Ue;const qe=enforceUnit({width:"100%",height:Ve});return(Ue=r.dynamic)==null?void 0:Ue.call(r,{class:$e,columns:Ie,headerIndex:Fe,style:qe})})};return V({scrollToLeft:pe}),()=>{if(!(t.height<=0))return createVNode("div",{ref:ie,class:t.class,style:unref(le),role:"rowgroup"},[createVNode("div",{style:unref(ue),class:oe.e("header")},[_e(),he()])])}}}),useTableRow=t=>{const{isScrolling:r}=inject(TableV2InjectionKey),V=ref(!1),oe=ref(),ie=computed(()=>isNumber$4(t.estimatedRowHeight)&&t.rowIndex>=0),le=(pe=!1)=>{const he=unref(oe);if(!he)return;const{columns:_e,onRowHeightChange:$e,rowKey:Ie,rowIndex:Ve,style:Fe}=t,{height:Ue}=he.getBoundingClientRect();V.value=!0,nextTick(()=>{if(pe||Ue!==Number.parseInt(Fe.height)){const qe=_e[0],Et=(qe==null?void 0:qe.placeholderSign)===placeholderSign;$e==null||$e({rowKey:Ie,height:Ue,rowIndex:Ve},qe&&!Et&&qe.fixed)}})},ue=computed(()=>{const{rowData:pe,rowIndex:he,rowKey:_e,onRowHover:$e}=t,Ie=t.rowEventHandlers||{},Ve={};return Object.entries(Ie).forEach(([Fe,Ue])=>{isFunction$5(Ue)&&(Ve[Fe]=qe=>{Ue({event:qe,rowData:pe,rowIndex:he,rowKey:_e})})}),$e&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:Fe,hovered:Ue})=>{const qe=Ve[Fe];Ve[Fe]=Et=>{$e({event:Et,hovered:Ue,rowData:pe,rowIndex:he,rowKey:_e}),qe==null||qe(Et)}}),Ve}),de=pe=>{const{onRowExpand:he,rowData:_e,rowIndex:$e,rowKey:Ie}=t;he==null||he({expanded:pe,rowData:_e,rowIndex:$e,rowKey:Ie})};return onMounted(()=>{unref(ie)&&le(!0)}),{isScrolling:r,measurable:ie,measured:V,rowRef:oe,eventHandlers:ue,onExpand:de}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup(t,{expose:r,slots:V,attrs:oe}){const{eventHandlers:ie,isScrolling:le,measurable:ue,measured:de,rowRef:pe,onExpand:he}=useTableRow(t);return r({onExpand:he}),()=>{const{columns:_e,columnsStyles:$e,expandColumnKey:Ie,depth:Ve,rowData:Fe,rowIndex:Ue,style:qe}=t;let Et=_e.map((At,Lt)=>{const hn=isArray$c(Fe.children)&&Fe.children.length>0&&At.key===Ie;return V.cell({column:At,columns:_e,columnIndex:Lt,depth:Ve,style:$e[At.key],rowData:Fe,rowIndex:Ue,isScrolling:unref(le),expandIconProps:hn?{rowData:Fe,rowIndex:Ue,onExpand:he}:void 0})});if(V.row&&(Et=V.row({cells:Et.map(At=>isArray$c(At)&&At.length===1?At[0]:At),style:qe,columns:_e,depth:Ve,rowData:Fe,rowIndex:Ue,isScrolling:unref(le)})),unref(ue)){const{height:At,...Lt}=qe||{},hn=unref(de);return createVNode("div",mergeProps({ref:pe,class:t.class,style:hn?qe:Lt,role:"row"},oe,unref(ie)),[Et])}return createVNode("div",mergeProps(oe,{ref:pe,class:t.class,style:qe,role:"row"},unref(ie)),[Et])}}}),SortIcon=t=>{const{sortOrder:r}=t;return createVNode(ElIcon,{size:14,class:t.class},{default:()=>[r===SortOrder.ASC?createVNode(sort_up_default,null,null):createVNode(sort_down_default,null,null)]})},ExpandIcon=t=>{const{expanded:r,expandable:V,onExpand:oe,style:ie,size:le}=t,ue={onClick:V?()=>oe(!r):void 0,class:t.class};return createVNode(ElIcon,mergeProps(ue,{size:le,style:ie}),{default:()=>[createVNode(arrow_right_default,null,null)]})},COMPONENT_NAME$5="ElTableV2Grid",useTableGrid=t=>{const r=ref(),V=ref(),oe=computed(()=>{const{data:Ue,rowHeight:qe,estimatedRowHeight:Et}=t;if(!Et)return Ue.length*qe}),ie=computed(()=>{const{fixedData:Ue,rowHeight:qe}=t;return((Ue==null?void 0:Ue.length)||0)*qe}),le=computed(()=>sum(t.headerHeight)),ue=computed(()=>{const{height:Ue}=t;return Math.max(0,Ue-unref(le)-unref(ie))}),de=computed(()=>unref(le)+unref(ie)>0),pe=({data:Ue,rowIndex:qe})=>Ue[qe][t.rowKey];function he({rowCacheStart:Ue,rowCacheEnd:qe,rowVisibleStart:Et,rowVisibleEnd:At}){var Lt;(Lt=t.onRowsRendered)==null||Lt.call(t,{rowCacheStart:Ue,rowCacheEnd:qe,rowVisibleStart:Et,rowVisibleEnd:At})}function _e(Ue,qe){var Et;(Et=V.value)==null||Et.resetAfterRowIndex(Ue,qe)}function $e(Ue,qe){const Et=unref(r),At=unref(V);!Et||!At||(isObject$9(Ue)?(Et.scrollToLeft(Ue.scrollLeft),At.scrollTo(Ue)):(Et.scrollToLeft(Ue),At.scrollTo({scrollLeft:Ue,scrollTop:qe})))}function Ie(Ue){var qe;(qe=unref(V))==null||qe.scrollTo({scrollTop:Ue})}function Ve(Ue,qe){var Et;(Et=unref(V))==null||Et.scrollToItem(Ue,1,qe)}function Fe(){var Ue,qe;(Ue=unref(V))==null||Ue.$forceUpdate(),(qe=unref(r))==null||qe.$forceUpdate()}return{bodyRef:V,forceUpdate:Fe,fixedRowHeight:ie,gridHeight:ue,hasHeader:de,headerHeight:le,headerRef:r,totalHeight:oe,itemKey:pe,onItemRendered:he,resetAfterRowIndex:_e,scrollTo:$e,scrollToTop:Ie,scrollToRow:Ve}},TableGrid=defineComponent({name:COMPONENT_NAME$5,props:tableV2GridProps,setup(t,{slots:r,expose:V}){const{ns:oe}=inject(TableV2InjectionKey),{bodyRef:ie,fixedRowHeight:le,gridHeight:ue,hasHeader:de,headerRef:pe,headerHeight:he,totalHeight:_e,forceUpdate:$e,itemKey:Ie,onItemRendered:Ve,resetAfterRowIndex:Fe,scrollTo:Ue,scrollToTop:qe,scrollToRow:Et}=useTableGrid(t);V({forceUpdate:$e,totalHeight:_e,scrollTo:Ue,scrollToTop:qe,scrollToRow:Et,resetAfterRowIndex:Fe});const At=()=>t.bodyWidth;return()=>{const{cache:Lt,columns:hn,data:_n,fixedData:vn,useIsScrolling:bn,scrollbarAlwaysOn:Cn,scrollbarEndGap:Sn,scrollbarStartGap:wn,style:En,rowHeight:xn,bodyWidth:Pn,estimatedRowHeight:kn,headerWidth:Nn,height:Dn,width:Mn,getRowHeight:Ln,onScroll:An}=t,Vn=isNumber$4(kn),Wn=Vn?DynamicSizeGrid:FixedSizeGrid,Fn=unref(he);return createVNode("div",{role:"table",class:[oe.e("table"),t.class],style:En},[createVNode(Wn,{ref:ie,data:_n,useIsScrolling:bn,itemKey:Ie,columnCache:0,columnWidth:Vn?At:Pn,totalColumn:1,totalRow:_n.length,rowCache:Lt,rowHeight:Vn?Ln:xn,width:Mn,height:unref(ue),class:oe.e("body"),role:"rowgroup",scrollbarStartGap:wn,scrollbarEndGap:Sn,scrollbarAlwaysOn:Cn,onScroll:An,onItemRendered:Ve,perfMode:!1},{default:Yn=>{var tr;const yr=_n[Yn.rowIndex];return(tr=r.row)==null?void 0:tr.call(r,{...Yn,columns:hn,rowData:yr})}}),unref(de)&&createVNode(TableV2Header,{ref:pe,class:oe.e("header-wrapper"),columns:hn,headerData:_n,headerHeight:t.headerHeight,fixedHeaderData:vn,rowWidth:Nn,rowHeight:xn,width:Mn,height:Math.min(Fn+unref(le),Dn)},{dynamic:r.header,fixed:r.row})])}}});function _isSlot$5(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const MainTable=(t,{slots:r})=>{const{mainTableRef:V,...oe}=t;return createVNode(TableGrid,mergeProps({ref:V},oe),_isSlot$5(r)?r:{default:()=>[r]})};function _isSlot$4(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const LeftTable$1=(t,{slots:r})=>{if(!t.columns.length)return;const{leftTableRef:V,...oe}=t;return createVNode(TableGrid,mergeProps({ref:V},oe),_isSlot$4(r)?r:{default:()=>[r]})};function _isSlot$3(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const LeftTable=(t,{slots:r})=>{if(!t.columns.length)return;const{rightTableRef:V,...oe}=t;return createVNode(TableGrid,mergeProps({ref:V},oe),_isSlot$3(r)?r:{default:()=>[r]})};function _isSlot$2(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const RowRenderer=(t,{slots:r})=>{const{columns:V,columnsStyles:oe,depthMap:ie,expandColumnKey:le,expandedRowKeys:ue,estimatedRowHeight:de,hasFixedColumns:pe,hoveringRowKey:he,rowData:_e,rowIndex:$e,style:Ie,isScrolling:Ve,rowProps:Fe,rowClass:Ue,rowKey:qe,rowEventHandlers:Et,ns:At,onRowHovered:Lt,onRowExpanded:hn}=t,_n=tryCall(Ue,{columns:V,rowData:_e,rowIndex:$e},""),vn=tryCall(Fe,{columns:V,rowData:_e,rowIndex:$e}),bn=_e[qe],Cn=ie[bn]||0,Sn=!!le,wn=$e<0,En=[At.e("row"),_n,{[At.e(`row-depth-${Cn}`)]:Sn&&$e>=0,[At.is("expanded")]:Sn&&ue.includes(bn),[At.is("hovered")]:!Ve&&bn===he,[At.is("fixed")]:!Cn&&wn,[At.is("customized")]:!!r.row}],xn=pe?Lt:void 0,Pn={...vn,columns:V,columnsStyles:oe,class:En,depth:Cn,expandColumnKey:le,estimatedRowHeight:wn?void 0:de,isScrolling:Ve,rowIndex:$e,rowData:_e,rowKey:bn,rowEventHandlers:Et,style:Ie};return createVNode(TableV2Row,mergeProps(Pn,{onRowHover:xn,onRowExpand:hn}),_isSlot$2(r)?r:{default:()=>[r]})},CellRenderer=({columns:t,column:r,columnIndex:V,depth:oe,expandIconProps:ie,isScrolling:le,rowData:ue,rowIndex:de,style:pe,expandedRowKeys:he,ns:_e,cellProps:$e,expandColumnKey:Ie,indentSize:Ve,iconSize:Fe,rowKey:Ue},{slots:qe})=>{const Et=enforceUnit(pe);if(r.placeholderSign===placeholderSign)return createVNode("div",{class:_e.em("row-cell","placeholder"),style:Et},null);const{cellRenderer:At,dataKey:Lt,dataGetter:hn}=r,vn=componentToSlot(At)||qe.default||(Dn=>createVNode(TableV2Cell,Dn,null)),bn=isFunction$5(hn)?hn({columns:t,column:r,columnIndex:V,rowData:ue,rowIndex:de}):get$1(ue,Lt??""),Cn=tryCall($e,{cellData:bn,columns:t,column:r,columnIndex:V,rowIndex:de,rowData:ue}),Sn={class:_e.e("cell-text"),columns:t,column:r,columnIndex:V,cellData:bn,isScrolling:le,rowData:ue,rowIndex:de},wn=vn(Sn),En=[_e.e("row-cell"),r.class,r.align===Alignment.CENTER&&_e.is("align-center"),r.align===Alignment.RIGHT&&_e.is("align-right")],xn=de>=0&&Ie&&r.key===Ie,Pn=de>=0&&he.includes(ue[Ue]);let kn;const Nn=`margin-inline-start: ${oe*Ve}px;`;return xn&&(isObject$9(ie)?kn=createVNode(ExpandIcon,mergeProps(ie,{class:[_e.e("expand-icon"),_e.is("expanded",Pn)],size:Fe,expanded:Pn,style:Nn,expandable:!0}),null):kn=createVNode("div",{style:[Nn,`width: ${Fe}px; height: ${Fe}px;`].join(" ")},null)),createVNode("div",mergeProps({class:En,style:Et},Cn,{role:"cell"}),[kn,wn])};CellRenderer.inheritAttrs=!1;function _isSlot$1(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const HeaderRenderer=({columns:t,columnsStyles:r,headerIndex:V,style:oe,headerClass:ie,headerProps:le,ns:ue},{slots:de})=>{const pe={columns:t,headerIndex:V},he=[ue.e("header-row"),tryCall(ie,pe,""),{[ue.is("customized")]:!!de.header}],_e={...tryCall(le,pe),columnsStyles:r,class:he,columns:t,headerIndex:V,style:oe};return createVNode(TableV2HeaderRow,_e,_isSlot$1(de)?de:{default:()=>[de]})},HeaderCellRenderer=(t,{slots:r})=>{const{column:V,ns:oe,style:ie,onColumnSorted:le}=t,ue=enforceUnit(ie);if(V.placeholderSign===placeholderSign)return createVNode("div",{class:oe.em("header-row-cell","placeholder"),style:ue},null);const{headerCellRenderer:de,headerClass:pe,sortable:he}=V,_e={...t,class:oe.e("header-cell-text")},Ie=(componentToSlot(de)||r.default||(hn=>createVNode(HeaderCell,hn,null)))(_e),{sortBy:Ve,sortState:Fe,headerCellProps:Ue}=t;let qe,Et;if(Fe){const hn=Fe[V.key];qe=!!oppositeOrderMap[hn],Et=qe?hn:SortOrder.ASC}else qe=V.key===Ve.key,Et=qe?Ve.order:SortOrder.ASC;const At=[oe.e("header-cell"),tryCall(pe,t,""),V.align===Alignment.CENTER&&oe.is("align-center"),V.align===Alignment.RIGHT&&oe.is("align-right"),he&&oe.is("sortable")],Lt={...tryCall(Ue,t),onClick:V.sortable?le:void 0,class:At,style:ue,"data-key":V.key};return createVNode("div",mergeProps(Lt,{role:"columnheader"}),[Ie,he&&createVNode(SortIcon,{class:[oe.e("sort-icon"),qe&&oe.is("sorting")],sortOrder:Et},null)])},Footer$1=(t,{slots:r})=>{var V;return createVNode("div",{class:t.class,style:t.style},[(V=r.default)==null?void 0:V.call(r)])};Footer$1.displayName="ElTableV2Footer";const Footer=(t,{slots:r})=>createVNode("div",{class:t.class,style:t.style},[r.default?r.default():createVNode(ElEmpty,null,null)]);Footer.displayName="ElTableV2Empty";const Overlay=(t,{slots:r})=>{var V;return createVNode("div",{class:t.class,style:t.style},[(V=r.default)==null?void 0:V.call(r)])};Overlay.displayName="ElTableV2Overlay";function _isSlot(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const COMPONENT_NAME$4="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$4,props:tableV2Props,setup(t,{slots:r,expose:V}){const oe=useNamespace("table-v2"),{columnsStyles:ie,fixedColumnsOnLeft:le,fixedColumnsOnRight:ue,mainColumns:de,mainTableHeight:pe,fixedTableHeight:he,leftTableWidth:_e,rightTableWidth:$e,data:Ie,depthMap:Ve,expandedRowKeys:Fe,hasFixedColumns:Ue,hoveringRowKey:qe,mainTableRef:Et,leftTableRef:At,rightTableRef:Lt,isDynamic:hn,isResetting:_n,isScrolling:vn,bodyWidth:bn,emptyStyle:Cn,rootStyle:Sn,headerWidth:wn,footerHeight:En,showEmpty:xn,scrollTo:Pn,scrollToLeft:kn,scrollToTop:Nn,scrollToRow:Dn,getRowHeight:Mn,onColumnSorted:Ln,onRowHeightChange:An,onRowHovered:Vn,onRowExpanded:Wn,onRowsRendered:Fn,onScroll:Yn,onVerticalScroll:tr}=useTable(t);return V({scrollTo:Pn,scrollToLeft:kn,scrollToTop:Nn,scrollToRow:Dn}),provide(TableV2InjectionKey,{ns:oe,isResetting:_n,hoveringRowKey:qe,isScrolling:vn}),()=>{const{cache:yr,cellProps:Jn,estimatedRowHeight:Kn,expandColumnKey:Gn,fixedData:Qn,headerHeight:ur,headerClass:cr,headerProps:Un,headerCellProps:qn,sortBy:er,sortState:pr,rowHeight:Er,rowClass:dr,rowEventHandlers:xr,rowKey:wr,rowProps:Cr,scrollbarAlwaysOn:gr,indentSize:or,iconSize:fr,useIsScrolling:kr,vScrollbarSize:br,width:Ar}=t,Dr=unref(Ie),Br={cache:yr,class:oe.e("main"),columns:unref(de),data:Dr,fixedData:Qn,estimatedRowHeight:Kn,bodyWidth:unref(bn)+br,headerHeight:ur,headerWidth:unref(wn),height:unref(pe),mainTableRef:Et,rowKey:wr,rowHeight:Er,scrollbarAlwaysOn:gr,scrollbarStartGap:2,scrollbarEndGap:br,useIsScrolling:kr,width:Ar,getRowHeight:Mn,onRowsRendered:Fn,onScroll:Yn},zr=unref(_e),Rr=unref(he),mr={cache:yr,class:oe.e("left"),columns:unref(le),data:Dr,estimatedRowHeight:Kn,leftTableRef:At,rowHeight:Er,bodyWidth:zr,headerWidth:zr,headerHeight:ur,height:Rr,rowKey:wr,scrollbarAlwaysOn:gr,scrollbarStartGap:2,scrollbarEndGap:br,useIsScrolling:kr,width:zr,getRowHeight:Mn,onScroll:tr},ar=unref($e)+br,$r={cache:yr,class:oe.e("right"),columns:unref(ue),data:Dr,estimatedRowHeight:Kn,rightTableRef:Lt,rowHeight:Er,bodyWidth:ar,headerWidth:ar,headerHeight:ur,height:Rr,rowKey:wr,scrollbarAlwaysOn:gr,scrollbarStartGap:2,scrollbarEndGap:br,width:ar,style:`--${unref(oe.namespace)}-table-scrollbar-size: ${br}px`,useIsScrolling:kr,getRowHeight:Mn,onScroll:tr},Zn=unref(ie),Or={ns:oe,depthMap:unref(Ve),columnsStyles:Zn,expandColumnKey:Gn,expandedRowKeys:unref(Fe),estimatedRowHeight:Kn,hasFixedColumns:unref(Ue),hoveringRowKey:unref(qe),rowProps:Cr,rowClass:dr,rowKey:wr,rowEventHandlers:xr,onRowHovered:Vn,onRowExpanded:Wn,onRowHeightChange:An},Lr={cellProps:Jn,expandColumnKey:Gn,indentSize:or,iconSize:fr,rowKey:wr,expandedRowKeys:unref(Fe),ns:oe},Ur={ns:oe,headerClass:cr,headerProps:Un,columnsStyles:Zn},Kr={ns:oe,sortBy:er,sortState:pr,headerCellProps:qn,onColumnSorted:Ln},qr={row:_r=>createVNode(RowRenderer,mergeProps(_r,Or),{row:r.row,cell:Pr=>{let sr;return r.cell?createVNode(CellRenderer,mergeProps(Pr,Lr,{style:Zn[Pr.column.key]}),_isSlot(sr=r.cell(Pr))?sr:{default:()=>[sr]}):createVNode(CellRenderer,mergeProps(Pr,Lr,{style:Zn[Pr.column.key]}),null)}}),header:_r=>createVNode(HeaderRenderer,mergeProps(_r,Ur),{header:r.header,cell:Pr=>{let sr;return r["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(Pr,Kr,{style:Zn[Pr.column.key]}),_isSlot(sr=r["header-cell"](Pr))?sr:{default:()=>[sr]}):createVNode(HeaderCellRenderer,mergeProps(Pr,Kr,{style:Zn[Pr.column.key]}),null)}})},no=[t.class,oe.b(),oe.e("root"),{[oe.is("dynamic")]:unref(hn)}],Xr={class:oe.e("footer"),style:unref(En)};return createVNode("div",{class:no,style:unref(Sn)},[createVNode(MainTable,Br,_isSlot(qr)?qr:{default:()=>[qr]}),createVNode(LeftTable$1,mr,_isSlot(qr)?qr:{default:()=>[qr]}),createVNode(LeftTable,$r,_isSlot(qr)?qr:{default:()=>[qr]}),r.footer&&createVNode(Footer$1,Xr,{default:r.footer}),unref(xn)&&createVNode(Footer,{class:oe.e("empty"),style:unref(Cn)},{default:r.empty}),r.overlay&&createVNode(Overlay,{class:oe.e("overlay")},{default:r.overlay})])}}}),autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup(t,{slots:r}){const V=useNamespace("auto-resizer"),{height:oe,width:ie,sizer:le}=useAutoResize(t),ue={width:"100%",height:"100%"};return()=>{var de;return createVNode("div",{ref:le,class:V.b(),style:ue},[(de=r.default)==null?void 0:de.call(r,{height:oe.value,width:ie.value})])}}}),ElTableV2=withInstall(TableV2),ElAutoResizer=withInstall(AutoResizer),tabsRootContextKey=Symbol("tabsRootContextKey"),tabBarProps=buildProps({tabs:{type:definePropType(Array),default:()=>mutable([])}}),COMPONENT_NAME$3="ElTabBar",__default__$k=defineComponent({name:COMPONENT_NAME$3}),_sfc_main$r=defineComponent({...__default__$k,props:tabBarProps,setup(t,{expose:r}){const V=t,oe=getCurrentInstance(),ie=inject(tabsRootContextKey);ie||throwError$1(COMPONENT_NAME$3,"");const le=useNamespace("tabs"),ue=ref(),de=ref(),pe=()=>{let _e=0,$e=0;const Ie=["top","bottom"].includes(ie.props.tabPosition)?"width":"height",Ve=Ie==="width"?"x":"y",Fe=Ve==="x"?"left":"top";return V.tabs.every(Ue=>{var qe,Et;const At=(Et=(qe=oe.parent)==null?void 0:qe.refs)==null?void 0:Et[`tab-${Ue.uid}`];if(!At)return!1;if(!Ue.active)return!0;_e=At[`offset${capitalize$1(Fe)}`],$e=At[`client${capitalize$1(Ie)}`];const Lt=window.getComputedStyle(At);return Ie==="width"&&(V.tabs.length>1&&($e-=Number.parseFloat(Lt.paddingLeft)+Number.parseFloat(Lt.paddingRight)),_e+=Number.parseFloat(Lt.paddingLeft)),!1}),{[Ie]:`${$e}px`,transform:`translate${capitalize$1(Ve)}(${_e}px)`}},he=()=>de.value=pe();return watch(()=>V.tabs,async()=>{await nextTick(),he()},{immediate:!0}),useResizeObserver$1(ue,()=>he()),r({ref:ue,update:he}),(_e,$e)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:ue,class:normalizeClass([unref(le).e("active-bar"),unref(le).is(unref(ie).props.tabPosition)]),style:normalizeStyle$1(de.value)},null,6))}});var TabBar=_export_sfc$1(_sfc_main$r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const tabNavProps=buildProps({panes:{type:definePropType(Array),default:()=>mutable([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),tabNavEmits={tabClick:(t,r,V)=>V instanceof Event,tabRemove:(t,r)=>r instanceof Event},COMPONENT_NAME$2="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME$2,props:tabNavProps,emits:tabNavEmits,setup(t,{expose:r,emit:V}){const oe=getCurrentInstance(),ie=inject(tabsRootContextKey);ie||throwError$1(COMPONENT_NAME$2,"");const le=useNamespace("tabs"),ue=useDocumentVisibility(),de=useWindowFocus(),pe=ref(),he=ref(),_e=ref(),$e=ref(),Ie=ref(!1),Ve=ref(0),Fe=ref(!1),Ue=ref(!0),qe=computed(()=>["top","bottom"].includes(ie.props.tabPosition)?"width":"height"),Et=computed(()=>({transform:`translate${qe.value==="width"?"X":"Y"}(-${Ve.value}px)`})),At=()=>{if(!pe.value)return;const Sn=pe.value[`offset${capitalize$1(qe.value)}`],wn=Ve.value;if(!wn)return;const En=wn>Sn?wn-Sn:0;Ve.value=En},Lt=()=>{if(!pe.value||!he.value)return;const Sn=he.value[`offset${capitalize$1(qe.value)}`],wn=pe.value[`offset${capitalize$1(qe.value)}`],En=Ve.value;if(Sn-En<=wn)return;const xn=Sn-En>wn*2?En+wn:Sn-wn;Ve.value=xn},hn=async()=>{const Sn=he.value;if(!Ie.value||!_e.value||!pe.value||!Sn)return;await nextTick();const wn=_e.value.querySelector(".is-active");if(!wn)return;const En=pe.value,xn=["top","bottom"].includes(ie.props.tabPosition),Pn=wn.getBoundingClientRect(),kn=En.getBoundingClientRect(),Nn=xn?Sn.offsetWidth-kn.width:Sn.offsetHeight-kn.height,Dn=Ve.value;let Mn=Dn;xn?(Pn.leftkn.right&&(Mn=Dn+Pn.right-kn.right)):(Pn.topkn.bottom&&(Mn=Dn+(Pn.bottom-kn.bottom))),Mn=Math.max(Mn,0),Ve.value=Math.min(Mn,Nn)},_n=()=>{var Sn;if(!he.value||!pe.value)return;t.stretch&&((Sn=$e.value)==null||Sn.update());const wn=he.value[`offset${capitalize$1(qe.value)}`],En=pe.value[`offset${capitalize$1(qe.value)}`],xn=Ve.value;En0&&(Ve.value=0))},vn=Sn=>{const wn=Sn.code,{up:En,down:xn,left:Pn,right:kn}=EVENT_CODE;if(![En,xn,Pn,kn].includes(wn))return;const Nn=Array.from(Sn.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Dn=Nn.indexOf(Sn.target);let Mn;wn===Pn||wn===En?Dn===0?Mn=Nn.length-1:Mn=Dn-1:Dn{Ue.value&&(Fe.value=!0)},Cn=()=>Fe.value=!1;return watch(ue,Sn=>{Sn==="hidden"?Ue.value=!1:Sn==="visible"&&setTimeout(()=>Ue.value=!0,50)}),watch(de,Sn=>{Sn?setTimeout(()=>Ue.value=!0,50):Ue.value=!1}),useResizeObserver$1(_e,_n),onMounted(()=>setTimeout(()=>hn(),0)),onUpdated(()=>_n()),r({scrollToActiveTab:hn,removeFocus:Cn}),watch(()=>t.panes,()=>oe.update(),{flush:"post",deep:!0}),()=>{const Sn=Ie.value?[createVNode("span",{class:[le.e("nav-prev"),le.is("disabled",!Ie.value.prev)],onClick:At},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_left_default,null,null)]})]),createVNode("span",{class:[le.e("nav-next"),le.is("disabled",!Ie.value.next)],onClick:Lt},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_right_default,null,null)]})])]:null,wn=t.panes.map((En,xn)=>{var Pn,kn,Nn,Dn;const Mn=En.uid,Ln=En.props.disabled,An=(kn=(Pn=En.props.name)!=null?Pn:En.index)!=null?kn:`${xn}`,Vn=!Ln&&(En.isClosable||t.editable);En.index=`${xn}`;const Wn=Vn?createVNode(ElIcon,{class:"is-icon-close",onClick:tr=>V("tabRemove",En,tr)},{default:()=>[createVNode(close_default,null,null)]}):null,Fn=((Dn=(Nn=En.slots).label)==null?void 0:Dn.call(Nn))||En.props.label,Yn=!Ln&&En.active?0:-1;return createVNode("div",{ref:`tab-${Mn}`,class:[le.e("item"),le.is(ie.props.tabPosition),le.is("active",En.active),le.is("disabled",Ln),le.is("closable",Vn),le.is("focus",Fe.value)],id:`tab-${An}`,key:`tab-${Mn}`,"aria-controls":`pane-${An}`,role:"tab","aria-selected":En.active,tabindex:Yn,onFocus:()=>bn(),onBlur:()=>Cn(),onClick:tr=>{Cn(),V("tabClick",En,An,tr)},onKeydown:tr=>{Vn&&(tr.code===EVENT_CODE.delete||tr.code===EVENT_CODE.backspace)&&V("tabRemove",En,tr)}},[Fn,Wn])});return createVNode("div",{ref:_e,class:[le.e("nav-wrap"),le.is("scrollable",!!Ie.value),le.is(ie.props.tabPosition)]},[Sn,createVNode("div",{class:le.e("nav-scroll"),ref:pe},[createVNode("div",{class:[le.e("nav"),le.is(ie.props.tabPosition),le.is("stretch",t.stretch&&["top","bottom"].includes(ie.props.tabPosition))],ref:he,style:Et.value,role:"tablist",onKeydown:vn},[t.type?null:createVNode(TabBar,{ref:$e,tabs:[...t.panes]},null),wn])])])}}}),tabsProps=buildProps({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:definePropType(Function),default:()=>!0},stretch:Boolean}),isPaneName=t=>isString$6(t)||isNumber$4(t),tabsEmits={[UPDATE_MODEL_EVENT]:t=>isPaneName(t),tabClick:(t,r)=>r instanceof Event,tabChange:t=>isPaneName(t),edit:(t,r)=>["remove","add"].includes(r),tabRemove:t=>isPaneName(t),tabAdd:()=>!0};var Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup(t,{emit:r,slots:V,expose:oe}){var ie,le;const ue=useNamespace("tabs"),{children:de,addChild:pe,removeChild:he}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),_e=ref(),$e=ref((le=(ie=t.modelValue)!=null?ie:t.activeName)!=null?le:"0"),Ie=Et=>{$e.value=Et,r(UPDATE_MODEL_EVENT,Et),r("tabChange",Et)},Ve=async Et=>{var At,Lt,hn;if(!($e.value===Et||isUndefined$1(Et)))try{await((At=t.beforeLeave)==null?void 0:At.call(t,Et,$e.value))!==!1&&(Ie(Et),(hn=(Lt=_e.value)==null?void 0:Lt.removeFocus)==null||hn.call(Lt))}catch{}},Fe=(Et,At,Lt)=>{Et.props.disabled||(Ve(At),r("tabClick",Et,Lt))},Ue=(Et,At)=>{Et.props.disabled||isUndefined$1(Et.props.name)||(At.stopPropagation(),r("edit",Et.props.name,"remove"),r("tabRemove",Et.props.name))},qe=()=>{r("edit",void 0,"add"),r("tabAdd")};return useDeprecated({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},computed(()=>!!t.activeName)),watch(()=>t.activeName,Et=>Ve(Et)),watch(()=>t.modelValue,Et=>Ve(Et)),watch($e,async()=>{var Et;await nextTick(),(Et=_e.value)==null||Et.scrollToActiveTab()}),provide(tabsRootContextKey,{props:t,currentName:$e,registerPane:pe,unregisterPane:he}),oe({currentName:$e}),()=>{const Et=t.editable||t.addable?createVNode("span",{class:ue.e("new-tab"),tabindex:"0",onClick:qe,onKeydown:hn=>{hn.code===EVENT_CODE.enter&&qe()}},[createVNode(ElIcon,{class:ue.is("icon-plus")},{default:()=>[createVNode(plus_default,null,null)]})]):null,At=createVNode("div",{class:[ue.e("header"),ue.is(t.tabPosition)]},[Et,createVNode(TabNav,{ref:_e,currentName:$e.value,editable:t.editable,type:t.type,panes:de.value,stretch:t.stretch,onTabClick:Fe,onTabRemove:Ue},null)]),Lt=createVNode("div",{class:ue.e("content")},[renderSlot(V,"default")]);return createVNode("div",{class:[ue.b(),ue.m(t.tabPosition),{[ue.m("card")]:t.type==="card",[ue.m("border-card")]:t.type==="border-card"}]},[...t.tabPosition!=="bottom"?[At,Lt]:[Lt,At]])}}});const tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),_hoisted_1$c=["id","aria-hidden","aria-labelledby"],COMPONENT_NAME$1="ElTabPane",__default__$j=defineComponent({name:COMPONENT_NAME$1}),_sfc_main$q=defineComponent({...__default__$j,props:tabPaneProps,setup(t){const r=t,V=getCurrentInstance(),oe=useSlots(),ie=inject(tabsRootContextKey);ie||throwError$1(COMPONENT_NAME$1,"usage: ");const le=useNamespace("tab-pane"),ue=ref(),de=computed(()=>r.closable||ie.props.closable),pe=computedEager(()=>{var Ve;return ie.currentName.value===((Ve=r.name)!=null?Ve:ue.value)}),he=ref(pe.value),_e=computed(()=>{var Ve;return(Ve=r.name)!=null?Ve:ue.value}),$e=computedEager(()=>!r.lazy||he.value||pe.value);watch(pe,Ve=>{Ve&&(he.value=!0)});const Ie=reactive({uid:V.uid,slots:oe,props:r,paneName:_e,active:pe,index:ue,isClosable:de});return onMounted(()=>{ie.registerPane(Ie)}),onUnmounted(()=>{ie.unregisterPane(Ie.uid)}),(Ve,Fe)=>unref($e)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(_e)}`,class:normalizeClass(unref(le).b()),role:"tabpanel","aria-hidden":!unref(pe),"aria-labelledby":`tab-${unref(_e)}`},[renderSlot(Ve.$slots,"default")],10,_hoisted_1$c)),[[vShow,unref(pe)]]):createCommentVNode("v-if",!0)}});var TabPane=_export_sfc$1(_sfc_main$q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const ElTabs=withInstall(Tabs,{TabPane}),ElTabPane=withNoopInstall(TabPane),textProps=buildProps({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:componentSizes,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),__default__$i=defineComponent({name:"ElText"}),_sfc_main$p=defineComponent({...__default__$i,props:textProps,setup(t){const r=t,V=useFormSize(),oe=useNamespace("text"),ie=computed(()=>[oe.b(),oe.m(r.type),oe.m(V.value),oe.is("truncated",r.truncated)]);return(le,ue)=>(openBlock(),createBlock(resolveDynamicComponent(le.tag),{class:normalizeClass(unref(ie))},{default:withCtx(()=>[renderSlot(le.$slots,"default")]),_:3},8,["class"]))}});var Text=_export_sfc$1(_sfc_main$p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const ElText=withInstall(Text),timeSelectProps=buildProps({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:useSizeProp,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:definePropType([String,Object]),default:()=>clock_default},clearIcon:{type:definePropType([String,Object]),default:()=>circle_close_default}}),parseTime=t=>{const r=(t||"").split(":");if(r.length>=2){let V=Number.parseInt(r[0],10);const oe=Number.parseInt(r[1],10),ie=t.toUpperCase();return ie.includes("AM")&&V===12?V=0:ie.includes("PM")&&V!==12&&(V+=12),{hours:V,minutes:oe}}return null},compareTime=(t,r)=>{const V=parseTime(t);if(!V)return-1;const oe=parseTime(r);if(!oe)return-1;const ie=V.minutes+V.hours*60,le=oe.minutes+oe.hours*60;return ie===le?0:ie>le?1:-1},padTime=t=>`${t}`.padStart(2,"0"),formatTime$1=t=>`${padTime(t.hours)}:${padTime(t.minutes)}`,nextTime=(t,r)=>{const V=parseTime(t);if(!V)return"";const oe=parseTime(r);if(!oe)return"";const ie={hours:V.hours,minutes:V.minutes};return ie.minutes+=oe.minutes,ie.hours+=oe.hours,ie.hours+=Math.floor(ie.minutes/60),ie.minutes=ie.minutes%60,formatTime$1(ie)},__default__$h=defineComponent({name:"ElTimeSelect"}),_sfc_main$o=defineComponent({...__default__$h,props:timeSelectProps,emits:["change","blur","focus","update:modelValue"],setup(t,{expose:r}){const V=t;dayjs.extend(customParseFormat);const{Option:oe}=ElSelect,ie=useNamespace("input"),le=ref(),ue=useFormDisabled(),de=computed(()=>V.modelValue),pe=computed(()=>{const qe=parseTime(V.start);return qe?formatTime$1(qe):null}),he=computed(()=>{const qe=parseTime(V.end);return qe?formatTime$1(qe):null}),_e=computed(()=>{const qe=parseTime(V.step);return qe?formatTime$1(qe):null}),$e=computed(()=>{const qe=parseTime(V.minTime||"");return qe?formatTime$1(qe):null}),Ie=computed(()=>{const qe=parseTime(V.maxTime||"");return qe?formatTime$1(qe):null}),Ve=computed(()=>{const qe=[];if(V.start&&V.end&&V.step){let Et=pe.value,At;for(;Et&&he.value&&compareTime(Et,he.value)<=0;)At=dayjs(Et,"HH:mm").format(V.format),qe.push({value:At,disabled:compareTime(Et,$e.value||"-1:-1")<=0||compareTime(Et,Ie.value||"100:100")>=0}),Et=nextTime(Et,_e.value)}return qe});return r({blur:()=>{var qe,Et;(Et=(qe=le.value)==null?void 0:qe.blur)==null||Et.call(qe)},focus:()=>{var qe,Et;(Et=(qe=le.value)==null?void 0:qe.focus)==null||Et.call(qe)}}),(qe,Et)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:le,"model-value":unref(de),disabled:unref(ue),clearable:qe.clearable,"clear-icon":qe.clearIcon,size:qe.size,effect:qe.effect,placeholder:qe.placeholder,"default-first-option":"",filterable:qe.editable,"onUpdate:modelValue":Et[0]||(Et[0]=At=>qe.$emit("update:modelValue",At)),onChange:Et[1]||(Et[1]=At=>qe.$emit("change",At)),onBlur:Et[2]||(Et[2]=At=>qe.$emit("blur",At)),onFocus:Et[3]||(Et[3]=At=>qe.$emit("focus",At))},{prefix:withCtx(()=>[qe.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(qe.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ve),At=>(openBlock(),createBlock(unref(oe),{key:At.value,label:At.value,value:At.value,disabled:At.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var TimeSelect=_export_sfc$1(_sfc_main$o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);TimeSelect.install=t=>{t.component(TimeSelect.name,TimeSelect)};const _TimeSelect=TimeSelect,ElTimeSelect=_TimeSelect,Timeline=defineComponent({name:"ElTimeline",setup(t,{slots:r}){const V=useNamespace("timeline");return provide("timeline",r),()=>h$2("ul",{class:[V.b()]},[renderSlot(r,"default")])}}),timelineItemProps=buildProps({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:iconPropType},hollow:{type:Boolean,default:!1}}),__default__$g=defineComponent({name:"ElTimelineItem"}),_sfc_main$n=defineComponent({...__default__$g,props:timelineItemProps,setup(t){const r=t,V=useNamespace("timeline-item"),oe=computed(()=>[V.e("node"),V.em("node",r.size||""),V.em("node",r.type||""),V.is("hollow",r.hollow)]);return(ie,le)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(V).b(),{[unref(V).e("center")]:ie.center}])},[createBaseVNode("div",{class:normalizeClass(unref(V).e("tail"))},null,2),ie.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe)),style:normalizeStyle$1({backgroundColor:ie.color})},[ie.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(V).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ie.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),ie.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(V).e("dot"))},[renderSlot(ie.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(V).e("wrapper"))},[!ie.hideTimestamp&&ie.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(V).e("timestamp"),unref(V).is("top")])},toDisplayString$1(ie.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(V).e("content"))},[renderSlot(ie.$slots,"default")],2),!ie.hideTimestamp&&ie.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(V).e("timestamp"),unref(V).is("bottom")])},toDisplayString$1(ie.timestamp),3)):createCommentVNode("v-if",!0)],2)],2))}});var TimelineItem=_export_sfc$1(_sfc_main$n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ElTimeline=withInstall(Timeline,{TimelineItem}),ElTimelineItem=withNoopInstall(TimelineItem),tooltipV2CommonProps=buildProps({nowrap:Boolean});var TooltipV2Sides=(t=>(t.top="top",t.bottom="bottom",t.left="left",t.right="right",t))(TooltipV2Sides||{});const tooltipV2Sides=Object.values(TooltipV2Sides),tooltipV2ArrowProps=buildProps({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:definePropType(Object),default:null}}),tooltipV2ArrowSpecialProps=buildProps({side:{type:definePropType(String),values:tooltipV2Sides,required:!0}}),tooltipV2Strategies=["absolute","fixed"],tooltipV2Placements=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tooltipV2ContentProps=buildProps({ariaLabel:String,arrowPadding:{type:definePropType(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:definePropType(String),values:tooltipV2Placements,default:"bottom"},reference:{type:definePropType(Object),default:null},offset:{type:Number,default:8},strategy:{type:definePropType(String),values:tooltipV2Strategies,default:"absolute"},showArrow:{type:Boolean,default:!1}}),tooltipV2RootProps=buildProps({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:definePropType(Function)},"onUpdate:open":{type:definePropType(Function)}}),EventHandler={type:definePropType(Function)},tooltipV2TriggerProps=buildProps({onBlur:EventHandler,onClick:EventHandler,onFocus:EventHandler,onMouseDown:EventHandler,onMouseEnter:EventHandler,onMouseLeave:EventHandler}),tooltipV2Props=buildProps({...tooltipV2RootProps,...tooltipV2ArrowProps,...tooltipV2TriggerProps,...tooltipV2ContentProps,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:definePropType(Object),default:null},teleported:Boolean,to:{type:definePropType(String),default:"body"}}),tooltipV2RootKey=Symbol("tooltipV2"),tooltipV2ContentKey=Symbol("tooltipV2Content"),TOOLTIP_V2_OPEN="tooltip_v2.open",__default__$f=defineComponent({name:"ElTooltipV2Root"}),_sfc_main$m=defineComponent({...__default__$f,props:tooltipV2RootProps,setup(t,{expose:r}){const V=t,oe=ref(V.defaultOpen),ie=ref(null),le=computed({get:()=>isPropAbsent(V.open)?oe.value:V.open,set:qe=>{var Et;oe.value=qe,(Et=V["onUpdate:open"])==null||Et.call(V,qe)}}),ue=computed(()=>isNumber$4(V.delayDuration)&&V.delayDuration>0),{start:de,stop:pe}=useTimeoutFn$1(()=>{le.value=!0},computed(()=>V.delayDuration),{immediate:!1}),he=useNamespace("tooltip-v2"),_e=useId(),$e=()=>{pe(),le.value=!0},Ie=()=>{unref(ue)?de():$e()},Ve=$e,Fe=()=>{pe(),le.value=!1};return watch(le,qe=>{var Et;qe&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),Ve()),(Et=V.onOpenChange)==null||Et.call(V,qe)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,Fe)}),onBeforeUnmount(()=>{pe(),document.removeEventListener(TOOLTIP_V2_OPEN,Fe)}),provide(tooltipV2RootKey,{contentId:_e,triggerRef:ie,ns:he,onClose:Fe,onDelayOpen:Ie,onOpen:Ve}),r({onOpen:Ve,onClose:Fe}),(qe,Et)=>renderSlot(qe.$slots,"default",{open:unref(le)})}});var TooltipV2Root=_export_sfc$1(_sfc_main$m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const __default__$e=defineComponent({name:"ElTooltipV2Arrow"}),_sfc_main$l=defineComponent({...__default__$e,props:{...tooltipV2ArrowProps,...tooltipV2ArrowSpecialProps},setup(t){const r=t,{ns:V}=inject(tooltipV2RootKey),{arrowRef:oe}=inject(tooltipV2ContentKey),ie=computed(()=>{const{style:le,width:ue,height:de}=r,pe=V.namespace.value;return{[`--${pe}-tooltip-v2-arrow-width`]:`${ue}px`,[`--${pe}-tooltip-v2-arrow-height`]:`${de}px`,[`--${pe}-tooltip-v2-arrow-border-width`]:`${ue/2}px`,[`--${pe}-tooltip-v2-arrow-cover-width`]:ue/2-1,...le||{}}});return(le,ue)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:oe,style:normalizeStyle$1(unref(ie)),class:normalizeClass(unref(V).e("arrow"))},null,6))}});var TooltipV2Arrow=_export_sfc$1(_sfc_main$l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const visualHiddenProps=buildProps({style:{type:definePropType([String,Object,Array]),default:()=>({})}}),__default__$d=defineComponent({name:"ElVisuallyHidden"}),_sfc_main$k=defineComponent({...__default__$d,props:visualHiddenProps,setup(t){const r=t,V=computed(()=>[r.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(oe,ie)=>(openBlock(),createElementBlock("span",mergeProps(oe.$attrs,{style:unref(V)}),[renderSlot(oe.$slots,"default")],16))}});var ElVisuallyHidden=_export_sfc$1(_sfc_main$k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const _hoisted_1$b=["data-side"],__default__$c=defineComponent({name:"ElTooltipV2Content"}),_sfc_main$j=defineComponent({...__default__$c,props:{...tooltipV2ContentProps,...tooltipV2CommonProps},setup(t){const r=t,{triggerRef:V,contentId:oe}=inject(tooltipV2RootKey),ie=ref(r.placement),le=ref(r.strategy),ue=ref(null),{referenceRef:de,contentRef:pe,middlewareData:he,x:_e,y:$e,update:Ie}=useFloating({placement:ie,strategy:le,middleware:computed(()=>{const Lt=[offset(r.offset)];return r.showArrow&&Lt.push(arrowMiddleware({arrowRef:ue})),Lt})}),Ve=useZIndex().nextZIndex(),Fe=useNamespace("tooltip-v2"),Ue=computed(()=>ie.value.split("-")[0]),qe=computed(()=>({position:unref(le),top:`${unref($e)||0}px`,left:`${unref(_e)||0}px`,zIndex:Ve})),Et=computed(()=>{if(!r.showArrow)return{};const{arrow:Lt}=unref(he);return{[`--${Fe.namespace.value}-tooltip-v2-arrow-x`]:`${Lt==null?void 0:Lt.x}px`||"",[`--${Fe.namespace.value}-tooltip-v2-arrow-y`]:`${Lt==null?void 0:Lt.y}px`||""}}),At=computed(()=>[Fe.e("content"),Fe.is("dark",r.effect==="dark"),Fe.is(unref(le)),r.contentClass]);return watch(ue,()=>Ie()),watch(()=>r.placement,Lt=>ie.value=Lt),onMounted(()=>{watch(()=>r.reference||V.value,Lt=>{de.value=Lt||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:ue}),(Lt,hn)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:pe,style:normalizeStyle$1(unref(qe)),"data-tooltip-v2-root":""},[Lt.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(Ue),class:normalizeClass(unref(At))},[renderSlot(Lt.$slots,"default",{contentStyle:unref(qe),contentClass:unref(At)}),createVNode(unref(ElVisuallyHidden),{id:unref(oe),role:"tooltip"},{default:withCtx(()=>[Lt.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(Lt.ariaLabel),1)],64)):renderSlot(Lt.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(Lt.$slots,"arrow",{style:normalizeStyle$1(unref(Et)),side:unref(Ue)})],10,_hoisted_1$b))],4))}});var TooltipV2Content=_export_sfc$1(_sfc_main$j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const forwardRefProps=buildProps({setRef:{type:definePropType(Function),required:!0},onlyChild:Boolean});var ForwardRef=defineComponent({props:forwardRefProps,setup(t,{slots:r}){const V=ref(),oe=composeRefs(V,ie=>{ie?t.setRef(ie.nextElementSibling):t.setRef(null)});return()=>{var ie;const[le]=((ie=r.default)==null?void 0:ie.call(r))||[],ue=t.onlyChild?ensureOnlyChild(le.children):le.children;return createVNode(Fragment,{ref:oe},[ue])}}});const __default__$b=defineComponent({name:"ElTooltipV2Trigger"}),_sfc_main$i=defineComponent({...__default__$b,props:{...tooltipV2CommonProps,...tooltipV2TriggerProps},setup(t){const r=t,{onClose:V,onOpen:oe,onDelayOpen:ie,triggerRef:le,contentId:ue}=inject(tooltipV2RootKey);let de=!1;const pe=At=>{le.value=At},he=()=>{de=!1},_e=composeEventHandlers(r.onMouseEnter,ie),$e=composeEventHandlers(r.onMouseLeave,V),Ie=composeEventHandlers(r.onMouseDown,()=>{V(),de=!0,document.addEventListener("mouseup",he,{once:!0})}),Ve=composeEventHandlers(r.onFocus,()=>{de||oe()}),Fe=composeEventHandlers(r.onBlur,V),Ue=composeEventHandlers(r.onClick,At=>{At.detail===0&&V()}),qe={blur:Fe,click:Ue,focus:Ve,mousedown:Ie,mouseenter:_e,mouseleave:$e},Et=(At,Lt,hn)=>{At&&Object.entries(Lt).forEach(([_n,vn])=>{At[hn](_n,vn)})};return watch(le,(At,Lt)=>{Et(At,qe,"addEventListener"),Et(Lt,qe,"removeEventListener"),At&&At.setAttribute("aria-describedby",ue.value)}),onBeforeUnmount(()=>{Et(le.value,qe,"removeEventListener"),document.removeEventListener("mouseup",he)}),(At,Lt)=>At.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":pe,"only-child":""},{default:withCtx(()=>[renderSlot(At.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:le},At.$attrs),[renderSlot(At.$slots,"default")],16))}});var TooltipV2Trigger=_export_sfc$1(_sfc_main$i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const __default__$a=defineComponent({name:"ElTooltipV2"}),_sfc_main$h=defineComponent({...__default__$a,props:tooltipV2Props,setup(t){const V=toRefs(t),oe=reactive(pick$1(V,Object.keys(tooltipV2ArrowProps))),ie=reactive(pick$1(V,Object.keys(tooltipV2ContentProps))),le=reactive(pick$1(V,Object.keys(tooltipV2RootProps))),ue=reactive(pick$1(V,Object.keys(tooltipV2TriggerProps)));return(de,pe)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(le)),{default:withCtx(({open:he})=>[createVNode(TooltipV2Trigger,mergeProps(ue,{nowrap:""}),{default:withCtx(()=>[renderSlot(de.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:de.to,disabled:!de.teleported},[de.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},de.transitionProps)),{default:withCtx(()=>[de.alwaysOn||he?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},ie)),{arrow:withCtx(({style:_e,side:$e})=>[de.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},oe,{style:_e,side:$e}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(de.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[de.alwaysOn||he?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},ie)),{arrow:withCtx(({style:_e,side:$e})=>[de.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},oe,{style:_e,side:$e}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(de.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var TooltipV2=_export_sfc$1(_sfc_main$h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const ElTooltipV2=withInstall(TooltipV2),LEFT_CHECK_CHANGE_EVENT="left-check-change",RIGHT_CHECK_CHANGE_EVENT="right-check-change",transferProps=buildProps({data:{type:definePropType(Array),default:()=>[]},titles:{type:definePropType(Array),default:()=>[]},buttonTexts:{type:definePropType(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:definePropType(Function)},leftDefaultChecked:{type:definePropType(Array),default:()=>[]},rightDefaultChecked:{type:definePropType(Array),default:()=>[]},renderContent:{type:definePropType(Function)},modelValue:{type:definePropType(Array),default:()=>[]},format:{type:definePropType(Object),default:()=>({})},filterable:Boolean,props:{type:definePropType(Object),default:()=>mutable({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),transferCheckedChangeFn=(t,r)=>[t,r].every(isArray$c)||isArray$c(t)&&isNil(r),transferEmits={[CHANGE_EVENT]:(t,r,V)=>[t,V].every(isArray$c)&&["left","right"].includes(r),[UPDATE_MODEL_EVENT]:t=>isArray$c(t),[LEFT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn,[RIGHT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn},CHECKED_CHANGE_EVENT="checked-change",transferPanelProps=buildProps({data:transferProps.data,optionRender:{type:definePropType(Function)},placeholder:String,title:String,filterable:Boolean,format:transferProps.format,filterMethod:transferProps.filterMethod,defaultChecked:transferProps.leftDefaultChecked,props:transferProps.props}),transferPanelEmits={[CHECKED_CHANGE_EVENT]:transferCheckedChangeFn},usePropsAlias=t=>{const r={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...r,...t.props}))},useCheck$1=(t,r,V)=>{const oe=usePropsAlias(t),ie=computed(()=>t.data.filter(_e=>isFunction$5(t.filterMethod)?t.filterMethod(r.query,_e):String(_e[oe.value.label]||_e[oe.value.key]).toLowerCase().includes(r.query.toLowerCase()))),le=computed(()=>ie.value.filter(_e=>!_e[oe.value.disabled])),ue=computed(()=>{const _e=r.checked.length,$e=t.data.length,{noChecked:Ie,hasChecked:Ve}=t.format;return Ie&&Ve?_e>0?Ve.replace(/\${checked}/g,_e.toString()).replace(/\${total}/g,$e.toString()):Ie.replace(/\${total}/g,$e.toString()):`${_e}/${$e}`}),de=computed(()=>{const _e=r.checked.length;return _e>0&&_e{const _e=le.value.map($e=>$e[oe.value.key]);r.allChecked=_e.length>0&&_e.every($e=>r.checked.includes($e))},he=_e=>{r.checked=_e?le.value.map($e=>$e[oe.value.key]):[]};return watch(()=>r.checked,(_e,$e)=>{if(pe(),r.checkChangeByUser){const Ie=_e.concat($e).filter(Ve=>!_e.includes(Ve)||!$e.includes(Ve));V(CHECKED_CHANGE_EVENT,_e,Ie)}else V(CHECKED_CHANGE_EVENT,_e),r.checkChangeByUser=!0}),watch(le,()=>{pe()}),watch(()=>t.data,()=>{const _e=[],$e=ie.value.map(Ie=>Ie[oe.value.key]);r.checked.forEach(Ie=>{$e.includes(Ie)&&_e.push(Ie)}),r.checkChangeByUser=!1,r.checked=_e}),watch(()=>t.defaultChecked,(_e,$e)=>{if($e&&_e.length===$e.length&&_e.every(Fe=>$e.includes(Fe)))return;const Ie=[],Ve=le.value.map(Fe=>Fe[oe.value.key]);_e.forEach(Fe=>{Ve.includes(Fe)&&Ie.push(Fe)}),r.checkChangeByUser=!1,r.checked=Ie},{immediate:!0}),{filteredData:ie,checkableData:le,checkedSummary:ue,isIndeterminate:de,updateAllChecked:pe,handleAllCheckedChange:he}},useCheckedChange=(t,r)=>({onSourceCheckedChange:(ie,le)=>{t.leftChecked=ie,le&&r(LEFT_CHECK_CHANGE_EVENT,ie,le)},onTargetCheckedChange:(ie,le)=>{t.rightChecked=ie,le&&r(RIGHT_CHECK_CHANGE_EVENT,ie,le)}}),useComputedData=t=>{const r=usePropsAlias(t),V=computed(()=>t.data.reduce((le,ue)=>(le[ue[r.value.key]]=ue)&&le,{})),oe=computed(()=>t.data.filter(le=>!t.modelValue.includes(le[r.value.key]))),ie=computed(()=>t.targetOrder==="original"?t.data.filter(le=>t.modelValue.includes(le[r.value.key])):t.modelValue.reduce((le,ue)=>{const de=V.value[ue];return de&&le.push(de),le},[]));return{sourceData:oe,targetData:ie}},useMove=(t,r,V)=>{const oe=usePropsAlias(t),ie=(de,pe,he)=>{V(UPDATE_MODEL_EVENT,de),V(CHANGE_EVENT,de,pe,he)};return{addToLeft:()=>{const de=t.modelValue.slice();r.rightChecked.forEach(pe=>{const he=de.indexOf(pe);he>-1&&de.splice(he,1)}),ie(de,"left",r.rightChecked)},addToRight:()=>{let de=t.modelValue.slice();const pe=t.data.filter(he=>{const _e=he[oe.value.key];return r.leftChecked.includes(_e)&&!t.modelValue.includes(_e)}).map(he=>he[oe.value.key]);de=t.targetOrder==="unshift"?pe.concat(de):de.concat(pe),t.targetOrder==="original"&&(de=t.data.filter(he=>de.includes(he[oe.value.key])).map(he=>he[oe.value.key])),ie(de,"right",r.leftChecked)}}},__default__$9=defineComponent({name:"ElTransferPanel"}),_sfc_main$g=defineComponent({...__default__$9,props:transferPanelProps,emits:transferPanelEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useSlots(),le=({option:Lt})=>Lt,{t:ue}=useLocale(),de=useNamespace("transfer"),pe=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),he=usePropsAlias(oe),{filteredData:_e,checkedSummary:$e,isIndeterminate:Ie,handleAllCheckedChange:Ve}=useCheck$1(oe,pe,V),Fe=computed(()=>!isEmpty(pe.query)&&isEmpty(_e.value)),Ue=computed(()=>!isEmpty(ie.default()[0].children)),{checked:qe,allChecked:Et,query:At}=toRefs(pe);return r({query:At}),(Lt,hn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(de).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(de).be("panel","header"))},[createVNode(unref(ElCheckbox),{modelValue:unref(Et),"onUpdate:modelValue":hn[0]||(hn[0]=_n=>isRef(Et)?Et.value=_n:null),indeterminate:unref(Ie),"validate-event":!1,onChange:unref(Ve)},{default:withCtx(()=>[createTextVNode(toDisplayString$1(Lt.title)+" ",1),createBaseVNode("span",null,toDisplayString$1(unref($e)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(de).be("panel","body"),unref(de).is("with-footer",unref(Ue))])},[Lt.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(At),"onUpdate:modelValue":hn[1]||(hn[1]=_n=>isRef(At)?At.value=_n:null),class:normalizeClass(unref(de).be("panel","filter")),size:"default",placeholder:Lt.placeholder,"prefix-icon":unref(search_default),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):createCommentVNode("v-if",!0),withDirectives(createVNode(unref(ElCheckboxGroup$1),{modelValue:unref(qe),"onUpdate:modelValue":hn[2]||(hn[2]=_n=>isRef(qe)?qe.value=_n:null),"validate-event":!1,class:normalizeClass([unref(de).is("filterable",Lt.filterable),unref(de).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),_n=>(openBlock(),createBlock(unref(ElCheckbox),{key:_n[unref(he).key],class:normalizeClass(unref(de).be("panel","item")),label:_n[unref(he).key],disabled:_n[unref(he).disabled],"validate-event":!1},{default:withCtx(()=>{var vn;return[createVNode(le,{option:(vn=Lt.optionRender)==null?void 0:vn.call(Lt,_n)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!unref(Fe)&&!unref(isEmpty)(Lt.data)]]),withDirectives(createBaseVNode("p",{class:normalizeClass(unref(de).be("panel","empty"))},toDisplayString$1(unref(Fe)?unref(ue)("el.transfer.noMatch"):unref(ue)("el.transfer.noData")),3),[[vShow,unref(Fe)||unref(isEmpty)(Lt.data)]])],2),unref(Ue)?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(de).be("panel","footer"))},[renderSlot(Lt.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var TransferPanel=_export_sfc$1(_sfc_main$g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const _hoisted_1$a={key:0},_hoisted_2$8={key:0},__default__$8=defineComponent({name:"ElTransfer"}),_sfc_main$f=defineComponent({...__default__$8,props:transferProps,emits:transferEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useSlots(),{t:le}=useLocale(),ue=useNamespace("transfer"),{formItem:de}=useFormItem(),pe=reactive({leftChecked:[],rightChecked:[]}),he=usePropsAlias(oe),{sourceData:_e,targetData:$e}=useComputedData(oe),{onSourceCheckedChange:Ie,onTargetCheckedChange:Ve}=useCheckedChange(pe,V),{addToLeft:Fe,addToRight:Ue}=useMove(oe,pe,V),qe=ref(),Et=ref(),At=Cn=>{switch(Cn){case"left":qe.value.query="";break;case"right":Et.value.query="";break}},Lt=computed(()=>oe.buttonTexts.length===2),hn=computed(()=>oe.titles[0]||le("el.transfer.titles.0")),_n=computed(()=>oe.titles[1]||le("el.transfer.titles.1")),vn=computed(()=>oe.filterPlaceholder||le("el.transfer.filterPlaceholder"));watch(()=>oe.modelValue,()=>{var Cn;oe.validateEvent&&((Cn=de==null?void 0:de.validate)==null||Cn.call(de,"change").catch(Sn=>void 0))});const bn=computed(()=>Cn=>oe.renderContent?oe.renderContent(h$2,Cn):ie.default?ie.default({option:Cn}):h$2("span",Cn[he.value.label]||Cn[he.value.key]));return r({clearQuery:At,leftPanel:qe,rightPanel:Et}),(Cn,Sn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue).b())},[createVNode(TransferPanel,{ref_key:"leftPanel",ref:qe,data:unref(_e),"option-render":unref(bn),placeholder:unref(vn),title:unref(hn),filterable:Cn.filterable,format:Cn.format,"filter-method":Cn.filterMethod,"default-checked":Cn.leftDefaultChecked,props:oe.props,onCheckedChange:unref(Ie)},{default:withCtx(()=>[renderSlot(Cn.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(ue).e("buttons"))},[createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(ue).e("button"),unref(ue).is("with-texts",unref(Lt))]),disabled:unref(isEmpty)(pe.rightChecked),onClick:unref(Fe)},{default:withCtx(()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(Cn.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$a,toDisplayString$1(Cn.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(ue).e("button"),unref(ue).is("with-texts",unref(Lt))]),disabled:unref(isEmpty)(pe.leftChecked),onClick:unref(Ue)},{default:withCtx(()=>[unref(isUndefined$1)(Cn.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$8,toDisplayString$1(Cn.buttonTexts[1]),1)),createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),createVNode(TransferPanel,{ref_key:"rightPanel",ref:Et,data:unref($e),"option-render":unref(bn),placeholder:unref(vn),filterable:Cn.filterable,format:Cn.format,"filter-method":Cn.filterMethod,title:unref(_n),"default-checked":Cn.rightDefaultChecked,props:oe.props,onCheckedChange:unref(Ve)},{default:withCtx(()=>[renderSlot(Cn.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Transfer=_export_sfc$1(_sfc_main$f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ElTransfer=withInstall(Transfer),NODE_KEY="$treeNodeId",markNodeData=function(t,r){!r||r[NODE_KEY]||Object.defineProperty(r,NODE_KEY,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=function(t,r){return t?r[t]:r[NODE_KEY]},handleCurrentChange=(t,r,V)=>{const oe=t.value.currentNode;V();const ie=t.value.currentNode;oe!==ie&&r("current-change",ie?ie.data:null,ie)},getChildState=t=>{let r=!0,V=!0,oe=!0;for(let ie=0,le=t.length;ie"u"){const le=oe[r];return le===void 0?"":le}};let nodeIdSeed=0,Node$1=class go{constructor(r){this.id=nodeIdSeed++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const V in r)hasOwn$4(r,V)&&(this[V]=r[V]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);const V=r.props;if(V&&typeof V.isLeaf<"u"){const le=getPropertyFromData(this,"isLeaf");typeof le=="boolean"&&(this.isLeafByUser=le)}if(r.lazy!==!0&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||markNodeData(this,this.data),!this.data)return;const oe=r.defaultExpandedKeys,ie=r.key;ie&&oe&&oe.includes(this.key)&&this.expand(null,r.autoExpandParent),ie&&r.currentNodeKey!==void 0&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(r){Array.isArray(r)||markNodeData(this,r),this.data=r,this.childNodes=[];let V;this.level===0&&Array.isArray(this.data)?V=this.data:V=getPropertyFromData(this,"children")||[];for(let oe=0,ie=V.length;oe-1)return r.childNodes[V+1]}return null}get previousSibling(){const r=this.parent;if(r){const V=r.childNodes.indexOf(this);if(V>-1)return V>0?r.childNodes[V-1]:null}return null}contains(r,V=!0){return(this.childNodes||[]).some(oe=>oe===r||V&&oe.contains(r))}remove(){const r=this.parent;r&&r.removeChild(this)}insertChild(r,V,oe){if(!r)throw new Error("InsertChild error: child is required.");if(!(r instanceof go)){if(!oe){const ie=this.getChildren(!0);ie.includes(r.data)||(typeof V>"u"||V<0?ie.push(r.data):ie.splice(V,0,r.data))}Object.assign(r,{parent:this,store:this.store}),r=reactive(new go(r)),r instanceof go&&r.initialize()}r.level=this.level+1,typeof V>"u"||V<0?this.childNodes.push(r):this.childNodes.splice(V,0,r),this.updateLeafState()}insertBefore(r,V){let oe;V&&(oe=this.childNodes.indexOf(V)),this.insertChild(r,oe)}insertAfter(r,V){let oe;V&&(oe=this.childNodes.indexOf(V),oe!==-1&&(oe+=1)),this.insertChild(r,oe)}removeChild(r){const V=this.getChildren()||[],oe=V.indexOf(r.data);oe>-1&&V.splice(oe,1);const ie=this.childNodes.indexOf(r);ie>-1&&(this.store&&this.store.deregisterNode(r),r.parent=null,this.childNodes.splice(ie,1)),this.updateLeafState()}removeChildByData(r){let V=null;for(let oe=0;oe{if(V){let ie=this.parent;for(;ie.level>0;)ie.expanded=!0,ie=ie.parent}this.expanded=!0,r&&r(),this.childNodes.forEach(ie=>{ie.canFocus=!0})};this.shouldLoadData()?this.loadData(ie=>{Array.isArray(ie)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),oe())}):oe()}doCreateChildren(r,V={}){r.forEach(oe=>{this.insertChild(Object.assign({data:oe},V),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(r=>{r.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const r=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!r||r.length===0;return}this.isLeaf=!1}setChecked(r,V,oe,ie){if(this.indeterminate=r==="half",this.checked=r===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:ue,allWithoutDisable:de}=getChildState(this.childNodes);!this.isLeaf&&!ue&&de&&(this.checked=!1,r=!1);const pe=()=>{if(V){const he=this.childNodes;for(let Ie=0,Ve=he.length;Ie{pe(),reInitChecked(this)},{checked:r!==!1});return}else pe()}const le=this.parent;!le||le.level===0||oe||reInitChecked(le)}getChildren(r=!1){if(this.level===0)return this.data;const V=this.data;if(!V)return null;const oe=this.store.props;let ie="children";return oe&&(ie=oe.children||"children"),V[ie]===void 0&&(V[ie]=null),r&&!V[ie]&&(V[ie]=[]),V[ie]}updateChildren(){const r=this.getChildren()||[],V=this.childNodes.map(le=>le.data),oe={},ie=[];r.forEach((le,ue)=>{const de=le[NODE_KEY];!!de&&V.findIndex(he=>he[NODE_KEY]===de)>=0?oe[de]={index:ue,data:le}:ie.push({index:ue,data:le})}),this.store.lazy||V.forEach(le=>{oe[le[NODE_KEY]]||this.removeChildByData(le)}),ie.forEach(({index:le,data:ue})=>{this.insertChild({data:ue},le)}),this.updateLeafState()}loadData(r,V={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(V).length)){this.loading=!0;const oe=ie=>{this.childNodes=[],this.doCreateChildren(ie,V),this.loaded=!0,this.loading=!1,this.updateLeafState(),r&&r.call(this,ie)};this.store.load(this,oe)}else r&&r.call(this)}};class TreeStore{constructor(r){this.currentNode=null,this.currentNodeKey=null;for(const V in r)hasOwn$4(r,V)&&(this[V]=r[V]);this.nodesMap={}}initialize(){if(this.root=new Node$1({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const r=this.load;r(this.root,V=>{this.root.doCreateChildren(V),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(r){const V=this.filterNodeMethod,oe=this.lazy,ie=function(le){const ue=le.root?le.root.childNodes:le.childNodes;if(ue.forEach(de=>{de.visible=V.call(de,r,de.data,de),ie(de)}),!le.visible&&ue.length){let de=!0;de=!ue.some(pe=>pe.visible),le.root?le.root.visible=de===!1:le.visible=de===!1}r&&le.visible&&!le.isLeaf&&!oe&&le.expand()};ie(this)}setData(r){r!==this.root.data?(this.root.setData(r),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(r){if(r instanceof Node$1)return r;const V=isObject$9(r)?getNodeKey(this.key,r):r;return this.nodesMap[V]||null}insertBefore(r,V){const oe=this.getNode(V);oe.parent.insertBefore({data:r},oe)}insertAfter(r,V){const oe=this.getNode(V);oe.parent.insertAfter({data:r},oe)}remove(r){const V=this.getNode(r);V&&V.parent&&(V===this.currentNode&&(this.currentNode=null),V.parent.removeChild(V))}append(r,V){const oe=V?this.getNode(V):this.root;oe&&oe.insertChild({data:r})}_initDefaultCheckedNodes(){const r=this.defaultCheckedKeys||[],V=this.nodesMap;r.forEach(oe=>{const ie=V[oe];ie&&ie.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(r){(this.defaultCheckedKeys||[]).includes(r.key)&&r.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(r){r!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=r,this._initDefaultCheckedNodes())}registerNode(r){const V=this.key;!r||!r.data||(V?r.key!==void 0&&(this.nodesMap[r.key]=r):this.nodesMap[r.id]=r)}deregisterNode(r){!this.key||!r||!r.data||(r.childNodes.forEach(oe=>{this.deregisterNode(oe)}),delete this.nodesMap[r.key])}getCheckedNodes(r=!1,V=!1){const oe=[],ie=function(le){(le.root?le.root.childNodes:le.childNodes).forEach(de=>{(de.checked||V&&de.indeterminate)&&(!r||r&&de.isLeaf)&&oe.push(de.data),ie(de)})};return ie(this),oe}getCheckedKeys(r=!1){return this.getCheckedNodes(r).map(V=>(V||{})[this.key])}getHalfCheckedNodes(){const r=[],V=function(oe){(oe.root?oe.root.childNodes:oe.childNodes).forEach(le=>{le.indeterminate&&r.push(le.data),V(le)})};return V(this),r}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(r=>(r||{})[this.key])}_getAllNodes(){const r=[],V=this.nodesMap;for(const oe in V)hasOwn$4(V,oe)&&r.push(V[oe]);return r}updateChildren(r,V){const oe=this.nodesMap[r];if(!oe)return;const ie=oe.childNodes;for(let le=ie.length-1;le>=0;le--){const ue=ie[le];this.remove(ue.data)}for(let le=0,ue=V.length;lepe.level-de.level),le=Object.create(null),ue=Object.keys(oe);ie.forEach(de=>de.setChecked(!1,!1));for(let de=0,pe=ie.length;de0;)le[Ie.data[r]]=!0,Ie=Ie.parent;if(he.isLeaf||this.checkStrictly){he.setChecked(!0,!1);continue}if(he.setChecked(!0,!0),V){he.setChecked(!1,!1);const Ve=function(Fe){Fe.childNodes.forEach(qe=>{qe.isLeaf||qe.setChecked(!1,!1),Ve(qe)})};Ve(he)}}}setCheckedNodes(r,V=!1){const oe=this.key,ie={};r.forEach(le=>{ie[(le||{})[oe]]=!0}),this._setCheckedKeys(oe,V,ie)}setCheckedKeys(r,V=!1){this.defaultCheckedKeys=r;const oe=this.key,ie={};r.forEach(le=>{ie[le]=!0}),this._setCheckedKeys(oe,V,ie)}setDefaultExpandedKeys(r){r=r||[],this.defaultExpandedKeys=r,r.forEach(V=>{const oe=this.getNode(V);oe&&oe.expand(null,this.autoExpandParent)})}setChecked(r,V,oe){const ie=this.getNode(r);ie&&ie.setChecked(!!V,oe)}getCurrentNode(){return this.currentNode}setCurrentNode(r){const V=this.currentNode;V&&(V.isCurrent=!1),this.currentNode=r,this.currentNode.isCurrent=!0}setUserCurrentNode(r,V=!0){const oe=r[this.key],ie=this.nodesMap[oe];this.setCurrentNode(ie),V&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(r,V=!0){if(r==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const oe=this.getNode(r);oe&&(this.setCurrentNode(oe),V&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const _sfc_main$e=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const r=useNamespace("tree"),V=inject("NodeInstance"),oe=inject("RootTree");return()=>{const ie=t.node,{data:le,store:ue}=ie;return t.renderContent?t.renderContent(h$2,{_self:V,node:ie,data:le,store:ue}):oe.ctx.slots.default?oe.ctx.slots.default({node:ie,data:le}):h$2("span",{class:r.be("node","label")},[ie.label])}}});var NodeContent=_export_sfc$1(_sfc_main$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast(t){const r=inject("TreeNodeMap",null),V={treeNodeExpand:oe=>{t.node!==oe&&t.node.collapse()},children:[]};return r&&r.children.push(V),provide("TreeNodeMap",V),{broadcastExpanded:oe=>{if(t.accordion)for(const ie of V.children)ie.treeNodeExpand(oe)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:t,ctx:r,el$:V,dropIndicator$:oe,store:ie}){const le=useNamespace("tree"),ue=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:_e,treeNode:$e})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag($e.node))return _e.preventDefault(),!1;_e.dataTransfer.effectAllowed="move";try{_e.dataTransfer.setData("text/plain","")}catch{}ue.value.draggingNode=$e,r.emit("node-drag-start",$e.node,_e)},treeNodeDragOver:({event:_e,treeNode:$e})=>{const Ie=$e,Ve=ue.value.dropNode;Ve&&Ve.node.id!==Ie.node.id&&removeClass(Ve.$el,le.is("drop-inner"));const Fe=ue.value.draggingNode;if(!Fe||!Ie)return;let Ue=!0,qe=!0,Et=!0,At=!0;typeof t.allowDrop=="function"&&(Ue=t.allowDrop(Fe.node,Ie.node,"prev"),At=qe=t.allowDrop(Fe.node,Ie.node,"inner"),Et=t.allowDrop(Fe.node,Ie.node,"next")),_e.dataTransfer.dropEffect=qe||Ue||Et?"move":"none",(Ue||qe||Et)&&(Ve==null?void 0:Ve.node.id)!==Ie.node.id&&(Ve&&r.emit("node-drag-leave",Fe.node,Ve.node,_e),r.emit("node-drag-enter",Fe.node,Ie.node,_e)),(Ue||qe||Et)&&(ue.value.dropNode=Ie),Ie.node.nextSibling===Fe.node&&(Et=!1),Ie.node.previousSibling===Fe.node&&(Ue=!1),Ie.node.contains(Fe.node,!1)&&(qe=!1),(Fe.node===Ie.node||Fe.node.contains(Ie.node))&&(Ue=!1,qe=!1,Et=!1);const Lt=Ie.$el.querySelector(`.${le.be("node","content")}`).getBoundingClientRect(),hn=V.value.getBoundingClientRect();let _n;const vn=Ue?qe?.25:Et?.45:1:-1,bn=Et?qe?.75:Ue?.55:0:1;let Cn=-9999;const Sn=_e.clientY-Lt.top;SnLt.height*bn?_n="after":qe?_n="inner":_n="none";const wn=Ie.$el.querySelector(`.${le.be("node","expand-icon")}`).getBoundingClientRect(),En=oe.value;_n==="before"?Cn=wn.top-hn.top:_n==="after"&&(Cn=wn.bottom-hn.top),En.style.top=`${Cn}px`,En.style.left=`${wn.right-hn.left}px`,_n==="inner"?addClass(Ie.$el,le.is("drop-inner")):removeClass(Ie.$el,le.is("drop-inner")),ue.value.showDropIndicator=_n==="before"||_n==="after",ue.value.allowDrop=ue.value.showDropIndicator||At,ue.value.dropType=_n,r.emit("node-drag-over",Fe.node,Ie.node,_e)},treeNodeDragEnd:_e=>{const{draggingNode:$e,dropType:Ie,dropNode:Ve}=ue.value;if(_e.preventDefault(),_e.dataTransfer.dropEffect="move",$e&&Ve){const Fe={data:$e.node.data};Ie!=="none"&&$e.node.remove(),Ie==="before"?Ve.node.parent.insertBefore(Fe,Ve.node):Ie==="after"?Ve.node.parent.insertAfter(Fe,Ve.node):Ie==="inner"&&Ve.node.insertChild(Fe),Ie!=="none"&&ie.value.registerNode(Fe),removeClass(Ve.$el,le.is("drop-inner")),r.emit("node-drag-end",$e.node,Ve.node,Ie,_e),Ie!=="none"&&r.emit("node-drop",$e.node,Ve.node,Ie,_e)}$e&&!Ve&&r.emit("node-drag-end",$e.node,null,Ie,_e),ue.value.showDropIndicator=!1,ue.value.draggingNode=null,ue.value.dropNode=null,ue.value.allowDrop=!0}}),{dragState:ue}}const _sfc_main$d=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_CollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node$1,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,r){const V=useNamespace("tree"),{broadcastExpanded:oe}=useNodeExpandEventBroadcast(t),ie=inject("RootTree"),le=ref(!1),ue=ref(!1),de=ref(null),pe=ref(null),he=ref(null),_e=inject(dragEventsKey),$e=getCurrentInstance();provide("NodeInstance",$e),t.node.expanded&&(le.value=!0,ue.value=!0);const Ie=ie.props.props.children||"children";watch(()=>{const Sn=t.node.data[Ie];return Sn&&[...Sn]},()=>{t.node.updateChildren()}),watch(()=>t.node.indeterminate,Sn=>{Ue(t.node.checked,Sn)}),watch(()=>t.node.checked,Sn=>{Ue(Sn,t.node.indeterminate)}),watch(()=>t.node.expanded,Sn=>{nextTick(()=>le.value=Sn),Sn&&(ue.value=!0)});const Ve=Sn=>getNodeKey(ie.props.nodeKey,Sn.data),Fe=Sn=>{const wn=t.props.class;if(!wn)return{};let En;if(isFunction$5(wn)){const{data:xn}=Sn;En=wn(xn,Sn)}else En=wn;return isString$6(En)?{[En]:!0}:En},Ue=(Sn,wn)=>{(de.value!==Sn||pe.value!==wn)&&ie.ctx.emit("check-change",t.node.data,Sn,wn),de.value=Sn,pe.value=wn},qe=Sn=>{handleCurrentChange(ie.store,ie.ctx.emit,()=>ie.store.value.setCurrentNode(t.node)),ie.currentNode.value=t.node,ie.props.expandOnClickNode&&At(),ie.props.checkOnClickNode&&!t.node.disabled&&Lt(null,{target:{checked:!t.node.checked}}),ie.ctx.emit("node-click",t.node.data,t.node,$e,Sn)},Et=Sn=>{ie.instance.vnode.props.onNodeContextmenu&&(Sn.stopPropagation(),Sn.preventDefault()),ie.ctx.emit("node-contextmenu",Sn,t.node.data,t.node,$e)},At=()=>{t.node.isLeaf||(le.value?(ie.ctx.emit("node-collapse",t.node.data,t.node,$e),t.node.collapse()):(t.node.expand(),r.emit("node-expand",t.node.data,t.node,$e)))},Lt=(Sn,wn)=>{t.node.setChecked(wn.target.checked,!ie.props.checkStrictly),nextTick(()=>{const En=ie.store.value;ie.ctx.emit("check",t.node.data,{checkedNodes:En.getCheckedNodes(),checkedKeys:En.getCheckedKeys(),halfCheckedNodes:En.getHalfCheckedNodes(),halfCheckedKeys:En.getHalfCheckedKeys()})})};return{ns:V,node$:he,tree:ie,expanded:le,childNodeRendered:ue,oldChecked:de,oldIndeterminate:pe,getNodeKey:Ve,getNodeClass:Fe,handleSelectChange:Ue,handleClick:qe,handleContextMenu:Et,handleExpandIconClick:At,handleCheckChange:Lt,handleChildNodeExpand:(Sn,wn,En)=>{oe(wn),ie.ctx.emit("node-expand",Sn,wn,En)},handleDragStart:Sn=>{ie.props.draggable&&_e.treeNodeDragStart({event:Sn,treeNode:t})},handleDragOver:Sn=>{Sn.preventDefault(),ie.props.draggable&&_e.treeNodeDragOver({event:Sn,treeNode:{$el:he.value,node:t.node}})},handleDrop:Sn=>{Sn.preventDefault()},handleDragEnd:Sn=>{ie.props.draggable&&_e.treeNodeDragEnd(Sn)},CaretRight:caret_right_default}}}),_hoisted_1$9=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$7=["aria-expanded"];function _sfc_render$3(t,r,V,oe,ie,le){const ue=resolveComponent("el-icon"),de=resolveComponent("el-checkbox"),pe=resolveComponent("loading"),he=resolveComponent("node-content"),_e=resolveComponent("el-tree-node"),$e=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:r[1]||(r[1]=withModifiers((...Ie)=>t.handleClick&&t.handleClick(...Ie),["stop"])),onContextmenu:r[2]||(r[2]=(...Ie)=>t.handleContextMenu&&t.handleContextMenu(...Ie)),onDragstart:r[3]||(r[3]=withModifiers((...Ie)=>t.handleDragStart&&t.handleDragStart(...Ie),["stop"])),onDragover:r[4]||(r[4]=withModifiers((...Ie)=>t.handleDragOver&&t.handleDragOver(...Ie),["stop"])),onDragend:r[5]||(r[5]=withModifiers((...Ie)=>t.handleDragEnd&&t.handleDragEnd(...Ie),["stop"])),onDrop:r[6]||(r[6]=withModifiers((...Ie)=>t.handleDrop&&t.handleDrop(...Ie),["stop"]))},[createBaseVNode("div",{class:normalizeClass(t.ns.be("node","content")),style:normalizeStyle$1({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(openBlock(),createBlock(ue,{key:0,class:normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:withModifiers(t.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),t.showCheckbox?(openBlock(),createBlock(de,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:r[0]||(r[0]=withModifiers(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),t.node.loading?(openBlock(),createBlock(ue,{key:2,class:normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:withCtx(()=>[createVNode(pe)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(he,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),createVNode($e,null,{default:withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.node.childNodes,Ie=>(openBlock(),createBlock(_e,{key:t.getNodeKey(Ie),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:Ie,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$7)),[[vShow,t.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$9)),[[vShow,t.node.visible]])}var ElTreeNode$1=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$3],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:t},r){const V=useNamespace("tree"),oe=shallowRef([]),ie=shallowRef([]);onMounted(()=>{ue()}),onUpdated(()=>{oe.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),ie.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),watch(ie,de=>{de.forEach(pe=>{pe.setAttribute("tabindex","-1")})}),useEventListener$1(t,"keydown",de=>{const pe=de.target;if(!pe.className.includes(V.b("node")))return;const he=de.code;oe.value=Array.from(t.value.querySelectorAll(`.${V.is("focusable")}[role=treeitem]`));const _e=oe.value.indexOf(pe);let $e;if([EVENT_CODE.up,EVENT_CODE.down].includes(he)){if(de.preventDefault(),he===EVENT_CODE.up){$e=_e===-1?0:_e!==0?_e-1:oe.value.length-1;const Ve=$e;for(;!r.value.getNode(oe.value[$e].dataset.key).canFocus;){if($e--,$e===Ve){$e=-1;break}$e<0&&($e=oe.value.length-1)}}else{$e=_e===-1?0:_e=oe.value.length&&($e=0)}}$e!==-1&&oe.value[$e].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(he)&&(de.preventDefault(),pe.click());const Ie=pe.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes(he)&&Ie&&(de.preventDefault(),Ie.click())});const ue=()=>{var de;oe.value=Array.from(t.value.querySelectorAll(`.${V.is("focusable")}[role=treeitem]`)),ie.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const pe=t.value.querySelectorAll(`.${V.is("checked")}[role=treeitem]`);if(pe.length){pe[0].setAttribute("tabindex","0");return}(de=oe.value[0])==null||de.setAttribute("tabindex","0")}}const _sfc_main$c=defineComponent({name:"ElTree",components:{ElTreeNode:ElTreeNode$1},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:iconPropType}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(t,r){const{t:V}=useLocale(),oe=useNamespace("tree"),ie=ref(new TreeStore({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));ie.value.initialize();const le=ref(ie.value.root),ue=ref(null),de=ref(null),pe=ref(null),{broadcastExpanded:he}=useNodeExpandEventBroadcast(t),{dragState:_e}=useDragNodeHandler({props:t,ctx:r,el$:de,dropIndicator$:pe,store:ie});useKeydown({el$:de},ie);const $e=computed(()=>{const{childNodes:Mn}=le.value;return!Mn||Mn.length===0||Mn.every(({visible:Ln})=>!Ln)});watch(()=>t.currentNodeKey,Mn=>{ie.value.setCurrentNodeKey(Mn)}),watch(()=>t.defaultCheckedKeys,Mn=>{ie.value.setDefaultCheckedKey(Mn)}),watch(()=>t.defaultExpandedKeys,Mn=>{ie.value.setDefaultExpandedKeys(Mn)}),watch(()=>t.data,Mn=>{ie.value.setData(Mn)},{deep:!0}),watch(()=>t.checkStrictly,Mn=>{ie.value.checkStrictly=Mn});const Ie=Mn=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");ie.value.filter(Mn)},Ve=Mn=>getNodeKey(t.nodeKey,Mn.data),Fe=Mn=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Ln=ie.value.getNode(Mn);if(!Ln)return[];const An=[Ln.data];let Vn=Ln.parent;for(;Vn&&Vn!==le.value;)An.push(Vn.data),Vn=Vn.parent;return An.reverse()},Ue=(Mn,Ln)=>ie.value.getCheckedNodes(Mn,Ln),qe=Mn=>ie.value.getCheckedKeys(Mn),Et=()=>{const Mn=ie.value.getCurrentNode();return Mn?Mn.data:null},At=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const Mn=Et();return Mn?Mn[t.nodeKey]:null},Lt=(Mn,Ln)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");ie.value.setCheckedNodes(Mn,Ln)},hn=(Mn,Ln)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");ie.value.setCheckedKeys(Mn,Ln)},_n=(Mn,Ln,An)=>{ie.value.setChecked(Mn,Ln,An)},vn=()=>ie.value.getHalfCheckedNodes(),bn=()=>ie.value.getHalfCheckedKeys(),Cn=(Mn,Ln=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");handleCurrentChange(ie,r.emit,()=>ie.value.setUserCurrentNode(Mn,Ln))},Sn=(Mn,Ln=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");handleCurrentChange(ie,r.emit,()=>ie.value.setCurrentNodeKey(Mn,Ln))},wn=Mn=>ie.value.getNode(Mn),En=Mn=>{ie.value.remove(Mn)},xn=(Mn,Ln)=>{ie.value.append(Mn,Ln)},Pn=(Mn,Ln)=>{ie.value.insertBefore(Mn,Ln)},kn=(Mn,Ln)=>{ie.value.insertAfter(Mn,Ln)},Nn=(Mn,Ln,An)=>{he(Ln),r.emit("node-expand",Mn,Ln,An)},Dn=(Mn,Ln)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");ie.value.updateChildren(Mn,Ln)};return provide("RootTree",{ctx:r,props:t,store:ie,root:le,currentNode:ue,instance:getCurrentInstance()}),provide(formItemContextKey,void 0),{ns:oe,store:ie,root:le,currentNode:ue,dragState:_e,el$:de,dropIndicator$:pe,isEmpty:$e,filter:Ie,getNodeKey:Ve,getNodePath:Fe,getCheckedNodes:Ue,getCheckedKeys:qe,getCurrentNode:Et,getCurrentKey:At,setCheckedNodes:Lt,setCheckedKeys:hn,setChecked:_n,getHalfCheckedNodes:vn,getHalfCheckedKeys:bn,setCurrentNode:Cn,setCurrentKey:Sn,t:V,getNode:wn,remove:En,append:xn,insertBefore:Pn,insertAfter:kn,handleNodeExpand:Nn,updateKeyChildren:Dn}}});function _sfc_render$2(t,r,V,oe,ie,le){const ue=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.root.childNodes,de=>(openBlock(),createBlock(ue,{key:t.getNodeKey(de),node:de,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.e("empty-block"))},[renderSlot(t.$slots,"empty",{},()=>{var de;return[createBaseVNode("span",{class:normalizeClass(t.ns.e("empty-text"))},toDisplayString$1((de=t.emptyText)!=null?de:t.t("el.tree.emptyText")),3)]})],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass(t.ns.e("drop-indicator"))},null,2),[[vShow,t.dragState.showDropIndicator]])],2)}var Tree=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$2],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Tree.install=t=>{t.component(Tree.name,Tree)};const _Tree=Tree,ElTree=_Tree,useSelect=(t,{attrs:r},{tree:V,key:oe})=>{const ie=useNamespace("tree-select"),le={...pick$1(toRefs(t),Object.keys(ElSelect.props)),...r,valueKey:oe,popperClass:computed(()=>{const ue=[ie.e("popper")];return t.popperClass&&ue.push(t.popperClass),ue.join(" ")}),filterMethod:(ue="")=>{t.filterMethod&&t.filterMethod(ue),nextTick(()=>{var de;(de=V.value)==null||de.filter(ue)})},onVisibleChange:ue=>{var de;(de=r.onVisibleChange)==null||de.call(r,ue),t.filterable&&ue&&le.filterMethod()}};return le},component$1=defineComponent({extends:ElOption,setup(t,r){const V=ElOption.setup(t,r);delete V.selectOptionClick;const oe=getCurrentInstance().proxy;return nextTick(()=>{V.select.cachedOptions.get(oe.value)||V.select.onOptionCreate(oe)}),V},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue(t){return t||t===0}function isValidArray(t){return Array.isArray(t)&&t.length}function toValidArray(t){return Array.isArray(t)?t:isValidValue(t)?[t]:[]}function treeFind(t,r,V,oe,ie){for(let le=0;le{watch(()=>t.modelValue,()=>{t.showCheckbox&&nextTick(()=>{const Ie=le.value;Ie&&!isEqual$1(Ie.getCheckedKeys(),toValidArray(t.modelValue))&&Ie.setCheckedKeys(toValidArray(t.modelValue))})},{immediate:!0,deep:!0});const de=computed(()=>({value:ue.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...t.props})),pe=(Ie,Ve)=>{var Fe;const Ue=de.value[Ie];return isFunction$5(Ue)?Ue(Ve,(Fe=le.value)==null?void 0:Fe.getNode(pe("value",Ve))):Ve[Ue]},he=toValidArray(t.modelValue).map(Ie=>treeFind(t.data||[],Ve=>pe("value",Ve)===Ie,Ve=>pe("children",Ve),(Ve,Fe,Ue,qe)=>qe&&pe("value",qe))).filter(Ie=>isValidValue(Ie)),_e=computed(()=>{if(!t.renderAfterExpand&&!t.lazy)return[];const Ie=[];return treeEach(t.data.concat(t.cacheData),Ve=>{const Fe=pe("value",Ve);Ie.push({value:Fe,currentLabel:pe("label",Ve),isDisabled:pe("disabled",Ve)})},Ve=>pe("children",Ve)),Ie}),$e=computed(()=>_e.value.reduce((Ie,Ve)=>({...Ie,[Ve.value]:Ve}),{}));return{...pick$1(toRefs(t),Object.keys(_Tree.props)),...r,nodeKey:ue,expandOnClickNode:computed(()=>!t.checkStrictly&&t.expandOnClickNode),defaultExpandedKeys:computed(()=>t.defaultExpandedKeys?t.defaultExpandedKeys.concat(he):he),renderContent:(Ie,{node:Ve,data:Fe,store:Ue})=>Ie(component$1,{value:pe("value",Fe),label:pe("label",Fe),disabled:pe("disabled",Fe)},t.renderContent?()=>t.renderContent(Ie,{node:Ve,data:Fe,store:Ue}):V.default?()=>V.default({node:Ve,data:Fe,store:Ue}):void 0),filterNodeMethod:(Ie,Ve,Fe)=>{var Ue;return t.filterNodeMethod?t.filterNodeMethod(Ie,Ve,Fe):Ie?(Ue=pe("label",Ve))==null?void 0:Ue.includes(Ie):!0},onNodeClick:(Ie,Ve,Fe)=>{var Ue,qe,Et;if((Ue=r.onNodeClick)==null||Ue.call(r,Ie,Ve,Fe),!(t.showCheckbox&&t.checkOnClickNode))if(!t.showCheckbox&&(t.checkStrictly||Ve.isLeaf)){if(!pe("disabled",Ie)){const At=(qe=ie.value)==null?void 0:qe.options.get(pe("value",Ie));(Et=ie.value)==null||Et.handleOptionSelect(At)}}else t.expandOnClickNode&&Fe.proxy.handleExpandIconClick()},onCheck:(Ie,Ve)=>{if(!t.showCheckbox)return;const Fe=pe("value",Ie),Ue=Ve.checkedKeys,qe=t.multiple?toValidArray(t.modelValue).filter(At=>At in $e.value&&!le.value.getNode(At)&&!Ue.includes(At)):[],Et=Ue.concat(qe);if(t.checkStrictly)oe(UPDATE_MODEL_EVENT,t.multiple?Et:Et.includes(Fe)?Fe:void 0);else if(t.multiple)oe(UPDATE_MODEL_EVENT,le.value.getCheckedKeys(!0));else{const At=treeFind([Ie],_n=>!isValidArray(pe("children",_n))&&!pe("disabled",_n),_n=>pe("children",_n)),Lt=At?pe("value",At):void 0,hn=isValidValue(t.modelValue)&&!!treeFind([Ie],_n=>pe("value",_n)===t.modelValue,_n=>pe("children",_n));oe(UPDATE_MODEL_EVENT,Lt===t.modelValue||hn?void 0:Lt)}nextTick(()=>{var At;const Lt=toValidArray(t.modelValue);le.value.setCheckedKeys(Lt),(At=r.onCheck)==null||At.call(r,Ie,{checkedKeys:le.value.getCheckedKeys(),checkedNodes:le.value.getCheckedNodes(),halfCheckedKeys:le.value.getHalfCheckedKeys(),halfCheckedNodes:le.value.getHalfCheckedNodes()})})},cacheOptions:_e}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup(t){const r=inject(selectKey);return watch(()=>t.data,()=>{var V;t.data.forEach(ie=>{r.cachedOptions.has(ie.value)||r.cachedOptions.set(ie.value,ie)});const oe=((V=r.selectWrapper)==null?void 0:V.querySelectorAll("input"))||[];Array.from(oe).includes(document.activeElement)||r.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _sfc_main$b=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...ElSelect.props,..._Tree.props,cacheData:{type:Array,default:()=>[]}},setup(t,r){const{slots:V,expose:oe}=r,ie=ref(),le=ref(),ue=computed(()=>t.nodeKey||t.valueKey||"value"),de=useSelect(t,r,{select:ie,tree:le,key:ue}),{cacheOptions:pe,...he}=useTree$1(t,r,{select:ie,tree:le,key:ue}),_e=reactive({});return oe(_e),onMounted(()=>{Object.assign(_e,{...pick$1(le.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1(ie.value,["focus","blur"])})}),()=>h$2(ElSelect,reactive({...de,ref:$e=>ie.value=$e}),{...V,default:()=>[h$2(CacheOptions,{data:pe.value}),h$2(_Tree,reactive({...he,ref:$e=>le.value=$e}))]})}});var TreeSelect=_export_sfc$1(_sfc_main$b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);TreeSelect.install=t=>{t.component(TreeSelect.name,TreeSelect)};const _TreeSelect=TreeSelect,ElTreeSelect=_TreeSelect,ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t))(TreeOptionsEnum||{}),SetOperationEnum=(t=>(t.ADD="add",t.DELETE="delete",t))(SetOperationEnum||{});const itemSize={type:Number,default:26},treeProps=buildProps({data:{type:definePropType(Array),default:()=>mutable([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:definePropType(Object),default:()=>mutable({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:definePropType(Array),default:()=>mutable([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:definePropType(Array),default:()=>mutable([])},indent:{type:Number,default:16},itemSize,icon:{type:iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:definePropType([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:definePropType(Function)},perfMode:{type:Boolean,default:!0}}),treeNodeProps=buildProps({node:{type:definePropType(Object),default:()=>mutable(EMPTY_NODE)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize}),treeNodeContentProps=buildProps({node:{type:definePropType(Object),required:!0}}),NODE_CLICK="node-click",NODE_EXPAND="node-expand",NODE_COLLAPSE="node-collapse",CURRENT_CHANGE="current-change",NODE_CHECK="check",NODE_CHECK_CHANGE="check-change",NODE_CONTEXTMENU="node-contextmenu",treeEmits={[NODE_CLICK]:(t,r,V)=>t&&r&&V,[NODE_EXPAND]:(t,r)=>t&&r,[NODE_COLLAPSE]:(t,r)=>t&&r,[CURRENT_CHANGE]:(t,r)=>t&&r,[NODE_CHECK]:(t,r)=>t&&r,[NODE_CHECK_CHANGE]:(t,r)=>t&&typeof r=="boolean",[NODE_CONTEXTMENU]:(t,r,V)=>t&&r&&V},treeNodeEmits={click:(t,r)=>!!(t&&r),toggle:t=>!!t,check:(t,r)=>t&&typeof r=="boolean"};function useCheck(t,r){const V=ref(new Set),oe=ref(new Set),{emit:ie}=getCurrentInstance();watch([()=>r.value,()=>t.defaultCheckedKeys],()=>nextTick(()=>{At(t.defaultCheckedKeys)}),{immediate:!0});const le=()=>{if(!r.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:Lt,maxLevel:hn}=r.value,_n=V.value,vn=new Set;for(let bn=hn-1;bn>=1;--bn){const Cn=Lt.get(bn);Cn&&Cn.forEach(Sn=>{const wn=Sn.children;if(wn){let En=!0,xn=!1;for(const Pn of wn){const kn=Pn.key;if(_n.has(kn))xn=!0;else if(vn.has(kn)){En=!1,xn=!0;break}else En=!1}En?_n.add(Sn.key):xn?(vn.add(Sn.key),_n.delete(Sn.key)):(_n.delete(Sn.key),vn.delete(Sn.key))}})}oe.value=vn},ue=Lt=>V.value.has(Lt.key),de=Lt=>oe.value.has(Lt.key),pe=(Lt,hn,_n=!0)=>{const vn=V.value,bn=(Cn,Sn)=>{vn[Sn?SetOperationEnum.ADD:SetOperationEnum.DELETE](Cn.key);const wn=Cn.children;!t.checkStrictly&&wn&&wn.forEach(En=>{En.disabled||bn(En,Sn)})};bn(Lt,hn),le(),_n&&he(Lt,hn)},he=(Lt,hn)=>{const{checkedNodes:_n,checkedKeys:vn}=Fe(),{halfCheckedNodes:bn,halfCheckedKeys:Cn}=Ue();ie(NODE_CHECK,Lt.data,{checkedKeys:vn,checkedNodes:_n,halfCheckedKeys:Cn,halfCheckedNodes:bn}),ie(NODE_CHECK_CHANGE,Lt.data,hn)};function _e(Lt=!1){return Fe(Lt).checkedKeys}function $e(Lt=!1){return Fe(Lt).checkedNodes}function Ie(){return Ue().halfCheckedKeys}function Ve(){return Ue().halfCheckedNodes}function Fe(Lt=!1){const hn=[],_n=[];if(r!=null&&r.value&&t.showCheckbox){const{treeNodeMap:vn}=r.value;V.value.forEach(bn=>{const Cn=vn.get(bn);Cn&&(!Lt||Lt&&Cn.isLeaf)&&(_n.push(bn),hn.push(Cn.data))})}return{checkedKeys:_n,checkedNodes:hn}}function Ue(){const Lt=[],hn=[];if(r!=null&&r.value&&t.showCheckbox){const{treeNodeMap:_n}=r.value;oe.value.forEach(vn=>{const bn=_n.get(vn);bn&&(hn.push(vn),Lt.push(bn.data))})}return{halfCheckedNodes:Lt,halfCheckedKeys:hn}}function qe(Lt){V.value.clear(),oe.value.clear(),At(Lt)}function Et(Lt,hn){if(r!=null&&r.value&&t.showCheckbox){const _n=r.value.treeNodeMap.get(Lt);_n&&pe(_n,hn,!1)}}function At(Lt){if(r!=null&&r.value){const{treeNodeMap:hn}=r.value;if(t.showCheckbox&&hn&&Lt)for(const _n of Lt){const vn=hn.get(_n);vn&&!ue(vn)&&pe(vn,!0,!1)}}}return{updateCheckedKeys:le,toggleCheckbox:pe,isChecked:ue,isIndeterminate:de,getCheckedKeys:_e,getCheckedNodes:$e,getHalfCheckedKeys:Ie,getHalfCheckedNodes:Ve,setChecked:Et,setCheckedKeys:qe}}function useFilter(t,r){const V=ref(new Set([])),oe=ref(new Set([])),ie=computed(()=>isFunction$5(t.filterMethod));function le(de){var pe;if(!ie.value)return;const he=new Set,_e=oe.value,$e=V.value,Ie=[],Ve=((pe=r.value)==null?void 0:pe.treeNodes)||[],Fe=t.filterMethod;$e.clear();function Ue(qe){qe.forEach(Et=>{Ie.push(Et),Fe!=null&&Fe(de,Et.data)?Ie.forEach(Lt=>{he.add(Lt.key)}):Et.isLeaf&&$e.add(Et.key);const At=Et.children;if(At&&Ue(At),!Et.isLeaf){if(!he.has(Et.key))$e.add(Et.key);else if(At){let Lt=!0;for(const hn of At)if(!$e.has(hn.key)){Lt=!1;break}Lt?_e.add(Et.key):_e.delete(Et.key)}}Ie.pop()})}return Ue(Ve),he}function ue(de){return oe.value.has(de.key)}return{hiddenExpandIconKeySet:oe,hiddenNodeKeySet:V,doFilter:le,isForceHiddenExpandIcon:ue}}function useTree(t,r){const V=ref(new Set(t.defaultExpandedKeys)),oe=ref(),ie=shallowRef();watch(()=>t.currentNodeKey,Gn=>{oe.value=Gn},{immediate:!0}),watch(()=>t.data,Gn=>{Jn(Gn)},{immediate:!0});const{isIndeterminate:le,isChecked:ue,toggleCheckbox:de,getCheckedKeys:pe,getCheckedNodes:he,getHalfCheckedKeys:_e,getHalfCheckedNodes:$e,setChecked:Ie,setCheckedKeys:Ve}=useCheck(t,ie),{doFilter:Fe,hiddenNodeKeySet:Ue,isForceHiddenExpandIcon:qe}=useFilter(t,ie),Et=computed(()=>{var Gn;return((Gn=t.props)==null?void 0:Gn.value)||TreeOptionsEnum.KEY}),At=computed(()=>{var Gn;return((Gn=t.props)==null?void 0:Gn.children)||TreeOptionsEnum.CHILDREN}),Lt=computed(()=>{var Gn;return((Gn=t.props)==null?void 0:Gn.disabled)||TreeOptionsEnum.DISABLED}),hn=computed(()=>{var Gn;return((Gn=t.props)==null?void 0:Gn.label)||TreeOptionsEnum.LABEL}),_n=computed(()=>{const Gn=V.value,Qn=Ue.value,ur=[],cr=ie.value&&ie.value.treeNodes||[];function Un(){const qn=[];for(let er=cr.length-1;er>=0;--er)qn.push(cr[er]);for(;qn.length;){const er=qn.pop();if(er&&(Qn.has(er.key)||ur.push(er),Gn.has(er.key))){const pr=er.children;if(pr){const Er=pr.length;for(let dr=Er-1;dr>=0;--dr)qn.push(pr[dr])}}}}return Un(),ur}),vn=computed(()=>_n.value.length>0);function bn(Gn){const Qn=new Map,ur=new Map;let cr=1;function Un(er,pr=1,Er=void 0){var dr;const xr=[];for(const wr of er){const Cr=wn(wr),gr={level:pr,key:Cr,data:wr};gr.label=xn(wr),gr.parent=Er;const or=Sn(wr);gr.disabled=En(wr),gr.isLeaf=!or||or.length===0,or&&or.length&&(gr.children=Un(or,pr+1,gr)),xr.push(gr),Qn.set(Cr,gr),ur.has(pr)||ur.set(pr,[]),(dr=ur.get(pr))==null||dr.push(gr)}return pr>cr&&(cr=pr),xr}const qn=Un(Gn);return{treeNodeMap:Qn,levelTreeNodeMap:ur,maxLevel:cr,treeNodes:qn}}function Cn(Gn){const Qn=Fe(Gn);Qn&&(V.value=Qn)}function Sn(Gn){return Gn[At.value]}function wn(Gn){return Gn?Gn[Et.value]:""}function En(Gn){return Gn[Lt.value]}function xn(Gn){return Gn[hn.value]}function Pn(Gn){V.value.has(Gn.key)?An(Gn):Ln(Gn)}function kn(Gn){V.value=new Set(Gn)}function Nn(Gn,Qn){r(NODE_CLICK,Gn.data,Gn,Qn),Dn(Gn),t.expandOnClickNode&&Pn(Gn),t.showCheckbox&&t.checkOnClickNode&&!Gn.disabled&&de(Gn,!ue(Gn),!0)}function Dn(Gn){Fn(Gn)||(oe.value=Gn.key,r(CURRENT_CHANGE,Gn.data,Gn))}function Mn(Gn,Qn){de(Gn,Qn)}function Ln(Gn){const Qn=V.value;if(ie.value&&t.accordion){const{treeNodeMap:ur}=ie.value;Qn.forEach(cr=>{const Un=ur.get(cr);Gn&&Gn.level===(Un==null?void 0:Un.level)&&Qn.delete(cr)})}Qn.add(Gn.key),r(NODE_EXPAND,Gn.data,Gn)}function An(Gn){V.value.delete(Gn.key),r(NODE_COLLAPSE,Gn.data,Gn)}function Vn(Gn){return V.value.has(Gn.key)}function Wn(Gn){return!!Gn.disabled}function Fn(Gn){const Qn=oe.value;return Qn!==void 0&&Qn===Gn.key}function Yn(){var Gn,Qn;if(oe.value)return(Qn=(Gn=ie.value)==null?void 0:Gn.treeNodeMap.get(oe.value))==null?void 0:Qn.data}function tr(){return oe.value}function yr(Gn){oe.value=Gn}function Jn(Gn){nextTick(()=>ie.value=bn(Gn))}function Kn(Gn){var Qn;const ur=isObject$9(Gn)?wn(Gn):Gn;return(Qn=ie.value)==null?void 0:Qn.treeNodeMap.get(ur)}return{tree:ie,flattenTree:_n,isNotEmpty:vn,getKey:wn,getChildren:Sn,toggleExpand:Pn,toggleCheckbox:de,isExpanded:Vn,isChecked:ue,isIndeterminate:le,isDisabled:Wn,isCurrent:Fn,isForceHiddenExpandIcon:qe,handleNodeClick:Nn,handleNodeCheck:Mn,getCurrentNode:Yn,getCurrentKey:tr,setCurrentKey:yr,getCheckedKeys:pe,getCheckedNodes:he,getHalfCheckedKeys:_e,getHalfCheckedNodes:$e,setChecked:Ie,setCheckedKeys:Ve,filter:Cn,setData:Jn,getNode:Kn,expandNode:Ln,collapseNode:An,setExpandedKeys:kn}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup(t){const r=inject(ROOT_TREE_INJECTION_KEY),V=useNamespace("tree");return()=>{const oe=t.node,{data:ie}=oe;return r!=null&&r.ctx.slots.default?r.ctx.slots.default({node:oe,data:ie}):h$2("span",{class:V.be("node","label")},[oe==null?void 0:oe.label])}}});const _hoisted_1$8=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],__default__$7=defineComponent({name:"ElTreeNode"}),_sfc_main$a=defineComponent({...__default__$7,props:treeNodeProps,emits:treeNodeEmits,setup(t,{emit:r}){const V=t,oe=inject(ROOT_TREE_INJECTION_KEY),ie=useNamespace("tree"),le=computed(()=>{var $e;return($e=oe==null?void 0:oe.props.indent)!=null?$e:16}),ue=computed(()=>{var $e;return($e=oe==null?void 0:oe.props.icon)!=null?$e:caret_right_default}),de=$e=>{r("click",V.node,$e)},pe=()=>{r("toggle",V.node)},he=$e=>{r("check",V.node,$e)},_e=$e=>{var Ie,Ve,Fe,Ue;(Fe=(Ve=(Ie=oe==null?void 0:oe.instance)==null?void 0:Ie.vnode)==null?void 0:Ve.props)!=null&&Fe.onNodeContextmenu&&($e.stopPropagation(),$e.preventDefault()),oe==null||oe.ctx.emit(NODE_CONTEXTMENU,$e,(Ue=V.node)==null?void 0:Ue.data,V.node)};return($e,Ie)=>{var Ve,Fe,Ue;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref(ie).b("node"),unref(ie).is("expanded",$e.expanded),unref(ie).is("current",$e.current),unref(ie).is("focusable",!$e.disabled),unref(ie).is("checked",!$e.disabled&&$e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":$e.expanded,"aria-disabled":$e.disabled,"aria-checked":$e.checked,"data-key":(Ve=$e.node)==null?void 0:Ve.key,onClick:withModifiers(de,["stop"]),onContextmenu:_e},[createBaseVNode("div",{class:normalizeClass(unref(ie).be("node","content")),style:normalizeStyle$1({paddingLeft:`${($e.node.level-1)*unref(le)}px`,height:$e.itemSize+"px"})},[unref(ue)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ie).is("leaf",!!((Fe=$e.node)!=null&&Fe.isLeaf)),unref(ie).is("hidden",$e.hiddenExpandIcon),{expanded:!((Ue=$e.node)!=null&&Ue.isLeaf)&&$e.expanded},unref(ie).be("node","expand-icon")]),onClick:withModifiers(pe,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ue))))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$e.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":$e.checked,indeterminate:$e.indeterminate,disabled:$e.disabled,onChange:he,onClick:Ie[0]||(Ie[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode(unref(ElNodeContent),{node:$e.node},null,8,["node"])],6)],42,_hoisted_1$8)}}});var ElTreeNode=_export_sfc$1(_sfc_main$a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const __default__$6=defineComponent({name:"ElTreeV2"}),_sfc_main$9=defineComponent({...__default__$6,props:treeProps,emits:treeEmits,setup(t,{expose:r,emit:V}){const oe=t,ie=useSlots(),le=computed(()=>oe.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:V,slots:ie},props:oe,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:ue}=useLocale(),de=useNamespace("tree"),{flattenTree:pe,isNotEmpty:he,toggleExpand:_e,isExpanded:$e,isIndeterminate:Ie,isChecked:Ve,isDisabled:Fe,isCurrent:Ue,isForceHiddenExpandIcon:qe,handleNodeClick:Et,handleNodeCheck:At,toggleCheckbox:Lt,getCurrentNode:hn,getCurrentKey:_n,setCurrentKey:vn,getCheckedKeys:bn,getCheckedNodes:Cn,getHalfCheckedKeys:Sn,getHalfCheckedNodes:wn,setChecked:En,setCheckedKeys:xn,filter:Pn,setData:kn,getNode:Nn,expandNode:Dn,collapseNode:Mn,setExpandedKeys:Ln}=useTree(oe,V);return r({toggleCheckbox:Lt,getCurrentNode:hn,getCurrentKey:_n,setCurrentKey:vn,getCheckedKeys:bn,getCheckedNodes:Cn,getHalfCheckedKeys:Sn,getHalfCheckedNodes:wn,setChecked:En,setCheckedKeys:xn,filter:Pn,setData:kn,getNode:Nn,expandNode:Dn,collapseNode:Mn,setExpandedKeys:Ln}),(An,Vn)=>{var Wn;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(de).b(),{[unref(de).m("highlight-current")]:An.highlightCurrent}]),role:"tree"},[unref(he)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,"class-name":unref(de).b("virtual-list"),data:unref(pe),total:unref(pe).length,height:An.height,"item-size":unref(le),"perf-mode":An.perfMode},{default:withCtx(({data:Fn,index:Yn,style:tr})=>[(openBlock(),createBlock(ElTreeNode,{key:Fn[Yn].key,style:normalizeStyle$1(tr),node:Fn[Yn],expanded:unref($e)(Fn[Yn]),"show-checkbox":An.showCheckbox,checked:unref(Ve)(Fn[Yn]),indeterminate:unref(Ie)(Fn[Yn]),"item-size":unref(le),disabled:unref(Fe)(Fn[Yn]),current:unref(Ue)(Fn[Yn]),"hidden-expand-icon":unref(qe)(Fn[Yn]),onClick:unref(Et),onToggle:unref(_e),onCheck:unref(At)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(de).e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(unref(de).e("empty-text"))},toDisplayString$1((Wn=An.emptyText)!=null?Wn:unref(ue)("el.tree.emptyText")),3)],2))],2)}}});var TreeV2=_export_sfc$1(_sfc_main$9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const ElTreeV2=withInstall(TreeV2),uploadContextKey=Symbol("uploadContextKey"),SCOPE$2="ElUpload";class UploadAjaxError extends Error{constructor(r,V,oe,ie){super(r),this.name="UploadAjaxError",this.status=V,this.method=oe,this.url=ie}}function getError(t,r,V){let oe;return V.response?oe=`${V.response.error||V.response}`:V.responseText?oe=`${V.responseText}`:oe=`fail to ${r.method} ${t} ${V.status}`,new UploadAjaxError(oe,V.status,r.method,t)}function getBody(t){const r=t.responseText||t.response;if(!r)return r;try{return JSON.parse(r)}catch{return r}}const ajaxUpload=t=>{typeof XMLHttpRequest>"u"&&throwError$1(SCOPE$2,"XMLHttpRequest is undefined");const r=new XMLHttpRequest,V=t.action;r.upload&&r.upload.addEventListener("progress",le=>{const ue=le;ue.percent=le.total>0?le.loaded/le.total*100:0,t.onProgress(ue)});const oe=new FormData;if(t.data)for(const[le,ue]of Object.entries(t.data))isArray$c(ue)&&ue.length?oe.append(le,...ue):oe.append(le,ue);oe.append(t.filename,t.file,t.file.name),r.addEventListener("error",()=>{t.onError(getError(V,t,r))}),r.addEventListener("load",()=>{if(r.status<200||r.status>=300)return t.onError(getError(V,t,r));t.onSuccess(getBody(r))}),r.open(t.method,V,!0),t.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);const ie=t.headers||{};if(ie instanceof Headers)ie.forEach((le,ue)=>r.setRequestHeader(ue,le));else for(const[le,ue]of Object.entries(ie))isNil(ue)||r.setRequestHeader(le,String(ue));return r.send(oe),r},uploadListTypes=["text","picture","picture-card"];let fileId=1;const genFileId=()=>Date.now()+fileId++,uploadBaseProps=buildProps({action:{type:String,default:"#"},headers:{type:definePropType(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>mutable({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:definePropType(Array),default:()=>mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:uploadListTypes,default:"text"},httpRequest:{type:definePropType(Function),default:ajaxUpload},disabled:Boolean,limit:Number}),uploadProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},beforeRemove:{type:definePropType(Function)},onRemove:{type:definePropType(Function),default:NOOP},onChange:{type:definePropType(Function),default:NOOP},onPreview:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),uploadListProps=buildProps({files:{type:definePropType(Array),default:()=>mutable([])},disabled:{type:Boolean,default:!1},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"}}),uploadListEmits={remove:t=>!!t},_hoisted_1$7=["onKeydown"],_hoisted_2$6=["src"],_hoisted_3$4=["onClick"],_hoisted_4$2=["title"],_hoisted_5=["onClick"],_hoisted_6=["onClick"],__default__$5=defineComponent({name:"ElUploadList"}),_sfc_main$8=defineComponent({...__default__$5,props:uploadListProps,emits:uploadListEmits,setup(t,{emit:r}){const{t:V}=useLocale(),oe=useNamespace("upload"),ie=useNamespace("icon"),le=useNamespace("list"),ue=useFormDisabled(),de=ref(!1),pe=he=>{r("remove",he)};return(he,_e)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(oe).b("list"),unref(oe).bm("list",he.listType),unref(oe).is("disabled",unref(ue))]),name:unref(le).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(he.files,$e=>(openBlock(),createElementBlock("li",{key:$e.uid||$e.name,class:normalizeClass([unref(oe).be("list","item"),unref(oe).is($e.status),{focusing:de.value}]),tabindex:"0",onKeydown:withKeys(Ie=>!unref(ue)&&pe($e),["delete"]),onFocus:_e[0]||(_e[0]=Ie=>de.value=!0),onBlur:_e[1]||(_e[1]=Ie=>de.value=!1),onClick:_e[2]||(_e[2]=Ie=>de.value=!1)},[renderSlot(he.$slots,"default",{file:$e},()=>[he.listType==="picture"||$e.status!=="uploading"&&he.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(oe).be("list","item-thumbnail")),src:$e.url,alt:""},null,10,_hoisted_2$6)):createCommentVNode("v-if",!0),$e.status==="uploading"||he.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(oe).be("list","item-name")),onClick:withModifiers(Ie=>he.handlePreview($e),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ie).m("document"))},{default:withCtx(()=>[createVNode(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(oe).be("list","item-file-name")),title:$e.name},toDisplayString$1($e.name),11,_hoisted_4$2)],10,_hoisted_3$4),$e.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:he.listType==="picture-card"?"circle":"line","stroke-width":he.listType==="picture-card"?6:2,percentage:Number($e.percentage),style:normalizeStyle$1(he.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("label",{class:normalizeClass(unref(oe).be("list","item-status-label"))},[he.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ie).m("upload-success"),unref(ie).m("circle-check")])},{default:withCtx(()=>[createVNode(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(he.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ie).m("upload-success"),unref(ie).m("check")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),unref(ue)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(ie).m("close")),onClick:Ie=>pe($e)},{default:withCtx(()=>[createVNode(unref(close_default))]),_:2},1032,["class","onClick"])),createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),createCommentVNode(" This is a bug which needs to be fixed "),createCommentVNode(" TODO: Fix the incorrect navigation interaction "),unref(ue)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(ie).m("close-tip"))},toDisplayString$1(unref(V)("el.upload.deleteTip")),3)),he.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(oe).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(oe).be("list","item-preview")),onClick:Ie=>he.handlePreview($e)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ie).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_5),unref(ue)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(oe).be("list","item-delete")),onClick:Ie=>pe($e)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ie).m("delete"))},{default:withCtx(()=>[createVNode(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_6))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$7))),128)),renderSlot(he.$slots,"append")]),_:3},8,["class","name"]))}});var UploadList=_export_sfc$1(_sfc_main$8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const uploadDraggerProps=buildProps({disabled:{type:Boolean,default:!1}}),uploadDraggerEmits={file:t=>isArray$c(t)},_hoisted_1$6=["onDrop","onDragover"],COMPONENT_NAME="ElUploadDrag",__default__$4=defineComponent({name:COMPONENT_NAME}),_sfc_main$7=defineComponent({...__default__$4,props:uploadDraggerProps,emits:uploadDraggerEmits,setup(t,{emit:r}){const V=inject(uploadContextKey);V||throwError$1(COMPONENT_NAME,"usage: ");const oe=useNamespace("upload"),ie=ref(!1),le=useFormDisabled(),ue=pe=>{if(le.value)return;ie.value=!1,pe.stopPropagation();const he=Array.from(pe.dataTransfer.files),_e=V.accept.value;if(!_e){r("file",he);return}const $e=he.filter(Ie=>{const{type:Ve,name:Fe}=Ie,Ue=Fe.includes(".")?`.${Fe.split(".").pop()}`:"",qe=Ve.replace(/\/.*$/,"");return _e.split(",").map(Et=>Et.trim()).filter(Et=>Et).some(Et=>Et.startsWith(".")?Ue===Et:/\/\*$/.test(Et)?qe===Et.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(Et)?Ve===Et:!1)});r("file",$e)},de=()=>{le.value||(ie.value=!0)};return(pe,he)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b("dragger"),unref(oe).is("dragover",ie.value)]),onDrop:withModifiers(ue,["prevent"]),onDragover:withModifiers(de,["prevent"]),onDragleave:he[0]||(he[0]=withModifiers(_e=>ie.value=!1,["prevent"]))},[renderSlot(pe.$slots,"default")],42,_hoisted_1$6))}});var UploadDragger=_export_sfc$1(_sfc_main$7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const uploadContentProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},onRemove:{type:definePropType(Function),default:NOOP},onStart:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),_hoisted_1$5=["onKeydown"],_hoisted_2$5=["name","multiple","accept"],__default__$3=defineComponent({name:"ElUploadContent",inheritAttrs:!1}),_sfc_main$6=defineComponent({...__default__$3,props:uploadContentProps,setup(t,{expose:r}){const V=t,oe=useNamespace("upload"),ie=useFormDisabled(),le=shallowRef({}),ue=shallowRef(),de=Fe=>{if(Fe.length===0)return;const{autoUpload:Ue,limit:qe,fileList:Et,multiple:At,onStart:Lt,onExceed:hn}=V;if(qe&&Et.length+Fe.length>qe){hn(Fe,Et);return}At||(Fe=Fe.slice(0,1));for(const _n of Fe){const vn=_n;vn.uid=genFileId(),Lt(vn),Ue&&pe(vn)}},pe=async Fe=>{if(ue.value.value="",!V.beforeUpload)return he(Fe);let Ue,qe={};try{const At=V.data,Lt=V.beforeUpload(Fe);qe=isObject$9(V.data)?cloneDeep(V.data):V.data,Ue=await Lt,isObject$9(V.data)&&isEqual$1(At,qe)&&(qe=cloneDeep(V.data))}catch{Ue=!1}if(Ue===!1){V.onRemove(Fe);return}let Et=Fe;Ue instanceof Blob&&(Ue instanceof File?Et=Ue:Et=new File([Ue],Fe.name,{type:Fe.type})),he(Object.assign(Et,{uid:Fe.uid}),qe)},he=(Fe,Ue)=>{const{headers:qe,data:Et,method:At,withCredentials:Lt,name:hn,action:_n,onProgress:vn,onSuccess:bn,onError:Cn,httpRequest:Sn}=V,{uid:wn}=Fe,En={headers:qe||{},withCredentials:Lt,file:Fe,data:Ue??Et,method:At,filename:hn,action:_n,onProgress:Pn=>{vn(Pn,Fe)},onSuccess:Pn=>{bn(Pn,Fe),delete le.value[wn]},onError:Pn=>{Cn(Pn,Fe),delete le.value[wn]}},xn=Sn(En);le.value[wn]=xn,xn instanceof Promise&&xn.then(En.onSuccess,En.onError)},_e=Fe=>{const Ue=Fe.target.files;Ue&&de(Array.from(Ue))},$e=()=>{ie.value||(ue.value.value="",ue.value.click())},Ie=()=>{$e()};return r({abort:Fe=>{entriesOf(le.value).filter(Fe?([qe])=>String(Fe.uid)===qe:()=>!0).forEach(([qe,Et])=>{Et instanceof XMLHttpRequest&&Et.abort(),delete le.value[qe]})},upload:pe}),(Fe,Ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b(),unref(oe).m(Fe.listType),unref(oe).is("drag",Fe.drag)]),tabindex:"0",onClick:$e,onKeydown:withKeys(withModifiers(Ie,["self"]),["enter","space"])},[Fe.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(ie),onFile:de},{default:withCtx(()=>[renderSlot(Fe.$slots,"default")]),_:3},8,["disabled"])):renderSlot(Fe.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:ue,class:normalizeClass(unref(oe).e("input")),name:Fe.name,multiple:Fe.multiple,accept:Fe.accept,type:"file",onChange:_e,onClick:Ue[0]||(Ue[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$5)],42,_hoisted_1$5))}});var UploadContent=_export_sfc$1(_sfc_main$6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeObjectURL=t=>{var r;(r=t.url)!=null&&r.startsWith("blob:")&&URL.revokeObjectURL(t.url)},useHandlers=(t,r)=>{const V=useVModel$1(t,"fileList",void 0,{passive:!0}),oe=Ie=>V.value.find(Ve=>Ve.uid===Ie.uid);function ie(Ie){var Ve;(Ve=r.value)==null||Ve.abort(Ie)}function le(Ie=["ready","uploading","success","fail"]){V.value=V.value.filter(Ve=>!Ie.includes(Ve.status))}const ue=(Ie,Ve)=>{const Fe=oe(Ve);Fe&&(console.error(Ie),Fe.status="fail",V.value.splice(V.value.indexOf(Fe),1),t.onError(Ie,Fe,V.value),t.onChange(Fe,V.value))},de=(Ie,Ve)=>{const Fe=oe(Ve);Fe&&(t.onProgress(Ie,Fe,V.value),Fe.status="uploading",Fe.percentage=Math.round(Ie.percent))},pe=(Ie,Ve)=>{const Fe=oe(Ve);Fe&&(Fe.status="success",Fe.response=Ie,t.onSuccess(Ie,Fe,V.value),t.onChange(Fe,V.value))},he=Ie=>{isNil(Ie.uid)&&(Ie.uid=genFileId());const Ve={name:Ie.name,percentage:0,status:"ready",size:Ie.size,raw:Ie,uid:Ie.uid};if(t.listType==="picture-card"||t.listType==="picture")try{Ve.url=URL.createObjectURL(Ie)}catch(Fe){Fe.message,t.onError(Fe,Ve,V.value)}V.value=[...V.value,Ve],t.onChange(Ve,V.value)},_e=async Ie=>{const Ve=Ie instanceof File?oe(Ie):Ie;Ve||throwError$1(SCOPE$1,"file to be removed not found");const Fe=Ue=>{ie(Ue);const qe=V.value;qe.splice(qe.indexOf(Ue),1),t.onRemove(Ue,qe),revokeObjectURL(Ue)};t.beforeRemove?await t.beforeRemove(Ve,V.value)!==!1&&Fe(Ve):Fe(Ve)};function $e(){V.value.filter(({status:Ie})=>Ie==="ready").forEach(({raw:Ie})=>{var Ve;return Ie&&((Ve=r.value)==null?void 0:Ve.upload(Ie))})}return watch(()=>t.listType,Ie=>{Ie!=="picture-card"&&Ie!=="picture"||(V.value=V.value.map(Ve=>{const{raw:Fe,url:Ue}=Ve;if(!Ue&&Fe)try{Ve.url=URL.createObjectURL(Fe)}catch(qe){t.onError(qe,Ve,V.value)}return Ve}))}),watch(V,Ie=>{for(const Ve of Ie)Ve.uid||(Ve.uid=genFileId()),Ve.status||(Ve.status="success")},{immediate:!0,deep:!0}),{uploadFiles:V,abort:ie,clearFiles:le,handleError:ue,handleProgress:de,handleStart:he,handleSuccess:pe,handleRemove:_e,submit:$e}},__default__$2=defineComponent({name:"ElUpload"}),_sfc_main$5=defineComponent({...__default__$2,props:uploadProps,setup(t,{expose:r}){const V=t,oe=useFormDisabled(),ie=shallowRef(),{abort:le,submit:ue,clearFiles:de,uploadFiles:pe,handleStart:he,handleError:_e,handleRemove:$e,handleSuccess:Ie,handleProgress:Ve}=useHandlers(V,ie),Fe=computed(()=>V.listType==="picture-card"),Ue=computed(()=>({...V,fileList:pe.value,onStart:he,onProgress:Ve,onSuccess:Ie,onError:_e,onRemove:$e}));return onBeforeUnmount(()=>{pe.value.forEach(({url:qe})=>{qe!=null&&qe.startsWith("blob:")&&URL.revokeObjectURL(qe)})}),provide(uploadContextKey,{accept:toRef(V,"accept")}),r({abort:le,submit:ue,clearFiles:de,handleStart:he,handleRemove:$e}),(qe,Et)=>(openBlock(),createElementBlock("div",null,[unref(Fe)&&qe.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(oe),"list-type":qe.listType,files:unref(pe),"handle-preview":qe.onPreview,onRemove:unref($e)},createSlots({append:withCtx(()=>[createVNode(UploadContent,mergeProps({ref_key:"uploadRef",ref:ie},unref(Ue)),{default:withCtx(()=>[qe.$slots.trigger?renderSlot(qe.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!qe.$slots.trigger&&qe.$slots.default?renderSlot(qe.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[qe.$slots.file?{name:"default",fn:withCtx(({file:At})=>[renderSlot(qe.$slots,"file",{file:At})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!unref(Fe)||unref(Fe)&&!qe.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:ie},unref(Ue)),{default:withCtx(()=>[qe.$slots.trigger?renderSlot(qe.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!qe.$slots.trigger&&qe.$slots.default?renderSlot(qe.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),qe.$slots.trigger?renderSlot(qe.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(qe.$slots,"tip"),!unref(Fe)&&qe.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(oe),"list-type":qe.listType,files:unref(pe),"handle-preview":qe.onPreview,onRemove:unref($e)},createSlots({_:2},[qe.$slots.file?{name:"default",fn:withCtx(({file:At})=>[renderSlot(qe.$slots,"file",{file:At})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}});var Upload=_export_sfc$1(_sfc_main$5,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ElUpload=withInstall(Upload);var Components=[ElAffix,ElAlert,ElAutocomplete,ElAutoResizer,ElAvatar,ElBacktop,ElBadge,ElBreadcrumb,ElBreadcrumbItem,ElButton,ElButtonGroup$1,ElCalendar,ElCard,ElCarousel,ElCarouselItem,ElCascader,ElCascaderPanel,ElCheckTag,ElCheckbox,ElCheckboxButton,ElCheckboxGroup$1,ElCol,ElCollapse,ElCollapseItem,ElCollapseTransition,ElColorPicker,ElConfigProvider,ElContainer,ElAside,ElFooter,ElHeader,ElMain,ElDatePicker,ElDescriptions,ElDescriptionsItem,ElDialog,ElDivider,ElDrawer,ElDropdown,ElDropdownItem,ElDropdownMenu,ElEmpty,ElForm,ElFormItem,ElIcon,ElImage,ElImageViewer,ElInput,ElInputNumber,ElLink,ElMenu,ElMenuItem,ElMenuItemGroup,ElSubMenu,ElPageHeader,ElPagination,ElPopconfirm,ElPopover,ElPopper,ElProgress,ElRadio,ElRadioButton,ElRadioGroup,ElRate,ElResult,ElRow,ElScrollbar,ElSelect,ElOption,ElOptionGroup,ElSelectV2,ElSkeleton,ElSkeletonItem,ElSlider,ElSpace,ElStatistic,ElCountdown,ElSteps,ElStep,ElSwitch,ElTable,ElTableColumn,ElTableV2,ElTabs,ElTabPane,ElTag,ElText,ElTimePicker,ElTimeSelect,ElTimeline,ElTimelineItem,ElTooltip,ElTooltipV2,ElTransfer,ElTree,ElTreeSelect,ElTreeV2,ElUpload];const SCOPE="ElInfiniteScroll",CHECK_INTERVAL=50,DEFAULT_DELAY=200,DEFAULT_DISTANCE=0,attributes={delay:{type:Number,default:DEFAULT_DELAY},distance:{type:Number,default:DEFAULT_DISTANCE},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},getScrollOptions=(t,r)=>Object.entries(attributes).reduce((V,[oe,ie])=>{var le,ue;const{type:de,default:pe}=ie,he=t.getAttribute(`infinite-scroll-${oe}`);let _e=(ue=(le=r[he])!=null?le:he)!=null?ue:pe;return _e=_e==="false"?!1:_e,_e=de(_e),V[oe]=Number.isNaN(_e)?pe:_e,V},{}),destroyObserver=t=>{const{observer:r}=t[SCOPE];r&&(r.disconnect(),delete t[SCOPE].observer)},handleScroll=(t,r)=>{const{container:V,containerEl:oe,instance:ie,observer:le,lastScrollTop:ue}=t[SCOPE],{disabled:de,distance:pe}=getScrollOptions(t,ie),{clientHeight:he,scrollHeight:_e,scrollTop:$e}=oe,Ie=$e-ue;if(t[SCOPE].lastScrollTop=$e,le||de||Ie<0)return;let Ve=!1;if(V===t)Ve=_e-(he+$e)<=pe;else{const{clientTop:Fe,scrollHeight:Ue}=t,qe=getOffsetTopDistance(t,oe);Ve=$e+he>=qe+Fe+Ue-pe}Ve&&r.call(ie)};function checkFull(t,r){const{containerEl:V,instance:oe}=t[SCOPE],{disabled:ie}=getScrollOptions(t,oe);ie||V.clientHeight===0||(V.scrollHeight<=V.clientHeight?r.call(oe):destroyObserver(t))}const InfiniteScroll={async mounted(t,r){const{instance:V,value:oe}=r;isFunction$5(oe)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:ie,immediate:le}=getScrollOptions(t,V),ue=getScrollContainer(t,!0),de=ue===window?document.documentElement:ue,pe=throttle$1(handleScroll.bind(null,t,oe),ie);if(ue){if(t[SCOPE]={instance:V,container:ue,containerEl:de,delay:ie,cb:oe,onScroll:pe,lastScrollTop:de.scrollTop},le){const he=new MutationObserver(throttle$1(checkFull.bind(null,t,oe),CHECK_INTERVAL));t[SCOPE].observer=he,he.observe(t,{childList:!0,subtree:!0}),checkFull(t,oe)}ue.addEventListener("scroll",pe)}},unmounted(t){const{container:r,onScroll:V}=t[SCOPE];r==null||r.removeEventListener("scroll",V),destroyObserver(t)},async updated(t){if(!t[SCOPE])await nextTick();else{const{containerEl:r,cb:V,observer:oe}=t[SCOPE];r.clientHeight&&oe&&checkFull(t,V)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=t=>{t.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent(t){let r;const V=ref(!1),oe=reactive({...t,originalPosition:"",originalOverflow:"",visible:!1});function ie(Ie){oe.text=Ie}function le(){const Ie=oe.parent,Ve=$e.ns;if(!Ie.vLoadingAddClassList){let Fe=Ie.getAttribute("loading-number");Fe=Number.parseInt(Fe)-1,Fe?Ie.setAttribute("loading-number",Fe.toString()):(removeClass(Ie,Ve.bm("parent","relative")),Ie.removeAttribute("loading-number")),removeClass(Ie,Ve.bm("parent","hidden"))}ue(),_e.unmount()}function ue(){var Ie,Ve;(Ve=(Ie=$e.$el)==null?void 0:Ie.parentNode)==null||Ve.removeChild($e.$el)}function de(){var Ie;t.beforeClose&&!t.beforeClose()||(V.value=!0,clearTimeout(r),r=window.setTimeout(pe,400),oe.visible=!1,(Ie=t.closed)==null||Ie.call(t))}function pe(){if(!V.value)return;const Ie=oe.parent;V.value=!1,Ie.vLoadingAddClassList=void 0,le()}const he=defineComponent({name:"ElLoading",setup(Ie,{expose:Ve}){const{ns:Fe,zIndex:Ue}=useGlobalComponentSettings("loading");return Ve({ns:Fe,zIndex:Ue}),()=>{const qe=oe.spinner||oe.svg,Et=h$2("svg",{class:"circular",viewBox:oe.svgViewBox?oe.svgViewBox:"0 0 50 50",...qe?{innerHTML:qe}:{}},[h$2("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),At=oe.text?h$2("p",{class:Fe.b("text")},[oe.text]):void 0;return h$2(Transition,{name:Fe.b("fade"),onAfterLeave:pe},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:oe.background||""},class:[Fe.b("mask"),oe.customClass,oe.fullscreen?"is-fullscreen":""]},[h$2("div",{class:Fe.b("spinner")},[Et,At])]),[[vShow,oe.visible]])])})}}}),_e=createApp(he),$e=_e.mount(document.createElement("div"));return{...toRefs(oe),setText:ie,removeElLoadingChild:ue,close:de,handleAfterLeave:pe,vm:$e,get $el(){return $e.$el}}}let fullscreenInstance;const Loading=function(t={}){if(!isClient$1)return;const r=resolveOptions(t);if(r.fullscreen&&fullscreenInstance)return fullscreenInstance;const V=createLoadingComponent({...r,closed:()=>{var ie;(ie=r.closed)==null||ie.call(r),r.fullscreen&&(fullscreenInstance=void 0)}});addStyle(r,r.parent,V),addClassList(r,r.parent,V),r.parent.vLoadingAddClassList=()=>addClassList(r,r.parent,V);let oe=r.parent.getAttribute("loading-number");return oe?oe=`${Number.parseInt(oe)+1}`:oe="1",r.parent.setAttribute("loading-number",oe),r.parent.appendChild(V.$el),nextTick(()=>V.visible.value=r.visible),r.fullscreen&&(fullscreenInstance=V),V},resolveOptions=t=>{var r,V,oe,ie;let le;return isString$6(t.target)?le=(r=document.querySelector(t.target))!=null?r:document.body:le=t.target||document.body,{parent:le===document.body||t.body?document.body:le,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:le===document.body&&((V=t.fullscreen)!=null?V:!0),lock:(oe=t.lock)!=null?oe:!1,customClass:t.customClass||"",visible:(ie=t.visible)!=null?ie:!0,target:le}},addStyle=async(t,r,V)=>{const{nextZIndex:oe}=V.vm.zIndex||V.vm._.exposed.zIndex,ie={};if(t.fullscreen)V.originalPosition.value=getStyle$1(document.body,"position"),V.originalOverflow.value=getStyle$1(document.body,"overflow"),ie.zIndex=oe();else if(t.parent===document.body){V.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const le of["top","left"]){const ue=le==="top"?"scrollTop":"scrollLeft";ie[le]=`${t.target.getBoundingClientRect()[le]+document.body[ue]+document.documentElement[ue]-Number.parseInt(getStyle$1(document.body,`margin-${le}`),10)}px`}for(const le of["height","width"])ie[le]=`${t.target.getBoundingClientRect()[le]}px`}else V.originalPosition.value=getStyle$1(r,"position");for(const[le,ue]of Object.entries(ie))V.$el.style[le]=ue},addClassList=(t,r,V)=>{const oe=V.vm.ns||V.vm._.exposed.ns;["absolute","fixed","sticky"].includes(V.originalPosition.value)?removeClass(r,oe.bm("parent","relative")):addClass(r,oe.bm("parent","relative")),t.fullscreen&&t.lock?addClass(r,oe.bm("parent","hidden")):removeClass(r,oe.bm("parent","hidden"))},INSTANCE_KEY=Symbol("ElLoading"),createInstance$1=(t,r)=>{var V,oe,ie,le;const ue=r.instance,de=Ie=>isObject$9(r.value)?r.value[Ie]:void 0,pe=Ie=>{const Ve=isString$6(Ie)&&(ue==null?void 0:ue[Ie])||Ie;return Ve&&ref(Ve)},he=Ie=>pe(de(Ie)||t.getAttribute(`element-loading-${hyphenate(Ie)}`)),_e=(V=de("fullscreen"))!=null?V:r.modifiers.fullscreen,$e={text:he("text"),svg:he("svg"),svgViewBox:he("svgViewBox"),spinner:he("spinner"),background:he("background"),customClass:he("customClass"),fullscreen:_e,target:(oe=de("target"))!=null?oe:_e?void 0:t,body:(ie=de("body"))!=null?ie:r.modifiers.body,lock:(le=de("lock"))!=null?le:r.modifiers.lock};t[INSTANCE_KEY]={options:$e,instance:Loading($e)}},updateOptions=(t,r)=>{for(const V of Object.keys(r))isRef(r[V])&&(r[V].value=t[V])},vLoading={mounted(t,r){r.value&&createInstance$1(t,r)},updated(t,r){const V=t[INSTANCE_KEY];r.oldValue!==r.value&&(r.value&&!r.oldValue?createInstance$1(t,r):r.value&&r.oldValue?isObject$9(r.value)&&updateOptions(r.value,V.options):V==null||V.instance.close())},unmounted(t){var r;(r=t[INSTANCE_KEY])==null||r.instance.close()}},ElLoading={install(t){t.directive("loading",vLoading),t.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["success","info","warning","error"],messageDefaults=mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient$1?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},center:{type:Boolean,default:messageDefaults.center},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults.duration},icon:{type:iconPropType,default:messageDefaults.icon},id:{type:String,default:messageDefaults.id},message:{type:definePropType([String,Object,Function]),default:messageDefaults.message},onClose:{type:definePropType(Function),required:!1},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},offset:{type:Number,default:messageDefaults.offset},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},instances$2=shallowReactive([]),getInstance$1=t=>{const r=instances$2.findIndex(ie=>ie.id===t),V=instances$2[r];let oe;return r>0&&(oe=instances$2[r-1]),{current:V,prev:oe}},getLastOffset=t=>{const{prev:r}=getInstance$1(t);return r?r.vm.exposed.bottom.value:0},getOffsetOrSpace=(t,r)=>instances$2.findIndex(oe=>oe.id===t)>0?20:r,_hoisted_1$4=["id"],_hoisted_2$4=["innerHTML"],__default__$1=defineComponent({name:"ElMessage"}),_sfc_main$4=defineComponent({...__default__$1,props:messageProps,emits:messageEmits,setup(t,{expose:r}){const V=t,{Close:oe}=TypeComponents,{ns:ie,zIndex:le}=useGlobalComponentSettings("message"),{currentZIndex:ue,nextZIndex:de}=le,pe=ref(),he=ref(!1),_e=ref(0);let $e;const Ie=computed(()=>V.type?V.type==="error"?"danger":V.type:"info"),Ve=computed(()=>{const bn=V.type;return{[ie.bm("icon",bn)]:bn&&TypeComponentsMap[bn]}}),Fe=computed(()=>V.icon||TypeComponentsMap[V.type]||""),Ue=computed(()=>getLastOffset(V.id)),qe=computed(()=>getOffsetOrSpace(V.id,V.offset)+Ue.value),Et=computed(()=>_e.value+qe.value),At=computed(()=>({top:`${qe.value}px`,zIndex:ue.value}));function Lt(){V.duration!==0&&({stop:$e}=useTimeoutFn$1(()=>{_n()},V.duration))}function hn(){$e==null||$e()}function _n(){he.value=!1}function vn({code:bn}){bn===EVENT_CODE.esc&&_n()}return onMounted(()=>{Lt(),de(),he.value=!0}),watch(()=>V.repeatNum,()=>{hn(),Lt()}),useEventListener$1(document,"keydown",vn),useResizeObserver$1(pe,()=>{_e.value=pe.value.getBoundingClientRect().height}),r({visible:he,bottom:Et,close:_n}),(bn,Cn)=>(openBlock(),createBlock(Transition,{name:unref(ie).b("fade"),onBeforeLeave:bn.onClose,onAfterLeave:Cn[0]||(Cn[0]=Sn=>bn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:bn.id,ref_key:"messageRef",ref:pe,class:normalizeClass([unref(ie).b(),{[unref(ie).m(bn.type)]:bn.type&&!bn.icon},unref(ie).is("center",bn.center),unref(ie).is("closable",bn.showClose),bn.customClass]),style:normalizeStyle$1(unref(At)),role:"alert",onMouseenter:hn,onMouseleave:Lt},[bn.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:bn.repeatNum,type:unref(Ie),class:normalizeClass(unref(ie).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(Fe)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ie).e("icon"),unref(Ve)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Fe))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(bn.$slots,"default",{},()=>[bn.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass(unref(ie).e("content")),innerHTML:bn.message},null,10,_hoisted_2$4)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(ie).e("content"))},toDisplayString$1(bn.message),3))]),bn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(ie).e("closeBtn")),onClick:withModifiers(_n,["stop"])},{default:withCtx(()=>[createVNode(unref(oe))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$4),[[vShow,he.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc$1(_sfc_main$4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed$1=1;const normalizeOptions=t=>{const r=!t||isString$6(t)||isVNode$1(t)||isFunction$5(t)?{message:t}:t,V={...messageDefaults,...r};if(!V.appendTo)V.appendTo=document.body;else if(isString$6(V.appendTo)){let oe=document.querySelector(V.appendTo);isElement$2(oe)||(oe=document.body),V.appendTo=oe}return V},closeMessage=t=>{const r=instances$2.indexOf(t);if(r===-1)return;instances$2.splice(r,1);const{handler:V}=t;V.close()},createMessage=({appendTo:t,...r},V)=>{const oe=`message_${seed$1++}`,ie=r.onClose,le=document.createElement("div"),ue={...r,id:oe,onClose:()=>{ie==null||ie(),closeMessage(_e)},onDestroy:()=>{render$4(null,le)}},de=createVNode(MessageConstructor,ue,isFunction$5(ue.message)||isVNode$1(ue.message)?{default:isFunction$5(ue.message)?ue.message:()=>ue.message}:null);de.appContext=V||message$1._context,render$4(de,le),t.appendChild(le.firstElementChild);const pe=de.component,_e={id:oe,vnode:de,vm:pe,handler:{close:()=>{pe.exposed.visible.value=!1}},props:de.component.props};return _e},message$1=(t={},r)=>{if(!isClient$1)return{close:()=>{}};if(isNumber$4(messageConfig.max)&&instances$2.length>=messageConfig.max)return{close:()=>{}};const V=normalizeOptions(t);if(V.grouping&&instances$2.length){const ie=instances$2.find(({vnode:le})=>{var ue;return((ue=le.props)==null?void 0:ue.message)===V.message});if(ie)return ie.props.repeatNum+=1,ie.props.type=V.type,ie.handler}const oe=createMessage(V,r);return instances$2.push(oe),oe.handler};messageTypes.forEach(t=>{message$1[t]=(r={},V)=>{const oe=normalizeOptions(r);return message$1({...oe,type:t},V)}});function closeAll$1(t){for(const r of instances$2)(!t||t===r.props.type)&&r.handler.close()}message$1.closeAll=closeAll$1;message$1._context=null;const ElMessage=withInstallFunction(message$1,"$message"),_sfc_main$3=defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton,ElFocusTrap,ElInput,ElOverlay,ElIcon,...TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:r}){const{locale:V,zIndex:oe,ns:ie,size:le}=useGlobalComponentSettings("message-box",computed(()=>t.buttonSize)),{t:ue}=V,{nextZIndex:de}=oe,pe=ref(!1),he=reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:de()}),_e=computed(()=>{const Nn=he.type;return{[ie.bm("icon",Nn)]:Nn&&TypeComponentsMap[Nn]}}),$e=useId(),Ie=useId(),Ve=computed(()=>he.icon||TypeComponentsMap[he.type]||""),Fe=computed(()=>!!he.message),Ue=ref(),qe=ref(),Et=ref(),At=ref(),Lt=ref(),hn=computed(()=>he.confirmButtonClass);watch(()=>he.inputValue,async Nn=>{await nextTick(),t.boxType==="prompt"&&Nn!==null&&En()},{immediate:!0}),watch(()=>pe.value,Nn=>{var Dn,Mn;Nn&&(t.boxType!=="prompt"&&(he.autofocus?Et.value=(Mn=(Dn=Lt.value)==null?void 0:Dn.$el)!=null?Mn:Ue.value:Et.value=Ue.value),he.zIndex=de()),t.boxType==="prompt"&&(Nn?nextTick().then(()=>{var Ln;At.value&&At.value.$el&&(he.autofocus?Et.value=(Ln=xn())!=null?Ln:Ue.value:Et.value=Ue.value)}):(he.editorErrorMessage="",he.validateError=!1))});const _n=computed(()=>t.draggable);useDraggable(Ue,qe,_n),onMounted(async()=>{await nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",vn)}),onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",vn)});function vn(){pe.value&&(pe.value=!1,nextTick(()=>{he.action&&r("action",he.action)}))}const bn=()=>{t.closeOnClickModal&&wn(he.distinguishCancelAndClose?"close":"cancel")},Cn=useSameTarget(bn),Sn=Nn=>{if(he.inputType!=="textarea")return Nn.preventDefault(),wn("confirm")},wn=Nn=>{var Dn;t.boxType==="prompt"&&Nn==="confirm"&&!En()||(he.action=Nn,he.beforeClose?(Dn=he.beforeClose)==null||Dn.call(he,Nn,he,vn):vn())},En=()=>{if(t.boxType==="prompt"){const Nn=he.inputPattern;if(Nn&&!Nn.test(he.inputValue||""))return he.editorErrorMessage=he.inputErrorMessage||ue("el.messagebox.error"),he.validateError=!0,!1;const Dn=he.inputValidator;if(typeof Dn=="function"){const Mn=Dn(he.inputValue);if(Mn===!1)return he.editorErrorMessage=he.inputErrorMessage||ue("el.messagebox.error"),he.validateError=!0,!1;if(typeof Mn=="string")return he.editorErrorMessage=Mn,he.validateError=!0,!1}}return he.editorErrorMessage="",he.validateError=!1,!0},xn=()=>{const Nn=At.value.$refs;return Nn.input||Nn.textarea},Pn=()=>{wn("close")},kn=()=>{t.closeOnPressEscape&&Pn()};return t.lockScroll&&useLockscreen(pe),{...toRefs(he),ns:ie,overlayEvent:Cn,visible:pe,hasMessage:Fe,typeClass:_e,contentId:$e,inputId:Ie,btnSize:le,iconComponent:Ve,confirmButtonClasses:hn,rootRef:Ue,focusStartRef:Et,headerRef:qe,inputRef:At,confirmRef:Lt,doClose:vn,handleClose:Pn,onCloseRequested:kn,handleWrapperClick:bn,handleInputEnter:Sn,handleAction:wn,t:ue}}}),_hoisted_1$3=["aria-label","aria-describedby"],_hoisted_2$3=["aria-label"],_hoisted_3$3=["id"];function _sfc_render$1(t,r,V,oe,ie,le){const ue=resolveComponent("el-icon"),de=resolveComponent("close"),pe=resolveComponent("el-input"),he=resolveComponent("el-button"),_e=resolveComponent("el-focus-trap"),$e=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:r[11]||(r[11]=Ie=>t.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode($e,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:r[8]||(r[8]=(...Ie)=>t.overlayEvent.onClick&&t.overlayEvent.onClick(...Ie)),onMousedown:r[9]||(r[9]=(...Ie)=>t.overlayEvent.onMousedown&&t.overlayEvent.onMousedown(...Ie)),onMouseup:r[10]||(r[10]=(...Ie)=>t.overlayEvent.onMouseup&&t.overlayEvent.onMouseup(...Ie))},[createVNode(_e,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:normalizeStyle$1(t.customStyle),tabindex:"-1",onClick:r[7]||(r[7]=withModifiers(()=>{},["stop"]))},[t.title!==null&&t.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass(t.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(openBlock(),createBlock(ue,{key:0,class:normalizeClass([t.ns.e("status"),t.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString$1(t.title),1)],2),t.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:r[0]||(r[0]=Ie=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel")),onKeydown:r[1]||(r[1]=withKeys(withModifiers(Ie=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(ue,{class:normalizeClass(t.ns.e("close"))},{default:withCtx(()=>[createVNode(de)]),_:1},8,["class"])],42,_hoisted_2$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:t.contentId,class:normalizeClass(t.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(openBlock(),createBlock(ue,{key:0,class:normalizeClass([t.ns.e("status"),t.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),t.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.e("message"))},[renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString$1(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(t.ns.e("input"))},[createVNode(pe,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":r[2]||(r[2]=Ie=>t.inputValue=Ie),type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:normalizeClass({invalid:t.validateError}),onKeydown:withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass(t.ns.e("errormsg")),style:normalizeStyle$1({visibility:t.editorErrorMessage?"visible":"hidden"})},toDisplayString$1(t.editorErrorMessage),7)],2),[[vShow,t.showInput]])],10,_hoisted_3$3),createBaseVNode("div",{class:normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(openBlock(),createBlock(he,{key:0,loading:t.cancelButtonLoading,class:normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:r[3]||(r[3]=Ie=>t.handleAction("cancel")),onKeydown:r[4]||(r[4]=withKeys(withModifiers(Ie=>t.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode(he,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,class:normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:r[5]||(r[5]=Ie=>t.handleAction("confirm")),onKeydown:r[6]||(r[6]=withKeys(withModifiers(Ie=>t.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,t.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$3)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,t.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,getAppendToElement=t=>{let r=document.body;return t.appendTo&&(isString$6(t.appendTo)&&(r=document.querySelector(t.appendTo)),isElement$2(t.appendTo)&&(r=t.appendTo),isElement$2(r)||(r=document.body)),r},initInstance=(t,r,V=null)=>{const oe=createVNode(MessageBoxConstructor,t,isFunction$5(t.message)||isVNode$1(t.message)?{default:isFunction$5(t.message)?t.message:()=>t.message}:null);return oe.appContext=V,render$4(oe,r),getAppendToElement(t).appendChild(r.firstElementChild),oe.component},genContainer=()=>document.createElement("div"),showMessage=(t,r)=>{const V=genContainer();t.onVanish=()=>{render$4(null,V),messageInstance.delete(ie)},t.onAction=le=>{const ue=messageInstance.get(ie);let de;t.showInput?de={value:ie.inputValue,action:le}:de=le,t.callback?t.callback(de,oe.proxy):le==="cancel"||le==="close"?t.distinguishCancelAndClose&&le!=="cancel"?ue.reject("close"):ue.reject("cancel"):ue.resolve(de)};const oe=initInstance(t,V,r),ie=oe.proxy;for(const le in t)hasOwn$4(t,le)&&!hasOwn$4(ie.$props,le)&&(ie[le]=t[le]);return ie.visible=!0,ie};function MessageBox(t,r=null){if(!isClient$1)return Promise.reject();let V;return isString$6(t)||isVNode$1(t)?t={message:t}:V=t.callback,new Promise((oe,ie)=>{const le=showMessage(t,r??MessageBox._context);messageInstance.set(le,{options:t,callback:V,resolve:oe,reject:ie})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};MESSAGE_BOX_VARIANTS.forEach(t=>{MessageBox[t]=messageBoxFactory(t)});function messageBoxFactory(t){return(r,V,oe,ie)=>{let le="";return isObject$9(V)?(oe=V,le=""):isUndefined$1(V)?le="":le=V,MessageBox(Object.assign({title:le,message:r,type:"",...MESSAGE_BOX_DEFAULT_OPTS[t]},oe,{boxType:t}),ie)}}MessageBox.close=()=>{messageInstance.forEach((t,r)=>{r.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=t=>{_MessageBox._context=t._context,t.config.globalProperties.$msgbox=_MessageBox,t.config.globalProperties.$messageBox=_MessageBox,t.config.globalProperties.$alert=_MessageBox.alert,t.config.globalProperties.$confirm=_MessageBox.confirm,t.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,notificationTypes=["success","info","warning","error"],notificationProps=buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:iconPropType},id:{type:String,default:""},message:{type:definePropType([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:definePropType(Function),default:()=>{}},onClose:{type:definePropType(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...notificationTypes,""],default:""},zIndex:Number}),notificationEmits={destroy:()=>!0},_hoisted_1$2=["id"],_hoisted_2$2=["textContent"],_hoisted_3$2={key:0},_hoisted_4$1=["innerHTML"],__default__=defineComponent({name:"ElNotification"}),_sfc_main$2=defineComponent({...__default__,props:notificationProps,emits:notificationEmits,setup(t,{expose:r}){const V=t,{ns:oe,zIndex:ie}=useGlobalComponentSettings("notification"),{nextZIndex:le,currentZIndex:ue}=ie,{Close:de}=CloseComponents,pe=ref(!1);let he;const _e=computed(()=>{const Lt=V.type;return Lt&&TypeComponentsMap[V.type]?oe.m(Lt):""}),$e=computed(()=>V.type&&TypeComponentsMap[V.type]||V.icon),Ie=computed(()=>V.position.endsWith("right")?"right":"left"),Ve=computed(()=>V.position.startsWith("top")?"top":"bottom"),Fe=computed(()=>{var Lt;return{[Ve.value]:`${V.offset}px`,zIndex:(Lt=V.zIndex)!=null?Lt:ue.value}});function Ue(){V.duration>0&&({stop:he}=useTimeoutFn$1(()=>{pe.value&&Et()},V.duration))}function qe(){he==null||he()}function Et(){pe.value=!1}function At({code:Lt}){Lt===EVENT_CODE.delete||Lt===EVENT_CODE.backspace?qe():Lt===EVENT_CODE.esc?pe.value&&Et():Ue()}return onMounted(()=>{Ue(),le(),pe.value=!0}),useEventListener$1(document,"keydown",At),r({visible:pe,close:Et}),(Lt,hn)=>(openBlock(),createBlock(Transition,{name:unref(oe).b("fade"),onBeforeLeave:Lt.onClose,onAfterLeave:hn[1]||(hn[1]=_n=>Lt.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:Lt.id,class:normalizeClass([unref(oe).b(),Lt.customClass,unref(Ie)]),style:normalizeStyle$1(unref(Fe)),role:"alert",onMouseenter:qe,onMouseleave:Ue,onClick:hn[0]||(hn[0]=(..._n)=>Lt.onClick&&Lt.onClick(..._n))},[unref($e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(oe).e("icon"),unref(_e)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref($e))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(oe).e("title")),textContent:toDisplayString$1(Lt.title)},null,10,_hoisted_2$2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(oe).e("content")),style:normalizeStyle$1(Lt.title?void 0:{margin:0})},[renderSlot(Lt.$slots,"default",{},()=>[Lt.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:Lt.message},null,8,_hoisted_4$1)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$2,toDisplayString$1(Lt.message),1))])],6),[[vShow,Lt.message]]),Lt.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("closeBtn")),onClick:withModifiers(Et,["stop"])},{default:withCtx(()=>[createVNode(unref(de))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$2),[[vShow,pe.value]])]),_:3},8,["name","onBeforeLeave"]))}});var NotificationConstructor=_export_sfc$1(_sfc_main$2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const notifications={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},GAP_SIZE=16;let seed=1;const notify=function(t={},r=null){if(!isClient$1)return{close:()=>{}};(typeof t=="string"||isVNode$1(t))&&(t={message:t});const V=t.position||"top-right";let oe=t.offset||0;notifications[V].forEach(({vm:_e})=>{var $e;oe+=((($e=_e.el)==null?void 0:$e.offsetHeight)||0)+GAP_SIZE}),oe+=GAP_SIZE;const ie=`notification_${seed++}`,le=t.onClose,ue={...t,offset:oe,id:ie,onClose:()=>{close(ie,V,le)}};let de=document.body;isElement$2(t.appendTo)?de=t.appendTo:isString$6(t.appendTo)&&(de=document.querySelector(t.appendTo)),isElement$2(de)||(de=document.body);const pe=document.createElement("div"),he=createVNode(NotificationConstructor,ue,isVNode$1(ue.message)?{default:()=>ue.message}:null);return he.appContext=r??notify._context,he.props.onDestroy=()=>{render$4(null,pe)},render$4(he,pe),notifications[V].push({vm:he}),de.appendChild(pe.firstElementChild),{close:()=>{he.component.exposed.visible.value=!1}}};notificationTypes.forEach(t=>{notify[t]=(r={})=>((typeof r=="string"||isVNode$1(r))&&(r={message:r}),notify({...r,type:t}))});function close(t,r,V){const oe=notifications[r],ie=oe.findIndex(({vm:he})=>{var _e;return((_e=he.component)==null?void 0:_e.props.id)===t});if(ie===-1)return;const{vm:le}=oe[ie];if(!le)return;V==null||V(le);const ue=le.el.offsetHeight,de=r.split("-")[0];oe.splice(ie,1);const pe=oe.length;if(!(pe<1))for(let he=ie;he{r.component.exposed.visible.value=!1})}notify.closeAll=closeAll;notify._context=null;const ElNotification=withInstallFunction(notify,"$notify");var Plugins=[ElInfiniteScroll,ElLoading,ElMessage,ElMessageBox,ElNotification,ElPopoverDirective],installer=makeInstaller([...Components,...Plugins]);/*! Element Plus v2.3.12 */var en$1={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"}}},ct=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,$t$1=Object.getOwnPropertyNames,It=Object.prototype.hasOwnProperty,Dt=(t,r)=>{for(var V in r)ct(t,V,{get:r[V],enumerable:!0})},at=(t,r,V,oe)=>{if(r&&typeof r=="object"||typeof r=="function")for(let ie of $t$1(r))!It.call(t,ie)&&ie!==V&&ct(t,ie,{get:()=>r[ie],enumerable:!(oe=kt(r,ie))||oe.enumerable});return t},et=(t,r,V)=>(at(t,r,"default"),V&&at(V,r,"default"));function lt$1(t){let r=t.split(","),V=r[0].match(/:(.*?);/)[1],oe=window.atob(r[1]),ie=oe.length,le=new Uint8Array(ie);for(;ie--;)le[ie]=oe.charCodeAt(ie);return new Blob([le],{type:V})}function ft(t,r,V){return new Promise((oe,ie)=>{let le=document.createElement("CANVAS"),ue=le.getContext("2d"),de=new Image;de.crossOrigin="",de.onload=function(){if(!le||!ue)return ie();le.height=de.height,le.width=de.width,ue.drawImage(de,0,0);let pe=le.toDataURL(r||"image/png",V);le=null,oe(pe)},de.src=t})}var Pt=Object.prototype.toString;function O(t,r){return Pt.call(t)===`[object ${r}]`}function k(t){return t!==null&&O(t,"Object")}function R(t){return typeof t<"u"}function mt(t){return!R(t)}function dt(t){return t===null}function Ut(t){return dt(t)||mt(t)}function Nt(t){return $(t)||A(t)?t.length===0:t instanceof Map||t instanceof Set?t.size===0:k(t)?Object.keys(t).length===0:!1}function N(t){return!!(Nt(t)||Ut(t))}function B(t){return O(t,"Number")}function A(t){return O(t,"String")}function q$1(t){return typeof t=="function"}function Le(t){return O(t,"Boolean")}function $(t){return t&&Array.isArray(t)}var nt=typeof window>"u",rt$1=!nt;function gt(t){let r="^((https|http|ftp|rtsp|mms)?://)(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,5})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(r,"ig").test(t)}function Be$1(t){return/^[1](([3][0-9])|([4][0,1,4-9])|([5][0-3,5-9])|([6][2,5,6,7])|([7][0-8])|([8][0-9])|([9][0-3,5-9]))[0-9]{8}$/.test(t)}function He(t){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(t)}var z=(t,r)=>!!(t!=null&&t.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))),Ze=(t,r,V)=>{z(t,r)||(t.className+=" "+r),V&&!z(t,V)&&(t.className+=" "+V)},Ge=(t,r,V)=>{if(z(t,r)){let oe=new RegExp("(\\s|^)"+r+"(\\s|$)");t.className=t.className.replace(oe," ").trim()}if(V&&z(t,V)){let oe=new RegExp("(\\s|^)"+V+"(\\s|$)");t.className=t.className.replace(oe," ").trim()}},Qe=(t,r,V)=>{let oe=V||document.body,{className:ie}=oe,le=ie.replace(r,"").trim().split(/\s+/).join(" ");oe.className=t?`${le} ${r}`:le},Bt=Object.prototype.toString;function Ht(t,r){return t&&t.hasOwnProperty?t.hasOwnProperty(r):!1}function jt(t,r,V){if(t)if(t.forEach)t.forEach(r,V);else for(let oe=0,ie=t.length;oe{let r=(t==null?void 0:t.type)??"rgb",V=(t==null?void 0:t.num)??0;if(V===0)switch(r){case"rgb":return window.crypto.getRandomValues(new Uint8Array(3)).toString();case"hex":return`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`;case"hsl":return[360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString()}else switch(r){case"rgb":let oe=[];for(let ue=0;ue{if(t==0)return"0 Bytes";let V=1024,oe=r||2,ie=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],le=Math.floor(Math.log(t)/Math.log(V));return parseFloat((t/Math.pow(V,le)).toFixed(oe))+" "+ie[le]};function On(t,r=!0){let V=ue=>(ue=Math.floor(ue),ue<10&&r?`0${ue}`:ue),oe=V(t/3600),ie=V(t%3600/60),le=V(t%60);return{h:oe,m:ie,s:le}}var D$1=(t=20)=>new Promise(r=>setTimeout(r,t)),vt=(t,r=200,V=!1)=>{let oe,ie=r,le;return function(){oe&&clearTimeout(oe),V?(oe||t.call(le,...arguments),oe=setTimeout(()=>oe=null,ie)):oe=setTimeout(()=>t.call(le,...arguments),ie)}},Rn=(t,r=1e3)=>{let V;return function(){V||(V=setTimeout(()=>{t.call(void 0,...arguments),V=null},r))}},$n=()=>{let t=navigator.userAgent.toLowerCase(),r=t.match(/midp/i)=="midp",V=t.match(/ucweb/i)=="ucweb",oe=t.match(/android/i)=="android",ie=t.match(/iphone os/i)=="iphone os",le=t.match(/windows ce/i)=="windows ce",ue=t.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",de=t.match(/windows mobile/i)=="windows mobile";return r||V||oe||ie||le||ue||de},Mt=(t,r="_blank")=>{let V=document.createElement("a");V.setAttribute("href",t),V.setAttribute("target",r),V.setAttribute("rel","noreferrer noopener"),V.setAttribute("id","external");let oe=document.getElementById("external");oe&&document.body.removeChild(oe),document.body.appendChild(V),V.click(),V.remove()};function Bn(t,r,V,oe){ft(t).then(ie=>{zt(ie,r,V,oe)})}function zt(t,r,V,oe){let ie=lt$1(t);_t(ie,r,V,oe)}function _t(t,r,V,oe){let ie=typeof oe<"u"?[oe,t]:[t],le=new Blob(ie,{type:V||"application/octet-stream"}),ue=window.URL.createObjectURL(le),de=document.createElement("a");de.style.display="none",de.href=ue,de.setAttribute("download",r),typeof de.download>"u"&&de.setAttribute("target","_blank"),document.body.appendChild(de),de.click(),document.body.removeChild(de),window.URL.revokeObjectURL(ue)}function Hn(t,r,V="_self"){let oe=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,ie=window.navigator.userAgent.toLowerCase().indexOf("safari")>-1;if(/(iP)/g.test(window.navigator.userAgent))return console.error("Your browser does not support download!"),!1;if(oe||ie){let le=document.createElement("a");if(le.href=t,le.target=V,le.download!==void 0&&(le.download=r||t.substring(t.lastIndexOf("/")+1,t.length)),document.createEvent){let ue=document.createEvent("MouseEvents");return ue.initEvent("click",!0,!0),le.dispatchEvent(ue),!0}}return t.indexOf("?")===-1&&(t+="?download"),Mt(t,V),!0}function St(t,r){if(t===r)return!0;if(typeof t!="object"||typeof r!="object"||t==null||r==null)return!1;let V=Object.keys(t),oe=Object.keys(r);if(V.length!==oe.length)return!1;for(let ie of V)if(!oe.includes(ie)||!St(t[ie],r[ie]))return!1;return!0}function Wt(t,r){if(!t||!r)return!1;let{length:V}=t;if(V!==r.length)return!1;for(let oe=0;oe{if(t.install=V=>{for(let oe of[t,...Object.values(r??{})])V.component(oe.name,oe)},r)for(let[V,oe]of Object.entries(r))t[V]=oe;return t},H=class{constructor(t){io(this,"storage");this.storage=t}setItem(t,r){N(this.storage)||this.storage.setItem(t,JSON.stringify(r))}getItem(t){if(!N(this.storage))return JSON.parse(this.storage.getItem(t))}removeItem(t){N(this.storage)||this.storage.removeItem(t)}clear(){N(this.storage)||this.storage.clear()}},Q=class extends H{constructor(t){super(t)}},nr=()=>rt$1?new Q(window.localStorage):new Q(""),rr=()=>rt$1?new H(window.sessionStorage):new H("");function Vt(t,r){return A(r)?t.substring(0,t.indexOf(r)):""}function Zt(t,r){return A(r)?t.substring(t.lastIndexOf(r)+r.length,t.length):""}function lr(t,r,V="*"){B(t)&&(t=t.toString()),$(r)||(r=Array.of(r));let oe=t.split("");for(let ie=0;ie=0&&ue=0&&(oe[r[ie]]=V)}return oe.join("")}function hr(t){if(!gt(t))return console.error(`${t}不符合超链接规范`),{};let r=t.indexOf("?"),V=t.slice(r+1).split("&"),oe={};for(let ie=0;ier.some(oe=>oe===V))}var vr=(...t)=>[...t].reduce((r,V)=>r.filter(oe=>V.includes(oe)));function Sr(t,r){let V=[];for(let oe of t)oe[r]&&V.push(oe[r]);return Array.from(new Set(V))}var a$1={};Dt(a$1,{Vue:()=>vue_runtime_esmBundler});et(a$1,vue_runtime_esmBundler);function se(t,{target:r=document.body}={}){let V=document.createElement("textarea"),oe=document.activeElement;V.value=t,V.setAttribute("readonly",""),V.style.contain="strict",V.style.position="absolute",V.style.left="-9999px",V.style.fontSize="12pt";let ie=document.getSelection(),le;ie&&ie.rangeCount>0&&(le=ie.getRangeAt(0)),r.append(V),V.select(),V.selectionStart=0,V.selectionEnd=t.length;let ue=!1;try{ue=document.execCommand("copy")}catch(de){throw new Error(de)}return V.remove(),le&&ie&&(ie.removeAllRanges(),ie.addRange(le)),oe&&oe.focus(),ue}function L$1(t){(0,a$1.getCurrentInstance)()&&(0,a$1.onUnmounted)(t)}var Yr=()=>{let t=(0,a$1.shallowRef)(!1),r,V=()=>{t.value=document.documentElement.classList.contains("dark")};return L$1(()=>{r.takeRecords(),r.disconnect()}),(0,a$1.onBeforeMount)(()=>{V(),r=new MutationObserver(V),r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:t}};function Ct(){let{appContext:{config:{globalProperties:t}}}=(0,a$1.getCurrentInstance)();return t}var to=(t,r)=>{let V=(r==null?void 0:r.theme)??(0,a$1.ref)("default"),oe=(r==null?void 0:r.tooltipId)??"tooltipElement",ie=Ct().$echarts,le=null,ue=(0,a$1.ref)({}),de=(0,a$1.ref)(),pe=(0,a$1.computed)(()=>V.value!=="dark"?ue.value:{backgroundColor:"transparent",...ue.value});function he(Sn){let wn=(0,a$1.unref)(t);!wn||!(0,a$1.unref)(wn)||(le=ie.init(wn,Sn))}function _e(Sn,...wn){var En;if(ue.value=Sn,de.value=wn,((En=(0,a$1.unref)(t))==null?void 0:En.offsetHeight)===0){D$1().then(()=>_e((0,a$1.unref)(pe),...wn));return}(0,a$1.nextTick)(()=>{D$1().then(()=>{!le&&he(V.value),(Sn.clear??!0)&&$e(),le==null||le.setOption((0,a$1.unref)(pe)),wn&&wn.map(xn=>{(xn==null?void 0:xn.type)!=="zrender"&&typeof(xn==null?void 0:xn.callback)=="function"&&(le==null||le.on(xn==null?void 0:xn.name,xn!=null&&xn.query?xn==null?void 0:xn.query:"",Pn=>{xn==null||xn.callback(Pn)})),(xn==null?void 0:xn.type)==="zrender"&&typeof(xn==null?void 0:xn.callback)=="function"&&(le==null||le.getZr().on(xn==null?void 0:xn.name,Pn=>{Pn.target||(xn==null||xn.callback(Pn))}))}),Sn!=null&&Sn.addTooltip&&bn(Sn.addTooltip)})})}function $e(){le&&le.clear()}function Ie(){le.resize()}function Ve(Sn){let wn=(Sn==null?void 0:Sn.type)??"default",En=(Sn==null?void 0:Sn.opts)??{};le.showLoading(wn,En)}function Fe(){le.hideLoading()}function Ue(Sn){le.appendData(Sn)}function qe(){return le.getWidth()}function Et(){return le.getHeight()}function At(){return le||he(V.value),le}function Lt(){return le.getDom()}function hn(){return le.getOption()}function _n(Sn){return le.getDataURL(Sn)}function vn(Sn){return le.getConnectedDataURL(Sn)}function bn(Sn){if(!Sn)return;let wn=document.querySelector("html");if(!document.getElementById(oe)){let Pn=document.createElement("div");Pn.setAttribute("id",oe),Pn.style.display="block",wn.appendChild(Pn)}let En=document.querySelector(`#${oe}`),xn=Pn=>{if((Pn==null?void 0:Pn.targetType)!=="axisLabel")return;let kn=` padding: 5px; font-size: 12px; display: inline; border-radius: 4px; position: absolute; background-color: #303133; z-index: 99999;color: #fff; box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 8px; `;En.style.cssText=kn,En.innerHTML=Pn==null?void 0:Pn.value,wn.onmousemove=Nn=>{let Dn=Nn.pageX-10,Mn=Nn.pageY+15;En.style.top=Mn+"px",En.style.left=Dn+"px"}};le==null||le.on("mouseover",Pn=>{(Sn==="x"&&Pn.componentType=="xAxis"||Sn==="y"&&Pn.componentType=="yAxis"||Sn.toString()==="true"&&Pn.componentType.includes("Axis"))&&xn(Pn)}),le==null||le.on("mouseout",()=>{wn.onmousemove=null,En.style.cssText="display:none"})}(0,a$1.watch)(()=>V.value,Sn=>{le&&(le.dispose(),he(Sn),_e(ue.value,...de.value))});function Cn(){var Sn;!le||D$1(((Sn=ue.value)==null?void 0:Sn.delay)??300).then(()=>{Ie()})}return(0,a$1.onMounted)(()=>{(0,a$1.nextTick)(()=>{window.addEventListener("resize",Cn)})}),L$1(()=>{var Sn;window.removeEventListener("resize",Cn),le&&(le.dispose(),le=null,(Sn=document.querySelector(`#${oe}`))==null||Sn.remove())}),{echarts:ie,clear:$e,resize:Ie,getDom:Lt,getWidth:qe,getOption:hn,getHeight:Et,addTooltip:bn,getDataURL:_n,setOptions:_e,appendData:Ue,getInstance:At,showLoading:Ve,hideLoading:Fe,getConnectedDataURL:vn}},j$2=665,F=665;function ro(t=!0){let r,V;function oe(le){var ue;return document.querySelector(`#pure-utils-css-${j$2}`)&&((ue=document.querySelector(`#pure-utils-css-${j$2}`))==null||ue.remove()),j$2+=1,new Promise((de,pe)=>{r=document.createElement("link"),r.id=`pure-utils-css-${j$2}`,r.rel="stylesheet",r.onload=function(){de("success")},r.onerror=function(he){pe(he)},r.href=le.src,document[(le==null?void 0:le.carrier)??"head"].appendChild(r)})}function ie(le){var ue;return document.querySelector(`#pure-utils-script-${F}`)&&((ue=document.querySelector(`#pure-utils-script-${F}`))==null||ue.remove()),F+=1,new Promise((de,pe)=>{V=document.createElement("script"),V.id=`pure-utils-script-${F}`,V.type="text/javascript",V.onload=function(){de("success")},V.onerror=function(he){pe(he)},V.src=le.src,document[(le==null?void 0:le.carrier)??"head"].appendChild(V)})}return L$1(()=>{t&&(r&&(r==null||r.remove()),V&&(V==null||V.remove()),j$2=665,F=665)}),{loadCss:oe,loadScript:ie}}var ae=Symbol("watermark-dom"),mo=(t=(0,a$1.ref)(document.body))=>{let r=ae.toString(),V=(0,a$1.shallowRef)(),oe=()=>{let $e=(0,a$1.unref)(V);V.value=void 0;let Ie=(0,a$1.unref)(t);!Ie||$e&&Ie.removeChild($e)};function ie($e,Ie){let Ve=document.createElement("canvas"),Fe=(Ie==null?void 0:Ie.width)??250,Ue=(Ie==null?void 0:Ie.height)??100;Object.assign(Ve,{width:Fe,height:Ue});let qe=Ve.getContext("2d");if(qe){if(qe.rotate(((Ie==null?void 0:Ie.rotate)??-10*Math.PI)/120),qe.font=(Ie==null?void 0:Ie.font)??"15px Reggae One",(Ie==null?void 0:Ie.gradient)&&$(Ie==null?void 0:Ie.gradient)){let Et=qe.createLinearGradient(0,0,Fe,0);Ie==null||Ie.gradient.forEach(At=>{Et.addColorStop(At.value,At.color)}),qe.fillStyle=Et}else qe.fillStyle=(Ie==null?void 0:Ie.fillStyle)??"rgba(0, 0, 0, 0.15)";if(qe.textAlign="left",qe.textBaseline="middle",Ie!=null&&Ie.globalAlpha&&(qe.globalAlpha=Ie.globalAlpha),Ie==null?void 0:Ie.shadowConfig){let{shadowConfig:Et}=Ie;qe.shadowBlur=Et[0],qe.shadowColor=(Et==null?void 0:Et[1])??"#000000",qe.shadowOffsetX=(Et==null?void 0:Et[2])??0,qe.shadowOffsetY=(Et==null?void 0:Et[3])??0}qe.fillText($e,Fe/((Ie==null?void 0:Ie.fillTextWidth)??20),Ue/((Ie==null?void 0:Ie.fillTextHeight)??2))}return Ve.toDataURL("image/png")}function le($e={}){let Ie=(0,a$1.unref)(V);!Ie||(R($e.width)&&(Ie.style.width=`${$e.width}px`),R($e.height)&&(Ie.style.height=`${$e.height}px`),R($e.str)&&(Ie.style.background=`url(${ie($e.str,$e.attr)}) left top repeat`))}let ue=vt(()=>{let $e=(0,a$1.unref)(t);if(!$e)return;let{clientHeight:Ie,clientWidth:Ve}=$e;le({height:Ie,width:Ve})}),de=($e,Ie)=>{var Et;if((0,a$1.unref)(V))return le({str:$e,attr:Ie}),r;let Ve=document.createElement("div");V.value=Ve,Ve.id=r,Ve.style.pointerEvents="none",Ve.style.top="0px",Ve.style.left="0px",Ve.style.position="absolute",Ve.style.zIndex=(Ie==null?void 0:Ie.zIndex)??"100000";let Fe=(0,a$1.unref)(t);if(!Fe)return r;let{clientHeight:Ue,clientWidth:qe}=Fe;return le({str:$e,width:qe,height:Ue,attr:Ie}),(Et=Fe==null?void 0:Fe.style)!=null&&Et.position||(Fe.style.position="relative"),Fe.appendChild(Ve),r};function pe($e,{str:Ie,attr:Ve}){$e[0].removedNodes[0]&&$e[0].removedNodes[0].id===r&&(V.value=void 0,de(Ie,Ve))}function he($e,Ie){let Ve={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(Fe=>pe(Fe,{str:$e,attr:Ie})).observe((0,a$1.unref)(t),Ve)}function _e($e,Ie){de($e,Ie),window.addEventListener("resize",ue),Ie!=null&&Ie.forever&&he($e,Ie),(0,a$1.getCurrentInstance)()&&oe&&oe()}return L$1(()=>{window.removeEventListener("resize",ue)}),{clear:oe,setWatermark:_e}};const data$1={width:24,height:24,body:''},data={width:24,height:24,body:''},_hoisted_1$1={key:0,class:"flex items-center justify-between"},_hoisted_2$1=["id"],_hoisted_3$1={key:1},_sfc_main$1=defineComponent({__name:"index",setup(t){const r=ref(!1),V=computed(()=>ue=>{var de;return((de=ue==null?void 0:ue.footerButtons)==null?void 0:de.length)>0?ue.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:pe,index:he}})=>{const _e=()=>closeDialog(pe,he,{command:"cancel"});pe!=null&&pe.beforeCancel&&q$1(pe==null?void 0:pe.beforeCancel)?pe.beforeCancel(_e,{options:pe,index:he}):_e()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:pe,index:he}})=>{const _e=()=>closeDialog(pe,he,{command:"sure"});pe!=null&&pe.beforeSure&&q$1(pe==null?void 0:pe.beforeSure)?pe.beforeSure(_e,{options:pe,index:he}):_e()}}]}),oe=computed(()=>["el-icon","el-dialog__close","-translate-x-2","cursor-pointer","hover:!text-[red]"]);function ie(ue,de,pe){if(r.value=(de==null?void 0:de.fullscreen)??!1,de!=null&&de[ue]&&q$1(de==null?void 0:de[ue]))return de==null?void 0:de[ue]({options:de,index:pe})}function le(ue,de,pe={command:"close"}){closeDialog(ue,de,pe),ie("close",ue,de)}return(ue,de)=>{const pe=resolveComponent("IconifyIconOffline"),he=resolveComponent("el-button"),_e=resolveComponent("el-dialog");return openBlock(!0),createElementBlock(Fragment,null,renderList(unref(dialogStore),($e,Ie)=>(openBlock(),createBlock(_e,mergeProps({class:"pure-dialog",key:Ie},$e,{modelValue:$e.visible,"onUpdate:modelValue":Ve=>$e.visible=Ve,fullscreen:r.value?!0:!!($e!=null&&$e.fullscreen),onClose:Ve=>le($e,Ie),onOpened:Ve=>ie("open",$e,Ie),onOpenAutoFocus:Ve=>ie("openAutoFocus",$e,Ie),onCloseAutoFocus:Ve=>ie("closeAutoFocus",$e,Ie)}),createSlots({default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($e.contentRenderer({options:$e,index:Ie})),mergeProps($e==null?void 0:$e.props,{onClose:Ve=>le($e,Ie,Ve)}),null,16,["onClose"]))]),_:2},[$e!=null&&$e.fullscreenIcon||$e!=null&&$e.headerRenderer?{name:"header",fn:withCtx(({close:Ve,titleId:Fe,titleClass:Ue})=>[$e!=null&&$e.fullscreenIcon?(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("span",{id:Fe,class:normalizeClass(Ue)},toDisplayString$1($e==null?void 0:$e.title),11,_hoisted_2$1),$e!=null&&$e.fullscreen?createCommentVNode("",!0):(openBlock(),createElementBlock("i",{key:0,class:normalizeClass(oe.value),onClick:de[0]||(de[0]=qe=>r.value=!r.value)},[createVNode(pe,{class:"pure-dialog-svg",icon:$e!=null&&$e.fullscreen||r.value?unref(data):unref(data$1)},null,8,["icon"])],2))])):(openBlock(),createBlock(resolveDynamicComponent($e==null?void 0:$e.headerRenderer({close:Ve,titleId:Fe,titleClass:Ue})),{key:1}))]),key:"0"}:void 0,$e!=null&&$e.hideFooter?void 0:{name:"footer",fn:withCtx(()=>[$e!=null&&$e.footerRenderer?(openBlock(),createBlock(resolveDynamicComponent($e==null?void 0:$e.footerRenderer({options:$e,index:Ie})),{key:0})):(openBlock(),createElementBlock("span",_hoisted_3$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(V.value($e),(Ve,Fe)=>(openBlock(),createBlock(he,mergeProps({key:Fe},Ve,{onClick:Ue=>Ve.btnClick({dialog:{options:$e,index:Ie},button:{btn:Ve,index:Fe}})}),{default:withCtx(()=>[createTextVNode(toDisplayString$1(Ve==null?void 0:Ve.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","fullscreen","onClose","onOpened","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose(t){return getCurrentScope()?(onScopeDispose(t),!0):!1}function toValue(t){return typeof t=="function"?t():unref(t)}const isClient=typeof window<"u"&&typeof document<"u",isDef=t=>typeof t<"u",notNullish=t=>t!=null,toString$1=Object.prototype.toString,isObject$7=t=>toString$1.call(t)==="[object Object]",noop$4=()=>{},isIOS=getIsIOS();function getIsIOS(){var t;return isClient&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(t,r){function V(...oe){return new Promise((ie,le)=>{Promise.resolve(t(()=>r.apply(this,oe),{fn:r,thisArg:this,args:oe})).then(ie).catch(le)})}return V}function debounceFilter(t,r={}){let V,oe,ie=noop$4;const le=de=>{clearTimeout(de),ie(),ie=noop$4};return de=>{const pe=toValue(t),he=toValue(r.maxWait);return V&&le(V),pe<=0||he!==void 0&&he<=0?(oe&&(le(oe),oe=null),Promise.resolve(de())):new Promise((_e,$e)=>{ie=r.rejectOnCancel?$e:_e,he&&!oe&&(oe=setTimeout(()=>{V&&le(V),oe=null,_e(de())},he)),V=setTimeout(()=>{oe&&le(oe),oe=null,_e(de())},pe)})}}function useDebounceFn(t,r=200,V={}){return createFilterWrapper(debounceFilter(r,V),t)}function tryOnMounted(t,r=!0){getCurrentInstance()?onMounted(t):r?t():nextTick(t)}function tryOnUnmounted(t){getCurrentInstance()&&onUnmounted(t)}function useIntervalFn(t,r=1e3,V={}){const{immediate:oe=!0,immediateCallback:ie=!1}=V;let le=null;const ue=ref(!1);function de(){le&&(clearInterval(le),le=null)}function pe(){ue.value=!1,de()}function he(){const _e=toValue(r);_e<=0||(ue.value=!0,ie&&t(),de(),le=setInterval(t,_e))}if(oe&&isClient&&he(),isRef(r)||typeof r=="function"){const _e=watch(r,()=>{ue.value&&isClient&&he()});tryOnScopeDispose(_e)}return tryOnScopeDispose(pe),{isActive:ue,pause:pe,resume:he}}function useTimeoutFn(t,r,V={}){const{immediate:oe=!0}=V,ie=ref(!1);let le=null;function ue(){le&&(clearTimeout(le),le=null)}function de(){ie.value=!1,ue()}function pe(...he){ue(),ie.value=!0,le=setTimeout(()=>{ie.value=!1,le=null,t(...he)},toValue(r))}return oe&&(ie.value=!0,isClient&&pe()),tryOnScopeDispose(de),{isPending:readonly(ie),start:pe,stop:de}}function unrefElement(t){const r=toValue(t);return(r==null?void 0:r.$el)??r}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...t){let r,V,oe,ie;if(typeof t[0]=="string"||Array.isArray(t[0])?([V,oe,ie]=t,r=defaultWindow):[r,V,oe,ie]=t,!r)return noop$4;Array.isArray(V)||(V=[V]),Array.isArray(oe)||(oe=[oe]);const le=[],ue=()=>{le.forEach(_e=>_e()),le.length=0},de=(_e,$e,Ie,Ve)=>(_e.addEventListener($e,Ie,Ve),()=>_e.removeEventListener($e,Ie,Ve)),pe=watch(()=>[unrefElement(r),toValue(ie)],([_e,$e])=>{ue(),_e&&le.push(...V.flatMap(Ie=>oe.map(Ve=>de(_e,Ie,Ve,$e))))},{immediate:!0,flush:"post"}),he=()=>{pe(),ue()};return tryOnScopeDispose(he),he}let _iOSWorkaround=!1;function onClickOutside(t,r,V={}){const{window:oe=defaultWindow,ignore:ie=[],capture:le=!0,detectIframe:ue=!1}=V;if(!oe)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(oe.document.body.children).forEach(Ie=>Ie.addEventListener("click",noop$4)),oe.document.documentElement.addEventListener("click",noop$4));let de=!0;const pe=Ie=>ie.some(Ve=>{if(typeof Ve=="string")return Array.from(oe.document.querySelectorAll(Ve)).some(Fe=>Fe===Ie.target||Ie.composedPath().includes(Fe));{const Fe=unrefElement(Ve);return Fe&&(Ie.target===Fe||Ie.composedPath().includes(Fe))}}),_e=[useEventListener(oe,"click",Ie=>{const Ve=unrefElement(t);if(!(!Ve||Ve===Ie.target||Ie.composedPath().includes(Ve))){if(Ie.detail===0&&(de=!pe(Ie)),!de){de=!0;return}r(Ie)}},{passive:!0,capture:le}),useEventListener(oe,"pointerdown",Ie=>{const Ve=unrefElement(t);Ve&&(de=!Ie.composedPath().includes(Ve)&&!pe(Ie))},{passive:!0}),ue&&useEventListener(oe,"blur",Ie=>{setTimeout(()=>{var Fe;const Ve=unrefElement(t);((Fe=oe.document.activeElement)==null?void 0:Fe.tagName)==="IFRAME"&&!(Ve!=null&&Ve.contains(oe.document.activeElement))&&r(Ie)},0)})].filter(Boolean);return()=>_e.forEach(Ie=>Ie())}function createKeyPredicate(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function onKeyStroke(...t){let r,V,oe={};t.length===3?(r=t[0],V=t[1],oe=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,V=t[0],oe=t[1]):(r=t[0],V=t[1]):(r=!0,V=t[0]);const{target:ie=defaultWindow,eventName:le="keydown",passive:ue=!1,dedupe:de=!1}=oe,pe=createKeyPredicate(r);return useEventListener(ie,le,_e=>{_e.repeat&&toValue(de)||pe(_e)&&V(_e)},ue)}function templateRef(t,r=null){const V=getCurrentInstance();let oe=()=>{};const ie=customRef((le,ue)=>(oe=ue,{get(){var de;return le(),((de=V==null?void 0:V.proxy)==null?void 0:de.$refs[t])??r},set(){}}));return tryOnMounted(oe),onUpdated(oe),ie}function useMounted(){const t=ref(!1);return getCurrentInstance()&&onMounted(()=>{t.value=!0}),t}function useSupported(t){const r=useMounted();return computed(()=>(r.value,!!t()))}function useMediaQuery(t,r={}){const{window:V=defaultWindow}=r,oe=useSupported(()=>V&&"matchMedia"in V&&typeof V.matchMedia=="function");let ie;const le=ref(!1),ue=he=>{le.value=he.matches},de=()=>{ie&&("removeEventListener"in ie?ie.removeEventListener("change",ue):ie.removeListener(ue))},pe=watchEffect(()=>{oe.value&&(de(),ie=V.matchMedia(toValue(t)),"addEventListener"in ie?ie.addEventListener("change",ue):ie.addListener(ue),le.value=ie.matches)});return tryOnScopeDispose(()=>{pe(),de(),ie=void 0}),le}function cloneFnJSON(t){return JSON.parse(JSON.stringify(t))}function useResizeObserver(t,r,V={}){const{window:oe=defaultWindow,...ie}=V;let le;const ue=useSupported(()=>oe&&"ResizeObserver"in oe),de=()=>{le&&(le.disconnect(),le=void 0)},pe=computed(()=>Array.isArray(t)?t.map($e=>unrefElement($e)):[unrefElement(t)]),he=watch(pe,$e=>{if(de(),ue.value&&oe){le=new ResizeObserver(r);for(const Ie of $e)Ie&&le.observe(Ie,ie)}},{immediate:!0,flush:"post",deep:!0}),_e=()=>{de(),he()};return tryOnScopeDispose(_e),{isSupported:ue,stop:_e}}function useIntersectionObserver(t,r,V={}){const{root:oe,rootMargin:ie="0px",threshold:le=.1,window:ue=defaultWindow,immediate:de=!0}=V,pe=useSupported(()=>ue&&"IntersectionObserver"in ue),he=computed(()=>{const Fe=toValue(t);return(Array.isArray(Fe)?Fe:[Fe]).map(unrefElement).filter(notNullish)});let _e=noop$4;const $e=ref(de),Ie=pe.value?watch(()=>[he.value,unrefElement(oe),$e.value],([Fe,Ue])=>{if(_e(),!$e.value||!Fe.length)return;const qe=new IntersectionObserver(r,{root:unrefElement(Ue),rootMargin:ie,threshold:le});Fe.forEach(Et=>Et&&qe.observe(Et)),_e=()=>{qe.disconnect(),_e=noop$4}},{immediate:de,flush:"post"}):noop$4,Ve=()=>{_e(),Ie(),$e.value=!1};return tryOnScopeDispose(Ve),{isSupported:pe,isActive:$e,pause(){_e(),$e.value=!1},resume(){$e.value=!0},stop:Ve}}const eventHandlers=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function useFullscreen(t,r={}){const{document:V=defaultDocument,autoExit:oe=!1}=r,ie=computed(()=>unrefElement(t)??(V==null?void 0:V.querySelector("html"))),le=ref(!1),ue=computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(Et=>V&&Et in V||ie.value&&Et in ie.value)),de=computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(Et=>V&&Et in V||ie.value&&Et in ie.value)),pe=computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(Et=>V&&Et in V||ie.value&&Et in ie.value)),he=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(Et=>V&&Et in V),_e=useSupported(()=>ie.value&&V&&ue.value!==void 0&&de.value!==void 0&&pe.value!==void 0),$e=()=>he?(V==null?void 0:V[he])===ie.value:!1,Ie=()=>{if(pe.value){if(V&&V[pe.value]!=null)return V[pe.value];{const Et=ie.value;if((Et==null?void 0:Et[pe.value])!=null)return!!Et[pe.value]}}return!1};async function Ve(){if(!(!_e.value||!le.value)){if(de.value)if((V==null?void 0:V[de.value])!=null)await V[de.value]();else{const Et=ie.value;(Et==null?void 0:Et[de.value])!=null&&await Et[de.value]()}le.value=!1}}async function Fe(){if(!_e.value||le.value)return;Ie()&&await Ve();const Et=ie.value;ue.value&&(Et==null?void 0:Et[ue.value])!=null&&(await Et[ue.value](),le.value=!0)}async function Ue(){await(le.value?Ve():Fe())}const qe=()=>{const Et=Ie();(!Et||Et&&$e())&&(le.value=Et)};return useEventListener(V,eventHandlers,qe,!1),useEventListener(()=>unrefElement(ie),eventHandlers,qe,!1),oe&&tryOnScopeDispose(Ve),{isSupported:_e,isFullscreen:le,enter:Fe,exit:Ve,toggle:Ue}}function useVModel(t,r,V,oe={}){var qe,Et,At;const{clone:ie=!1,passive:le=!1,eventName:ue,deep:de=!1,defaultValue:pe,shouldEmit:he}=oe,_e=getCurrentInstance(),$e=V||(_e==null?void 0:_e.emit)||((qe=_e==null?void 0:_e.$emit)==null?void 0:qe.bind(_e))||((At=(Et=_e==null?void 0:_e.proxy)==null?void 0:Et.$emit)==null?void 0:At.bind(_e==null?void 0:_e.proxy));let Ie=ue;r||(r="modelValue"),Ie=Ie||`update:${r.toString()}`;const Ve=Lt=>ie?typeof ie=="function"?ie(Lt):cloneFnJSON(Lt):Lt,Fe=()=>isDef(t[r])?Ve(t[r]):pe,Ue=Lt=>{he?he(Lt)&&$e(Ie,Lt):$e(Ie,Lt)};if(le){const Lt=Fe(),hn=ref(Lt);let _n=!1;return watch(()=>t[r],vn=>{_n||(_n=!0,hn.value=Ve(vn),nextTick(()=>_n=!1))}),watch(hn,vn=>{!_n&&(vn!==t[r]||de)&&Ue(vn)},{deep:de}),hn}else return computed({get(){return Fe()},set(Lt){Ue(Lt)}})}function useWindowSize(t={}){const{window:r=defaultWindow,initialWidth:V=Number.POSITIVE_INFINITY,initialHeight:oe=Number.POSITIVE_INFINITY,listenOrientation:ie=!0,includeScrollbar:le=!0}=t,ue=ref(V),de=ref(oe),pe=()=>{r&&(le?(ue.value=r.innerWidth,de.value=r.innerHeight):(ue.value=r.document.documentElement.clientWidth,de.value=r.document.documentElement.clientHeight))};if(pe(),tryOnMounted(pe),useEventListener("resize",pe,{passive:!0}),ie){const he=useMediaQuery("(orientation: portrait)");watch(he,()=>pe())}return{width:ue,height:de}}const dialogStore=ref([]),addDialog=t=>{const r=()=>dialogStore.value.push(Object.assign(t,{visible:!0}));t!=null&&t.openDelay?useTimeoutFn(()=>{r()},t.openDelay):r()},closeDialog=(t,r,V)=>{dialogStore.value.splice(r,1),t.closeCallBack&&t.closeCallBack({options:t,index:r,args:V})},updateDialog=(t,r="title",V=0)=>{dialogStore.value[V][r]=t},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=zn(_sfc_main$1);/*! Element Plus v2.3.12 */var zhCn={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const _sfc_main=defineComponent({name:"app",components:{[ElConfigProvider.name]:ElConfigProvider,ReDialog},computed:{currentLocale(){var t;return((t=this.$storage.locale)==null?void 0:t.locale)==="zh"?zhCn:en$1}},beforeCreate(){const{version:t,name:r}={dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.9","@logicflow/core":"^1.2.12","@logicflow/extension":"^1.2.13","@pureadmin/descriptions":"^1.1.1","@pureadmin/table":"^2.3.3","@pureadmin/utils":"^1.9.7","@vueuse/core":"^10.4.0","@vueuse/motion":"^2.0.0","@wangeditor/editor":"^5.1.23","@wangeditor/editor-for-vue":"^5.1.12","@zxcvbn-ts/core":"^3.0.3","animate.css":"^4.1.1",axios:"^1.5.0","china-area-data":"^5.0.1",cropperjs:"^1.6.0",dayjs:"^1.11.9",echarts:"^5.4.3","el-table-infinite-scroll":"^3.0.1","element-plus":"^2.3.12","intro.js":"^7.2.0","js-cookie":"^3.0.5",jsbarcode:"^3.11.5","md-editor-v3":"2.7.2","mint-filter":"^4.0.3",mitt:"^3.0.1",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.1.6","pinyin-pro":"^3.16.3",qrcode:"^1.5.3",qs:"^6.11.2","responsive-storage":"^2.2.0",sortablejs:"^1.15.0",swiper:"^10.2.0",typeit:"^8.7.1","v-contextmenu":"3.0.0","v3-infinite-loading":"^1.3.1","version-rocket":"^1.7.0",vue:"^3.3.4","vue-i18n":"^9.2.2","vue-json-pretty":"^2.2.4","vue-pdf-embed":"^1.1.6","vue-router":"^4.2.4","vue-tippy":"^6.3.1","vue-types":"^5.1.1","vue-virtual-scroller":"2.0.0-beta.7","vue-waterfall-plugin-next":"^2.2.3","vue3-danmaku":"^1.5.1",vuedraggable:"^4.1.0","wavesurfer.js":"^7.1.5",xgplayer:"^3.0.8",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^17.7.1","@commitlint/config-conventional":"^17.7.0","@iconify-icons/ep":"^1.2.12","@iconify-icons/ri":"^1.2.10","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^0.11.0","@pureadmin/theme":"^3.1.0","@types/intro.js":"^5.1.1","@types/js-cookie":"^3.0.3","@types/mockjs":"^1.0.7","@types/node":"^18.17.12","@types/nprogress":"0.2.0","@types/qrcode":"^1.5.1","@types/qs":"^6.9.7","@types/sortablejs":"^1.15.1","@typescript-eslint/eslint-plugin":"^5.62.0","@typescript-eslint/parser":"^5.62.0","@vitejs/plugin-vue":"^4.3.3","@vitejs/plugin-vue-jsx":"^3.0.2","@vue/eslint-config-prettier":"^7.1.0","@vue/eslint-config-typescript":"^11.0.3",autoprefixer:"^10.4.15",cloc:"^2.11.0",cssnano:"^6.0.1",eslint:"^8.48.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-vue":"^9.17.0",husky:"^8.0.3","lint-staged":"^13.3.0",picocolors:"^1.0.0",postcss:"^8.4.28","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.7",prettier:"^2.8.8","pretty-quick":"^3.1.3",rimraf:"^5.0.1","rollup-plugin-visualizer":"^5.9.2",sass:"^1.66.1","sass-loader":"^13.3.2",stylelint:"^15.10.3","stylelint-config-html":"^1.1.0","stylelint-config-recess-order":"^4.3.0","stylelint-config-recommended":"^12.0.0","stylelint-config-recommended-scss":"^12.0.0","stylelint-config-recommended-vue":"^1.5.0","stylelint-config-standard":"^33.0.0","stylelint-config-standard-scss":"^9.0.0","stylelint-order":"^6.0.3","stylelint-prettier":"^3.0.0","stylelint-scss":"^5.1.0",svgo:"^3.0.2",tailwindcss:"^3.3.3",terser:"^5.19.2",typescript:"5.0.4",vite:"^4.4.9","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"2.9.6","vite-plugin-remove-console":"^2.1.1","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.3.1","vue-tsc":"^1.8.8"},name:"vue-pure-admin",version:"4.5.0"},{VITE_PUBLIC_PATH:V,MODE:oe}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};oe==="production"&&checkVersion({pollingTime:3e5,localPackageVersion:t,originVersionFileUrl:`${location.origin}${V}version.json`},{title:r,description:"检测到新版本",buttonText:"立即更新"})}}),_export_sfc=(t,r)=>{const V=t.__vccOpts||t;for(const[oe,ie]of r)V[oe]=ie;return V};function _sfc_render(t,r,V,oe,ie,le){const ue=resolveComponent("router-view"),de=resolveComponent("ReDialog"),pe=resolveComponent("el-config-provider");return openBlock(),createBlock(pe,{locale:t.currentLocale},{default:withCtx(()=>[createVNode(ue),createVNode(de)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function(t){return"/vue-pure-admin/"+t},seen={},__vitePreload=function(r,V,oe){if(!V||V.length===0)return r();const ie=document.getElementsByTagName("link");return Promise.all(V.map(le=>{if(le=assetsURL(le),le in seen)return;seen[le]=!0;const ue=le.endsWith(".css"),de=ue?'[rel="stylesheet"]':"";if(!!oe)for(let _e=ie.length-1;_e>=0;_e--){const $e=ie[_e];if($e.href===le&&(!ue||$e.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${le}"]${de}`))return;const he=document.createElement("link");if(he.rel=ue?"stylesheet":scriptRel,ue||(he.as="script",he.crossOrigin=""),he.href=le,document.head.appendChild(he),ue)return new Promise((_e,$e)=>{he.addEventListener("load",_e),he.addEventListener("error",()=>$e(new Error(`Unable to preload CSS for ${le}`)))})})).then(()=>r()).catch(le=>{const ue=new Event("vite:preloadError",{cancelable:!0});if(ue.payload=le,window.dispatchEvent(ue),!ue.defaultPrevented)throw le})},resource$1={buttons:{hsLoginOut:t=>{const{normalize:r}=t;return r(["LoginOut"])},hsfullscreen:t=>{const{normalize:r}=t;return r(["FullScreen"])},hsexitfullscreen:t=>{const{normalize:r}=t;return r(["ExitFullscreen"])},hsrefreshRoute:t=>{const{normalize:r}=t;return r(["RefreshRoute"])},hslogin:t=>{const{normalize:r}=t;return r(["Login"])},hsadd:t=>{const{normalize:r}=t;return r(["Add"])},hsmark:t=>{const{normalize:r}=t;return r(["Mark/Cancel"])},hssave:t=>{const{normalize:r}=t;return r(["Save"])},hssearch:t=>{const{normalize:r}=t;return r(["Search"])},hsexpendAll:t=>{const{normalize:r}=t;return r(["Expand All"])},hscollapseAll:t=>{const{normalize:r}=t;return r(["Collapse All"])},hssystemSet:t=>{const{normalize:r}=t;return r(["Open ProjectConfig"])},hsdelete:t=>{const{normalize:r}=t;return r(["Delete"])},hsreload:t=>{const{normalize:r}=t;return r(["Reload"])},hscloseCurrentTab:t=>{const{normalize:r}=t;return r(["Close CurrentTab"])},hscloseLeftTabs:t=>{const{normalize:r}=t;return r(["Close LeftTabs"])},hscloseRightTabs:t=>{const{normalize:r}=t;return r(["Close RightTabs"])},hscloseOtherTabs:t=>{const{normalize:r}=t;return r(["Close OtherTabs"])},hscloseAllTabs:t=>{const{normalize:r}=t;return r(["Close AllTabs"])},hswholeFullScreen:t=>{const{normalize:r}=t;return r(["FullScreen"])},hswholeExitFullScreen:t=>{const{normalize:r}=t;return r(["ExitFull"])},hscontentFullScreen:t=>{const{normalize:r}=t;return r(["Content FullScreen"])},hscontentExitFullScreen:t=>{const{normalize:r}=t;return r(["Content ExitFullScreen"])}},menus:{hshome:t=>{const{normalize:r}=t;return r(["Home"])},hslogin:t=>{const{normalize:r}=t;return r(["Login"])},hsempty:t=>{const{normalize:r}=t;return r(["Empty Page"])},hssysManagement:t=>{const{normalize:r}=t;return r(["System Manage"])},hsUser:t=>{const{normalize:r}=t;return r(["User Manage"])},hsRole:t=>{const{normalize:r}=t;return r(["Role Manage"])},hsDept:t=>{const{normalize:r}=t;return r(["Dept Manage"])},hseditor:t=>{const{normalize:r}=t;return r(["Editor"])},hsabnormal:t=>{const{normalize:r}=t;return r(["Abnormal Page"])},hsfourZeroFour:t=>{const{normalize:r}=t;return r(["404"])},hsfourZeroOne:t=>{const{normalize:r}=t;return r(["403"])},hsFive:t=>{const{normalize:r}=t;return r(["500"])},hscomponents:t=>{const{normalize:r}=t;return r(["Components"])},hsdialog:t=>{const{normalize:r}=t;return r(["Dialog Components"])},hsmessage:t=>{const{normalize:r}=t;return r(["Message Tips Components"])},hsvideo:t=>{const{normalize:r}=t;return r(["Video Components"])},hssegmented:t=>{const{normalize:r}=t;return r(["Segmented Components"])},hswaterfall:t=>{const{normalize:r}=t;return r(["Waterfall Components"])},hsmap:t=>{const{normalize:r}=t;return r(["Map Components"])},hsdraggable:t=>{const{normalize:r}=t;return r(["Draggable Components"])},hssplitPane:t=>{const{normalize:r}=t;return r(["Split Pane"])},hsbutton:t=>{const{normalize:r}=t;return r(["Button Components"])},hscropping:t=>{const{normalize:r}=t;return r(["Picture Cropping"])},hscountTo:t=>{const{normalize:r}=t;return r(["Digital Animation"])},hsselector:t=>{const{normalize:r}=t;return r(["Selector Components"])},hsflowChart:t=>{const{normalize:r}=t;return r(["Flow Chart"])},hsseamless:t=>{const{normalize:r}=t;return r(["Seamless Scroll"])},hscontextmenu:t=>{const{normalize:r}=t;return r(["Context Menu"])},hstypeit:t=>{const{normalize:r}=t;return r(["Typeit Components"])},hsjsoneditor:t=>{const{normalize:r}=t;return r(["JSON Editor"])},hsmenus:t=>{const{normalize:r}=t;return r(["MultiLevel Menu"])},hsmenu1:t=>{const{normalize:r}=t;return r(["Menu1"])},"hsmenu1-1":t=>{const{normalize:r}=t;return r(["Menu1-1"])},"hsmenu1-2":t=>{const{normalize:r}=t;return r(["Menu1-2"])},"hsmenu1-2-1":t=>{const{normalize:r}=t;return r(["Menu1-2-1"])},"hsmenu1-2-2":t=>{const{normalize:r}=t;return r(["Menu1-2-2"])},"hsmenu1-3":t=>{const{normalize:r}=t;return r(["Menu1-3"])},hsmenu2:t=>{const{normalize:r}=t;return r(["Menu2"])},permission:t=>{const{normalize:r}=t;return r(["Permission Manage"])},permissionPage:t=>{const{normalize:r}=t;return r(["Page Permission"])},permissionButton:t=>{const{normalize:r}=t;return r(["Button Permission"])},hstabs:t=>{const{normalize:r}=t;return r(["Tabs Operate"])},hsguide:t=>{const{normalize:r}=t;return r(["Guide"])},hsAble:t=>{const{normalize:r}=t;return r(["Able"])},hsMenuTree:t=>{const{normalize:r}=t;return r(["Menu Tree"])},hsVideoFrame:t=>{const{normalize:r}=t;return r(["Video Frame Capture"])},hsWavesurfer:t=>{const{normalize:r}=t;return r(["Audio Visualization"])},hsOptimize:t=>{const{normalize:r}=t;return r(["Debounce、Throttle、Copy、Longpress Directives"])},hsWatermark:t=>{const{normalize:r}=t;return r(["Water Mark"])},hsPrint:t=>{const{normalize:r}=t;return r(["Print"])},hsDownload:t=>{const{normalize:r}=t;return r(["Download"])},hsExternalPage:t=>{const{normalize:r}=t;return r(["External Page"])},hsPureDocument:t=>{const{normalize:r}=t;return r(["Pure Doc(Embedded)"])},externalLink:t=>{const{normalize:r}=t;return r(["Pure Doc(External)"])},hsEpDocument:t=>{const{normalize:r}=t;return r(["Element Plus Doc(Embedded)"])},hsVueDocument:t=>{const{normalize:r}=t;return r(["Vue3 Doc(Embedded)"])},hsViteDocument:t=>{const{normalize:r}=t;return r(["Vite Doc(Embedded)"])},hsPiniaDocument:t=>{const{normalize:r}=t;return r(["Pinia Doc(Embedded)"])},hsRouterDocument:t=>{const{normalize:r}=t;return r(["Vue Router Doc(Embedded)"])},hsTailwindcssDocument:t=>{const{normalize:r}=t;return r(["Tailwindcss Doc(Embedded)"])},hsAbout:t=>{const{normalize:r}=t;return r(["About"])},hsResult:t=>{const{normalize:r}=t;return r(["Result Page"])},hsSuccess:t=>{const{normalize:r}=t;return r(["Success Page"])},hsFail:t=>{const{normalize:r}=t;return r(["Fail Page"])},hsIconSelect:t=>{const{normalize:r}=t;return r(["Icon Select"])},hsTimeline:t=>{const{normalize:r}=t;return r(["Time Line"])},hsLineTree:t=>{const{normalize:r}=t;return r(["LineTree"])},hsList:t=>{const{normalize:r}=t;return r(["List Page"])},hsListCard:t=>{const{normalize:r}=t;return r(["Card List Page"])},hsDebounce:t=>{const{normalize:r}=t;return r(["Debounce & Throttle"])},hsFormDesign:t=>{const{normalize:r}=t;return r(["Form Design"])},hsBarcode:t=>{const{normalize:r}=t;return r(["Barcode"])},hsQrcode:t=>{const{normalize:r}=t;return r(["Qrcode"])},hsCascader:t=>{const{normalize:r}=t;return r(["Area Cascader"])},hsSwiper:t=>{const{normalize:r}=t;return r(["Swiper Plugin"])},hsVirtualList:t=>{const{normalize:r}=t;return r(["Virtual List"])},hsPdf:t=>{const{normalize:r}=t;return r(["PDF Preview"])},hsExcel:t=>{const{normalize:r}=t;return r(["Export Excel"])},hsInfiniteScroll:t=>{const{normalize:r}=t;return r(["Table Infinite Scroll"])},hsSensitive:t=>{const{normalize:r}=t;return r(["Sensitive Filter"])},hsPinyin:t=>{const{normalize:r}=t;return r(["PinYin"])},hsdanmaku:t=>{const{normalize:r}=t;return r(["Danmaku Components"])},hsPureTableBase:t=>{const{normalize:r}=t;return r(["Base Usage"])},hsPureTableHigh:t=>{const{normalize:r}=t;return r(["High Usage"])},hsTree:t=>{const{normalize:r}=t;return r(["Big Data Tree"])},hsMenuoverflow:t=>{const{normalize:r}=t;return r(["Menu Overflow Show Tooltip Text"])},hsChildMenuoverflow:t=>{const{normalize:r}=t;return r(["Child Menu Overflow Show Tooltip Text"])}},status:{hsLoad:t=>{const{normalize:r}=t;return r(["Loading..."])}},login:{username:t=>{const{normalize:r}=t;return r(["Username"])},password:t=>{const{normalize:r}=t;return r(["Password"])},verifyCode:t=>{const{normalize:r}=t;return r(["VerifyCode"])},remember:t=>{const{normalize:r}=t;return r(["Remember Password"])},sure:t=>{const{normalize:r}=t;return r(["Sure Password"])},forget:t=>{const{normalize:r}=t;return r(["Forget Password?"])},login:t=>{const{normalize:r}=t;return r(["Login"])},thirdLogin:t=>{const{normalize:r}=t;return r(["Third Login"])},phoneLogin:t=>{const{normalize:r}=t;return r(["Phone Login"])},qRCodeLogin:t=>{const{normalize:r}=t;return r(["QRCode Login"])},register:t=>{const{normalize:r}=t;return r(["Register"])},weChatLogin:t=>{const{normalize:r}=t;return r(["WeChat Login"])},alipayLogin:t=>{const{normalize:r}=t;return r(["Alipay Login"])},qqLogin:t=>{const{normalize:r}=t;return r(["QQ Login"])},weiboLogin:t=>{const{normalize:r}=t;return r(["Weibo Login"])},phone:t=>{const{normalize:r}=t;return r(["Phone"])},smsVerifyCode:t=>{const{normalize:r}=t;return r(["SMS VerifyCode"])},back:t=>{const{normalize:r}=t;return r(["Back"])},test:t=>{const{normalize:r}=t;return r(["Mock Test"])},tip:t=>{const{normalize:r}=t;return r(['After scanning the code, click "Confirm" to complete the login'])},definite:t=>{const{normalize:r}=t;return r(["Definite"])},loginSuccess:t=>{const{normalize:r}=t;return r(["Login Success"])},registerSuccess:t=>{const{normalize:r}=t;return r(["Regist Success"])},tickPrivacy:t=>{const{normalize:r}=t;return r(["Please tick Privacy Policy"])},readAccept:t=>{const{normalize:r}=t;return r(["I have read it carefully and accept"])},privacyPolicy:t=>{const{normalize:r}=t;return r(["Privacy Policy"])},getVerifyCode:t=>{const{normalize:r}=t;return r(["Get VerifyCode"])},info:t=>{const{normalize:r}=t;return r(["Seconds"])},usernameReg:t=>{const{normalize:r}=t;return r(["Please enter username"])},passwordReg:t=>{const{normalize:r}=t;return r(["Please enter password"])},verifyCodeReg:t=>{const{normalize:r}=t;return r(["Please enter verify code"])},verifyCodeCorrectReg:t=>{const{normalize:r}=t;return r(["Please enter correct verify code"])},verifyCodeSixReg:t=>{const{normalize:r}=t;return r(["Please enter a 6-digit verify code"])},phoneReg:t=>{const{normalize:r}=t;return r(["Please enter the phone"])},phoneCorrectReg:t=>{const{normalize:r}=t;return r(["Please enter the correct phone number format"])},passwordRuleReg:t=>{const{normalize:r}=t;return r(["The password format should be any combination of 8-18 digits"])},passwordSureReg:t=>{const{normalize:r}=t;return r(["Please enter confirm password"])},passwordDifferentReg:t=>{const{normalize:r}=t;return r(["The two passwords do not match!"])},passwordUpdateReg:t=>{const{normalize:r}=t;return r(["Password has been updated"])}}},__vite_glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource$1},Symbol.toStringTag,{value:"Module"})),resource={buttons:{hsLoginOut:t=>{const{normalize:r}=t;return r(["退出系统"])},hsfullscreen:t=>{const{normalize:r}=t;return r(["全屏"])},hsexitfullscreen:t=>{const{normalize:r}=t;return r(["退出全屏"])},hsrefreshRoute:t=>{const{normalize:r}=t;return r(["刷新路由"])},hslogin:t=>{const{normalize:r}=t;return r(["登录"])},hsadd:t=>{const{normalize:r}=t;return r(["新增"])},hsmark:t=>{const{normalize:r}=t;return r(["标记/取消"])},hssave:t=>{const{normalize:r}=t;return r(["保存"])},hssearch:t=>{const{normalize:r}=t;return r(["搜索"])},hsexpendAll:t=>{const{normalize:r}=t;return r(["全部展开"])},hscollapseAll:t=>{const{normalize:r}=t;return r(["全部折叠"])},hssystemSet:t=>{const{normalize:r}=t;return r(["打开项目配置"])},hsdelete:t=>{const{normalize:r}=t;return r(["删除"])},hsreload:t=>{const{normalize:r}=t;return r(["重新加载"])},hscloseCurrentTab:t=>{const{normalize:r}=t;return r(["关闭当前标签页"])},hscloseLeftTabs:t=>{const{normalize:r}=t;return r(["关闭左侧标签页"])},hscloseRightTabs:t=>{const{normalize:r}=t;return r(["关闭右侧标签页"])},hscloseOtherTabs:t=>{const{normalize:r}=t;return r(["关闭其他标签页"])},hscloseAllTabs:t=>{const{normalize:r}=t;return r(["关闭全部标签页"])},hswholeFullScreen:t=>{const{normalize:r}=t;return r(["全屏"])},hswholeExitFullScreen:t=>{const{normalize:r}=t;return r(["退出全屏"])},hscontentFullScreen:t=>{const{normalize:r}=t;return r(["内容区全屏"])},hscontentExitFullScreen:t=>{const{normalize:r}=t;return r(["内容区退出全屏"])}},menus:{hshome:t=>{const{normalize:r}=t;return r(["首页"])},hslogin:t=>{const{normalize:r}=t;return r(["登录"])},hsempty:t=>{const{normalize:r}=t;return r(["无Layout页"])},hssysManagement:t=>{const{normalize:r}=t;return r(["系统管理"])},hsUser:t=>{const{normalize:r}=t;return r(["用户管理"])},hsRole:t=>{const{normalize:r}=t;return r(["角色管理"])},hsDept:t=>{const{normalize:r}=t;return r(["部门管理"])},hseditor:t=>{const{normalize:r}=t;return r(["编辑器"])},hsabnormal:t=>{const{normalize:r}=t;return r(["异常页面"])},hsfourZeroFour:t=>{const{normalize:r}=t;return r(["404"])},hsfourZeroOne:t=>{const{normalize:r}=t;return r(["403"])},hsFive:t=>{const{normalize:r}=t;return r(["500"])},hscomponents:t=>{const{normalize:r}=t;return r(["组件"])},hsdialog:t=>{const{normalize:r}=t;return r(["函数式弹框组件"])},hsmessage:t=>{const{normalize:r}=t;return r(["消息提示组件"])},hsvideo:t=>{const{normalize:r}=t;return r(["视频组件"])},hssegmented:t=>{const{normalize:r}=t;return r(["分段控制器组件"])},hswaterfall:t=>{const{normalize:r}=t;return r(["瀑布流无限滚动组件"])},hsmap:t=>{const{normalize:r}=t;return r(["地图组件"])},hsdraggable:t=>{const{normalize:r}=t;return r(["拖拽组件"])},hssplitPane:t=>{const{normalize:r}=t;return r(["切割面板"])},hsbutton:t=>{const{normalize:r}=t;return r(["按钮组件"])},hscropping:t=>{const{normalize:r}=t;return r(["图片裁剪"])},hscountTo:t=>{const{normalize:r}=t;return r(["数字动画"])},hsselector:t=>{const{normalize:r}=t;return r(["选择器组件"])},hsflowChart:t=>{const{normalize:r}=t;return r(["流程图"])},hsseamless:t=>{const{normalize:r}=t;return r(["无缝滚动"])},hscontextmenu:t=>{const{normalize:r}=t;return r(["右键菜单"])},hstypeit:t=>{const{normalize:r}=t;return r(["打字机组件"])},hsjsoneditor:t=>{const{normalize:r}=t;return r(["JSON编辑器"])},hsmenus:t=>{const{normalize:r}=t;return r(["多级菜单"])},hsmenu1:t=>{const{normalize:r}=t;return r(["菜单1"])},"hsmenu1-1":t=>{const{normalize:r}=t;return r(["菜单1-1"])},"hsmenu1-2":t=>{const{normalize:r}=t;return r(["菜单1-2"])},"hsmenu1-2-1":t=>{const{normalize:r}=t;return r(["菜单1-2-1"])},"hsmenu1-2-2":t=>{const{normalize:r}=t;return r(["菜单1-2-2"])},"hsmenu1-3":t=>{const{normalize:r}=t;return r(["菜单1-3"])},hsmenu2:t=>{const{normalize:r}=t;return r(["菜单2"])},permission:t=>{const{normalize:r}=t;return r(["权限管理"])},permissionPage:t=>{const{normalize:r}=t;return r(["页面权限"])},permissionButton:t=>{const{normalize:r}=t;return r(["按钮权限"])},hstabs:t=>{const{normalize:r}=t;return r(["标签页操作"])},hsguide:t=>{const{normalize:r}=t;return r(["引导页"])},hsAble:t=>{const{normalize:r}=t;return r(["功能"])},hsMenuTree:t=>{const{normalize:r}=t;return r(["菜单树结构"])},hsVideoFrame:t=>{const{normalize:r}=t;return r(["视频帧截取-wasm版"])},hsWavesurfer:t=>{const{normalize:r}=t;return r(["音频可视化"])},hsOptimize:t=>{const{normalize:r}=t;return r(["防抖、截流、复制、长按指令"])},hsWatermark:t=>{const{normalize:r}=t;return r(["水印"])},hsPrint:t=>{const{normalize:r}=t;return r(["打印"])},hsDownload:t=>{const{normalize:r}=t;return r(["下载"])},hsExternalPage:t=>{const{normalize:r}=t;return r(["外部页面"])},hsPureDocument:t=>{const{normalize:r}=t;return r(["平台文档(内嵌)"])},externalLink:t=>{const{normalize:r}=t;return r(["平台文档(外链)"])},hsEpDocument:t=>{const{normalize:r}=t;return r(["Element Plus 文档(内嵌)"])},hsVueDocument:t=>{const{normalize:r}=t;return r(["Vue3 文档(内嵌)"])},hsViteDocument:t=>{const{normalize:r}=t;return r(["Vite 文档(内嵌)"])},hsPiniaDocument:t=>{const{normalize:r}=t;return r(["Pinia 文档(内嵌)"])},hsRouterDocument:t=>{const{normalize:r}=t;return r(["Vue Router 文档(内嵌)"])},hsTailwindcssDocument:t=>{const{normalize:r}=t;return r(["Tailwindcss 文档(内嵌)"])},hsAbout:t=>{const{normalize:r}=t;return r(["关于"])},hsResult:t=>{const{normalize:r}=t;return r(["结果页面"])},hsSuccess:t=>{const{normalize:r}=t;return r(["成功页面"])},hsFail:t=>{const{normalize:r}=t;return r(["失败页面"])},hsIconSelect:t=>{const{normalize:r}=t;return r(["图标选择器"])},hsTimeline:t=>{const{normalize:r}=t;return r(["时间线"])},hsLineTree:t=>{const{normalize:r}=t;return r(["树形连接线"])},hsList:t=>{const{normalize:r}=t;return r(["列表页"])},hsListCard:t=>{const{normalize:r}=t;return r(["卡片列表页"])},hsDebounce:t=>{const{normalize:r}=t;return r(["防抖节流"])},hsFormDesign:t=>{const{normalize:r}=t;return r(["表单设计器"])},hsBarcode:t=>{const{normalize:r}=t;return r(["条形码"])},hsQrcode:t=>{const{normalize:r}=t;return r(["二维码"])},hsCascader:t=>{const{normalize:r}=t;return r(["区域级联选择器"])},hsSwiper:t=>{const{normalize:r}=t;return r(["Swiper插件"])},hsVirtualList:t=>{const{normalize:r}=t;return r(["虚拟列表"])},hsPdf:t=>{const{normalize:r}=t;return r(["PDF预览"])},hsExcel:t=>{const{normalize:r}=t;return r(["导出Excel"])},hsInfiniteScroll:t=>{const{normalize:r}=t;return r(["表格无限滚动"])},hsSensitive:t=>{const{normalize:r}=t;return r(["敏感词过滤"])},hsPinyin:t=>{const{normalize:r}=t;return r(["汉语拼音"])},hsdanmaku:t=>{const{normalize:r}=t;return r(["弹幕组件"])},hsPureTableBase:t=>{const{normalize:r}=t;return r(["基础用法(23个示例)"])},hsPureTableHigh:t=>{const{normalize:r}=t;return r(["高级用法(11个示例)"])},hsTree:t=>{const{normalize:r}=t;return r(["大数据树业务组件"])},hsMenuoverflow:t=>{const{normalize:r}=t;return r(["目录超出显示 Tooltip 文字提示"])},hsChildMenuoverflow:t=>{const{normalize:r}=t;return r(["菜单超出显示 Tooltip 文字提示"])}},status:{hsLoad:t=>{const{normalize:r}=t;return r(["加载中..."])}},login:{username:t=>{const{normalize:r}=t;return r(["账号"])},password:t=>{const{normalize:r}=t;return r(["密码"])},verifyCode:t=>{const{normalize:r}=t;return r(["验证码"])},remember:t=>{const{normalize:r}=t;return r(["记住密码"])},sure:t=>{const{normalize:r}=t;return r(["确认密码"])},forget:t=>{const{normalize:r}=t;return r(["忘记密码?"])},login:t=>{const{normalize:r}=t;return r(["登录"])},thirdLogin:t=>{const{normalize:r}=t;return r(["第三方登录"])},phoneLogin:t=>{const{normalize:r}=t;return r(["手机登录"])},qRCodeLogin:t=>{const{normalize:r}=t;return r(["二维码登录"])},register:t=>{const{normalize:r}=t;return r(["注册"])},weChatLogin:t=>{const{normalize:r}=t;return r(["微信登录"])},alipayLogin:t=>{const{normalize:r}=t;return r(["支付宝登录"])},qqLogin:t=>{const{normalize:r}=t;return r(["QQ登录"])},weiboLogin:t=>{const{normalize:r}=t;return r(["微博登录"])},phone:t=>{const{normalize:r}=t;return r(["手机号码"])},smsVerifyCode:t=>{const{normalize:r}=t;return r(["短信验证码"])},back:t=>{const{normalize:r}=t;return r(["返回"])},test:t=>{const{normalize:r}=t;return r(["模拟测试"])},tip:t=>{const{normalize:r}=t;return r(['扫码后点击"确认",即可完成登录'])},definite:t=>{const{normalize:r}=t;return r(["确定"])},loginSuccess:t=>{const{normalize:r}=t;return r(["登录成功"])},registerSuccess:t=>{const{normalize:r}=t;return r(["注册成功"])},tickPrivacy:t=>{const{normalize:r}=t;return r(["请勾选隐私政策"])},readAccept:t=>{const{normalize:r}=t;return r(["我已仔细阅读并接受"])},privacyPolicy:t=>{const{normalize:r}=t;return r(["《隐私政策》"])},getVerifyCode:t=>{const{normalize:r}=t;return r(["获取验证码"])},info:t=>{const{normalize:r}=t;return r(["秒后重新获取"])},usernameReg:t=>{const{normalize:r}=t;return r(["请输入账号"])},passwordReg:t=>{const{normalize:r}=t;return r(["请输入密码"])},verifyCodeReg:t=>{const{normalize:r}=t;return r(["请输入验证码"])},verifyCodeCorrectReg:t=>{const{normalize:r}=t;return r(["请输入正确的验证码"])},verifyCodeSixReg:t=>{const{normalize:r}=t;return r(["请输入6位数字验证码"])},phoneReg:t=>{const{normalize:r}=t;return r(["请输入手机号码"])},phoneCorrectReg:t=>{const{normalize:r}=t;return r(["请输入正确的手机号码格式"])},passwordRuleReg:t=>{const{normalize:r}=t;return r(["密码格式应为8-18位数字、字母、符号的任意两种组合"])},passwordSureReg:t=>{const{normalize:r}=t;return r(["请输入确认密码"])},passwordDifferentReg:t=>{const{normalize:r}=t;return r(["两次密码不一致!"])},passwordUpdateReg:t=>{const{normalize:r}=t;return r(["修改密码成功"])}}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource},Symbol.toStringTag,{value:"Module"}));/*! * shared v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */const inBrowser=typeof window<"u",hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",makeSymbol=t=>hasSymbol?Symbol(t):t,generateFormatCacheKey=(t,r,V)=>friendlyJSONstringify({l:t,k:r,s:V}),friendlyJSONstringify=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$3=t=>typeof t=="number"&&isFinite(t),isDate$2=t=>toTypeString(t)==="[object Date]",isRegExp$4=t=>toTypeString(t)==="[object RegExp]",isEmptyObject=t=>isPlainObject$2(t)&&Object.keys(t).length===0;function warn$1(t,r){typeof console<"u"&&(console.warn("[intlify] "+t),r&&console.warn(r.stack))}const assign$4=Object.assign;function escapeHtml(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$1=Object.prototype.hasOwnProperty;function hasOwn$3(t,r){return hasOwnProperty$1.call(t,r)}const isArray$9=Array.isArray,isFunction$2=t=>typeof t=="function",isString$4=t=>typeof t=="string",isBoolean$2=t=>typeof t=="boolean",isObject$6=t=>t!==null&&typeof t=="object",objectToString$1=Object.prototype.toString,toTypeString=t=>objectToString$1.call(t),isPlainObject$2=t=>toTypeString(t)==="[object Object]",toDisplayString=t=>t==null?"":isArray$9(t)||isPlainObject$2(t)&&t.toString===objectToString$1?JSON.stringify(t,null,2):String(t);/*! * message-compiler v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function createCompileError(t,r,V={}){const{domain:oe,messages:ie,args:le}=V,ue=t,de=new SyntaxError(String(ue));return de.code=t,r&&(de.location=r),de.domain=oe,de}/*! * core-base v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]};pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]};pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]};pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(t){return literalValueRE.test(t)}function stripQuotes(t){const r=t.charCodeAt(0),V=t.charCodeAt(t.length-1);return r===V&&(r===34||r===39)?t.slice(1,-1):t}function getPathCharType(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(t){const r=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:isLiteral(r)?stripQuotes(r):"*"+r}function parse$5(t){const r=[];let V=-1,oe=0,ie=0,le,ue,de,pe,he,_e,$e;const Ie=[];Ie[0]=()=>{ue===void 0?ue=de:ue+=de},Ie[1]=()=>{ue!==void 0&&(r.push(ue),ue=void 0)},Ie[2]=()=>{Ie[0](),ie++},Ie[3]=()=>{if(ie>0)ie--,oe=4,Ie[0]();else{if(ie=0,ue===void 0||(ue=formatSubPath(ue),ue===!1))return!1;Ie[1]()}};function Ve(){const Fe=t[V+1];if(oe===5&&Fe==="'"||oe===6&&Fe==='"')return V++,de="\\"+Fe,Ie[0](),!0}for(;oe!==null;)if(V++,le=t[V],!(le==="\\"&&Ve())){if(pe=getPathCharType(le),$e=pathStateMachine[oe],he=$e[pe]||$e.l||8,he===8||(oe=he[0],he[1]!==void 0&&(_e=Ie[he[1]],_e&&(de=le,_e()===!1))))return;if(oe===7)return r}}const cache=new Map;function resolveWithKeyValue(t,r){return isObject$6(t)?t[r]:null}function resolveValue(t,r){if(!isObject$6(t))return null;let V=cache.get(r);if(V||(V=parse$5(r),V&&cache.set(r,V)),!V)return null;const oe=V.length;let ie=t,le=0;for(;let,DEFAULT_MESSAGE=t=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=t=>t.length===0?"":t.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(t,r){return t=Math.abs(t),r===2?t?t>1?1:0:1:t?Math.min(t,2):0}function getPluralIndex(t){const r=isNumber$3(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(isNumber$3(t.named.count)||isNumber$3(t.named.n))?isNumber$3(t.named.count)?t.named.count:isNumber$3(t.named.n)?t.named.n:r:r}function normalizeNamed(t,r){r.count||(r.count=t),r.n||(r.n=t)}function createMessageContext(t={}){const r=t.locale,V=getPluralIndex(t),oe=isObject$6(t.pluralRules)&&isString$4(r)&&isFunction$2(t.pluralRules[r])?t.pluralRules[r]:pluralDefault,ie=isObject$6(t.pluralRules)&&isString$4(r)&&isFunction$2(t.pluralRules[r])?pluralDefault:void 0,le=Et=>Et[oe(V,Et.length,ie)],ue=t.list||[],de=Et=>ue[Et],pe=t.named||{};isNumber$3(t.pluralIndex)&&normalizeNamed(V,pe);const he=Et=>pe[Et];function _e(Et){const At=isFunction$2(t.messages)?t.messages(Et):isObject$6(t.messages)?t.messages[Et]:!1;return At||(t.parent?t.parent.message(Et):DEFAULT_MESSAGE)}const $e=Et=>t.modifiers?t.modifiers[Et]:DEFAULT_MODIFIER,Ie=isPlainObject$2(t.processor)&&isFunction$2(t.processor.normalize)?t.processor.normalize:DEFAULT_NORMALIZE,Ve=isPlainObject$2(t.processor)&&isFunction$2(t.processor.interpolate)?t.processor.interpolate:DEFAULT_INTERPOLATE,Fe=isPlainObject$2(t.processor)&&isString$4(t.processor.type)?t.processor.type:DEFAULT_MESSAGE_DATA_TYPE,qe={list:de,named:he,plural:le,linked:(Et,...At)=>{const[Lt,hn]=At;let _n="text",vn="";At.length===1?isObject$6(Lt)?(vn=Lt.modifier||vn,_n=Lt.type||_n):isString$4(Lt)&&(vn=Lt||vn):At.length===2&&(isString$4(Lt)&&(vn=Lt||vn),isString$4(hn)&&(_n=hn||_n));let bn=_e(Et)(qe);return _n==="vnode"&&isArray$9(bn)&&vn&&(bn=bn[0]),vn?$e(vn)(bn,_n):bn},message:_e,type:Fe,interpolate:Ve,normalize:Ie};return qe}function fallbackWithSimple(t,r,V){return[...new Set([V,...isArray$9(r)?r:isObject$6(r)?Object.keys(r):isString$4(r)?[r]:[V]])]}function fallbackWithLocaleChain(t,r,V){const oe=isString$4(V)?V:DEFAULT_LOCALE$1,ie=t;ie.__localeChainCache||(ie.__localeChainCache=new Map);let le=ie.__localeChainCache.get(oe);if(!le){le=[];let ue=[V];for(;isArray$9(ue);)ue=appendBlockToChain(le,ue,r);const de=isArray$9(r)||!isPlainObject$2(r)?r:r.default?r.default:null;ue=isString$4(de)?[de]:de,isArray$9(ue)&&appendBlockToChain(le,ue,!1),ie.__localeChainCache.set(oe,le)}return le}function appendBlockToChain(t,r,V){let oe=!0;for(let ie=0;ie`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(t,r)=>r==="text"&&isString$4(t)?t.toUpperCase():r==="vnode"&&isObject$6(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,r)=>r==="text"&&isString$4(t)?t.toLowerCase():r==="vnode"&&isObject$6(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,r)=>r==="text"&&isString$4(t)?capitalize(t):r==="vnode"&&isObject$6(t)&&"__v_isVNode"in t?capitalize(t.children):t}}let _compiler,_resolver;function registerMessageResolver(t){_resolver=t}let _fallbacker;function registerLocaleFallbacker(t){_fallbacker=t}let _cid=0;function createCoreContext(t={}){const r=isString$4(t.version)?t.version:VERSION$2,V=isString$4(t.locale)?t.locale:DEFAULT_LOCALE$1,oe=isArray$9(t.fallbackLocale)||isPlainObject$2(t.fallbackLocale)||isString$4(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:V,ie=isPlainObject$2(t.messages)?t.messages:{[V]:{}},le=isPlainObject$2(t.datetimeFormats)?t.datetimeFormats:{[V]:{}},ue=isPlainObject$2(t.numberFormats)?t.numberFormats:{[V]:{}},de=assign$4({},t.modifiers||{},getDefaultLinkedModifiers()),pe=t.pluralRules||{},he=isFunction$2(t.missing)?t.missing:null,_e=isBoolean$2(t.missingWarn)||isRegExp$4(t.missingWarn)?t.missingWarn:!0,$e=isBoolean$2(t.fallbackWarn)||isRegExp$4(t.fallbackWarn)?t.fallbackWarn:!0,Ie=!!t.fallbackFormat,Ve=!!t.unresolving,Fe=isFunction$2(t.postTranslation)?t.postTranslation:null,Ue=isPlainObject$2(t.processor)?t.processor:null,qe=isBoolean$2(t.warnHtmlMessage)?t.warnHtmlMessage:!0,Et=!!t.escapeParameter,At=isFunction$2(t.messageCompiler)?t.messageCompiler:_compiler,Lt=isFunction$2(t.messageResolver)?t.messageResolver:_resolver||resolveWithKeyValue,hn=isFunction$2(t.localeFallbacker)?t.localeFallbacker:_fallbacker||fallbackWithSimple,_n=isObject$6(t.fallbackContext)?t.fallbackContext:void 0,vn=isFunction$2(t.onWarn)?t.onWarn:warn$1,bn=t,Cn=isObject$6(bn.__datetimeFormatters)?bn.__datetimeFormatters:new Map,Sn=isObject$6(bn.__numberFormatters)?bn.__numberFormatters:new Map,wn=isObject$6(bn.__meta)?bn.__meta:{};_cid++;const En={version:r,cid:_cid,locale:V,fallbackLocale:oe,messages:ie,modifiers:de,pluralRules:pe,missing:he,missingWarn:_e,fallbackWarn:$e,fallbackFormat:Ie,unresolving:Ve,postTranslation:Fe,processor:Ue,warnHtmlMessage:qe,escapeParameter:Et,messageCompiler:At,messageResolver:Lt,localeFallbacker:hn,fallbackContext:_n,onWarn:vn,__meta:wn};return En.datetimeFormats=le,En.numberFormats=ue,En.__datetimeFormatters=Cn,En.__numberFormatters=Sn,En}function handleMissing(t,r,V,oe,ie){const{missing:le,onWarn:ue}=t;if(le!==null){const de=le(t,V,r,ie);return isString$4(de)?de:r}else return r}function updateFallbackLocale(t,r,V){const oe=t;oe.__localeChainCache=new Map,t.localeFallbacker(t,V,r)}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),__EXTEND_POINT__:inc$1()};function createCoreError(t){return createCompileError(t,null,void 0)}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=t=>isFunction$2(t);function translate$1(t,...r){const{fallbackFormat:V,postTranslation:oe,unresolving:ie,messageCompiler:le,fallbackLocale:ue,messages:de}=t,[pe,he]=parseTranslateArgs(...r),_e=isBoolean$2(he.missingWarn)?he.missingWarn:t.missingWarn,$e=isBoolean$2(he.fallbackWarn)?he.fallbackWarn:t.fallbackWarn,Ie=isBoolean$2(he.escapeParameter)?he.escapeParameter:t.escapeParameter,Ve=!!he.resolvedMessage,Fe=isString$4(he.default)||isBoolean$2(he.default)?isBoolean$2(he.default)?le?pe:()=>pe:he.default:V?le?pe:()=>pe:"",Ue=V||Fe!=="",qe=isString$4(he.locale)?he.locale:t.locale;Ie&&escapeParams(he);let[Et,At,Lt]=Ve?[pe,qe,de[qe]||{}]:resolveMessageFormat(t,pe,qe,ue,$e,_e),hn=Et,_n=pe;if(!Ve&&!(isString$4(hn)||isMessageFunction(hn))&&Ue&&(hn=Fe,_n=hn),!Ve&&(!(isString$4(hn)||isMessageFunction(hn))||!isString$4(At)))return ie?NOT_REOSLVED:pe;let vn=!1;const bn=()=>{vn=!0},Cn=isMessageFunction(hn)?hn:compileMessageFormat(t,pe,At,hn,_n,bn);if(vn)return hn;const Sn=getMessageContextOptions(t,At,Lt,he),wn=createMessageContext(Sn),En=evaluateMessage(t,Cn,wn);return oe?oe(En,pe):En}function escapeParams(t){isArray$9(t.list)?t.list=t.list.map(r=>isString$4(r)?escapeHtml(r):r):isObject$6(t.named)&&Object.keys(t.named).forEach(r=>{isString$4(t.named[r])&&(t.named[r]=escapeHtml(t.named[r]))})}function resolveMessageFormat(t,r,V,oe,ie,le){const{messages:ue,onWarn:de,messageResolver:pe,localeFallbacker:he}=t,_e=he(t,oe,V);let $e={},Ie,Ve=null;const Fe="translate";for(let Ue=0;Ue<_e.length&&(Ie=_e[Ue],$e=ue[Ie]||{},(Ve=pe($e,r))===null&&(Ve=$e[r]),!(isString$4(Ve)||isFunction$2(Ve)));Ue++){const qe=handleMissing(t,r,Ie,le,Fe);qe!==r&&(Ve=qe)}return[Ve,Ie,$e]}function compileMessageFormat(t,r,V,oe,ie,le){const{messageCompiler:ue,warnHtmlMessage:de}=t;if(isMessageFunction(oe)){const he=oe;return he.locale=he.locale||V,he.key=he.key||r,he}if(ue==null){const he=()=>oe;return he.locale=V,he.key=r,he}const pe=ue(oe,getCompileOptions(t,V,ie,oe,de,le));return pe.locale=V,pe.key=r,pe.source=oe,pe}function evaluateMessage(t,r,V){return r(V)}function parseTranslateArgs(...t){const[r,V,oe]=t,ie={};if(!isString$4(r)&&!isNumber$3(r)&&!isMessageFunction(r))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const le=isNumber$3(r)?String(r):(isMessageFunction(r),r);return isNumber$3(V)?ie.plural=V:isString$4(V)?ie.default=V:isPlainObject$2(V)&&!isEmptyObject(V)?ie.named=V:isArray$9(V)&&(ie.list=V),isNumber$3(oe)?ie.plural=oe:isString$4(oe)?ie.default=oe:isPlainObject$2(oe)&&assign$4(ie,oe),[le,ie]}function getCompileOptions(t,r,V,oe,ie,le){return{warnHtmlMessage:ie,onError:ue=>{throw le&&le(ue),ue},onCacheKey:ue=>generateFormatCacheKey(r,V,ue)}}function getMessageContextOptions(t,r,V,oe){const{modifiers:ie,pluralRules:le,messageResolver:ue,fallbackLocale:de,fallbackWarn:pe,missingWarn:he,fallbackContext:_e}=t,Ie={locale:r,modifiers:ie,pluralRules:le,messages:Ve=>{let Fe=ue(V,Ve);if(Fe==null&&_e){const[,,Ue]=resolveMessageFormat(_e,Ve,r,de,pe,he);Fe=ue(Ue,Ve)}if(isString$4(Fe)){let Ue=!1;const Et=compileMessageFormat(t,Ve,r,Fe,Ve,()=>{Ue=!0});return Ue?NOOP_MESSAGE_FUNCTION:Et}else return isMessageFunction(Fe)?Fe:NOOP_MESSAGE_FUNCTION}};return t.processor&&(Ie.processor=t.processor),oe.list&&(Ie.list=oe.list),oe.named&&(Ie.named=oe.named),isNumber$3(oe.plural)&&(Ie.pluralIndex=oe.plural),Ie}function datetime(t,...r){const{datetimeFormats:V,unresolving:oe,fallbackLocale:ie,onWarn:le,localeFallbacker:ue}=t,{__datetimeFormatters:de}=t,[pe,he,_e,$e]=parseDateTimeArgs(...r),Ie=isBoolean$2(_e.missingWarn)?_e.missingWarn:t.missingWarn;isBoolean$2(_e.fallbackWarn)?_e.fallbackWarn:t.fallbackWarn;const Ve=!!_e.part,Fe=isString$4(_e.locale)?_e.locale:t.locale,Ue=ue(t,ie,Fe);if(!isString$4(pe)||pe==="")return new Intl.DateTimeFormat(Fe,$e).format(he);let qe={},Et,At=null;const Lt="datetime format";for(let vn=0;vn{DATETIME_FORMAT_OPTIONS_KEYS.includes(pe)?ue[pe]=V[pe]:le[pe]=V[pe]}),isString$4(oe)?le.locale=oe:isPlainObject$2(oe)&&(ue=oe),isPlainObject$2(ie)&&(ue=ie),[le.key||"",de,le,ue]}function clearDateTimeFormat(t,r,V){const oe=t;for(const ie in V){const le=`${r}__${ie}`;oe.__datetimeFormatters.has(le)&&oe.__datetimeFormatters.delete(le)}}function number$2(t,...r){const{numberFormats:V,unresolving:oe,fallbackLocale:ie,onWarn:le,localeFallbacker:ue}=t,{__numberFormatters:de}=t,[pe,he,_e,$e]=parseNumberArgs(...r),Ie=isBoolean$2(_e.missingWarn)?_e.missingWarn:t.missingWarn;isBoolean$2(_e.fallbackWarn)?_e.fallbackWarn:t.fallbackWarn;const Ve=!!_e.part,Fe=isString$4(_e.locale)?_e.locale:t.locale,Ue=ue(t,ie,Fe);if(!isString$4(pe)||pe==="")return new Intl.NumberFormat(Fe,$e).format(he);let qe={},Et,At=null;const Lt="number format";for(let vn=0;vn{NUMBER_FORMAT_OPTIONS_KEYS.includes(pe)?ue[pe]=V[pe]:le[pe]=V[pe]}),isString$4(oe)?le.locale=oe:isPlainObject$2(oe)&&(ue=oe),isPlainObject$2(ie)&&(ue=ie),[le.key||"",de,le,ue]}function clearNumberFormat(t,r,V){const oe=t;for(const ie in V){const le=`${r}__${ie}`;oe.__numberFormatters.has(le)&&oe.__numberFormatters.delete(le)}}/*! * vue-i18n v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */const VERSION$1="9.2.2";let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSLALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSLALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(t,...r){return createCompileError(t,null,void 0)}const TransrateVNodeSymbol=makeSymbol("__transrateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules");makeSymbol("__intlifyMeta");const InejctWithOption=makeSymbol("__injectWithOption");function handleFlatJson(t){if(!isObject$6(t))return t;for(const r in t)if(hasOwn$3(t,r))if(!r.includes("."))isObject$6(t[r])&&handleFlatJson(t[r]);else{const V=r.split("."),oe=V.length-1;let ie=t;for(let le=0;le{if("locale"in de&&"resource"in de){const{locale:pe,resource:he}=de;pe?(ue[pe]=ue[pe]||{},deepCopy(he,ue[pe])):deepCopy(he,ue)}else isString$4(de)&&deepCopy(JSON.parse(de),ue)}),ie==null&&le)for(const de in ue)hasOwn$3(ue,de)&&handleFlatJson(ue[de]);return ue}const isNotObjectOrIsArray=t=>!isObject$6(t)||isArray$9(t);function deepCopy(t,r){if(isNotObjectOrIsArray(t)||isNotObjectOrIsArray(r))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const V in t)hasOwn$3(t,V)&&(isNotObjectOrIsArray(t[V])||isNotObjectOrIsArray(r[V])?r[V]=t[V]:deepCopy(t[V],r[V]))}function getComponentOptions(t){return t.type}function adjustI18nResources(t,r,V){let oe=isObject$6(r.messages)?r.messages:{};"__i18nGlobal"in V&&(oe=getLocaleMessages(t.locale.value,{messages:oe,__i18n:V.__i18nGlobal}));const ie=Object.keys(oe);ie.length&&ie.forEach(le=>{t.mergeLocaleMessage(le,oe[le])});{if(isObject$6(r.datetimeFormats)){const le=Object.keys(r.datetimeFormats);le.length&&le.forEach(ue=>{t.mergeDateTimeFormat(ue,r.datetimeFormats[ue])})}if(isObject$6(r.numberFormats)){const le=Object.keys(r.numberFormats);le.length&&le.forEach(ue=>{t.mergeNumberFormat(ue,r.numberFormats[ue])})}}}function createTextNode(t){return createVNode(Text$1,null,t,0)}let composerID=0;function defineCoreMissingHandler(t){return(r,V,oe,ie)=>t(V,oe,getCurrentInstance()||void 0,ie)}function createComposer(t={},r){const{__root:V}=t,oe=V===void 0;let ie=isBoolean$2(t.inheritLocale)?t.inheritLocale:!0;const le=ref(V&&ie?V.locale.value:isString$4(t.locale)?t.locale:DEFAULT_LOCALE$1),ue=ref(V&&ie?V.fallbackLocale.value:isString$4(t.fallbackLocale)||isArray$9(t.fallbackLocale)||isPlainObject$2(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:le.value),de=ref(getLocaleMessages(le.value,t)),pe=ref(isPlainObject$2(t.datetimeFormats)?t.datetimeFormats:{[le.value]:{}}),he=ref(isPlainObject$2(t.numberFormats)?t.numberFormats:{[le.value]:{}});let _e=V?V.missingWarn:isBoolean$2(t.missingWarn)||isRegExp$4(t.missingWarn)?t.missingWarn:!0,$e=V?V.fallbackWarn:isBoolean$2(t.fallbackWarn)||isRegExp$4(t.fallbackWarn)?t.fallbackWarn:!0,Ie=V?V.fallbackRoot:isBoolean$2(t.fallbackRoot)?t.fallbackRoot:!0,Ve=!!t.fallbackFormat,Fe=isFunction$2(t.missing)?t.missing:null,Ue=isFunction$2(t.missing)?defineCoreMissingHandler(t.missing):null,qe=isFunction$2(t.postTranslation)?t.postTranslation:null,Et=V?V.warnHtmlMessage:isBoolean$2(t.warnHtmlMessage)?t.warnHtmlMessage:!0,At=!!t.escapeParameter;const Lt=V?V.modifiers:isPlainObject$2(t.modifiers)?t.modifiers:{};let hn=t.pluralRules||V&&V.pluralRules,_n;_n=(()=>{const or={version:VERSION$1,locale:le.value,fallbackLocale:ue.value,messages:de.value,modifiers:Lt,pluralRules:hn,missing:Ue===null?void 0:Ue,missingWarn:_e,fallbackWarn:$e,fallbackFormat:Ve,unresolving:!0,postTranslation:qe===null?void 0:qe,warnHtmlMessage:Et,escapeParameter:At,messageResolver:t.messageResolver,__meta:{framework:"vue"}};return or.datetimeFormats=pe.value,or.numberFormats=he.value,or.__datetimeFormatters=isPlainObject$2(_n)?_n.__datetimeFormatters:void 0,or.__numberFormatters=isPlainObject$2(_n)?_n.__numberFormatters:void 0,createCoreContext(or)})(),updateFallbackLocale(_n,le.value,ue.value);function bn(){return[le.value,ue.value,de.value,pe.value,he.value]}const Cn=computed({get:()=>le.value,set:or=>{le.value=or,_n.locale=le.value}}),Sn=computed({get:()=>ue.value,set:or=>{ue.value=or,_n.fallbackLocale=ue.value,updateFallbackLocale(_n,le.value,or)}}),wn=computed(()=>de.value),En=computed(()=>pe.value),xn=computed(()=>he.value);function Pn(){return isFunction$2(qe)?qe:null}function kn(or){qe=or,_n.postTranslation=or}function Nn(){return Fe}function Dn(or){or!==null&&(Ue=defineCoreMissingHandler(or)),Fe=or,_n.missing=Ue}const Mn=(or,fr,kr,br,Ar,Dr)=>{bn();let Br;if(Br=or(_n),isNumber$3(Br)&&Br===NOT_REOSLVED){const[zr,Rr]=fr();return V&&Ie?br(V):Ar(zr)}else{if(Dr(Br))return Br;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Ln(...or){return Mn(fr=>Reflect.apply(translate$1,null,[fr,...or]),()=>parseTranslateArgs(...or),"translate",fr=>Reflect.apply(fr.t,fr,[...or]),fr=>fr,fr=>isString$4(fr))}function An(...or){const[fr,kr,br]=or;if(br&&!isObject$6(br))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Ln(fr,kr,assign$4({resolvedMessage:!0},br||{}))}function Vn(...or){return Mn(fr=>Reflect.apply(datetime,null,[fr,...or]),()=>parseDateTimeArgs(...or),"datetime format",fr=>Reflect.apply(fr.d,fr,[...or]),()=>MISSING_RESOLVE_VALUE,fr=>isString$4(fr))}function Wn(...or){return Mn(fr=>Reflect.apply(number$2,null,[fr,...or]),()=>parseNumberArgs(...or),"number format",fr=>Reflect.apply(fr.n,fr,[...or]),()=>MISSING_RESOLVE_VALUE,fr=>isString$4(fr))}function Fn(or){return or.map(fr=>isString$4(fr)||isNumber$3(fr)||isBoolean$2(fr)?createTextNode(String(fr)):fr)}const tr={normalize:Fn,interpolate:or=>or,type:"vnode"};function yr(...or){return Mn(fr=>{let kr;const br=fr;try{br.processor=tr,kr=Reflect.apply(translate$1,null,[br,...or])}finally{br.processor=null}return kr},()=>parseTranslateArgs(...or),"translate",fr=>fr[TransrateVNodeSymbol](...or),fr=>[createTextNode(fr)],fr=>isArray$9(fr))}function Jn(...or){return Mn(fr=>Reflect.apply(number$2,null,[fr,...or]),()=>parseNumberArgs(...or),"number format",fr=>fr[NumberPartsSymbol](...or),()=>[],fr=>isString$4(fr)||isArray$9(fr))}function Kn(...or){return Mn(fr=>Reflect.apply(datetime,null,[fr,...or]),()=>parseDateTimeArgs(...or),"datetime format",fr=>fr[DatetimePartsSymbol](...or),()=>[],fr=>isString$4(fr)||isArray$9(fr))}function Gn(or){hn=or,_n.pluralRules=hn}function Qn(or,fr){const kr=isString$4(fr)?fr:le.value,br=Un(kr);return _n.messageResolver(br,or)!==null}function ur(or){let fr=null;const kr=fallbackWithLocaleChain(_n,ue.value,le.value);for(let br=0;br{ie&&(le.value=or,_n.locale=or,updateFallbackLocale(_n,le.value,ue.value))}),watch(V.fallbackLocale,or=>{ie&&(ue.value=or,_n.fallbackLocale=or,updateFallbackLocale(_n,le.value,ue.value))}));const gr={id:composerID,locale:Cn,fallbackLocale:Sn,get inheritLocale(){return ie},set inheritLocale(or){ie=or,or&&V&&(le.value=V.locale.value,ue.value=V.fallbackLocale.value,updateFallbackLocale(_n,le.value,ue.value))},get availableLocales(){return Object.keys(de.value).sort()},messages:wn,get modifiers(){return Lt},get pluralRules(){return hn||{}},get isGlobal(){return oe},get missingWarn(){return _e},set missingWarn(or){_e=or,_n.missingWarn=_e},get fallbackWarn(){return $e},set fallbackWarn(or){$e=or,_n.fallbackWarn=$e},get fallbackRoot(){return Ie},set fallbackRoot(or){Ie=or},get fallbackFormat(){return Ve},set fallbackFormat(or){Ve=or,_n.fallbackFormat=Ve},get warnHtmlMessage(){return Et},set warnHtmlMessage(or){Et=or,_n.warnHtmlMessage=or},get escapeParameter(){return At},set escapeParameter(or){At=or,_n.escapeParameter=or},t:Ln,getLocaleMessage:Un,setLocaleMessage:qn,mergeLocaleMessage:er,getPostTranslationHandler:Pn,setPostTranslationHandler:kn,getMissingHandler:Nn,setMissingHandler:Dn,[SetPluralRulesSymbol]:Gn};return gr.datetimeFormats=En,gr.numberFormats=xn,gr.rt=An,gr.te=Qn,gr.tm=cr,gr.d=Vn,gr.n=Wn,gr.getDateTimeFormat=pr,gr.setDateTimeFormat=Er,gr.mergeDateTimeFormat=dr,gr.getNumberFormat=xr,gr.setNumberFormat=wr,gr.mergeNumberFormat=Cr,gr[InejctWithOption]=t.__injectWithOption,gr[TransrateVNodeSymbol]=yr,gr[DatetimePartsSymbol]=Kn,gr[NumberPartsSymbol]=Jn,gr}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:t},r){return r.length===1&&r[0]==="default"?(t.default?t.default():[]).reduce((oe,ie)=>oe=[...oe,...isArray$9(ie.children)?ie.children:[ie]],[]):r.reduce((V,oe)=>{const ie=t[oe];return ie&&(V[oe]=ie()),V},{})}function getFragmentableTag(t){return Fragment}const Translation={name:"i18n-t",props:assign$4({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>isNumber$3(t)||!isNaN(t)}},baseFormatProps),setup(t,r){const{slots:V,attrs:oe}=r,ie=t.i18n||useI18n$1({useScope:t.scope,__useComponent:!0});return()=>{const le=Object.keys(V).filter($e=>$e!=="_"),ue={};t.locale&&(ue.locale=t.locale),t.plural!==void 0&&(ue.plural=isString$4(t.plural)?+t.plural:t.plural);const de=getInterpolateArg(r,le),pe=ie[TransrateVNodeSymbol](t.keypath,de,ue),he=assign$4({},oe),_e=isString$4(t.tag)||isObject$6(t.tag)?t.tag:getFragmentableTag();return h$2(_e,he,pe)}}};function isVNode(t){return isArray$9(t)&&!isString$4(t[0])}function renderFormatter(t,r,V,oe){const{slots:ie,attrs:le}=r;return()=>{const ue={part:!0};let de={};t.locale&&(ue.locale=t.locale),isString$4(t.format)?ue.key=t.format:isObject$6(t.format)&&(isString$4(t.format.key)&&(ue.key=t.format.key),de=Object.keys(t.format).reduce((Ie,Ve)=>V.includes(Ve)?assign$4({},Ie,{[Ve]:t.format[Ve]}):Ie,{}));const pe=oe(t.value,ue,de);let he=[ue.key];isArray$9(pe)?he=pe.map((Ie,Ve)=>{const Fe=ie[Ie.type],Ue=Fe?Fe({[Ie.type]:Ie.value,index:Ve,parts:pe}):[Ie.value];return isVNode(Ue)&&(Ue[0].key=`${Ie.type}-${Ve}`),Ue}):isString$4(pe)&&(he=[pe]);const _e=assign$4({},le),$e=isString$4(t.tag)||isObject$6(t.tag)?t.tag:getFragmentableTag();return h$2($e,_e,he)}}const NumberFormat={name:"i18n-n",props:assign$4({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,r){const V=t.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter(t,r,NUMBER_FORMAT_OPTIONS_KEYS,(...oe)=>V[NumberPartsSymbol](...oe))}},DatetimeFormat={name:"i18n-d",props:assign$4({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,r){const V=t.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter(t,r,DATETIME_FORMAT_OPTIONS_KEYS,(...oe)=>V[DatetimePartsSymbol](...oe))}};function getComposer$2(t,r){const V=t;if(t.mode==="composition")return V.__getInstance(r)||t.global;{const oe=V.__getInstance(r);return oe!=null?oe.__composer:t.global.__composer}}function vTDirective(t){const r=ue=>{const{instance:de,modifiers:pe,value:he}=ue;if(!de||!de.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const _e=getComposer$2(t,de.$),$e=parseValue(he);return[Reflect.apply(_e.t,_e,[...makeParams($e)]),_e]};return{created:(ue,de)=>{const[pe,he]=r(de);inBrowser&&t.global===he&&(ue.__i18nWatcher=watch(he.locale,()=>{de.instance&&de.instance.$forceUpdate()})),ue.__composer=he,ue.textContent=pe},unmounted:ue=>{inBrowser&&ue.__i18nWatcher&&(ue.__i18nWatcher(),ue.__i18nWatcher=void 0,delete ue.__i18nWatcher),ue.__composer&&(ue.__composer=void 0,delete ue.__composer)},beforeUpdate:(ue,{value:de})=>{if(ue.__composer){const pe=ue.__composer,he=parseValue(de);ue.textContent=Reflect.apply(pe.t,pe,[...makeParams(he)])}},getSSRProps:ue=>{const[de]=r(ue);return{textContent:de}}}}function parseValue(t){if(isString$4(t))return{path:t};if(isPlainObject$2(t)){if(!("path"in t))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return t}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(t){const{path:r,locale:V,args:oe,choice:ie,plural:le}=t,ue={},de=oe||{};return isString$4(V)&&(ue.locale=V),isNumber$3(ie)&&(ue.plural=ie),isNumber$3(le)&&(ue.plural=le),[r,de,ue]}function apply(t,r,...V){const oe=isPlainObject$2(V[0])?V[0]:{},ie=!!oe.useI18nComponentName;(isBoolean$2(oe.globalInstall)?oe.globalInstall:!0)&&(t.component(ie?"i18n":Translation.name,Translation),t.component(NumberFormat.name,NumberFormat),t.component(DatetimeFormat.name,DatetimeFormat)),t.directive("t",vTDirective(r))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(t={},r){const V=isBoolean$2(t.globalInjection)?t.globalInjection:!0,oe=!0,ie=new Map,[le,ue]=createGlobal(t),de=makeSymbol("");function pe($e){return ie.get($e)||null}function he($e,Ie){ie.set($e,Ie)}function _e($e){ie.delete($e)}{const $e={get mode(){return"composition"},get allowComposition(){return oe},async install(Ie,...Ve){Ie.__VUE_I18N_SYMBOL__=de,Ie.provide(Ie.__VUE_I18N_SYMBOL__,$e),V&&injectGlobalFields(Ie,$e.global),apply(Ie,$e,...Ve);const Fe=Ie.unmount;Ie.unmount=()=>{$e.dispose(),Fe()}},get global(){return ue},dispose(){le.stop()},__instances:ie,__getInstance:pe,__setInstance:he,__deleteInstance:_e};return $e}}function useI18n$1(t={}){const r=getCurrentInstance();if(r==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!r.isCE&&r.appContext.app!=null&&!r.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSLALLED);const V=getI18nInstance(r),oe=getGlobalComposer(V),ie=getComponentOptions(r),le=getScope(t,ie);if(le==="global")return adjustI18nResources(oe,t,ie),oe;if(le==="parent"){let pe=getComposer(V,r,t.__useComponent);return pe==null&&(pe=oe),pe}const ue=V;let de=ue.__getInstance(r);if(de==null){const pe=assign$4({},t);"__i18n"in ie&&(pe.__i18n=ie.__i18n),oe&&(pe.__root=oe),de=createComposer(pe),setupLifeCycle(ue,r),ue.__setInstance(r,de)}return de}function createGlobal(t,r,V){const oe=effectScope();{const ie=oe.run(()=>createComposer(t));if(ie==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[oe,ie]}}function getI18nInstance(t){{const r=inject(t.isCE?I18nInjectionKey:t.appContext.app.__VUE_I18N_SYMBOL__);if(!r)throw createI18nError(t.isCE?I18nErrorCodes.NOT_INSLALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return r}}function getScope(t,r){return isEmptyObject(t)?"__i18n"in r?"local":"global":t.useScope?t.useScope:"local"}function getGlobalComposer(t){return t.mode==="composition"?t.global:t.global.__composer}function getComposer(t,r,V=!1){let oe=null;const ie=r.root;let le=r.parent;for(;le!=null;){const ue=t;if(t.mode==="composition"&&(oe=ue.__getInstance(le)),oe!=null||ie===le)break;le=le.parent}return oe}function setupLifeCycle(t,r,V){onMounted(()=>{},r),onUnmounted(()=>{t.__deleteInstance(r)},r)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields(t,r){const V=Object.create(null);globalExportProps.forEach(oe=>{const ie=Object.getOwnPropertyDescriptor(r,oe);if(!ie)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const le=isRef(ie.value)?{get(){return ie.value.value},set(ue){ie.value.value=ue}}:{get(){return ie.get&&ie.get()}};Object.defineProperty(V,oe,le)}),t.config.globalProperties.$i18n=V,globalExportMethods.forEach(oe=>{const ie=Object.getOwnPropertyDescriptor(r,oe);if(!ie||!ie.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${oe}`,ie)})}registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);function bind$4(t,r){return function(){return t.apply(r,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(t=>r=>{const V=toString.call(r);return t[V]||(t[V]=V.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=t=>(t=t.toLowerCase(),r=>kindOf(r)===t),typeOfTest=t=>r=>typeof r===t,{isArray:isArray$8}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&isFunction$1(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(t){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(t):r=t&&t.buffer&&isArrayBuffer(t.buffer),r}const isString$3=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$2=typeOfTest("number"),isObject$5=t=>t!==null&&typeof t=="object",isBoolean$1=t=>t===!0||t===!1,isPlainObject$1=t=>{if(kindOf(t)!=="object")return!1;const r=getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=t=>isObject$5(t)&&isFunction$1(t.pipe),isFormData=t=>{let r;return t&&(typeof FormData=="function"&&t instanceof FormData||isFunction$1(t.append)&&((r=kindOf(t))==="formdata"||r==="object"&&isFunction$1(t.toString)&&t.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(t,r,{allOwnKeys:V=!1}={}){if(t===null||typeof t>"u")return;let oe,ie;if(typeof t!="object"&&(t=[t]),isArray$8(t))for(oe=0,ie=t.length;oe0;)if(ie=V[oe],r===ie.toLowerCase())return ie;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=t=>!isUndefined(t)&&t!==_global;function merge$2(){const{caseless:t}=isContextDefined(this)&&this||{},r={},V=(oe,ie)=>{const le=t&&findKey(r,ie)||ie;isPlainObject$1(r[le])&&isPlainObject$1(oe)?r[le]=merge$2(r[le],oe):isPlainObject$1(oe)?r[le]=merge$2({},oe):isArray$8(oe)?r[le]=oe.slice():r[le]=oe};for(let oe=0,ie=arguments.length;oe(forEach(r,(ie,le)=>{V&&isFunction$1(ie)?t[le]=bind$4(ie,V):t[le]=ie},{allOwnKeys:oe}),t),stripBOM=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),inherits$1=(t,r,V,oe)=>{t.prototype=Object.create(r.prototype,oe),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:r.prototype}),V&&Object.assign(t.prototype,V)},toFlatObject=(t,r,V,oe)=>{let ie,le,ue;const de={};if(r=r||{},t==null)return r;do{for(ie=Object.getOwnPropertyNames(t),le=ie.length;le-- >0;)ue=ie[le],(!oe||oe(ue,t,r))&&!de[ue]&&(r[ue]=t[ue],de[ue]=!0);t=V!==!1&&getPrototypeOf(t)}while(t&&(!V||V(t,r))&&t!==Object.prototype);return r},endsWith=(t,r,V)=>{t=String(t),(V===void 0||V>t.length)&&(V=t.length),V-=r.length;const oe=t.indexOf(r,V);return oe!==-1&&oe===V},toArray=t=>{if(!t)return null;if(isArray$8(t))return t;let r=t.length;if(!isNumber$2(r))return null;const V=new Array(r);for(;r-- >0;)V[r]=t[r];return V},isTypedArray$1=(t=>r=>t&&r instanceof t)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(t,r)=>{const oe=(t&&t[Symbol.iterator]).call(t);let ie;for(;(ie=oe.next())&&!ie.done;){const le=ie.value;r.call(t,le[0],le[1])}},matchAll=(t,r)=>{let V;const oe=[];for(;(V=t.exec(r))!==null;)oe.push(V);return oe},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(V,oe,ie){return oe.toUpperCase()+ie}),hasOwnProperty=(({hasOwnProperty:t})=>(r,V)=>t.call(r,V))(Object.prototype),isRegExp$3=kindOfTest("RegExp"),reduceDescriptors=(t,r)=>{const V=Object.getOwnPropertyDescriptors(t),oe={};forEach(V,(ie,le)=>{let ue;(ue=r(ie,le,t))!==!1&&(oe[le]=ue||ie)}),Object.defineProperties(t,oe)},freezeMethods=t=>{reduceDescriptors(t,(r,V)=>{if(isFunction$1(t)&&["arguments","caller","callee"].indexOf(V)!==-1)return!1;const oe=t[V];if(isFunction$1(oe)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+V+"'")})}})},toObjectSet=(t,r)=>{const V={},oe=ie=>{ie.forEach(le=>{V[le]=!0})};return isArray$8(t)?oe(t):oe(String(t).split(r)),V},noop$3=()=>{},toFiniteNumber=(t,r)=>(t=+t,Number.isFinite(t)?t:r),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(t=16,r=ALPHABET.ALPHA_DIGIT)=>{let V="";const{length:oe}=r;for(;t--;)V+=r[Math.random()*oe|0];return V};function isSpecCompliantForm(t){return!!(t&&isFunction$1(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const toJSONObject=t=>{const r=new Array(10),V=(oe,ie)=>{if(isObject$5(oe)){if(r.indexOf(oe)>=0)return;if(!("toJSON"in oe)){r[ie]=oe;const le=isArray$8(oe)?[]:{};return forEach(oe,(ue,de)=>{const pe=V(ue,ie+1);!isUndefined(pe)&&(le[de]=pe)}),r[ie]=void 0,le}}return oe};return V(t,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=t=>t&&(isObject$5(t)||isFunction$1(t))&&isFunction$1(t.then)&&isFunction$1(t.catch),utils$4={isArray:isArray$8,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$3,isNumber:isNumber$2,isBoolean:isBoolean$1,isObject:isObject$5,isPlainObject:isPlainObject$1,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp:isRegExp$3,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray:isTypedArray$1,isFileList,forEach,merge:merge$2,extend:extend$1,trim:trim$2,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase:toCamelCase$1,noop:noop$3,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(t,r,V,oe,ie){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",r&&(this.code=r),V&&(this.config=V),oe&&(this.request=oe),ie&&(this.response=ie)}utils$4.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$4.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{descriptors[t]={value:t}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(t,r,V,oe,ie,le)=>{const ue=Object.create(prototype$1);return utils$4.toFlatObject(t,ue,function(pe){return pe!==Error.prototype},de=>de!=="isAxiosError"),AxiosError.call(ue,t.message,r,V,oe,ie),ue.cause=t,ue.name=t.name,le&&Object.assign(ue,le),ue};const httpAdapter=null;function isVisitable(t){return utils$4.isPlainObject(t)||utils$4.isArray(t)}function removeBrackets(t){return utils$4.endsWith(t,"[]")?t.slice(0,-2):t}function renderKey(t,r,V){return t?t.concat(r).map(function(ie,le){return ie=removeBrackets(ie),!V&&le?"["+ie+"]":ie}).join(V?".":""):r}function isFlatArray(t){return utils$4.isArray(t)&&!t.some(isVisitable)}const predicates=utils$4.toFlatObject(utils$4,{},null,function(r){return/^is[A-Z]/.test(r)});function toFormData(t,r,V){if(!utils$4.isObject(t))throw new TypeError("target must be an object");r=r||new FormData,V=utils$4.toFlatObject(V,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Ue,qe){return!utils$4.isUndefined(qe[Ue])});const oe=V.metaTokens,ie=V.visitor||_e,le=V.dots,ue=V.indexes,pe=(V.Blob||typeof Blob<"u"&&Blob)&&utils$4.isSpecCompliantForm(r);if(!utils$4.isFunction(ie))throw new TypeError("visitor must be a function");function he(Fe){if(Fe===null)return"";if(utils$4.isDate(Fe))return Fe.toISOString();if(!pe&&utils$4.isBlob(Fe))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$4.isArrayBuffer(Fe)||utils$4.isTypedArray(Fe)?pe&&typeof Blob=="function"?new Blob([Fe]):Buffer.from(Fe):Fe}function _e(Fe,Ue,qe){let Et=Fe;if(Fe&&!qe&&typeof Fe=="object"){if(utils$4.endsWith(Ue,"{}"))Ue=oe?Ue:Ue.slice(0,-2),Fe=JSON.stringify(Fe);else if(utils$4.isArray(Fe)&&isFlatArray(Fe)||(utils$4.isFileList(Fe)||utils$4.endsWith(Ue,"[]"))&&(Et=utils$4.toArray(Fe)))return Ue=removeBrackets(Ue),Et.forEach(function(Lt,hn){!(utils$4.isUndefined(Lt)||Lt===null)&&r.append(ue===!0?renderKey([Ue],hn,le):ue===null?Ue:Ue+"[]",he(Lt))}),!1}return isVisitable(Fe)?!0:(r.append(renderKey(qe,Ue,le),he(Fe)),!1)}const $e=[],Ie=Object.assign(predicates,{defaultVisitor:_e,convertValue:he,isVisitable});function Ve(Fe,Ue){if(!utils$4.isUndefined(Fe)){if($e.indexOf(Fe)!==-1)throw Error("Circular reference detected in "+Ue.join("."));$e.push(Fe),utils$4.forEach(Fe,function(Et,At){(!(utils$4.isUndefined(Et)||Et===null)&&ie.call(r,Et,utils$4.isString(At)?At.trim():At,Ue,Ie))===!0&&Ve(Et,Ue?Ue.concat(At):[At])}),$e.pop()}}if(!utils$4.isObject(t))throw new TypeError("data must be an object");return Ve(t),r}function encode$2(t){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(oe){return r[oe]})}function AxiosURLSearchParams(t,r){this._pairs=[],t&&toFormData(t,this,r)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(r,V){this._pairs.push([r,V])};prototype.toString=function(r){const V=r?function(oe){return r.call(this,oe,encode$2)}:encode$2;return this._pairs.map(function(ie){return V(ie[0])+"="+V(ie[1])},"").join("&")};function encode$1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(t,r,V){if(!r)return t;const oe=V&&V.encode||encode$1,ie=V&&V.serialize;let le;if(ie?le=ie(r,V):le=utils$4.isURLSearchParams(r)?r.toString():new AxiosURLSearchParams(r,V).toString(oe),le){const ue=t.indexOf("#");ue!==-1&&(t=t.slice(0,ue)),t+=(t.indexOf("?")===-1?"?":"&")+le}return t}class InterceptorManager{constructor(){this.handlers=[]}use(r,V,oe){return this.handlers.push({fulfilled:r,rejected:V,synchronous:oe?oe.synchronous:!1,runWhen:oe?oe.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){utils$4.forEach(this.handlers,function(oe){oe!==null&&r(oe)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,isStandardBrowserEnv=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(t,r){return toFormData(t,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(V,oe,ie,le){return platform$1.isNode&&utils$4.isBuffer(V)?(this.append(oe,V.toString("base64")),!1):le.defaultVisitor.apply(this,arguments)}},r))}function parsePropPath(t){return utils$4.matchAll(/\w+|\[(\w*)]/g,t).map(r=>r[0]==="[]"?"":r[1]||r[0])}function arrayToObject$1(t){const r={},V=Object.keys(t);let oe;const ie=V.length;let le;for(oe=0;oe=V.length;return ue=!ue&&utils$4.isArray(ie)?ie.length:ue,pe?(utils$4.hasOwnProp(ie,ue)?ie[ue]=[ie[ue],oe]:ie[ue]=oe,!de):((!ie[ue]||!utils$4.isObject(ie[ue]))&&(ie[ue]=[]),r(V,oe,ie[ue],le)&&utils$4.isArray(ie[ue])&&(ie[ue]=arrayToObject$1(ie[ue])),!de)}if(utils$4.isFormData(t)&&utils$4.isFunction(t.entries)){const V={};return utils$4.forEachEntry(t,(oe,ie)=>{r(parsePropPath(oe),ie,V,0)}),V}return null}function stringifySafely(t,r,V){if(utils$4.isString(t))try{return(r||JSON.parse)(t),utils$4.trim(t)}catch(oe){if(oe.name!=="SyntaxError")throw oe}return(V||JSON.stringify)(t)}const defaults$3={transitional:transitionalDefaults,adapter:platform$1.isNode?"http":"xhr",transformRequest:[function(r,V){const oe=V.getContentType()||"",ie=oe.indexOf("application/json")>-1,le=utils$4.isObject(r);if(le&&utils$4.isHTMLForm(r)&&(r=new FormData(r)),utils$4.isFormData(r))return ie&&ie?JSON.stringify(formDataToJSON(r)):r;if(utils$4.isArrayBuffer(r)||utils$4.isBuffer(r)||utils$4.isStream(r)||utils$4.isFile(r)||utils$4.isBlob(r))return r;if(utils$4.isArrayBufferView(r))return r.buffer;if(utils$4.isURLSearchParams(r))return V.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let de;if(le){if(oe.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(r,this.formSerializer).toString();if((de=utils$4.isFileList(r))||oe.indexOf("multipart/form-data")>-1){const pe=this.env&&this.env.FormData;return toFormData(de?{"files[]":r}:r,pe&&new pe,this.formSerializer)}}return le||ie?(V.setContentType("application/json",!1),stringifySafely(r)):r}],transformResponse:[function(r){const V=this.transitional||defaults$3.transitional,oe=V&&V.forcedJSONParsing,ie=this.responseType==="json";if(r&&utils$4.isString(r)&&(oe&&!this.responseType||ie)){const ue=!(V&&V.silentJSONParsing)&&ie;try{return JSON.parse(r)}catch(de){if(ue)throw de.name==="SyntaxError"?AxiosError.from(de,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):de}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$1.classes.FormData,Blob:platform$1.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$4.forEach(["delete","get","head","post","put","patch"],t=>{defaults$3.headers[t]={}});const defaults$4=defaults$3,ignoreDuplicateOf=utils$4.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=t=>{const r={};let V,oe,ie;return t&&t.split(` `).forEach(function(ue){ie=ue.indexOf(":"),V=ue.substring(0,ie).trim().toLowerCase(),oe=ue.substring(ie+1).trim(),!(!V||r[V]&&ignoreDuplicateOf[V])&&(V==="set-cookie"?r[V]?r[V].push(oe):r[V]=[oe]:r[V]=r[V]?r[V]+", "+oe:oe)}),r},$internals=Symbol("internals");function normalizeHeader(t){return t&&String(t).trim().toLowerCase()}function normalizeValue(t){return t===!1||t==null?t:utils$4.isArray(t)?t.map(normalizeValue):String(t)}function parseTokens(t){const r=Object.create(null),V=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let oe;for(;oe=V.exec(t);)r[oe[1]]=oe[2];return r}const isValidHeaderName=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function matchHeaderValue(t,r,V,oe,ie){if(utils$4.isFunction(oe))return oe.call(this,r,V);if(ie&&(r=V),!!utils$4.isString(r)){if(utils$4.isString(oe))return r.indexOf(oe)!==-1;if(utils$4.isRegExp(oe))return oe.test(r)}}function formatHeader(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,V,oe)=>V.toUpperCase()+oe)}function buildAccessors(t,r){const V=utils$4.toCamelCase(" "+r);["get","set","has"].forEach(oe=>{Object.defineProperty(t,oe+V,{value:function(ie,le,ue){return this[oe].call(this,r,ie,le,ue)},configurable:!0})})}class AxiosHeaders{constructor(r){r&&this.set(r)}set(r,V,oe){const ie=this;function le(de,pe,he){const _e=normalizeHeader(pe);if(!_e)throw new Error("header name must be a non-empty string");const $e=utils$4.findKey(ie,_e);(!$e||ie[$e]===void 0||he===!0||he===void 0&&ie[$e]!==!1)&&(ie[$e||pe]=normalizeValue(de))}const ue=(de,pe)=>utils$4.forEach(de,(he,_e)=>le(he,_e,pe));return utils$4.isPlainObject(r)||r instanceof this.constructor?ue(r,V):utils$4.isString(r)&&(r=r.trim())&&!isValidHeaderName(r)?ue(parseHeaders(r),V):r!=null&&le(V,r,oe),this}get(r,V){if(r=normalizeHeader(r),r){const oe=utils$4.findKey(this,r);if(oe){const ie=this[oe];if(!V)return ie;if(V===!0)return parseTokens(ie);if(utils$4.isFunction(V))return V.call(this,ie,oe);if(utils$4.isRegExp(V))return V.exec(ie);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,V){if(r=normalizeHeader(r),r){const oe=utils$4.findKey(this,r);return!!(oe&&this[oe]!==void 0&&(!V||matchHeaderValue(this,this[oe],oe,V)))}return!1}delete(r,V){const oe=this;let ie=!1;function le(ue){if(ue=normalizeHeader(ue),ue){const de=utils$4.findKey(oe,ue);de&&(!V||matchHeaderValue(oe,oe[de],de,V))&&(delete oe[de],ie=!0)}}return utils$4.isArray(r)?r.forEach(le):le(r),ie}clear(r){const V=Object.keys(this);let oe=V.length,ie=!1;for(;oe--;){const le=V[oe];(!r||matchHeaderValue(this,this[le],le,r,!0))&&(delete this[le],ie=!0)}return ie}normalize(r){const V=this,oe={};return utils$4.forEach(this,(ie,le)=>{const ue=utils$4.findKey(oe,le);if(ue){V[ue]=normalizeValue(ie),delete V[le];return}const de=r?formatHeader(le):String(le).trim();de!==le&&delete V[le],V[de]=normalizeValue(ie),oe[de]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const V=Object.create(null);return utils$4.forEach(this,(oe,ie)=>{oe!=null&&oe!==!1&&(V[ie]=r&&utils$4.isArray(oe)?oe.join(", "):oe)}),V}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,V])=>r+": "+V).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...V){const oe=new this(r);return V.forEach(ie=>oe.set(ie)),oe}static accessor(r){const oe=(this[$internals]=this[$internals]={accessors:{}}).accessors,ie=this.prototype;function le(ue){const de=normalizeHeader(ue);oe[de]||(buildAccessors(ie,ue),oe[de]=!0)}return utils$4.isArray(r)?r.forEach(le):le(r),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$4.reduceDescriptors(AxiosHeaders.prototype,({value:t},r)=>{let V=r[0].toUpperCase()+r.slice(1);return{get:()=>t,set(oe){this[V]=oe}}});utils$4.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(t,r){const V=this||defaults$4,oe=r||V,ie=AxiosHeaders$1.from(oe.headers);let le=oe.data;return utils$4.forEach(t,function(de){le=de.call(V,le,ie.normalize(),r?r.status:void 0)}),ie.normalize(),le}function isCancel(t){return!!(t&&t.__CANCEL__)}function CanceledError(t,r,V){AxiosError.call(this,t??"canceled",AxiosError.ERR_CANCELED,r,V),this.name="CanceledError"}utils$4.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(t,r,V){const oe=V.config.validateStatus;!V.status||!oe||oe(V.status)?t(V):r(new AxiosError("Request failed with status code "+V.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(V.status/100)-4],V.config,V.request,V))}const cookies=platform$1.isStandardBrowserEnv?function(){return{write:function(V,oe,ie,le,ue,de){const pe=[];pe.push(V+"="+encodeURIComponent(oe)),utils$4.isNumber(ie)&&pe.push("expires="+new Date(ie).toGMTString()),utils$4.isString(le)&&pe.push("path="+le),utils$4.isString(ue)&&pe.push("domain="+ue),de===!0&&pe.push("secure"),document.cookie=pe.join("; ")},read:function(V){const oe=document.cookie.match(new RegExp("(^|;\\s*)("+V+")=([^;]*)"));return oe?decodeURIComponent(oe[3]):null},remove:function(V){this.write(V,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function combineURLs(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}function buildFullPath(t,r){return t&&!isAbsoluteURL(r)?combineURLs(t,r):r}const isURLSameOrigin=platform$1.isStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),V=document.createElement("a");let oe;function ie(le){let ue=le;return r&&(V.setAttribute("href",ue),ue=V.href),V.setAttribute("href",ue),{href:V.href,protocol:V.protocol?V.protocol.replace(/:$/,""):"",host:V.host,search:V.search?V.search.replace(/^\?/,""):"",hash:V.hash?V.hash.replace(/^#/,""):"",hostname:V.hostname,port:V.port,pathname:V.pathname.charAt(0)==="/"?V.pathname:"/"+V.pathname}}return oe=ie(window.location.href),function(ue){const de=utils$4.isString(ue)?ie(ue):ue;return de.protocol===oe.protocol&&de.host===oe.host}}():function(){return function(){return!0}}();function parseProtocol(t){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}function speedometer(t,r){t=t||10;const V=new Array(t),oe=new Array(t);let ie=0,le=0,ue;return r=r!==void 0?r:1e3,function(pe){const he=Date.now(),_e=oe[le];ue||(ue=he),V[ie]=pe,oe[ie]=he;let $e=le,Ie=0;for(;$e!==ie;)Ie+=V[$e++],$e=$e%t;if(ie=(ie+1)%t,ie===le&&(le=(le+1)%t),he-ue{const le=ie.loaded,ue=ie.lengthComputable?ie.total:void 0,de=le-V,pe=oe(de),he=le<=ue;V=le;const _e={loaded:le,total:ue,progress:ue?le/ue:void 0,bytes:de,rate:pe||void 0,estimated:pe&&ue&&he?(ue-le)/pe:void 0,event:ie};_e[r?"download":"upload"]=!0,t(_e)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(t){return new Promise(function(V,oe){let ie=t.data;const le=AxiosHeaders$1.from(t.headers).normalize(),ue=t.responseType;let de;function pe(){t.cancelToken&&t.cancelToken.unsubscribe(de),t.signal&&t.signal.removeEventListener("abort",de)}utils$4.isFormData(ie)&&(platform$1.isStandardBrowserEnv||platform$1.isStandardBrowserWebWorkerEnv?le.setContentType(!1):le.setContentType("multipart/form-data;",!1));let he=new XMLHttpRequest;if(t.auth){const Ve=t.auth.username||"",Fe=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";le.set("Authorization","Basic "+btoa(Ve+":"+Fe))}const _e=buildFullPath(t.baseURL,t.url);he.open(t.method.toUpperCase(),buildURL(_e,t.params,t.paramsSerializer),!0),he.timeout=t.timeout;function $e(){if(!he)return;const Ve=AxiosHeaders$1.from("getAllResponseHeaders"in he&&he.getAllResponseHeaders()),Ue={data:!ue||ue==="text"||ue==="json"?he.responseText:he.response,status:he.status,statusText:he.statusText,headers:Ve,config:t,request:he};settle(function(Et){V(Et),pe()},function(Et){oe(Et),pe()},Ue),he=null}if("onloadend"in he?he.onloadend=$e:he.onreadystatechange=function(){!he||he.readyState!==4||he.status===0&&!(he.responseURL&&he.responseURL.indexOf("file:")===0)||setTimeout($e)},he.onabort=function(){he&&(oe(new AxiosError("Request aborted",AxiosError.ECONNABORTED,t,he)),he=null)},he.onerror=function(){oe(new AxiosError("Network Error",AxiosError.ERR_NETWORK,t,he)),he=null},he.ontimeout=function(){let Fe=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const Ue=t.transitional||transitionalDefaults;t.timeoutErrorMessage&&(Fe=t.timeoutErrorMessage),oe(new AxiosError(Fe,Ue.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,t,he)),he=null},platform$1.isStandardBrowserEnv){const Ve=(t.withCredentials||isURLSameOrigin(_e))&&t.xsrfCookieName&&cookies.read(t.xsrfCookieName);Ve&&le.set(t.xsrfHeaderName,Ve)}ie===void 0&&le.setContentType(null),"setRequestHeader"in he&&utils$4.forEach(le.toJSON(),function(Fe,Ue){he.setRequestHeader(Ue,Fe)}),utils$4.isUndefined(t.withCredentials)||(he.withCredentials=!!t.withCredentials),ue&&ue!=="json"&&(he.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&he.addEventListener("progress",progressEventReducer(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&he.upload&&he.upload.addEventListener("progress",progressEventReducer(t.onUploadProgress)),(t.cancelToken||t.signal)&&(de=Ve=>{he&&(oe(!Ve||Ve.type?new CanceledError(null,t,he):Ve),he.abort(),he=null)},t.cancelToken&&t.cancelToken.subscribe(de),t.signal&&(t.signal.aborted?de():t.signal.addEventListener("abort",de)));const Ie=parseProtocol(_e);if(Ie&&platform$1.protocols.indexOf(Ie)===-1){oe(new AxiosError("Unsupported protocol "+Ie+":",AxiosError.ERR_BAD_REQUEST,t));return}he.send(ie||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$4.forEach(knownAdapters,(t,r)=>{if(t){try{Object.defineProperty(t,"name",{value:r})}catch{}Object.defineProperty(t,"adapterName",{value:r})}});const adapters={getAdapter:t=>{t=utils$4.isArray(t)?t:[t];const{length:r}=t;let V,oe;for(let ie=0;iet instanceof AxiosHeaders$1?t.toJSON():t;function mergeConfig(t,r){r=r||{};const V={};function oe(he,_e,$e){return utils$4.isPlainObject(he)&&utils$4.isPlainObject(_e)?utils$4.merge.call({caseless:$e},he,_e):utils$4.isPlainObject(_e)?utils$4.merge({},_e):utils$4.isArray(_e)?_e.slice():_e}function ie(he,_e,$e){if(utils$4.isUndefined(_e)){if(!utils$4.isUndefined(he))return oe(void 0,he,$e)}else return oe(he,_e,$e)}function le(he,_e){if(!utils$4.isUndefined(_e))return oe(void 0,_e)}function ue(he,_e){if(utils$4.isUndefined(_e)){if(!utils$4.isUndefined(he))return oe(void 0,he)}else return oe(void 0,_e)}function de(he,_e,$e){if($e in r)return oe(he,_e);if($e in t)return oe(void 0,he)}const pe={url:le,method:le,data:le,baseURL:ue,transformRequest:ue,transformResponse:ue,paramsSerializer:ue,timeout:ue,timeoutMessage:ue,withCredentials:ue,adapter:ue,responseType:ue,xsrfCookieName:ue,xsrfHeaderName:ue,onUploadProgress:ue,onDownloadProgress:ue,decompress:ue,maxContentLength:ue,maxBodyLength:ue,beforeRedirect:ue,transport:ue,httpAgent:ue,httpsAgent:ue,cancelToken:ue,socketPath:ue,responseEncoding:ue,validateStatus:de,headers:(he,_e)=>ie(headersToObject(he),headersToObject(_e),!0)};return utils$4.forEach(Object.keys(Object.assign({},t,r)),function(_e){const $e=pe[_e]||ie,Ie=$e(t[_e],r[_e],_e);utils$4.isUndefined(Ie)&&$e!==de||(V[_e]=Ie)}),V}const VERSION="1.5.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((t,r)=>{validators$1[t]=function(oe){return typeof oe===t||"a"+(r<1?"n ":" ")+t}});const deprecatedWarnings={};validators$1.transitional=function(r,V,oe){function ie(le,ue){return"[Axios v"+VERSION+"] Transitional option '"+le+"'"+ue+(oe?". "+oe:"")}return(le,ue,de)=>{if(r===!1)throw new AxiosError(ie(ue," has been removed"+(V?" in "+V:"")),AxiosError.ERR_DEPRECATED);return V&&!deprecatedWarnings[ue]&&(deprecatedWarnings[ue]=!0,console.warn(ie(ue," has been deprecated since v"+V+" and will be removed in the near future"))),r?r(le,ue,de):!0}};function assertOptions(t,r,V){if(typeof t!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const oe=Object.keys(t);let ie=oe.length;for(;ie-- >0;){const le=oe[ie],ue=r[le];if(ue){const de=t[le],pe=de===void 0||ue(de,le,t);if(pe!==!0)throw new AxiosError("option "+le+" must be "+pe,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(V!==!0)throw new AxiosError("Unknown option "+le,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(r){this.defaults=r,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(r,V){typeof r=="string"?(V=V||{},V.url=r):V=r||{},V=mergeConfig(this.defaults,V);const{transitional:oe,paramsSerializer:ie,headers:le}=V;oe!==void 0&&validator.assertOptions(oe,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),ie!=null&&(utils$4.isFunction(ie)?V.paramsSerializer={serialize:ie}:validator.assertOptions(ie,{encode:validators.function,serialize:validators.function},!0)),V.method=(V.method||this.defaults.method||"get").toLowerCase();let ue=le&&utils$4.merge(le.common,le[V.method]);le&&utils$4.forEach(["delete","get","head","post","put","patch","common"],Fe=>{delete le[Fe]}),V.headers=AxiosHeaders$1.concat(ue,le);const de=[];let pe=!0;this.interceptors.request.forEach(function(Ue){typeof Ue.runWhen=="function"&&Ue.runWhen(V)===!1||(pe=pe&&Ue.synchronous,de.unshift(Ue.fulfilled,Ue.rejected))});const he=[];this.interceptors.response.forEach(function(Ue){he.push(Ue.fulfilled,Ue.rejected)});let _e,$e=0,Ie;if(!pe){const Fe=[dispatchRequest.bind(this),void 0];for(Fe.unshift.apply(Fe,de),Fe.push.apply(Fe,he),Ie=Fe.length,_e=Promise.resolve(V);$e{if(!oe._listeners)return;let le=oe._listeners.length;for(;le-- >0;)oe._listeners[le](ie);oe._listeners=null}),this.promise.then=ie=>{let le;const ue=new Promise(de=>{oe.subscribe(de),le=de}).then(ie);return ue.cancel=function(){oe.unsubscribe(le)},ue},r(function(le,ue,de){oe.reason||(oe.reason=new CanceledError(le,ue,de),V(oe.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const V=this._listeners.indexOf(r);V!==-1&&this._listeners.splice(V,1)}static source(){let r;return{token:new CancelToken(function(ie){r=ie}),cancel:r}}}const CancelToken$1=CancelToken;function spread(t){return function(V){return t.apply(null,V)}}function isAxiosError(t){return utils$4.isObject(t)&&t.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([t,r])=>{HttpStatusCode[r]=t});const HttpStatusCode$1=HttpStatusCode;function createInstance(t){const r=new Axios$1(t),V=bind$4(Axios$1.prototype.request,r);return utils$4.extend(V,Axios$1.prototype,r,{allOwnKeys:!0}),utils$4.extend(V,r,null,{allOwnKeys:!0}),V.create=function(ie){return createInstance(mergeConfig(t,ie))},V}const axios=createInstance(defaults$4);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(r){return Promise.all(r)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=t=>formDataToJSON(utils$4.isHTMLForm(t)?new FormData(t):t);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;let config={};const{VITE_PUBLIC_PATH}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},setConfig=t=>{config=Object.assign(config,t)},getConfig=t=>{if(typeof t=="string"){const r=t.split(".");if(r&&r.length){let V=config;return r.forEach(oe=>{V&&typeof V[oe]<"u"?V=V[oe]:V=null}),V}}return config},getServerConfig=async t=>(t.config.globalProperties.$config=getConfig(),axios$1({method:"get",url:`${VITE_PUBLIC_PATH}serverConfig.json`}).then(({data:r})=>{let V=t.config.globalProperties.$config;return t&&V&&typeof r=="object"&&(V=Object.assign(V,r),t.config.globalProperties.$config=V,setConfig(V)),V}).catch(()=>{throw"请在public文件夹下添加serverConfig.json配置文件"})),responsiveStorageNameSpace=()=>getConfig().ResponsiveStorageNameSpace;function siphonI18n(t="zh-CN"){return Object.fromEntries(Object.entries(Object.assign({"../../locales/en.yaml":__vite_glob_0_0$2,"../../locales/zh-CN.yaml":__vite_glob_0_1$2})).map(([r,V])=>[r.match(/([A-Za-z0-9-_]+)\./i)[1],V.default]))[t]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhCn},en:{...siphonI18n("en"),...en$1}};function getObjectKeys(t){const r=[],V=[];for(r.push({obj:t,key:""});r.length>0;){const{obj:oe,key:ie}=r.pop();for(const le in oe){const ue=ie?`${ie}.${le}`:le;oe[le]&&k(oe[le])?r.push({obj:oe[le],key:ue}):V.push(ue)}}return V}function transformI18n(t=""){var V;if(!t)return"";if(typeof t=="object"){const oe=i18n.global.locale;return t[oe==null?void 0:oe.value]}const r=(V=t.match(/(\S*)\./))==null?void 0:V.input;return r&&getObjectKeys(siphonI18n("zh-CN")).find(oe=>oe===r)||!r&&Object.keys(siphonI18n("zh-CN")).includes(t)?i18n.global.t.call(i18n.global.locale,t):t}const $t=t=>t;var ra;const i18n=createI18n({legacy:!1,locale:((ra=nr().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:ra.locale)??"zh",fallbackLocale:"en",messages:localesConfigs});function useI18n(t){t.use(i18n)}const home$1=0,doc=1,utils$3=2,table$1=3,components$1=4,able$1=5,frame$1=6,nested$1=7,result$1=8,error$1=9,list$2=10,permission=11,system$1=12,tabs=13,formdesign$1=14,flowchart$1=15,ppt$1=16,editor$1=17,guide$1=18,menuoverflow$1=19,about$1=20,able={path:"/able",redirect:"/able/watermark",meta:{icon:"ubuntuFill",title:$t("menus.hsAble"),rank:able$1},children:[{path:"/able/videoFrame",name:"VideoFrame",component:()=>__vitePreload(()=>import("./index2.js"),["static/js/index2.js","static/js/mitt.js","static/css/index2.css"]),meta:{title:$t("menus.hsVideoFrame"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/able/wavesurfer",name:"Wavesurfer",component:()=>__vitePreload(()=>import("./index3.js"),["static/js/index3.js","static/js/vue-tippy.esm-browser.js","static/css/index3.css"]),meta:{title:$t("menus.hsWavesurfer"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/able/directives",name:"Directives",component:()=>__vitePreload(()=>import("./directives.js"),[]),meta:{title:$t("menus.hsOptimize")}},{path:"/able/watermark",name:"WaterMark",component:()=>__vitePreload(()=>import("./watermark.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print.js"),["static/js/print.js","static/js/print2.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/app.js","static/css/print.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select.js"),["static/js/icon-select.js","static/css/icon-select.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline.js"),["static/js/timeline.js","static/js/index60.js","static/css/index12.css","static/js/hooks.js","static/js/iphone.js","static/css/timeline.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree.js"),["static/js/menu-tree.js","static/js/hooks.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree.js"),["static/js/line-tree.js","static/css/line-tree.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce.js"),[]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode.js"),["static/js/qrcode.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css"]),meta:{title:$t("menus.hsQrcode")}},{path:"/able/cascader",name:"Cascader",component:()=>__vitePreload(()=>import("./cascader.js"),["static/js/cascader.js","static/css/cascader.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper.js"),["static/js/swiper.js","static/css/swiper.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index4.js"),["static/js/index4.js","static/js/vertical.js","static/js/vue-virtual-scroller.esm.js","static/css/vertical.css","static/js/horizontal.js","static/css/horizontal.css","static/css/index4.css"]),meta:{title:$t("menus.hsVirtualList")}},{path:"/able/pdf",name:"Pdf",component:()=>__vitePreload(()=>import("./pdf.js"),["static/js/pdf.js","static/js/vue.runtime.esm-bundler.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/excel",name:"Excel",component:()=>__vitePreload(()=>import("./excel.js"),["static/js/excel.js","static/js/xlsx.js"]),meta:{title:$t("menus.hsExcel")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll.js"),[]),meta:{title:$t("menus.hsInfiniteScroll")}},{path:"/able/sensitive",name:"Sensitive",component:()=>__vitePreload(()=>import("./sensitive.js"),[]),meta:{title:$t("menus.hsSensitive"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/able/pinyin",name:"Pinyin",component:()=>__vitePreload(()=>import("./pinyin.js"),["static/js/pinyin.js","static/js/index62.js","static/css/pinyin.css"]),meta:{title:$t("menus.hsPinyin"),extraIcon:"IF-pure-iconfont-new svg"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:able},Symbol.toStringTag,{value:"Module"})),about={path:"/about",redirect:"/about/index",meta:{title:$t("menus.hsAbout"),rank:about$1},children:[{path:"/about/index",name:"About",component:()=>__vitePreload(()=>import("./index5.js"),["static/js/index5.js","static/js/columns.js","static/css/index5.css"]),meta:{title:$t("menus.hsAbout")}}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:about},Symbol.toStringTag,{value:"Module"})),components={path:"/components",redirect:"/components/dialog",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"DialogPage",component:()=>__vitePreload(()=>import("./index6.js"),["static/js/index6.js","static/js/form.vue_vue_type_script_setup_true_lang.js","static/js/formPrimitive.vue_vue_type_script_setup_true_lang.js"]),meta:{title:$t("menus.hsdialog"),extraIcon:"IF-pure-iconfont-new svg",transition:{enterTransition:"animate__fadeInLeft",leaveTransition:"animate__fadeOutRight"}}},{path:"/components/message",name:"Message",component:()=>__vitePreload(()=>import("./index7.js"),["static/js/index7.js","static/js/hooks.js","static/js/check.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/segmented",name:"Segmented",component:()=>__vitePreload(()=>import("./index8.js"),["static/js/index8.js","static/js/home-filled.js","static/js/hooks.js","static/css/index6.css"]),meta:{title:$t("menus.hssegmented"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/waterfall",name:"Waterfall",component:()=>__vitePreload(()=>import("./index9.js"),["static/js/index9.js","static/js/back_top.js","static/css/index7.css"]),meta:{title:$t("menus.hswaterfall"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/video",name:"VideoPage",component:()=>__vitePreload(()=>import("./index10.js"),["static/js/index10.js","static/js/hooks.js","static/css/index8.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"MapPage",component:()=>__vitePreload(()=>import("./index11.js"),["static/js/index11.js","static/css/index9.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index12.js"),["static/js/index12.js","static/js/sortable.esm.js","static/js/app.js","static/js/hooks.js","static/css/index10.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index13.js"),["static/js/index13.js","static/css/index11.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"ButtonPage",component:()=>__vitePreload(()=>import("./index14.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index15.js"),["static/js/index15.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index16.js"),["static/js/index16.js","static/js/propTypes.js","static/css/index15.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index17.js"),["static/js/index17.js","static/css/index16.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index18.js"),["static/js/index18.js","static/css/index17.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index19.js"),["static/js/index19.js","static/js/basic.js","static/js/index.esm.js","static/css/basic.css","static/js/menuGroup.js","static/css/menuGroup.css","static/js/menuDynamic.js","static/css/menuDynamic.css","static/css/index18.css"]),meta:{title:$t("menus.hscontextmenu")}},{path:"/components/typeit",name:"Typeit",component:()=>__vitePreload(()=>import("./index20.js"),["static/js/index20.js","static/js/index64.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index21.js"),["static/js/index21.js","static/js/styles.js","static/js/vue.runtime.esm-bundler.js","static/css/styles.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index22.js"),["static/js/index22.js","static/css/index19.css"]),meta:{title:$t("menus.hsdanmaku")}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:components},Symbol.toStringTag,{value:"Module"})),editor={path:"/editor",redirect:"/editor/index",meta:{icon:"edit",title:$t("menus.hseditor"),rank:editor$1},children:[{path:"/editor/index",name:"Editor",component:()=>__vitePreload(()=>import("./index23.js"),["static/js/index23.js","static/js/base.vue_vue_type_script_setup_true_lang.js","static/js/index.esm2.js","static/css/index21.css","static/js/multi.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/picUpload.vue_vue_type_script_setup_true_lang.js","static/css/index20.css"]),meta:{title:$t("menus.hseditor"),keepAlive:!0}}]},__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:editor},Symbol.toStringTag,{value:"Module"})),error={path:"/error",redirect:"/error/403",meta:{icon:"informationLine",title:$t("menus.hsabnormal"),rank:error$1},children:[{path:"/error/403",name:"403",component:()=>__vitePreload(()=>import("./403.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500.js"),[]),meta:{title:$t("menus.hsFive")}}]},__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:error},Symbol.toStringTag,{value:"Module"})),flowchart={path:"/flowChart",redirect:"/flowChart/index",meta:{icon:"setUp",title:$t("menus.hsflowChart"),rank:flowchart$1},children:[{path:"/flowChart/index",name:"FlowChart",component:()=>__vitePreload(()=>import("./index24.js"),["static/js/index24.js","static/js/hooks.js","static/js/styles.js","static/js/vue.runtime.esm-bundler.js","static/css/styles.css","static/js/set-up.js","static/css/index22.css"]),meta:{title:$t("menus.hsflowChart")}}]},__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:flowchart},Symbol.toStringTag,{value:"Module"})),IFrame$4=()=>__vitePreload(()=>import("./frameView.js"),["static/js/frameView.js","static/css/frameView.css"]),formdesign={path:"/formDesign",redirect:"/formDesign/index",meta:{icon:"terminalWindowLine",title:$t("menus.hsFormDesign"),rank:formdesign$1},children:[{path:"/formDesign/index",name:"FormDesign",component:IFrame$4,meta:{title:$t("menus.hsFormDesign"),frameSrc:"https://haixin-fang.github.io/starfish-vue3-lowcode/playground/index.html#/"}}]},__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:formdesign},Symbol.toStringTag,{value:"Module"})),guide={path:"/guide",redirect:"/guide/index",meta:{icon:"guide",title:$t("menus.hsguide"),rank:guide$1},children:[{path:"/guide/index",name:"Guide",component:()=>__vitePreload(()=>import("./index25.js"),["static/js/index25.js","static/css/index23.css"]),meta:{title:$t("menus.hsguide")}}]},__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:guide},Symbol.toStringTag,{value:"Module"})),{VITE_HIDE_HOME:VITE_HIDE_HOME$2}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Layout$1=()=>__vitePreload(()=>import("./index26.js"),["static/js/index26.js","static/js/menu.js","static/js/set-up.js","static/js/home-filled.js","static/js/admin-line.js","static/js/git-branch-line.js","static/js/dark.js","static/js/epTheme.js","static/js/mitt.js","static/js/app.js","static/js/index62.js","static/js/hooks.js","static/js/search.js","static/js/check.js","static/js/refresh-right.js","static/js/arrow-right-s-line.js","static/js/back_top.js","static/css/index24.css"]),home={path:"/",name:"Home",component:Layout$1,redirect:"/welcome",meta:{icon:"homeFilled",title:$t("menus.hshome"),rank:home$1},children:[{path:"/welcome",name:"Welcome",component:()=>__vitePreload(()=>import("./index27.js"),["static/js/index27.js","static/js/Bar.vue_vue_type_script_setup_true_lang.js","static/js/app.js","static/js/Pie.vue_vue_type_script_setup_true_lang.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/list3.js","static/js/index64.js","static/js/Github.vue_vue_type_script_setup_true_lang.js","static/js/columns17.js","static/js/office-building.js","static/js/iphone.js","static/js/user-3-fill.js","static/js/index60.js","static/css/index12.css","static/css/index25.css"]),meta:{title:$t("menus.hshome"),showLink:VITE_HIDE_HOME$2!=="true"}}]},__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:home},Symbol.toStringTag,{value:"Module"})),list$1={path:"/list",redirect:"/list/card",meta:{icon:"listCheck",title:$t("menus.hsList"),rank:list$2},children:[{path:"/list/card",name:"ListCard",component:()=>__vitePreload(()=>import("./index28.js"),["static/js/index28.js","static/js/Card.js","static/js/more-2-fill.js","static/css/Card.css","static/js/list3.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang.js","static/js/hooks.js","static/js/search.js","static/js/add-circle-line.js"]),meta:{icon:"card",title:$t("menus.hsListCard"),showParent:!0}}]},__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:list$1},Symbol.toStringTag,{value:"Module"})),menuoverflow={path:"/menuoverflow",redirect:"/menuoverflow/index",meta:{title:$t("menus.hsMenuoverflow"),rank:menuoverflow$1},children:[{path:"/menuoverflow/index",name:"MenuOverflow",component:()=>__vitePreload(()=>import("./index29.js"),[]),meta:{title:$t("menus.hsChildMenuoverflow"),showParent:!0}}]},__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:menuoverflow},Symbol.toStringTag,{value:"Module"})),nested={path:"/nested",redirect:"/nested/menu1/menu1-1",meta:{title:$t("menus.hsmenus"),icon:"histogram",rank:nested$1},children:[{path:"/nested/menu1",meta:{title:$t("menus.hsmenu1"),keepAlive:!0},redirect:"/nested/menu1/menu1-1",children:[{path:"/nested/menu1/menu1-1",component:()=>__vitePreload(()=>import("./index30.js"),[]),name:"Menu1-1",meta:{title:$t("menus.hsmenu1-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:$t("menus.hsmenu1-2"),keepAlive:!0},children:[{path:"/nested/menu1/menu1-2/menu1-2-1",component:()=>__vitePreload(()=>import("./index31.js"),[]),name:"Menu1-2-1",meta:{title:$t("menus.hsmenu1-2-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2/menu1-2-2",component:()=>__vitePreload(()=>import("./index32.js"),[]),name:"Menu1-2-2",meta:{title:$t("menus.hsmenu1-2-2"),keepAlive:!0,extraIcon:"IF-pure-iconfont-new svg"}}]},{path:"/nested/menu1/menu1-3",component:()=>__vitePreload(()=>import("./index33.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index34.js"),[]),meta:{title:$t("menus.hsmenu2"),keepAlive:!0}}]},__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:nested},Symbol.toStringTag,{value:"Module"})),IFrame$3=()=>__vitePreload(()=>import("./frameView.js"),["static/js/frameView.js","static/css/frameView.css"]),ppt={path:"/ppt",redirect:"/ppt/index",meta:{icon:"ppt",title:"PPT",rank:ppt$1},children:[{path:"/ppt/index",name:"FramePpt",component:IFrame$3,meta:{title:"PPT",frameSrc:"https://pipipi-pikachu.github.io/PPTist/",frameLoading:!1}}]},__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:ppt},Symbol.toStringTag,{value:"Module"})),_hoisted_1={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 1024"},_hoisted_2=createBaseVNode("path",{fill:"#FF5D50",d:"M428.698 107.315c-6.503 72.192-36.352 207.258-160.256 337.408 3.686-48.025-7.117-83.763-19.047-107.673-6.605-13.159-26.06-10.599-28.877 3.84-5.734 29.44-20.582 75.059-57.6 137.779-71.628 121.395-62.566 459.878 340.736 459.878S934.093 585.728 876.8 442.522c-37.376-93.44-93.952-152.525-128.82-182.324-11.417-9.779-29.132-1.945-29.593 13.056-.921 30.464-7.321 73.37-33.075 102.144-.666-52.787-38.144-208.384-202.445-296.857-23.296-12.544-51.763 2.457-54.17 28.774z"},null,-1),_hoisted_3=createBaseVNode("path",{fill:"#FFDF99",d:"M702.26 678.4c-4.2-45.056-60.673-166.554-212.634-246.426-10.599-5.58-23.092 3.124-21.504 15.002 6.246 46.848 12.953 140.493-24.064 184.73 4.044-40.397-18.125-73.83-36.66-94.31-8.396-9.217-23.552-4.66-25.497 7.68-3.533 22.322-12.851 56.268-36.557 97.945-42.086 74.035-86.989 188.672 124.57 294.656 10.956.563 22.17.87 33.74.87a617.97 617.97 0 0 0 32.717-.87C694.631 878.182 709.837 759.706 702.26 678.4z"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3];function render$3(t,r){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_4)}const hot={render:render$3},IFrame$2=()=>__vitePreload(()=>import("./frameView.js"),["static/js/frameView.js","static/css/frameView.css"]),puredoc={path:"/pure-admin-doc",redirect:"/pure-admin-doc/index",meta:{icon:hot,title:"pure-admin-doc",rank:doc},children:[{path:"/pure-admin-doc/index",name:"FrameDoc",component:IFrame$2,meta:{title:"pure-admin-doc",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc/"}}]},__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:puredoc},Symbol.toStringTag,{value:"Module"})),IFrame$1=()=>__vitePreload(()=>import("./frameView.js"),["static/js/frameView.js","static/css/frameView.css"]),pureutils={path:"/pure-admin-utils",redirect:"/pure-admin-utils/index",meta:{icon:hot,title:"pure-admin-utils",rank:utils$3},children:[{path:"/pure-admin-utils/index",name:"FrameUtils",component:IFrame$1,meta:{title:"pure-admin-utils",frameSrc:"https://pure-admin-utils.netlify.app/"}}]},__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:pureutils},Symbol.toStringTag,{value:"Module"})),result={path:"/result",redirect:"/result/success",meta:{icon:"checkboxCircleLine",title:$t("menus.hsResult"),rank:result$1},children:[{path:"/result/success",name:"Success",component:()=>__vitePreload(()=>import("./success.js"),["static/js/success.js","static/css/success.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail.js"),["static/js/fail.js","static/js/columns16.js","static/js/arrow-right-s-line.js","static/css/fail.css"]),meta:{title:$t("menus.hsFail")}}]},__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:result},Symbol.toStringTag,{value:"Module"})),table={path:"/pure-table",redirect:"/pure-table/index",meta:{icon:hot,title:"pure-admin-table",rank:table$1},children:[{path:"/pure-table/index",name:"PureTable",component:()=>__vitePreload(()=>import("./index35.js"),["static/js/index35.js","static/js/list.js","static/js/base.vue_vue_type_script_setup_true_lang2.js","static/js/data.js","static/js/stripe.vue_vue_type_script_setup_true_lang.js","static/js/border.vue_vue_type_script_setup_true_lang.js","static/js/status.vue_vue_type_style_index_0_lang.js","static/css/status.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang.js","static/js/radio.vue_vue_type_script_setup_true_lang.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang.js","static/js/sortable.vue_vue_type_script_setup_true_lang.js","static/js/filters.vue_vue_type_script_setup_true_lang.js","static/js/index.vue_vue_type_script_setup_true_lang.js","static/js/columns2.js","static/js/index.vue_vue_type_script_setup_true_lang2.js","static/js/columns3.js","static/js/expand.vue_vue_type_script_setup_true_lang.js","static/js/tree.vue_vue_type_script_setup_true_lang.js","static/js/totalRow.vue_vue_type_script_setup_true_lang.js","static/js/merge.vue_vue_type_script_setup_true_lang.js","static/js/customIndex.vue_vue_type_script_setup_true_lang.js","static/js/layout.vue_vue_type_script_setup_true_lang.js","static/js/nestProp.vue_vue_type_script_setup_true_lang.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang.js","static/css/index26.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high.js"),["static/js/high.js","static/js/list2.js","static/js/index.vue_vue_type_script_setup_true_lang3.js","static/js/columns4.js","static/js/data2.js","static/js/index.vue_vue_type_script_setup_true_lang4.js","static/js/columns11.js","static/js/index.vue_vue_type_script_setup_true_lang5.js","static/js/columns7.js","static/js/sortable.esm.js","static/js/index.vue_vue_type_script_setup_true_lang6.js","static/js/columns6.js","static/js/index.vue_vue_type_script_setup_true_lang7.js","static/js/columns5.js","static/js/index.vue_vue_type_script_setup_true_lang8.js","static/js/columns10.js","static/js/xlsx.js","static/js/index.vue_vue_type_script_setup_true_lang9.js","static/js/columns9.js","static/js/edit-pen.js","static/js/check.js","static/js/index.vue_vue_type_script_setup_true_lang10.js","static/js/columns15.js","static/js/index.vue_vue_type_script_setup_true_lang11.js","static/js/columns12.js","static/js/print2.js","static/js/index.vue_vue_type_script_setup_true_lang12.js","static/js/columns8.js","static/js/index.vue_vue_type_script_setup_true_lang13.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js","static/css/high.css"]),meta:{title:$t("menus.hsPureTableHigh")}}]},__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.5 | MIT */function assign$3(t){for(var r=1;r"u")){ue=assign$3({},r,ue),typeof ue.expires=="number"&&(ue.expires=new Date(Date.now()+ue.expires*864e5)),ue.expires&&(ue.expires=ue.expires.toUTCString()),ie=encodeURIComponent(ie).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var de="";for(var pe in ue)ue[pe]&&(de+="; "+pe,ue[pe]!==!0&&(de+="="+ue[pe].split(";")[0]));return document.cookie=ie+"="+t.write(le,ie)+de}}function oe(ie){if(!(typeof document>"u"||arguments.length&&!ie)){for(var le=document.cookie?document.cookie.split("; "):[],ue={},de=0;deactivePinia=t,piniaSymbol=Symbol();function isPlainObject(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var MutationType;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const t=effectScope(!0),r=t.run(()=>ref({}));let V=[],oe=[];const ie=markRaw({install(le){setActivePinia(ie),ie._a=le,le.provide(piniaSymbol,ie),le.config.globalProperties.$pinia=ie,oe.forEach(ue=>V.push(ue)),oe=[]},use(le){return!this._a&&!isVue2?oe.push(le):V.push(le),this},_p:V,_a:null,_e:t,_s:new Map,state:r});return ie}const noop$2=()=>{};function addSubscription(t,r,V,oe=noop$2){t.push(r);const ie=()=>{const le=t.indexOf(r);le>-1&&(t.splice(le,1),oe())};return!V&&getCurrentScope()&&onScopeDispose(ie),ie}function triggerSubscriptions(t,...r){t.slice().forEach(V=>{V(...r)})}const fallbackRunWithContext=t=>t();function mergeReactiveObjects(t,r){t instanceof Map&&r instanceof Map&&r.forEach((V,oe)=>t.set(oe,V)),t instanceof Set&&r instanceof Set&&r.forEach(t.add,t);for(const V in r){if(!r.hasOwnProperty(V))continue;const oe=r[V],ie=t[V];isPlainObject(ie)&&isPlainObject(oe)&&t.hasOwnProperty(V)&&!isRef(oe)&&!isReactive(oe)?t[V]=mergeReactiveObjects(ie,oe):t[V]=oe}return t}const skipHydrateSymbol=Symbol();function shouldHydrate(t){return!isPlainObject(t)||!t.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed(t){return!!(isRef(t)&&t.effect)}function createOptionsStore(t,r,V,oe){const{state:ie,actions:le,getters:ue}=r,de=V.state.value[t];let pe;function he(){de||(V.state.value[t]=ie?ie():{});const _e=toRefs(V.state.value[t]);return assign$2(_e,le,Object.keys(ue||{}).reduce(($e,Ie)=>($e[Ie]=markRaw(computed(()=>{setActivePinia(V);const Ve=V._s.get(t);return ue[Ie].call(Ve,Ve)})),$e),{}))}return pe=createSetupStore(t,he,r,V,oe,!0),pe}function createSetupStore(t,r,V={},oe,ie,le){let ue;const de=assign$2({actions:{}},V),pe={deep:!0};let he,_e,$e=[],Ie=[],Ve;const Fe=oe.state.value[t];!le&&!Fe&&(oe.state.value[t]={}),ref({});let Ue;function qe(Cn){let Sn;he=_e=!1,typeof Cn=="function"?(Cn(oe.state.value[t]),Sn={type:MutationType.patchFunction,storeId:t,events:Ve}):(mergeReactiveObjects(oe.state.value[t],Cn),Sn={type:MutationType.patchObject,payload:Cn,storeId:t,events:Ve});const wn=Ue=Symbol();nextTick().then(()=>{Ue===wn&&(he=!0)}),_e=!0,triggerSubscriptions($e,Sn,oe.state.value[t])}const Et=le?function(){const{state:Sn}=V,wn=Sn?Sn():{};this.$patch(En=>{assign$2(En,wn)})}:noop$2;function At(){ue.stop(),$e=[],Ie=[],oe._s.delete(t)}function Lt(Cn,Sn){return function(){setActivePinia(oe);const wn=Array.from(arguments),En=[],xn=[];function Pn(Dn){En.push(Dn)}function kn(Dn){xn.push(Dn)}triggerSubscriptions(Ie,{args:wn,name:Cn,store:_n,after:Pn,onError:kn});let Nn;try{Nn=Sn.apply(this&&this.$id===t?this:_n,wn)}catch(Dn){throw triggerSubscriptions(xn,Dn),Dn}return Nn instanceof Promise?Nn.then(Dn=>(triggerSubscriptions(En,Dn),Dn)).catch(Dn=>(triggerSubscriptions(xn,Dn),Promise.reject(Dn))):(triggerSubscriptions(En,Nn),Nn)}}const hn={_p:oe,$id:t,$onAction:addSubscription.bind(null,Ie),$patch:qe,$reset:Et,$subscribe(Cn,Sn={}){const wn=addSubscription($e,Cn,Sn.detached,()=>En()),En=ue.run(()=>watch(()=>oe.state.value[t],xn=>{(Sn.flush==="sync"?_e:he)&&Cn({storeId:t,type:MutationType.direct,events:Ve},xn)},assign$2({},pe,Sn)));return wn},$dispose:At},_n=reactive(hn);oe._s.set(t,_n);const vn=oe._a&&oe._a.runWithContext||fallbackRunWithContext,bn=oe._e.run(()=>(ue=effectScope(),vn(()=>ue.run(r))));for(const Cn in bn){const Sn=bn[Cn];if(isRef(Sn)&&!isComputed(Sn)||isReactive(Sn))le||(Fe&&shouldHydrate(Sn)&&(isRef(Sn)?Sn.value=Fe[Cn]:mergeReactiveObjects(Sn,Fe[Cn])),oe.state.value[t][Cn]=Sn);else if(typeof Sn=="function"){const wn=Lt(Cn,Sn);bn[Cn]=wn,de.actions[Cn]=Sn}}return assign$2(_n,bn),assign$2(toRaw(_n),bn),Object.defineProperty(_n,"$state",{get:()=>oe.state.value[t],set:Cn=>{qe(Sn=>{assign$2(Sn,Cn)})}}),oe._p.forEach(Cn=>{assign$2(_n,ue.run(()=>Cn({store:_n,app:oe._a,pinia:oe,options:de})))}),Fe&&le&&V.hydrate&&V.hydrate(_n.$state,Fe),he=!0,_e=!0,_n}function defineStore(t,r,V){let oe,ie;const le=typeof r=="function";typeof t=="string"?(oe=t,ie=le?V:r):(ie=t,oe=t.id);function ue(de,pe){const he=hasInjectionContext();return de=de||(he?inject(piniaSymbol,null):null),de&&setActivePinia(de),de=activePinia,de._s.has(oe)||(le?createSetupStore(oe,r,ie,de):createOptionsStore(oe,ie,de)),de._s.get(oe)}return ue.$id=oe,ue}function storeToRefs(t){{t=toRaw(t);const r={};for(const V in t){const oe=t[V];(isRef(oe)||isReactive(oe))&&(r[V]=toRef(t,V))}return r}}const store=createPinia();function setupStore(t){t.use(store)}const{VITE_HIDE_HOME:VITE_HIDE_HOME$1}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},routerArrays=VITE_HIDE_HOME$1==="false"?[{path:"/welcome",meta:{title:"menus.hshome",icon:"homeFilled"}}]:[];var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},V=Symbol("test"),oe=Object(V);if(typeof V=="string"||Object.prototype.toString.call(V)!=="[object Symbol]"||Object.prototype.toString.call(oe)!=="[object Symbol]")return!1;var ie=42;r[V]=ie;for(V in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var le=Object.getOwnPropertySymbols(r);if(le.length!==1||le[0]!==V||!Object.prototype.propertyIsEnumerable.call(r,V))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var ue=Object.getOwnPropertyDescriptor(r,V);if(ue.value!==ie||ue.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test$1={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test$1}.foo===test$1.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(r){var V=this;if(typeof V!="function"||toStr$1.call(V)!==funcType)throw new TypeError(ERROR_MESSAGE+V);for(var oe=slice$1.call(arguments,1),ie,le=function(){if(this instanceof ie){var _e=V.apply(this,oe.concat(slice$1.call(arguments)));return Object(_e)===_e?_e:this}else return V.apply(r,oe.concat(slice$1.call(arguments)))},ue=Math.max(0,V.length-oe.length),de=[],pe=0;pe"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto)try{null.error}catch(t){var errorProto=getProto(getProto(t));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function t(r){var V;if(r==="%AsyncFunction%")V=getEvalledConstructor("async function () {}");else if(r==="%GeneratorFunction%")V=getEvalledConstructor("function* () {}");else if(r==="%AsyncGeneratorFunction%")V=getEvalledConstructor("async function* () {}");else if(r==="%AsyncGenerator%"){var oe=t("%AsyncGeneratorFunction%");oe&&(V=oe.prototype)}else if(r==="%AsyncIteratorPrototype%"){var ie=t("%AsyncGenerator%");ie&&getProto&&(V=getProto(ie.prototype))}return INTRINSICS[r]=V,V},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$2=src,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(r){var V=$strSlice(r,0,1),oe=$strSlice(r,-1);if(V==="%"&&oe!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(oe==="%"&&V!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var ie=[];return $replace$1(r,rePropName,function(le,ue,de,pe){ie[ie.length]=de?$replace$1(pe,reEscapeChar,"$1"):ue||le}),ie},getBaseIntrinsic=function(r,V){var oe=r,ie;if(hasOwn$2(LEGACY_ALIASES,oe)&&(ie=LEGACY_ALIASES[oe],oe="%"+ie[0]+"%"),hasOwn$2(INTRINSICS,oe)){var le=INTRINSICS[oe];if(le===needsEval&&(le=doEval(oe)),typeof le>"u"&&!V)throw new $TypeError$1("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:ie,name:oe,value:le}}throw new $SyntaxError("intrinsic "+r+" does not exist!")},getIntrinsic=function(r,V){if(typeof r!="string"||r.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,r)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oe=stringToPath(r),ie=oe.length>0?oe[0]:"",le=getBaseIntrinsic("%"+ie+"%",V),ue=le.name,de=le.value,pe=!1,he=le.alias;he&&(ie=he[0],$spliceApply(oe,$concat$1([0,1],he)));for(var _e=1,$e=!0;_e=oe.length){var Ue=$gOPD(de,Ie);$e=!!Ue,$e&&"get"in Ue&&!("originalValue"in Ue.get)?de=Ue.get:de=de[Ie]}else $e=hasOwn$2(de,Ie),de=de[Ie];$e&&!pe&&(INTRINSICS[ue]=de)}}return de},callBind$1={exports:{}};(function(t){var r=functionBind,V=getIntrinsic,oe=V("%Function.prototype.apply%"),ie=V("%Function.prototype.call%"),le=V("%Reflect.apply%",!0)||r.call(ie,oe),ue=V("%Object.getOwnPropertyDescriptor%",!0),de=V("%Object.defineProperty%",!0),pe=V("%Math.max%");if(de)try{de({},"a",{value:1})}catch{de=null}t.exports=function($e){var Ie=le(r,ie,arguments);if(ue&&de){var Ve=ue(Ie,"length");Ve.configurable&&de(Ie,"length",{value:1+pe(0,$e.length-(arguments.length-1))})}return Ie};var he=function(){return le(r,oe,arguments)};de?de(t.exports,"apply",{value:he}):t.exports.apply=he})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(r,V){var oe=GetIntrinsic$1(r,!!V);return typeof oe=="function"&&$indexOf(r,".prototype.")>-1?callBind(oe):oe};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function addNumericSeparator(t,r){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||$test.call(/e/,r))return r;var V=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var oe=t<0?-$floor(-t):$floor(t);if(oe!==t){var ie=String(oe),le=$slice.call(r,ie.length+1);return $replace.call(ie,V,"$&_")+"."+$replace.call($replace.call(le,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(r,V,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function t(r,V,oe,ie){var le=V||{};if(has$4(le,"quoteStyle")&&le.quoteStyle!=="single"&&le.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(le,"maxStringLength")&&(typeof le.maxStringLength=="number"?le.maxStringLength<0&&le.maxStringLength!==1/0:le.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ue=has$4(le,"customInspect")?le.customInspect:!0;if(typeof ue!="boolean"&&ue!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(le,"indent")&&le.indent!==null&&le.indent!==" "&&!(parseInt(le.indent,10)===le.indent&&le.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(le,"numericSeparator")&&typeof le.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var de=le.numericSeparator;if(typeof r>"u")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return inspectString(r,le);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var pe=String(r);return de?addNumericSeparator(r,pe):pe}if(typeof r=="bigint"){var he=String(r)+"n";return de?addNumericSeparator(r,he):he}var _e=typeof le.depth>"u"?5:le.depth;if(typeof oe>"u"&&(oe=0),oe>=_e&&_e>0&&typeof r=="object")return isArray$7(r)?"[Array]":"[Object]";var $e=getIndent(le,oe);if(typeof ie>"u")ie=[];else if(indexOf$1(ie,r)>=0)return"[Circular]";function Ie(Pn,kn,Nn){if(kn&&(ie=$arrSlice.call(ie),ie.push(kn)),Nn){var Dn={depth:le.depth};return has$4(le,"quoteStyle")&&(Dn.quoteStyle=le.quoteStyle),t(Pn,Dn,oe+1,ie)}return t(Pn,le,oe+1,ie)}if(typeof r=="function"&&!isRegExp$2(r)){var Ve=nameOf(r),Fe=arrObjKeys(r,Ie);return"[Function"+(Ve?": "+Ve:" (anonymous)")+"]"+(Fe.length>0?" { "+$join.call(Fe,", ")+" }":"")}if(isSymbol(r)){var Ue=hasShammedSymbols?$replace.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(r);return typeof r=="object"&&!hasShammedSymbols?markBoxed(Ue):Ue}if(isElement(r)){for(var qe="<"+$toLowerCase.call(String(r.nodeName)),Et=r.attributes||[],At=0;At",qe}if(isArray$7(r)){if(r.length===0)return"[]";var Lt=arrObjKeys(r,Ie);return $e&&!singleLineValues(Lt)?"["+indentedJoin(Lt,$e)+"]":"[ "+$join.call(Lt,", ")+" ]"}if(isError(r)){var hn=arrObjKeys(r,Ie);return!("cause"in Error.prototype)&&"cause"in r&&!isEnumerable.call(r,"cause")?"{ ["+String(r)+"] "+$join.call($concat.call("[cause]: "+Ie(r.cause),hn),", ")+" }":hn.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+$join.call(hn,", ")+" }"}if(typeof r=="object"&&ue){if(inspectSymbol&&typeof r[inspectSymbol]=="function"&&utilInspect)return utilInspect(r,{depth:_e-oe});if(ue!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(isMap(r)){var _n=[];return mapForEach&&mapForEach.call(r,function(Pn,kn){_n.push(Ie(kn,r,!0)+" => "+Ie(Pn,r))}),collectionOf("Map",mapSize.call(r),_n,$e)}if(isSet(r)){var vn=[];return setForEach&&setForEach.call(r,function(Pn){vn.push(Ie(Pn,r))}),collectionOf("Set",setSize.call(r),vn,$e)}if(isWeakMap(r))return weakCollectionOf("WeakMap");if(isWeakSet(r))return weakCollectionOf("WeakSet");if(isWeakRef(r))return weakCollectionOf("WeakRef");if(isNumber$1(r))return markBoxed(Ie(Number(r)));if(isBigInt(r))return markBoxed(Ie(bigIntValueOf.call(r)));if(isBoolean(r))return markBoxed(booleanValueOf.call(r));if(isString$2(r))return markBoxed(Ie(String(r)));if(!isDate(r)&&!isRegExp$2(r)){var bn=arrObjKeys(r,Ie),Cn=gPO?gPO(r)===Object.prototype:r instanceof Object||r.constructor===Object,Sn=r instanceof Object?"":"null prototype",wn=!Cn&&toStringTag&&Object(r)===r&&toStringTag in r?$slice.call(toStr(r),8,-1):Sn?"Object":"",En=Cn||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",xn=En+(wn||Sn?"["+$join.call($concat.call([],wn||[],Sn||[]),": ")+"] ":"");return bn.length===0?xn+"{}":$e?xn+"{"+indentedJoin(bn,$e)+"}":xn+"{ "+$join.call(bn,", ")+" }"}return String(r)};function wrapQuotes(t,r,V){var oe=(V.quoteStyle||r)==="double"?'"':"'";return oe+t+oe}function quote(t){return $replace.call(String(t),/"/g,""")}function isArray$7(t){return toStr(t)==="[object Array]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isDate(t){return toStr(t)==="[object Date]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isRegExp$2(t){return toStr(t)==="[object RegExp]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isError(t){return toStr(t)==="[object Error]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isString$2(t){return toStr(t)==="[object String]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isNumber$1(t){return toStr(t)==="[object Number]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isBoolean(t){return toStr(t)==="[object Boolean]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isSymbol(t){if(hasShammedSymbols)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!symToString)return!1;try{return symToString.call(t),!0}catch{}return!1}function isBigInt(t){if(!t||typeof t!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(t),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(t){return t in this};function has$4(t,r){return hasOwn$1.call(t,r)}function toStr(t){return objectToString.call(t)}function nameOf(t){if(t.name)return t.name;var r=$match.call(functionToString.call(t),/^function\s*([\w$]+)/);return r?r[1]:null}function indexOf$1(t,r){if(t.indexOf)return t.indexOf(r);for(var V=0,oe=t.length;Vr.maxStringLength){var V=t.length-r.maxStringLength,oe="... "+V+" more character"+(V>1?"s":"");return inspectString($slice.call(t,0,r.maxStringLength),r)+oe}var ie=$replace.call($replace.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(ie,"single",r)}function lowbyte(t){var r=t.charCodeAt(0),V={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return V?"\\"+V:"\\x"+(r<16?"0":"")+$toUpperCase.call(r.toString(16))}function markBoxed(t){return"Object("+t+")"}function weakCollectionOf(t){return t+" { ? }"}function collectionOf(t,r,V,oe){var ie=oe?indentedJoin(V,oe):$join.call(V,", ");return t+" ("+r+") {"+ie+"}"}function singleLineValues(t){for(var r=0;r=0)return!1;return!0}function getIndent(t,r){var V;if(t.indent===" ")V=" ";else if(typeof t.indent=="number"&&t.indent>0)V=$join.call(Array(t.indent+1)," ");else return null;return{base:V,prev:$join.call(Array(r+1),V)}}function indentedJoin(t,r){if(t.length===0)return"";var V=` `+r.prev+r.base;return V+$join.call(t,","+V)+` `+r.prev}function arrObjKeys(t,r){var V=isArray$7(t),oe=[];if(V){oe.length=t.length;for(var ie=0;ie1;){var V=r.pop(),oe=V.obj[V.prop];if(isArray$6(oe)){for(var ie=[],le=0;le=48&&he<=57||he>=65&&he<=90||he>=97&&he<=122||le===formats$2.RFC1738&&(he===40||he===41)){de+=ue.charAt(pe);continue}if(he<128){de=de+hexTable[he];continue}if(he<2048){de=de+(hexTable[192|he>>6]+hexTable[128|he&63]);continue}if(he<55296||he>=57344){de=de+(hexTable[224|he>>12]+hexTable[128|he>>6&63]+hexTable[128|he&63]);continue}pe+=1,he=65536+((he&1023)<<10|ue.charCodeAt(pe)&1023),de+=hexTable[240|he>>18]+hexTable[128|he>>12&63]+hexTable[128|he>>6&63]+hexTable[128|he&63]}return de},compact=function(r){for(var V=[{obj:{o:r},prop:"o"}],oe=[],ie=0;ie"u"&&(Lt=0)}if(typeof pe=="function"?Et=pe(V,Et):Et instanceof Date?Et=$e(Et):oe==="comma"&&isArray$5(Et)&&(Et=utils$1.maybeMap(Et,function(Dn){return Dn instanceof Date?$e(Dn):Dn})),Et===null){if(le)return de&&!Fe?de(V,defaults$2.encoder,Ue,"key",Ie):V;Et=""}if(isNonNullishPrimitive(Et)||utils$1.isBuffer(Et)){if(de){var vn=Fe?V:de(V,defaults$2.encoder,Ue,"key",Ie);return[Ve(vn)+"="+Ve(de(Et,defaults$2.encoder,Ue,"value",Ie))]}return[Ve(V)+"="+Ve(String(Et))]}var bn=[];if(typeof Et>"u")return bn;var Cn;if(oe==="comma"&&isArray$5(Et))Fe&&de&&(Et=utils$1.maybeMap(Et,de)),Cn=[{value:Et.length>0?Et.join(",")||null:void 0}];else if(isArray$5(pe))Cn=pe;else{var Sn=Object.keys(Et);Cn=he?Sn.sort(he):Sn}for(var wn=ie&&isArray$5(Et)&&Et.length===1?V+"[]":V,En=0;En"u"?defaults$2.allowDots:!!r.allowDots,charset:V,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof r.delimiter>"u"?defaults$2.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:defaults$2.encode,encoder:typeof r.encoder=="function"?r.encoder:defaults$2.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:le,format:oe,formatter:ie,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:defaults$2.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:defaults$2.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function(t,r){var V=t,oe=normalizeStringifyOptions(r),ie,le;typeof oe.filter=="function"?(le=oe.filter,V=le("",V)):isArray$5(oe.filter)&&(le=oe.filter,ie=le);var ue=[];if(typeof V!="object"||V===null)return"";var de;r&&r.arrayFormat in arrayPrefixGenerators?de=r.arrayFormat:r&&"indices"in r?de=r.indices?"indices":"repeat":de="indices";var pe=arrayPrefixGenerators[de];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var he=pe==="comma"&&r&&r.commaRoundTrip;ie||(ie=Object.keys(V)),oe.sort&&ie.sort(oe.sort);for(var _e=getSideChannel(),$e=0;$e0?Fe+Ve:""},utils=utils$2,has$1=Object.prototype.hasOwnProperty,isArray$4=Array.isArray,defaults$1={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(t){return t.replace(/&#(\d+);/g,function(r,V){return String.fromCharCode(parseInt(V,10))})},parseArrayValue=function(t,r){return t&&typeof t=="string"&&r.comma&&t.indexOf(",")>-1?t.split(","):t},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(r,V){var oe={__proto__:null},ie=V.ignoreQueryPrefix?r.replace(/^\?/,""):r,le=V.parameterLimit===1/0?void 0:V.parameterLimit,ue=ie.split(V.delimiter,le),de=-1,pe,he=V.charset;if(V.charsetSentinel)for(pe=0;pe-1&&(Fe=isArray$4(Fe)?[Fe]:Fe),has$1.call(oe,Ve)?oe[Ve]=utils.combine(oe[Ve],Fe):oe[Ve]=Fe}return oe},parseObject=function(t,r,V,oe){for(var ie=oe?r:parseArrayValue(r,V),le=t.length-1;le>=0;--le){var ue,de=t[le];if(de==="[]"&&V.parseArrays)ue=[].concat(ie);else{ue=V.plainObjects?Object.create(null):{};var pe=de.charAt(0)==="["&&de.charAt(de.length-1)==="]"?de.slice(1,-1):de,he=parseInt(pe,10);!V.parseArrays&&pe===""?ue={0:ie}:!isNaN(he)&&de!==pe&&String(he)===pe&&he>=0&&V.parseArrays&&he<=V.arrayLimit?(ue=[],ue[he]=ie):pe!=="__proto__"&&(ue[pe]=ie)}ie=ue}return ie},parseKeys=function(r,V,oe,ie){if(r){var le=oe.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,ue=/(\[[^[\]]*])/,de=/(\[[^[\]]*])/g,pe=oe.depth>0&&ue.exec(le),he=pe?le.slice(0,pe.index):le,_e=[];if(he){if(!oe.plainObjects&&has$1.call(Object.prototype,he)&&!oe.allowPrototypes)return;_e.push(he)}for(var $e=0;oe.depth>0&&(pe=de.exec(le))!==null&&$e"u"?defaults$1.charset:r.charset;return{allowDots:typeof r.allowDots>"u"?defaults$1.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:defaults$1.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:defaults$1.arrayLimit,charset:V,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:defaults$1.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:defaults$1.comma,decoder:typeof r.decoder=="function"?r.decoder:defaults$1.decoder,delimiter:typeof r.delimiter=="string"||utils.isRegExp(r.delimiter)?r.delimiter:defaults$1.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:defaults$1.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:defaults$1.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:defaults$1.strictNullHandling}},parse$4=function(t,r){var V=normalizeParseOptions(r);if(t===""||t===null||typeof t>"u")return V.plainObjects?Object.create(null):{};for(var oe=typeof t=="string"?parseValues(t,V):t,ie=V.plainObjects?Object.create(null):{},le=Object.keys(oe),ue=0;ue
'};V.configure=function(Fe){var Ue,qe;for(Ue in Fe)qe=Fe[Ue],qe!==void 0&&Fe.hasOwnProperty(Ue)&&(oe[Ue]=qe);return this},V.status=null,V.set=function(Fe){var Ue=V.isStarted();Fe=ie(Fe,oe.minimum,1),V.status=Fe===1?null:Fe;var qe=V.render(!Ue),Et=qe.querySelector(oe.barSelector),At=oe.speed,Lt=oe.easing;return qe.offsetWidth,de(function(hn){oe.positionUsing===""&&(oe.positionUsing=V.getPositioningCSS()),pe(Et,ue(Fe,At,Lt)),Fe===1?(pe(qe,{transition:"none",opacity:1}),qe.offsetWidth,setTimeout(function(){pe(qe,{transition:"all "+At+"ms linear",opacity:0}),setTimeout(function(){V.remove(),hn()},At)},At)):setTimeout(hn,At)}),this},V.isStarted=function(){return typeof V.status=="number"},V.start=function(){V.status||V.set(0);var Fe=function(){setTimeout(function(){V.status&&(V.trickle(),Fe())},oe.trickleSpeed)};return oe.trickle&&Fe(),this},V.done=function(Fe){return!Fe&&!V.status?this:V.inc(.3+.5*Math.random()).set(1)},V.inc=function(Fe){var Ue=V.status;return Ue?(typeof Fe!="number"&&(Fe=(1-Ue)*ie(Math.random()*Ue,.1,.95)),Ue=ie(Ue+Fe,0,.994),V.set(Ue)):V.start()},V.trickle=function(){return V.inc(Math.random()*oe.trickleRate)},function(){var Fe=0,Ue=0;V.promise=function(qe){return!qe||qe.state()==="resolved"?this:(Ue===0&&V.start(),Fe++,Ue++,qe.always(function(){Ue--,Ue===0?(Fe=0,V.done()):V.set((Fe-Ue)/Fe)}),this)}}(),V.render=function(Fe){if(V.isRendered())return document.getElementById("nprogress");_e(document.documentElement,"nprogress-busy");var Ue=document.createElement("div");Ue.id="nprogress",Ue.innerHTML=oe.template;var qe=Ue.querySelector(oe.barSelector),Et=Fe?"-100":le(V.status||0),At=document.querySelector(oe.parent),Lt;return pe(qe,{transition:"all 0 linear",transform:"translate3d("+Et+"%,0,0)"}),oe.showSpinner||(Lt=Ue.querySelector(oe.spinnerSelector),Lt&&Ve(Lt)),At!=document.body&&_e(At,"nprogress-custom-parent"),At.appendChild(Ue),Ue},V.remove=function(){$e(document.documentElement,"nprogress-busy"),$e(document.querySelector(oe.parent),"nprogress-custom-parent");var Fe=document.getElementById("nprogress");Fe&&Ve(Fe)},V.isRendered=function(){return!!document.getElementById("nprogress")},V.getPositioningCSS=function(){var Fe=document.body.style,Ue="WebkitTransform"in Fe?"Webkit":"MozTransform"in Fe?"Moz":"msTransform"in Fe?"ms":"OTransform"in Fe?"O":"";return Ue+"Perspective"in Fe?"translate3d":Ue+"Transform"in Fe?"translate":"margin"};function ie(Fe,Ue,qe){return Feqe?qe:Fe}function le(Fe){return(-1+Fe)*100}function ue(Fe,Ue,qe){var Et;return oe.positionUsing==="translate3d"?Et={transform:"translate3d("+le(Fe)+"%,0,0)"}:oe.positionUsing==="translate"?Et={transform:"translate("+le(Fe)+"%,0)"}:Et={"margin-left":le(Fe)+"%"},Et.transition="all "+Ue+"ms "+qe,Et}var de=function(){var Fe=[];function Ue(){var qe=Fe.shift();qe&&qe(Ue)}return function(qe){Fe.push(qe),Fe.length==1&&Ue()}}(),pe=function(){var Fe=["Webkit","O","Moz","ms"],Ue={};function qe(hn){return hn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(_n,vn){return vn.toUpperCase()})}function Et(hn){var _n=document.body.style;if(hn in _n)return hn;for(var vn=Fe.length,bn=hn.charAt(0).toUpperCase()+hn.slice(1),Cn;vn--;)if(Cn=Fe[vn]+bn,Cn in _n)return Cn;return hn}function At(hn){return hn=qe(hn),Ue[hn]||(Ue[hn]=Et(hn))}function Lt(hn,_n,vn){_n=At(_n),hn.style[_n]=vn}return function(hn,_n){var vn=arguments,bn,Cn;if(vn.length==2)for(bn in _n)Cn=_n[bn],Cn!==void 0&&_n.hasOwnProperty(bn)&&Lt(hn,bn,Cn);else Lt(hn,vn[1],vn[2])}}();function he(Fe,Ue){var qe=typeof Fe=="string"?Fe:Ie(Fe);return qe.indexOf(" "+Ue+" ")>=0}function _e(Fe,Ue){var qe=Ie(Fe),Et=qe+Ue;he(qe,Ue)||(Fe.className=Et.substring(1))}function $e(Fe,Ue){var qe=Ie(Fe),Et;he(Fe,Ue)&&(Et=qe.replace(" "+Ue+" "," "),Fe.className=Et.substring(1,Et.length-1))}function Ie(Fe){return(" "+(Fe.className||"")+" ").replace(/\s+/gi," ")}function Ve(Fe){Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe)}return V})})(nprogress$1);var nprogressExports=nprogress$1.exports;const NProgress=getDefaultExportFromCjs(nprogressExports),nprogress="";NProgress.configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3});const defaultConfig$1={timeout:1e4,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},paramsSerializer:{serialize:lib.stringify}},Jr=class Jr{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(r){return new Promise(V=>{Jr.requests.push(oe=>{r.headers.Authorization=formatToken(oe),V(r)})})}httpInterceptorsRequest(){Jr.axiosInstance.interceptors.request.use(async r=>(NProgress.start(),typeof r.beforeRequestCallback=="function"?(r.beforeRequestCallback(r),r):Jr.initConfig.beforeRequestCallback?(Jr.initConfig.beforeRequestCallback(r),r):["/refreshToken","/login"].find(oe=>oe===r.url)?r:new Promise(oe=>{const ie=getToken();if(ie){const le=new Date().getTime();parseInt(ie.expires)-le<=0?(Jr.isRefreshing||(Jr.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:ie.refreshToken}).then(de=>{const pe=de.data.accessToken;r.headers.Authorization=formatToken(pe),Jr.requests.forEach(he=>he(pe)),Jr.requests=[]}).finally(()=>{Jr.isRefreshing=!1})),oe(Jr.retryOriginalRequest(r))):(r.headers.Authorization=formatToken(ie.accessToken),oe(r))}else oe(r)})),r=>Promise.reject(r))}httpInterceptorsResponse(){Jr.axiosInstance.interceptors.response.use(V=>{const oe=V.config;return NProgress.done(),typeof oe.beforeResponseCallback=="function"?(oe.beforeResponseCallback(V),V.data):(Jr.initConfig.beforeResponseCallback&&Jr.initConfig.beforeResponseCallback(V),V.data)},V=>{const oe=V;return oe.isCancelRequest=axios$1.isCancel(oe),NProgress.done(),Promise.reject(oe)})}request(r,V,oe,ie){const le={method:r,url:V,...oe,...ie};return new Promise((ue,de)=>{Jr.axiosInstance.request(le).then(pe=>{ue(pe)}).catch(pe=>{de(pe)})})}post(r,V,oe){return this.request("post",r,V,oe)}get(r,V,oe){return this.request("get",r,V,oe)}};io(Jr,"requests",[]),io(Jr,"isRefreshing",!1),io(Jr,"initConfig",{}),io(Jr,"axiosInstance",axios$1.create(defaultConfig$1));let PureHttp=Jr;const http=new PureHttp,getLogin=t=>http.request("post","/login",{data:t}),refreshTokenApi=t=>http.request("post","/refreshToken",{data:t}),useMultiTagsStore=defineStore({id:"pure-multiTags",state:()=>{var t,r;return{multiTags:(t=nr().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&t.multiTagsCache?nr().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(r=nr().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:r.multiTagsCache}},getters:{getMultiTagsCache(t){return t.multiTagsCache}},actions:{multiTagsCacheChange(t){this.multiTagsCache=t,t?nr().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):nr().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache(t){this.getMultiTagsCache&&nr().setItem(`${responsiveStorageNameSpace()}tags`,t)},handleTags(t,r,V){var oe,ie,le,ue,de;switch(t){case"equal":this.multiTags=r,this.tagsCache(this.multiTags);break;case"push":{const pe=r;if((oe=pe==null?void 0:pe.meta)!=null&&oe.hiddenTag||gt(pe==null?void 0:pe.name)||((ie=pe==null?void 0:pe.meta)==null?void 0:ie.title.length)===0||Le((le=pe==null?void 0:pe.meta)==null?void 0:le.showLink)&&!((ue=pe==null?void 0:pe.meta)!=null&&ue.showLink))return;const he=pe.path,_e=this.multiTags.some(Fe=>Fe.path===he),$e=this.multiTags.some(Fe=>Xt(Fe==null?void 0:Fe.query,pe==null?void 0:pe.query)),Ie=this.multiTags.some(Fe=>Xt(Fe==null?void 0:Fe.params,pe==null?void 0:pe.params));if(_e&&$e&&Ie)return;const Ve=((de=pe==null?void 0:pe.meta)==null?void 0:de.dynamicLevel)??-1;if(Ve>0&&this.multiTags.filter(Fe=>(Fe==null?void 0:Fe.path)===he).length>=Ve){const Fe=this.multiTags.findIndex(Ue=>(Ue==null?void 0:Ue.path)===he);Fe!==-1&&this.multiTags.splice(Fe,1)}this.multiTags.push(r),this.tagsCache(this.multiTags)}break;case"splice":if(V)this.multiTags.splice(V==null?void 0:V.startIndex,V==null?void 0:V.length);else{const pe=this.multiTags.findIndex(he=>he.path===r);if(pe===-1)return;this.multiTags.splice(pe,1)}return this.tagsCache(this.multiTags),this.multiTags;case"slice":return this.multiTags.slice(-1)}}}});function useMultiTagsStoreHook(){return useMultiTagsStore(store)}const useUserStore=defineStore({id:"pure-user",state:()=>{var t,r;return{username:((t=rr().getItem(sessionKey))==null?void 0:t.username)??"",roles:((r=rr().getItem(sessionKey))==null?void 0:r.roles)??[],verifyCode:"",currentPage:0}},actions:{SET_USERNAME(t){this.username=t},SET_ROLES(t){this.roles=t},SET_VERIFYCODE(t){this.verifyCode=t},SET_CURRENTPAGE(t){this.currentPage=t},async loginByUsername(t){return new Promise((r,V)=>{getLogin(t).then(oe=>{oe&&(setToken(oe.data),r(oe))}).catch(oe=>{V(oe)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken(t){return new Promise((r,V)=>{refreshTokenApi(t).then(oe=>{oe&&(setToken(oe.data),r(oe))}).catch(oe=>{V(oe)})})}}});function useUserStoreHook(){return useUserStore(store)}const sessionKey="user-info",TokenKey="authorized-token";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):rr().getItem(sessionKey)}function setToken(t){var ue,de;let r=0;const{accessToken:V,refreshToken:oe}=t;r=new Date(t.expires).getTime();const ie=JSON.stringify({accessToken:V,expires:r});r>0?api.set(TokenKey,ie,{expires:(r-Date.now())/864e5}):api.set(TokenKey,ie);function le(pe,he){useUserStoreHook().SET_USERNAME(pe),useUserStoreHook().SET_ROLES(he),rr().setItem(sessionKey,{refreshToken:oe,expires:r,username:pe,roles:he})}if(t.username&&t.roles){const{username:pe,roles:he}=t;le(pe,he)}else{const pe=((ue=rr().getItem(sessionKey))==null?void 0:ue.username)??"",he=((de=rr().getItem(sessionKey))==null?void 0:de.roles)??[];le(pe,he)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=t=>"Bearer "+t;(function(){const t=hr(location.href),r=["username","roles","accessToken"],V=r.length;if(Object.keys(t).length!==V)return;let oe=[],ie=0;for(;ie{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=t=>t.replace(TRAILING_SLASH_RE,"");function parseURL(t,r,V="/"){let oe,ie={},le="",ue="";const de=r.indexOf("#");let pe=r.indexOf("?");return de=0&&(pe=-1),pe>-1&&(oe=r.slice(0,pe),le=r.slice(pe+1,de>-1?de:r.length),ie=t(le)),de>-1&&(oe=oe||r.slice(0,de),ue=r.slice(de,r.length)),oe=resolveRelativePath(oe??r,V),{fullPath:oe+(le&&"?")+le+ue,path:oe,query:ie,hash:ue}}function stringifyURL(t,r){const V=r.query?t(r.query):"";return r.path+(V&&"?")+V+(r.hash||"")}function stripBase(t,r){return!r||!t.toLowerCase().startsWith(r.toLowerCase())?t:t.slice(r.length)||"/"}function isSameRouteLocation(t,r,V){const oe=r.matched.length-1,ie=V.matched.length-1;return oe>-1&&oe===ie&&isSameRouteRecord(r.matched[oe],V.matched[ie])&&isSameRouteLocationParams(r.params,V.params)&&t(r.query)===t(V.query)&&r.hash===V.hash}function isSameRouteRecord(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function isSameRouteLocationParams(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const V in t)if(!isSameRouteLocationParamsValue(t[V],r[V]))return!1;return!0}function isSameRouteLocationParamsValue(t,r){return isArray$3(t)?isEquivalentArray(t,r):isArray$3(r)?isEquivalentArray(r,t):t===r}function isEquivalentArray(t,r){return isArray$3(r)?t.length===r.length&&t.every((V,oe)=>V===r[oe]):t.length===1&&t[0]===r}function resolveRelativePath(t,r){if(t.startsWith("/"))return t;if(!t)return r;const V=r.split("/"),oe=t.split("/"),ie=oe[oe.length-1];(ie===".."||ie===".")&&oe.push("");let le=V.length-1,ue,de;for(ue=0;ue1&&le--;else break;return V.slice(0,le).join("/")+"/"+oe.slice(ue-(ue===oe.length?1:0)).join("/")}var NavigationType;(function(t){t.pop="pop",t.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(t){t.back="back",t.forward="forward",t.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(t){if(!t)if(isBrowser$1){const r=document.querySelector("base");t=r&&r.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),removeTrailingSlash(t)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(t,r){return t.replace(BEFORE_HASH_RE,"#")+r}function getElementPosition(t,r){const V=document.documentElement.getBoundingClientRect(),oe=t.getBoundingClientRect();return{behavior:r.behavior,left:oe.left-V.left-(r.left||0),top:oe.top-V.top-(r.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(t){let r;if("el"in t){const V=t.el,oe=typeof V=="string"&&V.startsWith("#"),ie=typeof V=="string"?oe?document.getElementById(V.slice(1)):document.querySelector(V):V;if(!ie)return;r=getElementPosition(ie,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.pageXOffset,r.top!=null?r.top:window.pageYOffset)}function getScrollKey(t,r){return(history.state?history.state.position-r:-1)+t}const scrollPositions=new Map;function saveScrollPosition(t,r){scrollPositions.set(t,r)}function getSavedScrollPosition(t){const r=scrollPositions.get(t);return scrollPositions.delete(t),r}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(t,r){const{pathname:V,search:oe,hash:ie}=r,le=t.indexOf("#");if(le>-1){let de=ie.includes(t.slice(le))?t.slice(le).length:1,pe=ie.slice(de);return pe[0]!=="/"&&(pe="/"+pe),stripBase(pe,"")}return stripBase(V,t)+oe+ie}function useHistoryListeners(t,r,V,oe){let ie=[],le=[],ue=null;const de=({state:Ie})=>{const Ve=createCurrentLocation(t,location),Fe=V.value,Ue=r.value;let qe=0;if(Ie){if(V.value=Ve,r.value=Ie,ue&&ue===Fe){ue=null;return}qe=Ue?Ie.position-Ue.position:0}else oe(Ve);ie.forEach(Et=>{Et(V.value,Fe,{delta:qe,type:NavigationType.pop,direction:qe?qe>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function pe(){ue=V.value}function he(Ie){ie.push(Ie);const Ve=()=>{const Fe=ie.indexOf(Ie);Fe>-1&&ie.splice(Fe,1)};return le.push(Ve),Ve}function _e(){const{history:Ie}=window;Ie.state&&Ie.replaceState(assign({},Ie.state,{scroll:computeScrollPosition()}),"")}function $e(){for(const Ie of le)Ie();le=[],window.removeEventListener("popstate",de),window.removeEventListener("beforeunload",_e)}return window.addEventListener("popstate",de),window.addEventListener("beforeunload",_e,{passive:!0}),{pauseListeners:pe,listen:he,destroy:$e}}function buildState(t,r,V,oe=!1,ie=!1){return{back:t,current:r,forward:V,replaced:oe,position:window.history.length,scroll:ie?computeScrollPosition():null}}function useHistoryStateNavigation(t){const{history:r,location:V}=window,oe={value:createCurrentLocation(t,V)},ie={value:r.state};ie.value||le(oe.value,{back:null,current:oe.value,forward:null,position:r.length-1,replaced:!0,scroll:null},!0);function le(pe,he,_e){const $e=t.indexOf("#"),Ie=$e>-1?(V.host&&document.querySelector("base")?t:t.slice($e))+pe:createBaseLocation()+t+pe;try{r[_e?"replaceState":"pushState"](he,"",Ie),ie.value=he}catch(Ve){console.error(Ve),V[_e?"replace":"assign"](Ie)}}function ue(pe,he){const _e=assign({},r.state,buildState(ie.value.back,pe,ie.value.forward,!0),he,{position:ie.value.position});le(pe,_e,!0),oe.value=pe}function de(pe,he){const _e=assign({},ie.value,r.state,{forward:pe,scroll:computeScrollPosition()});le(_e.current,_e,!0);const $e=assign({},buildState(oe.value,pe,null),{position:_e.position+1},he);le(pe,$e,!1),oe.value=pe}return{location:oe,state:ie,push:de,replace:ue}}function createWebHistory(t){t=normalizeBase(t);const r=useHistoryStateNavigation(t),V=useHistoryListeners(t,r.state,r.location,r.replace);function oe(le,ue=!0){ue||V.pauseListeners(),history.go(le)}const ie=assign({location:"",base:t,go:oe,createHref:createHref.bind(null,t)},r,V);return Object.defineProperty(ie,"location",{enumerable:!0,get:()=>r.location.value}),Object.defineProperty(ie,"state",{enumerable:!0,get:()=>r.state.value}),ie}function createWebHashHistory(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),createWebHistory(t)}function isRouteLocation(t){return typeof t=="string"||t&&typeof t=="object"}function isRouteName(t){return typeof t=="string"||typeof t=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(t,r){return assign(new Error,{type:t,[NavigationFailureSymbol]:!0},r)}function isNavigationFailure(t,r){return t instanceof Error&&NavigationFailureSymbol in t&&(r==null||!!(t.type&r))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(t,r){const V=assign({},BASE_PATH_PARSER_OPTIONS,r),oe=[];let ie=V.start?"^":"";const le=[];for(const he of t){const _e=he.length?[]:[90];V.strict&&!he.length&&(ie+="/");for(let $e=0;$er.length?r.length===1&&r[0]===40+40?1:-1:0}function comparePathParserScore(t,r){let V=0;const oe=t.score,ie=r.score;for(;V0&&r[r.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(t){if(!t)return[[]];if(t==="/")return[[ROOT_TOKEN]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function r(Ve){throw new Error(`ERR (${V})/"${he}": ${Ve}`)}let V=0,oe=V;const ie=[];let le;function ue(){le&&ie.push(le),le=[]}let de=0,pe,he="",_e="";function $e(){he&&(V===0?le.push({type:0,value:he}):V===1||V===2||V===3?(le.length>1&&(pe==="*"||pe==="+")&&r(`A repeatable param (${he}) must be alone in its segment. eg: '/:ids+.`),le.push({type:1,value:he,regexp:_e,repeatable:pe==="*"||pe==="+",optional:pe==="*"||pe==="?"})):r("Invalid state to consume buffer"),he="")}function Ie(){he+=pe}for(;de{ue(At)}:noop$1}function ue(_e){if(isRouteName(_e)){const $e=oe.get(_e);$e&&(oe.delete(_e),V.splice(V.indexOf($e),1),$e.children.forEach(ue),$e.alias.forEach(ue))}else{const $e=V.indexOf(_e);$e>-1&&(V.splice($e,1),_e.record.name&&oe.delete(_e.record.name),_e.children.forEach(ue),_e.alias.forEach(ue))}}function de(){return V}function pe(_e){let $e=0;for(;$e=0&&(_e.record.path!==V[$e].record.path||!isRecordChildOf(_e,V[$e]));)$e++;V.splice($e,0,_e),_e.record.name&&!isAliasRecord(_e)&&oe.set(_e.record.name,_e)}function he(_e,$e){let Ie,Ve={},Fe,Ue;if("name"in _e&&_e.name){if(Ie=oe.get(_e.name),!Ie)throw createRouterError(1,{location:_e});Ue=Ie.record.name,Ve=assign(paramsFromLocation($e.params,Ie.keys.filter(At=>!At.optional).map(At=>At.name)),_e.params&¶msFromLocation(_e.params,Ie.keys.map(At=>At.name))),Fe=Ie.stringify(Ve)}else if("path"in _e)Fe=_e.path,Ie=V.find(At=>At.re.test(Fe)),Ie&&(Ve=Ie.parse(Fe),Ue=Ie.record.name);else{if(Ie=$e.name?oe.get($e.name):V.find(At=>At.re.test($e.path)),!Ie)throw createRouterError(1,{location:_e,currentLocation:$e});Ue=Ie.record.name,Ve=assign({},$e.params,_e.params),Fe=Ie.stringify(Ve)}const qe=[];let Et=Ie;for(;Et;)qe.unshift(Et.record),Et=Et.parent;return{name:Ue,path:Fe,params:Ve,matched:qe,meta:mergeMetaFields(qe)}}return t.forEach(_e=>le(_e)),{addRoute:le,resolve:he,removeRoute:ue,getRoutes:de,getRecordMatcher:ie}}function paramsFromLocation(t,r){const V={};for(const oe of r)oe in t&&(V[oe]=t[oe]);return V}function normalizeRouteRecord(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:normalizeRecordProps(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function normalizeRecordProps(t){const r={},V=t.props||!1;if("component"in t)r.default=V;else for(const oe in t.components)r[oe]=typeof V=="object"?V[oe]:V;return r}function isAliasRecord(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mergeMetaFields(t){return t.reduce((r,V)=>assign(r,V.meta),{})}function mergeOptions(t,r){const V={};for(const oe in t)V[oe]=oe in r?r[oe]:t[oe];return V}function isRecordChildOf(t,r){return r.children.some(V=>V===t||isRecordChildOf(t,V))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(t){return encodeURI(""+t).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(t){return commonEncode(t).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(t){return commonEncode(t).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(t){return encodeQueryValue(t).replace(EQUAL_RE,"%3D")}function encodePath(t){return commonEncode(t).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(t){return t==null?"":encodePath(t).replace(SLASH_RE,"%2F")}function decode$1(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function parseQuery(t){const r={};if(t===""||t==="?")return r;const oe=(t[0]==="?"?t.slice(1):t).split("&");for(let ie=0;iele&&encodeQueryValue(le)):[oe&&encodeQueryValue(oe)]).forEach(le=>{le!==void 0&&(r+=(r.length?"&":"")+V,le!=null&&(r+="="+le))})}return r}function normalizeQuery(t){const r={};for(const V in t){const oe=t[V];oe!==void 0&&(r[V]=isArray$3(oe)?oe.map(ie=>ie==null?null:""+ie):oe==null?oe:""+oe)}return r}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let t=[];function r(oe){return t.push(oe),()=>{const ie=t.indexOf(oe);ie>-1&&t.splice(ie,1)}}function V(){t=[]}return{add:r,list:()=>t.slice(),reset:V}}function guardToPromiseFn(t,r,V,oe,ie){const le=oe&&(oe.enterCallbacks[ie]=oe.enterCallbacks[ie]||[]);return()=>new Promise((ue,de)=>{const pe=$e=>{$e===!1?de(createRouterError(4,{from:V,to:r})):$e instanceof Error?de($e):isRouteLocation($e)?de(createRouterError(2,{from:r,to:$e})):(le&&oe.enterCallbacks[ie]===le&&typeof $e=="function"&&le.push($e),ue())},he=t.call(oe&&oe.instances[ie],r,V,pe);let _e=Promise.resolve(he);t.length<3&&(_e=_e.then(pe)),_e.catch($e=>de($e))})}function extractComponentsGuards(t,r,V,oe){const ie=[];for(const le of t)for(const ue in le.components){let de=le.components[ue];if(!(r!=="beforeRouteEnter"&&!le.instances[ue]))if(isRouteComponent(de)){const he=(de.__vccOpts||de)[r];he&&ie.push(guardToPromiseFn(he,V,oe,le,ue))}else{let pe=de();ie.push(()=>pe.then(he=>{if(!he)return Promise.reject(new Error(`Couldn't resolve component "${ue}" at "${le.path}"`));const _e=isESModule(he)?he.default:he;le.components[ue]=_e;const Ie=(_e.__vccOpts||_e)[r];return Ie&&guardToPromiseFn(Ie,V,oe,le,ue)()}))}}return ie}function isRouteComponent(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function useLink(t){const r=inject(routerKey),V=inject(routeLocationKey),oe=computed(()=>r.resolve(unref(t.to))),ie=computed(()=>{const{matched:pe}=oe.value,{length:he}=pe,_e=pe[he-1],$e=V.matched;if(!_e||!$e.length)return-1;const Ie=$e.findIndex(isSameRouteRecord.bind(null,_e));if(Ie>-1)return Ie;const Ve=getOriginalPath(pe[he-2]);return he>1&&getOriginalPath(_e)===Ve&&$e[$e.length-1].path!==Ve?$e.findIndex(isSameRouteRecord.bind(null,pe[he-2])):Ie}),le=computed(()=>ie.value>-1&&includesParams(V.params,oe.value.params)),ue=computed(()=>ie.value>-1&&ie.value===V.matched.length-1&&isSameRouteLocationParams(V.params,oe.value.params));function de(pe={}){return guardEvent(pe)?r[unref(t.replace)?"replace":"push"](unref(t.to)).catch(noop$1):Promise.resolve()}return{route:oe,href:computed(()=>oe.value.href),isActive:le,isExactActive:ue,navigate:de}}const RouterLinkImpl=defineComponent({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,setup(t,{slots:r}){const V=reactive(useLink(t)),{options:oe}=inject(routerKey),ie=computed(()=>({[getLinkClass(t.activeClass,oe.linkActiveClass,"router-link-active")]:V.isActive,[getLinkClass(t.exactActiveClass,oe.linkExactActiveClass,"router-link-exact-active")]:V.isExactActive}));return()=>{const le=r.default&&r.default(V);return t.custom?le:h$2("a",{"aria-current":V.isExactActive?t.ariaCurrentValue:null,href:V.href,onClick:V.navigate,class:ie.value},le)}}}),RouterLink=RouterLinkImpl;function guardEvent(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function includesParams(t,r){for(const V in r){const oe=r[V],ie=t[V];if(typeof oe=="string"){if(oe!==ie)return!1}else if(!isArray$3(ie)||ie.length!==oe.length||oe.some((le,ue)=>le!==ie[ue]))return!1}return!0}function getOriginalPath(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const getLinkClass=(t,r,V)=>t??r??V,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:V}){const oe=inject(routerViewLocationKey),ie=computed(()=>t.route||oe.value),le=inject(viewDepthKey,0),ue=computed(()=>{let he=unref(le);const{matched:_e}=ie.value;let $e;for(;($e=_e[he])&&!$e.components;)he++;return he}),de=computed(()=>ie.value.matched[ue.value]);provide(viewDepthKey,computed(()=>ue.value+1)),provide(matchedRouteKey,de),provide(routerViewLocationKey,ie);const pe=ref();return watch(()=>[pe.value,de.value,t.name],([he,_e,$e],[Ie,Ve,Fe])=>{_e&&(_e.instances[$e]=he,Ve&&Ve!==_e&&he&&he===Ie&&(_e.leaveGuards.size||(_e.leaveGuards=Ve.leaveGuards),_e.updateGuards.size||(_e.updateGuards=Ve.updateGuards))),he&&_e&&(!Ve||!isSameRouteRecord(_e,Ve)||!Ie)&&(_e.enterCallbacks[$e]||[]).forEach(Ue=>Ue(he))},{flush:"post"}),()=>{const he=ie.value,_e=t.name,$e=de.value,Ie=$e&&$e.components[_e];if(!Ie)return normalizeSlot(V.default,{Component:Ie,route:he});const Ve=$e.props[_e],Fe=Ve?Ve===!0?he.params:typeof Ve=="function"?Ve(he):Ve:null,qe=h$2(Ie,assign({},Fe,r,{onVnodeUnmounted:Et=>{Et.component.isUnmounted&&($e.instances[_e]=null)},ref:pe}));return normalizeSlot(V.default,{Component:qe,route:he})||qe}}});function normalizeSlot(t,r){if(!t)return null;const V=t(r);return V.length===1?V[0]:V}const RouterView=RouterViewImpl;function createRouter(t){const r=createRouterMatcher(t.routes,t),V=t.parseQuery||parseQuery,oe=t.stringifyQuery||stringifyQuery,ie=t.history,le=useCallbacks(),ue=useCallbacks(),de=useCallbacks(),pe=shallowRef(START_LOCATION_NORMALIZED);let he=START_LOCATION_NORMALIZED;isBrowser$1&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const _e=applyToParams.bind(null,Kn=>""+Kn),$e=applyToParams.bind(null,encodeParam),Ie=applyToParams.bind(null,decode$1);function Ve(Kn,Gn){let Qn,ur;return isRouteName(Kn)?(Qn=r.getRecordMatcher(Kn),ur=Gn):ur=Kn,r.addRoute(ur,Qn)}function Fe(Kn){const Gn=r.getRecordMatcher(Kn);Gn&&r.removeRoute(Gn)}function Ue(){return r.getRoutes().map(Kn=>Kn.record)}function qe(Kn){return!!r.getRecordMatcher(Kn)}function Et(Kn,Gn){if(Gn=assign({},Gn||pe.value),typeof Kn=="string"){const er=parseURL(V,Kn,Gn.path),pr=r.resolve({path:er.path},Gn),Er=ie.createHref(er.fullPath);return assign(er,pr,{params:Ie(pr.params),hash:decode$1(er.hash),redirectedFrom:void 0,href:Er})}let Qn;if("path"in Kn)Qn=assign({},Kn,{path:parseURL(V,Kn.path,Gn.path).path});else{const er=assign({},Kn.params);for(const pr in er)er[pr]==null&&delete er[pr];Qn=assign({},Kn,{params:$e(er)}),Gn.params=$e(Gn.params)}const ur=r.resolve(Qn,Gn),cr=Kn.hash||"";ur.params=_e(Ie(ur.params));const Un=stringifyURL(oe,assign({},Kn,{hash:encodeHash(cr),path:ur.path})),qn=ie.createHref(Un);return assign({fullPath:Un,hash:cr,query:oe===stringifyQuery?normalizeQuery(Kn.query):Kn.query||{}},ur,{redirectedFrom:void 0,href:qn})}function At(Kn){return typeof Kn=="string"?parseURL(V,Kn,pe.value.path):assign({},Kn)}function Lt(Kn,Gn){if(he!==Kn)return createRouterError(8,{from:Gn,to:Kn})}function hn(Kn){return bn(Kn)}function _n(Kn){return hn(assign(At(Kn),{replace:!0}))}function vn(Kn){const Gn=Kn.matched[Kn.matched.length-1];if(Gn&&Gn.redirect){const{redirect:Qn}=Gn;let ur=typeof Qn=="function"?Qn(Kn):Qn;return typeof ur=="string"&&(ur=ur.includes("?")||ur.includes("#")?ur=At(ur):{path:ur},ur.params={}),assign({query:Kn.query,hash:Kn.hash,params:"path"in ur?{}:Kn.params},ur)}}function bn(Kn,Gn){const Qn=he=Et(Kn),ur=pe.value,cr=Kn.state,Un=Kn.force,qn=Kn.replace===!0,er=vn(Qn);if(er)return bn(assign(At(er),{state:typeof er=="object"?assign({},cr,er.state):cr,force:Un,replace:qn}),Gn||Qn);const pr=Qn;pr.redirectedFrom=Gn;let Er;return!Un&&isSameRouteLocation(oe,ur,Qn)&&(Er=createRouterError(16,{to:pr,from:ur}),Wn(ur,ur,!0,!1)),(Er?Promise.resolve(Er):wn(pr,ur)).catch(dr=>isNavigationFailure(dr)?isNavigationFailure(dr,2)?dr:Vn(dr):Ln(dr,pr,ur)).then(dr=>{if(dr){if(isNavigationFailure(dr,2))return bn(assign({replace:qn},At(dr.to),{state:typeof dr.to=="object"?assign({},cr,dr.to.state):cr,force:Un}),Gn||pr)}else dr=xn(pr,ur,!0,qn,cr);return En(pr,ur,dr),dr})}function Cn(Kn,Gn){const Qn=Lt(Kn,Gn);return Qn?Promise.reject(Qn):Promise.resolve()}function Sn(Kn){const Gn=tr.values().next().value;return Gn&&typeof Gn.runWithContext=="function"?Gn.runWithContext(Kn):Kn()}function wn(Kn,Gn){let Qn;const[ur,cr,Un]=extractChangingRecords(Kn,Gn);Qn=extractComponentsGuards(ur.reverse(),"beforeRouteLeave",Kn,Gn);for(const er of ur)er.leaveGuards.forEach(pr=>{Qn.push(guardToPromiseFn(pr,Kn,Gn))});const qn=Cn.bind(null,Kn,Gn);return Qn.push(qn),Jn(Qn).then(()=>{Qn=[];for(const er of le.list())Qn.push(guardToPromiseFn(er,Kn,Gn));return Qn.push(qn),Jn(Qn)}).then(()=>{Qn=extractComponentsGuards(cr,"beforeRouteUpdate",Kn,Gn);for(const er of cr)er.updateGuards.forEach(pr=>{Qn.push(guardToPromiseFn(pr,Kn,Gn))});return Qn.push(qn),Jn(Qn)}).then(()=>{Qn=[];for(const er of Un)if(er.beforeEnter)if(isArray$3(er.beforeEnter))for(const pr of er.beforeEnter)Qn.push(guardToPromiseFn(pr,Kn,Gn));else Qn.push(guardToPromiseFn(er.beforeEnter,Kn,Gn));return Qn.push(qn),Jn(Qn)}).then(()=>(Kn.matched.forEach(er=>er.enterCallbacks={}),Qn=extractComponentsGuards(Un,"beforeRouteEnter",Kn,Gn),Qn.push(qn),Jn(Qn))).then(()=>{Qn=[];for(const er of ue.list())Qn.push(guardToPromiseFn(er,Kn,Gn));return Qn.push(qn),Jn(Qn)}).catch(er=>isNavigationFailure(er,8)?er:Promise.reject(er))}function En(Kn,Gn,Qn){de.list().forEach(ur=>Sn(()=>ur(Kn,Gn,Qn)))}function xn(Kn,Gn,Qn,ur,cr){const Un=Lt(Kn,Gn);if(Un)return Un;const qn=Gn===START_LOCATION_NORMALIZED,er=isBrowser$1?history.state:{};Qn&&(ur||qn?ie.replace(Kn.fullPath,assign({scroll:qn&&er&&er.scroll},cr)):ie.push(Kn.fullPath,cr)),pe.value=Kn,Wn(Kn,Gn,Qn,qn),Vn()}let Pn;function kn(){Pn||(Pn=ie.listen((Kn,Gn,Qn)=>{if(!yr.listening)return;const ur=Et(Kn),cr=vn(ur);if(cr){bn(assign(cr,{replace:!0}),ur).catch(noop$1);return}he=ur;const Un=pe.value;isBrowser$1&&saveScrollPosition(getScrollKey(Un.fullPath,Qn.delta),computeScrollPosition()),wn(ur,Un).catch(qn=>isNavigationFailure(qn,12)?qn:isNavigationFailure(qn,2)?(bn(qn.to,ur).then(er=>{isNavigationFailure(er,20)&&!Qn.delta&&Qn.type===NavigationType.pop&&ie.go(-1,!1)}).catch(noop$1),Promise.reject()):(Qn.delta&&ie.go(-Qn.delta,!1),Ln(qn,ur,Un))).then(qn=>{qn=qn||xn(ur,Un,!1),qn&&(Qn.delta&&!isNavigationFailure(qn,8)?ie.go(-Qn.delta,!1):Qn.type===NavigationType.pop&&isNavigationFailure(qn,20)&&ie.go(-1,!1)),En(ur,Un,qn)}).catch(noop$1)}))}let Nn=useCallbacks(),Dn=useCallbacks(),Mn;function Ln(Kn,Gn,Qn){Vn(Kn);const ur=Dn.list();return ur.length?ur.forEach(cr=>cr(Kn,Gn,Qn)):console.error(Kn),Promise.reject(Kn)}function An(){return Mn&&pe.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Kn,Gn)=>{Nn.add([Kn,Gn])})}function Vn(Kn){return Mn||(Mn=!Kn,kn(),Nn.list().forEach(([Gn,Qn])=>Kn?Qn(Kn):Gn()),Nn.reset()),Kn}function Wn(Kn,Gn,Qn,ur){const{scrollBehavior:cr}=t;if(!isBrowser$1||!cr)return Promise.resolve();const Un=!Qn&&getSavedScrollPosition(getScrollKey(Kn.fullPath,0))||(ur||!Qn)&&history.state&&history.state.scroll||null;return nextTick().then(()=>cr(Kn,Gn,Un)).then(qn=>qn&&scrollToPosition(qn)).catch(qn=>Ln(qn,Kn,Gn))}const Fn=Kn=>ie.go(Kn);let Yn;const tr=new Set,yr={currentRoute:pe,listening:!0,addRoute:Ve,removeRoute:Fe,hasRoute:qe,getRoutes:Ue,resolve:Et,options:t,push:hn,replace:_n,go:Fn,back:()=>Fn(-1),forward:()=>Fn(1),beforeEach:le.add,beforeResolve:ue.add,afterEach:de.add,onError:Dn.add,isReady:An,install(Kn){const Gn=this;Kn.component("RouterLink",RouterLink),Kn.component("RouterView",RouterView),Kn.config.globalProperties.$router=Gn,Object.defineProperty(Kn.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(pe)}),isBrowser$1&&!Yn&&pe.value===START_LOCATION_NORMALIZED&&(Yn=!0,hn(ie.location).catch(cr=>{}));const Qn={};for(const cr in START_LOCATION_NORMALIZED)Object.defineProperty(Qn,cr,{get:()=>pe.value[cr],enumerable:!0});Kn.provide(routerKey,Gn),Kn.provide(routeLocationKey,shallowReactive(Qn)),Kn.provide(routerViewLocationKey,pe);const ur=Kn.unmount;tr.add(Kn),Kn.unmount=function(){tr.delete(Kn),tr.size<1&&(he=START_LOCATION_NORMALIZED,Pn&&Pn(),Pn=null,pe.value=START_LOCATION_NORMALIZED,Yn=!1,Mn=!1),ur()}}};function Jn(Kn){return Kn.reduce((Gn,Qn)=>Gn.then(()=>Sn(Qn)),Promise.resolve())}return yr}function extractChangingRecords(t,r){const V=[],oe=[],ie=[],le=Math.max(r.matched.length,t.matched.length);for(let ue=0;ueisSameRouteRecord(he,de))?oe.push(de):V.push(de));const pe=t.matched[ue];pe&&(r.matched.find(he=>isSameRouteRecord(he,pe))||ie.push(pe))}return[V,oe,ie]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const extractPathList=t=>{if(!Array.isArray(t))return console.warn("tree must be an array"),[];if(!t||t.length===0)return[];const r=[];for(const V of t)V.children&&V.children.length>0&&extractPathList(V.children),r.push(V.uniqueId);return r},deleteChildren=(t,r=[])=>{if(!Array.isArray(t))return console.warn("menuTree must be an array"),[];if(!t||t.length===0)return[];for(const[V,oe]of t.entries())oe.children&&oe.children.length===1&&delete oe.children,oe.id=V,oe.parentId=r.length?r[r.length-1]:null,oe.pathList=[...r,oe.id],oe.uniqueId=oe.pathList.length>1?oe.pathList.join("-"):oe.pathList[0],oe.children&&oe.children.length>0&&deleteChildren(oe.children,oe.pathList);return t},buildHierarchyTree=(t,r=[])=>{if(!Array.isArray(t))return console.warn("tree must be an array"),[];if(!t||t.length===0)return[];for(const[V,oe]of t.entries())oe.id=V,oe.parentId=r.length?r[r.length-1]:null,oe.pathList=[...r,oe.id],oe.children&&oe.children.length>0&&buildHierarchyTree(oe.children,oe.pathList);return t},getNodeByUniqueId=(t,r)=>{if(!Array.isArray(t))return console.warn("menuTree must be an array"),[];if(!t||t.length===0)return[];const V=t.find(ie=>ie.uniqueId===r);if(V)return V;const oe=t.filter(ie=>ie.children).map(ie=>ie.children).flat(1);return getNodeByUniqueId(oe,r)},appendFieldByUniqueId=(t,r,V)=>{if(!Array.isArray(t))return console.warn("menuTree must be an array"),[];if(!t||t.length===0)return[];for(const oe of t){const ie=oe.children&&oe.children.length>0;oe.uniqueId===r&&Object.prototype.toString.call(V)==="[object Object]"&&Object.assign(oe,V),ie&&appendFieldByUniqueId(oe.children,r,V)}return t},handleTree=(t,r,V,oe)=>{if(!Array.isArray(t))return console.warn("data must be an array"),[];const ie={id:r||"id",parentId:V||"parentId",childrenList:oe||"children"},le={},ue={},de=[];for(const he of t){const _e=he[ie.parentId];le[_e]==null&&(le[_e]=[]),ue[he[ie.id]]=he,le[_e].push(he)}for(const he of t){const _e=he[ie.parentId];ue[_e]==null&&de.push(he)}for(const he of de)pe(he);function pe(he){if(le[he[ie.id]]!==null&&(he[ie.childrenList]=le[he[ie.id]]),he[ie.childrenList])for(const _e of he[ie.childrenList])pe(_e)}return de},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView.js"),["static/js/frameView.js","static/css/frameView.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader.js"),["static/js/cascader.js","static/css/cascader.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce.js"),[]),"/src/views/able/directives.vue":()=>__vitePreload(()=>import("./directives.js"),[]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download.js"),[]),"/src/views/able/excel.vue":()=>__vitePreload(()=>import("./excel.js"),["static/js/excel.js","static/js/xlsx.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select.js"),["static/js/icon-select.js","static/css/icon-select.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree.js"),["static/js/line-tree.js","static/css/line-tree.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree.js"),["static/js/menu-tree.js","static/js/hooks.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf.js"),["static/js/pdf.js","static/js/vue.runtime.esm-bundler.js"]),"/src/views/able/pinyin.vue":()=>__vitePreload(()=>import("./pinyin.js"),["static/js/pinyin.js","static/js/index62.js","static/css/pinyin.css"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print.js"),["static/js/print.js","static/js/print2.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/app.js","static/css/print.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode.js"),["static/js/qrcode.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css"]),"/src/views/able/sensitive.vue":()=>__vitePreload(()=>import("./sensitive.js"),[]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper.js"),["static/js/swiper.js","static/css/swiper.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline.js"),["static/js/timeline.js","static/js/index60.js","static/css/index12.css","static/js/hooks.js","static/js/iphone.js","static/css/timeline.css"]),"/src/views/able/video-frame/index.vue":()=>__vitePreload(()=>import("./index2.js"),["static/js/index2.js","static/js/mitt.js","static/css/index2.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal.js"),["static/js/horizontal.js","static/js/vue-virtual-scroller.esm.js","static/css/horizontal.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index4.js"),["static/js/index4.js","static/js/vertical.js","static/js/vue-virtual-scroller.esm.js","static/css/vertical.css","static/js/horizontal.js","static/css/horizontal.css","static/css/index4.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical.js"),["static/js/vertical.js","static/js/vue-virtual-scroller.esm.js","static/css/vertical.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark.js"),[]),"/src/views/able/wavesurfer/index.vue":()=>__vitePreload(()=>import("./index3.js"),["static/js/index3.js","static/js/vue-tippy.esm-browser.js","static/css/index3.css"]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index5.js"),["static/js/index5.js","static/js/columns.js","static/css/index5.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index14.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic.js"),["static/js/basic.js","static/js/index.esm.js","static/css/basic.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index19.js"),["static/js/index19.js","static/js/basic.js","static/js/index.esm.js","static/css/basic.css","static/js/menuGroup.js","static/css/menuGroup.css","static/js/menuDynamic.js","static/css/menuDynamic.css","static/css/index18.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic.js"),["static/js/menuDynamic.js","static/js/index.esm.js","static/css/menuDynamic.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup.js"),["static/js/menuGroup.js","static/js/index.esm.js","static/css/menuGroup.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index16.js"),["static/js/index16.js","static/js/propTypes.js","static/css/index15.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index15.js"),["static/js/index15.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index22.js"),["static/js/index22.js","static/css/index19.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form.js"),["static/js/form.js","static/js/form.vue_vue_type_script_setup_true_lang.js"]),"/src/views/components/dialog/formPrimitive.vue":()=>__vitePreload(()=>import("./formPrimitive.js"),["static/js/formPrimitive.js","static/js/formPrimitive.vue_vue_type_script_setup_true_lang.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index6.js"),["static/js/index6.js","static/js/form.vue_vue_type_script_setup_true_lang.js","static/js/formPrimitive.vue_vue_type_script_setup_true_lang.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index12.js"),["static/js/index12.js","static/js/sortable.esm.js","static/js/app.js","static/js/hooks.js","static/css/index10.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index21.js"),["static/js/index21.js","static/js/styles.js","static/js/vue.runtime.esm-bundler.js","static/css/styles.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index11.js"),["static/js/index11.js","static/css/index9.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index7.js"),["static/js/index7.js","static/js/hooks.js","static/js/check.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index18.js"),["static/js/index18.js","static/css/index17.css"]),"/src/views/components/segmented/index.vue":()=>__vitePreload(()=>import("./index8.js"),["static/js/index8.js","static/js/home-filled.js","static/js/hooks.js","static/css/index6.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index17.js"),["static/js/index17.js","static/css/index16.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index13.js"),["static/js/index13.js","static/css/index11.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index20.js"),["static/js/index20.js","static/js/index64.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index10.js"),["static/js/index10.js","static/js/hooks.js","static/css/index8.css"]),"/src/views/components/waterfall/index.vue":()=>__vitePreload(()=>import("./index9.js"),["static/js/index9.js","static/js/back_top.js","static/css/index7.css"]),"/src/views/editor/components/base.vue":()=>__vitePreload(()=>import("./base.js"),["static/js/base.js","static/js/base.vue_vue_type_script_setup_true_lang.js","static/js/index.esm2.js","static/css/index21.css"]),"/src/views/editor/components/multi.vue":()=>__vitePreload(()=>import("./multi.js"),["static/js/multi.js","static/js/multi.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/index.esm2.js","static/css/index21.css"]),"/src/views/editor/components/picUpload.vue":()=>__vitePreload(()=>import("./picUpload.js"),["static/js/picUpload.js","static/js/picUpload.vue_vue_type_script_setup_true_lang.js","static/js/index.esm2.js","static/css/index21.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index23.js"),["static/js/index23.js","static/js/base.vue_vue_type_script_setup_true_lang.js","static/js/index.esm2.js","static/css/index21.css","static/js/multi.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/picUpload.vue_vue_type_script_setup_true_lang.js","static/css/index20.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index36.js"),["static/js/index36.js","static/css/index27.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index24.js"),["static/js/index24.js","static/js/hooks.js","static/js/styles.js","static/js/vue.runtime.esm-bundler.js","static/css/styles.css","static/js/set-up.js","static/css/index22.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index25.js"),["static/js/index25.js","static/css/index23.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card.js"),["static/js/Card.js","static/js/more-2-fill.js","static/css/Card.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm.js"),["static/js/DialogForm.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index28.js"),["static/js/index28.js","static/js/Card.js","static/js/more-2-fill.js","static/css/Card.css","static/js/list3.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang.js","static/js/hooks.js","static/js/search.js","static/js/add-circle-line.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone.js"),["static/js/phone.js","static/js/phone.vue_vue_type_script_setup_true_lang.js","static/js/motion.js","static/js/verifyCode.js","static/js/hooks.js","static/js/iphone.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode2.js"),["static/js/qrCode2.js","static/js/qrCode.vue_vue_type_script_setup_true_lang.js","static/js/motion.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist.js"),["static/js/regist.js","static/js/regist.vue_vue_type_script_setup_true_lang.js","static/js/motion.js","static/js/verifyCode.js","static/js/hooks.js","static/js/lock-fill.js","static/js/iphone.js","static/js/user-3-fill.js"]),"/src/views/login/components/update.vue":()=>__vitePreload(()=>import("./update.js"),["static/js/update.js","static/js/update.vue_vue_type_script_setup_true_lang.js","static/js/motion.js","static/js/verifyCode.js","static/js/hooks.js","static/js/lock-fill.js","static/js/iphone.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index37.js"),["static/js/index37.js","static/js/motion.js","static/js/verifyCode.js","static/js/phone.vue_vue_type_script_setup_true_lang.js","static/js/hooks.js","static/js/iphone.js","static/js/index64.js","static/js/qrCode.vue_vue_type_script_setup_true_lang.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css","static/js/regist.vue_vue_type_script_setup_true_lang.js","static/js/lock-fill.js","static/js/user-3-fill.js","static/js/update.vue_vue_type_script_setup_true_lang.js","static/js/dark.js","static/js/epTheme.js","static/js/mitt.js","static/js/app.js","static/js/check.js","static/css/index28.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index29.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index30.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index31.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index32.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index33.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index34.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index38.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index39.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base2.js"),["static/js/base2.js","static/js/base.vue_vue_type_script_setup_true_lang2.js","static/js/data.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border.js"),["static/js/border.js","static/js/border.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns2.js"),["static/js/columns2.js","static/js/data.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index40.js"),["static/js/index40.js","static/js/index.vue_vue_type_script_setup_true_lang.js","static/js/columns2.js","static/js/data.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex.js"),["static/js/customIndex.js","static/js/customIndex.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand.js"),["static/js/expand.js","static/js/expand.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters.js"),["static/js/filters.js","static/js/filters.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn.js"),["static/js/fixColumn.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader.js"),["static/js/fixHeader.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight.js"),["static/js/fluidHeight.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader.js"),["static/js/groupHeader.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns3.js"),["static/js/columns3.js","static/js/data.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index41.js"),["static/js/index41.js","static/js/index.vue_vue_type_script_setup_true_lang2.js","static/js/columns3.js","static/js/data.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview.js"),["static/js/imgPreview.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout.js"),["static/js/layout.js","static/js/layout.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list.js"),["static/js/list.js","static/js/base.vue_vue_type_script_setup_true_lang2.js","static/js/data.js","static/js/stripe.vue_vue_type_script_setup_true_lang.js","static/js/border.vue_vue_type_script_setup_true_lang.js","static/js/status.vue_vue_type_style_index_0_lang.js","static/css/status.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang.js","static/js/radio.vue_vue_type_script_setup_true_lang.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang.js","static/js/sortable.vue_vue_type_script_setup_true_lang.js","static/js/filters.vue_vue_type_script_setup_true_lang.js","static/js/index.vue_vue_type_script_setup_true_lang.js","static/js/columns2.js","static/js/index.vue_vue_type_script_setup_true_lang2.js","static/js/columns3.js","static/js/expand.vue_vue_type_script_setup_true_lang.js","static/js/tree.vue_vue_type_script_setup_true_lang.js","static/js/totalRow.vue_vue_type_script_setup_true_lang.js","static/js/merge.vue_vue_type_script_setup_true_lang.js","static/js/customIndex.vue_vue_type_script_setup_true_lang.js","static/js/layout.vue_vue_type_script_setup_true_lang.js","static/js/nestProp.vue_vue_type_script_setup_true_lang.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge.js"),["static/js/merge.js","static/js/merge.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice.js"),["static/js/multipleChoice.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp.js"),["static/js/nestProp.js","static/js/nestProp.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio.js"),["static/js/radio.js","static/js/radio.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable.js"),["static/js/sortable.js","static/js/sortable.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status.js"),["static/js/status.js","static/js/status.vue_vue_type_style_index_0_lang.js","static/js/data.js","static/css/status.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe.js"),["static/js/stripe.js","static/js/stripe.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow.js"),["static/js/totalRow.js","static/js/totalRow.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree.js"),["static/js/tree.js","static/js/tree.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high.js"),["static/js/high.js","static/js/list2.js","static/js/index.vue_vue_type_script_setup_true_lang3.js","static/js/columns4.js","static/js/data2.js","static/js/index.vue_vue_type_script_setup_true_lang4.js","static/js/columns11.js","static/js/index.vue_vue_type_script_setup_true_lang5.js","static/js/columns7.js","static/js/sortable.esm.js","static/js/index.vue_vue_type_script_setup_true_lang6.js","static/js/columns6.js","static/js/index.vue_vue_type_script_setup_true_lang7.js","static/js/columns5.js","static/js/index.vue_vue_type_script_setup_true_lang8.js","static/js/columns10.js","static/js/xlsx.js","static/js/index.vue_vue_type_script_setup_true_lang9.js","static/js/columns9.js","static/js/edit-pen.js","static/js/check.js","static/js/index.vue_vue_type_script_setup_true_lang10.js","static/js/columns15.js","static/js/index.vue_vue_type_script_setup_true_lang11.js","static/js/columns12.js","static/js/print2.js","static/js/index.vue_vue_type_script_setup_true_lang12.js","static/js/columns8.js","static/js/index.vue_vue_type_script_setup_true_lang13.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js","static/css/high.css"]),"/src/views/pure-table/high/adaptive/columns.tsx":()=>__vitePreload(()=>import("./columns4.js"),["static/js/columns4.js","static/js/data2.js"]),"/src/views/pure-table/high/adaptive/index.vue":()=>__vitePreload(()=>import("./index42.js"),["static/js/index42.js","static/js/index.vue_vue_type_script_setup_true_lang3.js","static/js/columns4.js","static/js/data2.js"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns5.js"),["static/js/columns5.js","static/js/data2.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index43.js"),["static/js/index43.js","static/js/index.vue_vue_type_script_setup_true_lang7.js","static/js/columns5.js","static/js/data2.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns6.js"),["static/js/columns6.js","static/js/sortable.esm.js","static/js/data2.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index44.js"),["static/js/index44.js","static/js/index.vue_vue_type_script_setup_true_lang6.js","static/js/columns6.js","static/js/sortable.esm.js","static/js/data2.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns7.js"),["static/js/columns7.js","static/js/sortable.esm.js","static/js/data2.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index45.js"),["static/js/index45.js","static/js/index.vue_vue_type_script_setup_true_lang5.js","static/js/columns7.js","static/js/sortable.esm.js","static/js/data2.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns8.js"),["static/js/columns8.js","static/js/data2.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index46.js"),["static/js/index46.js","static/js/index.vue_vue_type_script_setup_true_lang12.js","static/js/columns8.js","static/js/data2.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns9.js"),["static/js/columns9.js","static/js/data2.js","static/js/edit-pen.js","static/js/check.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index47.js"),["static/js/index47.js","static/js/index.vue_vue_type_script_setup_true_lang9.js","static/js/columns9.js","static/js/data2.js","static/js/edit-pen.js","static/js/check.js"]),"/src/views/pure-table/high/excel/columns.tsx":()=>__vitePreload(()=>import("./columns10.js"),["static/js/columns10.js","static/js/xlsx.js","static/js/data2.js"]),"/src/views/pure-table/high/excel/index.vue":()=>__vitePreload(()=>import("./index48.js"),["static/js/index48.js","static/js/index.vue_vue_type_script_setup_true_lang8.js","static/js/columns10.js","static/js/xlsx.js","static/js/data2.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list2.js"),["static/js/list2.js","static/js/index.vue_vue_type_script_setup_true_lang3.js","static/js/columns4.js","static/js/data2.js","static/js/index.vue_vue_type_script_setup_true_lang4.js","static/js/columns11.js","static/js/index.vue_vue_type_script_setup_true_lang5.js","static/js/columns7.js","static/js/sortable.esm.js","static/js/index.vue_vue_type_script_setup_true_lang6.js","static/js/columns6.js","static/js/index.vue_vue_type_script_setup_true_lang7.js","static/js/columns5.js","static/js/index.vue_vue_type_script_setup_true_lang8.js","static/js/columns10.js","static/js/xlsx.js","static/js/index.vue_vue_type_script_setup_true_lang9.js","static/js/columns9.js","static/js/edit-pen.js","static/js/check.js","static/js/index.vue_vue_type_script_setup_true_lang10.js","static/js/columns15.js","static/js/index.vue_vue_type_script_setup_true_lang11.js","static/js/columns12.js","static/js/print2.js","static/js/index.vue_vue_type_script_setup_true_lang12.js","static/js/columns8.js","static/js/index.vue_vue_type_script_setup_true_lang13.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns11.js"),["static/js/columns11.js","static/js/data2.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index49.js"),["static/js/index49.js","static/js/index.vue_vue_type_script_setup_true_lang4.js","static/js/columns11.js","static/js/data2.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns12.js"),["static/js/columns12.js","static/js/print2.js","static/js/data2.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index50.js"),["static/js/index50.js","static/js/index.vue_vue_type_script_setup_true_lang11.js","static/js/columns12.js","static/js/print2.js","static/js/data2.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index51.js"),["static/js/index51.js","static/js/index.vue_vue_type_script_setup_true_lang13.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/data2.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns13.js"),["static/js/columns13.js","static/js/data2.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index52.js"),["static/js/index52.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js","static/js/data2.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns14.js"),["static/js/columns14.js","static/js/data2.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index53.js"),["static/js/index53.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/data2.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns15.js"),["static/js/columns15.js","static/js/data2.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index54.js"),["static/js/index54.js","static/js/index.vue_vue_type_script_setup_true_lang10.js","static/js/columns15.js","static/js/data2.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index35.js"),["static/js/index35.js","static/js/list.js","static/js/base.vue_vue_type_script_setup_true_lang2.js","static/js/data.js","static/js/stripe.vue_vue_type_script_setup_true_lang.js","static/js/border.vue_vue_type_script_setup_true_lang.js","static/js/status.vue_vue_type_style_index_0_lang.js","static/css/status.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang.js","static/js/radio.vue_vue_type_script_setup_true_lang.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang.js","static/js/sortable.vue_vue_type_script_setup_true_lang.js","static/js/filters.vue_vue_type_script_setup_true_lang.js","static/js/index.vue_vue_type_script_setup_true_lang.js","static/js/columns2.js","static/js/index.vue_vue_type_script_setup_true_lang2.js","static/js/columns3.js","static/js/expand.vue_vue_type_script_setup_true_lang.js","static/js/tree.vue_vue_type_script_setup_true_lang.js","static/js/totalRow.vue_vue_type_script_setup_true_lang.js","static/js/merge.vue_vue_type_script_setup_true_lang.js","static/js/customIndex.vue_vue_type_script_setup_true_lang.js","static/js/layout.vue_vue_type_script_setup_true_lang.js","static/js/nestProp.vue_vue_type_script_setup_true_lang.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang.js","static/css/index26.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns16.js"),["static/js/columns16.js","static/js/arrow-right-s-line.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail.js"),["static/js/fail.js","static/js/columns16.js","static/js/arrow-right-s-line.js","static/css/fail.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success.js"),["static/js/success.js","static/css/success.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form2.js"),["static/js/form2.js","static/js/form.vue_vue_type_script_setup_true_lang2.js","static/js/index65.js","static/js/hooks2.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index55.js"),["static/js/index55.js","static/js/hook.js","static/js/form.vue_vue_type_script_setup_true_lang2.js","static/js/index65.js","static/js/hooks2.js","static/js/system.js","static/js/refresh.js","static/js/epTheme.js","static/js/sortable.esm.js","static/js/hooks.js","static/js/edit-pen.js","static/js/search.js","static/js/add-circle-line.js","static/css/index29.css"]),"/src/views/system/dept/utils/hook.tsx":()=>__vitePreload(()=>import("./hook.js"),["static/js/hook.js","static/js/form.vue_vue_type_script_setup_true_lang2.js","static/js/index65.js","static/js/hooks2.js","static/js/system.js"]),"/src/views/system/role/form.vue":()=>__vitePreload(()=>import("./form3.js"),["static/js/form3.js","static/js/form.vue_vue_type_script_setup_true_lang3.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index56.js"),["static/js/index56.js","static/js/hook2.js","static/js/form.vue_vue_type_script_setup_true_lang3.js","static/js/system.js","static/js/hooks2.js","static/js/refresh.js","static/js/epTheme.js","static/js/sortable.esm.js","static/js/hooks.js","static/js/edit-pen.js","static/js/search.js","static/js/menu.js","static/js/add-circle-line.js","static/css/index30.css"]),"/src/views/system/role/utils/hook.tsx":()=>__vitePreload(()=>import("./hook2.js"),["static/js/hook2.js","static/js/form.vue_vue_type_script_setup_true_lang3.js","static/js/system.js","static/js/hooks2.js"]),"/src/views/system/user/form/index.vue":()=>__vitePreload(()=>import("./index57.js"),["static/js/index57.js","static/js/index.vue_vue_type_script_setup_true_lang16.js","static/js/index65.js","static/js/hooks2.js"]),"/src/views/system/user/form/role.vue":()=>__vitePreload(()=>import("./role.js"),["static/js/role.js","static/js/role.vue_vue_type_script_setup_true_lang.js","static/js/index65.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index58.js"),["static/js/index58.js","static/js/tree2.js","static/js/hooks.js","static/js/git-branch-line.js","static/js/search.js","static/js/more-2-fill.js","static/js/office-building.js","static/css/tree.css","static/js/hook3.js","static/js/role.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/index.vue_vue_type_script_setup_true_lang16.js","static/js/hooks2.js","static/js/upload.vue_vue_type_script_setup_true_lang.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css","static/js/system.js","static/css/hook.css","static/js/refresh.js","static/js/epTheme.js","static/js/sortable.esm.js","static/js/admin-line.js","static/js/edit-pen.js","static/js/add-circle-line.js","static/css/index31.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree2.js"),["static/js/tree2.js","static/js/hooks.js","static/js/git-branch-line.js","static/js/search.js","static/js/more-2-fill.js","static/js/office-building.js","static/css/tree.css"]),"/src/views/system/user/upload.vue":()=>__vitePreload(()=>import("./upload.js"),["static/js/upload.js","static/js/upload.vue_vue_type_script_setup_true_lang.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css"]),"/src/views/system/user/utils/hook.tsx":()=>__vitePreload(()=>import("./hook3.js"),["static/js/hook3.js","static/js/role.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/index.vue_vue_type_script_setup_true_lang16.js","static/js/hooks2.js","static/js/upload.vue_vue_type_script_setup_true_lang.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css","static/js/system.js","static/css/hook.css"]),"/src/views/tabs/index.vue":()=>__vitePreload(()=>import("./index59.js"),["static/js/index59.js","static/js/hooks3.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail.js"),["static/js/params-detail.js","static/js/hooks3.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail.js"),["static/js/query-detail.js","static/js/hooks3.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar.js"),["static/js/Bar.js","static/js/Bar.vue_vue_type_script_setup_true_lang.js","static/js/app.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github.js"),["static/js/Github.js","static/js/Github.vue_vue_type_script_setup_true_lang.js","static/js/columns17.js","static/js/index64.js","static/js/office-building.js","static/js/iphone.js","static/js/user-3-fill.js"]),"/src/views/welcome/components/Line.vue":()=>__vitePreload(()=>import("./Line.js"),["static/js/Line.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/app.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie.js"),["static/js/Pie.js","static/js/Pie.vue_vue_type_script_setup_true_lang.js","static/js/app.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns17.js"),["static/js/columns17.js","static/js/index64.js","static/js/office-building.js","static/js/iphone.js","static/js/user-3-fill.js"]),"/src/views/welcome/index.vue":()=>__vitePreload(()=>import("./index27.js"),["static/js/index27.js","static/js/Bar.vue_vue_type_script_setup_true_lang.js","static/js/app.js","static/js/Pie.vue_vue_type_script_setup_true_lang.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/list3.js","static/js/index64.js","static/js/Github.vue_vue_type_script_setup_true_lang.js","static/js/columns17.js","static/js/office-building.js","static/js/iphone.js","static/js/user-3-fill.js","static/js/index60.js","static/css/index12.css","static/css/index25.css"])});function handRank(t){const{name:r,path:V,parentId:oe,meta:ie}=t;return N(oe)?!!(N(ie==null?void 0:ie.rank)||(ie==null?void 0:ie.rank)===0&&r!=="Home"&&V!=="/"):!1}function ascending(t){return t.forEach((r,V)=>{handRank(r)&&(r.meta.rank=V+2)}),t.sort((r,V)=>(r==null?void 0:r.meta.rank)-(V==null?void 0:V.meta.rank))}function filterTree(t){const r=en(t).filter(V=>{var oe;return((oe=V.meta)==null?void 0:oe.showLink)!==!1});return r.forEach(V=>V.children&&(V.children=filterTree(V.children))),r}function filterChildrenTree(t){const r=en(t).filter(V=>{var oe;return((oe=V==null?void 0:V.children)==null?void 0:oe.length)!==0});return r.forEach(V=>V.children&&(V.children=filterTree(V.children))),r}function isOneOfArray(t,r){return Array.isArray(t)&&Array.isArray(r)?vr(t,r).length>0:!0}function filterNoPermissionTree(t){var oe;const r=((oe=rr().getItem(sessionKey))==null?void 0:oe.roles)??[],V=en(t).filter(ie=>{var le;return isOneOfArray((le=ie.meta)==null?void 0:le.roles,r)});return V.forEach(ie=>ie.children&&(ie.children=filterNoPermissionTree(ie.children))),filterChildrenTree(V)}function getParentPaths(t,r,V="path"){function oe(ie,le,ue){for(let de=0;deoe.path==t);if(V)return isProxy(V)?toRaw(V):V;for(let oe=0;oe0&&(V=findRouteByPath(t,r[oe].children),V))return isProxy(V)?toRaw(V):V;return null}function addPathMatch(){router.hasRoute("pathMatch")||router.addRoute({path:"/:pathMatch(.*)",name:"pathMatch",redirect:"/error/404"})}function handleAsyncRoutes(t){t.length===0||formatFlatteningRoutes(addAsyncRoutes(t)).map(r=>{if(router.options.routes[0].children.findIndex(V=>V.path===r.path)===-1){router.options.routes[0].children.push(r),ascending(router.options.routes[0].children),router.hasRoute(r==null?void 0:r.name)||router.addRoute(r);const V=router.getRoutes().find(oe=>oe.path==="/");router.addRoute(V)}}),usePermissionStoreHook().handleWholeMenus(t),addPathMatch()}function initRouter(){var t;if((t=getConfig())!=null&&t.CachingAsyncRoutes){const r="async-routes",V=rr().getItem(r);return V&&(V==null?void 0:V.length)>0?new Promise(oe=>{handleAsyncRoutes(V),oe(router)}):new Promise(oe=>{getAsyncRoutes().then(({data:ie})=>{handleAsyncRoutes(en(ie)),rr().setItem(r,ie),oe(router)})})}else return new Promise(r=>{getAsyncRoutes().then(({data:V})=>{handleAsyncRoutes(en(V)),r(router)})})}function formatFlatteningRoutes(t){if(t.length===0)return t;let r=buildHierarchyTree(t);for(let V=0;V{var oe;V.path==="/"?r.push({component:V.component,name:V.name,path:V.path,redirect:V.redirect,meta:V.meta,children:[]}):(oe=r[0])==null||oe.children.push({...V})}),r}function handleAliveRoute({name:t},r){switch(r){case"add":usePermissionStoreHook().cacheOperate({mode:"add",name:t});break;case"delete":usePermissionStoreHook().cacheOperate({mode:"delete",name:t});break;case"refresh":usePermissionStoreHook().cacheOperate({mode:"refresh",name:t});break;default:usePermissionStoreHook().cacheOperate({mode:"delete",name:t}),useTimeoutFn(()=>{usePermissionStoreHook().cacheOperate({mode:"add",name:t})},100)}}function addAsyncRoutes(t){if(!t||!t.length)return;const r=Object.keys(modulesRoutes);return t.forEach(V=>{var oe;if(V.meta.backstage=!0,V!=null&&V.children&&V.children.length&&!V.redirect&&(V.redirect=V.children[0].path),V!=null&&V.children&&V.children.length&&!V.name&&(V.name=V.children[0].name+"Parent"),(oe=V.meta)!=null&&oe.frameSrc)V.component=IFrame;else{const ie=V!=null&&V.component?r.findIndex(le=>le.includes(V.component)):r.findIndex(le=>le.includes(V.path));V.component=modulesRoutes[r[ie]]}V!=null&&V.children&&V.children.length&&addAsyncRoutes(V.children)}),t}function getHistoryMode(t){const r=t.split(","),V=r[0],oe=r[1];if(r.length===1){if(V==="hash")return createWebHashHistory("");if(V==="h5")return createWebHistory("")}else if(r.length===2){if(V==="hash")return createWebHashHistory(oe);if(V==="h5")return createWebHistory(oe)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth(t){if(!t)return!1;const r=getAuths();return r?!!(A(t)?r.includes(t):Tr(t,r)):!1}function getTopMenu(t=!1){var V;const r=(V=usePermissionStoreHook().wholeMenus[0])==null?void 0:V.children[0];return t&&useMultiTagsStoreHook().handleTags("push",r),r}const usePermissionStore=defineStore({id:"pure-permission",state:()=>({constantMenus,wholeMenus:[],cachePageList:[]}),actions:{handleWholeMenus(t){this.wholeMenus=filterNoPermissionTree(filterTree(ascending(this.constantMenus.concat(t))))},cacheOperate({mode:t,name:r}){const V=this.cachePageList.findIndex(oe=>oe===r);switch(t){case"refresh":this.cachePageList=this.cachePageList.filter(oe=>oe!==r);break;case"add":this.cachePageList.push(r);break;case"delete":V!==-1&&this.cachePageList.splice(V,1);break}vt(()=>{let oe=this.cachePageList.length;const ie=Sr(useMultiTagsStoreHook().multiTags,"name");for(;oe>0;)ie.findIndex(le=>le===this.cachePageList[oe-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[oe-1]),1),oe--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index26.js"),["static/js/index26.js","static/js/menu.js","static/js/set-up.js","static/js/home-filled.js","static/js/admin-line.js","static/js/git-branch-line.js","static/js/dark.js","static/js/epTheme.js","static/js/mitt.js","static/js/app.js","static/js/index62.js","static/js/hooks.js","static/js/search.js","static/js/check.js","static/js/refresh-right.js","static/js/arrow-right-s-line.js","static/js/back_top.js","static/css/index24.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index37.js"),["static/js/index37.js","static/js/motion.js","static/js/verifyCode.js","static/js/phone.vue_vue_type_script_setup_true_lang.js","static/js/hooks.js","static/js/iphone.js","static/js/index64.js","static/js/qrCode.vue_vue_type_script_setup_true_lang.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css","static/js/regist.vue_vue_type_script_setup_true_lang.js","static/js/lock-fill.js","static/js/user-3-fill.js","static/js/update.vue_vue_type_script_setup_true_lang.js","static/js/dark.js","static/js/epTheme.js","static/js/mitt.js","static/js/app.js","static/js/check.js","static/css/index28.css"]),meta:{title:$t("menus.hslogin"),showLink:!1,rank:101}},{path:"/redirect",component:Layout,meta:{title:$t("status.hsLoad"),showLink:!1,rank:102},children:[{path:"/redirect/:path(.*)",name:"Redirect",component:()=>__vitePreload(()=>import("./redirect.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index36.js"),["static/js/index36.js","static/css/index27.css"]),meta:{title:$t("menus.hsempty"),showLink:!1,rank:103}}],modules$1=Object.assign({"./modules/able.ts":__vite_glob_0_0$1,"./modules/about.ts":__vite_glob_0_1$1,"./modules/components.ts":__vite_glob_0_2$1,"./modules/editor.ts":__vite_glob_0_3$1,"./modules/error.ts":__vite_glob_0_4$1,"./modules/flowchart.ts":__vite_glob_0_5$1,"./modules/formdesign.ts":__vite_glob_0_6,"./modules/guide.ts":__vite_glob_0_7,"./modules/home.ts":__vite_glob_0_8,"./modules/list.ts":__vite_glob_0_9,"./modules/menuoverflow.ts":__vite_glob_0_10,"./modules/nested.ts":__vite_glob_0_11,"./modules/ppt.ts":__vite_glob_0_12,"./modules/puredoc.ts":__vite_glob_0_13,"./modules/pureutils.ts":__vite_glob_0_14,"./modules/result.ts":__vite_glob_0_15,"./modules/table.ts":__vite_glob_0_16}),routes=[];Object.keys(modules$1).forEach(t=>{routes.push(modules$1[t].default)});const constantRoutes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(1/0))))),constantMenus=ascending(routes.flat(1/0)).concat(...remainingRouter),remainingPaths=Object.keys(remainingRouter).map(t=>remainingRouter[t].path),router=createRouter({history:getHistoryMode("hash"),routes:constantRoutes.concat(...remainingRouter),strict:!0,scrollBehavior(t,r,V){return new Promise(oe=>{if(V)return V;if(r.meta.saveSrollTop){const ie=document.documentElement.scrollTop||document.body.scrollTop;oe({left:0,top:ie})}})}});function resetRouter(){router.getRoutes().forEach(t=>{const{name:r,meta:V}=t;r&&router.hasRoute(r)&&(V!=null&&V.backstage)&&(router.removeRoute(r),router.options.routes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(1/0))))))}),usePermissionStoreHook().clearAllCachePage()}const whiteList=["/login"],{VITE_HIDE_HOME}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};router.beforeEach((t,r,V)=>{var ue,de,pe;(ue=t.meta)!=null&&ue.keepAlive&&(handleAliveRoute(t,"add"),(r.name===void 0||r.name==="Redirect")&&handleAliveRoute(t));const oe=rr().getItem(sessionKey);NProgress.start();const ie=gt(t==null?void 0:t.name);ie||t.matched.some(he=>{if(!he.meta.title)return"";const _e=getConfig().Title;_e?document.title=`${transformI18n(he.meta.title)} | ${_e}`:document.title=transformI18n(he.meta.title)});function le(){whiteList.includes(t.fullPath)?V(r.fullPath):V()}oe?((de=t.meta)!=null&&de.roles&&!isOneOfArray((pe=t.meta)==null?void 0:pe.roles,oe==null?void 0:oe.roles)&&V({path:"/error/403"}),VITE_HIDE_HOME==="true"&&t.fullPath==="/welcome"&&V({path:"/error/404"}),r!=null&&r.name?ie?(Mt(t==null?void 0:t.name),NProgress.done()):le():(usePermissionStoreHook().wholeMenus.length===0&&t.path!=="/login"&&initRouter().then(he=>{var _e,$e;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:Ie}=t,Ve=findRouteByPath(Ie,he.options.routes[0].children);if(getTopMenu(!0),Ve&&((_e=Ve.meta)!=null&&_e.title))if(N(Ve.parentId)&&(($e=Ve.meta)!=null&&$e.backstage)){const{path:Fe,name:Ue,meta:qe}=Ve.children[0];useMultiTagsStoreHook().handleTags("push",{path:Fe,name:Ue,meta:qe})}else{const{path:Fe,name:Ue,meta:qe}=Ve;useMultiTagsStoreHook().handleTags("push",{path:Fe,name:Ue,meta:qe})}}N(t.name)&&he.push(t.fullPath)}),le())):t.path!=="/login"?whiteList.indexOf(t.path)!==-1?V():V({path:"/login"}):V()});router.afterEach(()=>{NProgress.done()});function isObject$4(t){return t!==null&&typeof t=="object"}function _defu(t,r,V=".",oe){if(!isObject$4(r))return _defu(t,{},V,oe);const ie=Object.assign({},r);for(const le in t){if(le==="__proto__"||le==="constructor")continue;const ue=t[le];ue!=null&&(oe&&oe(ie,le,ue,V)||(Array.isArray(ue)&&Array.isArray(ie[le])?ie[le]=[...ue,...ie[le]]:isObject$4(ue)&&isObject$4(ie[le])?ie[le]=_defu(ue,ie[le],(V?`${V}.`:"")+le.toString(),oe):ie[le]=ue))}return ie}function createDefu(t){return(...r)=>r.reduce((V,oe)=>_defu(V,oe,"",t),{})}const defu=createDefu(),defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(getCurrentTime()),defaultTimestep);function createRenderStep(t){let r=[],V=[],oe=0,ie=!1,le=!1;const ue=new WeakSet,de={schedule:(pe,he=!1,_e=!1)=>{const $e=_e&&ie,Ie=$e?r:V;return he&&ue.add(pe),Ie.indexOf(pe)===-1&&(Ie.push(pe),$e&&ie&&(oe=r.length)),pe},cancel:pe=>{const he=V.indexOf(pe);he!==-1&&V.splice(he,1),ue.delete(pe)},process:pe=>{if(ie){le=!0;return}if(ie=!0,[r,V]=[V,r],V.length=0,oe=r.length,oe)for(let he=0;he(t[r]=createRenderStep(()=>runNextFrame=!0),t),{}),sync=stepsOrder.reduce((t,r)=>{const V=steps[r];return t[r]=(oe,ie=!1,le=!1)=>(runNextFrame||startLoop(),V.schedule(oe,ie,le)),t},{}),cancelSync=stepsOrder.reduce((t,r)=>(t[r]=steps[r].cancel,t),{});stepsOrder.reduce((t,r)=>(t[r]=()=>steps[r].process(frame),t),{});const processStep=t=>steps[t].process(frame),processFrame=t=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(t-frame.timestamp,maxElapsed),1),frame.timestamp=t,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest(t,r){var V={};for(var oe in t)Object.prototype.hasOwnProperty.call(t,oe)&&r.indexOf(oe)<0&&(V[oe]=t[oe]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,oe=Object.getOwnPropertySymbols(t);ieMath.min(Math.max(V,t),r),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:t=800,bounce:r=.25,velocity:V=0,mass:oe=1}){let ie,le;warning(t<=maxDuration*1e3);let ue=1-r;ue=clamp$2(minDamping,maxDamping,ue),t=clamp$2(minDuration,maxDuration,t/1e3),ue<1?(ie=he=>{const _e=he*ue,$e=_e*t,Ie=_e-V,Ve=calcAngularFreq(he,ue),Fe=Math.exp(-$e);return safeMin-Ie/Ve*Fe},le=he=>{const $e=he*ue*t,Ie=$e*V+V,Ve=Math.pow(ue,2)*Math.pow(he,2)*t,Fe=Math.exp(-$e),Ue=calcAngularFreq(Math.pow(he,2),ue);return(-ie(he)+safeMin>0?-1:1)*((Ie-Ve)*Fe)/Ue}):(ie=he=>{const _e=Math.exp(-he*t),$e=(he-V)*t+1;return-safeMin+_e*$e},le=he=>{const _e=Math.exp(-he*t),$e=(V-he)*(t*t);return _e*$e});const de=5/t,pe=approximateRoot(ie,le,de);if(t=t*1e3,isNaN(pe))return{stiffness:100,damping:10,duration:t};{const he=Math.pow(pe,2)*oe;return{stiffness:he,damping:ue*2*Math.sqrt(oe*he),duration:t}}}const rootIterations=12;function approximateRoot(t,r,V){let oe=V;for(let ie=1;iet[V]!==void 0)}function getSpringOptions(t){let r=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!isSpringType(t,physicsKeys)&&isSpringType(t,durationKeys)){const V=findSpring(t);r=Object.assign(Object.assign(Object.assign({},r),V),{velocity:0,mass:1}),r.isResolvedFromDuration=!0}return r}function spring(t){var{from:r=0,to:V=1,restSpeed:oe=2,restDelta:ie}=t,le=__rest(t,["from","to","restSpeed","restDelta"]);const ue={done:!1,value:r};let{stiffness:de,damping:pe,mass:he,velocity:_e,duration:$e,isResolvedFromDuration:Ie}=getSpringOptions(le),Ve=zero,Fe=zero;function Ue(){const qe=_e?-(_e/1e3):0,Et=V-r,At=pe/(2*Math.sqrt(de*he)),Lt=Math.sqrt(de/he)/1e3;if(ie===void 0&&(ie=Math.min(Math.abs(V-r)/100,.4)),At<1){const hn=calcAngularFreq(Lt,At);Ve=_n=>{const vn=Math.exp(-At*Lt*_n);return V-vn*((qe+At*Lt*Et)/hn*Math.sin(hn*_n)+Et*Math.cos(hn*_n))},Fe=_n=>{const vn=Math.exp(-At*Lt*_n);return At*Lt*vn*(Math.sin(hn*_n)*(qe+At*Lt*Et)/hn+Et*Math.cos(hn*_n))-vn*(Math.cos(hn*_n)*(qe+At*Lt*Et)-hn*Et*Math.sin(hn*_n))}}else if(At===1)Ve=hn=>V-Math.exp(-Lt*hn)*(Et+(qe+Lt*Et)*hn);else{const hn=Lt*Math.sqrt(At*At-1);Ve=_n=>{const vn=Math.exp(-At*Lt*_n),bn=Math.min(hn*_n,300);return V-vn*((qe+At*Lt*Et)*Math.sinh(bn)+hn*Et*Math.cosh(bn))/hn}}}return Ue(),{next:qe=>{const Et=Ve(qe);if(Ie)ue.done=qe>=$e;else{const At=Fe(qe)*1e3,Lt=Math.abs(At)<=oe,hn=Math.abs(V-Et)<=ie;ue.done=Lt&&hn}return ue.value=ue.done?V:Et,ue},flipTarget:()=>{_e=-_e,[r,V]=[V,r],Ue()}}}spring.needsInterpolation=(t,r)=>typeof t=="string"||typeof r=="string";const zero=t=>0,progress=(t,r,V)=>{const oe=r-t;return oe===0?1:(V-t)/oe},mix=(t,r,V)=>-V*t+V*r+t,clamp$1=(t,r)=>V=>Math.max(Math.min(V,r),t),sanitize=t=>t%1?Number(t.toFixed(5)):t,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1(t){return typeof t=="string"}const number$1={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=t=>({test:r=>isString$1(r)&&r.endsWith(t)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${t}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:t=>percent.parse(t)/100,transform:t=>percent.transform(t*100)}),isColorString=(t,r)=>V=>!!(isString$1(V)&&singleColorRegex.test(V)&&V.startsWith(t)||r&&Object.prototype.hasOwnProperty.call(V,r)),splitColor=(t,r,V)=>oe=>{if(!isString$1(oe))return oe;const[ie,le,ue,de]=oe.match(floatRegex);return{[t]:parseFloat(ie),[r]:parseFloat(le),[V]:parseFloat(ue),alpha:de!==void 0?parseFloat(de):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:t,saturation:r,lightness:V,alpha:oe=1})=>"hsla("+Math.round(t)+", "+percent.transform(sanitize(r))+", "+percent.transform(sanitize(V))+", "+sanitize(alpha.transform(oe))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:t=>Math.round(clampRgbUnit(t))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:t,green:r,blue:V,alpha:oe=1})=>"rgba("+rgbUnit.transform(t)+", "+rgbUnit.transform(r)+", "+rgbUnit.transform(V)+", "+sanitize(alpha.transform(oe))+")"};function parseHex(t){let r="",V="",oe="",ie="";return t.length>5?(r=t.substr(1,2),V=t.substr(3,2),oe=t.substr(5,2),ie=t.substr(7,2)):(r=t.substr(1,1),V=t.substr(2,1),oe=t.substr(3,1),ie=t.substr(4,1),r+=r,V+=V,oe+=oe,ie+=ie),{red:parseInt(r,16),green:parseInt(V,16),blue:parseInt(oe,16),alpha:ie?parseInt(ie,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:t=>rgba.test(t)||hex.test(t)||hsla.test(t),parse:t=>rgba.test(t)?rgba.parse(t):hsla.test(t)?hsla.parse(t):hex.parse(t),transform:t=>isString$1(t)?t:t.hasOwnProperty("red")?rgba.transform(t):hsla.transform(t)},colorToken="${c}",numberToken="${n}";function test(t){var r,V,oe,ie;return isNaN(t)&&isString$1(t)&&((V=(r=t.match(floatRegex))===null||r===void 0?void 0:r.length)!==null&&V!==void 0?V:0)+((ie=(oe=t.match(colorRegex))===null||oe===void 0?void 0:oe.length)!==null&&ie!==void 0?ie:0)>0}function analyse$1(t){typeof t=="number"&&(t=`${t}`);const r=[];let V=0;const oe=t.match(colorRegex);oe&&(V=oe.length,t=t.replace(colorRegex,colorToken),r.push(...oe.map(color$1.parse)));const ie=t.match(floatRegex);return ie&&(t=t.replace(floatRegex,numberToken),r.push(...ie.map(number$1.parse))),{values:r,numColors:V,tokenised:t}}function parse$2(t){return analyse$1(t).values}function createTransformer(t){const{values:r,numColors:V,tokenised:oe}=analyse$1(t),ie=r.length;return le=>{let ue=oe;for(let de=0;detypeof t=="number"?0:t;function getAnimatableNone$1(t){const r=parse$2(t);return createTransformer(t)(r.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(t){let[r,V]=t.slice(0,-1).split("(");if(r==="drop-shadow")return t;const[oe]=V.match(floatRegex)||[];if(!oe)return t;const ie=V.replace(oe,"");let le=maxDefaults.has(r)?1:0;return oe!==V&&(le*=100),r+"("+le+ie+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:t=>{const r=t.match(functionRegex);return r?r.map(applyDefaultFilter).join(" "):t}});function hueToRgb(t,r,V){return V<0&&(V+=1),V>1&&(V-=1),V<1/6?t+(r-t)*6*V:V<1/2?r:V<2/3?t+(r-t)*(2/3-V)*6:t}function hslaToRgba({hue:t,saturation:r,lightness:V,alpha:oe}){t/=360,r/=100,V/=100;let ie=0,le=0,ue=0;if(!r)ie=le=ue=V;else{const de=V<.5?V*(1+r):V+r-V*r,pe=2*V-de;ie=hueToRgb(pe,de,t+1/3),le=hueToRgb(pe,de,t),ue=hueToRgb(pe,de,t-1/3)}return{red:Math.round(ie*255),green:Math.round(le*255),blue:Math.round(ue*255),alpha:oe}}const mixLinearColor=(t,r,V)=>{const oe=t*t,ie=r*r;return Math.sqrt(Math.max(0,V*(ie-oe)+oe))},colorTypes=[hex,rgba,hsla],getColorType=t=>colorTypes.find(r=>r.test(t)),mixColor=(t,r)=>{let V=getColorType(t),oe=getColorType(r),ie=V.parse(t),le=oe.parse(r);V===hsla&&(ie=hslaToRgba(ie),V=rgba),oe===hsla&&(le=hslaToRgba(le),oe=rgba);const ue=Object.assign({},ie);return de=>{for(const pe in ue)pe!=="alpha"&&(ue[pe]=mixLinearColor(ie[pe],le[pe],de));return ue.alpha=mix(ie.alpha,le.alpha,de),V.transform(ue)}},isNum=t=>typeof t=="number",combineFunctions=(t,r)=>V=>r(t(V)),pipe=(...t)=>t.reduce(combineFunctions);function getMixer(t,r){return isNum(t)?V=>mix(t,r,V):color$1.test(t)?mixColor(t,r):mixComplex(t,r)}const mixArray=(t,r)=>{const V=[...t],oe=V.length,ie=t.map((le,ue)=>getMixer(le,r[ue]));return le=>{for(let ue=0;ue{const V=Object.assign(Object.assign({},t),r),oe={};for(const ie in V)t[ie]!==void 0&&r[ie]!==void 0&&(oe[ie]=getMixer(t[ie],r[ie]));return ie=>{for(const le in oe)V[le]=oe[le](ie);return V}};function analyse(t){const r=complex.parse(t),V=r.length;let oe=0,ie=0,le=0;for(let ue=0;ue{const V=complex.createTransformer(r),oe=analyse(t),ie=analyse(r);return oe.numHSL===ie.numHSL&&oe.numRGB===ie.numRGB&&oe.numNumbers>=ie.numNumbers?pipe(mixArray(oe.parsed,ie.parsed),V):ue=>`${ue>0?r:t}`},mixNumber=(t,r)=>V=>mix(t,r,V);function detectMixerFactory(t){if(typeof t=="number")return mixNumber;if(typeof t=="string")return color$1.test(t)?mixColor:mixComplex;if(Array.isArray(t))return mixArray;if(typeof t=="object")return mixObject}function createMixers(t,r,V){const oe=[],ie=V||detectMixerFactory(t[0]),le=t.length-1;for(let ue=0;ueV(progress(t,r,oe))}function slowInterpolate(t,r){const V=t.length,oe=V-1;return ie=>{let le=0,ue=!1;if(ie<=t[0]?ue=!0:ie>=t[oe]&&(le=oe-1,ue=!0),!ue){let pe=1;for(;peie||pe===oe);pe++);le=pe-1}const de=progress(t[le],t[le+1],ie);return r[le](de)}}function interpolate(t,r,{clamp:V=!0,ease:oe,mixer:ie}={}){const le=t.length;invariant(le===r.length),invariant(!oe||!Array.isArray(oe)||oe.length===le-1),t[0]>t[le-1]&&(t=[].concat(t),r=[].concat(r),t.reverse(),r.reverse());const ue=createMixers(r,oe,ie),de=le===2?fastInterpolate(t,ue):slowInterpolate(t,ue);return V?pe=>de(clamp$2(t[0],t[le-1],pe)):de}const reverseEasing=t=>r=>1-t(1-r),mirrorEasing=t=>r=>r<=.5?t(2*r)/2:(2-t(2*(1-r)))/2,createExpoIn=t=>r=>Math.pow(r,t),createBackIn=t=>r=>r*r*((t+1)*r-t),createAnticipate=t=>{const r=createBackIn(t);return V=>(V*=2)<1?.5*r(V):.5*(2-Math.pow(2,-10*(V-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=t=>t,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=t=>1-Math.sin(Math.acos(t)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=t=>{if(t===1||t===0)return t;const r=t*t;return tt<.5?.5*(1-bounceOut(1-t*2)):.5*bounceOut(t*2-1)+.5;function defaultEasing(t,r){return t.map(()=>r||easeInOut).splice(0,t.length-1)}function defaultOffset(t){const r=t.length;return t.map((V,oe)=>oe!==0?oe/(r-1):0)}function convertOffsetToTimes(t,r){return t.map(V=>V*r)}function keyframes$1({from:t=0,to:r=1,ease:V,offset:oe,duration:ie=300}){const le={done:!1,value:t},ue=Array.isArray(r)?r:[t,r],de=convertOffsetToTimes(oe&&oe.length===ue.length?oe:defaultOffset(ue),ie);function pe(){return interpolate(de,ue,{ease:Array.isArray(V)?V:defaultEasing(ue,V)})}let he=pe();return{next:_e=>(le.value=he(_e),le.done=_e>=ie,le),flipTarget:()=>{ue.reverse(),he=pe()}}}function decay({velocity:t=0,from:r=0,power:V=.8,timeConstant:oe=350,restDelta:ie=.5,modifyTarget:le}){const ue={done:!1,value:r};let de=V*t;const pe=r+de,he=le===void 0?pe:le(pe);return he!==pe&&(de=he-r),{next:_e=>{const $e=-de*Math.exp(-_e/oe);return ue.done=!($e>ie||$e<-ie),ue.value=ue.done?he:he+$e,ue},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions(t){if(Array.isArray(t.to))return keyframes$1;if(types[t.type])return types[t.type];const r=new Set(Object.keys(t));return r.has("ease")||r.has("duration")&&!r.has("dampingRatio")?keyframes$1:r.has("dampingRatio")||r.has("stiffness")||r.has("mass")||r.has("damping")||r.has("restSpeed")||r.has("restDelta")?spring:keyframes$1}function loopElapsed(t,r,V=0){return t-r-V}function reverseElapsed(t,r,V=0,oe=!0){return oe?loopElapsed(r+-t,r,V):r-(t-r)+V}function hasRepeatDelayElapsed(t,r,V,oe){return oe?t>=r+V:t<=-V}const framesync=t=>{const r=({delta:V})=>t(V);return{start:()=>sync.update(r,!0),stop:()=>cancelSync.update(r)}};function animate(t){var r,V,{from:oe,autoplay:ie=!0,driver:le=framesync,elapsed:ue=0,repeat:de=0,repeatType:pe="loop",repeatDelay:he=0,onPlay:_e,onStop:$e,onComplete:Ie,onRepeat:Ve,onUpdate:Fe}=t,Ue=__rest(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:qe}=Ue,Et,At=0,Lt=Ue.duration,hn,_n=!1,vn=!0,bn;const Cn=detectAnimationFromOptions(Ue);!((V=(r=Cn).needsInterpolation)===null||V===void 0)&&V.call(r,oe,qe)&&(bn=interpolate([0,100],[oe,qe],{clamp:!1}),oe=0,qe=100);const Sn=Cn(Object.assign(Object.assign({},Ue),{from:oe,to:qe}));function wn(){At++,pe==="reverse"?(vn=At%2===0,ue=reverseElapsed(ue,Lt,he,vn)):(ue=loopElapsed(ue,Lt,he),pe==="mirror"&&Sn.flipTarget()),_n=!1,Ve&&Ve()}function En(){Et.stop(),Ie&&Ie()}function xn(kn){if(vn||(kn=-kn),ue+=kn,!_n){const Nn=Sn.next(Math.max(0,ue));hn=Nn.value,bn&&(hn=bn(hn)),_n=vn?Nn.done:ue<=0}Fe==null||Fe(hn),_n&&(At===0&&(Lt??(Lt=ue)),At{$e==null||$e(),Et.stop()}}}function velocityPerSecond(t,r){return r?t*(1e3/r):0}function inertia({from:t=0,velocity:r=0,min:V,max:oe,power:ie=.8,timeConstant:le=750,bounceStiffness:ue=500,bounceDamping:de=10,restDelta:pe=1,modifyTarget:he,driver:_e,onUpdate:$e,onComplete:Ie,onStop:Ve}){let Fe;function Ue(Lt){return V!==void 0&&Ltoe}function qe(Lt){return V===void 0?oe:oe===void 0||Math.abs(V-Lt){var _n;$e==null||$e(hn),(_n=Lt.onUpdate)===null||_n===void 0||_n.call(Lt,hn)},onComplete:Ie,onStop:Ve}))}function At(Lt){Et(Object.assign({type:"spring",stiffness:ue,damping:de,restDelta:pe},Lt))}if(Ue(t))At({from:t,velocity:r,to:qe(t)});else{let Lt=ie*r+t;typeof he<"u"&&(Lt=he(Lt));const hn=qe(Lt),_n=hn===V?-1:1;let vn,bn;const Cn=Sn=>{vn=bn,bn=Sn,r=velocityPerSecond(Sn-vn,getFrameData().delta),(_n===1&&Sn>hn||_n===-1&&SnFe==null?void 0:Fe.stop()}}const a=(t,r)=>1-3*r+3*t,b=(t,r)=>3*r-6*t,c$1=t=>3*t,calcBezier=(t,r,V)=>((a(r,V)*t+b(r,V))*t+c$1(r))*t,getSlope=(t,r,V)=>3*a(r,V)*t*t+2*b(r,V)*t+c$1(r),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(t,r,V,oe,ie){let le,ue,de=0;do ue=r+(V-r)/2,le=calcBezier(ue,oe,ie)-t,le>0?V=ue:r=ue;while(Math.abs(le)>subdivisionPrecision&&++de=newtonMinSlope?newtonRaphsonIterate(ue,$e,t,V):Ie===0?$e:binarySubdivide(ue,de,de+kSampleStepSize,t,V)}return ue=>ue===0||ue===1?ue:calcBezier(le(ue),r,oe)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(r){return this.subscriptions.add(r),()=>this.subscriptions.delete(r)}notify(r,V,oe){if(this.subscriptions.size)for(const ie of this.subscriptions)ie(r,V,oe)}clear(){this.subscriptions.clear()}}function isFloat(t){return!isNaN(parseFloat(t))}class MotionValue{constructor(r){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=V=>{this.prev=this.current,this.current=V;const{delta:oe,timestamp:ie}=getFrameData();this.lastUpdated!==ie&&(this.timeDelta=oe,this.lastUpdated=ie),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:V})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),V!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=r,this.canTrackVelocity=isFloat(this.current)}onChange(r){return this.updateSubscribers.add(r)}clearListeners(){this.updateSubscribers.clear()}set(r){this.updateAndNotify(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(r){return this.stop(),new Promise(V=>{const{stop:oe}=r(V);this.stopAnimation=oe}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function getMotionValue(t){return new MotionValue(t)}const{isArray:isArray$2}=Array;function useMotionValues(){const t=ref({}),r=oe=>{const ie=le=>{t.value[le]&&(t.value[le].stop(),t.value[le].destroy(),delete t.value[le])};oe?isArray$2(oe)?oe.forEach(ie):ie(oe):Object.keys(t.value).forEach(ie)},V=(oe,ie,le)=>{if(t.value[oe])return t.value[oe];const ue=getMotionValue(ie);return ue.onChange(de=>le[oe]=de),t.value[oe]=ue,ue};return tryOnUnmounted(r),{motionValues:t,get:V,stop:r}}function isKeyframesTarget(t){return Array.isArray(t)}function underDampedSpring(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function criticallyDampedSpring(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function overDampedSpring(t){return{type:"spring",stiffness:550,damping:t===0?100:30,restDelta:.01,restSpeed:10}}function linearTween(){return{type:"keyframes",ease:"linear",duration:300}}function keyframes(t){return{type:"keyframes",duration:800,values:t}}const defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween};function getDefaultTransition(t,r){let V;return isKeyframesTarget(r)?V=keyframes:V=defaultTransitions[t]||defaultTransitions.default,{to:r,...V(r)}}const int={...number$1,transform:Math.round},valueTypes={color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale:scale$3,scaleX:scale$3,scaleY:scale$3,scaleZ:scale$3,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter:filter$1,WebkitFilter:filter$1,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=t=>valueTypes[t];function getValueAsType(t,r){return r&&typeof t=="number"&&r.transform?r.transform(t):t}function getAnimatableNone(t,r){let V=getValueType(t);return V!==filter$1&&(V=complex),V.getAnimatableNone?V.getAnimatableNone(r):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut};function easingDefinitionToFunction(t){if(Array.isArray(t)){const[r,V,oe,ie]=t;return cubicBezier(r,V,oe,ie)}else if(typeof t=="string")return easingLookup[t];return t}function isEasingArray(t){return Array.isArray(t)&&typeof t[0]!="number"}function isAnimatable(t,r){return t==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&complex.test(r)&&!r.startsWith("url("))}function hydrateKeyframes(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=[...t.to],t.to[0]=t.from),t}function convertTransitionToAnimationOptions({ease:t,times:r,delay:V,...oe}){const ie={...oe};return r&&(ie.offset=r),t&&(ie.ease=isEasingArray(t)?t.map(easingDefinitionToFunction):easingDefinitionToFunction(t)),V&&(ie.elapsed=-V),ie}function getPopmotionAnimationOptions(t,r,V){return Array.isArray(r.to)&&(t.duration||(t.duration=800)),hydrateKeyframes(r),isTransitionDefined(t)||(t={...t,...getDefaultTransition(V,r.to)}),{...r,...convertTransitionToAnimationOptions(t)}}function isTransitionDefined({delay:t,repeat:r,repeatType:V,repeatDelay:oe,from:ie,...le}){return!!Object.keys(le).length}function getValueTransition(t,r){return t[r]||t.default||t}function getAnimation(t,r,V,oe,ie){const le=getValueTransition(oe,t);let ue=le.from===null||le.from===void 0?r.get():le.from;const de=isAnimatable(t,V);ue==="none"&&de&&typeof V=="string"&&(ue=getAnimatableNone(t,V));const pe=isAnimatable(t,ue);function he($e){const Ie={from:ue,to:V,velocity:oe.velocity?oe.velocity:r.getVelocity(),onUpdate:Ve=>r.set(Ve)};return le.type==="inertia"||le.type==="decay"?inertia({...Ie,...le}):animate({...getPopmotionAnimationOptions(le,Ie,t),onUpdate:Ve=>{Ie.onUpdate(Ve),le.onUpdate&&le.onUpdate(Ve)},onComplete:()=>{oe.onComplete&&oe.onComplete(),ie&&ie(),$e&&$e()}})}function _e($e){return r.set(V),oe.onComplete&&oe.onComplete(),ie&&ie(),$e&&$e(),{stop:()=>{}}}return!pe||!de||le.type===!1?_e:he}function useMotionTransitions(){const{motionValues:t,stop:r,get:V}=useMotionValues();return{motionValues:t,stop:r,push:(ie,le,ue,de={},pe)=>{const he=ue[ie],_e=V(ie,he,ue);if(de&&de.immediate){_e.set(le);return}const $e=getAnimation(ie,_e,le,de,pe);_e.start($e)}}}function useMotionControls(t,r={},{motionValues:V,push:oe,stop:ie}=useMotionTransitions()){const le=unref(r),ue=ref(!1);watch(V,$e=>{ue.value=Object.values($e).filter(Ie=>Ie.isAnimating()).length>0},{immediate:!0,deep:!0});const de=$e=>{if(!le||!le[$e])throw new Error(`The variant ${$e} does not exist.`);return le[$e]},pe=$e=>(typeof $e=="string"&&($e=de($e)),Promise.all(Object.entries($e).map(([Ie,Ve])=>{if(Ie!=="transition")return new Promise(Fe=>oe(Ie,Ve,t,$e.transition||getDefaultTransition(Ie,$e[Ie]),Fe))}).filter(Boolean)));return{isAnimating:ue,apply:pe,set:$e=>{const Ie=isObject$7($e)?$e:de($e);Object.entries(Ie).forEach(([Ve,Fe])=>{Ve!=="transition"&&oe(Ve,Fe,t,{immediate:!0})})},leave:async $e=>{let Ie;if(le&&(le.leave&&(Ie=le.leave),!le.leave&&le.initial&&(Ie=le.initial)),!Ie){$e();return}await pe(Ie),$e()},stop:ie}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:t,state:r,variants:V,apply:oe}){const ie=unref(V),le=ref(!1),ue=ref(!1),de=ref(!1),pe=computed(()=>{let _e=[];return ie&&(ie.hovered&&(_e=[..._e,...Object.keys(ie.hovered)]),ie.tapped&&(_e=[..._e,...Object.keys(ie.tapped)]),ie.focused&&(_e=[..._e,...Object.keys(ie.focused)])),_e}),he=computed(()=>{const _e={};Object.assign(_e,r.value),le.value&&ie.hovered&&Object.assign(_e,ie.hovered),ue.value&&ie.tapped&&Object.assign(_e,ie.tapped),de.value&&ie.focused&&Object.assign(_e,ie.focused);for(const $e in _e)pe.value.includes($e)||delete _e[$e];return _e});ie.hovered&&(useEventListener(t,"mouseenter",()=>le.value=!0),useEventListener(t,"mouseleave",()=>{le.value=!1,ue.value=!1}),useEventListener(t,"mouseout",()=>{le.value=!1,ue.value=!1})),ie.tapped&&(supportsMouseEvents()&&(useEventListener(t,"mousedown",()=>ue.value=!0),useEventListener(t,"mouseup",()=>ue.value=!1)),supportsPointerEvents()&&(useEventListener(t,"pointerdown",()=>ue.value=!0),useEventListener(t,"pointerup",()=>ue.value=!1)),supportsTouchEvents()&&(useEventListener(t,"touchstart",()=>ue.value=!0),useEventListener(t,"touchend",()=>ue.value=!1))),ie.focused&&(useEventListener(t,"focus",()=>de.value=!0),useEventListener(t,"blur",()=>de.value=!1)),watch(he,oe)}function registerLifeCycleHooks({set:t,target:r,variants:V,variant:oe}){const ie=unref(V);watch(()=>r,()=>{ie&&(ie.initial&&t("initial"),ie.enter&&(oe.value="enter"))},{immediate:!0,flush:"pre"})}function registerVariantsSync({state:t,apply:r}){watch(t,V=>{V&&r(V)},{immediate:!0})}function registerVisibilityHooks({target:t,variants:r,variant:V}){const oe=unref(r);oe&&(oe.visible||oe.visibleOnce)&&useIntersectionObserver(t,([{isIntersecting:ie}])=>{oe.visible?ie?V.value="visible":V.value="initial":oe.visibleOnce&&(ie&&V.value!=="visibleOnce"?V.value="visibleOnce":V.value||(V.value="initial"))})}function useMotionFeatures(t,r={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){r.lifeCycleHooks&®isterLifeCycleHooks(t),r.syncVariants&®isterVariantsSync(t),r.visibilityHooks&®isterVisibilityHooks(t),r.eventListeners&®isterEventListeners(t)}function reactiveStyle(t={}){const r=reactive({...t}),V=ref({});return watch(r,()=>{const oe={};for(const[ie,le]of Object.entries(r)){const ue=getValueType(ie),de=getValueAsType(le,ue);oe[ie]=de}V.value=oe},{immediate:!0,deep:!0}),{state:r,style:V}}function usePermissiveTarget(t,r){watch(()=>unrefElement(t),V=>{V&&r(V)},{immediate:!0})}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform(t={},r=!0){const V=reactive({...t}),oe=ref("");return watch(V,ie=>{let le="",ue=!1;if(r&&(ie.x||ie.y||ie.z)){const de=[ie.x||0,ie.y||0,ie.z||0].map(px.transform).join(",");le+=`translate3d(${de}) `,ue=!0}for(const[de,pe]of Object.entries(ie)){if(r&&(de==="x"||de==="y"||de==="z"))continue;const he=getValueType(de),_e=getValueAsType(pe,he);le+=`${translateAlias[de]||de}(${_e}) `}r&&!ue&&(le+="translateZ(0px) "),oe.value=le.trim()},{immediate:!0,deep:!0}),{state:V,transform:oe}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach(t=>{transformAxes.forEach(r=>{const V=t+r;transformProps.push(V)})});const transformPropSet=new Set(transformProps);function isTransformProp(t){return transformPropSet.has(t)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp(t){return transformOriginProps.has(t)}function splitValues(t){const r={},V={};return Object.entries(t).forEach(([oe,ie])=>{isTransformProp(oe)||isTransformOriginProp(oe)?r[oe]=ie:V[oe]=ie}),{transform:r,style:V}}function variantToStyle(t){const{transform:r,style:V}=splitValues(t),{transform:oe}=reactiveTransform(r),{style:ie}=reactiveStyle(V);return oe.value&&(ie.value.transform=oe.value),ie.value}function useElementStyle(t,r){let V,oe;const{state:ie,style:le}=reactiveStyle();return usePermissiveTarget(t,ue=>{oe=ue;for(const de of Object.keys(valueTypes))ue.style[de]===null||ue.style[de]===""||isTransformProp(de)||isTransformOriginProp(de)||(ie[de]=ue.style[de]);V&&Object.entries(V).forEach(([de,pe])=>ue.style[de]=pe),r&&r(ie)}),watch(le,ue=>{if(!oe){V=ue;return}for(const de in ue)oe.style[de]=ue[de]},{immediate:!0}),{style:ie}}function parseTransform(t){const r=t.trim().split(/\) |\)/);if(r.length===1)return{};const V=oe=>oe.endsWith("px")||oe.endsWith("deg")?parseFloat(oe):isNaN(Number(oe))?Number(oe):oe;return r.reduce((oe,ie)=>{if(!ie)return oe;const[le,ue]=ie.split("("),pe=ue.split(",").map(_e=>V(_e.endsWith(")")?_e.replace(")",""):_e.trim())),he=pe.length===1?pe[0]:pe;return{...oe,[le]:he}},{})}function stateFromTransform(t,r){Object.entries(parseTransform(r)).forEach(([V,oe])=>{const ie=["x","y","z"];if(V==="translate3d"){if(oe===0){ie.forEach(le=>t[le]=0);return}oe.forEach((le,ue)=>t[ie[ue]]=le);return}if(oe=parseFloat(oe),V==="translateX"){t.x=oe;return}if(V==="translateY"){t.y=oe;return}if(V==="translateZ"){t.z=oe;return}t[V]=oe})}function useElementTransform(t,r){let V,oe;const{state:ie,transform:le}=reactiveTransform();return usePermissiveTarget(t,ue=>{oe=ue,ue.style.transform&&stateFromTransform(ie,ue.style.transform),V&&(ue.style.transform=V),r&&r(ie)}),watch(le,ue=>{if(!oe){V=ue;return}oe.style.transform=ue},{immediate:!0}),{transform:ie}}function useMotionProperties(t,r){const V=reactive({}),oe=ue=>Object.entries(ue).forEach(([de,pe])=>V[de]=pe),{style:ie}=useElementStyle(t,oe),{transform:le}=useElementTransform(t,oe);return watch(V,ue=>{Object.entries(ue).forEach(([de,pe])=>{const he=isTransformProp(de)?le:ie;he[de]&&he[de]===pe||(he[de]=pe)})},{immediate:!0,deep:!0}),usePermissiveTarget(t,()=>r&&oe(r)),{motionProperties:V,style:ie,transform:le}}function useMotionVariants(t={}){const r=unref(t),V=ref();return{state:computed(()=>{if(V.value)return r[V.value]}),variant:V}}function useMotion(t,r={},V){const{motionProperties:oe}=useMotionProperties(t),{variant:ie,state:le}=useMotionVariants(r),ue=useMotionControls(oe,r),de={target:t,variant:ie,variants:r,state:le,motionProperties:oe,...ue};return useMotionFeatures(de,V),de}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"];function resolveVariants(t,r){const V=t.props?t.props:t.data&&t.data.attrs?t.data.attrs:{};V&&(V.variants&&isObject$7(V.variants)&&(r.value={...r.value,...V.variants}),directivePropsKeys.forEach(oe=>{if(oe==="delay"){if(V&&V[oe]&&typeof V[oe]=="number"){const ie=V[oe];r&&r.value&&(r.value.enter&&(r.value.enter.transition||(r.value.enter.transition={}),r.value.enter.transition={delay:ie,...r.value.enter.transition}),r.value.visible&&(r.value.visible.transition||(r.value.visible.transition={}),r.value.visible.transition={delay:ie,...r.value.visible.transition}),r.value.visibleOnce&&(r.value.visibleOnce.transition||(r.value.visibleOnce.transition={}),r.value.visibleOnce.transition={delay:ie,...r.value.visibleOnce.transition}))}return}oe==="visible-once"&&(oe="visibleOnce"),V&&V[oe]&&isObject$7(V[oe])&&(r.value[oe]=V[oe])}))}function directive(t){return{created:(V,oe,ie)=>{const le=oe.value&&typeof oe.value=="string"?oe.value:ie.key;le&&motionState[le]&&motionState[le].stop();const ue=ref(t||{});typeof oe.value=="object"&&(ue.value=oe.value),resolveVariants(ie,ue);const de=useMotion(V,ue);V.motionInstance=de,le&&(motionState[le]=de)},getSSRProps(V,oe){let{initial:ie}=V.value||oe&&(oe==null?void 0:oe.props)||{};ie=unref(ie);const le=defu((t==null?void 0:t.initial)||{},ie||{});return!le||Object.keys(le).length===0?void 0:{style:variantToStyle(le)}}}}const fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop:pop$1,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,rollVisibleRight,rollVisibleTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop,slideVisibleRight,slideVisibleTop},component=defineComponent({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(t){var de;const r=useSlots(),V=reactive({});if(!t.is&&!r.default)return()=>h$2("div",{});const oe=computed(()=>{let pe;return t.preset&&(pe=presets[t.preset]),pe}),ie=computed(()=>({initial:t.initial,enter:t.enter,leave:t.leave,visible:t.visible,visibleOnce:t.visibleOnce,hovered:t.hovered,tapped:t.tapped,focused:t.focused})),le=computed(()=>{const pe={...ie.value,...oe.value||{},...t.variants||{}};return t.delay&&(pe.enter.transition={...pe.enter.transition},pe.enter.transition.delay=parseInt(t.delay)),pe}),ue=computed(()=>{if(!t.is)return;let pe=t.is;return typeof ue.value=="string"&&!isHTMLTag(pe)&&(pe=resolveComponent(pe)),pe});if(((de=process==null?void 0:process.env)==null?void 0:de.NODE_ENV)==="development"||process!=null&&process.dev){const pe=he=>{var _e;(_e=he.variants)!=null&&_e.initial&&he.set("initial"),setTimeout(()=>{var $e,Ie,Ve;($e=he.variants)!=null&&$e.enter&&he.apply("enter"),(Ie=he.variants)!=null&&Ie.visible&&he.apply("visible"),(Ve=he.variants)!=null&&Ve.visibleOnce&&he.apply("visibleOnce")},10)};onUpdated(()=>Object.entries(V).forEach(([he,_e])=>pe(_e)))}return{slots:r,component:ue,motionConfig:le,instances:V}},render({slots:t,motionConfig:r,instances:V,component:oe}){var de;const ie=variantToStyle(r.initial||{}),le=(pe,he)=>(pe.props||(pe.props={}),pe.props.style=ie,pe.props.onVnodeMounted=({el:_e})=>{const $e=useMotion(_e,r);V[he]=$e},pe);if(oe){const pe=h$2(oe,void 0,t);return le(pe,0),pe}return(((de=t.default)==null?void 0:de.call(t))||[]).map((pe,he)=>le(pe,he))}});function slugify(t){const r="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",V="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",oe=new RegExp(r.split("").join("|"),"g");return t.toString().replace(/[A-Z]/g,ie=>`-${ie}`).toLowerCase().replace(/\s+/g,"-").replace(oe,ie=>V.charAt(r.indexOf(ie))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install(t,r){if(t.directive("motion",directive()),t.component("Motion",component),!r||r&&!r.excludePresets)for(const V in presets){const oe=presets[V];t.directive(`motion-${slugify(V)}`,directive(oe))}if(r&&r.directives)for(const V in r.directives){const oe=r.directives[V];!oe.initial&&__DEV__&&console.warn(`Your directive v-motion-${V} is missing initial variant!`),t.directive(`motion-${V}`,directive(oe))}}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var extendStatics=function(t,r){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,oe){V.__proto__=oe}||function(V,oe){for(var ie in oe)Object.prototype.hasOwnProperty.call(oe,ie)&&(V[ie]=oe[ie])},extendStatics(t,r)};function __extends(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");extendStatics(t,r);function V(){this.constructor=t}t.prototype=r===null?Object.create(r):(V.prototype=r.prototype,new V)}var Browser=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Env=function(){function t(){this.browser=new Browser,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?env.worker=!0:typeof navigator>"u"?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(t,r){var V=r.browser,oe=t.match(/Firefox\/([\d.]+)/),ie=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),le=t.match(/Edge?\/([\d.]+)/),ue=/micromessenger/i.test(t);oe&&(V.firefox=!0,V.version=oe[1]),ie&&(V.ie=!0,V.version=ie[1]),le&&(V.edge=!0,V.version=le[1],V.newEdge=+le[1].split(".")[0]>18),ue&&(V.weChat=!0),r.svgSupported=typeof SVGRect<"u",r.touchEventsSupported="ontouchstart"in window&&!V.ie&&!V.edge,r.pointerEventsSupported="onpointerdown"in window&&(V.edge||V.ie&&+V.version>=11),r.domSupported=typeof document<"u";var de=document.documentElement.style;r.transform3dSupported=(V.ie&&"transition"in de||V.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in de)&&!("OTransition"in de),r.transformSupported=r.transform3dSupported||V.ie&&+V.version>=9}const env$1=env;var DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap(t){var r={};if(typeof JSON>"u")return r;for(var V=0;V=0)de=ue*V.length;else for(var pe=0;pe>1)%2;de.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",oe[pe]+":0",ie[he]+":0",oe[1-pe]+":auto",ie[1-he]+":auto",""].join("!important;"),t.appendChild(ue),V.push(ue)}return V}function preparePointerTransformer(t,r,V){for(var oe=V?"invTrans":"trans",ie=r[oe],le=r.srcCoords,ue=[],de=[],pe=!0,he=0;he<4;he++){var _e=t[he].getBoundingClientRect(),$e=2*he,Ie=_e.left,Ve=_e.top;ue.push(Ie,Ve),pe=pe&&le&&Ie===le[$e]&&Ve===le[$e+1],de.push(t[he].offsetLeft,t[he].offsetTop)}return pe&&ie?ie:(r.srcCoords=ue,r[oe]=V?buildTransformer(de,ue):buildTransformer(ue,de))}function isCanvasEl(t){return t.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML(t){return t==null?"":(t+"").replace(replaceReg,function(r,V){return replaceMap[V]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal(t,r,V,oe){return V=V||{},oe?calculateZrXY(t,r,V):firefoxNotSupportOffsetXY&&r.layerX!=null&&r.layerX!==r.offsetX?(V.zrX=r.layerX,V.zrY=r.layerY):r.offsetX!=null?(V.zrX=r.offsetX,V.zrY=r.offsetY):calculateZrXY(t,r,V),V}function calculateZrXY(t,r,V){if(env$1.domSupported&&t.getBoundingClientRect){var oe=r.clientX,ie=r.clientY;if(isCanvasEl(t)){var le=t.getBoundingClientRect();V.zrX=oe-le.left,V.zrY=ie-le.top;return}else if(transformCoordWithViewport(_calcOut,t,oe,ie)){V.zrX=_calcOut[0],V.zrY=_calcOut[1];return}}V.zrX=V.zrY=0}function getNativeEvent(t){return t||window.event}function normalizeEvent(t,r,V){if(r=getNativeEvent(r),r.zrX!=null)return r;var oe=r.type,ie=oe&&oe.indexOf("touch")>=0;if(ie){var ue=oe!=="touchend"?r.targetTouches[0]:r.changedTouches[0];ue&&clientToLocal(t,ue,r,V)}else{clientToLocal(t,r,r,V);var le=getWheelDeltaMayPolyfill(r);r.zrDelta=le?le/120:-(r.detail||0)/3}var de=r.button;return r.which==null&&de!==void 0&&MOUSE_EVENT_REG.test(r.type)&&(r.which=de&1?1:de&2?3:de&4?2:0),r}function getWheelDeltaMayPolyfill(t){var r=t.wheelDelta;if(r)return r;var V=t.deltaX,oe=t.deltaY;if(V==null||oe==null)return r;var ie=Math.abs(oe!==0?oe:V),le=oe>0?-1:oe<0?1:V>0?-1:1;return 3*ie*le}function addEventListener(t,r,V,oe){t.addEventListener(r,V,oe)}function removeEventListener(t,r,V,oe){t.removeEventListener(r,V,oe)}var stop=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown(t){return t.which===2||t.which===3}var GestureMgr=function(){function t(){this._track=[]}return t.prototype.recognize=function(r,V,oe){return this._doTrack(r,V,oe),this._recognize(r)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(r,V,oe){var ie=r.touches;if(ie){for(var le={points:[],touches:[],target:V,event:r},ue=0,de=ie.length;ue1&&oe&&oe.length>1){var le=dist(oe)/dist(ie);!isFinite(le)&&(le=1),r.pinchScale=le;var ue=center(oe);return r.pinchX=ue[0],r.pinchY=ue[1],{type:"pinch",target:t[0].target,event:r}}}}};function create(){return[1,0,0,1,0,0]}function identity(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function copy$1(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t}function mul(t,r,V){var oe=r[0]*V[0]+r[2]*V[1],ie=r[1]*V[0]+r[3]*V[1],le=r[0]*V[2]+r[2]*V[3],ue=r[1]*V[2]+r[3]*V[3],de=r[0]*V[4]+r[2]*V[5]+r[4],pe=r[1]*V[4]+r[3]*V[5]+r[5];return t[0]=oe,t[1]=ie,t[2]=le,t[3]=ue,t[4]=de,t[5]=pe,t}function translate(t,r,V){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4]+V[0],t[5]=r[5]+V[1],t}function rotate(t,r,V){var oe=r[0],ie=r[2],le=r[4],ue=r[1],de=r[3],pe=r[5],he=Math.sin(V),_e=Math.cos(V);return t[0]=oe*_e+ue*he,t[1]=-oe*he+ue*_e,t[2]=ie*_e+de*he,t[3]=-ie*he+_e*de,t[4]=_e*le+he*pe,t[5]=_e*pe-he*le,t}function scale$1(t,r,V){var oe=V[0],ie=V[1];return t[0]=r[0]*oe,t[1]=r[1]*ie,t[2]=r[2]*oe,t[3]=r[3]*ie,t[4]=r[4]*oe,t[5]=r[5]*ie,t}function invert(t,r){var V=r[0],oe=r[2],ie=r[4],le=r[1],ue=r[3],de=r[5],pe=V*ue-le*oe;return pe?(pe=1/pe,t[0]=ue*pe,t[1]=-le*pe,t[2]=-oe*pe,t[3]=V*pe,t[4]=(oe*de-ue*ie)*pe,t[5]=(le*ie-V*de)*pe,t):null}function clone$1(t){var r=create();return copy$1(r,t),r}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy:copy$1,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function t(r,V){this.x=r||0,this.y=V||0}return t.prototype.copy=function(r){return this.x=r.x,this.y=r.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(r,V){return this.x=r,this.y=V,this},t.prototype.equal=function(r){return r.x===this.x&&r.y===this.y},t.prototype.add=function(r){return this.x+=r.x,this.y+=r.y,this},t.prototype.scale=function(r){this.x*=r,this.y*=r},t.prototype.scaleAndAdd=function(r,V){this.x+=r.x*V,this.y+=r.y*V},t.prototype.sub=function(r){return this.x-=r.x,this.y-=r.y,this},t.prototype.dot=function(r){return this.x*r.x+this.y*r.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var r=this.len();return this.x/=r,this.y/=r,this},t.prototype.distance=function(r){var V=this.x-r.x,oe=this.y-r.y;return Math.sqrt(V*V+oe*oe)},t.prototype.distanceSquare=function(r){var V=this.x-r.x,oe=this.y-r.y;return V*V+oe*oe},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(r){if(r){var V=this.x,oe=this.y;return this.x=r[0]*V+r[2]*oe+r[4],this.y=r[1]*V+r[3]*oe+r[5],this}},t.prototype.toArray=function(r){return r[0]=this.x,r[1]=this.y,r},t.prototype.fromArray=function(r){this.x=r[0],this.y=r[1]},t.set=function(r,V,oe){r.x=V,r.y=oe},t.copy=function(r,V){r.x=V.x,r.y=V.y},t.len=function(r){return Math.sqrt(r.x*r.x+r.y*r.y)},t.lenSquare=function(r){return r.x*r.x+r.y*r.y},t.dot=function(r,V){return r.x*V.x+r.y*V.y},t.add=function(r,V,oe){r.x=V.x+oe.x,r.y=V.y+oe.y},t.sub=function(r,V,oe){r.x=V.x-oe.x,r.y=V.y-oe.y},t.scale=function(r,V,oe){r.x=V.x*oe,r.y=V.y*oe},t.scaleAndAdd=function(r,V,oe,ie){r.x=V.x+oe.x*ie,r.y=V.y+oe.y*ie},t.lerp=function(r,V,oe,ie){var le=1-ie;r.x=le*V.x+ie*oe.x,r.y=le*V.y+ie*oe.y},t}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function t(r,V,oe,ie){oe<0&&(r=r+oe,oe=-oe),ie<0&&(V=V+ie,ie=-ie),this.x=r,this.y=V,this.width=oe,this.height=ie}return t.prototype.union=function(r){var V=mathMin$8(r.x,this.x),oe=mathMin$8(r.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(r.x+r.width,this.x+this.width)-V:this.width=r.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(r.y+r.height,this.y+this.height)-oe:this.height=r.height,this.x=V,this.y=oe},t.prototype.applyTransform=function(r){t.applyTransform(this,this,r)},t.prototype.calculateTransform=function(r){var V=this,oe=r.width/V.width,ie=r.height/V.height,le=create();return translate(le,le,[-V.x,-V.y]),scale$1(le,le,[oe,ie]),translate(le,le,[r.x,r.y]),le},t.prototype.intersect=function(r,V){if(!r)return!1;r instanceof t||(r=t.create(r));var oe=this,ie=oe.x,le=oe.x+oe.width,ue=oe.y,de=oe.y+oe.height,pe=r.x,he=r.x+r.width,_e=r.y,$e=r.y+r.height,Ie=!(leFe&&(Fe=Lt,UeFe&&(Fe=hn,Et=oe.x&&r<=oe.x+oe.width&&V>=oe.y&&V<=oe.y+oe.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(r){t.copy(this,r)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(r){return new t(r.x,r.y,r.width,r.height)},t.copy=function(r,V){r.x=V.x,r.y=V.y,r.width=V.width,r.height=V.height},t.applyTransform=function(r,V,oe){if(!oe){r!==V&&t.copy(r,V);return}if(oe[1]<1e-5&&oe[1]>-1e-5&&oe[2]<1e-5&&oe[2]>-1e-5){var ie=oe[0],le=oe[3],ue=oe[4],de=oe[5];r.x=V.x*ie+ue,r.y=V.y*le+de,r.width=V.width*ie,r.height=V.height*le,r.width<0&&(r.x+=r.width,r.width=-r.width),r.height<0&&(r.y+=r.height,r.height=-r.height);return}lt.x=lb.x=V.x,lt.y=rt.y=V.y,rb.x=rt.x=V.x+V.width,rb.y=lb.y=V.y+V.height,lt.transform(oe),rt.transform(oe),rb.transform(oe),lb.transform(oe),r.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),r.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var pe=mathMax$8(lt.x,rb.x,lb.x,rt.x),he=mathMax$8(lt.y,rb.y,lb.y,rt.y);r.width=pe-r.x,r.height=he-r.y},t}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket(t,r,V){return{type:t,event:V,target:r.target,topTarget:r.topTarget,cancelBubble:!1,offsetX:V.zrX,offsetY:V.zrY,gestureEvent:V.gestureEvent,pinchX:V.pinchX,pinchY:V.pinchY,pinchScale:V.pinchScale,wheelDelta:V.zrDelta,zrByTouch:V.zrByTouch,which:V.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.handler=null,V}return r.prototype.dispose=function(){},r.prototype.setCursor=function(){},r}(Eventful$1),HoveredResult=function(){function t(r,V){this.x=r,this.y=V}return t}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function(t){__extends(r,t);function r(V,oe,ie,le,ue){var de=t.call(this)||this;return de._hovered=new HoveredResult(0,0),de.storage=V,de.painter=oe,de.painterRoot=le,de._pointerSize=ue,ie=ie||new EmptyProxy,de.proxy=null,de.setHandlerProxy(ie),de._draggingMgr=new Draggable$1(de),de}return r.prototype.setHandlerProxy=function(V){this.proxy&&this.proxy.dispose(),V&&(each$c(handlerNames,function(oe){V.on&&V.on(oe,this[oe],this)},this),V.handler=this),this.proxy=V},r.prototype.mousemove=function(V){var oe=V.zrX,ie=V.zrY,le=isOutsideBoundary(this,oe,ie),ue=this._hovered,de=ue.target;de&&!de.__zr&&(ue=this.findHover(ue.x,ue.y),de=ue.target);var pe=this._hovered=le?new HoveredResult(oe,ie):this.findHover(oe,ie),he=pe.target,_e=this.proxy;_e.setCursor&&_e.setCursor(he?he.cursor:"default"),de&&he!==de&&this.dispatchToElement(ue,"mouseout",V),this.dispatchToElement(pe,"mousemove",V),he&&he!==de&&this.dispatchToElement(pe,"mouseover",V)},r.prototype.mouseout=function(V){var oe=V.zrEventControl;oe!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",V),oe!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:V})},r.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},r.prototype.dispatch=function(V,oe){var ie=this[V];ie&&ie.call(this,oe)},r.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},r.prototype.setCursorStyle=function(V){var oe=this.proxy;oe.setCursor&&oe.setCursor(V)},r.prototype.dispatchToElement=function(V,oe,ie){V=V||{};var le=V.target;if(!(le&&le.silent)){for(var ue="on"+oe,de=makeEventPacket(oe,V,ie);le&&(le[ue]&&(de.cancelBubble=!!le[ue].call(le,de)),le.trigger(oe,de),le=le.__hostTarget?le.__hostTarget:le.parent,!de.cancelBubble););de.cancelBubble||(this.trigger(oe,de),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(pe){typeof pe[ue]=="function"&&pe[ue].call(pe,de),pe.trigger&&pe.trigger(oe,de)}))}},r.prototype.findHover=function(V,oe,ie){var le=this.storage.getDisplayList(),ue=new HoveredResult(V,oe);if(setHoverTarget(le,ue,V,oe,ie),this._pointerSize&&!ue.target){for(var de=[],pe=this._pointerSize,he=pe/2,_e=new BoundingRect$1(V-he,oe-he,pe,pe),$e=le.length-1;$e>=0;$e--){var Ie=le[$e];Ie!==ie&&!Ie.ignore&&!Ie.ignoreCoarsePointer&&(!Ie.parent||!Ie.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(Ie.getBoundingRect()),Ie.transform&&tmpRect$1.applyTransform(Ie.transform),tmpRect$1.intersect(_e)&&de.push(Ie))}if(de.length)for(var Ve=4,Fe=Math.PI/12,Ue=Math.PI*2,qe=0;qe4)return;this._downPoint=null}this.dispatchToElement(le,t,r)}});function isHover(t,r,V){if(t[t.rectHover?"rectContain":"contain"](r,V)){for(var oe=t,ie=void 0,le=!1;oe;){if(oe.ignoreClip&&(le=!0),!le){var ue=oe.getClipPath();if(ue&&!ue.contain(r,V))return!1;oe.silent&&(ie=!0)}var de=oe.__hostTarget;oe=de||oe.parent}return ie?SILENT:!0}return!1}function setHoverTarget(t,r,V,oe,ie){for(var le=t.length-1;le>=0;le--){var ue=t[le],de=void 0;if(ue!==ie&&!ue.ignore&&(de=isHover(ue,V,oe))&&(!r.topTarget&&(r.topTarget=ue),de!==SILENT)){r.target=ue;break}}}function isOutsideBoundary(t,r,V){var oe=t.painter;return r<0||r>oe.getWidth()||V<0||V>oe.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(t){for(var r=0;t>=DEFAULT_MIN_MERGE;)r|=t&1,t>>=1;return t+r}function makeAscendingRun(t,r,V,oe){var ie=r+1;if(ie===V)return 1;if(oe(t[ie++],t[r])<0){for(;ie=0;)ie++;return ie-r}function reverseRun(t,r,V){for(V--;r>>1,ie(le,t[pe])<0?de=pe:ue=pe+1;var he=oe-ue;switch(he){case 3:t[ue+3]=t[ue+2];case 2:t[ue+2]=t[ue+1];case 1:t[ue+1]=t[ue];break;default:for(;he>0;)t[ue+he]=t[ue+he-1],he--}t[ue]=le}}function gallopLeft(t,r,V,oe,ie,le){var ue=0,de=0,pe=1;if(le(t,r[V+ie])>0){for(de=oe-ie;pe0;)ue=pe,pe=(pe<<1)+1,pe<=0&&(pe=de);pe>de&&(pe=de),ue+=ie,pe+=ie}else{for(de=ie+1;pede&&(pe=de);var he=ue;ue=ie-pe,pe=ie-he}for(ue++;ue>>1);le(t,r[V+_e])>0?ue=_e+1:pe=_e}return pe}function gallopRight(t,r,V,oe,ie,le){var ue=0,de=0,pe=1;if(le(t,r[V+ie])<0){for(de=ie+1;pede&&(pe=de);var he=ue;ue=ie-pe,pe=ie-he}else{for(de=oe-ie;pe=0;)ue=pe,pe=(pe<<1)+1,pe<=0&&(pe=de);pe>de&&(pe=de),ue+=ie,pe+=ie}for(ue++;ue>>1);le(t,r[V+_e])<0?pe=_e:ue=_e+1}return pe}function TimSort(t,r){var V=DEFAULT_MIN_GALLOPING,oe,ie,le=0;t.length;var ue=[];oe=[],ie=[];function de(Ve,Fe){oe[le]=Ve,ie[le]=Fe,le+=1}function pe(){for(;le>1;){var Ve=le-2;if(Ve>=1&&ie[Ve-1]<=ie[Ve]+ie[Ve+1]||Ve>=2&&ie[Ve-2]<=ie[Ve]+ie[Ve-1])ie[Ve-1]ie[Ve+1])break;_e(Ve)}}function he(){for(;le>1;){var Ve=le-2;Ve>0&&ie[Ve-1]=DEFAULT_MIN_GALLOPING||bn>=DEFAULT_MIN_GALLOPING);if(Cn)break;_n<0&&(_n=0),_n+=2}if(V=_n,V<1&&(V=1),Fe===1){for(Et=0;Et=0;Et--)t[vn+Et]=t[_n+Et];t[hn]=ue[Lt];return}for(var bn=V;;){var Cn=0,Sn=0,wn=!1;do if(r(ue[Lt],t[At])<0){if(t[hn--]=t[At--],Cn++,Sn=0,--Fe===0){wn=!0;break}}else if(t[hn--]=ue[Lt--],Sn++,Cn=0,--qe===1){wn=!0;break}while((Cn|Sn)=0;Et--)t[vn+Et]=t[_n+Et];if(Fe===0){wn=!0;break}}if(t[hn--]=ue[Lt--],--qe===1){wn=!0;break}if(Sn=qe-gallopLeft(t[At],ue,0,qe,qe-1,r),Sn!==0){for(hn-=Sn,Lt-=Sn,qe-=Sn,vn=hn+1,_n=Lt+1,Et=0;Et=DEFAULT_MIN_GALLOPING||Sn>=DEFAULT_MIN_GALLOPING);if(wn)break;bn<0&&(bn=0),bn+=2}if(V=bn,V<1&&(V=1),qe===1){for(hn-=Fe,At-=Fe,vn=hn+1,_n=At+1,Et=Fe-1;Et>=0;Et--)t[vn+Et]=t[_n+Et];t[hn]=ue[Lt]}else{if(qe===0)throw new Error;for(_n=hn-(qe-1),Et=0;Etde&&(pe=de),binaryInsertionSort(t,V,V+pe,V+le,r),le=pe}ue.pushRun(V,le),ue.mergeRuns(),ie-=le,V+=le}while(ie!==0);ue.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc(t,r){return t.zlevel===r.zlevel?t.z===r.z?t.z2-r.z2:t.z-r.z:t.zlevel-r.zlevel}var Storage=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return t.prototype.traverse=function(r,V){for(var oe=0;oe0&&(_e.__clipPaths=[]),isNaN(_e.z)&&(logInvalidZError(),_e.z=0),isNaN(_e.z2)&&(logInvalidZError(),_e.z2=0),isNaN(_e.zlevel)&&(logInvalidZError(),_e.zlevel=0),this._displayList[this._displayListLen++]=_e}var $e=r.getDecalElement&&r.getDecalElement();$e&&this._updateAndAddDisplayable($e,V,oe);var Ie=r.getTextGuideLine();Ie&&this._updateAndAddDisplayable(Ie,V,oe);var Ve=r.getTextContent();Ve&&this._updateAndAddDisplayable(Ve,V,oe)}},t.prototype.addRoot=function(r){r.__zr&&r.__zr.storage===this||this._roots.push(r)},t.prototype.delRoot=function(r){if(r instanceof Array){for(var V=0,oe=r.length;V=0&&this._roots.splice(ie,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const Storage$1=Storage;var requestAnimationFrame$1;requestAnimationFrame$1=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const requestAnimationFrame$2=requestAnimationFrame$1;var easingFuncs={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var r,V=.1,oe=.4;return t===0?0:t===1?1:(!V||V<1?(V=1,r=oe/4):r=oe*Math.asin(1/V)/(2*Math.PI),-(V*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/oe)))},elasticOut:function(t){var r,V=.1,oe=.4;return t===0?0:t===1?1:(!V||V<1?(V=1,r=oe/4):r=oe*Math.asin(1/V)/(2*Math.PI),V*Math.pow(2,-10*t)*Math.sin((t-r)*(2*Math.PI)/oe)+1)},elasticInOut:function(t){var r,V=.1,oe=.4;return t===0?0:t===1?1:(!V||V<1?(V=1,r=oe/4):r=oe*Math.asin(1/V)/(2*Math.PI),(t*=2)<1?-.5*(V*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/oe)):V*Math.pow(2,-10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/oe)*.5+1)},backIn:function(t){var r=1.70158;return t*t*((r+1)*t-r)},backOut:function(t){var r=1.70158;return--t*t*((r+1)*t+r)+1},backInOut:function(t){var r=2.5949095;return(t*=2)<1?.5*(t*t*((r+1)*t-r)):.5*((t-=2)*t*((r+1)*t+r)+2)},bounceIn:function(t){return 1-easingFuncs.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?easingFuncs.bounceIn(t*2)*.5:easingFuncs.bounceOut(t*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero(t){return t>-EPSILON$3&&tEPSILON$3||t<-EPSILON$3}function cubicAt(t,r,V,oe,ie){var le=1-ie;return le*le*(le*t+3*ie*r)+ie*ie*(ie*oe+3*le*V)}function cubicDerivativeAt(t,r,V,oe,ie){var le=1-ie;return 3*(((r-t)*le+2*(V-r)*ie)*le+(oe-V)*ie*ie)}function cubicRootAt(t,r,V,oe,ie,le){var ue=oe+3*(r-V)-t,de=3*(V-r*2+t),pe=3*(r-t),he=t-ie,_e=de*de-3*ue*pe,$e=de*pe-9*ue*he,Ie=pe*pe-3*de*he,Ve=0;if(isAroundZero(_e)&&isAroundZero($e))if(isAroundZero(de))le[0]=0;else{var Fe=-pe/de;Fe>=0&&Fe<=1&&(le[Ve++]=Fe)}else{var Ue=$e*$e-4*_e*Ie;if(isAroundZero(Ue)){var qe=$e/_e,Fe=-de/ue+qe,Et=-qe/2;Fe>=0&&Fe<=1&&(le[Ve++]=Fe),Et>=0&&Et<=1&&(le[Ve++]=Et)}else if(Ue>0){var At=mathSqrt$3(Ue),Lt=_e*de+1.5*ue*(-$e+At),hn=_e*de+1.5*ue*(-$e-At);Lt<0?Lt=-mathPow$2(-Lt,ONE_THIRD):Lt=mathPow$2(Lt,ONE_THIRD),hn<0?hn=-mathPow$2(-hn,ONE_THIRD):hn=mathPow$2(hn,ONE_THIRD);var Fe=(-de-(Lt+hn))/(3*ue);Fe>=0&&Fe<=1&&(le[Ve++]=Fe)}else{var _n=(2*_e*de-3*ue*$e)/(2*mathSqrt$3(_e*_e*_e)),vn=Math.acos(_n)/3,bn=mathSqrt$3(_e),Cn=Math.cos(vn),Fe=(-de-2*bn*Cn)/(3*ue),Et=(-de+bn*(Cn+THREE_SQRT*Math.sin(vn)))/(3*ue),Sn=(-de+bn*(Cn-THREE_SQRT*Math.sin(vn)))/(3*ue);Fe>=0&&Fe<=1&&(le[Ve++]=Fe),Et>=0&&Et<=1&&(le[Ve++]=Et),Sn>=0&&Sn<=1&&(le[Ve++]=Sn)}}return Ve}function cubicExtrema(t,r,V,oe,ie){var le=6*V-12*r+6*t,ue=9*r+3*oe-3*t-9*V,de=3*r-3*t,pe=0;if(isAroundZero(ue)){if(isNotAroundZero$1(le)){var he=-de/le;he>=0&&he<=1&&(ie[pe++]=he)}}else{var _e=le*le-4*ue*de;if(isAroundZero(_e))ie[0]=-le/(2*ue);else if(_e>0){var $e=mathSqrt$3(_e),he=(-le+$e)/(2*ue),Ie=(-le-$e)/(2*ue);he>=0&&he<=1&&(ie[pe++]=he),Ie>=0&&Ie<=1&&(ie[pe++]=Ie)}}return pe}function cubicSubdivide(t,r,V,oe,ie,le){var ue=(r-t)*ie+t,de=(V-r)*ie+r,pe=(oe-V)*ie+V,he=(de-ue)*ie+ue,_e=(pe-de)*ie+de,$e=(_e-he)*ie+he;le[0]=t,le[1]=ue,le[2]=he,le[3]=$e,le[4]=$e,le[5]=_e,le[6]=pe,le[7]=oe}function cubicProjectPoint(t,r,V,oe,ie,le,ue,de,pe,he,_e){var $e,Ie=.005,Ve=1/0,Fe,Ue,qe,Et;_v0[0]=pe,_v0[1]=he;for(var At=0;At<1;At+=.05)_v1[0]=cubicAt(t,V,ie,ue,At),_v1[1]=cubicAt(r,oe,le,de,At),qe=distSquare(_v0,_v1),qe=0&&qe=0&&he<=1&&(ie[pe++]=he)}}else{var _e=ue*ue-4*le*de;if(isAroundZero(_e)){var he=-ue/(2*le);he>=0&&he<=1&&(ie[pe++]=he)}else if(_e>0){var $e=mathSqrt$3(_e),he=(-ue+$e)/(2*le),Ie=(-ue-$e)/(2*le);he>=0&&he<=1&&(ie[pe++]=he),Ie>=0&&Ie<=1&&(ie[pe++]=Ie)}}return pe}function quadraticExtremum(t,r,V){var oe=t+V-2*r;return oe===0?.5:(t-r)/oe}function quadraticSubdivide(t,r,V,oe,ie){var le=(r-t)*oe+t,ue=(V-r)*oe+r,de=(ue-le)*oe+le;ie[0]=t,ie[1]=le,ie[2]=de,ie[3]=de,ie[4]=ue,ie[5]=V}function quadraticProjectPoint(t,r,V,oe,ie,le,ue,de,pe){var he,_e=.005,$e=1/0;_v0[0]=ue,_v0[1]=de;for(var Ie=0;Ie<1;Ie+=.05){_v1[0]=quadraticAt(t,V,ie,Ie),_v1[1]=quadraticAt(r,oe,le,Ie);var Ve=distSquare(_v0,_v1);Ve<$e&&(he=Ie,$e=Ve)}$e=1/0;for(var Fe=0;Fe<32&&!(_e=0&&Ve<$e)he=Ue,$e=Ve;else{_v2[0]=quadraticAt(t,V,ie,qe),_v2[1]=quadraticAt(r,oe,le,qe);var Et=distSquare(_v2,_v0);qe<=1&&Et<$e?(he=qe,$e=Et):_e*=.5}}return pe&&(pe[0]=quadraticAt(t,V,ie,he),pe[1]=quadraticAt(r,oe,le,he)),mathSqrt$3($e)}function quadraticLength(t,r,V,oe,ie,le,ue){for(var de=t,pe=r,he=0,_e=1/ue,$e=1;$e<=ue;$e++){var Ie=$e*_e,Ve=quadraticAt(t,V,ie,Ie),Fe=quadraticAt(r,oe,le,Ie),Ue=Ve-de,qe=Fe-pe;he+=Math.sqrt(Ue*Ue+qe*qe),de=Ve,pe=Fe}return he}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(t){var r=t&®exp.exec(t);if(r){var V=r[1].split(","),oe=+trim$1(V[0]),ie=+trim$1(V[1]),le=+trim$1(V[2]),ue=+trim$1(V[3]);if(isNaN(oe+ie+le+ue))return;var de=[];return function(pe){return pe<=0?0:pe>=1?1:cubicRootAt(0,oe,le,1,pe,de)&&cubicAt(0,ie,ue,1,de[0])}}}var Clip=function(){function t(r){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=r.life||1e3,this._delay=r.delay||0,this.loop=r.loop||!1,this.onframe=r.onframe||noop,this.ondestroy=r.ondestroy||noop,this.onrestart=r.onrestart||noop,r.easing&&this.setEasing(r.easing)}return t.prototype.step=function(r,V){if(this._inited||(this._startTime=r+this._delay,this._inited=!0),this._paused){this._pausedTime+=V;return}var oe=this._life,ie=r-this._startTime-this._pausedTime,le=ie/oe;le<0&&(le=0),le=Math.min(le,1);var ue=this.easingFunc,de=ue?ue(le):le;if(this.onframe(de),le===1)if(this.loop){var pe=ie%oe;this._startTime=r-pe,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(r){this.easing=r,this.easingFunc=isFunction(r)?r:easingFuncs$1[r]||createCubicEasingFunc(r)},t}();const Clip$1=Clip;var Entry=function(){function t(r){this.value=r}return t}(),LinkedList=function(){function t(){this._len=0}return t.prototype.insert=function(r){var V=new Entry(r);return this.insertEntry(V),V},t.prototype.insertEntry=function(r){this.head?(this.tail.next=r,r.prev=this.tail,r.next=null,this.tail=r):this.head=this.tail=r,this._len++},t.prototype.remove=function(r){var V=r.prev,oe=r.next;V?V.next=oe:this.head=oe,oe?oe.prev=V:this.tail=V,r.next=r.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),LRU=function(){function t(r){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=r}return t.prototype.put=function(r,V){var oe=this._list,ie=this._map,le=null;if(ie[r]==null){var ue=oe.len(),de=this._lastRemovedEntry;if(ue>=this._maxSize&&ue>0){var pe=oe.head;oe.remove(pe),delete ie[pe.key],le=pe.value,this._lastRemovedEntry=pe}de?de.value=V:de=new Entry(V),de.key=r,oe.insertEntry(de),ie[r]=de}return le},t.prototype.get=function(r){var V=this._map[r],oe=this._list;if(V!=null)return V!==oe.tail&&(oe.remove(V),oe.insertEntry(V)),V.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const LRU$1=LRU;var kCSSColorTable={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function clampCssByte(t){return t=Math.round(t),t<0?0:t>255?255:t}function clampCssAngle(t){return t=Math.round(t),t<0?0:t>360?360:t}function clampCssFloat(t){return t<0?0:t>1?1:t}function parseCssInt(t){var r=t;return r.length&&r.charAt(r.length-1)==="%"?clampCssByte(parseFloat(r)/100*255):clampCssByte(parseInt(r,10))}function parseCssFloat(t){var r=t;return r.length&&r.charAt(r.length-1)==="%"?clampCssFloat(parseFloat(r)/100):clampCssFloat(parseFloat(r))}function cssHueToRgb(t,r,V){return V<0?V+=1:V>1&&(V-=1),V*6<1?t+(r-t)*V*6:V*2<1?r:V*3<2?t+(r-t)*(2/3-V)*6:t}function lerpNumber(t,r,V){return t+(r-t)*V}function setRgba(t,r,V,oe,ie){return t[0]=r,t[1]=V,t[2]=oe,t[3]=ie,t}function copyRgba(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache(t,r){lastRemovedArr&©Rgba(lastRemovedArr,r),lastRemovedArr=colorCache.put(t,lastRemovedArr||r.slice())}function parse$1(t,r){if(t){r=r||[];var V=colorCache.get(t);if(V)return copyRgba(r,V);t=t+"";var oe=t.replace(/ /g,"").toLowerCase();if(oe in kCSSColorTable)return copyRgba(r,kCSSColorTable[oe]),putToCache(t,r),r;var ie=oe.length;if(oe.charAt(0)==="#"){if(ie===4||ie===5){var le=parseInt(oe.slice(1,4),16);if(!(le>=0&&le<=4095)){setRgba(r,0,0,0,1);return}return setRgba(r,(le&3840)>>4|(le&3840)>>8,le&240|(le&240)>>4,le&15|(le&15)<<4,ie===5?parseInt(oe.slice(4),16)/15:1),putToCache(t,r),r}else if(ie===7||ie===9){var le=parseInt(oe.slice(1,7),16);if(!(le>=0&&le<=16777215)){setRgba(r,0,0,0,1);return}return setRgba(r,(le&16711680)>>16,(le&65280)>>8,le&255,ie===9?parseInt(oe.slice(7),16)/255:1),putToCache(t,r),r}return}var ue=oe.indexOf("("),de=oe.indexOf(")");if(ue!==-1&&de+1===ie){var pe=oe.substr(0,ue),he=oe.substr(ue+1,de-(ue+1)).split(","),_e=1;switch(pe){case"rgba":if(he.length!==4)return he.length===3?setRgba(r,+he[0],+he[1],+he[2],1):setRgba(r,0,0,0,1);_e=parseCssFloat(he.pop());case"rgb":if(he.length>=3)return setRgba(r,parseCssInt(he[0]),parseCssInt(he[1]),parseCssInt(he[2]),he.length===3?_e:parseCssFloat(he[3])),putToCache(t,r),r;setRgba(r,0,0,0,1);return;case"hsla":if(he.length!==4){setRgba(r,0,0,0,1);return}return he[3]=parseCssFloat(he[3]),hsla2rgba(he,r),putToCache(t,r),r;case"hsl":if(he.length!==3){setRgba(r,0,0,0,1);return}return hsla2rgba(he,r),putToCache(t,r),r;default:return}}setRgba(r,0,0,0,1)}}function hsla2rgba(t,r){var V=(parseFloat(t[0])%360+360)%360/360,oe=parseCssFloat(t[1]),ie=parseCssFloat(t[2]),le=ie<=.5?ie*(oe+1):ie+oe-ie*oe,ue=ie*2-le;return r=r||[],setRgba(r,clampCssByte(cssHueToRgb(ue,le,V+1/3)*255),clampCssByte(cssHueToRgb(ue,le,V)*255),clampCssByte(cssHueToRgb(ue,le,V-1/3)*255),1),t.length===4&&(r[3]=t[3]),r}function rgba2hsla(t){if(t){var r=t[0]/255,V=t[1]/255,oe=t[2]/255,ie=Math.min(r,V,oe),le=Math.max(r,V,oe),ue=le-ie,de=(le+ie)/2,pe,he;if(ue===0)pe=0,he=0;else{de<.5?he=ue/(le+ie):he=ue/(2-le-ie);var _e=((le-r)/6+ue/2)/ue,$e=((le-V)/6+ue/2)/ue,Ie=((le-oe)/6+ue/2)/ue;r===le?pe=Ie-$e:V===le?pe=1/3+_e-Ie:oe===le&&(pe=2/3+$e-_e),pe<0&&(pe+=1),pe>1&&(pe-=1)}var Ve=[pe*360,he,de];return t[3]!=null&&Ve.push(t[3]),Ve}}function lift(t,r){var V=parse$1(t);if(V){for(var oe=0;oe<3;oe++)r<0?V[oe]=V[oe]*(1-r)|0:V[oe]=(255-V[oe])*r+V[oe]|0,V[oe]>255?V[oe]=255:V[oe]<0&&(V[oe]=0);return stringify(V,V.length===4?"rgba":"rgb")}}function toHex(t){var r=parse$1(t);if(r)return((1<<24)+(r[0]<<16)+(r[1]<<8)+ +r[2]).toString(16).slice(1)}function fastLerp(t,r,V){if(!(!(r&&r.length)||!(t>=0&&t<=1))){V=V||[];var oe=t*(r.length-1),ie=Math.floor(oe),le=Math.ceil(oe),ue=r[ie],de=r[le],pe=oe-ie;return V[0]=clampCssByte(lerpNumber(ue[0],de[0],pe)),V[1]=clampCssByte(lerpNumber(ue[1],de[1],pe)),V[2]=clampCssByte(lerpNumber(ue[2],de[2],pe)),V[3]=clampCssFloat(lerpNumber(ue[3],de[3],pe)),V}}var fastMapToColor=fastLerp;function lerp(t,r,V){if(!(!(r&&r.length)||!(t>=0&&t<=1))){var oe=t*(r.length-1),ie=Math.floor(oe),le=Math.ceil(oe),ue=parse$1(r[ie]),de=parse$1(r[le]),pe=oe-ie,he=stringify([clampCssByte(lerpNumber(ue[0],de[0],pe)),clampCssByte(lerpNumber(ue[1],de[1],pe)),clampCssByte(lerpNumber(ue[2],de[2],pe)),clampCssFloat(lerpNumber(ue[3],de[3],pe))],"rgba");return V?{color:he,leftIndex:ie,rightIndex:le,value:oe}:he}}var mapToColor=lerp;function modifyHSL(t,r,V,oe){var ie=parse$1(t);if(t)return ie=rgba2hsla(ie),r!=null&&(ie[0]=clampCssAngle(r)),V!=null&&(ie[1]=parseCssFloat(V)),oe!=null&&(ie[2]=parseCssFloat(oe)),stringify(hsla2rgba(ie),"rgba")}function modifyAlpha(t,r){var V=parse$1(t);if(V&&r!=null)return V[3]=clampCssFloat(r),stringify(V,"rgba")}function stringify(t,r){if(!(!t||!t.length)){var V=t[0]+","+t[1]+","+t[2];return(r==="rgba"||r==="hsva"||r==="hsla")&&(V+=","+t[3]),r+"("+V+")"}}function lum(t,r){var V=parse$1(t);return V?(.299*V[0]+.587*V[1]+.114*V[2])*V[3]/255+(1-V[3])*r:0}function random(){return stringify([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const color=Object.freeze(Object.defineProperty({__proto__:null,fastLerp,fastMapToColor,lerp,lift,lum,mapToColor,modifyAlpha,modifyHSL,parse:parse$1,random,stringify,toHex},Symbol.toStringTag,{value:"Module"}));function isLinearGradient(t){return t.type==="linear"}function isRadialGradient(t){return t.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1(t,r,V){return(r-t)*V+t}function interpolate1DArray(t,r,V,oe){for(var ie=r.length,le=0;leoe?r:t,le=Math.min(V,oe),ue=ie[le-1]||{color:[0,0,0,0],offset:0},de=le;deue;if(de)oe.length=ue;else for(var pe=le;pe=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(r,V,oe){this._needsSort=!0;var ie=this.keyframes,le=ie.length,ue=!1,de=VALUE_TYPE_UNKOWN,pe=V;if(isArrayLike(V)){var he=guessArrayDim(V);de=he,(he===1&&!isNumber(V[0])||he===2&&!isNumber(V[0][0]))&&(ue=!0)}else if(isNumber(V)&&!eqNaN(V))de=VALUE_TYPE_NUMBER;else if(isString(V))if(!isNaN(+V))de=VALUE_TYPE_NUMBER;else{var _e=parse$1(V);_e&&(pe=_e,de=VALUE_TYPE_COLOR)}else if(isGradientObject(V)){var $e=extend({},pe);$e.colorStops=map$2(V.colorStops,function(Ve){return{offset:Ve.offset,color:parse$1(Ve.color)}}),isLinearGradient(V)?de=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(V)&&(de=VALUE_TYPE_RADIAL_GRADIENT),pe=$e}le===0?this.valType=de:(de!==this.valType||de===VALUE_TYPE_UNKOWN)&&(ue=!0),this.discrete=this.discrete||ue;var Ie={time:r,value:pe,rawValue:V,percent:0};return oe&&(Ie.easing=oe,Ie.easingFunc=isFunction(oe)?oe:easingFuncs$1[oe]||createCubicEasingFunc(oe)),ie.push(Ie),Ie},t.prototype.prepare=function(r,V){var oe=this.keyframes;this._needsSort&&oe.sort(function(Ue,qe){return Ue.time-qe.time});for(var ie=this.valType,le=oe.length,ue=oe[le-1],de=this.discrete,pe=isArrayValueType(ie),he=isGradientValueType(ie),_e=0;_e=0&&!(ue[_e].percent<=V);_e--);_e=Ie(_e,de-2)}else{for(_e=$e;_eV);_e++);_e=Ie(_e-1,de-2)}Fe=ue[_e+1],Ve=ue[_e]}if(Ve&&Fe){this._lastFr=_e,this._lastFrP=V;var qe=Fe.percent-Ve.percent,Et=qe===0?1:Ie((V-Ve.percent)/qe,1);Fe.easingFunc&&(Et=Fe.easingFunc(Et));var At=oe?this._additiveValue:he?tmpRgba:r[pe];if((isArrayValueType(le)||he)&&!At&&(At=this._additiveValue=[]),this.discrete)r[pe]=Et<1?Ve.rawValue:Fe.rawValue;else if(isArrayValueType(le))le===VALUE_TYPE_1D_ARRAY?interpolate1DArray(At,Ve[ie],Fe[ie],Et):interpolate2DArray(At,Ve[ie],Fe[ie],Et);else if(isGradientValueType(le)){var Lt=Ve[ie],hn=Fe[ie],_n=le===VALUE_TYPE_LINEAR_GRADIENT;r[pe]={type:_n?"linear":"radial",x:interpolateNumber$1(Lt.x,hn.x,Et),y:interpolateNumber$1(Lt.y,hn.y,Et),colorStops:map$2(Lt.colorStops,function(bn,Cn){var Sn=hn.colorStops[Cn];return{offset:interpolateNumber$1(bn.offset,Sn.offset,Et),color:rgba2String(interpolate1DArray([],bn.color,Sn.color,Et))}}),global:hn.global},_n?(r[pe].x2=interpolateNumber$1(Lt.x2,hn.x2,Et),r[pe].y2=interpolateNumber$1(Lt.y2,hn.y2,Et)):r[pe].r=interpolateNumber$1(Lt.r,hn.r,Et)}else if(he)interpolate1DArray(At,Ve[ie],Fe[ie],Et),oe||(r[pe]=rgba2String(At));else{var vn=interpolateNumber$1(Ve[ie],Fe[ie],Et);oe?this._additiveValue=vn:r[pe]=vn}oe&&this._addToTarget(r)}}},t.prototype._addToTarget=function(r){var V=this.valType,oe=this.propName,ie=this._additiveValue;V===VALUE_TYPE_NUMBER?r[oe]=r[oe]+ie:V===VALUE_TYPE_COLOR?(parse$1(r[oe],tmpRgba),add1DArray(tmpRgba,tmpRgba,ie,1),r[oe]=rgba2String(tmpRgba)):V===VALUE_TYPE_1D_ARRAY?add1DArray(r[oe],r[oe],ie,1):V===VALUE_TYPE_2D_ARRAY&&add2DArray(r[oe],r[oe],ie,1)},t}(),Animator=function(){function t(r,V,oe,ie){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=r,this._loop=V,V&&ie){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=ie,this._allowDiscrete=oe}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(r){this._target=r},t.prototype.when=function(r,V,oe){return this.whenWithKeys(r,V,keys(V),oe)},t.prototype.whenWithKeys=function(r,V,oe,ie){for(var le=this._tracks,ue=0;ue0&&pe.addKeyframe(0,cloneValue(he),ie),this._trackKeys.push(de)}pe.addKeyframe(r,cloneValue(V[de]),ie)}return this._maxTime=Math.max(this._maxTime,r),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(r){return this._maxTime=r,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var r=this._doneCbs;if(r)for(var V=r.length,oe=0;oe0)){this._started=1;for(var V=this,oe=[],ie=this._maxTime||0,le=0;le1){var de=ue.pop();le.addKeyframe(de.time,r[ie]),le.prepare(this._maxTime,le.getAdditiveTrack())}}}},t}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(t){__extends(r,t);function r(V){var oe=t.call(this)||this;return oe._running=!1,oe._time=0,oe._pausedTime=0,oe._pauseStart=0,oe._paused=!1,V=V||{},oe.stage=V.stage||{},oe}return r.prototype.addClip=function(V){V.animation&&this.removeClip(V),this._head?(this._tail.next=V,V.prev=this._tail,V.next=null,this._tail=V):this._head=this._tail=V,V.animation=this},r.prototype.addAnimator=function(V){V.animation=this;var oe=V.getClip();oe&&this.addClip(oe)},r.prototype.removeClip=function(V){if(V.animation){var oe=V.prev,ie=V.next;oe?oe.next=ie:this._head=ie,ie?ie.prev=oe:this._tail=oe,V.next=V.prev=V.animation=null}},r.prototype.removeAnimator=function(V){var oe=V.getClip();oe&&this.removeClip(oe),V.animation=null},r.prototype.update=function(V){for(var oe=getTime()-this._pausedTime,ie=oe-this._time,le=this._head;le;){var ue=le.next,de=le.step(oe,ie);de&&(le.ondestroy(),this.removeClip(le)),le=ue}this._time=oe,V||(this.trigger("frame",ie),this.stage.update&&this.stage.update())},r.prototype._startLoop=function(){var V=this;this._running=!0;function oe(){V._running&&(requestAnimationFrame$2(oe),!V._paused&&V.update())}requestAnimationFrame$2(oe)},r.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},r.prototype.stop=function(){this._running=!1},r.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},r.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},r.prototype.clear=function(){for(var V=this._head;V;){var oe=V.next;V.prev=V.next=V.animation=null,V=oe}this._head=this._tail=null},r.prototype.isFinished=function(){return this._head==null},r.prototype.animate=function(V,oe){oe=oe||{},this.start();var ie=new Animator$1(V,oe.loop);return this.addAnimator(ie),ie},r}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],r=["touchstart","touchend","touchmove"],V={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},oe=map$2(t,function(ie){var le=ie.replace("mouse","pointer");return V.hasOwnProperty(le)?le:ie});return{mouse:t,touch:r,pointer:oe}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(t){var r=t.pointerType;return r==="pen"||r==="touch"}function setTouchTimer(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function markTouch(t){t&&(t.zrByTouch=!0)}function normalizeGlobalEvent(t,r){return normalizeEvent(t.dom,new FakeGlobalEvent(t,r),!0)}function isLocalEl(t,r){for(var V=r,oe=!1;V&&V.nodeType!==9&&!(oe=V.domBelongToZr||V!==r&&V===t.painterRoot);)V=V.parentNode;return oe}var FakeGlobalEvent=function(){function t(r,V){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=V.type,this.target=this.currentTarget=r.dom,this.pointerType=V.pointerType,this.clientX=V.clientX,this.clientY=V.clientY}return t}(),localDOMHandlers={mousedown:function(t){t=normalizeEvent(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=normalizeEvent(this.dom,t);var r=this.__mayPointerCapture;r&&(t.zrX!==r[0]||t.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=normalizeEvent(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=normalizeEvent(this.dom,t);var r=t.toElement||t.relatedTarget;isLocalEl(this,r)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wheelEventSupported=!0,t=normalizeEvent(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wheelEventSupported||(t=normalizeEvent(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),localDOMHandlers.mousemove.call(this,t),localDOMHandlers.mousedown.call(this,t)},touchmove:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.handler.processGesture(t,"change"),localDOMHandlers.mousemove.call(this,t)},touchend:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.handler.processGesture(t,"end"),localDOMHandlers.mouseup.call(this,t),+new Date-+this.__lastTouchMomentEPSILON$2||t<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function t(){}return t.prototype.getLocalTransform=function(r){return t.getLocalTransform(this,r)},t.prototype.setPosition=function(r){this.x=r[0],this.y=r[1]},t.prototype.setScale=function(r){this.scaleX=r[0],this.scaleY=r[1]},t.prototype.setSkew=function(r){this.skewX=r[0],this.skewY=r[1]},t.prototype.setOrigin=function(r){this.originX=r[0],this.originY=r[1]},t.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},t.prototype.updateTransform=function(){var r=this.parent&&this.parent.transform,V=this.needLocalTransform(),oe=this.transform;if(!(V||r)){oe&&(mIdentity(oe),this.invTransform=null);return}oe=oe||create(),V?this.getLocalTransform(oe):mIdentity(oe),r&&(V?mul(oe,r,oe):copy$1(oe,r)),this.transform=oe,this._resolveGlobalScaleRatio(oe)},t.prototype._resolveGlobalScaleRatio=function(r){var V=this.globalScaleRatio;if(V!=null&&V!==1){this.getGlobalScale(scaleTmp);var oe=scaleTmp[0]<0?-1:1,ie=scaleTmp[1]<0?-1:1,le=((scaleTmp[0]-oe)*V+oe)/scaleTmp[0]||0,ue=((scaleTmp[1]-ie)*V+ie)/scaleTmp[1]||0;r[0]*=le,r[1]*=le,r[2]*=ue,r[3]*=ue}this.invTransform=this.invTransform||create(),invert(this.invTransform,r)},t.prototype.getComputedTransform=function(){for(var r=this,V=[];r;)V.push(r),r=r.parent;for(;r=V.pop();)r.updateTransform();return this.transform},t.prototype.setLocalTransform=function(r){if(r){var V=r[0]*r[0]+r[1]*r[1],oe=r[2]*r[2]+r[3]*r[3],ie=Math.atan2(r[1],r[0]),le=Math.PI/2+ie-Math.atan2(r[3],r[2]);oe=Math.sqrt(oe)*Math.cos(le),V=Math.sqrt(V),this.skewX=le,this.skewY=0,this.rotation=-ie,this.x=+r[4],this.y=+r[5],this.scaleX=V,this.scaleY=oe,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var r=this.parent,V=this.transform;r&&r.transform&&(mul(tmpTransform,r.invTransform,V),V=tmpTransform);var oe=this.originX,ie=this.originY;(oe||ie)&&(originTransform[4]=oe,originTransform[5]=ie,mul(tmpTransform,V,originTransform),tmpTransform[4]-=oe,tmpTransform[5]-=ie,V=tmpTransform),this.setLocalTransform(V)}},t.prototype.getGlobalScale=function(r){var V=this.transform;return r=r||[],V?(r[0]=Math.sqrt(V[0]*V[0]+V[1]*V[1]),r[1]=Math.sqrt(V[2]*V[2]+V[3]*V[3]),V[0]<0&&(r[0]=-r[0]),V[3]<0&&(r[1]=-r[1]),r):(r[0]=1,r[1]=1,r)},t.prototype.transformCoordToLocal=function(r,V){var oe=[r,V],ie=this.invTransform;return ie&&applyTransform$1(oe,oe,ie),oe},t.prototype.transformCoordToGlobal=function(r,V){var oe=[r,V],ie=this.transform;return ie&&applyTransform$1(oe,oe,ie),oe},t.prototype.getLineScale=function(){var r=this.transform;return r&&abs(r[0]-1)>1e-10&&abs(r[3]-1)>1e-10?Math.sqrt(abs(r[0]*r[3]-r[2]*r[1])):1},t.prototype.copyTransform=function(r){copyTransform(this,r)},t.getLocalTransform=function(r,V){V=V||[];var oe=r.originX||0,ie=r.originY||0,le=r.scaleX,ue=r.scaleY,de=r.anchorX,pe=r.anchorY,he=r.rotation||0,_e=r.x,$e=r.y,Ie=r.skewX?Math.tan(r.skewX):0,Ve=r.skewY?Math.tan(-r.skewY):0;if(oe||ie||de||pe){var Fe=oe+de,Ue=ie+pe;V[4]=-Fe*le-Ie*Ue*ue,V[5]=-Ue*ue-Ve*Fe*le}else V[4]=V[5]=0;return V[0]=le,V[3]=ue,V[1]=Ve*le,V[2]=Ie*ue,he&&rotate(V,V,he),V[4]+=oe+_e,V[5]+=ie+$e,V},t.initDefaultProps=function(){var r=t.prototype;r.scaleX=r.scaleY=r.globalScaleRatio=1,r.x=r.y=r.originX=r.originY=r.skewX=r.skewY=r.rotation=r.anchorX=r.anchorY=0}(),t}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(t,r){for(var V=0;V=0?parseFloat(t)/100*r:parseFloat(t):t}function calculateTextPosition(t,r,V){var oe=r.position||"inside",ie=r.distance!=null?r.distance:5,le=V.height,ue=V.width,de=le/2,pe=V.x,he=V.y,_e="left",$e="top";if(oe instanceof Array)pe+=parsePercent$1(oe[0],V.width),he+=parsePercent$1(oe[1],V.height),_e=null,$e=null;else switch(oe){case"left":pe-=ie,he+=de,_e="right",$e="middle";break;case"right":pe+=ie+ue,he+=de,$e="middle";break;case"top":pe+=ue/2,he-=ie,_e="center",$e="bottom";break;case"bottom":pe+=ue/2,he+=le+ie,_e="center";break;case"inside":pe+=ue/2,he+=de,_e="center",$e="middle";break;case"insideLeft":pe+=ie,he+=de,$e="middle";break;case"insideRight":pe+=ue-ie,he+=de,_e="right",$e="middle";break;case"insideTop":pe+=ue/2,he+=ie,_e="center";break;case"insideBottom":pe+=ue/2,he+=le-ie,_e="center",$e="bottom";break;case"insideTopLeft":pe+=ie,he+=ie;break;case"insideTopRight":pe+=ue-ie,he+=ie,_e="right";break;case"insideBottomLeft":pe+=ie,he+=le-ie,$e="bottom";break;case"insideBottomRight":pe+=ue-ie,he+=le-ie,_e="right",$e="bottom";break}return t=t||{},t.x=pe,t.y=he,t.align=_e,t.verticalAlign=$e,t}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(t,r){return t[r]=!0,t},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function t(r){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(r)}return t.prototype._init=function(r){this.attr(r)},t.prototype.drift=function(r,V,oe){switch(this.draggable){case"horizontal":V=0;break;case"vertical":r=0;break}var ie=this.transform;ie||(ie=this.transform=[1,0,0,1,0,0]),ie[4]+=r,ie[5]+=V,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(r){var V=this._textContent;if(V&&(!V.ignore||r)){this.textConfig||(this.textConfig={});var oe=this.textConfig,ie=oe.local,le=V.innerTransformable,ue=void 0,de=void 0,pe=!1;le.parent=ie?this:null;var he=!1;if(le.copyTransform(V),oe.position!=null){var _e=tmpBoundingRect;oe.layoutRect?_e.copy(oe.layoutRect):_e.copy(this.getBoundingRect()),ie||_e.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,oe,_e):calculateTextPosition(tmpTextPosCalcRes,oe,_e),le.x=tmpTextPosCalcRes.x,le.y=tmpTextPosCalcRes.y,ue=tmpTextPosCalcRes.align,de=tmpTextPosCalcRes.verticalAlign;var $e=oe.origin;if($e&&oe.rotation!=null){var Ie=void 0,Ve=void 0;$e==="center"?(Ie=_e.width*.5,Ve=_e.height*.5):(Ie=parsePercent$1($e[0],_e.width),Ve=parsePercent$1($e[1],_e.height)),he=!0,le.originX=-le.x+Ie+(ie?0:_e.x),le.originY=-le.y+Ve+(ie?0:_e.y)}}oe.rotation!=null&&(le.rotation=oe.rotation);var Fe=oe.offset;Fe&&(le.x+=Fe[0],le.y+=Fe[1],he||(le.originX=-Fe[0],le.originY=-Fe[1]));var Ue=oe.inside==null?typeof oe.position=="string"&&oe.position.indexOf("inside")>=0:oe.inside,qe=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),Et=void 0,At=void 0,Lt=void 0;Ue&&this.canBeInsideText()?(Et=oe.insideFill,At=oe.insideStroke,(Et==null||Et==="auto")&&(Et=this.getInsideTextFill()),(At==null||At==="auto")&&(At=this.getInsideTextStroke(Et),Lt=!0)):(Et=oe.outsideFill,At=oe.outsideStroke,(Et==null||Et==="auto")&&(Et=this.getOutsideFill()),(At==null||At==="auto")&&(At=this.getOutsideStroke(Et),Lt=!0)),Et=Et||"#000",(Et!==qe.fill||At!==qe.stroke||Lt!==qe.autoStroke||ue!==qe.align||de!==qe.verticalAlign)&&(pe=!0,qe.fill=Et,qe.stroke=At,qe.autoStroke=Lt,qe.align=ue,qe.verticalAlign=de,V.setDefaultTextStyle(qe)),V.__dirty|=REDRAW_BIT,pe&&V.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(r){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(r){var V=this.__zr&&this.__zr.getBackgroundColor(),oe=typeof V=="string"&&parse$1(V);oe||(oe=[255,255,255,1]);for(var ie=oe[3],le=this.__zr.isDarkMode(),ue=0;ue<3;ue++)oe[ue]=oe[ue]*ie+(le?0:255)*(1-ie);return oe[3]=1,stringify(oe,"rgba")},t.prototype.traverse=function(r,V){},t.prototype.attrKV=function(r,V){r==="textConfig"?this.setTextConfig(V):r==="textContent"?this.setTextContent(V):r==="clipPath"?this.setClipPath(V):r==="extra"?(this.extra=this.extra||{},extend(this.extra,V)):this[r]=V},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(r,V){if(typeof r=="string")this.attrKV(r,V);else if(isObject$3(r))for(var oe=r,ie=keys(oe),le=0;le0},t.prototype.getState=function(r){return this.states[r]},t.prototype.ensureState=function(r){var V=this.states;return V[r]||(V[r]={}),V[r]},t.prototype.clearStates=function(r){this.useState(PRESERVED_NORMAL_STATE,!1,r)},t.prototype.useState=function(r,V,oe,ie){var le=r===PRESERVED_NORMAL_STATE,ue=this.hasState();if(!(!ue&&le)){var de=this.currentStates,pe=this.stateTransition;if(!(indexOf(de,r)>=0&&(V||de.length===1))){var he;if(this.stateProxy&&!le&&(he=this.stateProxy(r)),he||(he=this.states&&this.states[r]),!he&&!le){logError("State "+r+" not exists.");return}le||this.saveCurrentToNormalState(he);var _e=!!(he&&he.hoverLayer||ie);_e&&this._toggleHoverLayerFlag(!0),this._applyStateObj(r,he,this._normalState,V,!oe&&!this.__inHover&&pe&&pe.duration>0,pe);var $e=this._textContent,Ie=this._textGuide;return $e&&$e.useState(r,V,oe,_e),Ie&&Ie.useState(r,V,oe,_e),le?(this.currentStates=[],this._normalState={}):V?this.currentStates.push(r):this.currentStates=[r],this._updateAnimationTargets(),this.markRedraw(),!_e&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),he}}},t.prototype.useStates=function(r,V,oe){if(!r.length)this.clearStates();else{var ie=[],le=this.currentStates,ue=r.length,de=ue===le.length;if(de){for(var pe=0;pe0,Fe);var Ue=this._textContent,qe=this._textGuide;Ue&&Ue.useStates(r,V,Ie),qe&&qe.useStates(r,V,Ie),this._updateAnimationTargets(),this.currentStates=r.slice(),this.markRedraw(),!Ie&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},t.prototype._updateAnimationTargets=function(){for(var r=0;r=0){var oe=this.currentStates.slice();oe.splice(V,1),this.useStates(oe)}},t.prototype.replaceState=function(r,V,oe){var ie=this.currentStates.slice(),le=indexOf(ie,r),ue=indexOf(ie,V)>=0;le>=0?ue?ie.splice(le,1):ie[le]=V:oe&&!ue&&ie.push(V),this.useStates(ie)},t.prototype.toggleState=function(r,V){V?this.useState(r,!0):this.removeState(r)},t.prototype._mergeStates=function(r){for(var V={},oe,ie=0;ie=0&&le.splice(ue,1)}),this.animators.push(r),oe&&oe.animation.addAnimator(r),oe&&oe.wakeUp()},t.prototype.updateDuringAnimation=function(r){this.markRedraw()},t.prototype.stopAnimation=function(r,V){for(var oe=this.animators,ie=oe.length,le=[],ue=0;ue0&&V.during&&le[0].during(function(Fe,Ue){V.during(Ue)});for(var Ie=0;Ie0||ie.force&&!ue.length){var Cn=void 0,Sn=void 0,wn=void 0;if(de){Sn={},Ie&&(Cn={});for(var hn=0;hn=0&&(ie.splice(le,0,V),this._doAdd(V))}return this},r.prototype.replace=function(V,oe){var ie=indexOf(this._children,V);return ie>=0&&this.replaceAt(oe,ie),this},r.prototype.replaceAt=function(V,oe){var ie=this._children,le=ie[oe];if(V&&V!==this&&V.parent!==this&&V!==le){ie[oe]=V,le.parent=null;var ue=this.__zr;ue&&le.removeSelfFromZr(ue),this._doAdd(V)}return this},r.prototype._doAdd=function(V){V.parent&&V.parent.remove(V),V.parent=this;var oe=this.__zr;oe&&oe!==V.__zr&&V.addSelfToZr(oe),oe&&oe.refresh()},r.prototype.remove=function(V){var oe=this.__zr,ie=this._children,le=indexOf(ie,V);return le<0?this:(ie.splice(le,1),V.parent=null,oe&&V.removeSelfFromZr(oe),oe&&oe.refresh(),this)},r.prototype.removeAll=function(){for(var V=this._children,oe=this.__zr,ie=0;ie0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(r){this._sleepAfterStill=r},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(r){r=r||{},this.painter.resize(r.width,r.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(r){this.handler.setCursorStyle(r)},t.prototype.findHover=function(r,V){return this.handler.findHover(r,V)},t.prototype.on=function(r,V,oe){return this.handler.on(r,V,oe),this},t.prototype.off=function(r,V){this.handler.off(r,V)},t.prototype.trigger=function(r,V){this.handler.trigger(r,V)},t.prototype.clear=function(){for(var r=this.storage.getRoots(),V=0;V0){if(t<=ie)return ue;if(t>=le)return de}else{if(t>=ie)return ue;if(t<=le)return de}else{if(t===ie)return ue;if(t===le)return de}return(t-ie)/pe*he+ue}function parsePercent(t,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return isString(t)?_trim(t).match(/%$/)?parseFloat(t)/100*r:parseFloat(t):t==null?NaN:+t}function round$1(t,r,V){return r==null&&(r=10),r=Math.min(Math.max(0,r),ROUND_SUPPORTED_PRECISION_MAX),t=(+t).toFixed(r),V?t:+t}function asc$2(t){return t.sort(function(r,V){return r-V}),t}function getPrecision(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var r=1,V=0;V<15;V++,r*=10)if(Math.round(t*r)/r===t)return V}return getPrecisionSafe(t)}function getPrecisionSafe(t){var r=t.toString().toLowerCase(),V=r.indexOf("e"),oe=V>0?+r.slice(V+1):0,ie=V>0?V:r.length,le=r.indexOf("."),ue=le<0?0:ie-1-le;return Math.max(0,ue-oe)}function getPixelPrecision(t,r){var V=Math.log,oe=Math.LN10,ie=Math.floor(V(t[1]-t[0])/oe),le=Math.round(V(Math.abs(r[1]-r[0]))/oe),ue=Math.min(Math.max(-ie+le,0),20);return isFinite(ue)?ue:20}function getPercentWithPrecision(t,r,V){if(!t[r])return 0;var oe=getPercentSeats(t,V);return oe[r]||0}function getPercentSeats(t,r){var V=reduce(t,function(Ve,Fe){return Ve+(isNaN(Fe)?0:Fe)},0);if(V===0)return[];for(var oe=Math.pow(10,r),ie=map$2(t,function(Ve){return(isNaN(Ve)?0:Ve)/V*oe*100}),le=oe*100,ue=map$2(ie,function(Ve){return Math.floor(Ve)}),de=reduce(ue,function(Ve,Fe){return Ve+Fe},0),pe=map$2(ie,function(Ve,Fe){return Ve-ue[Fe]});dehe&&(he=pe[$e],_e=$e);++ue[_e],pe[_e]=0,++de}return map$2(ue,function(Ve){return Ve/oe})}function addSafe(t,r){var V=Math.max(getPrecision(t),getPrecision(r)),oe=t+r;return V>ROUND_SUPPORTED_PRECISION_MAX?oe:round$1(oe,V)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian(t){var r=Math.PI*2;return(t%r+r)%r}function isRadianAroundZero(t){return t>-RADIAN_EPSILON&&t=10&&r++,r}function nice(t,r){var V=quantityExponent(t),oe=Math.pow(10,V),ie=t/oe,le;return r?ie<1.5?le=1:ie<2.5?le=2:ie<4?le=3:ie<7?le=5:le=10:ie<1?le=1:ie<2?le=2:ie<3?le=3:ie<5?le=5:le=10,t=le*oe,V>=-20?+t.toFixed(V<0?-V:0):t}function quantile(t,r){var V=(t.length-1)*r+1,oe=Math.floor(V),ie=+t[oe-1],le=V-oe;return le?ie+le*(t[oe]-ie):ie}function reformIntervals(t){t.sort(function(pe,he){return de(pe,he,0)?-1:1});for(var r=-1/0,V=1,oe=0;oe=0||le&&indexOf(le,pe)<0)){var he=oe.getShallow(pe,r);he!=null&&(ue[t[de][0]]=he)}}return ue}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function t(){}return t.prototype.getAreaStyle=function(r,V){return getAreaStyle(this,r,V)},t}(),globalImageCache=new LRU$1(50);function findExistImage(t){if(typeof t=="string"){var r=globalImageCache.get(t);return r&&r.image}else return t}function createOrUpdateImage(t,r,V,oe,ie){if(t)if(typeof t=="string"){if(r&&r.__zrImageSrc===t||!V)return r;var le=globalImageCache.get(t),ue={hostEl:V,cb:oe,cbPayload:ie};return le?(r=le.image,!isImageReady(r)&&le.pending.push(ue)):(r=platformApi.loadImage(t,imageOnLoad,imageOnLoad),r.__zrImageSrc=t,globalImageCache.put(t,r.__cachedImgObj={image:r,pending:[ue]})),r}else return t;else return r}function imageOnLoad(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var r=0;r=ue;pe++)de-=ue;var he=getWidth(V,r);return he>de&&(V="",he=0),de=t-he,ie.ellipsis=V,ie.ellipsisWidth=he,ie.contentWidth=de,ie.containerWidth=t,ie}function truncateSingleLine(t,r){var V=r.containerWidth,oe=r.font,ie=r.contentWidth;if(!V)return"";var le=getWidth(t,oe);if(le<=V)return t;for(var ue=0;;ue++){if(le<=ie||ue>=r.maxIterations){t+=r.ellipsis;break}var de=ue===0?estimateLength(t,ie,r.ascCharWidth,r.cnCharWidth):le>0?Math.floor(t.length*ie/le):0;t=t.substr(0,de),le=getWidth(t,oe)}return t===""&&(t=r.placeholder),t}function estimateLength(t,r,V,oe){for(var ie=0,le=0,ue=t.length;leVe&&he){var Fe=Math.floor(Ve/de);$e=$e.slice(0,Fe)}if(t&&le&&_e!=null)for(var Ue=prepareTruncateOptions(_e,ie,r.ellipsis,{minChar:r.truncateMinChar,placeholder:r.placeholder}),qe=0;qe<$e.length;qe++)$e[qe]=truncateSingleLine($e[qe],Ue);for(var Et=Ve,At=0,qe=0;qe<$e.length;qe++)At=Math.max(getWidth($e[qe],ie),At);_e==null&&(_e=At);var Lt=At;return oe&&(Et+=oe[0]+oe[2],Lt+=oe[1]+oe[3],_e+=oe[1]+oe[3]),pe&&(Lt=_e),{lines:$e,height:Ve,outerWidth:Lt,outerHeight:Et,lineHeight:de,calculatedLineHeight:ue,contentWidth:At,contentHeight:Ie,width:_e}}var RichTextToken=function(){function t(){}return t}(),RichTextLine=function(){function t(r){this.tokens=[],r&&(this.tokens=r)}return t}(),RichTextContentBlock=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function parseRichText(t,r){var V=new RichTextContentBlock;if(t!=null&&(t+=""),!t)return V;for(var oe=r.width,ie=r.height,le=r.overflow,ue=(le==="break"||le==="breakAll")&&oe!=null?{width:oe,accumWidth:0,breakAll:le==="breakAll"}:null,de=STYLE_REG.lastIndex=0,pe;(pe=STYLE_REG.exec(t))!=null;){var he=pe.index;he>de&&pushTokens(V,t.substring(de,he),r,ue),pushTokens(V,pe[2],r,ue,pe[1]),de=STYLE_REG.lastIndex}deie){_n>0?(At.tokens=At.tokens.slice(0,_n),qe(At,hn,Lt),V.lines=V.lines.slice(0,Et+1)):V.lines=V.lines.slice(0,Et);break e}var xn=bn.width,Pn=xn==null||xn==="auto";if(typeof xn=="string"&&xn.charAt(xn.length-1)==="%")vn.percentWidth=xn,_e.push(vn),vn.contentWidth=getWidth(vn.text,wn);else{if(Pn){var kn=bn.backgroundColor,Nn=kn&&kn.image;Nn&&(Nn=findExistImage(Nn),isImageReady(Nn)&&(vn.width=Math.max(vn.width,Nn.width*En/Nn.height)))}var Dn=Fe&&oe!=null?oe-hn:null;Dn!=null&&Dn0&&Fe+oe.accumWidth>oe.width&&(_e=r.split(` `),he=!0),oe.accumWidth=Fe}else{var Ue=wrapText(r,pe,oe.width,oe.breakAll,oe.accumWidth);oe.accumWidth=Ue.accumWidth+Ve,$e=Ue.linesWidths,_e=Ue.lines}}else _e=r.split(` `);for(var qe=0;qe<_e.length;qe++){var Et=_e[qe],At=new RichTextToken;if(At.styleName=ie,At.text=Et,At.isLineHolder=!Et&&!le,typeof ue.width=="number"?At.width=ue.width:At.width=$e?$e[qe]:getWidth(Et,pe),!qe&&!he){var Lt=(de[de.length-1]||(de[0]=new RichTextLine)).tokens,hn=Lt.length;hn===1&&Lt[0].isLineHolder?Lt[0]=At:(Et||!hn||le)&&Lt.push(At)}else de.push(new RichTextLine([At]))}}function isAlphabeticLetter(t){var r=t.charCodeAt(0);return r>=32&&r<=591||r>=880&&r<=4351||r>=4608&&r<=5119||r>=7680&&r<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function(t,r){return t[r]=!0,t},{});function isWordBreakChar(t){return isAlphabeticLetter(t)?!!breakCharMap[t]:!0}function wrapText(t,r,V,oe,ie){for(var le=[],ue=[],de="",pe="",he=0,_e=0,$e=0;$eV:ie+_e+Ve>V){_e?(de||pe)&&(Fe?(de||(de=pe,pe="",he=0,_e=he),le.push(de),ue.push(_e-he),pe+=Ie,he+=Ve,de="",_e=he):(pe&&(de+=pe,pe="",he=0),le.push(de),ue.push(_e),de=Ie,_e=Ve)):Fe?(le.push(pe),ue.push(he),pe=Ie,he=Ve):(le.push(Ie),ue.push(Ve));continue}_e+=Ve,Fe?(pe+=Ie,he+=Ve):(pe&&(de+=pe,pe="",he=0),de+=Ie)}return!le.length&&!de&&(de=t,pe="",he=0),pe&&(de+=pe),de&&(le.push(de),ue.push(_e)),le.length===1&&(_e+=ie),{accumWidth:_e,lines:le,linesWidths:ue}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype._init=function(V){for(var oe=keys(V),ie=0;ie1e-4){de[0]=t-V,de[1]=r-oe,pe[0]=t+V,pe[1]=r+oe;return}if(start[0]=mathCos$3(ie)*V+t,start[1]=mathSin$3(ie)*oe+r,end[0]=mathCos$3(le)*V+t,end[1]=mathSin$3(le)*oe+r,he(de,start,end),_e(pe,start,end),ie=ie%PI2$6,ie<0&&(ie=ie+PI2$6),le=le%PI2$6,le<0&&(le=le+PI2$6),ie>le&&!ue?le+=PI2$6:ieie&&(extremity[0]=mathCos$3(Ve)*V+t,extremity[1]=mathSin$3(Ve)*oe+r,he(de,extremity,de),_e(pe,extremity,pe))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$6=Math.min,mathMax$6=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$5=PI$4*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2(t){var r=Math.round(t/PI$4*1e8)/1e8;return r%2*PI$4}function normalizeArcAngles(t,r){var V=modPI2(t[0]);V<0&&(V+=PI2$5);var oe=V-t[0],ie=t[1];ie+=oe,!r&&ie-V>=PI2$5?ie=V+PI2$5:r&&V-ie>=PI2$5?ie=V-PI2$5:!r&&V>ie?ie=V+(PI2$5-modPI2(V-ie)):r&&V0&&(this._ux=mathAbs$1(oe/devicePixelRatio/r)||0,this._uy=mathAbs$1(oe/devicePixelRatio/V)||0)},t.prototype.setDPR=function(r){this.dpr=r},t.prototype.setContext=function(r){this._ctx=r},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(r,V){return this._drawPendingPt(),this.addData(CMD$2.M,r,V),this._ctx&&this._ctx.moveTo(r,V),this._x0=r,this._y0=V,this._xi=r,this._yi=V,this},t.prototype.lineTo=function(r,V){var oe=mathAbs$1(r-this._xi),ie=mathAbs$1(V-this._yi),le=oe>this._ux||ie>this._uy;if(this.addData(CMD$2.L,r,V),this._ctx&&le&&this._ctx.lineTo(r,V),le)this._xi=r,this._yi=V,this._pendingPtDist=0;else{var ue=oe*oe+ie*ie;ue>this._pendingPtDist&&(this._pendingPtX=r,this._pendingPtY=V,this._pendingPtDist=ue)}return this},t.prototype.bezierCurveTo=function(r,V,oe,ie,le,ue){return this._drawPendingPt(),this.addData(CMD$2.C,r,V,oe,ie,le,ue),this._ctx&&this._ctx.bezierCurveTo(r,V,oe,ie,le,ue),this._xi=le,this._yi=ue,this},t.prototype.quadraticCurveTo=function(r,V,oe,ie){return this._drawPendingPt(),this.addData(CMD$2.Q,r,V,oe,ie),this._ctx&&this._ctx.quadraticCurveTo(r,V,oe,ie),this._xi=oe,this._yi=ie,this},t.prototype.arc=function(r,V,oe,ie,le,ue){this._drawPendingPt(),tmpAngles[0]=ie,tmpAngles[1]=le,normalizeArcAngles(tmpAngles,ue),ie=tmpAngles[0],le=tmpAngles[1];var de=le-ie;return this.addData(CMD$2.A,r,V,oe,oe,ie,de,0,ue?0:1),this._ctx&&this._ctx.arc(r,V,oe,ie,le,ue),this._xi=mathCos$2(le)*oe+r,this._yi=mathSin$2(le)*oe+V,this},t.prototype.arcTo=function(r,V,oe,ie,le){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(r,V,oe,ie,le),this},t.prototype.rect=function(r,V,oe,ie){return this._drawPendingPt(),this._ctx&&this._ctx.rect(r,V,oe,ie),this.addData(CMD$2.R,r,V,oe,ie),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var r=this._ctx,V=this._x0,oe=this._y0;return r&&r.closePath(),this._xi=V,this._yi=oe,this},t.prototype.fill=function(r){r&&r.fill(),this.toStatic()},t.prototype.stroke=function(r){r&&r.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(r){var V=r.length;!(this.data&&this.data.length===V)&&hasTypedArray&&(this.data=new Float32Array(V));for(var oe=0;oe_e.length&&(this._expandData(),_e=this.data);for(var $e=0;$e0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var r=[],V=0;V11&&(this.data=new Float32Array(r)))}},t.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var r=this.data,V=0,oe=0,ie=0,le=0,ue;for(ue=0;ueoe||mathAbs$1(Lt)>ie||Ie===V-1)&&(Ue=Math.sqrt(At*At+Lt*Lt),le=qe,ue=Et);break}case CMD$2.C:{var hn=r[Ie++],_n=r[Ie++],qe=r[Ie++],Et=r[Ie++],vn=r[Ie++],bn=r[Ie++];Ue=cubicLength(le,ue,hn,_n,qe,Et,vn,bn,10),le=vn,ue=bn;break}case CMD$2.Q:{var hn=r[Ie++],_n=r[Ie++],qe=r[Ie++],Et=r[Ie++];Ue=quadraticLength(le,ue,hn,_n,qe,Et,10),le=qe,ue=Et;break}case CMD$2.A:var Cn=r[Ie++],Sn=r[Ie++],wn=r[Ie++],En=r[Ie++],xn=r[Ie++],Pn=r[Ie++],kn=Pn+xn;Ie+=1,r[Ie++],Fe&&(de=mathCos$2(xn)*wn+Cn,pe=mathSin$2(xn)*En+Sn),Ue=mathMax$6(wn,En)*mathMin$6(PI2$5,Math.abs(Pn)),le=mathCos$2(kn)*wn+Cn,ue=mathSin$2(kn)*En+Sn;break;case CMD$2.R:{de=le=r[Ie++],pe=ue=r[Ie++];var Nn=r[Ie++],Dn=r[Ie++];Ue=Nn*2+Dn*2;break}case CMD$2.Z:{var At=de-le,Lt=pe-ue;Ue=Math.sqrt(At*At+Lt*Lt),le=de,ue=pe;break}}Ue>=0&&(he[$e++]=Ue,_e+=Ue)}return this._pathLen=_e,_e},t.prototype.rebuildPath=function(r,V){var oe=this.data,ie=this._ux,le=this._uy,ue=this._len,de,pe,he,_e,$e,Ie,Ve=V<1,Fe,Ue,qe=0,Et=0,At,Lt=0,hn,_n;if(!(Ve&&(this._pathSegLen||this._calculateLength(),Fe=this._pathSegLen,Ue=this._pathLen,At=V*Ue,!At)))e:for(var vn=0;vn0&&(r.lineTo(hn,_n),Lt=0),bn){case CMD$2.M:de=he=oe[vn++],pe=_e=oe[vn++],r.moveTo(he,_e);break;case CMD$2.L:{$e=oe[vn++],Ie=oe[vn++];var Sn=mathAbs$1($e-he),wn=mathAbs$1(Ie-_e);if(Sn>ie||wn>le){if(Ve){var En=Fe[Et++];if(qe+En>At){var xn=(At-qe)/En;r.lineTo(he*(1-xn)+$e*xn,_e*(1-xn)+Ie*xn);break e}qe+=En}r.lineTo($e,Ie),he=$e,_e=Ie,Lt=0}else{var Pn=Sn*Sn+wn*wn;Pn>Lt&&(hn=$e,_n=Ie,Lt=Pn)}break}case CMD$2.C:{var kn=oe[vn++],Nn=oe[vn++],Dn=oe[vn++],Mn=oe[vn++],Ln=oe[vn++],An=oe[vn++];if(Ve){var En=Fe[Et++];if(qe+En>At){var xn=(At-qe)/En;cubicSubdivide(he,kn,Dn,Ln,xn,tmpOutX),cubicSubdivide(_e,Nn,Mn,An,xn,tmpOutY),r.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}qe+=En}r.bezierCurveTo(kn,Nn,Dn,Mn,Ln,An),he=Ln,_e=An;break}case CMD$2.Q:{var kn=oe[vn++],Nn=oe[vn++],Dn=oe[vn++],Mn=oe[vn++];if(Ve){var En=Fe[Et++];if(qe+En>At){var xn=(At-qe)/En;quadraticSubdivide(he,kn,Dn,xn,tmpOutX),quadraticSubdivide(_e,Nn,Mn,xn,tmpOutY),r.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}qe+=En}r.quadraticCurveTo(kn,Nn,Dn,Mn),he=Dn,_e=Mn;break}case CMD$2.A:var Vn=oe[vn++],Wn=oe[vn++],Fn=oe[vn++],Yn=oe[vn++],tr=oe[vn++],yr=oe[vn++],Jn=oe[vn++],Kn=!oe[vn++],Gn=Fn>Yn?Fn:Yn,Qn=mathAbs$1(Fn-Yn)>.001,ur=tr+yr,cr=!1;if(Ve){var En=Fe[Et++];qe+En>At&&(ur=tr+yr*(At-qe)/En,cr=!0),qe+=En}if(Qn&&r.ellipse?r.ellipse(Vn,Wn,Fn,Yn,Jn,tr,ur,Kn):r.arc(Vn,Wn,Gn,tr,ur,Kn),cr)break e;Cn&&(de=mathCos$2(tr)*Fn+Vn,pe=mathSin$2(tr)*Yn+Wn),he=mathCos$2(ur)*Fn+Vn,_e=mathSin$2(ur)*Yn+Wn;break;case CMD$2.R:de=he=oe[vn],pe=_e=oe[vn+1],$e=oe[vn++],Ie=oe[vn++];var Un=oe[vn++],qn=oe[vn++];if(Ve){var En=Fe[Et++];if(qe+En>At){var er=At-qe;r.moveTo($e,Ie),r.lineTo($e+mathMin$6(er,Un),Ie),er-=Un,er>0&&r.lineTo($e+Un,Ie+mathMin$6(er,qn)),er-=qn,er>0&&r.lineTo($e+mathMax$6(Un-er,0),Ie+qn),er-=Un,er>0&&r.lineTo($e,Ie+mathMax$6(qn-er,0));break e}qe+=En}r.rect($e,Ie,Un,qn);break;case CMD$2.Z:if(Ve){var En=Fe[Et++];if(qe+En>At){var xn=(At-qe)/En;r.lineTo(he*(1-xn)+de*xn,_e*(1-xn)+pe*xn);break e}qe+=En}r.closePath(),he=de,_e=pe}}},t.prototype.clone=function(){var r=new t,V=this.data;return r.data=V.slice?V.slice():Array.prototype.slice.call(V),r._len=this._len,r},t.CMD=CMD$2,t.initDefaultProps=function(){var r=t.prototype;r._saveData=!0,r._ux=0,r._uy=0,r._pendingPtDist=0,r._version=0}(),t}();const PathProxy$1=PathProxy;function containStroke$4(t,r,V,oe,ie,le,ue){if(ie===0)return!1;var de=ie,pe=0,he=t;if(ue>r+de&&ue>oe+de||uet+de&&le>V+de||ler+$e&&_e>oe+$e&&_e>le+$e&&_e>de+$e||_et+$e&&he>V+$e&&he>ie+$e&&he>ue+$e||her+he&&pe>oe+he&&pe>le+he||pet+he&&de>V+he&&de>ie+he||deV||_e+heie&&(ie+=PI2$3);var Ie=Math.atan2(pe,de);return Ie<0&&(Ie+=PI2$3),Ie>=oe&&Ie<=ie||Ie+PI2$3>=oe&&Ie+PI2$3<=ie}function windingLine(t,r,V,oe,ie,le){if(le>r&&le>oe||leie?de:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1(t,r){return Math.abs(t-r)r&&he>oe&&he>le&&he>de||he1&&swapExtrema(),Ve=cubicAt(r,oe,le,de,extrema[0]),Ie>1&&(Fe=cubicAt(r,oe,le,de,extrema[1]))),Ie===2?qer&&de>oe&&de>le||de=0&&he<=1){for(var _e=0,$e=quadraticAt(r,oe,le,he),Ie=0;IeV||de<-V)return 0;var pe=Math.sqrt(V*V-de*de);roots[0]=-pe,roots[1]=pe;var he=Math.abs(oe-ie);if(he<1e-4)return 0;if(he>=PI2$2-1e-4){oe=0,ie=PI2$2;var _e=le?1:-1;return ue>=roots[0]+t&&ue<=roots[1]+t?_e:0}if(oe>ie){var $e=oe;oe=ie,ie=$e}oe<0&&(oe+=PI2$2,ie+=PI2$2);for(var Ie=0,Ve=0;Ve<2;Ve++){var Fe=roots[Ve];if(Fe+t>ue){var Ue=Math.atan2(de,Fe),_e=le?1:-1;Ue<0&&(Ue=PI2$2+Ue),(Ue>=oe&&Ue<=ie||Ue+PI2$2>=oe&&Ue+PI2$2<=ie)&&(Ue>Math.PI/2&&Ue1&&(V||(de+=windingLine(pe,he,_e,$e,oe,ie))),qe&&(pe=le[Fe],he=le[Fe+1],_e=pe,$e=he),Ue){case CMD$1.M:_e=le[Fe++],$e=le[Fe++],pe=_e,he=$e;break;case CMD$1.L:if(V){if(containStroke$4(pe,he,le[Fe],le[Fe+1],r,oe,ie))return!0}else de+=windingLine(pe,he,le[Fe],le[Fe+1],oe,ie)||0;pe=le[Fe++],he=le[Fe++];break;case CMD$1.C:if(V){if(containStroke$3(pe,he,le[Fe++],le[Fe++],le[Fe++],le[Fe++],le[Fe],le[Fe+1],r,oe,ie))return!0}else de+=windingCubic(pe,he,le[Fe++],le[Fe++],le[Fe++],le[Fe++],le[Fe],le[Fe+1],oe,ie)||0;pe=le[Fe++],he=le[Fe++];break;case CMD$1.Q:if(V){if(containStroke$2(pe,he,le[Fe++],le[Fe++],le[Fe],le[Fe+1],r,oe,ie))return!0}else de+=windingQuadratic(pe,he,le[Fe++],le[Fe++],le[Fe],le[Fe+1],oe,ie)||0;pe=le[Fe++],he=le[Fe++];break;case CMD$1.A:var Et=le[Fe++],At=le[Fe++],Lt=le[Fe++],hn=le[Fe++],_n=le[Fe++],vn=le[Fe++];Fe+=1;var bn=!!(1-le[Fe++]);Ie=Math.cos(_n)*Lt+Et,Ve=Math.sin(_n)*hn+At,qe?(_e=Ie,$e=Ve):de+=windingLine(pe,he,Ie,Ve,oe,ie);var Cn=(oe-Et)*hn/Lt+Et;if(V){if(containStroke$1(Et,At,hn,_n,_n+vn,bn,r,Cn,ie))return!0}else de+=windingArc(Et,At,hn,_n,_n+vn,bn,Cn,ie);pe=Math.cos(_n+vn)*Lt+Et,he=Math.sin(_n+vn)*hn+At;break;case CMD$1.R:_e=pe=le[Fe++],$e=he=le[Fe++];var Sn=le[Fe++],wn=le[Fe++];if(Ie=_e+Sn,Ve=$e+wn,V){if(containStroke$4(_e,$e,Ie,$e,r,oe,ie)||containStroke$4(Ie,$e,Ie,Ve,r,oe,ie)||containStroke$4(Ie,Ve,_e,Ve,r,oe,ie)||containStroke$4(_e,Ve,_e,$e,r,oe,ie))return!0}else de+=windingLine(Ie,$e,Ie,Ve,oe,ie),de+=windingLine(_e,Ve,_e,$e,oe,ie);break;case CMD$1.Z:if(V){if(containStroke$4(pe,he,_e,$e,r,oe,ie))return!0}else de+=windingLine(pe,he,_e,$e,oe,ie);pe=_e,he=$e;break}}return!V&&!isAroundEqual$1(he,$e)&&(de+=windingLine(pe,he,_e,$e,oe,ie)||0),de!==0}function contain$2(t,r,V){return containPath(t,0,!1,r,V)}function containStroke(t,r,V,oe){return containPath(t,r,!0,V,oe)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.update=function(){var V=this;t.prototype.update.call(this);var oe=this.style;if(oe.decal){var ie=this._decalEl=this._decalEl||new r;ie.buildPath===r.prototype.buildPath&&(ie.buildPath=function(pe){V.buildPath(pe,V.shape)}),ie.silent=!0;var le=ie.style;for(var ue in oe)le[ue]!==oe[ue]&&(le[ue]=oe[ue]);le.fill=oe.fill?oe.decal:null,le.decal=null,le.shadowColor=null,oe.strokeFirst&&(le.stroke=null);for(var de=0;de.5?DARK_LABEL_COLOR:oe>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(V)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},r.prototype.getInsideTextStroke=function(V){var oe=this.style.fill;if(isString(oe)){var ie=this.__zr,le=!!(ie&&ie.isDarkMode()),ue=lum(V,0)0))},r.prototype.hasFill=function(){var V=this.style,oe=V.fill;return oe!=null&&oe!=="none"},r.prototype.getBoundingRect=function(){var V=this._rect,oe=this.style,ie=!V;if(ie){var le=!1;this.path||(le=!0,this.createPathProxy());var ue=this.path;(le||this.__dirty&SHAPE_CHANGED_BIT)&&(ue.beginPath(),this.buildPath(ue,this.shape,!1),this.pathUpdated()),V=ue.getBoundingRect()}if(this._rect=V,this.hasStroke()&&this.path&&this.path.len()>0){var de=this._rectStroke||(this._rectStroke=V.clone());if(this.__dirty||ie){de.copy(V);var pe=oe.strokeNoScale?this.getLineScale():1,he=oe.lineWidth;if(!this.hasFill()){var _e=this.strokeContainThreshold;he=Math.max(he,_e??4)}pe>1e-10&&(de.width+=he/pe,de.height+=he/pe,de.x-=he/pe/2,de.y-=he/pe/2)}return de}return V},r.prototype.contain=function(V,oe){var ie=this.transformCoordToLocal(V,oe),le=this.getBoundingRect(),ue=this.style;if(V=ie[0],oe=ie[1],le.contain(V,oe)){var de=this.path;if(this.hasStroke()){var pe=ue.lineWidth,he=ue.strokeNoScale?this.getLineScale():1;if(he>1e-10&&(this.hasFill()||(pe=Math.max(pe,this.strokeContainThreshold)),containStroke(de,pe/he,V,oe)))return!0}if(this.hasFill())return contain$2(de,V,oe)}return!1},r.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},r.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},r.prototype.animateShape=function(V){return this.animate("shape",V)},r.prototype.updateDuringAnimation=function(V){V==="style"?this.dirtyStyle():V==="shape"?this.dirtyShape():this.markRedraw()},r.prototype.attrKV=function(V,oe){V==="shape"?this.setShape(oe):t.prototype.attrKV.call(this,V,oe)},r.prototype.setShape=function(V,oe){var ie=this.shape;return ie||(ie=this.shape={}),typeof V=="string"?ie[V]=oe:extend(ie,V),this.dirtyShape(),this},r.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},r.prototype.createStyle=function(V){return createObject(DEFAULT_PATH_STYLE,V)},r.prototype._innerSaveToNormal=function(V){t.prototype._innerSaveToNormal.call(this,V);var oe=this._normalState;V.shape&&!oe.shape&&(oe.shape=extend({},this.shape))},r.prototype._applyStateObj=function(V,oe,ie,le,ue,de){t.prototype._applyStateObj.call(this,V,oe,ie,le,ue,de);var pe=!(oe&&le),he;if(oe&&oe.shape?ue?le?he=oe.shape:(he=extend({},ie.shape),extend(he,oe.shape)):(he=extend({},le?this.shape:ie.shape),extend(he,oe.shape)):pe&&(he=ie.shape),he)if(ue){this.shape=extend({},this.shape);for(var _e={},$e=keys(he),Ie=0;Ie<$e.length;Ie++){var Ve=$e[Ie];typeof he[Ve]=="object"?this.shape[Ve]=he[Ve]:_e[Ve]=he[Ve]}this._transitionState(V,{shape:_e},de)}else this.shape=he,this.dirtyShape()},r.prototype._mergeStates=function(V){for(var oe=t.prototype._mergeStates.call(this,V),ie,le=0;le0},r.prototype.hasFill=function(){var V=this.style,oe=V.fill;return oe!=null&&oe!=="none"},r.prototype.createStyle=function(V){return createObject(DEFAULT_TSPAN_STYLE,V)},r.prototype.setBoundingRect=function(V){this._rect=V},r.prototype.getBoundingRect=function(){var V=this.style;if(!this._rect){var oe=V.text;oe!=null?oe+="":oe="";var ie=getBoundingRect(oe,V.font,V.textAlign,V.textBaseline);if(ie.x+=V.x||0,ie.y+=V.y||0,this.hasStroke()){var le=V.lineWidth;ie.x-=le/2,ie.y-=le/2,ie.width+=le,ie.height+=le}this._rect=ie}return this._rect},r.initDefaultProps=function(){var V=r.prototype;V.dirtyRectTolerance=10}(),r}(Displayable$1);TSpan.prototype.type="tspan";const TSpan$1=TSpan;var DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var ZRImage=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.createStyle=function(V){return createObject(DEFAULT_IMAGE_STYLE,V)},r.prototype._getSize=function(V){var oe=this.style,ie=oe[V];if(ie!=null)return ie;var le=isImageLike(oe.image)?oe.image:this.__image;if(!le)return 0;var ue=V==="width"?"height":"width",de=oe[ue];return de==null?le[V]:le[V]/le[ue]*de},r.prototype.getWidth=function(){return this._getSize("width")},r.prototype.getHeight=function(){return this._getSize("height")},r.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},r.prototype.getBoundingRect=function(){var V=this.style;return this._rect||(this._rect=new BoundingRect$1(V.x||0,V.y||0,this.getWidth(),this.getHeight())),this._rect},r}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2(t,r){var V=r.x,oe=r.y,ie=r.width,le=r.height,ue=r.r,de,pe,he,_e;ie<0&&(V=V+ie,ie=-ie),le<0&&(oe=oe+le,le=-le),typeof ue=="number"?de=pe=he=_e=ue:ue instanceof Array?ue.length===1?de=pe=he=_e=ue[0]:ue.length===2?(de=he=ue[0],pe=_e=ue[1]):ue.length===3?(de=ue[0],pe=_e=ue[1],he=ue[2]):(de=ue[0],pe=ue[1],he=ue[2],_e=ue[3]):de=pe=he=_e=0;var $e;de+pe>ie&&($e=de+pe,de*=ie/$e,pe*=ie/$e),he+_e>ie&&($e=he+_e,he*=ie/$e,_e*=ie/$e),pe+he>le&&($e=pe+he,pe*=le/$e,he*=le/$e),de+_e>le&&($e=de+_e,de*=le/$e,_e*=le/$e),t.moveTo(V+de,oe),t.lineTo(V+ie-pe,oe),pe!==0&&t.arc(V+ie-pe,oe+pe,pe,-Math.PI/2,0),t.lineTo(V+ie,oe+le-he),he!==0&&t.arc(V+ie-he,oe+le-he,he,0,Math.PI/2),t.lineTo(V+_e,oe+le),_e!==0&&t.arc(V+_e,oe+le-_e,_e,Math.PI/2,Math.PI),t.lineTo(V,oe+de),de!==0&&t.arc(V+de,oe+de,de,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1(t,r,V){if(r){var oe=r.x1,ie=r.x2,le=r.y1,ue=r.y2;t.x1=oe,t.x2=ie,t.y1=le,t.y2=ue;var de=V&&V.lineWidth;return de&&(round(oe*2)===round(ie*2)&&(t.x1=t.x2=subPixelOptimize$1(oe,de,!0)),round(le*2)===round(ue*2)&&(t.y1=t.y2=subPixelOptimize$1(le,de,!0))),t}}function subPixelOptimizeRect$1(t,r,V){if(r){var oe=r.x,ie=r.y,le=r.width,ue=r.height;t.x=oe,t.y=ie,t.width=le,t.height=ue;var de=V&&V.lineWidth;return de&&(t.x=subPixelOptimize$1(oe,de,!0),t.y=subPixelOptimize$1(ie,de,!0),t.width=Math.max(subPixelOptimize$1(oe+le,de,!1)-t.x,le===0?0:1),t.height=Math.max(subPixelOptimize$1(ie+ue,de,!1)-t.y,ue===0?0:1)),t}}function subPixelOptimize$1(t,r,V){if(!r)return t;var oe=round(t*2);return(oe+round(r))%2===0?oe/2:(oe+(V?1:-1))/2}var RectShape=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),subPixelOptimizeOutputShape$1={},Rect$1=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.getDefaultShape=function(){return new RectShape},r.prototype.buildPath=function(V,oe){var ie,le,ue,de;if(this.subPixelOptimize){var pe=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,oe,this.style);ie=pe.x,le=pe.y,ue=pe.width,de=pe.height,pe.r=oe.r,oe=pe}else ie=oe.x,le=oe.y,ue=oe.width,de=oe.height;oe.r?buildPath$2(V,oe):V.rect(ie,le,ue,de)},r.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},r}(Path$1);Rect$1.prototype.type="rect";const Rect$2=Rect$1;var DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function(t){__extends(r,t);function r(V){var oe=t.call(this)||this;return oe.type="text",oe._children=[],oe._defaultStyle=DEFAULT_RICH_TEXT_COLOR,oe.attr(V),oe}return r.prototype.childrenRef=function(){return this._children},r.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var V=0;V0,xn=V.width!=null&&(V.overflow==="truncate"||V.overflow==="break"||V.overflow==="breakAll"),Pn=ue.calculatedLineHeight,kn=0;kn=0&&(kn=vn[Pn],kn.align==="right");)this._placeToken(kn,V,Cn,Et,xn,"right",Lt),Sn-=kn.width,xn-=kn.width,Pn--;for(En+=(le-(En-qe)-(At-xn)-Sn)/2;wn<=Pn;)kn=vn[wn],this._placeToken(kn,V,Cn,Et,En+kn.width/2,"center",Lt),En+=kn.width,wn++;Et+=Cn}},r.prototype._placeToken=function(V,oe,ie,le,ue,de,pe){var he=oe.rich[V.styleName]||{};he.text=V.text;var _e=V.verticalAlign,$e=le+ie/2;_e==="top"?$e=le+V.height/2:_e==="bottom"&&($e=le+ie-V.height/2);var Ie=!V.isLineHolder&&needDrawBackground(he);Ie&&this._renderBackground(he,oe,de==="right"?ue-V.width:de==="center"?ue-V.width/2:ue,$e-V.height/2,V.width,V.height);var Ve=!!he.backgroundColor,Fe=V.textPadding;Fe&&(ue=getTextXForPadding(ue,de,Fe),$e-=V.height/2-Fe[0]-V.innerHeight/2);var Ue=this._getOrCreateChild(TSpan$1),qe=Ue.createStyle();Ue.useStyle(qe);var Et=this._defaultStyle,At=!1,Lt=0,hn=getFill("fill"in he?he.fill:"fill"in oe?oe.fill:(At=!0,Et.fill)),_n=getStroke("stroke"in he?he.stroke:"stroke"in oe?oe.stroke:!Ve&&!pe&&(!Et.autoStroke||At)?(Lt=DEFAULT_STROKE_LINE_WIDTH,Et.stroke):null),vn=he.textShadowBlur>0||oe.textShadowBlur>0;qe.text=V.text,qe.x=ue,qe.y=$e,vn&&(qe.shadowBlur=he.textShadowBlur||oe.textShadowBlur||0,qe.shadowColor=he.textShadowColor||oe.textShadowColor||"transparent",qe.shadowOffsetX=he.textShadowOffsetX||oe.textShadowOffsetX||0,qe.shadowOffsetY=he.textShadowOffsetY||oe.textShadowOffsetY||0),qe.textAlign=de,qe.textBaseline="middle",qe.font=V.font||DEFAULT_FONT,qe.opacity=retrieve3(he.opacity,oe.opacity,1),setSeparateFont(qe,he),_n&&(qe.lineWidth=retrieve3(he.lineWidth,oe.lineWidth,Lt),qe.lineDash=retrieve2(he.lineDash,oe.lineDash),qe.lineDashOffset=oe.lineDashOffset||0,qe.stroke=_n),hn&&(qe.fill=hn);var bn=V.contentWidth,Cn=V.contentHeight;Ue.setBoundingRect(new BoundingRect$1(adjustTextX(qe.x,bn,qe.textAlign),adjustTextY(qe.y,Cn,qe.textBaseline),bn,Cn))},r.prototype._renderBackground=function(V,oe,ie,le,ue,de){var pe=V.backgroundColor,he=V.borderWidth,_e=V.borderColor,$e=pe&&pe.image,Ie=pe&&!$e,Ve=V.borderRadius,Fe=this,Ue,qe;if(Ie||V.lineHeight||he&&_e){Ue=this._getOrCreateChild(Rect$2),Ue.useStyle(Ue.createStyle()),Ue.style.fill=null;var Et=Ue.shape;Et.x=ie,Et.y=le,Et.width=ue,Et.height=de,Et.r=Ve,Ue.dirtyShape()}if(Ie){var At=Ue.style;At.fill=pe||null,At.fillOpacity=retrieve2(V.fillOpacity,1)}else if($e){qe=this._getOrCreateChild(ZRImage$1),qe.onload=function(){Fe.dirtyStyle()};var Lt=qe.style;Lt.image=pe.image,Lt.x=ie,Lt.y=le,Lt.width=ue,Lt.height=de}if(he&&_e){var At=Ue.style;At.lineWidth=he,At.stroke=_e,At.strokeOpacity=retrieve2(V.strokeOpacity,1),At.lineDash=V.borderDash,At.lineDashOffset=V.borderDashOffset||0,Ue.strokeContainThreshold=0,Ue.hasFill()&&Ue.hasStroke()&&(At.strokeFirst=!0,At.lineWidth*=2)}var hn=(Ue||qe).style;hn.shadowBlur=V.shadowBlur||0,hn.shadowColor=V.shadowColor||"transparent",hn.shadowOffsetX=V.shadowOffsetX||0,hn.shadowOffsetY=V.shadowOffsetY||0,hn.opacity=retrieve3(V.opacity,oe.opacity,1)},r.makeFont=function(V){var oe="";return hasSeparateFont(V)&&(oe=[V.fontStyle,V.fontWeight,parseFontSize(V.fontSize),V.fontFamily||"sans-serif"].join(" ")),oe&&trim$1(oe)||V.textFont||V.font},r}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?DEFAULT_FONT_SIZE+"px":t+"px"}function setSeparateFont(t,r){for(var V=0;V=0,le=!1;if(t instanceof Path$1){var ue=getSavedStates(t),de=ie&&ue.selectFill||ue.normalFill,pe=ie&&ue.selectStroke||ue.normalStroke;if(hasFillOrStroke(de)||hasFillOrStroke(pe)){oe=oe||{};var he=oe.style||{};he.fill==="inherit"?(le=!0,oe=extend({},oe),he=extend({},he),he.fill=de):!hasFillOrStroke(he.fill)&&hasFillOrStroke(de)?(le=!0,oe=extend({},oe),he=extend({},he),he.fill=liftColor(de)):!hasFillOrStroke(he.stroke)&&hasFillOrStroke(pe)&&(le||(oe=extend({},oe),he=extend({},he)),he.stroke=liftColor(pe)),oe.style=he}}if(oe&&oe.z2==null){le||(oe=extend({},oe));var _e=t.z2EmphasisLift;oe.z2=t.z2+(_e??Z2_EMPHASIS_LIFT)}return oe}function createSelectDefaultState(t,r,V){if(V&&V.z2==null){V=extend({},V);var oe=t.z2SelectLift;V.z2=t.z2+(oe??Z2_SELECT_LIFT)}return V}function createBlurDefaultState(t,r,V){var oe=indexOf(t.currentStates,r)>=0,ie=t.style.opacity,le=oe?null:getFromStateStyle(t,["opacity"],r,{opacity:1});V=V||{};var ue=V.style||{};return ue.opacity==null&&(V=extend({},V),ue=extend({opacity:oe?ie:le.opacity*.1},ue),V.style=ue),V}function elementStateProxy(t,r){var V=this.states[t];if(this.style){if(t==="emphasis")return createEmphasisDefaultState(this,t,r,V);if(t==="blur")return createBlurDefaultState(this,t,V);if(t==="select")return createSelectDefaultState(this,t,V)}return V}function setDefaultStateProxy(t){t.stateProxy=elementStateProxy;var r=t.getTextContent(),V=t.getTextGuideLine();r&&(r.stateProxy=elementStateProxy),V&&(V.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(t,r){!shouldSilent(t,r)&&!t.__highByOuter&&traverseUpdateState(t,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(t,r){!shouldSilent(t,r)&&!t.__highByOuter&&traverseUpdateState(t,singleLeaveEmphasis)}function enterEmphasis(t,r){t.__highByOuter|=1<<(r||0),traverseUpdateState(t,singleEnterEmphasis)}function leaveEmphasis(t,r){!(t.__highByOuter&=~(1<<(r||0)))&&traverseUpdateState(t,singleLeaveEmphasis)}function enterBlur(t){traverseUpdateState(t,singleEnterBlur)}function leaveBlur(t){traverseUpdateState(t,singleLeaveBlur)}function enterSelect(t){traverseUpdateState(t,singleEnterSelect)}function leaveSelect(t){traverseUpdateState(t,singleLeaveSelect)}function shouldSilent(t,r){return t.__highDownSilentOnTouch&&r.zrByTouch}function allLeaveBlur(t){var r=t.getModel(),V=[],oe=[];r.eachComponent(function(ie,le){var ue=getComponentStates(le),de=ie==="series",pe=de?t.getViewOfSeriesModel(le):t.getViewOfComponentModel(le);!de&&oe.push(pe),ue.isBlured&&(pe.group.traverse(function(he){singleLeaveBlur(he)}),de&&V.push(le)),ue.isBlured=!1}),each$c(oe,function(ie){ie&&ie.toggleBlurSeries&&ie.toggleBlurSeries(V,!1,r)})}function blurSeries(t,r,V,oe){var ie=oe.getModel();V=V||"coordinateSystem";function le(he,_e){for(var $e=0;$e<_e.length;$e++){var Ie=he.getItemGraphicEl(_e[$e]);Ie&&leaveBlur(Ie)}}if(t!=null&&!(!r||r==="none")){var ue=ie.getSeriesByIndex(t),de=ue.coordinateSystem;de&&de.master&&(de=de.master);var pe=[];ie.eachSeries(function(he){var _e=ue===he,$e=he.coordinateSystem;$e&&$e.master&&($e=$e.master);var Ie=$e&&de?$e===de:_e;if(!(V==="series"&&!_e||V==="coordinateSystem"&&!Ie||r==="series"&&_e)){var Ve=oe.getViewOfSeriesModel(he);if(Ve.group.traverse(function(qe){qe.__highByOuter&&_e&&r==="self"||singleEnterBlur(qe)}),isArrayLike(r))le(he.getData(),r);else if(isObject$3(r))for(var Fe=keys(r),Ue=0;Ue0){var de={dataIndex:ue,seriesIndex:V.seriesIndex};le!=null&&(de.dataType=le),r.push(de)}})}),r}function enableHoverEmphasis(t,r,V){setAsHighDownDispatcher(t,!0),traverseUpdateState(t,setDefaultStateProxy),enableHoverFocus(t,r,V)}function disableHoverEmphasis(t){setAsHighDownDispatcher(t,!1)}function toggleHoverEmphasis(t,r,V,oe){oe?disableHoverEmphasis(t):enableHoverEmphasis(t,r,V)}function enableHoverFocus(t,r,V){var oe=getECData(t);r!=null?(oe.focus=r,oe.blurScope=V):oe.focus&&(oe.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(t,r,V,oe){V=V||"itemStyle";for(var ie=0;ie1&&(ue*=mathSqrt$1(Fe),de*=mathSqrt$1(Fe));var Ue=(ie===le?-1:1)*mathSqrt$1((ue*ue*(de*de)-ue*ue*(Ve*Ve)-de*de*(Ie*Ie))/(ue*ue*(Ve*Ve)+de*de*(Ie*Ie)))||0,qe=Ue*ue*Ve/de,Et=Ue*-de*Ie/ue,At=(t+V)/2+mathCos$1($e)*qe-mathSin$1($e)*Et,Lt=(r+oe)/2+mathSin$1($e)*qe+mathCos$1($e)*Et,hn=vAngle([1,0],[(Ie-qe)/ue,(Ve-Et)/de]),_n=[(Ie-qe)/ue,(Ve-Et)/de],vn=[(-1*Ie-qe)/ue,(-1*Ve-Et)/de],bn=vAngle(_n,vn);if(vRatio(_n,vn)<=-1&&(bn=PI$3),vRatio(_n,vn)>=1&&(bn=0),bn<0){var Cn=Math.round(bn/PI$3*1e6)/1e6;bn=PI$3*2+Cn%2*PI$3}_e.addData(he,At,Lt,ue,de,hn,bn,$e,le)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(t){var r=new PathProxy$1;if(!t)return r;var V=0,oe=0,ie=V,le=oe,ue,de=PathProxy$1.CMD,pe=t.match(commandReg);if(!pe)return r;for(var he=0;hekn*kn+Nn*Nn&&(Cn=wn,Sn=En),{cx:Cn,cy:Sn,x0:-_e,y0:-$e,x1:Cn*(ie/_n-1),y1:Sn*(ie/_n-1)}}function normalizeCornerRadius(t){var r;if(isArray$1(t)){var V=t.length;if(!V)return t;V===1?r=[t[0],t[0],0,0]:V===2?r=[t[0],t[0],t[1],t[1]]:V===3?r=t.concat(t[2]):r=t}else r=[t,t,t,t];return r}function buildPath$1(t,r){var V,oe=mathMax$5(r.r,0),ie=mathMax$5(r.r0||0,0),le=oe>0,ue=ie>0;if(!(!le&&!ue)){if(le||(oe=ie,ie=0),ie>oe){var de=oe;oe=ie,ie=de}var pe=r.startAngle,he=r.endAngle;if(!(isNaN(pe)||isNaN(he))){var _e=r.cx,$e=r.cy,Ie=!!r.clockwise,Ve=mathAbs(he-pe),Fe=Ve>PI2$1&&Ve%PI2$1;if(Fe>e&&(Ve=Fe),!(oe>e))t.moveTo(_e,$e);else if(Ve>PI2$1-e)t.moveTo(_e+oe*mathCos(pe),$e+oe*mathSin(pe)),t.arc(_e,$e,oe,pe,he,!Ie),ie>e&&(t.moveTo(_e+ie*mathCos(he),$e+ie*mathSin(he)),t.arc(_e,$e,ie,he,pe,Ie));else{var Ue=void 0,qe=void 0,Et=void 0,At=void 0,Lt=void 0,hn=void 0,_n=void 0,vn=void 0,bn=void 0,Cn=void 0,Sn=void 0,wn=void 0,En=void 0,xn=void 0,Pn=void 0,kn=void 0,Nn=oe*mathCos(pe),Dn=oe*mathSin(pe),Mn=ie*mathCos(he),Ln=ie*mathSin(he),An=Ve>e;if(An){var Vn=r.cornerRadius;Vn&&(V=normalizeCornerRadius(Vn),Ue=V[0],qe=V[1],Et=V[2],At=V[3]);var Wn=mathAbs(oe-ie)/2;if(Lt=mathMin$5(Wn,Et),hn=mathMin$5(Wn,At),_n=mathMin$5(Wn,Ue),vn=mathMin$5(Wn,qe),Sn=bn=mathMax$5(Lt,hn),wn=Cn=mathMax$5(_n,vn),(bn>e||Cn>e)&&(En=oe*mathCos(he),xn=oe*mathSin(he),Pn=ie*mathCos(pe),kn=ie*mathSin(pe),Vee){var Qn=mathMin$5(Et,Sn),ur=mathMin$5(At,Sn),cr=computeCornerTangents(Pn,kn,Nn,Dn,oe,Qn,Ie),Un=computeCornerTangents(En,xn,Mn,Ln,oe,ur,Ie);t.moveTo(_e+cr.cx+cr.x0,$e+cr.cy+cr.y0),Sn0&&t.arc(_e+cr.cx,$e+cr.cy,Qn,mathATan2(cr.y0,cr.x0),mathATan2(cr.y1,cr.x1),!Ie),t.arc(_e,$e,oe,mathATan2(cr.cy+cr.y1,cr.cx+cr.x1),mathATan2(Un.cy+Un.y1,Un.cx+Un.x1),!Ie),ur>0&&t.arc(_e+Un.cx,$e+Un.cy,ur,mathATan2(Un.y1,Un.x1),mathATan2(Un.y0,Un.x0),!Ie))}else t.moveTo(_e+Nn,$e+Dn),t.arc(_e,$e,oe,pe,he,!Ie);if(!(ie>e)||!An)t.lineTo(_e+Mn,$e+Ln);else if(wn>e){var Qn=mathMin$5(Ue,wn),ur=mathMin$5(qe,wn),cr=computeCornerTangents(Mn,Ln,En,xn,ie,-ur,Ie),Un=computeCornerTangents(Nn,Dn,Pn,kn,ie,-Qn,Ie);t.lineTo(_e+cr.cx+cr.x0,$e+cr.cy+cr.y0),wn0&&t.arc(_e+cr.cx,$e+cr.cy,ur,mathATan2(cr.y0,cr.x0),mathATan2(cr.y1,cr.x1),!Ie),t.arc(_e,$e,ie,mathATan2(cr.cy+cr.y1,cr.cx+cr.x1),mathATan2(Un.cy+Un.y1,Un.cx+Un.x1),Ie),Qn>0&&t.arc(_e+Un.cx,$e+Un.cy,Qn,mathATan2(Un.y1,Un.x1),mathATan2(Un.y0,Un.x0),!Ie))}else t.lineTo(_e+Mn,$e+Ln),t.arc(_e,$e,ie,he,pe,Ie)}t.closePath()}}}var SectorShape=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),Sector=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.getDefaultShape=function(){return new SectorShape},r.prototype.buildPath=function(V,oe){buildPath$1(V,oe)},r.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},r}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Ring=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.getDefaultShape=function(){return new RingShape},r.prototype.buildPath=function(V,oe){var ie=oe.cx,le=oe.cy,ue=Math.PI*2;V.moveTo(ie+oe.r,le),V.arc(ie,le,oe.r,0,ue,!1),V.moveTo(ie+oe.r0,le),V.arc(ie,le,oe.r0,0,ue,!0)},r}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier(t,r,V,oe){var ie=[],le=[],ue=[],de=[],pe,he,_e,$e;if(oe){_e=[1/0,1/0],$e=[-1/0,-1/0];for(var Ie=0,Ve=t.length;Ie=2){if(oe){var le=smoothBezier(ie,oe,V,r.smoothConstraint);t.moveTo(ie[0][0],ie[0][1]);for(var ue=ie.length,de=0;de<(V?ue:ue-1);de++){var pe=le[de*2],he=le[de*2+1],_e=ie[(de+1)%ue];t.bezierCurveTo(pe[0],pe[1],he[0],he[1],_e[0],_e[1])}}else{t.moveTo(ie[0][0],ie[0][1]);for(var de=1,$e=ie.length;de<$e;de++)t.lineTo(ie[de][0],ie[de][1])}V&&t.closePath()}}var PolygonShape=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Polygon=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.getDefaultShape=function(){return new PolygonShape},r.prototype.buildPath=function(V,oe){buildPath(V,oe,!0)},r}(Path$1);Polygon.prototype.type="polygon";const Polygon$1=Polygon;var PolylineShape=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Polyline=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new PolylineShape},r.prototype.buildPath=function(V,oe){buildPath(V,oe,!1)},r}(Path$1);Polyline.prototype.type="polyline";const Polyline$1=Polyline;var subPixelOptimizeOutputShape={},LineShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Line=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new LineShape},r.prototype.buildPath=function(V,oe){var ie,le,ue,de;if(this.subPixelOptimize){var pe=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,oe,this.style);ie=pe.x1,le=pe.y1,ue=pe.x2,de=pe.y2}else ie=oe.x1,le=oe.y1,ue=oe.x2,de=oe.y2;var he=oe.percent;he!==0&&(V.moveTo(ie,le),he<1&&(ue=ie*(1-he)+ue*he,de=le*(1-he)+de*he),V.lineTo(ue,de))},r.prototype.pointAt=function(V){var oe=this.shape;return[oe.x1*(1-V)+oe.x2*V,oe.y1*(1-V)+oe.y2*V]},r}(Path$1);Line.prototype.type="line";const Line$1=Line;var out=[],BezierCurveShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function someVectorAt(t,r,V){var oe=t.cpx2,ie=t.cpy2;return oe!=null||ie!=null?[(V?cubicDerivativeAt:cubicAt)(t.x1,t.cpx1,t.cpx2,t.x2,r),(V?cubicDerivativeAt:cubicAt)(t.y1,t.cpy1,t.cpy2,t.y2,r)]:[(V?quadraticDerivativeAt:quadraticAt)(t.x1,t.cpx1,t.x2,r),(V?quadraticDerivativeAt:quadraticAt)(t.y1,t.cpy1,t.y2,r)]}var BezierCurve=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new BezierCurveShape},r.prototype.buildPath=function(V,oe){var ie=oe.x1,le=oe.y1,ue=oe.x2,de=oe.y2,pe=oe.cpx1,he=oe.cpy1,_e=oe.cpx2,$e=oe.cpy2,Ie=oe.percent;Ie!==0&&(V.moveTo(ie,le),_e==null||$e==null?(Ie<1&&(quadraticSubdivide(ie,pe,ue,Ie,out),pe=out[1],ue=out[2],quadraticSubdivide(le,he,de,Ie,out),he=out[1],de=out[2]),V.quadraticCurveTo(pe,he,ue,de)):(Ie<1&&(cubicSubdivide(ie,pe,_e,ue,Ie,out),pe=out[1],_e=out[2],ue=out[3],cubicSubdivide(le,he,$e,de,Ie,out),he=out[1],$e=out[2],de=out[3]),V.bezierCurveTo(pe,he,_e,$e,ue,de)))},r.prototype.pointAt=function(V){return someVectorAt(this.shape,V,!1)},r.prototype.tangentAt=function(V){var oe=someVectorAt(this.shape,V,!0);return normalize$1(oe,oe)},r}(Path$1);BezierCurve.prototype.type="bezier-curve";const BezierCurve$1=BezierCurve;var ArcShape=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Arc=function(t){__extends(r,t);function r(V){return t.call(this,V)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ArcShape},r.prototype.buildPath=function(V,oe){var ie=oe.cx,le=oe.cy,ue=Math.max(oe.r,0),de=oe.startAngle,pe=oe.endAngle,he=oe.clockwise,_e=Math.cos(de),$e=Math.sin(de);V.moveTo(_e*ue+ie,$e*ue+le),V.arc(ie,le,ue,de,pe,!he)},r}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type="compound",V}return r.prototype._updatePathDirty=function(){for(var V=this.shape.paths,oe=this.shapeChanged(),ie=0;ieextent2[1]){if(de=!1,le)return de;var _e=Math.abs(extent2[0]-extent[1]),$e=Math.abs(extent[0]-extent2[1]);Math.min(_e,$e)>ie.len()&&(_e<$e?Point$1.scale(ie,he,-_e*ue):Point$1.scale(ie,he,$e*ue))}else if(oe){var _e=Math.abs(extent2[0]-extent[1]),$e=Math.abs(extent[0]-extent2[1]);Math.min(_e,$e)0){var $e=_e.duration,Ie=_e.delay,Ve=_e.easing,Fe={duration:$e,delay:Ie||0,easing:Ve,done:le,force:!!le||!!ue,setToFinal:!he,scope:t,during:ue};de?r.animateFrom(V,Fe):r.animateTo(V,Fe)}else r.stopAnimation(),!de&&r.attr(V),ue&&ue(1),le&&le()}function updateProps$1(t,r,V,oe,ie,le){animateOrSetProps("update",t,r,V,oe,ie,le)}function initProps(t,r,V,oe,ie,le){animateOrSetProps("enter",t,r,V,oe,ie,le)}function isElementRemoved(t){if(!t.__zr)return!0;for(var r=0;rMath.abs(le[1])?le[0]>0?"right":"left":le[1]>0?"bottom":"top"}function isNotGroup(t){return!t.isGroup}function isPath(t){return t.shape!=null}function groupTransition(t,r,V){if(!t||!r)return;function oe(ue){var de={};return ue.traverse(function(pe){isNotGroup(pe)&&pe.anid&&(de[pe.anid]=pe)}),de}function ie(ue){var de={x:ue.x,y:ue.y,rotation:ue.rotation};return isPath(ue)&&(de.shape=extend({},ue.shape)),de}var le=oe(t);r.traverse(function(ue){if(isNotGroup(ue)&&ue.anid){var de=le[ue.anid];if(de){var pe=ie(ue);ue.attr(ie(de)),updateProps$1(ue,pe,V,getECData(ue).dataIndex)}}})}function clipPointsByRect(t,r){return map$2(t,function(V){var oe=V[0];oe=mathMax$4(oe,r.x),oe=mathMin$4(oe,r.x+r.width);var ie=V[1];return ie=mathMax$4(ie,r.y),ie=mathMin$4(ie,r.y+r.height),[oe,ie]})}function clipRectByRect(t,r){var V=mathMax$4(t.x,r.x),oe=mathMin$4(t.x+t.width,r.x+r.width),ie=mathMax$4(t.y,r.y),le=mathMin$4(t.y+t.height,r.y+r.height);if(oe>=V&&le>=ie)return{x:V,y:ie,width:oe-V,height:le-ie}}function createIcon(t,r,V){var oe=extend({rectHover:!0},r),ie=oe.style={strokeNoScale:!0};if(V=V||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(ie.image=t.slice(8),defaults(ie,V),new ZRImage$1(oe)):makePath(t.replace("path://",""),oe,V,"center")}function linePolygonIntersect(t,r,V,oe,ie){for(var le=0,ue=ie[ie.length-1];le1)return!1;var qe=crossProduct2d(Ve,Fe,_e,$e)/Ie;return!(qe<0||qe>1)}function crossProduct2d(t,r,V,oe){return t*oe-V*r}function nearZero(t){return t<=1e-6&&t>=-1e-6}function setTooltipConfig(t){var r=t.itemTooltipOption,V=t.componentModel,oe=t.itemName,ie=isString(r)?{formatter:r}:r,le=V.mainType,ue=V.componentIndex,de={componentType:le,name:oe,$vars:["name"]};de[le+"Index"]=ue;var pe=t.formatterParamsExtra;pe&&each$c(keys(pe),function(_e){hasOwn(de,_e)||(de[_e]=pe[_e],de.$vars.push(_e))});var he=getECData(t.el);he.componentMainType=le,he.componentIndex=ue,he.tooltipConfig={name:oe,option:defaults({content:oe,formatterParams:de},ie)}}function traverseElement(t,r){var V;t.isGroup&&(V=r(t)),V||t.traverse(r)}function traverseElements(t,r){if(t)if(isArray$1(t))for(var V=0;V=0&&de.push(pe)}),de}}function inheritDefaultOption(t,r){return merge(merge({},t,!0),r,!0)}const langEN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(t,r){t=t.toUpperCase(),localeModels[t]=new Model$1(r),localeStorage[t]=r}function createLocaleObject(t){if(isString(t)){var r=localeStorage[t.toUpperCase()]||{};return t===LOCALE_ZH||t===LOCALE_EN?clone$3(r):merge(clone$3(r),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3(t),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(t){return localeModels[t]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad(t,r){return t+="","0000".substr(0,r-t.length)+t}function getPrimaryTimeUnit(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function isPrimaryTimeUnit(t){return t===getPrimaryTimeUnit(t)}function getDefaultFormatPrecisionOfInterval(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1(t,r,V,oe){var ie=parseDate(t),le=ie[fullYearGetterName(V)](),ue=ie[monthGetterName(V)]()+1,de=Math.floor((ue-1)/3)+1,pe=ie[dateGetterName(V)](),he=ie["get"+(V?"UTC":"")+"Day"](),_e=ie[hoursGetterName(V)](),$e=(_e-1)%12+1,Ie=ie[minutesGetterName(V)](),Ve=ie[secondsGetterName(V)](),Fe=ie[millisecondsGetterName(V)](),Ue=oe instanceof Model$1?oe:getLocaleModel(oe||SYSTEM_LANG)||getDefaultLocaleModel(),qe=Ue.getModel("time"),Et=qe.get("month"),At=qe.get("monthAbbr"),Lt=qe.get("dayOfWeek"),hn=qe.get("dayOfWeekAbbr");return(r||"").replace(/{yyyy}/g,le+"").replace(/{yy}/g,pad(le%100+"",2)).replace(/{Q}/g,de+"").replace(/{MMMM}/g,Et[ue-1]).replace(/{MMM}/g,At[ue-1]).replace(/{MM}/g,pad(ue,2)).replace(/{M}/g,ue+"").replace(/{dd}/g,pad(pe,2)).replace(/{d}/g,pe+"").replace(/{eeee}/g,Lt[he]).replace(/{ee}/g,hn[he]).replace(/{e}/g,he+"").replace(/{HH}/g,pad(_e,2)).replace(/{H}/g,_e+"").replace(/{hh}/g,pad($e+"",2)).replace(/{h}/g,$e+"").replace(/{mm}/g,pad(Ie,2)).replace(/{m}/g,Ie+"").replace(/{ss}/g,pad(Ve,2)).replace(/{s}/g,Ve+"").replace(/{SSS}/g,pad(Fe,3)).replace(/{S}/g,Fe+"")}function leveledFormat(t,r,V,oe,ie){var le=null;if(isString(V))le=V;else if(isFunction(V))le=V(t.value,r,{level:t.level});else{var ue=extend({},defaultLeveledFormatter);if(t.level>0)for(var de=0;de=0;--de)if(pe[he]){le=pe[he];break}le=le||ue.none}if(isArray$1(le)){var $e=t.level==null?0:t.level>=0?t.level:le.length+t.level;$e=Math.min($e,le.length-1),le=le[$e]}}return format$1(new Date(t.value),le,ie,oe)}function getUnitFromValue(t,r){var V=parseDate(t),oe=V[monthGetterName(r)]()+1,ie=V[dateGetterName(r)](),le=V[hoursGetterName(r)](),ue=V[minutesGetterName(r)](),de=V[secondsGetterName(r)](),pe=V[millisecondsGetterName(r)](),he=pe===0,_e=he&&de===0,$e=_e&&ue===0,Ie=$e&&le===0,Ve=Ie&&ie===1,Fe=Ve&&oe===1;return Fe?"year":Ve?"month":Ie?"day":$e?"hour":_e?"minute":he?"second":"millisecond"}function getUnitValue(t,r,V){var oe=isNumber(t)?parseDate(t):t;switch(r=r||getUnitFromValue(t,V),r){case"year":return oe[fullYearGetterName(V)]();case"half-year":return oe[monthGetterName(V)]()>=6?1:0;case"quarter":return Math.floor((oe[monthGetterName(V)]()+1)/4);case"month":return oe[monthGetterName(V)]();case"day":return oe[dateGetterName(V)]();case"half-day":return oe[hoursGetterName(V)]()/24;case"hour":return oe[hoursGetterName(V)]();case"minute":return oe[minutesGetterName(V)]();case"second":return oe[secondsGetterName(V)]();case"millisecond":return oe[millisecondsGetterName(V)]()}}function fullYearGetterName(t){return t?"getUTCFullYear":"getFullYear"}function monthGetterName(t){return t?"getUTCMonth":"getMonth"}function dateGetterName(t){return t?"getUTCDate":"getDate"}function hoursGetterName(t){return t?"getUTCHours":"getHours"}function minutesGetterName(t){return t?"getUTCMinutes":"getMinutes"}function secondsGetterName(t){return t?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName(t){return t?"setUTCFullYear":"setFullYear"}function monthSetterName(t){return t?"setUTCMonth":"setMonth"}function dateSetterName(t){return t?"setUTCDate":"setDate"}function hoursSetterName(t){return t?"setUTCHours":"setHours"}function minutesSetterName(t){return t?"setUTCMinutes":"setMinutes"}function secondsSetterName(t){return t?"setUTCSeconds":"setSeconds"}function millisecondsSetterName(t){return t?"setUTCMilliseconds":"setMilliseconds"}function getTextRect(t,r,V,oe,ie,le,ue,de){var pe=new ZRText$1({style:{text:t,font:r,align:V,verticalAlign:oe,padding:ie,rich:le,overflow:ue?"truncate":null,lineHeight:de}});return pe.getBoundingRect()}function addCommas(t){if(!isNumeric(t))return isString(t)?t:"-";var r=(t+"").split(".");return r[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(r.length>1?"."+r[1]:"")}function toCamelCase(t,r){return t=(t||"").toLowerCase().replace(/-(.)/g,function(V,oe){return oe.toUpperCase()}),r&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(t,r,V){var oe="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function ie(_e){return _e&&trim$1(_e)?_e:"-"}function le(_e){return!!(_e!=null&&!isNaN(_e)&&isFinite(_e))}var ue=r==="time",de=t instanceof Date;if(ue||de){var pe=ue?parseDate(t):t;if(isNaN(+pe)){if(de)return"-"}else return format$1(pe,oe,V)}if(r==="ordinal")return isStringSafe(t)?ie(t):isNumber(t)&&le(t)?t+"":"-";var he=numericToNumber(t);return le(he)?addCommas(he):isStringSafe(t)?ie(t):typeof t=="boolean"?t+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(t,r){return"{"+t+(r??"")+"}"};function formatTpl(t,r,V){isArray$1(r)||(r=[r]);var oe=r.length;if(!oe)return"";for(var ie=r[0].$vars||[],le=0;le':'';var ue=V.markerId||"markerX";return{renderMode:le,content:"{"+ue+"|} ",style:ie==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:oe}:{width:10,height:10,borderRadius:5,backgroundColor:oe}}}function formatTime(t,r,V){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd yyyy`);var oe=parseDate(r),ie=V?"getUTC":"get",le=oe[ie+"FullYear"](),ue=oe[ie+"Month"]()+1,de=oe[ie+"Date"](),pe=oe[ie+"Hours"](),he=oe[ie+"Minutes"](),_e=oe[ie+"Seconds"](),$e=oe[ie+"Milliseconds"]();return t=t.replace("MM",pad(ue,2)).replace("M",ue).replace("yyyy",le).replace("yy",pad(le%100+"",2)).replace("dd",pad(de,2)).replace("d",de).replace("hh",pad(pe,2)).replace("h",pe).replace("mm",pad(he,2)).replace("m",he).replace("ss",pad(_e,2)).replace("s",_e).replace("SSS",pad($e,3)),t}function capitalFirst(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function convertToColorString(t,r){return r=r||"transparent",isString(t)?t:isObject$3(t)&&t.colorStops&&(t.colorStops[0]||{}).color||r}function windowOpen(t,r){if(r==="_blank"||r==="blank"){var V=window.open();V.opener=null,V.location.href=t}else window.open(t,r)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(t,r,V,oe,ie){var le=0,ue=0;oe==null&&(oe=1/0),ie==null&&(ie=1/0);var de=0;r.eachChild(function(pe,he){var _e=pe.getBoundingRect(),$e=r.childAt(he+1),Ie=$e&&$e.getBoundingRect(),Ve,Fe;if(t==="horizontal"){var Ue=_e.width+(Ie?-Ie.x+_e.x:0);Ve=le+Ue,Ve>oe||pe.newline?(le=0,Ve=Ue,ue+=de+V,de=_e.height):de=Math.max(de,_e.height)}else{var qe=_e.height+(Ie?-Ie.y+_e.y:0);Fe=ue+qe,Fe>ie||pe.newline?(le+=de+V,ue=0,Fe=qe,de=_e.width):de=Math.max(de,_e.width)}pe.newline||(pe.x=le,pe.y=ue,pe.markRedraw(),t==="horizontal"?le=Ve+V:ue=Fe+V)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect(t,r,V){V=normalizeCssArray(V||0);var oe=r.width,ie=r.height,le=parsePercent(t.left,oe),ue=parsePercent(t.top,ie),de=parsePercent(t.right,oe),pe=parsePercent(t.bottom,ie),he=parsePercent(t.width,oe),_e=parsePercent(t.height,ie),$e=V[2]+V[0],Ie=V[1]+V[3],Ve=t.aspect;switch(isNaN(he)&&(he=oe-de-Ie-le),isNaN(_e)&&(_e=ie-pe-$e-ue),Ve!=null&&(isNaN(he)&&isNaN(_e)&&(Ve>oe/ie?he=oe*.8:_e=ie*.8),isNaN(he)&&(he=Ve*_e),isNaN(_e)&&(_e=he/Ve)),isNaN(le)&&(le=oe-de-he-Ie),isNaN(ue)&&(ue=ie-pe-_e-$e),t.left||t.right){case"center":le=oe/2-he/2-V[3];break;case"right":le=oe-he-Ie;break}switch(t.top||t.bottom){case"middle":case"center":ue=ie/2-_e/2-V[0];break;case"bottom":ue=ie-_e-$e;break}le=le||0,ue=ue||0,isNaN(he)&&(he=oe-Ie-le-(de||0)),isNaN(_e)&&(_e=ie-$e-ue-(pe||0));var Fe=new BoundingRect$1(le+V[3],ue+V[0],he,_e);return Fe.margin=V,Fe}function positionElement(t,r,V,oe,ie,le){var ue=!ie||!ie.hv||ie.hv[0],de=!ie||!ie.hv||ie.hv[1],pe=ie&&ie.boundingMode||"all";if(le=le||t,le.x=t.x,le.y=t.y,!ue&&!de)return!1;var he;if(pe==="raw")he=t.type==="group"?new BoundingRect$1(0,0,+r.width||0,+r.height||0):t.getBoundingRect();else if(he=t.getBoundingRect(),t.needLocalTransform()){var _e=t.getLocalTransform();he=he.clone(),he.applyTransform(_e)}var $e=getLayoutRect(defaults({width:he.width,height:he.height},r),V,oe),Ie=ue?$e.x-he.x:0,Ve=de?$e.y-he.y:0;return pe==="raw"?(le.x=Ie,le.y=Ve):(le.x+=Ie,le.y+=Ve),le===t&&t.markRedraw(),!0}function fetchLayoutMode(t){var r=t.layoutMode||t.constructor.layoutMode;return isObject$3(r)?r:r?{type:r}:null}function mergeLayoutParam(t,r,V){var oe=V&&V.ignoreSize;!isArray$1(oe)&&(oe=[oe,oe]);var ie=ue(HV_NAMES[0],0),le=ue(HV_NAMES[1],1);he(HV_NAMES[0],t,ie),he(HV_NAMES[1],t,le);function ue(_e,$e){var Ie={},Ve=0,Fe={},Ue=0,qe=2;if(each$b(_e,function(Lt){Fe[Lt]=t[Lt]}),each$b(_e,function(Lt){de(r,Lt)&&(Ie[Lt]=Fe[Lt]=r[Lt]),pe(Ie,Lt)&&Ve++,pe(Fe,Lt)&&Ue++}),oe[$e])return pe(r,_e[1])?Fe[_e[2]]=null:pe(r,_e[2])&&(Fe[_e[1]]=null),Fe;if(Ue===qe||!Ve)return Fe;if(Ve>=qe)return Ie;for(var Et=0;Et<_e.length;Et++){var At=_e[Et];if(!de(Ie,At)&&de(t,At)){Ie[At]=t[At];break}}return Ie}function de(_e,$e){return _e.hasOwnProperty($e)}function pe(_e,$e){return _e[$e]!=null&&_e[$e]!=="auto"}function he(_e,$e,Ie){each$b(_e,function(Ve){$e[Ve]=Ie[Ve]})}}function getLayoutParams(t){return copyLayoutParams({},t)}function copyLayoutParams(t,r){return r&&t&&each$b(LOCATION_PARAMS,function(V){r.hasOwnProperty(V)&&(t[V]=r[V])}),t}var inner$c=makeInner(),ComponentModel=function(t){__extends(r,t);function r(V,oe,ie){var le=t.call(this,V,oe,ie)||this;return le.uid=getUID("ec_cpt_model"),le}return r.prototype.init=function(V,oe,ie){this.mergeDefaultAndTheme(V,ie)},r.prototype.mergeDefaultAndTheme=function(V,oe){var ie=fetchLayoutMode(this),le=ie?getLayoutParams(V):{},ue=oe.getTheme();merge(V,ue.get(this.mainType)),merge(V,this.getDefaultOption()),ie&&mergeLayoutParam(V,le,ie)},r.prototype.mergeOption=function(V,oe){merge(this.option,V,!0);var ie=fetchLayoutMode(this);ie&&mergeLayoutParam(this.option,V,ie)},r.prototype.optionUpdated=function(V,oe){},r.prototype.getDefaultOption=function(){var V=this.constructor;if(!isExtendedClass(V))return V.defaultOption;var oe=inner$c(this);if(!oe.defaultOption){for(var ie=[],le=V;le;){var ue=le.prototype.defaultOption;ue&&ie.push(ue),le=le.superClass}for(var de={},pe=ie.length-1;pe>=0;pe--)de=merge(de,ie[pe],!0);oe.defaultOption=de}return oe.defaultOption},r.prototype.getReferringComponents=function(V,oe){var ie=V+"Index",le=V+"Id";return queryReferringComponents(this.ecModel,V,{index:this.get(ie,!0),id:this.get(le,!0)},oe)},r.prototype.getBoxLayoutParams=function(){var V=this;return{left:V.get("left"),top:V.get("top"),right:V.get("right"),bottom:V.get("bottom"),width:V.get("width"),height:V.get("height")}},r.prototype.getZLevelKey=function(){return""},r.prototype.setZLevel=function(V){this.option.zlevel=V},r.protoInitialize=function(){var V=r.prototype;V.type="component",V.id="",V.name="",V.mainType="",V.subType="",V.componentIndex=0}(),r}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(t){var r=[];return each$c(ComponentModel.getClassesByMainType(t),function(V){r=r.concat(V.dependencies||V.prototype.dependencies||[])}),r=map$2(r,function(V){return parseClassType(V).main}),t!=="dataset"&&indexOf(r,"dataset")<=0&&r.unshift("dataset"),r}const ComponentModel$1=ComponentModel;var platform="";typeof navigator<"u"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)";const globalDefault={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:decalColor,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:decalColor,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:decalColor,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:decalColor,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:decalColor,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:decalColor,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:platform.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter(t){innerGlobalModel(t).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys(t,r,V){var oe={},ie=querySeriesUpstreamDatasetModel(r);if(!ie||!t)return oe;var le=[],ue=[],de=r.ecModel,pe=innerGlobalModel(de).datasetMap,he=ie.uid+"_"+V.seriesLayoutBy,_e,$e;t=t.slice(),each$c(t,function(Ue,qe){var Et=isObject$3(Ue)?Ue:t[qe]={name:Ue};Et.type==="ordinal"&&_e==null&&(_e=qe,$e=Fe(Et)),oe[Et.name]=[]});var Ie=pe.get(he)||pe.set(he,{categoryWayDim:$e,valueWayDim:0});each$c(t,function(Ue,qe){var Et=Ue.name,At=Fe(Ue);if(_e==null){var Lt=Ie.valueWayDim;Ve(oe[Et],Lt,At),Ve(ue,Lt,At),Ie.valueWayDim+=At}else if(_e===qe)Ve(oe[Et],0,At),Ve(le,0,At);else{var Lt=Ie.categoryWayDim;Ve(oe[Et],Lt,At),Ve(ue,Lt,At),Ie.categoryWayDim+=At}});function Ve(Ue,qe,Et){for(var At=0;Atr)return t[oe];return t[V-1]}function getFromPalette(t,r,V,oe,ie,le,ue){le=le||t;var de=r(le),pe=de.paletteIdx||0,he=de.paletteNameMap=de.paletteNameMap||{};if(he.hasOwnProperty(ie))return he[ie];var _e=ue==null||!oe?V:getNearestPalette(oe,ue);if(_e=_e||V,!(!_e||!_e.length)){var $e=_e[pe];return ie&&(he[ie]=$e),de.paletteIdx=(pe+1)%_e.length,$e}}function clearPalette(t,r){r(t).paletteIdx=0,r(t).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(V,oe,ie,le,ue,de){le=le||{},this.option=null,this._theme=new Model$1(le),this._locale=new Model$1(ue),this._optionManager=de},r.prototype.setOption=function(V,oe,ie){var le=normalizeSetOptionInput(oe);this._optionManager.setOption(V,ie,le),this._resetOption(null,le)},r.prototype.resetOption=function(V,oe){return this._resetOption(V,normalizeSetOptionInput(oe))},r.prototype._resetOption=function(V,oe){var ie=!1,le=this._optionManager;if(!V||V==="recreate"){var ue=le.mountOption(V==="recreate");!this.option||V==="recreate"?initBase(this,ue):(this.restoreData(),this._mergeOption(ue,oe)),ie=!0}if((V==="timeline"||V==="media")&&this.restoreData(),!V||V==="recreate"||V==="timeline"){var de=le.getTimelineOption(this);de&&(ie=!0,this._mergeOption(de,oe))}if(!V||V==="recreate"||V==="media"){var pe=le.getMediaOption(this);pe.length&&each$c(pe,function(he){ie=!0,this._mergeOption(he,oe)},this)}return ie},r.prototype.mergeOption=function(V){this._mergeOption(V,null)},r.prototype._mergeOption=function(V,oe){var ie=this.option,le=this._componentsMap,ue=this._componentsCount,de=[],pe=createHashMap(),he=oe&&oe.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(V,function($e,Ie){$e!=null&&(ComponentModel$1.hasClass(Ie)?Ie&&(de.push(Ie),pe.set(Ie,!0)):ie[Ie]=ie[Ie]==null?clone$3($e):merge(ie[Ie],$e,!0))}),he&&he.each(function($e,Ie){ComponentModel$1.hasClass(Ie)&&!pe.get(Ie)&&(de.push(Ie),pe.set(Ie,!0))}),ComponentModel$1.topologicalTravel(de,ComponentModel$1.getAllClassMainTypes(),_e,this);function _e($e){var Ie=concatInternalOptions(this,$e,normalizeToArray(V[$e])),Ve=le.get($e),Fe=Ve?he&&he.get($e)?"replaceMerge":"normalMerge":"replaceAll",Ue=mappingToExists(Ve,Ie,Fe);setComponentTypeToKeyInfo(Ue,$e,ComponentModel$1),ie[$e]=null,le.set($e,null),ue.set($e,0);var qe=[],Et=[],At=0,Lt;each$c(Ue,function(hn,_n){var vn=hn.existing,bn=hn.newOption;if(!bn)vn&&(vn.mergeOption({},this),vn.optionUpdated({},!1));else{var Cn=$e==="series",Sn=ComponentModel$1.getClass($e,hn.keyInfo.subType,!Cn);if(!Sn)return;if($e==="tooltip"){if(Lt)return;Lt=!0}if(vn&&vn.constructor===Sn)vn.name=hn.keyInfo.name,vn.mergeOption(bn,this),vn.optionUpdated(bn,!1);else{var wn=extend({componentIndex:_n},hn.keyInfo);vn=new Sn(bn,this,this,wn),extend(vn,wn),hn.brandNew&&(vn.__requireNewView=!0),vn.init(bn,this,this),vn.optionUpdated(null,!0)}}vn?(qe.push(vn.option),Et.push(vn),At++):(qe.push(void 0),Et.push(void 0))},this),ie[$e]=qe,le.set($e,Et),ue.set($e,At),$e==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},r.prototype.getOption=function(){var V=clone$3(this.option);return each$c(V,function(oe,ie){if(ComponentModel$1.hasClass(ie)){for(var le=normalizeToArray(oe),ue=le.length,de=!1,pe=ue-1;pe>=0;pe--)le[pe]&&!isComponentIdInternal(le[pe])?de=!0:(le[pe]=null,!de&&ue--);le.length=ue,V[ie]=le}}),delete V[OPTION_INNER_KEY],V},r.prototype.getTheme=function(){return this._theme},r.prototype.getLocaleModel=function(){return this._locale},r.prototype.setUpdatePayload=function(V){this._payload=V},r.prototype.getUpdatePayload=function(){return this._payload},r.prototype.getComponent=function(V,oe){var ie=this._componentsMap.get(V);if(ie){var le=ie[oe||0];if(le)return le;if(oe==null){for(var ue=0;ue=r:V==="max"?t<=r:t===r}function indicesEquals(t,r){return t.join(",")===r.join(",")}const OptionManager$1=OptionManager;var each$a=each$c,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(t){var r=t&&t.itemStyle;if(r)for(var V=0,oe=POSSIBLE_STYLES.length;V=0;qe--){var Et=t[qe];if(de||(Fe=Et.data.rawIndexOf(Et.stackedByDimension,Ve)),Fe>=0){var At=Et.data.getByRawIndex(Et.stackResultDimension,Fe);if(pe==="all"||pe==="positive"&&At>0||pe==="negative"&&At<0||pe==="samesign"&&Ie>=0&&At>0||pe==="samesign"&&Ie<=0&&At<0){Ie=addSafe(Ie,At),Ue=At;break}}}return oe[0]=Ie,oe[1]=Ue,oe})})}var SourceImpl=function(){function t(r){this.data=r.data||(r.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=r.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=r.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=r.startIndex||0,this.dimensionsDetectedCount=r.dimensionsDetectedCount,this.metaRawOption=r.metaRawOption;var V=this.dimensionsDefine=r.dimensionsDefine;if(V)for(var oe=0;oeUe&&(Ue=Lt)}Ve[0]=Fe,Ve[1]=Ue}},ie=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(r={},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:le},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},r[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:le},r[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(ue){var de=this._data;each$c(ue,function(pe,he){for(var _e=de[he]||(de[he]=[]),$e=0;$e<(pe||[]).length;$e++)_e.push(pe[$e])})}},r[SOURCE_FORMAT_ORIGINAL]={appendData:le},r[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(ue){this._data=ue},clean:function(){this._offset+=this.count(),this._data=null}},r);function le(ue){for(var de=0;de=0&&(Ue=ue.interpolatedValue[qe])}return Ue!=null?Ue+"":""})}},t.prototype.getRawValue=function(r,V){return retrieveRawValue(this.getData(V),r)},t.prototype.formatTooltip=function(r,V,oe){},t}();function normalizeTooltipFormatResult(t){var r,V;return isObject$3(t)?t.type&&(V=t):r=t,{text:r,frag:V}}function createTask(t){return new Task(t)}var Task=function(){function t(r){r=r||{},this._reset=r.reset,this._plan=r.plan,this._count=r.count,this._onDirty=r.onDirty,this._dirty=!0}return t.prototype.perform=function(r){var V=this._upstream,oe=r&&r.skip;if(this._dirty&&V){var ie=this.context;ie.data=ie.outputData=V.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var le;this._plan&&!oe&&(le=this._plan(this.context));var ue=_e(this._modBy),de=this._modDataCount||0,pe=_e(r&&r.modBy),he=r&&r.modDataCount||0;(ue!==pe||de!==he)&&(le="reset");function _e(At){return!(At>=1)&&(At=1),At}var $e;(this._dirty||le==="reset")&&(this._dirty=!1,$e=this._doReset(oe)),this._modBy=pe,this._modDataCount=he;var Ie=r&&r.step;if(V?this._dueEnd=V._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var Ve=this._dueIndex,Fe=Math.min(Ie!=null?this._dueIndex+Ie:1/0,this._dueEnd);if(!oe&&($e||Ve1&&oe>0?de:ue}};return le;function ue(){return r=t?null:peie?-this._resultLT:0},t}(),ExternalSource=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(r){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(r){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(r,V){},t.prototype.retrieveValueFromItem=function(r,V){},t.prototype.convertValue=function(r,V){return parseDataValue(r,V)},t}();function createExternalSource(t,r){var V=new ExternalSource,oe=t.data,ie=V.sourceFormat=t.sourceFormat,le=t.startIndex,ue="";t.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(ue);var de=[],pe={},he=t.dimensionsDefine;if(he)each$c(he,function(Ue,qe){var Et=Ue.name,At={index:qe,name:Et,displayName:Ue.displayName};if(de.push(At),Et!=null){var Lt="";hasOwn(pe,Et)&&throwError(Lt),pe[Et]=At}});else for(var _e=0;_e65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(t){var r=t.constructor;return r===Array?t.slice():new r(t)}function prepareStore(t,r,V,oe,ie){var le=dataCtors[V||"float"];if(ie){var ue=t[r],de=ue&&ue.length;if(de!==oe){for(var pe=new le(oe),he=0;heqe[1]&&(qe[1]=Ue)}return this._rawCount=this._count=pe,{start:de,end:pe}},t.prototype._initDataFromProvider=function(r,V,oe){for(var ie=this._provider,le=this._chunks,ue=this._dimensions,de=ue.length,pe=this._rawExtent,he=map$2(ue,function(At){return At.property}),_e=0;_eEt[1]&&(Et[1]=qe)}}!ie.persistent&&ie.clean&&ie.clean(),this._rawCount=this._count=V,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(r,V){if(!(V>=0&&V=0&&V=this._rawCount||r<0)return-1;if(!this._indices)return r;var V=this._indices,oe=V[r];if(oe!=null&&oer)le=ue-1;else return ue}return-1},t.prototype.indicesOfNearest=function(r,V,oe){var ie=this._chunks,le=ie[r],ue=[];if(!le)return ue;oe==null&&(oe=1/0);for(var de=1/0,pe=-1,he=0,_e=0,$e=this.count();_e<$e;_e++){var Ie=this.getRawIndex(_e),Ve=V-le[Ie],Fe=Math.abs(Ve);Fe<=oe&&((Fe=0&&pe<0)&&(de=Fe,pe=Ve,he=0),Ve===pe&&(ue[he++]=_e))}return ue.length=he,ue},t.prototype.getIndices=function(){var r,V=this._indices;if(V){var oe=V.constructor,ie=this._count;if(oe===Array){r=new oe(ie);for(var le=0;le=$e&&At<=Ie||isNaN(At))&&(pe[he++]=Ue),Ue++}Fe=!0}else if(le===2){for(var qe=Ve[ie[0]],Lt=Ve[ie[1]],hn=r[ie[1]][0],_n=r[ie[1]][1],Et=0;Et=$e&&At<=Ie||isNaN(At))&&(vn>=hn&&vn<=_n||isNaN(vn))&&(pe[he++]=Ue),Ue++}Fe=!0}}if(!Fe)if(le===1)for(var Et=0;Et=$e&&At<=Ie||isNaN(At))&&(pe[he++]=bn)}else for(var Et=0;Etr[wn][1])&&(Cn=!1)}Cn&&(pe[he++]=V.getRawIndex(Et))}return heEt[1]&&(Et[1]=qe)}}}},t.prototype.lttbDownSample=function(r,V){var oe=this.clone([r],!0),ie=oe._chunks,le=ie[r],ue=this.count(),de=0,pe=Math.floor(1/V),he=this.getRawIndex(0),_e,$e,Ie,Ve=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(ue/pe)+2)*2,ue));Ve[de++]=he;for(var Fe=1;Fe_e&&(_e=$e,Ie=hn)}En>0&&En_e-Fe&&(pe=_e-Fe,de.length=pe);for(var Ue=0;Ue$e[1]&&($e[1]=Et),Ie[Ve++]=At}return le._count=Ve,le._indices=Ie,le._updateGetRawIdx(),le},t.prototype.each=function(r,V){if(this._count)for(var oe=r.length,ie=this._chunks,le=0,ue=this.count();lepe&&(pe=$e)}return ue=[de,pe],this._extent[r]=ue,ue},t.prototype.getRawDataItem=function(r){var V=this.getRawIndex(r);if(this._provider.persistent)return this._provider.getItem(V);for(var oe=[],ie=this._chunks,le=0;le=0?this._indices[r]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function r(V,oe,ie,le){return parseDataValue(V[le],this._dimensions[le])}defaultDimValueGetters={arrayRows:r,objectRows:function(V,oe,ie,le){return parseDataValue(V[oe],this._dimensions[le])},keyedColumns:r,original:function(V,oe,ie,le){var ue=V&&(V.value==null?V:V.value);return parseDataValue(ue instanceof Array?ue[le]:ue,this._dimensions[le])},typedArray:function(V,oe,ie,le){return V[le]}}}(),t}();const DataStore$1=DataStore;var SourceManager=function(){function t(r){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=r}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(r,V){this._sourceList=r,this._upstreamSignList=V,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var r=this._sourceHost,V=this._getUpstreamSourceManagers(),oe=!!V.length,ie,le;if(isSeries(r)){var ue=r,de=void 0,pe=void 0,he=void 0;if(oe){var _e=V[0];_e.prepareSource(),he=_e.getSource(),de=he.data,pe=he.sourceFormat,le=[_e._getVersionSign()]}else de=ue.get("data",!0),pe=isTypedArray(de)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,le=[];var $e=this._getSourceMetaRawOption()||{},Ie=he&&he.metaRawOption||{},Ve=retrieve2($e.seriesLayoutBy,Ie.seriesLayoutBy)||null,Fe=retrieve2($e.sourceHeader,Ie.sourceHeader),Ue=retrieve2($e.dimensions,Ie.dimensions),qe=Ve!==Ie.seriesLayoutBy||!!Fe!=!!Ie.sourceHeader||Ue;ie=qe?[createSource(de,{seriesLayoutBy:Ve,sourceHeader:Fe,dimensions:Ue},pe)]:[]}else{var Et=r;if(oe){var At=this._applyTransform(V);ie=At.sourceList,le=At.upstreamSignList}else{var Lt=Et.get("source",!0);ie=[createSource(Lt,this._getSourceMetaRawOption(),null)],le=[]}}this._setLocalSource(ie,le)},t.prototype._applyTransform=function(r){var V=this._sourceHost,oe=V.get("transform",!0),ie=V.get("fromTransformResult",!0);if(ie!=null){var le="";r.length!==1&&doThrow(le)}var ue,de=[],pe=[];return each$c(r,function(he){he.prepareSource();var _e=he.getSource(ie||0),$e="";ie!=null&&!_e&&doThrow($e),de.push(_e),pe.push(he._getVersionSign())}),oe?ue=applyDataTransform(oe,de,{datasetIndex:V.componentIndex}):ie!=null&&(ue=[cloneSourceShallow(de[0])]),{sourceList:ue,upstreamSignList:pe}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var r=this._getUpstreamSourceManagers(),V=0;V1||V>0&&!t.noHeader;return each$c(t.blocks,function(ie){var le=getBlockGapLevel(ie);le>=r&&(r=le+ +(oe&&(!le||isSectionFragment(ie)&&!ie.noHeader)))}),r}return 0}function buildSection(t,r,V,oe){var ie=r.noHeader,le=getGap(getBlockGapLevel(r)),ue=[],de=r.blocks||[];assert(!de||isArray$1(de)),de=de||[];var pe=t.orderMode;if(r.sortBlocks&&pe){de=de.slice();var he={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(he,pe)){var _e=new SortOrderComparator(he[pe],null);de.sort(function(Fe,Ue){return _e.evaluate(Fe.sortParam,Ue.sortParam)})}else pe==="seriesDesc"&&de.reverse()}each$c(de,function(Fe,Ue){var qe=r.valueFormatter,Et=getBuilder(Fe)(qe?extend(extend({},t),{valueFormatter:qe}):t,Fe,Ue>0?le.html:0,oe);Et!=null&&ue.push(Et)});var $e=t.renderMode==="richText"?ue.join(le.richText):wrapBlockHTML(ue.join(""),ie?V:le.html);if(ie)return $e;var Ie=makeValueReadable(r.header,"ordinal",t.useUTC),Ve=getTooltipTextStyle(oe,t.renderMode).nameStyle;return t.renderMode==="richText"?wrapInlineNameRichText(t,Ie,Ve)+le.richText+$e:wrapBlockHTML('
'+encodeHTML(Ie)+"
"+$e,V)}function buildNameValue(t,r,V,oe){var ie=t.renderMode,le=r.noName,ue=r.noValue,de=!r.markerType,pe=r.name,he=t.useUTC,_e=r.valueFormatter||t.valueFormatter||function(hn){return hn=isArray$1(hn)?hn:[hn],map$2(hn,function(_n,vn){return makeValueReadable(_n,isArray$1(Ve)?Ve[vn]:Ve,he)})};if(!(le&&ue)){var $e=de?"":t.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",ie),Ie=le?"":makeValueReadable(pe,"ordinal",he),Ve=r.valueType,Fe=ue?[]:_e(r.value),Ue=!de||!le,qe=!de&&le,Et=getTooltipTextStyle(oe,ie),At=Et.nameStyle,Lt=Et.valueStyle;return ie==="richText"?(de?"":$e)+(le?"":wrapInlineNameRichText(t,Ie,At))+(ue?"":wrapInlineValueRichText(t,Fe,Ue,qe,Lt)):wrapBlockHTML((de?"":$e)+(le?"":wrapInlineNameHTML(Ie,!de,At))+(ue?"":wrapInlineValueHTML(Fe,Ue,qe,Lt)),V)}}function buildTooltipMarkup(t,r,V,oe,ie,le){if(t){var ue=getBuilder(t),de={useUTC:ie,renderMode:V,orderMode:oe,markupStyleCreator:r,valueFormatter:t.valueFormatter};return ue(de,t,0,le)}}function getGap(t){return{html:HTML_GAPS[t],richText:RICH_TEXT_GAPS[t]}}function wrapBlockHTML(t,r){var V='
',oe="margin: "+r+"px 0 0";return'
'+t+V+"
"}function wrapInlineNameHTML(t,r,V){var oe=r?"margin-left:2px":"";return''+encodeHTML(t)+""}function wrapInlineValueHTML(t,r,V,oe){var ie=V?"10px":"20px",le=r?"float:right;margin-left:"+ie:"";return t=isArray$1(t)?t:[t],''+map$2(t,function(ue){return encodeHTML(ue)}).join("  ")+""}function wrapInlineNameRichText(t,r,V){return t.markupStyleCreator.wrapRichTextStyle(r,V)}function wrapInlineValueRichText(t,r,V,oe,ie){var le=[ie],ue=oe?10:20;return V&&le.push({padding:[0,0,0,ue],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(isArray$1(r)?r.join(" "):r,le)}function retrieveVisualColorForTooltipMarker(t,r){var V=t.getData().getItemVisual(r,"style"),oe=V[t.visualDrawType];return convertToColorString(oe)}function getPaddingFromTooltipModel(t,r){var V=t.get("padding");return V??(r==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function t(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(r,V,oe){var ie=oe==="richText"?this._generateStyleName():null,le=getTooltipMarker({color:V,type:r,renderMode:oe,markerId:ie});return isString(le)?le:(this.richTextStyles[ie]=le.style,le.content)},t.prototype.wrapRichTextStyle=function(r,V){var oe={};isArray$1(V)?each$c(V,function(le){return extend(oe,le)}):extend(oe,V);var ie=this._generateStyleName();return this.richTextStyles[ie]=oe,"{"+ie+"|"+r+"}"},t}();function defaultSeriesFormatTooltip(t){var r=t.series,V=t.dataIndex,oe=t.multipleSeries,ie=r.getData(),le=ie.mapDimensionsAll("defaultedTooltip"),ue=le.length,de=r.getRawValue(V),pe=isArray$1(de),he=retrieveVisualColorForTooltipMarker(r,V),_e,$e,Ie,Ve;if(ue>1||pe&&!ue){var Fe=formatTooltipArrayValue(de,r,V,le,he);_e=Fe.inlineValues,$e=Fe.inlineValueTypes,Ie=Fe.blocks,Ve=Fe.inlineValues[0]}else if(ue){var Ue=ie.getDimensionInfo(le[0]);Ve=_e=retrieveRawValue(ie,V,le[0]),$e=Ue.type}else Ve=_e=pe?de[0]:de;var qe=isNameSpecified(r),Et=qe&&r.name||"",At=ie.getName(V),Lt=oe?Et:At;return createTooltipMarkup("section",{header:Et,noHeader:oe||!qe,sortParam:Ve,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:he,name:Lt,noName:!trim$1(Lt),value:_e,valueType:$e})].concat(Ie||[])})}function formatTooltipArrayValue(t,r,V,oe,ie){var le=r.getData(),ue=reduce(t,function($e,Ie,Ve){var Fe=le.getDimensionInfo(Ve);return $e=$e||Fe&&Fe.tooltip!==!1&&Fe.displayName!=null},!1),de=[],pe=[],he=[];oe.length?each$c(oe,function($e){_e(retrieveRawValue(le,V,$e),$e)}):each$c(t,_e);function _e($e,Ie){var Ve=le.getDimensionInfo(Ie);!Ve||Ve.otherDims.tooltip===!1||(ue?he.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:ie,name:Ve.displayName,value:$e,valueType:Ve.type})):(de.push($e),pe.push(Ve.type)))}return{inlineValues:de,inlineValueTypes:pe,blocks:he}}var inner$b=makeInner();function getSelectionKey(t,r){return t.getName(r)||t.getId(r)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V._selectedDataIndicesMap={},V}return r.prototype.init=function(V,oe,ie){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(V,ie);var le=inner$b(this).sourceManager=new SourceManager(this);le.prepareSource();var ue=this.getInitialData(V,ie);wrapData(ue,this),this.dataTask.context.data=ue,inner$b(this).dataBeforeProcessed=ue,autoSeriesName(this),this._initSelectedMapFromData(ue)},r.prototype.mergeDefaultAndTheme=function(V,oe){var ie=fetchLayoutMode(this),le=ie?getLayoutParams(V):{},ue=this.subType;ComponentModel$1.hasClass(ue)&&(ue+="Series"),merge(V,oe.getTheme().get(this.subType)),merge(V,this.getDefaultOption()),defaultEmphasis(V,"label",["show"]),this.fillDataTextStyle(V.data),ie&&mergeLayoutParam(V,le,ie)},r.prototype.mergeOption=function(V,oe){V=merge(this.option,V,!0),this.fillDataTextStyle(V.data);var ie=fetchLayoutMode(this);ie&&mergeLayoutParam(this.option,V,ie);var le=inner$b(this).sourceManager;le.dirty(),le.prepareSource();var ue=this.getInitialData(V,oe);wrapData(ue,this),this.dataTask.dirty(),this.dataTask.context.data=ue,inner$b(this).dataBeforeProcessed=ue,autoSeriesName(this),this._initSelectedMapFromData(ue)},r.prototype.fillDataTextStyle=function(V){if(V&&!isTypedArray(V))for(var oe=["show"],ie=0;iethis.getShallow("animationThreshold")&&(oe=!1),!!oe},r.prototype.restoreData=function(){this.dataTask.dirty()},r.prototype.getColorFromPalette=function(V,oe,ie){var le=this.ecModel,ue=PaletteMixin.prototype.getColorFromPalette.call(this,V,oe,ie);return ue||(ue=le.getColorFromPalette(V,oe,ie)),ue},r.prototype.coordDimToDataDim=function(V){return this.getRawData().mapDimensionsAll(V)},r.prototype.getProgressive=function(){return this.get("progressive")},r.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},r.prototype.select=function(V,oe){this._innerSelect(this.getData(oe),V)},r.prototype.unselect=function(V,oe){var ie=this.option.selectedMap;if(ie){var le=this.option.selectedMode,ue=this.getData(oe);if(le==="series"||ie==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var de=0;de=0&&ie.push(ue)}return ie},r.prototype.isSelected=function(V,oe){var ie=this.option.selectedMap;if(!ie)return!1;var le=this.getData(oe);return(ie==="all"||ie[getSelectionKey(le,V)])&&!le.getItemModel(V).get(["select","disabled"])},r.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var V=this.option.universalTransition;return V?V===!0?!0:V&&V.enabled:!1},r.prototype._innerSelect=function(V,oe){var ie,le,ue=this.option,de=ue.selectedMode,pe=oe.length;if(!(!de||!pe)){if(de==="series")ue.selectedMap="all";else if(de==="multiple"){isObject$3(ue.selectedMap)||(ue.selectedMap={});for(var he=ue.selectedMap,_e=0;_e0&&this._innerSelect(V,oe)}},r.registerClass=function(V){return ComponentModel$1.registerClass(V)},r.protoInitialize=function(){var V=r.prototype;V.type="series.__base__",V.seriesIndex=0,V.ignoreStyleOnData=!1,V.hasSymbolVisual=!1,V.defaultSymbol="circle",V.visualStyleAccessPath="itemStyle",V.visualDrawType="fill"}(),r}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName(t){var r=t.name;isNameSpecified(t)||(t.name=getSeriesAutoName(t)||r)}function getSeriesAutoName(t){var r=t.getRawData(),V=r.mapDimensionsAll("seriesName"),oe=[];return each$c(V,function(ie){var le=r.getDimensionInfo(ie);le.displayName&&oe.push(le.displayName)}),oe.join(" ")}function dataTaskCount(t){return t.model.getRawData().count()}function dataTaskReset(t){var r=t.model;return r.setData(r.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(t,r){r.outputData&&t.end>r.outputData.count()&&r.model.getRawData().cloneShallow(r.outputData)}function wrapData(t,r){each$c(concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(V){t.wrapMethod(V,curry$1(onDataChange,r))})}function onDataChange(t,r){var V=getCurrentTask(t);return V&&V.setOutputEnd((r||this).count()),r}function getCurrentTask(t){var r=(t.ecModel||{}).scheduler,V=r&&r.getPipeline(t.uid);if(V){var oe=V.currentTask;if(oe){var ie=oe.agentStubMap;ie&&(oe=ie.get(t.uid))}return oe}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function t(){this.group=new Group$3,this.uid=getUID("viewComponent")}return t.prototype.init=function(r,V){},t.prototype.render=function(r,V,oe,ie){},t.prototype.dispose=function(r,V){},t.prototype.updateView=function(r,V,oe,ie){},t.prototype.updateLayout=function(r,V,oe,ie){},t.prototype.updateVisual=function(r,V,oe,ie){},t.prototype.toggleBlurSeries=function(r,V,oe){},t.prototype.eachRendered=function(r){var V=this.group;V&&V.traverse(r)},t}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var t=makeInner();return function(r){var V=t(r),oe=r.pipelineContext,ie=!!V.large,le=!!V.progressiveRender,ue=V.large=!!(oe&&oe.large),de=V.progressiveRender=!!(oe&&oe.progressiveRender);return(ie!==ue||le!==de)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function t(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return t.prototype.init=function(r,V){},t.prototype.render=function(r,V,oe,ie){},t.prototype.highlight=function(r,V,oe,ie){var le=r.getData(ie&&ie.dataType);le&&toggleHighlight(le,ie,"emphasis")},t.prototype.downplay=function(r,V,oe,ie){var le=r.getData(ie&&ie.dataType);le&&toggleHighlight(le,ie,"normal")},t.prototype.remove=function(r,V){this.group.removeAll()},t.prototype.dispose=function(r,V){},t.prototype.updateView=function(r,V,oe,ie){this.render(r,V,oe,ie)},t.prototype.updateLayout=function(r,V,oe,ie){this.render(r,V,oe,ie)},t.prototype.updateVisual=function(r,V,oe,ie){this.render(r,V,oe,ie)},t.prototype.eachRendered=function(r){traverseElements(this.group,r)},t.markUpdateMethod=function(r,V){inner$a(r).updateMethod=V},t.protoInitialize=function(){var r=t.prototype;r.type="chart"}(),t}();function elSetState(t,r,V){t&&isHighDownDispatcher(t)&&(r==="emphasis"?enterEmphasis:leaveEmphasis)(t,V)}function toggleHighlight(t,r,V){var oe=queryDataIndex(t,r),ie=r&&r.highlightKey!=null?getHighlightDigit(r.highlightKey):null;oe!=null?each$c(normalizeToArray(oe),function(le){elSetState(t.getItemGraphicEl(le),V,ie)}):t.eachItemGraphicEl(function(le){elSetState(le,V,ie)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(t){return renderPlanner(t.model)}function renderTaskReset(t){var r=t.model,V=t.ecModel,oe=t.api,ie=t.payload,le=r.pipelineContext.progressiveRender,ue=t.view,de=ie&&inner$a(ie).updateMethod,pe=le?"incrementalPrepareRender":de&&ue[de]?de:"render";return pe!=="render"&&ue[pe](r,V,oe,ie),progressMethodMap[pe]}var progressMethodMap={incrementalPrepareRender:{progress:function(t,r){r.view.incrementalRender(t,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(t,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(t,r,V){var oe,ie=0,le=0,ue=null,de,pe,he,_e;r=r||0;function $e(){le=new Date().getTime(),ue=null,t.apply(pe,he||[])}var Ie=function(){for(var Ve=[],Fe=0;Fe=0?$e():ue=setTimeout($e,-de),ie=oe};return Ie.clear=function(){ue&&(clearTimeout(ue),ue=null)},Ie.debounceNextCall=function(Ve){_e=Ve},Ie}function createOrUpdate(t,r,V,oe){var ie=t[r];if(ie){var le=ie[ORIGIN_METHOD]||ie,ue=ie[THROTTLE_TYPE],de=ie[RATE];if(de!==V||ue!==oe){if(V==null||!oe)return t[r]=le;ie=t[r]=throttle(le,V,oe==="debounce"),ie[ORIGIN_METHOD]=le,ie[THROTTLE_TYPE]=oe,ie[RATE]=V}return ie}}function clear$1(t,r){var V=t[r];V&&V[ORIGIN_METHOD]&&(V.clear&&V.clear(),t[r]=V[ORIGIN_METHOD])}var inner$9=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper(t,r){var V=t.visualStyleMapper||defaultStyleMappers[r];return V||(console.warn("Unknown style type '"+r+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(t,r){var V=t.visualDrawType||defaultColorKey[r];return V||(console.warn("Unknown style type '"+r+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){var V=t.getData(),oe=t.visualStyleAccessPath||"itemStyle",ie=t.getModel(oe),le=getStyleMapper(t,oe),ue=le(ie),de=ie.getShallow("decal");de&&(V.setVisual("decal",de),de.dirty=!0);var pe=getDefaultColorKey(t,oe),he=ue[pe],_e=isFunction(he)?he:null,$e=ue.fill==="auto"||ue.stroke==="auto";if(!ue[pe]||_e||$e){var Ie=t.getColorFromPalette(t.name,null,r.getSeriesCount());ue[pe]||(ue[pe]=Ie,V.setVisual("colorFromPalette",!0)),ue.fill=ue.fill==="auto"||isFunction(ue.fill)?Ie:ue.fill,ue.stroke=ue.stroke==="auto"||isFunction(ue.stroke)?Ie:ue.stroke}if(V.setVisual("style",ue),V.setVisual("drawType",pe),!r.isSeriesFiltered(t)&&_e)return V.setVisual("colorFromPalette",!1),{dataEach:function(Ve,Fe){var Ue=t.getDataParams(Fe),qe=extend({},ue);qe[pe]=_e(Ue),Ve.setItemVisual(Fe,"style",qe)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){if(!(t.ignoreStyleOnData||r.isSeriesFiltered(t))){var V=t.getData(),oe=t.visualStyleAccessPath||"itemStyle",ie=getStyleMapper(t,oe),le=V.getVisual("drawType");return{dataEach:V.hasItemOption?function(ue,de){var pe=ue.getRawDataItem(de);if(pe&&pe[oe]){sharedModel.option=pe[oe];var he=ie(sharedModel),_e=ue.ensureUniqueItemVisual(de,"style");extend(_e,he),sharedModel.option.decal&&(ue.setItemVisual(de,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),le in he&&ue.setItemVisual(de,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(t){var r=createHashMap();t.eachSeries(function(V){var oe=V.getColorBy();if(!V.isColorBySeries()){var ie=V.type+"-"+oe,le=r.get(ie);le||(le={},r.set(ie,le)),inner$9(V).scope=le}}),t.eachSeries(function(V){if(!(V.isColorBySeries()||t.isSeriesFiltered(V))){var oe=V.getRawData(),ie={},le=V.getData(),ue=inner$9(V).scope,de=V.visualStyleAccessPath||"itemStyle",pe=getDefaultColorKey(V,de);le.each(function(he){var _e=le.getRawIndex(he);ie[_e]=he}),oe.each(function(he){var _e=ie[he],$e=le.getItemVisual(_e,"colorFromPalette");if($e){var Ie=le.ensureUniqueItemVisual(_e,"style"),Ve=oe.getName(he)||he+"",Fe=oe.count();Ie[pe]=V.getColorFromPalette(Ve,ue,Fe)}})}})}},PI$1=Math.PI;function defaultLoading(t,r){r=r||{},defaults(r,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var V=new Group$3,oe=new Rect$2({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4});V.add(oe);var ie=new ZRText$1({style:{text:r.text,fill:r.textColor,fontSize:r.fontSize,fontWeight:r.fontWeight,fontStyle:r.fontStyle,fontFamily:r.fontFamily},zlevel:r.zlevel,z:10001}),le=new Rect$2({style:{fill:"none"},textContent:ie,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});V.add(le);var ue;return r.showSpinner&&(ue=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001}),ue.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),ue.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),V.add(ue)),V.resize=function(){var de=ie.getBoundingRect().width,pe=r.showSpinner?r.spinnerRadius:0,he=(t.getWidth()-pe*2-(r.showSpinner&&de?10:0)-de)/2-(r.showSpinner&&de?0:5+de/2)+(r.showSpinner?0:de/2)+(de?0:pe),_e=t.getHeight()/2;r.showSpinner&&ue.setShape({cx:he,cy:_e}),le.setShape({x:he-pe,y:_e-pe,width:pe*2,height:pe*2}),oe.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},V.resize(),V}var Scheduler=function(){function t(r,V,oe,ie){this._stageTaskMap=createHashMap(),this.ecInstance=r,this.api=V,oe=this._dataProcessorHandlers=oe.slice(),ie=this._visualHandlers=ie.slice(),this._allHandlers=oe.concat(ie)}return t.prototype.restoreData=function(r,V){r.restoreData(V),this._stageTaskMap.each(function(oe){var ie=oe.overallTask;ie&&ie.dirty()})},t.prototype.getPerformArgs=function(r,V){if(r.__pipeline){var oe=this._pipelineMap.get(r.__pipeline.id),ie=oe.context,le=!V&&oe.progressiveEnabled&&(!ie||ie.progressiveRender)&&r.__idxInPipeline>oe.blockIndex,ue=le?oe.step:null,de=ie&&ie.modDataCount,pe=de!=null?Math.ceil(de/ue):null;return{step:ue,modBy:pe,modDataCount:de}}},t.prototype.getPipeline=function(r){return this._pipelineMap.get(r)},t.prototype.updateStreamModes=function(r,V){var oe=this._pipelineMap.get(r.uid),ie=r.getData(),le=ie.count(),ue=oe.progressiveEnabled&&V.incrementalPrepareRender&&le>=oe.threshold,de=r.get("large")&&le>=r.get("largeThreshold"),pe=r.get("progressiveChunkMode")==="mod"?le:null;r.pipelineContext=oe.context={progressiveRender:ue,modDataCount:pe,large:de}},t.prototype.restorePipelines=function(r){var V=this,oe=V._pipelineMap=createHashMap();r.eachSeries(function(ie){var le=ie.getProgressive(),ue=ie.uid;oe.set(ue,{id:ue,head:null,tail:null,threshold:ie.getProgressiveThreshold(),progressiveEnabled:le&&!(ie.preventIncremental&&ie.preventIncremental()),blockIndex:-1,step:Math.round(le||700),count:0}),V._pipe(ie,ie.dataTask)})},t.prototype.prepareStageTasks=function(){var r=this._stageTaskMap,V=this.api.getModel(),oe=this.api;each$c(this._allHandlers,function(ie){var le=r.get(ie.uid)||r.set(ie.uid,{}),ue="";assert(!(ie.reset&&ie.overallReset),ue),ie.reset&&this._createSeriesStageTask(ie,le,V,oe),ie.overallReset&&this._createOverallStageTask(ie,le,V,oe)},this)},t.prototype.prepareView=function(r,V,oe,ie){var le=r.renderTask,ue=le.context;ue.model=V,ue.ecModel=oe,ue.api=ie,le.__block=!r.incrementalPrepareRender,this._pipe(V,le)},t.prototype.performDataProcessorTasks=function(r,V){this._performStageTasks(this._dataProcessorHandlers,r,V,{block:!0})},t.prototype.performVisualTasks=function(r,V,oe){this._performStageTasks(this._visualHandlers,r,V,oe)},t.prototype._performStageTasks=function(r,V,oe,ie){ie=ie||{};var le=!1,ue=this;each$c(r,function(pe,he){if(!(ie.visualType&&ie.visualType!==pe.visualType)){var _e=ue._stageTaskMap.get(pe.uid),$e=_e.seriesTaskMap,Ie=_e.overallTask;if(Ie){var Ve,Fe=Ie.agentStubMap;Fe.each(function(qe){de(ie,qe)&&(qe.dirty(),Ve=!0)}),Ve&&Ie.dirty(),ue.updatePayload(Ie,oe);var Ue=ue.getPerformArgs(Ie,ie.block);Fe.each(function(qe){qe.perform(Ue)}),Ie.perform(Ue)&&(le=!0)}else $e&&$e.each(function(qe,Et){de(ie,qe)&&qe.dirty();var At=ue.getPerformArgs(qe,ie.block);At.skip=!pe.performRawSeries&&V.isSeriesFiltered(qe.context.model),ue.updatePayload(qe,oe),qe.perform(At)&&(le=!0)})}});function de(pe,he){return pe.setDirty&&(!pe.dirtyMap||pe.dirtyMap.get(he.__pipeline.id))}this.unfinished=le||this.unfinished},t.prototype.performSeriesTasks=function(r){var V;r.eachSeries(function(oe){V=oe.dataTask.perform()||V}),this.unfinished=V||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(r){var V=r.tail;do{if(V.__block){r.blockIndex=V.__idxInPipeline;break}V=V.getUpstream()}while(V)})},t.prototype.updatePayload=function(r,V){V!=="remain"&&(r.context.payload=V)},t.prototype._createSeriesStageTask=function(r,V,oe,ie){var le=this,ue=V.seriesTaskMap,de=V.seriesTaskMap=createHashMap(),pe=r.seriesType,he=r.getTargetSeries;r.createOnAllSeries?oe.eachRawSeries(_e):pe?oe.eachRawSeriesByType(pe,_e):he&&he(oe,ie).each(_e);function _e($e){var Ie=$e.uid,Ve=de.set(Ie,ue&&ue.get(Ie)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));Ve.context={model:$e,ecModel:oe,api:ie,useClearVisual:r.isVisual&&!r.isLayout,plan:r.plan,reset:r.reset,scheduler:le},le._pipe($e,Ve)}},t.prototype._createOverallStageTask=function(r,V,oe,ie){var le=this,ue=V.overallTask=V.overallTask||createTask({reset:overallTaskReset});ue.context={ecModel:oe,api:ie,overallReset:r.overallReset,scheduler:le};var de=ue.agentStubMap,pe=ue.agentStubMap=createHashMap(),he=r.seriesType,_e=r.getTargetSeries,$e=!0,Ie=!1,Ve="";assert(!r.createOnAllSeries,Ve),he?oe.eachRawSeriesByType(he,Fe):_e?_e(oe,ie).each(Fe):($e=!1,each$c(oe.getSeries(),Fe));function Fe(Ue){var qe=Ue.uid,Et=pe.set(qe,de&&de.get(qe)||(Ie=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));Et.context={model:Ue,overallProgress:$e},Et.agent=ue,Et.__block=$e,le._pipe(Ue,Et)}Ie&&ue.dirty()},t.prototype._pipe=function(r,V){var oe=r.uid,ie=this._pipelineMap.get(oe);!ie.head&&(ie.head=V),ie.tail&&ie.tail.pipe(V),ie.tail=V,V.__idxInPipeline=ie.count++,V.__pipeline=ie},t.wrapStageHandler=function(r,V){return isFunction(r)&&(r={overallReset:r,seriesType:detectSeriseType(r)}),r.uid=getUID("stageHandler"),V&&(r.visualType=V),r},t}();function overallTaskReset(t){t.overallReset(t.ecModel,t.api,t.payload)}function stubReset(t){return t.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function seriesTaskReset(t){t.useClearVisual&&t.data.clearAllVisual();var r=t.resetDefines=normalizeToArray(t.reset(t.model,t.ecModel,t.api,t.payload));return r.length>1?map$2(r,function(V,oe){return makeSeriesTaskProgress(oe)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(t){return function(r,V){var oe=V.data,ie=V.resetDefines[t];if(ie&&ie.dataEach)for(var le=r.start;le0&&Ve===he.length-Ie.length){var Fe=he.slice(0,Ve);Fe!=="data"&&(V.mainType=Fe,V[Ie.toLowerCase()]=pe,_e=!0)}}de.hasOwnProperty(he)&&(oe[he]=pe,_e=!0),_e||(ie[he]=pe)})}return{cptQuery:V,dataQuery:oe,otherQuery:ie}},t.prototype.filter=function(r,V){var oe=this.eventInfo;if(!oe)return!0;var ie=oe.targetEl,le=oe.packedEvent,ue=oe.model,de=oe.view;if(!ue||!de)return!0;var pe=V.cptQuery,he=V.dataQuery;return _e(pe,ue,"mainType")&&_e(pe,ue,"subType")&&_e(pe,ue,"index","componentIndex")&&_e(pe,ue,"name")&&_e(pe,ue,"id")&&_e(he,le,"name")&&_e(he,le,"dataIndex")&&_e(he,le,"dataType")&&(!de.filterForExposedEvent||de.filterForExposedEvent(r,V.otherQuery,ie,le));function _e($e,Ie,Ve,Fe){return $e[Ve]==null||Ie[Fe||Ve]===$e[Ve]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){var V=t.getData();if(t.legendIcon&&V.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var oe={},ie={},le=!1,ue=0;ue=0&&isSafeNum(pe)?pe:.5;var he=t.createRadialGradient(ue,de,0,ue,de,pe);return he}function getCanvasGradient(t,r,V){for(var oe=r.type==="radial"?createRadialGradient(t,r,V):createLinearGradient(t,r,V),ie=r.colorStops,le=0;le0)?null:t==="dashed"?[4*r,2*r]:t==="dotted"?[r]:isNumber(t)?[t]:isArray$1(t)?t:null}function getLineDash(t){var r=t.style,V=r.lineDash&&r.lineWidth>0&&normalizeLineDash(r.lineDash,r.lineWidth),oe=r.lineDashOffset;if(V){var ie=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;ie&&ie!==1&&(V=map$2(V,function(le){return le/ie}),oe/=ie)}return[V,oe]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke(t){var r=t.stroke;return!(r==null||r==="none"||!(t.lineWidth>0))}function isValidStrokeFillStyle(t){return typeof t=="string"&&t!=="none"}function styleHasFill(t){var r=t.fill;return r!=null&&r!=="none"}function doFillPath(t,r){if(r.fillOpacity!=null&&r.fillOpacity!==1){var V=t.globalAlpha;t.globalAlpha=r.fillOpacity*r.opacity,t.fill(),t.globalAlpha=V}else t.fill()}function doStrokePath(t,r){if(r.strokeOpacity!=null&&r.strokeOpacity!==1){var V=t.globalAlpha;t.globalAlpha=r.strokeOpacity*r.opacity,t.stroke(),t.globalAlpha=V}else t.stroke()}function createCanvasPattern(t,r,V){var oe=createOrUpdateImage(r.image,r.__image,V);if(isImageReady(oe)){var ie=t.createPattern(oe,r.repeat||"repeat");if(typeof DOMMatrix=="function"&&ie&&ie.setTransform){var le=new DOMMatrix;le.translateSelf(r.x||0,r.y||0),le.rotateSelf(0,0,(r.rotation||0)*RADIAN_TO_DEGREE),le.scaleSelf(r.scaleX||1,r.scaleY||1),ie.setTransform(le)}return ie}}function brushPath(t,r,V,oe){var ie,le=styleHasStroke(V),ue=styleHasFill(V),de=V.strokePercent,pe=de<1,he=!r.path;(!r.silent||pe)&&he&&r.createPathProxy();var _e=r.path||pathProxyForDraw,$e=r.__dirty;if(!oe){var Ie=V.fill,Ve=V.stroke,Fe=ue&&!!Ie.colorStops,Ue=le&&!!Ve.colorStops,qe=ue&&!!Ie.image,Et=le&&!!Ve.image,At=void 0,Lt=void 0,hn=void 0,_n=void 0,vn=void 0;(Fe||Ue)&&(vn=r.getBoundingRect()),Fe&&(At=$e?getCanvasGradient(t,Ie,vn):r.__canvasFillGradient,r.__canvasFillGradient=At),Ue&&(Lt=$e?getCanvasGradient(t,Ve,vn):r.__canvasStrokeGradient,r.__canvasStrokeGradient=Lt),qe&&(hn=$e||!r.__canvasFillPattern?createCanvasPattern(t,Ie,r):r.__canvasFillPattern,r.__canvasFillPattern=hn),Et&&(_n=$e||!r.__canvasStrokePattern?createCanvasPattern(t,Ve,r):r.__canvasStrokePattern,r.__canvasStrokePattern=hn),Fe?t.fillStyle=At:qe&&(hn?t.fillStyle=hn:ue=!1),Ue?t.strokeStyle=Lt:Et&&(_n?t.strokeStyle=_n:le=!1)}var bn=r.getGlobalScale();_e.setScale(bn[0],bn[1],r.segmentIgnoreThreshold);var Cn,Sn;t.setLineDash&&V.lineDash&&(ie=getLineDash(r),Cn=ie[0],Sn=ie[1]);var wn=!0;(he||$e&SHAPE_CHANGED_BIT)&&(_e.setDPR(t.dpr),pe?_e.setContext(null):(_e.setContext(t),wn=!1),_e.reset(),r.buildPath(_e,r.shape,oe),_e.toStatic(),r.pathUpdated()),wn&&_e.rebuildPath(t,pe?de:1),Cn&&(t.setLineDash(Cn),t.lineDashOffset=Sn),oe||(V.strokeFirst?(le&&doStrokePath(t,V),ue&&doFillPath(t,V)):(ue&&doFillPath(t,V),le&&doStrokePath(t,V))),Cn&&t.setLineDash([])}function brushImage(t,r,V){var oe=r.__image=createOrUpdateImage(V.image,r.__image,r,r.onload);if(!(!oe||!isImageReady(oe))){var ie=V.x||0,le=V.y||0,ue=r.getWidth(),de=r.getHeight(),pe=oe.width/oe.height;if(ue==null&&de!=null?ue=de*pe:de==null&&ue!=null?de=ue/pe:ue==null&&de==null&&(ue=oe.width,de=oe.height),V.sWidth&&V.sHeight){var he=V.sx||0,_e=V.sy||0;t.drawImage(oe,he,_e,V.sWidth,V.sHeight,ie,le,ue,de)}else if(V.sx&&V.sy){var he=V.sx,_e=V.sy,$e=ue-he,Ie=de-_e;t.drawImage(oe,he,_e,$e,Ie,ie,le,ue,de)}else t.drawImage(oe,ie,le,ue,de)}}function brushText(t,r,V){var oe,ie=V.text;if(ie!=null&&(ie+=""),ie){t.font=V.font||DEFAULT_FONT,t.textAlign=V.textAlign,t.textBaseline=V.textBaseline;var le=void 0,ue=void 0;t.setLineDash&&V.lineDash&&(oe=getLineDash(r),le=oe[0],ue=oe[1]),le&&(t.setLineDash(le),t.lineDashOffset=ue),V.strokeFirst?(styleHasStroke(V)&&t.strokeText(ie,V.x,V.y),styleHasFill(V)&&t.fillText(ie,V.x,V.y)):(styleHasFill(V)&&t.fillText(ie,V.x,V.y),styleHasStroke(V)&&t.strokeText(ie,V.x,V.y)),le&&t.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(t,r,V,oe,ie){var le=!1;if(!oe&&(V=V||{},r===V))return!1;if(oe||r.opacity!==V.opacity){flushPathDrawn(t,ie),le=!0;var ue=Math.max(Math.min(r.opacity,1),0);t.globalAlpha=isNaN(ue)?DEFAULT_COMMON_STYLE.opacity:ue}(oe||r.blend!==V.blend)&&(le||(flushPathDrawn(t,ie),le=!0),t.globalCompositeOperation=r.blend||DEFAULT_COMMON_STYLE.blend);for(var de=0;de0&&V.unfinished);V.unfinished||this._zr.flush()}}},r.prototype.getDom=function(){return this._dom},r.prototype.getId=function(){return this.id},r.prototype.getZr=function(){return this._zr},r.prototype.isSSR=function(){return this._ssr},r.prototype.setOption=function(V,oe,ie){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var le,ue,de;if(isObject$3(oe)&&(ie=oe.lazyUpdate,le=oe.silent,ue=oe.replaceMerge,de=oe.transition,oe=oe.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||oe){var pe=new OptionManager$1(this._api),he=this._theme,_e=this._model=new GlobalModel$1;_e.scheduler=this._scheduler,_e.ssr=this._ssr,_e.init(null,null,null,he,this._locale,pe)}this._model.setOption(V,{replaceMerge:ue},optionPreprocessorFuncs);var $e={seriesTransition:de,optionChanged:!0};if(ie)this[PENDING_UPDATE]={silent:le,updateParams:$e},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,$e)}catch(Ie){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,Ie}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,le),triggerUpdatedEvent.call(this,le)}}},r.prototype.setTheme=function(){},r.prototype.getModel=function(){return this._model},r.prototype.getOption=function(){return this._model&&this._model.getOption()},r.prototype.getWidth=function(){return this._zr.getWidth()},r.prototype.getHeight=function(){return this._zr.getHeight()},r.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},r.prototype.getRenderedCanvas=function(V){return this.renderToCanvas(V)},r.prototype.renderToCanvas=function(V){V=V||{};var oe=this._zr.painter;return oe.getRenderedCanvas({backgroundColor:V.backgroundColor||this._model.get("backgroundColor"),pixelRatio:V.pixelRatio||this.getDevicePixelRatio()})},r.prototype.renderToSVGString=function(V){V=V||{};var oe=this._zr.painter;return oe.renderToString({useViewBox:V.useViewBox})},r.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var V=this._zr,oe=V.storage.getDisplayList();return each$c(oe,function(ie){ie.stopAnimation(null,!0)}),V.painter.toDataURL()}},r.prototype.getDataURL=function(V){if(this._disposed){this.id;return}V=V||{};var oe=V.excludeComponents,ie=this._model,le=[],ue=this;each$c(oe,function(pe){ie.eachComponent({mainType:pe},function(he){var _e=ue._componentsMap[he.__viewId];_e.group.ignore||(le.push(_e),_e.group.ignore=!0)})});var de=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(V).toDataURL("image/"+(V&&V.type||"png"));return each$c(le,function(pe){pe.group.ignore=!1}),de},r.prototype.getConnectedDataURL=function(V){if(this._disposed){this.id;return}var oe=V.type==="svg",ie=this.group,le=Math.min,ue=Math.max,de=1/0;if(connectedGroups[ie]){var pe=de,he=de,_e=-de,$e=-de,Ie=[],Ve=V&&V.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(Lt,hn){if(Lt.group===ie){var _n=oe?Lt.getZr().painter.getSvgDom().innerHTML:Lt.renderToCanvas(clone$3(V)),vn=Lt.getDom().getBoundingClientRect();pe=le(vn.left,pe),he=le(vn.top,he),_e=ue(vn.right,_e),$e=ue(vn.bottom,$e),Ie.push({dom:_n,left:vn.left,top:vn.top})}}),pe*=Ve,he*=Ve,_e*=Ve,$e*=Ve;var Fe=_e-pe,Ue=$e-he,qe=platformApi.createCanvas(),Et=init$1(qe,{renderer:oe?"svg":"canvas"});if(Et.resize({width:Fe,height:Ue}),oe){var At="";return each$c(Ie,function(Lt){var hn=Lt.left-pe,_n=Lt.top-he;At+=''+Lt.dom+""}),Et.painter.getSvgRoot().innerHTML=At,V.connectedBackgroundColor&&Et.painter.setBackgroundColor(V.connectedBackgroundColor),Et.refreshImmediately(),Et.painter.toDataURL()}else return V.connectedBackgroundColor&&Et.add(new Rect$2({shape:{x:0,y:0,width:Fe,height:Ue},style:{fill:V.connectedBackgroundColor}})),each$c(Ie,function(Lt){var hn=new ZRImage$1({style:{x:Lt.left*Ve-pe,y:Lt.top*Ve-he,image:Lt.dom}});Et.add(hn)}),Et.refreshImmediately(),qe.toDataURL("image/"+(V&&V.type||"png"))}else return this.getDataURL(V)},r.prototype.convertToPixel=function(V,oe){return doConvertPixel(this,"convertToPixel",V,oe)},r.prototype.convertFromPixel=function(V,oe){return doConvertPixel(this,"convertFromPixel",V,oe)},r.prototype.containPixel=function(V,oe){if(this._disposed){this.id;return}var ie=this._model,le,ue=parseFinder$1(ie,V);return each$c(ue,function(de,pe){pe.indexOf("Models")>=0&&each$c(de,function(he){var _e=he.coordinateSystem;if(_e&&_e.containPoint)le=le||!!_e.containPoint(oe);else if(pe==="seriesModels"){var $e=this._chartsMap[he.__viewId];$e&&$e.containPoint&&(le=le||$e.containPoint(oe,he))}},this)},this),!!le},r.prototype.getVisual=function(V,oe){var ie=this._model,le=parseFinder$1(ie,V,{defaultMainType:"series"}),ue=le.seriesModel,de=ue.getData(),pe=le.hasOwnProperty("dataIndexInside")?le.dataIndexInside:le.hasOwnProperty("dataIndex")?de.indexOfRawIndex(le.dataIndex):null;return pe!=null?getItemVisualFromData(de,pe,oe):getVisualFromData(de,oe)},r.prototype.getViewOfComponentModel=function(V){return this._componentsMap[V.__viewId]},r.prototype.getViewOfSeriesModel=function(V){return this._chartsMap[V.__viewId]},r.prototype._initEvents=function(){var V=this;each$c(MOUSE_EVENT_NAMES,function(oe){var ie=function(le){var ue=V.getModel(),de=le.target,pe,he=oe==="globalout";if(he?pe={}:de&&findEventDispatcher(de,function(Fe){var Ue=getECData(Fe);if(Ue&&Ue.dataIndex!=null){var qe=Ue.dataModel||ue.getSeriesByIndex(Ue.seriesIndex);return pe=qe&&qe.getDataParams(Ue.dataIndex,Ue.dataType,de)||{},!0}else if(Ue.eventData)return pe=extend({},Ue.eventData),!0},!0),pe){var _e=pe.componentType,$e=pe.componentIndex;(_e==="markLine"||_e==="markPoint"||_e==="markArea")&&(_e="series",$e=pe.seriesIndex);var Ie=_e&&$e!=null&&ue.getComponent(_e,$e),Ve=Ie&&V[Ie.mainType==="series"?"_chartsMap":"_componentsMap"][Ie.__viewId];pe.event=le,pe.type=oe,V._$eventProcessor.eventInfo={targetEl:de,packedEvent:pe,model:Ie,view:Ve},V.trigger(oe,pe)}};ie.zrEventfulCallAtLast=!0,V._zr.on(oe,ie,V)}),each$c(eventActionMap,function(oe,ie){V._messageCenter.on(ie,function(le){this.trigger(ie,le)},V)}),each$c(["selectchanged"],function(oe){V._messageCenter.on(oe,function(ie){this.trigger(oe,ie)},V)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},r.prototype.isDisposed=function(){return this._disposed},r.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},r.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var V=this.getDom();V&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var oe=this,ie=oe._api,le=oe._model;each$c(oe._componentsViews,function(ue){ue.dispose(le,ie)}),each$c(oe._chartsViews,function(ue){ue.dispose(le,ie)}),oe._zr.dispose(),oe._dom=oe._model=oe._chartsMap=oe._componentsMap=oe._chartsViews=oe._componentsViews=oe._scheduler=oe._api=oe._zr=oe._throttledZrFlush=oe._theme=oe._coordSysMgr=oe._messageCenter=null,delete instances[oe.id]},r.prototype.resize=function(V){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(V);var oe=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!oe){var ie=oe.resetOption("media"),le=V&&V.silent;this[PENDING_UPDATE]&&(le==null&&(le=this[PENDING_UPDATE].silent),ie=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{ie&&prepare$1(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},V&&V.animation)})}catch(ue){throw this[IN_MAIN_PROCESS_KEY]=!1,ue}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,le),triggerUpdatedEvent.call(this,le)}}},r.prototype.showLoading=function(V,oe){if(this._disposed){this.id;return}if(isObject$3(V)&&(oe=V,V=""),V=V||"default",this.hideLoading(),!!loadingEffects[V]){var ie=loadingEffects[V](this._api,oe),le=this._zr;this._loadingFX=ie,le.add(ie)}},r.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},r.prototype.makeActionFromEvent=function(V){var oe=extend({},V);return oe.type=eventActionMap[V.type],oe},r.prototype.dispatchAction=function(V,oe){if(this._disposed){this.id;return}if(isObject$3(oe)||(oe={silent:!!oe}),!!actions[V.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(V);return}var ie=oe.silent;doDispatchAction.call(this,V,ie);var le=oe.flush;le?this._zr.flush():le!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,ie),triggerUpdatedEvent.call(this,ie)}},r.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},r.prototype.appendData=function(V){if(this._disposed){this.id;return}var oe=V.seriesIndex,ie=this.getModel(),le=ie.getSeriesByIndex(oe);le.appendData(V),this._scheduler.unfinished=!0,this.getZr().wakeUp()},r.internalField=function(){prepare$1=function($e){var Ie=$e._scheduler;Ie.restorePipelines($e._model),Ie.prepareStageTasks(),prepareView($e,!0),prepareView($e,!1),Ie.plan()},prepareView=function($e,Ie){for(var Ve=$e._model,Fe=$e._scheduler,Ue=Ie?$e._componentsViews:$e._chartsViews,qe=Ie?$e._componentsMap:$e._chartsMap,Et=$e._zr,At=$e._api,Lt=0;LtIe.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&Ie.eachSeries(function(qe){if(!qe.preventUsingHoverLayer){var Et=$e._chartsMap[qe.__viewId];Et.__alive&&Et.eachRendered(function(At){At.states.emphasis&&(At.states.emphasis.hoverLayer=!0)})}})}function ue($e,Ie){var Ve=$e.get("blendMode")||null;Ie.eachRendered(function(Fe){Fe.isGroup||(Fe.style.blend=Ve)})}function de($e,Ie){if(!$e.preventAutoZ){var Ve=$e.get("z")||0,Fe=$e.get("zlevel")||0;Ie.eachRendered(function(Ue){return pe(Ue,Ve,Fe,-1/0),!0})}}function pe($e,Ie,Ve,Fe){var Ue=$e.getTextContent(),qe=$e.getTextGuideLine(),Et=$e.isGroup;if(Et)for(var At=$e.childrenRef(),Lt=0;Lt0?{duration:Ue,delay:Ve.get("delay"),easing:Ve.get("easing")}:null;Ie.eachRendered(function(Et){if(Et.states&&Et.states.emphasis){if(isElementRemoved(Et))return;if(Et instanceof Path$1&&savePathStates(Et),Et.__dirty){var At=Et.prevStates;At&&Et.useStates(At)}if(Fe){Et.stateTransition=qe;var Lt=Et.getTextContent(),hn=Et.getTextGuideLine();Lt&&(Lt.stateTransition=qe),hn&&(hn.stateTransition=qe)}Et.__dirty&&ie(Et)}})}createExtensionAPI=function($e){return new(function(Ie){__extends(Ve,Ie);function Ve(){return Ie!==null&&Ie.apply(this,arguments)||this}return Ve.prototype.getCoordinateSystems=function(){return $e._coordSysMgr.getCoordinateSystems()},Ve.prototype.getComponentByElement=function(Fe){for(;Fe;){var Ue=Fe.__ecComponentInfo;if(Ue!=null)return $e._model.getComponent(Ue.mainType,Ue.index);Fe=Fe.parent}},Ve.prototype.enterEmphasis=function(Fe,Ue){enterEmphasis(Fe,Ue),markStatusToUpdate($e)},Ve.prototype.leaveEmphasis=function(Fe,Ue){leaveEmphasis(Fe,Ue),markStatusToUpdate($e)},Ve.prototype.enterBlur=function(Fe){enterBlur(Fe),markStatusToUpdate($e)},Ve.prototype.leaveBlur=function(Fe){leaveBlur(Fe),markStatusToUpdate($e)},Ve.prototype.enterSelect=function(Fe){enterSelect(Fe),markStatusToUpdate($e)},Ve.prototype.leaveSelect=function(Fe){leaveSelect(Fe),markStatusToUpdate($e)},Ve.prototype.getModel=function(){return $e.getModel()},Ve.prototype.getViewOfComponentModel=function(Fe){return $e.getViewOfComponentModel(Fe)},Ve.prototype.getViewOfSeriesModel=function(Fe){return $e.getViewOfSeriesModel(Fe)},Ve}(ExtensionAPI$1))($e)},enableConnect=function($e){function Ie(Ve,Fe){for(var Ue=0;Ue=0)){registeredTasks.push(V);var le=Scheduler$1.wrapStageHandler(V,ie);le.__prio=r,le.__raw=V,t.push(le)}}function registerLoading(t,r){loadingEffects[t]=r}function setCanvasCreator(t){setPlatformAPI({createCanvas:t})}function registerMap(t,r,V){var oe=getImpl("registerMap");oe&&oe(t,r,V)}function getMap(t){var r=getImpl("getMap");return r&&r(t)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={};function dataIndexMapValueLength(t){return t==null?0:t.length||1}function defaultKeyGetter(t){return t}var DataDiffer=function(){function t(r,V,oe,ie,le,ue){this._old=r,this._new=V,this._oldKeyGetter=oe||defaultKeyGetter,this._newKeyGetter=ie||defaultKeyGetter,this.context=le,this._diffModeMultiple=ue==="multiple"}return t.prototype.add=function(r){return this._add=r,this},t.prototype.update=function(r){return this._update=r,this},t.prototype.updateManyToOne=function(r){return this._updateManyToOne=r,this},t.prototype.updateOneToMany=function(r){return this._updateOneToMany=r,this},t.prototype.updateManyToMany=function(r){return this._updateManyToMany=r,this},t.prototype.remove=function(r){return this._remove=r,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var r=this._old,V=this._new,oe={},ie=new Array(r.length),le=new Array(V.length);this._initIndexMap(r,null,ie,"_oldKeyGetter"),this._initIndexMap(V,oe,le,"_newKeyGetter");for(var ue=0;ue1){var _e=pe.shift();pe.length===1&&(oe[de]=pe[0]),this._update&&this._update(_e,ue)}else he===1?(oe[de]=null,this._update&&this._update(pe,ue)):this._remove&&this._remove(ue)}this._performRestAdd(le,oe)},t.prototype._executeMultiple=function(){var r=this._old,V=this._new,oe={},ie={},le=[],ue=[];this._initIndexMap(r,oe,le,"_oldKeyGetter"),this._initIndexMap(V,ie,ue,"_newKeyGetter");for(var de=0;de1&&Ie===1)this._updateManyToOne&&this._updateManyToOne(_e,he),ie[pe]=null;else if($e===1&&Ie>1)this._updateOneToMany&&this._updateOneToMany(_e,he),ie[pe]=null;else if($e===1&&Ie===1)this._update&&this._update(_e,he),ie[pe]=null;else if($e>1&&Ie>1)this._updateManyToMany&&this._updateManyToMany(_e,he),ie[pe]=null;else if($e>1)for(var Ve=0;Ve<$e;Ve++)this._remove&&this._remove(he[Ve]);else this._remove&&this._remove(he)}this._performRestAdd(ue,ie)},t.prototype._performRestAdd=function(r,V){for(var oe=0;oe1)for(var de=0;de30}var isObject$1=isObject$3,map$1=map$2,CtorInt32Array=typeof Int32Array>"u"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function t(r,V){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var oe,ie=!1;isSeriesDataSchema(r)?(oe=r.dimensions,this._dimOmitted=r.isDimensionOmitted(),this._schema=r):(ie=!0,oe=r),oe=oe||["x","y"];for(var le={},ue=[],de={},pe=!1,he={},_e=0;_e=V)){var oe=this._store,ie=oe.getProvider();this._updateOrdinalMeta();var le=this._nameList,ue=this._idList,de=ie.getSource().sourceFormat,pe=de===SOURCE_FORMAT_ORIGINAL;if(pe&&!ie.pure)for(var he=[],_e=r;_e0},t.prototype.ensureUniqueItemVisual=function(r,V){var oe=this._itemVisuals,ie=oe[r];ie||(ie=oe[r]={});var le=ie[V];return le==null&&(le=this.getVisual(V),isArray$1(le)?le=le.slice():isObject$1(le)&&(le=extend({},le)),ie[V]=le),le},t.prototype.setItemVisual=function(r,V,oe){var ie=this._itemVisuals[r]||{};this._itemVisuals[r]=ie,isObject$1(V)?extend(ie,V):ie[V]=oe},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(r,V){isObject$1(r)?extend(this._layout,r):this._layout[r]=V},t.prototype.getLayout=function(r){return this._layout[r]},t.prototype.getItemLayout=function(r){return this._itemLayouts[r]},t.prototype.setItemLayout=function(r,V,oe){this._itemLayouts[r]=oe?extend(this._itemLayouts[r]||{},V):V},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(r,V){var oe=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(oe,this.dataType,r,V),this._graphicEls[r]=V},t.prototype.getItemGraphicEl=function(r){return this._graphicEls[r]},t.prototype.eachItemGraphicEl=function(r,V){each$c(this._graphicEls,function(oe,ie){oe&&r&&r.call(V,oe,ie)})},t.prototype.cloneShallow=function(r){return r||(r=new t(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(r,this),r._store=this._store,r},t.prototype.wrapMethod=function(r,V){var oe=this[r];isFunction(oe)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(r),this[r]=function(){var ie=oe.apply(this,arguments);return V.apply(this,[ie].concat(slice(arguments)))})},t.internalField=function(){prepareInvertedIndex=function(r){var V=r._invertedIndicesMap;each$c(V,function(oe,ie){var le=r._dimInfos[ie],ue=le.ordinalMeta,de=r._store;if(ue){oe=V[ie]=new CtorInt32Array(ue.categories.length);for(var pe=0;pe1&&(pe+="__ec__"+_e),ie[V]=pe}}}(),t}();const SeriesData$1=SeriesData;function createDimensions(t,r){return prepareSeriesDataSchema(t,r).dimensions}function prepareSeriesDataSchema(t,r){isSourceInstance(t)||(t=createSourceFromSeriesDataOption(t)),r=r||{};var V=r.coordDimensions||[],oe=r.dimensionsDefine||t.dimensionsDefine||[],ie=createHashMap(),le=[],ue=getDimCount(t,V,oe,r.dimensionsCount),de=r.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(ue),pe=oe===t.dimensionsDefine,he=pe?ensureSourceDimNameMap(t):createDimNameMap(oe),_e=r.encodeDefine;!_e&&r.encodeDefaulter&&(_e=r.encodeDefaulter(t,ue));for(var $e=createHashMap(_e),Ie=new CtorInt32Array$1(ue),Ve=0;Ve0&&(oe.name=ie+(le-1)),le++,r.set(ie,le)}}function getDimCount(t,r,V,oe){var ie=Math.max(t.dimensionsDetectedCount||1,r.length,V.length,oe||0);return each$c(r,function(le){var ue;isObject$3(le)&&(ue=le.dimsDef)&&(ie=Math.max(ie,ue.length))}),ie}function genCoordDimName(t,r,V){if(V||r.hasKey(t)){for(var oe=0;r.hasKey(t+oe);)oe++;t+=oe}return r.set(t,!0),t}var CoordSysInfo=function(){function t(r){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=r}return t}();function getCoordSysInfoBySeries(t){var r=t.get("coordinateSystem"),V=new CoordSysInfo(r),oe=fetchers[r];if(oe)return oe(t,V,V.axisMap,V.categoryAxisMap),V}var fetchers={cartesian2d:function(t,r,V,oe){var ie=t.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],le=t.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["x","y"],V.set("x",ie),V.set("y",le),isCategory(ie)&&(oe.set("x",ie),r.firstCategoryDimIndex=0),isCategory(le)&&(oe.set("y",le),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},singleAxis:function(t,r,V,oe){var ie=t.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["single"],V.set("single",ie),isCategory(ie)&&(oe.set("single",ie),r.firstCategoryDimIndex=0)},polar:function(t,r,V,oe){var ie=t.getReferringComponents("polar",SINGLE_REFERRING).models[0],le=ie.findAxisModel("radiusAxis"),ue=ie.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],V.set("radius",le),V.set("angle",ue),isCategory(le)&&(oe.set("radius",le),r.firstCategoryDimIndex=0),isCategory(ue)&&(oe.set("angle",ue),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},geo:function(t,r,V,oe){r.coordSysDims=["lng","lat"]},parallel:function(t,r,V,oe){var ie=t.ecModel,le=ie.getComponent("parallel",t.get("parallelIndex")),ue=r.coordSysDims=le.dimensions.slice();each$c(le.parallelAxisIndex,function(de,pe){var he=ie.getComponent("parallelAxis",de),_e=ue[pe];V.set(_e,he),isCategory(he)&&(oe.set(_e,he),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=pe))})}};function isCategory(t){return t.get("type")==="category"}function enableDataStack(t,r,V){V=V||{};var oe=V.byIndex,ie=V.stackedCoordDimension,le,ue,de;isLegacyDimensionsInput(r)?le=r:(ue=r.schema,le=ue.dimensions,de=r.store);var pe=!!(t&&t.get("stack")),he,_e,$e,Ie;if(each$c(le,function(At,Lt){isString(At)&&(le[Lt]=At={name:At}),pe&&!At.isExtraCoord&&(!oe&&!he&&At.ordinalMeta&&(he=At),!_e&&At.type!=="ordinal"&&At.type!=="time"&&(!ie||ie===At.coordDim)&&(_e=At))}),_e&&!oe&&!he&&(oe=!0),_e){$e="__\0ecstackresult_"+t.id,Ie="__\0ecstackedover_"+t.id,he&&(he.createInvertedIndices=!0);var Ve=_e.coordDim,Fe=_e.type,Ue=0;each$c(le,function(At){At.coordDim===Ve&&Ue++});var qe={name:$e,coordDim:Ve,coordDimIndex:Ue,type:Fe,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:le.length},Et={name:Ie,coordDim:Ie,coordDimIndex:Ue+1,type:Fe,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:le.length+1};ue?(de&&(qe.storeDimIndex=de.ensureCalculationDimension(Ie,Fe),Et.storeDimIndex=de.ensureCalculationDimension($e,Fe)),ue.appendCalculationDimension(qe),ue.appendCalculationDimension(Et)):(le.push(qe),le.push(Et))}return{stackedDimension:_e&&_e.name,stackedByDimension:he&&he.name,isStackedByIndex:oe,stackedOverDimension:Ie,stackResultDimension:$e}}function isLegacyDimensionsInput(t){return!isSeriesDataSchema(t.schema)}function isDimensionStacked(t,r){return!!r&&r===t.getCalculationInfo("stackedDimension")}function getStackedDimension(t,r){return isDimensionStacked(t,r)?t.getCalculationInfo("stackResultDimension"):r}function getCoordSysDimDefs(t,r){var V=t.get("coordinateSystem"),oe=CoordinateSystem.get(V),ie;return r&&r.coordSysDims&&(ie=map$2(r.coordSysDims,function(le){var ue={name:le},de=r.axisMap.get(le);if(de){var pe=de.get("type");ue.type=getDimensionTypeByAxis(pe)}return ue})),ie||(ie=oe&&(oe.getDimensionsInfo?oe.getDimensionsInfo():oe.dimensions.slice())||["x","y"]),ie}function injectOrdinalMeta(t,r,V){var oe,ie;return V&&each$c(t,function(le,ue){var de=le.coordDim,pe=V.categoryAxisMap.get(de);pe&&(oe==null&&(oe=ue),le.ordinalMeta=pe.getOrdinalMeta(),r&&(le.createInvertedIndices=!0)),le.otherDims.itemName!=null&&(ie=!0)}),!ie&&oe!=null&&(t[oe].otherDims.itemName=0),oe}function createSeriesData(t,r,V){V=V||{};var oe=r.getSourceManager(),ie,le=!1;t?(le=!0,ie=createSourceFromSeriesDataOption(t)):(ie=oe.getSource(),le=ie.sourceFormat===SOURCE_FORMAT_ORIGINAL);var ue=getCoordSysInfoBySeries(r),de=getCoordSysDimDefs(r,ue),pe=V.useEncodeDefaulter,he=isFunction(pe)?pe:pe?curry$1(makeSeriesEncodeForAxisCoordSys,de,r):null,_e={coordDimensions:de,generateCoord:V.generateCoord,encodeDefine:r.getEncode(),encodeDefaulter:he,canOmitUnusedDimensions:!le},$e=prepareSeriesDataSchema(ie,_e),Ie=injectOrdinalMeta($e.dimensions,V.createInvertedIndices,ue),Ve=le?null:oe.getSharedDataStore($e),Fe=enableDataStack(r,{schema:$e,store:Ve}),Ue=new SeriesData$1($e,r);Ue.setCalculationInfo(Fe);var qe=Ie!=null&&isNeedCompleteOrdinalData(ie)?function(Et,At,Lt,hn){return hn===Ie?Lt:this.defaultDimValueGetter(Et,At,Lt,hn)}:null;return Ue.hasItemOption=!1,Ue.initData(le?ie:Ve,null,qe),Ue}function isNeedCompleteOrdinalData(t){if(t.sourceFormat===SOURCE_FORMAT_ORIGINAL){var r=firstDataNotNull(t.data||[]);return!isArray$1(getDataItemValue(r))}}function firstDataNotNull(t){for(var r=0;rV[1]&&(V[1]=r[1])},t.prototype.unionExtentFromData=function(r,V){this.unionExtent(r.getApproximateExtent(V))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(r,V){var oe=this._extent;isNaN(r)||(oe[0]=r),isNaN(V)||(oe[1]=V)},t.prototype.isInExtentRange=function(r){return this._extent[0]<=r&&this._extent[1]>=r},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(r){this._isBlank=r},t}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function t(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this.uid=++uidBase}return t.createByAxisModel=function(r){var V=r.option,oe=V.data,ie=oe&&map$2(oe,getName);return new t({categories:ie,needCollect:!ie,deduplication:V.dedplication!==!1})},t.prototype.getOrdinal=function(r){return this._getOrCreateMap().get(r)},t.prototype.parseAndCollect=function(r){var V,oe=this._needCollect;if(!isString(r)&&!oe)return r;if(oe&&!this._deduplication)return V=this.categories.length,this.categories[V]=r,V;var ie=this._getOrCreateMap();return V=ie.get(r),V==null&&(oe?(V=this.categories.length,this.categories[V]=r,ie.set(r,V)):V=NaN),V},t.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},t}();function getName(t){return isObject$3(t)&&t.value!=null?t.value:t+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale(t){return t.type==="interval"||t.type==="log"}function intervalScaleNiceTicks(t,r,V,oe){var ie={},le=t[1]-t[0],ue=ie.interval=nice(le/r,!0);V!=null&&ueoe&&(ue=ie.interval=oe);var de=ie.intervalPrecision=getIntervalPrecision(ue),pe=ie.niceTickExtent=[round$1(Math.ceil(t[0]/ue)*ue,de),round$1(Math.floor(t[1]/ue)*ue,de)];return fixExtent(pe,t),ie}function increaseInterval(t){var r=Math.pow(10,quantityExponent(t)),V=t/r;return V?V===2?V=3:V===3?V=5:V*=2:V=1,round$1(V*r)}function getIntervalPrecision(t){return getPrecision(t)+2}function clamp(t,r,V){t[r]=Math.max(Math.min(t[r],V[1]),V[0])}function fixExtent(t,r){!isFinite(t[0])&&(t[0]=r[0]),!isFinite(t[1])&&(t[1]=r[1]),clamp(t,0,r),clamp(t,1,r),t[0]>t[1]&&(t[0]=t[1])}function contain$1(t,r){return t>=r[0]&&t<=r[1]}function normalize(t,r){return r[1]===r[0]?.5:(t-r[0])/(r[1]-r[0])}function scale(t,r){return t*(r[1]-r[0])+r[0]}var OrdinalScale=function(t){__extends(r,t);function r(V){var oe=t.call(this,V)||this;oe.type="ordinal";var ie=oe.getSetting("ordinalMeta");return ie||(ie=new OrdinalMeta$1({})),isArray$1(ie)&&(ie=new OrdinalMeta$1({categories:map$2(ie,function(le){return isObject$3(le)?le.value:le})})),oe._ordinalMeta=ie,oe._extent=oe.getSetting("extent")||[0,ie.categories.length-1],oe}return r.prototype.parse=function(V){return V==null?NaN:isString(V)?this._ordinalMeta.getOrdinal(V):Math.round(V)},r.prototype.contain=function(V){return V=this.parse(V),contain$1(V,this._extent)&&this._ordinalMeta.categories[V]!=null},r.prototype.normalize=function(V){return V=this._getTickNumber(this.parse(V)),normalize(V,this._extent)},r.prototype.scale=function(V){return V=Math.round(scale(V,this._extent)),this.getRawOrdinalNumber(V)},r.prototype.getTicks=function(){for(var V=[],oe=this._extent,ie=oe[0];ie<=oe[1];)V.push({value:ie}),ie++;return V},r.prototype.getMinorTicks=function(V){},r.prototype.setSortInfo=function(V){if(V==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var oe=V.ordinalNumbers,ie=this._ordinalNumbersByTick=[],le=this._ticksByOrdinalNumber=[],ue=0,de=this._ordinalMeta.categories.length,pe=Math.min(de,oe.length);ue=0&&V=0&&V=V},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r.prototype.calcNiceTicks=function(){},r.prototype.calcNiceExtent=function(){},r.type="ordinal",r}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type="interval",V._interval=0,V._intervalPrecision=2,V}return r.prototype.parse=function(V){return V},r.prototype.contain=function(V){return contain$1(V,this._extent)},r.prototype.normalize=function(V){return normalize(V,this._extent)},r.prototype.scale=function(V){return scale(V,this._extent)},r.prototype.setExtent=function(V,oe){var ie=this._extent;isNaN(V)||(ie[0]=parseFloat(V)),isNaN(oe)||(ie[1]=parseFloat(oe))},r.prototype.unionExtent=function(V){var oe=this._extent;V[0]oe[1]&&(oe[1]=V[1]),this.setExtent(oe[0],oe[1])},r.prototype.getInterval=function(){return this._interval},r.prototype.setInterval=function(V){this._interval=V,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(V)},r.prototype.getTicks=function(V){var oe=this._interval,ie=this._extent,le=this._niceExtent,ue=this._intervalPrecision,de=[];if(!oe)return de;var pe=1e4;ie[0]pe)return[];var _e=de.length?de[de.length-1].value:le[1];return ie[1]>_e&&(V?de.push({value:roundNumber(_e+oe,ue)}):de.push({value:ie[1]})),de},r.prototype.getMinorTicks=function(V){for(var oe=this.getTicks(!0),ie=[],le=this.getExtent(),ue=1;uele[0]&&Ve0&&(le=le===null?de:Math.min(le,de))}V[oe]=le}}return V}function makeColumnLayout(t){var r=getValueAxesMinGaps(t),V=[];return each$c(t,function(oe){var ie=oe.coordinateSystem,le=ie.getBaseAxis(),ue=le.getExtent(),de;if(le.type==="category")de=le.getBandWidth();else if(le.type==="value"||le.type==="time"){var pe=le.dim+"_"+le.index,he=r[pe],_e=Math.abs(ue[1]-ue[0]),$e=le.scale.getExtent(),Ie=Math.abs($e[1]-$e[0]);de=he?_e/Ie*he:_e}else{var Ve=oe.getData();de=Math.abs(ue[1]-ue[0])/Ve.count()}var Fe=parsePercent(oe.get("barWidth"),de),Ue=parsePercent(oe.get("barMaxWidth"),de),qe=parsePercent(oe.get("barMinWidth")||(isInLargeMode(oe)?.5:1),de),Et=oe.get("barGap"),At=oe.get("barCategoryGap");V.push({bandWidth:de,barWidth:Fe,barMaxWidth:Ue,barMinWidth:qe,barGap:Et,barCategoryGap:At,axisKey:getAxisKey(le),stackId:getSeriesStackId(oe)})}),doCalBarWidthAndOffset(V)}function doCalBarWidthAndOffset(t){var r={};each$c(t,function(oe,ie){var le=oe.axisKey,ue=oe.bandWidth,de=r[le]||{bandWidth:ue,remainedWidth:ue,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},pe=de.stacks;r[le]=de;var he=oe.stackId;pe[he]||de.autoWidthCount++,pe[he]=pe[he]||{width:0,maxWidth:0};var _e=oe.barWidth;_e&&!pe[he].width&&(pe[he].width=_e,_e=Math.min(de.remainedWidth,_e),de.remainedWidth-=_e);var $e=oe.barMaxWidth;$e&&(pe[he].maxWidth=$e);var Ie=oe.barMinWidth;Ie&&(pe[he].minWidth=Ie);var Ve=oe.barGap;Ve!=null&&(de.gap=Ve);var Fe=oe.barCategoryGap;Fe!=null&&(de.categoryGap=Fe)});var V={};return each$c(r,function(oe,ie){V[ie]={};var le=oe.stacks,ue=oe.bandWidth,de=oe.categoryGap;if(de==null){var pe=keys(le).length;de=Math.max(35-pe*4,15)+"%"}var he=parsePercent(de,ue),_e=parsePercent(oe.gap,1),$e=oe.remainedWidth,Ie=oe.autoWidthCount,Ve=($e-he)/(Ie+(Ie-1)*_e);Ve=Math.max(Ve,0),each$c(le,function(Et){var At=Et.maxWidth,Lt=Et.minWidth;if(Et.width){var hn=Et.width;At&&(hn=Math.min(hn,At)),Lt&&(hn=Math.max(hn,Lt)),Et.width=hn,$e-=hn+_e*hn,Ie--}else{var hn=Ve;At&&Athn&&(hn=Lt),hn!==Ve&&(Et.width=hn,$e-=hn+_e*hn,Ie--)}}),Ve=($e-he)/(Ie+(Ie-1)*_e),Ve=Math.max(Ve,0);var Fe=0,Ue;each$c(le,function(Et,At){Et.width||(Et.width=Ve),Ue=Et,Fe+=Et.width*(1+_e)}),Ue&&(Fe-=Ue.width*_e);var qe=-Fe/2;each$c(le,function(Et,At){V[ie][At]=V[ie][At]||{bandWidth:ue,offset:qe,width:Et.width},qe+=Et.width*(1+_e)})}),V}function retrieveColumnLayout(t,r,V){if(t&&r){var oe=t[getAxisKey(r)];return oe!=null&&V!=null?oe[getSeriesStackId(V)]:oe}}function layout$2(t,r){var V=prepareLayoutBarSeries(t,r),oe=makeColumnLayout(V);each$c(V,function(ie){var le=ie.getData(),ue=ie.coordinateSystem,de=ue.getBaseAxis(),pe=getSeriesStackId(ie),he=oe[getAxisKey(de)][pe],_e=he.offset,$e=he.width;le.setLayout({bandWidth:he.bandWidth,offset:_e,size:$e})})}function createProgressiveLayout(t){return{seriesType:t,plan:createRenderPlanner(),reset:function(r){if(isOnCartesian(r)){var V=r.getData(),oe=r.coordinateSystem,ie=oe.getBaseAxis(),le=oe.getOtherAxis(ie),ue=V.getDimensionIndex(V.mapDimension(le.dim)),de=V.getDimensionIndex(V.mapDimension(ie.dim)),pe=r.get("showBackground",!0),he=V.mapDimension(le.dim),_e=V.getCalculationInfo("stackResultDimension"),$e=isDimensionStacked(V,he)&&!!V.getCalculationInfo("stackedOnSeries"),Ie=le.isHorizontal(),Ve=getValueAxisStart(ie,le),Fe=isInLargeMode(r),Ue=r.get("barMinHeight")||0,qe=_e&&V.getDimensionIndex(_e),Et=V.getLayout("size"),At=V.getLayout("offset");return{progress:function(Lt,hn){for(var _n=Lt.count,vn=Fe&&createFloat32Array(_n*3),bn=Fe&&pe&&createFloat32Array(_n*3),Cn=Fe&&createFloat32Array(_n),Sn=oe.master.getRect(),wn=Ie?Sn.width:Sn.height,En,xn=hn.getStore(),Pn=0;(En=Lt.next())!=null;){var kn=xn.get($e?qe:ue,En),Nn=xn.get(de,En),Dn=Ve,Mn=void 0;$e&&(Mn=+kn-xn.get(ue,En));var Ln=void 0,An=void 0,Vn=void 0,Wn=void 0;if(Ie){var Fn=oe.dataToPoint([kn,Nn]);if($e){var Yn=oe.dataToPoint([Mn,Nn]);Dn=Yn[0]}Ln=Dn,An=Fn[1]+At,Vn=Fn[0]-Dn,Wn=Et,Math.abs(Vn)>>1;t[ie][1]ie&&(this._approxInterval=ie);var de=scaleIntervals.length,pe=Math.min(bisect(scaleIntervals,this._approxInterval,0,de),de-1);this._interval=scaleIntervals[pe][1],this._minLevelUnit=scaleIntervals[Math.max(pe-1,0)][0]},r.prototype.parse=function(V){return isNumber(V)?V:+parseDate(V)},r.prototype.contain=function(V){return contain$1(this.parse(V),this._extent)},r.prototype.normalize=function(V){return normalize(this.parse(V),this._extent)},r.prototype.scale=function(V){return scale(V,this._extent)},r.type="time",r}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame(t,r,V,oe){var ie=parseDate(r),le=parseDate(V),ue=function(Fe){return getUnitValue(ie,Fe,oe)===getUnitValue(le,Fe,oe)},de=function(){return ue("year")},pe=function(){return de()&&ue("month")},he=function(){return pe()&&ue("day")},_e=function(){return he()&&ue("hour")},$e=function(){return _e()&&ue("minute")},Ie=function(){return $e()&&ue("second")},Ve=function(){return Ie()&&ue("millisecond")};switch(t){case"year":return de();case"month":return pe();case"day":return he();case"hour":return _e();case"minute":return $e();case"second":return Ie();case"millisecond":return Ve()}}function getDateInterval(t,r){return t/=ONE_DAY,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function getMonthInterval(t){var r=30*ONE_DAY;return t/=r,t>6?6:t>3?3:t>2?2:1}function getHourInterval(t){return t/=ONE_HOUR,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function getMinutesAndSecondsInterval(t,r){return t/=r?ONE_MINUTE:ONE_SECOND,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function getMillisecondsInterval(t){return nice(t,!0)}function getFirstTimestampOfUnit(t,r,V){var oe=new Date(t);switch(getPrimaryTimeUnit(r)){case"year":case"month":oe[monthSetterName(V)](0);case"day":oe[dateSetterName(V)](1);case"hour":oe[hoursSetterName(V)](0);case"minute":oe[minutesSetterName(V)](0);case"second":oe[secondsSetterName(V)](0),oe[millisecondsSetterName(V)](0)}return oe.getTime()}function getIntervalTicks(t,r,V,oe){var ie=1e4,le=timeUnits,ue=0;function de(wn,En,xn,Pn,kn,Nn,Dn){for(var Mn=new Date(En),Ln=En,An=Mn[Pn]();Ln1&&Nn===0&&xn.unshift({value:xn[0].value-Ln})}}for(var Nn=0;Nn=oe[0]&&At<=oe[1]&&$e++)}var Lt=(oe[1]-oe[0])/r;if($e>Lt*1.5&&Ie>Lt/1.5||(he.push(qe),$e>Lt||t===le[Ve]))break}_e=[]}}}for(var hn=filter(map$2(he,function(wn){return filter(wn,function(En){return En.value>=oe[0]&&En.value<=oe[1]&&!En.notAdd})}),function(wn){return wn.length>0}),_n=[],vn=hn.length-1,Ve=0;Ve0;)le*=10;var de=[round$1(mathCeil(oe[0]/le)*le),round$1(mathFloor(oe[1]/le)*le)];this._interval=le,this._niceExtent=de}},r.prototype.calcNiceExtent=function(V){intervalScaleProto.calcNiceExtent.call(this,V),this._fixMin=V.fixMin,this._fixMax=V.fixMax},r.prototype.parse=function(V){return V},r.prototype.contain=function(V){return V=mathLog$1(V)/mathLog$1(this.base),contain$1(V,this._extent)},r.prototype.normalize=function(V){return V=mathLog$1(V)/mathLog$1(this.base),normalize(V,this._extent)},r.prototype.scale=function(V){return V=scale(V,this._extent),mathPow$1(this.base,V)},r.type="log",r}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError(t,r){return roundingErrorFix(t,getPrecision(r))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function t(r,V,oe){this._prepareParams(r,V,oe)}return t.prototype._prepareParams=function(r,V,oe){oe[1]0&&pe>0&&!he&&(de=0),de<0&&pe<0&&!_e&&(pe=0));var Ie=this._determinedMin,Ve=this._determinedMax;return Ie!=null&&(de=Ie,he=!0),Ve!=null&&(pe=Ve,_e=!0),{min:de,max:pe,minFixed:he,maxFixed:_e,isBlank:$e}},t.prototype.modifyDataMinMax=function(r,V){this[DATA_MIN_MAX_ATTR[r]]=V},t.prototype.setDeterminedMinMax=function(r,V){var oe=DETERMINED_MIN_MAX_ATTR[r];this[oe]=V},t.prototype.freeze=function(){this.frozen=!0},t}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo(t,r,V){var oe=t.rawExtentInfo;return oe||(oe=new ScaleRawExtentInfo(t,r,V),t.rawExtentInfo=oe,oe)}function parseAxisModelMinMax(t,r){return r==null?null:eqNaN(r)?NaN:t.parse(r)}function getScaleExtent(t,r){var V=t.type,oe=ensureScaleRawExtentInfo(t,r,t.getExtent()).calculate();t.setBlank(oe.isBlank);var ie=oe.min,le=oe.max,ue=r.ecModel;if(ue&&V==="time"){var de=prepareLayoutBarSeries("bar",ue),pe=!1;if(each$c(de,function($e){pe=pe||$e.getBaseAxis()===r.axis}),pe){var he=makeColumnLayout(de),_e=adjustScaleForOverflow(ie,le,r,he);ie=_e.min,le=_e.max}}return{extent:[ie,le],fixMin:oe.minFixed,fixMax:oe.maxFixed}}function adjustScaleForOverflow(t,r,V,oe){var ie=V.axis.getExtent(),le=ie[1]-ie[0],ue=retrieveColumnLayout(oe,V.axis);if(ue===void 0)return{min:t,max:r};var de=1/0;each$c(ue,function(Ve){de=Math.min(Ve.offset,de)});var pe=-1/0;each$c(ue,function(Ve){pe=Math.max(Ve.offset+Ve.width,pe)}),de=Math.abs(de),pe=Math.abs(pe);var he=de+pe,_e=r-t,$e=1-(de+pe)/le,Ie=_e/$e-_e;return r+=Ie*(pe/he),t-=Ie*(de/he),{min:t,max:r}}function niceScaleExtent(t,r){var V=r,oe=getScaleExtent(t,V),ie=oe.extent,le=V.get("splitNumber");t instanceof LogScale$1&&(t.base=V.get("logBase"));var ue=t.type,de=V.get("interval"),pe=ue==="interval"||ue==="time";t.setExtent(ie[0],ie[1]),t.calcNiceExtent({splitNumber:le,fixMin:oe.fixMin,fixMax:oe.fixMax,minInterval:pe?V.get("minInterval"):null,maxInterval:pe?V.get("maxInterval"):null}),de!=null&&t.setInterval&&t.setInterval(de)}function createScaleByModel(t,r){if(r=r||t.get("type"),r)switch(r){case"category":return new OrdinalScale$1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Scale$1.getClass(r)||IntervalScale$1)}}function ifAxisCrossZero(t){var r=t.scale.getExtent(),V=r[0],oe=r[1];return!(V>0&&oe>0||V<0&&oe<0)}function makeLabelFormatter(t){var r=t.getLabelModel().get("formatter"),V=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(oe){return function(ie,le){return t.scale.getFormattedLabel(ie,le,oe)}}(r):isString(r)?function(oe){return function(ie){var le=t.scale.getLabel(ie),ue=oe.replace("{value}",le??"");return ue}}(r):isFunction(r)?function(oe){return function(ie,le){return V!=null&&(le=ie.value-V),oe(getAxisRawValue(t,ie),le,ie.level!=null?{level:ie.level}:null)}}(r):function(oe){return t.scale.getLabel(oe)}}function getAxisRawValue(t,r){return t.type==="category"?t.scale.getLabel(r):r.value}function estimateLabelUnionRect(t){var r=t.model,V=t.scale;if(!(!r.get(["axisLabel","show"])||V.isBlank())){var oe,ie,le=V.getExtent();V instanceof OrdinalScale$1?ie=V.count():(oe=V.getTicks(),ie=oe.length);var ue=t.getLabelModel(),de=makeLabelFormatter(t),pe,he=1;ie>40&&(he=Math.ceil(ie/40));for(var _e=0;_et[1]&&(t[1]=ie[1])})}var AxisModelCommonMixin=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var r=this.option;return!r.scale},t.prototype.getCoordSysModel=function(){},t}();function createList(t){return createSeriesData(null,t)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale(t,r){var V=r;r instanceof Model$1||(V=new Model$1(r));var oe=createScaleByModel(V);return oe.setExtent(t[0],t[1]),niceScaleExtent(oe,V),oe}function mixinAxisModelCommonMethods(t){mixin(t,AxisModelCommonMixin)}function createTextStyle(t,r){return r=r||{},createTextStyle$1(t,null,null,r.state!=="normal")}const helper=Object.freeze(Object.defineProperty({__proto__:null,createDimensions,createList,createScale,createSymbol,createTextStyle,dataStack,enableHoverEmphasis,getECData,getLayoutRect,mixinAxisModelCommonMethods},Symbol.toStringTag,{value:"Module"}));var extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap,registerImpl,PRIORITY,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,registerComponentModel:function(t){ComponentModel$1.registerClass(t)},registerComponentView:function(t){ComponentView$1.registerClass(t)},registerSeriesModel:function(t){SeriesModel$1.registerClass(t)},registerChartView:function(t){ChartView$1.registerClass(t)},registerSubTypeDefaulter:function(t,r){ComponentModel$1.registerSubTypeDefaulter(t,r)},registerPainter:function(t,r){registerPainter(t,r)}};function use$1(t){if(isArray$1(t)){each$c(t,function(r){use$1(r)});return}indexOf(extensions,t)>=0||(extensions.push(t),isFunction(t)&&(t={install:t}),t.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual(t,r){return Math.abs(t-r)ie&&(oe=ue,ie=pe)}if(oe)return centroid(oe.exterior);var he=this.getBoundingRect();return[he.x+he.width/2,he.y+he.height/2]},r.prototype.getBoundingRect=function(V){var oe=this._rect;if(oe&&!V)return oe;var ie=[1/0,1/0],le=[-1/0,-1/0],ue=this.geometries;return each$c(ue,function(de){de.type==="polygon"?updateBBoxFromPoints(de.exterior,ie,le,V):each$c(de.points,function(pe){updateBBoxFromPoints(pe,ie,le,V)})}),isFinite(ie[0])&&isFinite(ie[1])&&isFinite(le[0])&&isFinite(le[1])||(ie[0]=ie[1]=le[0]=le[1]=0),oe=new BoundingRect$1(ie[0],ie[1],le[0]-ie[0],le[1]-ie[1]),V||(this._rect=oe),oe},r.prototype.contain=function(V){var oe=this.getBoundingRect(),ie=this.geometries;if(!oe.contain(V[0],V[1]))return!1;e:for(var le=0,ue=ie.length;le>1^-(de&1),pe=pe>>1^-(pe&1),de+=ie,pe+=le,ie=de,le=pe,oe.push([de/V,pe/V])}return oe}function parseGeoJSON(t,r){return t=decode(t),map$2(filter(t.features,function(V){return V.geometry&&V.properties&&V.geometry.coordinates.length>0}),function(V){var oe=V.properties,ie=V.geometry,le=[];switch(ie.type){case"Polygon":var ue=ie.coordinates;le.push(new GeoJSONPolygonGeometry(ue[0],ue.slice(1)));break;case"MultiPolygon":each$c(ie.coordinates,function(pe){pe[0]&&le.push(new GeoJSONPolygonGeometry(pe[0],pe.slice(1)))});break;case"LineString":le.push(new GeoJSONLineStringGeometry([ie.coordinates]));break;case"MultiLineString":le.push(new GeoJSONLineStringGeometry(ie.coordinates))}var de=new GeoJSONRegion(oe[r||"name"],le,oe.cp);return de.properties=oe,de})}const number=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER,asc:asc$2,getPercentWithPrecision,getPixelPrecision,getPrecision,getPrecisionSafe,isNumeric,isRadianAroundZero,linearMap:linearMap$2,nice,numericToNumber,parseDate,quantile,quantity,quantityExponent,reformIntervals,remRadian,round:round$1},Symbol.toStringTag,{value:"Module"})),time=Object.freeze(Object.defineProperty({__proto__:null,format:format$1,parse:parseDate},Symbol.toStringTag,{value:"Module"})),graphic=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,initProps,makeImage,makePath,mergePath,registerShape,resizePath,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"})),format=Object.freeze(Object.defineProperty({__proto__:null,addCommas,capitalFirst,encodeHTML,formatTime,formatTpl,getTextRect,getTooltipMarker,normalizeCssArray,toCamelCase,truncateText},Symbol.toStringTag,{value:"Module"})),util=Object.freeze(Object.defineProperty({__proto__:null,bind:bind$1,clone:clone$3,curry:curry$1,defaults,each:each$c,extend,filter,indexOf,inherits,isArray:isArray$1,isFunction,isObject:isObject$3,isString,map:map$2,merge,reduce},Symbol.toStringTag,{value:"Module"}));var inner$7=makeInner();function createAxisLabels(t){return t.type==="category"?makeCategoryLabels(t):makeRealNumberLabels(t)}function createAxisTicks(t,r){return t.type==="category"?makeCategoryTicks(t,r):{ticks:map$2(t.scale.getTicks(),function(V){return V.value})}}function makeCategoryLabels(t){var r=t.getLabelModel(),V=makeCategoryLabelsActually(t,r);return!r.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:V.labelCategoryInterval}:V}function makeCategoryLabelsActually(t,r){var V=getListCache(t,"labels"),oe=getOptionCategoryInterval(r),ie=listCacheGet(V,oe);if(ie)return ie;var le,ue;return isFunction(oe)?le=makeLabelsByCustomizedCategoryInterval(t,oe):(ue=oe==="auto"?makeAutoCategoryInterval(t):oe,le=makeLabelsByNumericCategoryInterval(t,ue)),listCacheSet(V,oe,{labels:le,labelCategoryInterval:ue})}function makeCategoryTicks(t,r){var V=getListCache(t,"ticks"),oe=getOptionCategoryInterval(r),ie=listCacheGet(V,oe);if(ie)return ie;var le,ue;if((!r.get("show")||t.scale.isBlank())&&(le=[]),isFunction(oe))le=makeLabelsByCustomizedCategoryInterval(t,oe,!0);else if(oe==="auto"){var de=makeCategoryLabelsActually(t,t.getLabelModel());ue=de.labelCategoryInterval,le=map$2(de.labels,function(pe){return pe.tickValue})}else ue=oe,le=makeLabelsByNumericCategoryInterval(t,ue,!0);return listCacheSet(V,oe,{ticks:le,tickCategoryInterval:ue})}function makeRealNumberLabels(t){var r=t.scale.getTicks(),V=makeLabelFormatter(t);return{labels:map$2(r,function(oe,ie){return{level:oe.level,formattedLabel:V(oe,ie),rawLabel:t.scale.getLabel(oe),tickValue:oe.value}})}}function getListCache(t,r){return inner$7(t)[r]||(inner$7(t)[r]=[])}function listCacheGet(t,r){for(var V=0;V40&&(de=Math.max(1,Math.floor(ue/40)));for(var pe=le[0],he=t.dataToCoord(pe+1)-t.dataToCoord(pe),_e=Math.abs(he*Math.cos(oe)),$e=Math.abs(he*Math.sin(oe)),Ie=0,Ve=0;pe<=le[1];pe+=de){var Fe=0,Ue=0,qe=getBoundingRect(V({value:pe}),r.font,"center","top");Fe=qe.width*1.3,Ue=qe.height*1.3,Ie=Math.max(Ie,Fe,7),Ve=Math.max(Ve,Ue,7)}var Et=Ie/_e,At=Ve/$e;isNaN(Et)&&(Et=1/0),isNaN(At)&&(At=1/0);var Lt=Math.max(0,Math.floor(Math.min(Et,At))),hn=inner$7(t.model),_n=t.getExtent(),vn=hn.lastAutoInterval,bn=hn.lastTickCount;return vn!=null&&bn!=null&&Math.abs(vn-Lt)<=1&&Math.abs(bn-ue)<=1&&vn>Lt&&hn.axisExtent0===_n[0]&&hn.axisExtent1===_n[1]?Lt=vn:(hn.lastTickCount=ue,hn.lastAutoInterval=Lt,hn.axisExtent0=_n[0],hn.axisExtent1=_n[1]),Lt}function fetchAutoCategoryIntervalCalculationParams(t){var r=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()}}function makeLabelsByNumericCategoryInterval(t,r,V){var oe=makeLabelFormatter(t),ie=t.scale,le=ie.getExtent(),ue=t.getLabelModel(),de=[],pe=Math.max((r||0)+1,1),he=le[0],_e=ie.count();he!==0&&pe>1&&_e/pe>2&&(he=Math.round(Math.ceil(he/pe)*pe));var $e=shouldShowAllLabels(t),Ie=ue.get("showMinLabel")||$e,Ve=ue.get("showMaxLabel")||$e;Ie&&he!==le[0]&&Ue(le[0]);for(var Fe=he;Fe<=le[1];Fe+=pe)Ue(Fe);Ve&&Fe-pe!==le[1]&&Ue(le[1]);function Ue(qe){var Et={value:qe};de.push(V?qe:{formattedLabel:oe(Et),rawLabel:ie.getLabel(Et),tickValue:qe})}return de}function makeLabelsByCustomizedCategoryInterval(t,r,V){var oe=t.scale,ie=makeLabelFormatter(t),le=[];return each$c(oe.getTicks(),function(ue){var de=oe.getLabel(ue),pe=ue.value;r(ue.value,de)&&le.push(V?pe:{formattedLabel:ie(ue),rawLabel:de,tickValue:pe})}),le}var NORMALIZED_EXTENT=[0,1],Axis=function(){function t(r,V,oe){this.onBand=!1,this.inverse=!1,this.dim=r,this.scale=V,this._extent=oe||[0,0]}return t.prototype.contain=function(r){var V=this._extent,oe=Math.min(V[0],V[1]),ie=Math.max(V[0],V[1]);return r>=oe&&r<=ie},t.prototype.containData=function(r){return this.scale.contain(r)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(r){return getPixelPrecision(r||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(r,V){var oe=this._extent;oe[0]=r,oe[1]=V},t.prototype.dataToCoord=function(r,V){var oe=this._extent,ie=this.scale;return r=ie.normalize(r),this.onBand&&ie.type==="ordinal"&&(oe=oe.slice(),fixExtentWithBands(oe,ie.count())),linearMap$2(r,NORMALIZED_EXTENT,oe,V)},t.prototype.coordToData=function(r,V){var oe=this._extent,ie=this.scale;this.onBand&&ie.type==="ordinal"&&(oe=oe.slice(),fixExtentWithBands(oe,ie.count()));var le=linearMap$2(r,oe,NORMALIZED_EXTENT,V);return this.scale.scale(le)},t.prototype.pointToData=function(r,V){},t.prototype.getTicksCoords=function(r){r=r||{};var V=r.tickModel||this.getTickModel(),oe=createAxisTicks(this,V),ie=oe.ticks,le=map$2(ie,function(de){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(de):de),tickValue:de}},this),ue=V.get("alignWithLabel");return fixOnBandTicksCoords(this,le,ue,r.clamp),le},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var r=this.model.getModel("minorTick"),V=r.get("splitNumber");V>0&&V<100||(V=5);var oe=this.scale.getMinorTicks(V),ie=map$2(oe,function(le){return map$2(le,function(ue){return{coord:this.dataToCoord(ue),tickValue:ue}},this)},this);return ie},t.prototype.getViewLabels=function(){return createAxisLabels(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var r=this._extent,V=this.scale.getExtent(),oe=V[1]-V[0]+(this.onBand?1:0);oe===0&&(oe=1);var ie=Math.abs(r[1]-r[0]);return Math.abs(ie)/oe},t.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},t}();function fixExtentWithBands(t,r){var V=t[1]-t[0],oe=r,ie=V/oe/2;t[0]+=ie,t[1]-=ie}function fixOnBandTicksCoords(t,r,V,oe){var ie=r.length;if(!t.onBand||V||!ie)return;var le=t.getExtent(),ue,de;if(ie===1)r[0].coord=le[0],ue=r[1]={coord:le[1]};else{var pe=r[ie-1].tickValue-r[0].tickValue,he=(r[ie-1].coord-r[0].coord)/pe;each$c(r,function(Ve){Ve.coord-=he/2});var _e=t.scale.getExtent();de=1+_e[1]-r[ie-1].tickValue,ue={coord:r[ie-1].coord+he*de},r.push(ue)}var $e=le[0]>le[1];Ie(r[0].coord,le[0])&&(oe?r[0].coord=le[0]:r.shift()),oe&&Ie(le[0],r[0].coord)&&r.unshift({coord:le[0]}),Ie(le[1],ue.coord)&&(oe?ue.coord=le[1]:r.pop()),oe&&Ie(ue.coord,le[1])&&r.push({coord:le[1]});function Ie(Ve,Fe){return Ve=round$1(Ve),Fe=round$1(Fe),$e?Ve>Fe:Ve0){r=r/180*Math.PI,pt0.fromArray(t[0]),pt1.fromArray(t[1]),pt2.fromArray(t[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var V=dir.len(),oe=dir2.len();if(!(V<.001||oe<.001)){dir.scale(1/V),dir2.scale(1/oe);var ie=dir.dot(dir2),le=Math.cos(r);if(le1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray(t[1])}}}}function limitSurfaceAngle(t,r,V){if(V<=180&&V>0){V=V/180*Math.PI,pt0.fromArray(t[0]),pt1.fromArray(t[1]),pt2.fromArray(t[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var oe=dir.len(),ie=dir2.len();if(!(oe<.001||ie<.001)){dir.scale(1/oe),dir2.scale(1/ie);var le=dir.dot(r),ue=Math.cos(V);if(le=pe)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,de/Math.tan(Math.PI/2-_e));var $e=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN($e))return;$e<0?Point$1.copy(tmpProjPoint,pt1):$e>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(t[1])}}}}function setLabelLineState(t,r,V,oe){var ie=V==="normal",le=ie?t:t.ensureState(V);le.ignore=r;var ue=oe.get("smooth");ue&&ue===!0&&(ue=.3),le.shape=le.shape||{},ue>0&&(le.shape.smooth=ue);var de=oe.getModel("lineStyle").getLineStyle();ie?t.useStyle(de):le.style=de}function buildLabelLinePath(t,r){var V=r.smooth,oe=r.points;if(oe)if(t.moveTo(oe[0][0],oe[0][1]),V>0&&oe.length>=3){var ie=dist$1(oe[0],oe[1]),le=dist$1(oe[1],oe[2]);if(!ie||!le){t.lineTo(oe[1][0],oe[1][1]),t.lineTo(oe[2][0],oe[2][1]);return}var ue=Math.min(ie,le)*V,de=lerp$1([],oe[1],oe[0],ue/ie),pe=lerp$1([],oe[1],oe[2],ue/le),he=lerp$1([],de,pe,.5);t.bezierCurveTo(de[0],de[1],de[0],de[1],he[0],he[1]),t.bezierCurveTo(pe[0],pe[1],pe[0],pe[1],oe[2][0],oe[2][1])}else for(var _e=1;_e0&&le&&_n(-_e/ue,0,ue);var Ue=t[0],qe=t[ue-1],Et,At;Lt(),Et<0&&vn(-Et,.8),At<0&&vn(At,.8),Lt(),hn(Et,At,1),hn(At,Et,-1),Lt(),Et<0&&bn(-Et),At<0&&bn(At);function Lt(){Et=Ue.rect[r]-oe,At=ie-qe.rect[r]-qe.rect[V]}function hn(Cn,Sn,wn){if(Cn<0){var En=Math.min(Sn,-Cn);if(En>0){_n(En*wn,0,ue);var xn=En+Cn;xn<0&&vn(-xn*wn,1)}else vn(-Cn*wn,1)}}function _n(Cn,Sn,wn){Cn!==0&&(he=!0);for(var En=Sn;En0)for(var xn=0;xn0;xn--){var Dn=wn[xn-1]*Nn;_n(-Dn,xn,ue)}}}function bn(Cn){var Sn=Cn<0?-1:1;Cn=Math.abs(Cn);for(var wn=Math.ceil(Cn/(ue-1)),En=0;En0?_n(wn,0,En+1):_n(-wn,ue-En-1,ue),Cn-=wn,Cn<=0)return}return he}function shiftLayoutOnY(t,r,V,oe){return shiftLayout(t,"y","height",r,V,oe)}function hideOverlap(t){var r=[];t.sort(function(Ue,qe){return qe.priority-Ue.priority});var V=new BoundingRect$1(0,0,0,0);function oe(Ue){if(!Ue.ignore){var qe=Ue.ensureState("emphasis");qe.ignore==null&&(qe.ignore=!1)}Ue.ignore=!0}for(var ie=0;ie=de)}}for(var $e=this.__startIndex;$e15)break}}kn.prevElClipPaths&&Et.restore()};if(At)if(At.length===0)Cn=qe.__endIndex;else for(var wn=Ve.dpr,En=0;En0&&r>ie[0]){for(pe=0;per);pe++);de=oe[ie[pe]]}if(ie.splice(pe+1,0,r),oe[r]=V,!V.virtual)if(de){var he=de.dom;he.nextSibling?ue.insertBefore(V.dom,he.nextSibling):ue.appendChild(V.dom)}else ue.firstChild?ue.insertBefore(V.dom,ue.firstChild):ue.appendChild(V.dom);V.__painter=this}},t.prototype.eachLayer=function(r,V){for(var oe=this._zlevelList,ie=0;ie0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),_e.__builtin__||logError("ZLevel "+he+" has been used by unkown layer "+_e.id),_e!==le&&(_e.__used=!0,_e.__startIndex!==pe&&(_e.__dirty=!0),_e.__startIndex=pe,_e.incremental?_e.__drawIndex=-1:_e.__drawIndex=pe,V(pe),le=_e),ie.__dirty&REDRAW_BIT&&!ie.__inHover&&(_e.__dirty=!0,_e.incremental&&_e.__drawIndex<0&&(_e.__drawIndex=pe))}V(pe),this.eachBuiltinLayer(function($e,Ie){!$e.__used&&$e.getElementCount()>0&&($e.__dirty=!0,$e.__startIndex=$e.__endIndex=$e.__drawIndex=0),$e.__dirty&&$e.__drawIndex<0&&($e.__drawIndex=$e.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(r){r.clear()},t.prototype.setBackgroundColor=function(r){this._backgroundColor=r,each$c(this._layers,function(V){V.setUnpainted()})},t.prototype.configLayer=function(r,V){if(V){var oe=this._layerConfig;oe[r]?merge(oe[r],V,!0):oe[r]=V;for(var ie=0;ie-1&&(he.style.stroke=he.style.fill,he.style.fill="#fff",he.style.lineWidth=2),oe},r.type="series.line",r.dependencies=["grid","polar"],r.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},r}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel(t,r){var V=t.mapDimensionsAll("defaultedLabel"),oe=V.length;if(oe===1){var ie=retrieveRawValue(t,r,V[0]);return ie!=null?ie+"":null}else if(oe){for(var le=[],ue=0;ue=0&&oe.push(r[le])}return oe.join(" ")}var Symbol$1=function(t){__extends(r,t);function r(V,oe,ie,le){var ue=t.call(this)||this;return ue.updateData(V,oe,ie,le),ue}return r.prototype._createSymbol=function(V,oe,ie,le,ue){this.removeAll();var de=createSymbol(V,-1,-1,2,2,null,ue);de.attr({z2:100,culling:!0,scaleX:le[0]/2,scaleY:le[1]/2}),de.drift=driftSymbol,this._symbolType=V,this.add(de)},r.prototype.stopSymbolAnimation=function(V){this.childAt(0).stopAnimation(null,V)},r.prototype.getSymbolType=function(){return this._symbolType},r.prototype.getSymbolPath=function(){return this.childAt(0)},r.prototype.highlight=function(){enterEmphasis(this.childAt(0))},r.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},r.prototype.setZ=function(V,oe){var ie=this.childAt(0);ie.zlevel=V,ie.z=oe},r.prototype.setDraggable=function(V,oe){var ie=this.childAt(0);ie.draggable=V,ie.cursor=!oe&&V?"move":ie.cursor},r.prototype.updateData=function(V,oe,ie,le){this.silent=!1;var ue=V.getItemVisual(oe,"symbol")||"circle",de=V.hostModel,pe=r.getSymbolSize(V,oe),he=ue!==this._symbolType,_e=le&&le.disableAnimation;if(he){var $e=V.getItemVisual(oe,"symbolKeepAspect");this._createSymbol(ue,V,oe,pe,$e)}else{var Ie=this.childAt(0);Ie.silent=!1;var Ve={scaleX:pe[0]/2,scaleY:pe[1]/2};_e?Ie.attr(Ve):updateProps$1(Ie,Ve,de,oe),saveOldStyle(Ie)}if(this._updateCommon(V,oe,pe,ie,le),he){var Ie=this.childAt(0);if(!_e){var Ve={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:Ie.style.opacity}};Ie.scaleX=Ie.scaleY=0,Ie.style.opacity=0,initProps(Ie,Ve,de,oe)}}_e&&this.childAt(0).stopAnimation("leave")},r.prototype._updateCommon=function(V,oe,ie,le,ue){var de=this.childAt(0),pe=V.hostModel,he,_e,$e,Ie,Ve,Fe,Ue,qe,Et;if(le&&(he=le.emphasisItemStyle,_e=le.blurItemStyle,$e=le.selectItemStyle,Ie=le.focus,Ve=le.blurScope,Ue=le.labelStatesModels,qe=le.hoverScale,Et=le.cursorStyle,Fe=le.emphasisDisabled),!le||V.hasItemOption){var At=le&&le.itemModel?le.itemModel:V.getItemModel(oe),Lt=At.getModel("emphasis");he=Lt.getModel("itemStyle").getItemStyle(),$e=At.getModel(["select","itemStyle"]).getItemStyle(),_e=At.getModel(["blur","itemStyle"]).getItemStyle(),Ie=Lt.get("focus"),Ve=Lt.get("blurScope"),Fe=Lt.get("disabled"),Ue=getLabelStatesModels(At),qe=Lt.getShallow("scale"),Et=At.getShallow("cursor")}var hn=V.getItemVisual(oe,"symbolRotate");de.attr("rotation",(hn||0)*Math.PI/180||0);var _n=normalizeSymbolOffset(V.getItemVisual(oe,"symbolOffset"),ie);_n&&(de.x=_n[0],de.y=_n[1]),Et&&de.attr("cursor",Et);var vn=V.getItemVisual(oe,"style"),bn=vn.fill;if(de instanceof ZRImage$1){var Cn=de.style;de.useStyle(extend({image:Cn.image,x:Cn.x,y:Cn.y,width:Cn.width,height:Cn.height},vn))}else de.__isEmptyBrush?de.useStyle(extend({},vn)):de.useStyle(vn),de.style.decal=null,de.setColor(bn,ue&&ue.symbolInnerColor),de.style.strokeNoScale=!0;var Sn=V.getItemVisual(oe,"liftZ"),wn=this._z2;Sn!=null?wn==null&&(this._z2=de.z2,de.z2+=Sn):wn!=null&&(de.z2=wn,this._z2=null);var En=ue&&ue.useNameLabel;setLabelStyle(de,Ue,{labelFetcher:pe,labelDataIndex:oe,defaultText:xn,inheritColor:bn,defaultOpacity:vn.opacity});function xn(Nn){return En?V.getName(Nn):getDefaultLabel(V,Nn)}this._sizeX=ie[0]/2,this._sizeY=ie[1]/2;var Pn=de.ensureState("emphasis");Pn.style=he,de.ensureState("select").style=$e,de.ensureState("blur").style=_e;var kn=qe==null||qe===!0?Math.max(1.1,3/this._sizeY):isFinite(qe)&&qe>0?+qe:1;Pn.scaleX=this._sizeX*kn,Pn.scaleY=this._sizeY*kn,this.setSymbolScale(1),toggleHoverEmphasis(this,Ie,Ve,Fe)},r.prototype.setSymbolScale=function(V){this.scaleX=this.scaleY=V},r.prototype.fadeOut=function(V,oe,ie){var le=this.childAt(0),ue=getECData(this).dataIndex,de=ie&&ie.animation;if(this.silent=le.silent=!0,ie&&ie.fadeLabel){var pe=le.getTextContent();pe&&removeElement(pe,{style:{opacity:0}},oe,{dataIndex:ue,removeOpt:de,cb:function(){le.removeTextContent()}})}else le.removeTextContent();removeElement(le,{style:{opacity:0},scaleX:0,scaleY:0},oe,{dataIndex:ue,cb:V,removeOpt:de})},r.getSymbolSize=function(V,oe){return normalizeSymbolSize(V.getItemVisual(oe,"symbolSize"))},r}(Group$3);function driftSymbol(t,r){this.parent.drift(t,r)}const SymbolClz=Symbol$1;function symbolNeedsDraw(t,r,V,oe){return r&&!isNaN(r[0])&&!isNaN(r[1])&&!(oe.isIgnore&&oe.isIgnore(V))&&!(oe.clipShape&&!oe.clipShape.contain(r[0],r[1]))&&t.getItemVisual(V,"symbol")!=="none"}function normalizeUpdateOpt(t){return t!=null&&!isObject$3(t)&&(t={isIgnore:t}),t||{}}function makeSeriesScope(t){var r=t.hostModel,V=r.getModel("emphasis");return{emphasisItemStyle:V.getModel("itemStyle").getItemStyle(),blurItemStyle:r.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:r.getModel(["select","itemStyle"]).getItemStyle(),focus:V.get("focus"),blurScope:V.get("blurScope"),emphasisDisabled:V.get("disabled"),hoverScale:V.get("scale"),labelStatesModels:getLabelStatesModels(r),cursorStyle:r.get("cursor")}}var SymbolDraw=function(){function t(r){this.group=new Group$3,this._SymbolCtor=r||SymbolClz}return t.prototype.updateData=function(r,V){this._progressiveEls=null,V=normalizeUpdateOpt(V);var oe=this.group,ie=r.hostModel,le=this._data,ue=this._SymbolCtor,de=V.disableAnimation,pe=makeSeriesScope(r),he={disableAnimation:de},_e=V.getSymbolPoint||function($e){return r.getItemLayout($e)};le||oe.removeAll(),r.diff(le).add(function($e){var Ie=_e($e);if(symbolNeedsDraw(r,Ie,$e,V)){var Ve=new ue(r,$e,pe,he);Ve.setPosition(Ie),r.setItemGraphicEl($e,Ve),oe.add(Ve)}}).update(function($e,Ie){var Ve=le.getItemGraphicEl(Ie),Fe=_e($e);if(!symbolNeedsDraw(r,Fe,$e,V)){oe.remove(Ve);return}var Ue=r.getItemVisual($e,"symbol")||"circle",qe=Ve&&Ve.getSymbolType&&Ve.getSymbolType();if(!Ve||qe&&qe!==Ue)oe.remove(Ve),Ve=new ue(r,$e,pe,he),Ve.setPosition(Fe);else{Ve.updateData(r,$e,pe,he);var Et={x:Fe[0],y:Fe[1]};de?Ve.attr(Et):updateProps$1(Ve,Et,ie)}oe.add(Ve),r.setItemGraphicEl($e,Ve)}).remove(function($e){var Ie=le.getItemGraphicEl($e);Ie&&Ie.fadeOut(function(){oe.remove(Ie)},ie)}).execute(),this._getSymbolPoint=_e,this._data=r},t.prototype.updateLayout=function(){var r=this,V=this._data;V&&V.eachItemGraphicEl(function(oe,ie){var le=r._getSymbolPoint(ie);oe.setPosition(le),oe.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(r){this._seriesScope=makeSeriesScope(r),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(r,V,oe){this._progressiveEls=[],oe=normalizeUpdateOpt(oe);function ie(pe){pe.isGroup||(pe.incremental=!0,pe.ensureState("emphasis").hoverLayer=!0)}for(var le=r.start;le0?V=oe[0]:oe[1]<0&&(V=oe[1]),V}function getStackedOnPoint(t,r,V,oe){var ie=NaN;t.stacked&&(ie=V.get(V.getCalculationInfo("stackedOverDimension"),oe)),isNaN(ie)&&(ie=t.valueStart);var le=t.baseDataOffset,ue=[];return ue[le]=V.get(t.baseDim,oe),ue[1-le]=ie,r.dataToPoint(ue)}function diffData(t,r){var V=[];return r.diff(t).add(function(oe){V.push({cmd:"+",idx:oe})}).update(function(oe,ie){V.push({cmd:"=",idx:ie,idx1:oe})}).remove(function(oe){V.push({cmd:"-",idx:oe})}).execute(),V}function lineAnimationDiff(t,r,V,oe,ie,le,ue,de){for(var pe=diffData(t,r),he=[],_e=[],$e=[],Ie=[],Ve=[],Fe=[],Ue=[],qe=prepareDataCoordInfo(ie,r,ue),Et=t.getLayout("points")||[],At=r.getLayout("points")||[],Lt=0;Lt=ie||Ue<0)break;if(isPointNull$1(Et,At)){if(pe){Ue+=le;continue}break}if(Ue===V)t[le>0?"moveTo":"lineTo"](Et,At),$e=Et,Ie=At;else{var Lt=Et-he,hn=At-_e;if(Lt*Lt+hn*hn<.5){Ue+=le;continue}if(ue>0){for(var _n=Ue+le,vn=r[_n*2],bn=r[_n*2+1];vn===Et&&bn===At&&qe=oe||isPointNull$1(vn,bn))Ve=Et,Fe=At;else{wn=vn-he,En=bn-_e;var kn=Et-he,Nn=vn-Et,Dn=At-_e,Mn=bn-At,Ln=void 0,An=void 0;if(de==="x"){Ln=Math.abs(kn),An=Math.abs(Nn);var Vn=wn>0?1:-1;Ve=Et-Vn*Ln*ue,Fe=At,xn=Et+Vn*An*ue,Pn=At}else if(de==="y"){Ln=Math.abs(Dn),An=Math.abs(Mn);var Wn=En>0?1:-1;Ve=Et,Fe=At-Wn*Ln*ue,xn=Et,Pn=At+Wn*An*ue}else Ln=Math.sqrt(kn*kn+Dn*Dn),An=Math.sqrt(Nn*Nn+Mn*Mn),Sn=An/(An+Ln),Ve=Et-wn*ue*(1-Sn),Fe=At-En*ue*(1-Sn),xn=Et+wn*ue*Sn,Pn=At+En*ue*Sn,xn=mathMin$3(xn,mathMax$3(vn,Et)),Pn=mathMin$3(Pn,mathMax$3(bn,At)),xn=mathMax$3(xn,mathMin$3(vn,Et)),Pn=mathMax$3(Pn,mathMin$3(bn,At)),wn=xn-Et,En=Pn-At,Ve=Et-wn*Ln/An,Fe=At-En*Ln/An,Ve=mathMin$3(Ve,mathMax$3(he,Et)),Fe=mathMin$3(Fe,mathMax$3(_e,At)),Ve=mathMax$3(Ve,mathMin$3(he,Et)),Fe=mathMax$3(Fe,mathMin$3(_e,At)),wn=Et-Ve,En=At-Fe,xn=Et+wn*An/Ln,Pn=At+En*An/Ln}t.bezierCurveTo($e,Ie,Ve,Fe,Et,At),$e=xn,Ie=Pn}else t.lineTo(Et,At)}he=Et,_e=At,Ue+=le}return qe}var ECPolylineShape=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ECPolyline=function(t){__extends(r,t);function r(V){var oe=t.call(this,V)||this;return oe.type="ec-polyline",oe}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ECPolylineShape},r.prototype.buildPath=function(V,oe){var ie=oe.points,le=0,ue=ie.length/2;if(oe.connectNulls){for(;ue>0&&isPointNull$1(ie[ue*2-2],ie[ue*2-1]);ue--);for(;le=0){var hn=he?(Fe-pe)*Lt+pe:(Ve-de)*Lt+de;return he?[V,hn]:[hn,V]}de=Ve,pe=Fe;break;case ue.C:Ve=le[$e++],Fe=le[$e++],Ue=le[$e++],qe=le[$e++],Et=le[$e++],At=le[$e++];var _n=he?cubicRootAt(de,Ve,Ue,Et,V,_e):cubicRootAt(pe,Fe,qe,At,V,_e);if(_n>0)for(var vn=0;vn<_n;vn++){var bn=_e[vn];if(bn<=1&&bn>=0){var hn=he?cubicAt(pe,Fe,qe,At,bn):cubicAt(de,Ve,Ue,Et,bn);return he?[V,hn]:[hn,V]}}de=Et,pe=At;break}}},r}(Path$1),ECPolygonShape=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(ECPolylineShape),ECPolygon=function(t){__extends(r,t);function r(V){var oe=t.call(this,V)||this;return oe.type="ec-polygon",oe}return r.prototype.getDefaultShape=function(){return new ECPolygonShape},r.prototype.buildPath=function(V,oe){var ie=oe.points,le=oe.stackedOnPoints,ue=0,de=ie.length/2,pe=oe.smoothMonotone;if(oe.connectNulls){for(;de>0&&isPointNull$1(ie[de*2-2],ie[de*2-1]);de--);for(;uer){le?V.push(ue(le,pe,r)):ie&&V.push(ue(ie,pe,0),ue(ie,pe,r));break}else ie&&(V.push(ue(ie,pe,0)),ie=null),V.push(pe),le=pe}return V}function getVisualGradient(t,r,V){var oe=t.getVisual("visualMeta");if(!(!oe||!oe.length||!t.count())&&r.type==="cartesian2d"){for(var ie,le,ue=oe.length-1;ue>=0;ue--){var de=t.getDimensionInfo(oe[ue].dimension);if(ie=de&&de.coordDim,ie==="x"||ie==="y"){le=oe[ue];break}}if(le){var pe=r.getAxis(ie),he=map$2(le.stops,function(Lt){return{coord:pe.toGlobalCoord(pe.dataToCoord(Lt.value)),color:Lt.color}}),_e=he.length,$e=le.outerColors.slice();_e&&he[0].coord>he[_e-1].coord&&(he.reverse(),$e.reverse());var Ie=clipColorStops(he,ie==="x"?V.getWidth():V.getHeight()),Ve=Ie.length;if(!Ve&&_e)return he[0].coord<0?$e[1]?$e[1]:he[_e-1].color:$e[0]?$e[0]:he[0].color;var Fe=10,Ue=Ie[0].coord-Fe,qe=Ie[Ve-1].coord+Fe,Et=qe-Ue;if(Et<.001)return"transparent";each$c(Ie,function(Lt){Lt.offset=(Lt.coord-Ue)/Et}),Ie.push({offset:Ve?Ie[Ve-1].offset:.5,color:$e[1]||"transparent"}),Ie.unshift({offset:Ve?Ie[0].offset:.5,color:$e[0]||"transparent"});var At=new LinearGradient$1(0,0,0,0,Ie,!0);return At[ie]=Ue,At[ie+"2"]=qe,At}}}function getIsIgnoreFunc(t,r,V){var oe=t.get("showAllSymbol"),ie=oe==="auto";if(!(oe&&!ie)){var le=V.getAxesByScale("ordinal")[0];if(le&&!(ie&&canShowAllSymbolForCategory(le,r))){var ue=r.mapDimension(le.dim),de={};return each$c(le.getViewLabels(),function(pe){var he=le.scale.getRawOrdinalNumber(pe.tickValue);de[he]=1}),function(pe){return!de.hasOwnProperty(r.get(ue,pe))}}}}function canShowAllSymbolForCategory(t,r){var V=t.getExtent(),oe=Math.abs(V[1]-V[0])/t.scale.count();isNaN(oe)&&(oe=0);for(var ie=r.count(),le=Math.max(1,Math.round(ie/5)),ue=0;ueoe)return!1;return!0}function isPointNull(t,r){return isNaN(t)||isNaN(r)}function getLastIndexNotNull(t){for(var r=t.length/2;r>0&&isPointNull(t[r*2-2],t[r*2-1]);r--);return r-1}function getPointAtIndex(t,r){return[t[r*2],t[r*2+1]]}function getIndexRange(t,r,V){for(var oe=t.length/2,ie=V==="x"?0:1,le,ue,de=0,pe=-1,he=0;he=r||le>=r&&ue<=r){pe=he;break}de=he,le=ue}return{range:[de,pe],t:(r-le)/(ue-le)}}function anyStateShowEndLabel(t){if(t.get(["endLabel","show"]))return!0;for(var r=0;r0&&V.get(["emphasis","lineStyle","width"])==="bolder"){var Vn=Ue.getState("emphasis").style;Vn.lineWidth=+Ue.style.lineWidth+1}getECData(Ue).seriesIndex=V.seriesIndex,toggleHoverEmphasis(Ue,Mn,Ln,An);var Wn=getSmooth(V.get("smooth")),Fn=V.get("smoothMonotone");if(Ue.setShape({smooth:Wn,smoothMonotone:Fn,connectNulls:Cn}),qe){var Yn=pe.getCalculationInfo("stackedOnSeries"),tr=0;qe.useStyle(defaults(_e.getAreaStyle(),{fill:Pn,opacity:.7,lineJoin:"bevel",decal:pe.getVisual("style").decal})),Yn&&(tr=getSmooth(Yn.get("smooth"))),qe.setShape({smooth:Wn,stackedOnSmooth:tr,smoothMonotone:Fn,connectNulls:Cn}),setStatesStylesFromModel(qe,V,"areaStyle"),getECData(qe).seriesIndex=V.seriesIndex,toggleHoverEmphasis(qe,Mn,Ln,An)}var yr=function(Jn){le._changePolyState(Jn)};pe.eachItemGraphicEl(function(Jn){Jn&&(Jn.onHoverStateChange=yr)}),this._polyline.onHoverStateChange=yr,this._data=pe,this._coordSys=ue,this._stackedOnPoints=vn,this._points=$e,this._step=En,this._valueOrigin=hn,V.get("triggerLineEvent")&&(this.packEventData(V,Ue),qe&&this.packEventData(V,qe))},r.prototype.packEventData=function(V,oe){getECData(oe).eventData={componentType:"series",componentSubType:"line",componentIndex:V.componentIndex,seriesIndex:V.seriesIndex,seriesName:V.name,seriesType:"line"}},r.prototype.highlight=function(V,oe,ie,le){var ue=V.getData(),de=queryDataIndex(ue,le);if(this._changePolyState("emphasis"),!(de instanceof Array)&&de!=null&&de>=0){var pe=ue.getLayout("points"),he=ue.getItemGraphicEl(de);if(!he){var _e=pe[de*2],$e=pe[de*2+1];if(isNaN(_e)||isNaN($e)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(_e,$e))return;var Ie=V.get("zlevel")||0,Ve=V.get("z")||0;he=new SymbolClz(ue,de),he.x=_e,he.y=$e,he.setZ(Ie,Ve);var Fe=he.getSymbolPath().getTextContent();Fe&&(Fe.zlevel=Ie,Fe.z=Ve,Fe.z2=this._polyline.z2+1),he.__temp=!0,ue.setItemGraphicEl(de,he),he.stopSymbolAnimation(!0),this.group.add(he)}he.highlight()}else ChartView$1.prototype.highlight.call(this,V,oe,ie,le)},r.prototype.downplay=function(V,oe,ie,le){var ue=V.getData(),de=queryDataIndex(ue,le);if(this._changePolyState("normal"),de!=null&&de>=0){var pe=ue.getItemGraphicEl(de);pe&&(pe.__temp?(ue.setItemGraphicEl(de,null),this.group.remove(pe)):pe.downplay())}else ChartView$1.prototype.downplay.call(this,V,oe,ie,le)},r.prototype._changePolyState=function(V){var oe=this._polygon;setStatesFlag(this._polyline,V),oe&&setStatesFlag(oe,V)},r.prototype._newPolyline=function(V){var oe=this._polyline;return oe&&this._lineGroup.remove(oe),oe=new ECPolyline({shape:{points:V},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(oe),this._polyline=oe,oe},r.prototype._newPolygon=function(V,oe){var ie=this._polygon;return ie&&this._lineGroup.remove(ie),ie=new ECPolygon({shape:{points:V,stackedOnPoints:oe},segmentIgnoreThreshold:2}),this._lineGroup.add(ie),this._polygon=ie,ie},r.prototype._initSymbolLabelAnimation=function(V,oe,ie){var le,ue,de=oe.getBaseAxis(),pe=de.inverse;oe.type==="cartesian2d"?(le=de.isHorizontal(),ue=!1):oe.type==="polar"&&(le=de.dim==="angle",ue=!0);var he=V.hostModel,_e=he.get("animationDuration");isFunction(_e)&&(_e=_e(null));var $e=he.get("animationDelay")||0,Ie=isFunction($e)?$e(null):$e;V.eachItemGraphicEl(function(Ve,Fe){var Ue=Ve;if(Ue){var qe=[Ve.x,Ve.y],Et=void 0,At=void 0,Lt=void 0;if(ie)if(ue){var hn=ie,_n=oe.pointToCoord(qe);le?(Et=hn.startAngle,At=hn.endAngle,Lt=-_n[1]/180*Math.PI):(Et=hn.r0,At=hn.r,Lt=_n[0])}else{var vn=ie;le?(Et=vn.x,At=vn.x+vn.width,Lt=Ve.x):(Et=vn.y+vn.height,At=vn.y,Lt=Ve.y)}var bn=At===Et?0:(Lt-Et)/(At-Et);pe&&(bn=1-bn);var Cn=isFunction($e)?$e(Fe):_e*bn+Ie,Sn=Ue.getSymbolPath(),wn=Sn.getTextContent();Ue.attr({scaleX:0,scaleY:0}),Ue.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:Cn}),wn&&wn.animateFrom({style:{opacity:0}},{duration:300,delay:Cn}),Sn.disableLabelAnimation=!0}})},r.prototype._initOrUpdateEndLabel=function(V,oe,ie){var le=V.getModel("endLabel");if(anyStateShowEndLabel(V)){var ue=V.getData(),de=this._polyline,pe=ue.getLayout("points");if(!pe){de.removeTextContent(),this._endLabel=null;return}var he=this._endLabel;he||(he=this._endLabel=new ZRText$1({z2:200}),he.ignoreClip=!0,de.setTextContent(this._endLabel),de.disableLabelAnimation=!0);var _e=getLastIndexNotNull(pe);_e>=0&&(setLabelStyle(de,getLabelStatesModels(V,"endLabel"),{inheritColor:ie,labelFetcher:V,labelDataIndex:_e,defaultText:function($e,Ie,Ve){return Ve!=null?getDefaultInterpolatedLabel(ue,Ve):getDefaultLabel(ue,$e)},enableTextSetter:!0},getEndLabelStateSpecified(le,oe)),de.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},r.prototype._endLabelOnDuring=function(V,oe,ie,le,ue,de,pe){var he=this._endLabel,_e=this._polyline;if(he){V<1&&le.originalX==null&&(le.originalX=he.x,le.originalY=he.y);var $e=ie.getLayout("points"),Ie=ie.hostModel,Ve=Ie.get("connectNulls"),Fe=de.get("precision"),Ue=de.get("distance")||0,qe=pe.getBaseAxis(),Et=qe.isHorizontal(),At=qe.inverse,Lt=oe.shape,hn=At?Et?Lt.x:Lt.y+Lt.height:Et?Lt.x+Lt.width:Lt.y,_n=(Et?Ue:0)*(At?-1:1),vn=(Et?0:-Ue)*(At?-1:1),bn=Et?"x":"y",Cn=getIndexRange($e,hn,bn),Sn=Cn.range,wn=Sn[1]-Sn[0],En=void 0;if(wn>=1){if(wn>1&&!Ve){var xn=getPointAtIndex($e,Sn[0]);he.attr({x:xn[0]+_n,y:xn[1]+vn}),ue&&(En=Ie.getRawValue(Sn[0]))}else{var xn=_e.getPointOn(hn,bn);xn&&he.attr({x:xn[0]+_n,y:xn[1]+vn});var Pn=Ie.getRawValue(Sn[0]),kn=Ie.getRawValue(Sn[1]);ue&&(En=interpolateRawValues(ie,Fe,Pn,kn,Cn.t))}le.lastFrameIndex=Sn[0]}else{var Nn=V===1||le.lastFrameIndex>0?Sn[0]:0,xn=getPointAtIndex($e,Nn);ue&&(En=Ie.getRawValue(Nn)),he.attr({x:xn[0]+_n,y:xn[1]+vn})}if(ue){var Dn=labelInner(he);typeof Dn.setLabelText=="function"&&Dn.setLabelText(En)}}},r.prototype._doUpdateAnimation=function(V,oe,ie,le,ue,de,pe){var he=this._polyline,_e=this._polygon,$e=V.hostModel,Ie=lineAnimationDiff(this._data,V,this._stackedOnPoints,oe,this._coordSys,ie,this._valueOrigin),Ve=Ie.current,Fe=Ie.stackedOnCurrent,Ue=Ie.next,qe=Ie.stackedOnNext;if(ue&&(Ve=turnPointsIntoStep(Ie.current,ie,ue,pe),Fe=turnPointsIntoStep(Ie.stackedOnCurrent,ie,ue,pe),Ue=turnPointsIntoStep(Ie.next,ie,ue,pe),qe=turnPointsIntoStep(Ie.stackedOnNext,ie,ue,pe)),getBoundingDiff(Ve,Ue)>3e3||_e&&getBoundingDiff(Fe,qe)>3e3){he.stopAnimation(),he.setShape({points:Ue}),_e&&(_e.stopAnimation(),_e.setShape({points:Ue,stackedOnPoints:qe}));return}he.shape.__points=Ie.current,he.shape.points=Ve;var Et={shape:{points:Ue}};Ie.current!==Ve&&(Et.shape.__points=Ie.next),he.stopAnimation(),updateProps$1(he,Et,$e),_e&&(_e.setShape({points:Ve,stackedOnPoints:Fe}),_e.stopAnimation(),updateProps$1(_e,{shape:{stackedOnPoints:qe}},$e),he.shape.points!==_e.shape.points&&(_e.shape.points=he.shape.points));for(var At=[],Lt=Ie.status,hn=0;hnr&&(r=t[V]);return isFinite(r)?r:NaN},min:function(t){for(var r=1/0,V=0;V10&&ue.type==="cartesian2d"&&le){var pe=ue.getBaseAxis(),he=ue.getOtherAxis(pe),_e=pe.getExtent(),$e=oe.getDevicePixelRatio(),Ie=Math.abs(_e[1]-_e[0])*($e||1),Ve=Math.round(de/Ie);if(isFinite(Ve)&&Ve>1){le==="lttb"&&r.setData(ie.lttbDownSample(ie.mapDimension(he.dim),1/Ve));var Fe=void 0;isString(le)?Fe=samplers[le]:isFunction(le)&&(Fe=le),Fe&&r.setData(ie.downSample(ie.mapDimension(he.dim),1/Ve,Fe,indexSampler))}}}}}function install$j(t){t.registerChartView(LineView$1),t.registerSeriesModel(LineSeries),t.registerLayout(pointsLayout("line",!0)),t.registerVisual({seriesType:"line",reset:function(r){var V=r.getData(),oe=r.getModel("lineStyle").getLineStyle();oe&&!oe.stroke&&(oe.stroke=V.getVisual("style").fill),V.setVisual("legendLineStyle",oe)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.prototype.getInitialData=function(V,oe){return createSeriesData(null,this,{useEncodeDefaulter:!0})},r.prototype.getMarkerPosition=function(V,oe,ie){var le=this.coordinateSystem;if(le&&le.clampData){var ue=le.clampData(V),de=le.dataToPoint(ue);if(ie)each$c(le.getAxes(),function(Ie,Ve){if(Ie.type==="category"&&oe!=null){var Fe=Ie.getTicksCoords(),Ue=ue[Ve],qe=oe[Ve]==="x1"||oe[Ve]==="y1";if(qe&&(Ue+=1),Fe.length<2)return;if(Fe.length===2){de[Ve]=Ie.toGlobalCoord(Ie.getExtent()[qe?1:0]);return}for(var Et=void 0,At=void 0,Lt=1,hn=0;hnUe){At=(_n+Et)/2;break}hn===1&&(Lt=vn-Fe[0].tickValue)}At==null&&(Et?Et&&(At=Fe[Fe.length-1].coord):At=Fe[0].coord),de[Ve]=Ie.toGlobalCoord(At)}});else{var pe=this.getData(),he=pe.getLayout("offset"),_e=pe.getLayout("size"),$e=le.getBaseAxis().isHorizontal()?0:1;de[$e]+=he+_e/2}return de}return[NaN,NaN]},r.type="series.__base_bar__",r.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},r}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},r.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},r.prototype.getProgressiveThreshold=function(){var V=this.get("progressiveThreshold"),oe=this.get("largeThreshold");return oe>V&&(V=oe),V},r.prototype.brushSelector=function(V,oe,ie){return ie.rect(oe.getItemLayout(V))},r.type="series.bar",r.dependencies=["grid","polar"],r.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),r}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),SausagePath=function(t){__extends(r,t);function r(V){var oe=t.call(this,V)||this;return oe.type="sausage",oe}return r.prototype.getDefaultShape=function(){return new SausageShape},r.prototype.buildPath=function(V,oe){var ie=oe.cx,le=oe.cy,ue=Math.max(oe.r0||0,0),de=Math.max(oe.r,0),pe=(de-ue)*.5,he=ue+pe,_e=oe.startAngle,$e=oe.endAngle,Ie=oe.clockwise,Ve=Math.PI*2,Fe=Ie?$e-_eMath.PI/2&&_ede)return!0;de=$e}return!1},r.prototype._isOrderDifferentInView=function(V,oe){for(var ie=oe.scale,le=ie.getExtent(),ue=Math.max(0,le[0]),de=Math.min(le[1],ie.getOrdinalMeta().categories.length-1);ue<=de;++ue)if(V.ordinalNumbers[ue]!==ie.getRawOrdinalNumber(ue))return!0},r.prototype._updateSortWithinSameData=function(V,oe,ie,le){if(this._isOrderChangedWithinSameData(V,oe,ie)){var ue=this._dataSort(V,ie,oe);this._isOrderDifferentInView(ue,ie)&&(this._removeOnRenderedListener(le),le.dispatchAction({type:"changeAxisOrder",componentType:ie.dim+"Axis",axisId:ie.index,sortInfo:ue}))}},r.prototype._dispatchInitSort=function(V,oe,ie){var le=oe.baseAxis,ue=this._dataSort(V,le,function(de){return V.get(V.mapDimension(oe.otherAxis.dim),de)});ie.dispatchAction({type:"changeAxisOrder",componentType:le.dim+"Axis",isInitSort:!0,axisId:le.index,sortInfo:ue})},r.prototype.remove=function(V,oe){this._clear(this._model),this._removeOnRenderedListener(oe)},r.prototype.dispose=function(V,oe){this._removeOnRenderedListener(oe)},r.prototype._removeOnRenderedListener=function(V){this._onRendered&&(V.getZr().off("rendered",this._onRendered),this._onRendered=null)},r.prototype._clear=function(V){var oe=this.group,ie=this._data;V&&V.isAnimationEnabled()&&ie&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],ie.eachItemGraphicEl(function(le){removeElementWithFadeOut(le,V,getECData(le).dataIndex)})):oe.removeAll(),this._data=null,this._isFirstFrame=!0},r.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},r.type="bar",r}(ChartView$1),clip={cartesian2d:function(t,r){var V=r.width<0?-1:1,oe=r.height<0?-1:1;V<0&&(r.x+=r.width,r.width=-r.width),oe<0&&(r.y+=r.height,r.height=-r.height);var ie=t.x+t.width,le=t.y+t.height,ue=mathMax$2(r.x,t.x),de=mathMin$2(r.x+r.width,ie),pe=mathMax$2(r.y,t.y),he=mathMin$2(r.y+r.height,le),_e=deie?de:ue,r.y=$e&&pe>le?he:pe,r.width=_e?0:de-ue,r.height=$e?0:he-pe,V<0&&(r.x+=r.width,r.width=-r.width),oe<0&&(r.y+=r.height,r.height=-r.height),_e||$e},polar:function(t,r){var V=r.r0<=r.r?1:-1;if(V<0){var oe=r.r;r.r=r.r0,r.r0=oe}var ie=mathMin$2(r.r,t.r),le=mathMax$2(r.r0,t.r0);r.r=ie,r.r0=le;var ue=ie-le<0;if(V<0){var oe=r.r;r.r=r.r0,r.r0=oe}return ue}},elementCreator={cartesian2d:function(t,r,V,oe,ie,le,ue,de,pe){var he=new Rect$2({shape:extend({},oe),z2:1});if(he.__dataIndex=V,he.name="item",le){var _e=he.shape,$e=ie?"height":"width";_e[$e]=0}return he},polar:function(t,r,V,oe,ie,le,ue,de,pe){var he=!ie&&pe?Sausage:Sector$1,_e=new he({shape:oe,z2:1});_e.name="item";var $e=createPolarPositionMapping(ie);if(_e.calculateTextPosition=createSectorCalculateTextPosition($e,{isRoundCap:he===Sausage}),le){var Ie=_e.shape,Ve=ie?"r":"endAngle",Fe={};Ie[Ve]=ie?oe.r0:oe.startAngle,Fe[Ve]=oe[Ve],(de?updateProps$1:initProps)(_e,{shape:Fe},le)}return _e}};function shouldRealtimeSort(t,r){var V=t.get("realtimeSort",!0),oe=r.getBaseAxis();if(V&&oe.type==="category"&&r.type==="cartesian2d")return{baseAxis:oe,otherAxis:r.getOtherAxis(oe)}}function updateRealtimeAnimation(t,r,V,oe,ie,le,ue,de){var pe,he;le?(he={x:oe.x,width:oe.width},pe={y:oe.y,height:oe.height}):(he={y:oe.y,height:oe.height},pe={x:oe.x,width:oe.width}),de||(ue?updateProps$1:initProps)(V,{shape:pe},r,ie,null);var _e=r?t.baseAxis.model:null;(ue?updateProps$1:initProps)(V,{shape:he},_e,ie)}function checkPropertiesNotValid(t,r){for(var V=0;V0?1:-1,ue=oe.height>0?1:-1;return{x:oe.x+le*ie/2,y:oe.y+ue*ie/2,width:oe.width-le*ie,height:oe.height-ue*ie}},polar:function(t,r,V){var oe=t.getItemLayout(r);return{cx:oe.cx,cy:oe.cy,r0:oe.r0,r:oe.r,startAngle:oe.startAngle,endAngle:oe.endAngle,clockwise:oe.clockwise}}};function isZeroOnPolar(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function createPolarPositionMapping(t){return function(r){var V=r?"Arc":"Angle";return function(oe){switch(oe){case"start":case"insideStart":case"end":case"insideEnd":return oe+V;default:return oe}}}(t)}function updateStyle(t,r,V,oe,ie,le,ue,de){var pe=r.getItemVisual(V,"style");if(de){if(!le.get("roundCap")){var _e=t.shape,$e=getSectorCornerRadius(oe.getModel("itemStyle"),_e,!0);extend(_e,$e),t.setShape(_e)}}else{var he=oe.get(["itemStyle","borderRadius"])||0;t.setShape("r",he)}t.useStyle(pe);var Ie=oe.getShallow("cursor");Ie&&t.attr("cursor",Ie);var Ve=de?ue?ie.r>=ie.r0?"endArc":"startArc":ie.endAngle>=ie.startAngle?"endAngle":"startAngle":ue?ie.height>=0?"bottom":"top":ie.width>=0?"right":"left",Fe=getLabelStatesModels(oe);setLabelStyle(t,Fe,{labelFetcher:le,labelDataIndex:V,defaultText:getDefaultLabel(le.getData(),V),inheritColor:pe.fill,defaultOpacity:pe.opacity,defaultOutsidePosition:Ve});var Ue=t.getTextContent();if(de&&Ue){var qe=oe.get(["label","position"]);t.textConfig.inside=qe==="middle"?!0:null,setSectorTextRotation(t,qe==="outside"?Ve:qe,createPolarPositionMapping(ue),oe.get(["label","rotate"]))}setLabelValueAnimation(Ue,Fe,le.getRawValue(V),function(At){return getDefaultInterpolatedLabel(r,At)});var Et=oe.getModel(["emphasis"]);toggleHoverEmphasis(t,Et.get("focus"),Et.get("blurScope"),Et.get("disabled")),setStatesStylesFromModel(t,oe),isZeroOnPolar(ie)&&(t.style.fill="none",t.style.stroke="none",each$c(t.states,function(At){At.style&&(At.style.fill=At.style.stroke="none")}))}function getLineWidth(t,r){var V=t.get(["itemStyle","borderColor"]);if(!V||V==="none")return 0;var oe=t.get(["itemStyle","borderWidth"])||0,ie=isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),le=isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height);return Math.min(oe,ie,le)}var LagePathShape=function(){function t(){}return t}(),LargePath=function(t){__extends(r,t);function r(V){var oe=t.call(this,V)||this;return oe.type="largeBar",oe}return r.prototype.getDefaultShape=function(){return new LagePathShape},r.prototype.buildPath=function(V,oe){for(var ie=oe.points,le=this.baseDimIdx,ue=1-this.baseDimIdx,de=[],pe=[],he=this.barWidth,_e=0;_e=0?V:null},30,!1);function largePathFindDataIndex(t,r,V){for(var oe=t.baseDimIdx,ie=1-oe,le=t.shape.points,ue=t.largeDataIndices,de=[],pe=[],he=t.barWidth,_e=0,$e=le.length/3;_e<$e;_e++){var Ie=_e*3;if(pe[oe]=he,pe[ie]=le[Ie+2],de[oe]=le[Ie+oe],de[ie]=le[Ie+ie],pe[ie]<0&&(de[ie]+=pe[ie],pe[ie]=-pe[ie]),r>=de[0]&&r<=de[0]+pe[0]&&V>=de[1]&&V<=de[1]+pe[1])return ue[_e]}return-1}function createBackgroundShape(t,r,V){if(isCoordinateSystemType(V,"cartesian2d")){var oe=r,ie=V.getArea();return{x:t?oe.x:ie.x,y:t?ie.y:oe.y,width:t?oe.width:ie.width,height:t?ie.height:oe.height}}else{var ie=V.getArea(),le=r;return{cx:ie.cx,cy:ie.cy,r0:t?ie.r0:le.r0,r:t?ie.r:le.r,startAngle:t?le.startAngle:0,endAngle:t?le.endAngle:Math.PI*2}}}function createBackgroundEl(t,r,V){var oe=t.type==="polar"?Sector$1:Rect$2;return new oe({shape:createBackgroundShape(r,V,t),silent:!0,z2:0})}const BarView$1=BarView;function install$i(t){t.registerChartView(BarView$1),t.registerSeriesModel(BarSeries),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(r,V){var oe=r.componentType||"series";V.eachComponent({mainType:oe,query:r},function(ie){r.sortInfo&&ie.axis.setCategorySortInfo(r.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect(t,r){return getLayoutRect(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function getBasicPieLayout(t,r){var V=getViewRect(t,r),oe=t.get("center"),ie=t.get("radius");isArray$1(ie)||(ie=[0,ie]);var le=parsePercent(V.width,r.getWidth()),ue=parsePercent(V.height,r.getHeight()),de=Math.min(le,ue),pe=parsePercent(ie[0],de/2),he=parsePercent(ie[1],de/2),_e,$e,Ie=t.coordinateSystem;if(Ie){var Ve=Ie.dataToPoint(oe);_e=Ve[0]||0,$e=Ve[1]||0}else isArray$1(oe)||(oe=[oe,oe]),_e=parsePercent(oe[0],le)+V.x,$e=parsePercent(oe[1],ue)+V.y;return{cx:_e,cy:$e,r0:pe,r:he}}function pieLayout(t,r,V){r.eachSeriesByType(t,function(oe){var ie=oe.getData(),le=ie.mapDimension("value"),ue=getViewRect(oe,V),de=getBasicPieLayout(oe,V),pe=de.cx,he=de.cy,_e=de.r,$e=de.r0,Ie=-oe.get("startAngle")*RADIAN$1,Ve=oe.get("minAngle")*RADIAN$1,Fe=0;ie.each(le,function(wn){!isNaN(wn)&&Fe++});var Ue=ie.getSum(le),qe=Math.PI/(Ue||Fe)*2,Et=oe.get("clockwise"),At=oe.get("roseType"),Lt=oe.get("stillShowZeroSum"),hn=ie.getDataExtent(le);hn[0]=0;var _n=PI2,vn=0,bn=Ie,Cn=Et?1:-1;if(ie.setLayout({viewRect:ue,r:_e}),ie.each(le,function(wn,En){var xn;if(isNaN(wn)){ie.setItemLayout(En,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:Et,cx:pe,cy:he,r0:$e,r:At?NaN:_e});return}At!=="area"?xn=Ue===0&&Lt?qe:wn*qe:xn=PI2/Fe,xnV?Et:qe,_n=Math.abs(Lt.label.y-V);if(_n>=hn.maxY){var vn=Lt.label.x-r-Lt.len2*ie,bn=oe+Lt.len,Cn=Math.abs(vn)t.unconstrainedWidth?null:Ve:null;oe.setStyle("width",Fe)}var Ue=oe.getBoundingRect();le.width=Ue.width;var qe=(oe.style.margin||0)+2.1;le.height=Ue.height+qe,le.y-=(le.height-$e)/2}}}function isPositionCenter(t){return t.position==="center"}function pieLabelLayout(t){var r=t.getData(),V=[],oe,ie,le=!1,ue=(t.get("minShowLabelAngle")||0)*RADIAN,de=r.getLayout("viewRect"),pe=r.getLayout("r"),he=de.width,_e=de.x,$e=de.y,Ie=de.height;function Ve(vn){vn.ignore=!0}function Fe(vn){if(!vn.ignore)return!0;for(var bn in vn.states)if(vn.states[bn].ignore===!1)return!0;return!1}r.each(function(vn){var bn=r.getItemGraphicEl(vn),Cn=bn.shape,Sn=bn.getTextContent(),wn=bn.getTextGuideLine(),En=r.getItemModel(vn),xn=En.getModel("label"),Pn=xn.get("position")||En.get(["emphasis","label","position"]),kn=xn.get("distanceToLabelLine"),Nn=xn.get("alignTo"),Dn=parsePercent(xn.get("edgeDistance"),he),Mn=xn.get("bleedMargin"),Ln=En.getModel("labelLine"),An=Ln.get("length");An=parsePercent(An,he);var Vn=Ln.get("length2");if(Vn=parsePercent(Vn,he),Math.abs(Cn.endAngle-Cn.startAngle)0?"right":"left":Fn>0?"left":"right"}var pr=Math.PI,Er=0,dr=xn.get("rotate");if(isNumber(dr))Er=dr*(pr/180);else if(Pn==="center")Er=0;else if(dr==="radial"||dr===!0){var xr=Fn<0?-Wn+pr:-Wn;Er=xr}else if(dr==="tangential"&&Pn!=="outside"&&Pn!=="outer"){var wr=Math.atan2(Fn,Yn);wr<0&&(wr=pr*2+wr);var Cr=Yn>0;Cr&&(wr=pr+wr),Er=wr-pr}if(le=!!Er,Sn.x=tr,Sn.y=yr,Sn.rotation=Er,Sn.setStyle({verticalAlign:"middle"}),Gn){Sn.setStyle({align:Kn});var fr=Sn.states.select;fr&&(fr.x+=Sn.x,fr.y+=Sn.y)}else{var gr=Sn.getBoundingRect().clone();gr.applyTransform(Sn.getComputedTransform());var or=(Sn.style.margin||0)+2.1;gr.y-=or/2,gr.height+=or,V.push({label:Sn,labelLine:wn,position:Pn,len:An,len2:Vn,minTurnAngle:Ln.get("minTurnAngle"),maxSurfaceAngle:Ln.get("maxSurfaceAngle"),surfaceNormal:new Point$1(Fn,Yn),linePoints:Jn,textAlign:Kn,labelDistance:kn,labelAlignTo:Nn,edgeDistance:Dn,bleedMargin:Mn,rect:gr,unconstrainedWidth:gr.width,labelStyleWidth:Sn.style.width})}bn.setTextConfig({inside:Gn})}}),!le&&t.get("avoidLabelOverlap")&&avoidOverlap(V,oe,ie,pe,he,Ie,_e,$e);for(var Ue=0;Ue0){for(var _e=ue.getItemLayout(0),$e=1;isNaN(_e&&_e.startAngle)&&$e=le.r0}},r.type="pie",r}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply(t,r,V){r=isArray$1(r)&&{coordDimensions:r}||extend({encodeDefine:t.getEncode()},r);var oe=t.getSource(),ie=prepareSeriesDataSchema(oe,r).dimensions,le=new SeriesData$1(ie,t);return le.initData(oe,V),le}var LegendVisualProvider=function(){function t(r,V){this._getDataWithEncodedVisual=r,this._getRawData=V}return t.prototype.getAllNames=function(){var r=this._getRawData();return r.mapArray(r.getName)},t.prototype.containName=function(r){var V=this._getRawData();return V.indexOfName(r)>=0},t.prototype.indexOfName=function(r){var V=this._getDataWithEncodedVisual();return V.indexOfName(r)},t.prototype.getItemVisual=function(r,V){var oe=this._getDataWithEncodedVisual();return oe.getItemVisual(r,V)},t}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(V){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(V)},r.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},r.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},r.prototype.getDataParams=function(V){var oe=this.getData(),ie=innerData(oe),le=ie.seats;if(!le){var ue=[];oe.each(oe.mapDimension("value"),function(pe){ue.push(pe)}),le=ie.seats=getPercentSeats(ue,oe.hostModel.get("percentPrecision"))}var de=t.prototype.getDataParams.call(this,V);return de.percent=le[V]||0,de.$vars.push("percent"),de},r.prototype._defaultLabelLine=function(V){defaultEmphasis(V,"labelLine",["show"]);var oe=V.labelLine,ie=V.emphasis.labelLine;oe.show=oe.show&&V.label.show,ie.show=ie.show&&V.emphasis.label.show},r.type="series.pie",r.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},r}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter(t){return{seriesType:t,reset:function(r,V){var oe=r.getData();oe.filterSelf(function(ie){var le=oe.mapDimension("value"),ue=oe.get(le,ie);return!(isNumber(ue)&&!isNaN(ue)&&ue<0)})}}}function install$h(t){t.registerChartView(PieView$1),t.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",t.registerAction),t.registerLayout(curry$1(pieLayout,"pie")),t.registerProcessor(dataFilter("pie")),t.registerProcessor(negativeDataFilter("pie"))}var GridModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.type="grid",r.dependencies=["xAxis","yAxis"],r.layoutMode="box",r.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},r}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},r.type="cartesian2dAxis",r}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},categoryAxis=merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},defaultOption$1),valueAxis=merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},defaultOption$1),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis);const axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis};var AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator(t,r,V,oe){each$c(AXIS_TYPES,function(ie,le){var ue=merge(merge({},axisDefault[le],!0),oe,!0),de=function(pe){__extends(he,pe);function he(){var _e=pe!==null&&pe.apply(this,arguments)||this;return _e.type=r+"Axis."+le,_e}return he.prototype.mergeDefaultAndTheme=function(_e,$e){var Ie=fetchLayoutMode(this),Ve=Ie?getLayoutParams(_e):{},Fe=$e.getTheme();merge(_e,Fe.get(le+"Axis")),merge(_e,this.getDefaultOption()),_e.type=getAxisType(_e),Ie&&mergeLayoutParam(_e,Ve,Ie)},he.prototype.optionUpdated=function(){var _e=this.option;_e.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},he.prototype.getCategories=function(_e){var $e=this.option;if($e.type==="category")return _e?$e.data:this.__ordinalMeta.categories},he.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},he.type=r+"Axis."+le,he.defaultOption=ue,he}(V);t.registerComponentModel(de)}),t.registerSubTypeDefaulter(r+"Axis",getAxisType)}function getAxisType(t){return t.type||(t.data?"category":"value")}var Cartesian=function(){function t(r){this.type="cartesian",this._dimList=[],this._axes={},this.name=r||""}return t.prototype.getAxis=function(r){return this._axes[r]},t.prototype.getAxes=function(){return map$2(this._dimList,function(r){return this._axes[r]},this)},t.prototype.getAxesByScale=function(r){return r=r.toLowerCase(),filter(this.getAxes(),function(V){return V.scale.type===r})},t.prototype.addAxis=function(r){var V=r.dim;this._axes[V]=r,this._dimList.push(V)},t}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform(t){return t.type==="interval"||t.type==="time"}var Cartesian2D=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type="cartesian2d",V.dimensions=cartesian2DDimensions,V}return r.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var V=this.getAxis("x").scale,oe=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(V)||!canCalculateAffineTransform(oe))){var ie=V.getExtent(),le=oe.getExtent(),ue=this.dataToPoint([ie[0],le[0]]),de=this.dataToPoint([ie[1],le[1]]),pe=ie[1]-ie[0],he=le[1]-le[0];if(!(!pe||!he)){var _e=(de[0]-ue[0])/pe,$e=(de[1]-ue[1])/he,Ie=ue[0]-ie[0]*_e,Ve=ue[1]-le[0]*$e,Fe=this._transform=[_e,0,0,$e,Ie,Ve];this._invTransform=invert([],Fe)}}},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},r.prototype.containPoint=function(V){var oe=this.getAxis("x"),ie=this.getAxis("y");return oe.contain(oe.toLocalCoord(V[0]))&&ie.contain(ie.toLocalCoord(V[1]))},r.prototype.containData=function(V){return this.getAxis("x").containData(V[0])&&this.getAxis("y").containData(V[1])},r.prototype.containZone=function(V,oe){var ie=this.dataToPoint(V),le=this.dataToPoint(oe),ue=this.getArea(),de=new BoundingRect$1(ie[0],ie[1],le[0]-ie[0],le[1]-ie[1]);return ue.intersect(de)},r.prototype.dataToPoint=function(V,oe,ie){ie=ie||[];var le=V[0],ue=V[1];if(this._transform&&le!=null&&isFinite(le)&&ue!=null&&isFinite(ue))return applyTransform$1(ie,V,this._transform);var de=this.getAxis("x"),pe=this.getAxis("y");return ie[0]=de.toGlobalCoord(de.dataToCoord(le,oe)),ie[1]=pe.toGlobalCoord(pe.dataToCoord(ue,oe)),ie},r.prototype.clampData=function(V,oe){var ie=this.getAxis("x").scale,le=this.getAxis("y").scale,ue=ie.getExtent(),de=le.getExtent(),pe=ie.parse(V[0]),he=le.parse(V[1]);return oe=oe||[],oe[0]=Math.min(Math.max(Math.min(ue[0],ue[1]),pe),Math.max(ue[0],ue[1])),oe[1]=Math.min(Math.max(Math.min(de[0],de[1]),he),Math.max(de[0],de[1])),oe},r.prototype.pointToData=function(V,oe){var ie=[];if(this._invTransform)return applyTransform$1(ie,V,this._invTransform);var le=this.getAxis("x"),ue=this.getAxis("y");return ie[0]=le.coordToData(le.toLocalCoord(V[0]),oe),ie[1]=ue.coordToData(ue.toLocalCoord(V[1]),oe),ie},r.prototype.getOtherAxis=function(V){return this.getAxis(V.dim==="x"?"y":"x")},r.prototype.getArea=function(){var V=this.getAxis("x").getGlobalExtent(),oe=this.getAxis("y").getGlobalExtent(),ie=Math.min(V[0],V[1]),le=Math.min(oe[0],oe[1]),ue=Math.max(V[0],V[1])-ie,de=Math.max(oe[0],oe[1])-le;return new BoundingRect$1(ie,le,ue,de)},r}(Cartesian$1),Axis2D=function(t){__extends(r,t);function r(V,oe,ie,le,ue){var de=t.call(this,V,oe,ie)||this;return de.index=0,de.type=le||"value",de.position=ue||"bottom",de}return r.prototype.isHorizontal=function(){var V=this.position;return V==="top"||V==="bottom"},r.prototype.getGlobalExtent=function(V){var oe=this.getExtent();return oe[0]=this.toGlobalCoord(oe[0]),oe[1]=this.toGlobalCoord(oe[1]),V&&oe[0]>oe[1]&&oe.reverse(),oe},r.prototype.pointToData=function(V,oe){return this.coordToData(this.toLocalCoord(V[this.dim==="x"?0:1]),oe)},r.prototype.setCategorySortInfo=function(V){if(this.type!=="category")return!1;this.model.option.categorySortInfo=V,this.scale.setSortInfo(V)},r}(Axis$1);const Axis2D$1=Axis2D;function layout$1(t,r,V){V=V||{};var oe=t.coordinateSystem,ie=r.axis,le={},ue=ie.getAxesOnZeroOf()[0],de=ie.position,pe=ue?"onZero":de,he=ie.dim,_e=oe.getRect(),$e=[_e.x,_e.x+_e.width,_e.y,_e.y+_e.height],Ie={left:0,right:1,top:0,bottom:1,onZero:2},Ve=r.get("offset")||0,Fe=he==="x"?[$e[2]-Ve,$e[3]+Ve]:[$e[0]-Ve,$e[1]+Ve];if(ue){var Ue=ue.toGlobalCoord(ue.dataToCoord(0));Fe[Ie.onZero]=Math.max(Math.min(Ue,Fe[1]),Fe[0])}le.position=[he==="y"?Fe[Ie[pe]]:$e[0],he==="x"?Fe[Ie[pe]]:$e[3]],le.rotation=Math.PI/2*(he==="x"?0:1);var qe={top:-1,bottom:1,left:-1,right:1};le.labelDirection=le.tickDirection=le.nameDirection=qe[de],le.labelOffset=ue?Fe[Ie[de]]-Fe[Ie.onZero]:0,r.get(["axisTick","inside"])&&(le.tickDirection=-le.tickDirection),retrieve(V.labelInside,r.get(["axisLabel","inside"]))&&(le.labelDirection=-le.labelDirection);var Et=r.get(["axisLabel","rotate"]);return le.labelRotate=pe==="top"?-Et:Et,le.z2=1,le}function isCartesian2DSeries(t){return t.get("coordinateSystem")==="cartesian2d"}function findAxisModels(t){var r={xAxisModel:null,yAxisModel:null};return each$c(r,function(V,oe){var ie=oe.replace(/Model$/,""),le=t.getReferringComponents(ie,SINGLE_REFERRING).models[0];r[oe]=le}),r}var mathLog=Math.log;function alignScaleTicks(t,r,V){var oe=IntervalScale$1.prototype,ie=oe.getTicks.call(V),le=oe.getTicks.call(V,!0),ue=ie.length-1,de=oe.getInterval.call(V),pe=getScaleExtent(t,r),he=pe.extent,_e=pe.fixMin,$e=pe.fixMax;if(t.type==="log"){var Ie=mathLog(t.base);he=[mathLog(he[0])/Ie,mathLog(he[1])/Ie]}t.setExtent(he[0],he[1]),t.calcNiceExtent({splitNumber:ue,fixMin:_e,fixMax:$e});var Ve=oe.getExtent.call(t);_e&&(he[0]=Ve[0]),$e&&(he[1]=Ve[1]);var Fe=oe.getInterval.call(t),Ue=he[0],qe=he[1];if(_e&&$e)Fe=(qe-Ue)/ue;else if(_e)for(qe=he[0]+Fe*ue;qehe[0]&&isFinite(Ue)&&isFinite(he[0]);)Fe=increaseInterval(Fe),Ue=he[1]-Fe*ue;else{var Et=t.getTicks().length-1;Et>ue&&(Fe=increaseInterval(Fe));var At=Fe*ue;qe=Math.ceil(he[1]/Fe)*Fe,Ue=round$1(qe-At),Ue<0&&he[0]>=0?(Ue=0,qe=round$1(At)):qe>0&&he[1]<=0&&(qe=0,Ue=-round$1(At))}var Lt=(ie[0].value-le[0].value)/de,hn=(ie[ue].value-le[ue].value)/de;oe.setExtent.call(t,Ue+Fe*Lt,qe+Fe*hn),oe.setInterval.call(t,Fe),(Lt||hn)&&oe.setNiceExtent.call(t,Ue+Fe,qe-Fe)}var Grid=function(){function t(r,V,oe){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(r,V,oe),this.model=r}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(r,V){var oe=this._axesMap;this._updateScale(r,this.model);function ie(ue){var de,pe=keys(ue),he=pe.length;if(he){for(var _e=[],$e=he-1;$e>=0;$e--){var Ie=+pe[$e],Ve=ue[Ie],Fe=Ve.model,Ue=Ve.scale;isIntervalOrLogScale(Ue)&&Fe.get("alignTicks")&&Fe.get("interval")==null?_e.push(Ve):(niceScaleExtent(Ue,Fe),isIntervalOrLogScale(Ue)&&(de=Ve))}_e.length&&(de||(de=_e.pop(),niceScaleExtent(de.scale,de.model)),each$c(_e,function(qe){alignScaleTicks(qe.scale,qe.model,de.scale)}))}}ie(oe.x),ie(oe.y);var le={};each$c(oe.x,function(ue){fixAxisOnZero(oe,"y",ue,le)}),each$c(oe.y,function(ue){fixAxisOnZero(oe,"x",ue,le)}),this.resize(this.model,V)},t.prototype.resize=function(r,V,oe){var ie=r.getBoxLayoutParams(),le=!oe&&r.get("containLabel"),ue=getLayoutRect(ie,{width:V.getWidth(),height:V.getHeight()});this._rect=ue;var de=this._axesList;pe(),le&&(each$c(de,function(he){if(!he.model.get(["axisLabel","inside"])){var _e=estimateLabelUnionRect(he);if(_e){var $e=he.isHorizontal()?"height":"width",Ie=he.model.get(["axisLabel","margin"]);ue[$e]-=_e[$e]+Ie,he.position==="top"?ue.y+=_e.height+Ie:he.position==="left"&&(ue.x+=_e.width+Ie)}}}),pe()),each$c(this._coordsList,function(he){he.calcAffineTransform()});function pe(){each$c(de,function(he){var _e=he.isHorizontal(),$e=_e?[0,ue.width]:[0,ue.height],Ie=he.inverse?1:0;he.setExtent($e[Ie],$e[1-Ie]),updateAxisTransform(he,_e?ue.x:ue.y)})}},t.prototype.getAxis=function(r,V){var oe=this._axesMap[r];if(oe!=null)return oe[V||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(r,V){if(r!=null&&V!=null){var oe="x"+r+"y"+V;return this._coordsMap[oe]}isObject$3(r)&&(V=r.yAxisIndex,r=r.xAxisIndex);for(var ie=0,le=this._coordsList;ie0?"top":"bottom",le="center"):isRadianAroundZero(ie-PI)?(ue=oe>0?"bottom":"top",le="center"):(ue="middle",ie>0&&ie0?"right":"left":le=oe>0?"left":"right"),{rotation:ie,textAlign:le,textVerticalAlign:ue}},t.makeAxisEventDataBase=function(r){var V={componentType:r.mainType,componentIndex:r.componentIndex};return V[r.mainType+"Index"]=r.componentIndex,V},t.isLabelSilent=function(r){var V=r.get("tooltip");return r.get("silent")||!(r.get("triggerEvent")||V&&V.show)},t}(),builders={axisLine:function(t,r,V,oe){var ie=r.get(["axisLine","show"]);if(ie==="auto"&&t.handleAutoShown&&(ie=t.handleAutoShown("axisLine")),!!ie){var le=r.axis.getExtent(),ue=oe.transform,de=[le[0],0],pe=[le[1],0],he=de[0]>pe[0];ue&&(applyTransform$1(de,de,ue),applyTransform$1(pe,pe,ue));var _e=extend({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),$e=new Line$1({shape:{x1:de[0],y1:de[1],x2:pe[0],y2:pe[1]},style:_e,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine($e.shape,$e.style.lineWidth),$e.anid="line",V.add($e);var Ie=r.get(["axisLine","symbol"]);if(Ie!=null){var Ve=r.get(["axisLine","symbolSize"]);isString(Ie)&&(Ie=[Ie,Ie]),(isString(Ve)||isNumber(Ve))&&(Ve=[Ve,Ve]);var Fe=normalizeSymbolOffset(r.get(["axisLine","symbolOffset"])||0,Ve),Ue=Ve[0],qe=Ve[1];each$c([{rotate:t.rotation+Math.PI/2,offset:Fe[0],r:0},{rotate:t.rotation-Math.PI/2,offset:Fe[1],r:Math.sqrt((de[0]-pe[0])*(de[0]-pe[0])+(de[1]-pe[1])*(de[1]-pe[1]))}],function(Et,At){if(Ie[At]!=="none"&&Ie[At]!=null){var Lt=createSymbol(Ie[At],-Ue/2,-qe/2,Ue,qe,_e.stroke,!0),hn=Et.r+Et.offset,_n=he?pe:de;Lt.attr({rotation:Et.rotate,x:_n[0]+hn*Math.cos(t.rotation),y:_n[1]-hn*Math.sin(t.rotation),silent:!0,z2:11}),V.add(Lt)}})}}},axisTickLabel:function(t,r,V,oe){var ie=buildAxisMajorTicks(V,oe,r,t),le=buildAxisLabel(V,oe,r,t);if(fixMinMaxLabelShow(r,le,ie),buildAxisMinorTicks(V,oe,r,t.tickDirection),r.get(["axisLabel","hideOverlap"])){var ue=prepareLayoutList(map$2(le,function(de){return{label:de,priority:de.z2,defaultAttr:{ignore:de.ignore}}}));hideOverlap(ue)}},axisName:function(t,r,V,oe){var ie=retrieve(t.axisName,r.get("name"));if(ie){var le=r.get("nameLocation"),ue=t.nameDirection,de=r.getModel("nameTextStyle"),pe=r.get("nameGap")||0,he=r.axis.getExtent(),_e=he[0]>he[1]?-1:1,$e=[le==="start"?he[0]-_e*pe:le==="end"?he[1]+_e*pe:(he[0]+he[1])/2,isNameLocationCenter(le)?t.labelOffset+ue*pe:0],Ie,Ve=r.get("nameRotate");Ve!=null&&(Ve=Ve*PI/180);var Fe;isNameLocationCenter(le)?Ie=AxisBuilder.innerTextLayout(t.rotation,Ve??t.rotation,ue):(Ie=endTextLayout(t.rotation,le,Ve||0,he),Fe=t.axisNameAvailableWidth,Fe!=null&&(Fe=Math.abs(Fe/Math.sin(Ie.rotation)),!isFinite(Fe)&&(Fe=null)));var Ue=de.getFont(),qe=r.get("nameTruncate",!0)||{},Et=qe.ellipsis,At=retrieve(t.nameTruncateMaxWidth,qe.maxWidth,Fe),Lt=new ZRText$1({x:$e[0],y:$e[1],rotation:Ie.rotation,silent:AxisBuilder.isLabelSilent(r),style:createTextStyle$1(de,{text:ie,font:Ue,overflow:"truncate",width:At,ellipsis:Et,fill:de.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:de.get("align")||Ie.textAlign,verticalAlign:de.get("verticalAlign")||Ie.textVerticalAlign}),z2:1});if(setTooltipConfig({el:Lt,componentModel:r,itemName:ie}),Lt.__fullText=ie,Lt.anid="name",r.get("triggerEvent")){var hn=AxisBuilder.makeAxisEventDataBase(r);hn.targetType="axisName",hn.name=ie,getECData(Lt).eventData=hn}oe.add(Lt),Lt.updateTransform(),V.add(Lt),Lt.decomposeTransform()}}};function endTextLayout(t,r,V,oe){var ie=remRadian(V-t),le,ue,de=oe[0]>oe[1],pe=r==="start"&&!de||r!=="start"&&de;return isRadianAroundZero(ie-PI/2)?(ue=pe?"bottom":"top",le="center"):isRadianAroundZero(ie-PI*1.5)?(ue=pe?"top":"bottom",le="center"):(ue="middle",iePI/2?le=pe?"left":"right":le=pe?"right":"left"),{rotation:ie,textAlign:le,textVerticalAlign:ue}}function fixMinMaxLabelShow(t,r,V){if(!shouldShowAllLabels(t.axis)){var oe=t.get(["axisLabel","showMinLabel"]),ie=t.get(["axisLabel","showMaxLabel"]);r=r||[],V=V||[];var le=r[0],ue=r[1],de=r[r.length-1],pe=r[r.length-2],he=V[0],_e=V[1],$e=V[V.length-1],Ie=V[V.length-2];oe===!1?(ignoreEl(le),ignoreEl(he)):isTwoLabelOverlapped(le,ue)&&(oe?(ignoreEl(ue),ignoreEl(_e)):(ignoreEl(le),ignoreEl(he))),ie===!1?(ignoreEl(de),ignoreEl($e)):isTwoLabelOverlapped(pe,de)&&(ie?(ignoreEl(pe),ignoreEl(Ie)):(ignoreEl(de),ignoreEl($e)))}}function ignoreEl(t){t&&(t.ignore=!0)}function isTwoLabelOverlapped(t,r){var V=t&&t.getBoundingRect().clone(),oe=r&&r.getBoundingRect().clone();if(!(!V||!oe)){var ie=identity([]);return rotate(ie,ie,-t.rotation),V.applyTransform(mul([],ie,t.getLocalTransform())),oe.applyTransform(mul([],ie,r.getLocalTransform())),V.intersect(oe)}}function isNameLocationCenter(t){return t==="middle"||t==="center"}function createTicks(t,r,V,oe,ie){for(var le=[],ue=[],de=[],pe=0;pe=0||t===r}function fixValue(t){var r=getAxisInfo(t);if(r){var V=r.axisPointerModel,oe=r.axis.scale,ie=V.option,le=V.get("status"),ue=V.get("value");ue!=null&&(ue=oe.parse(ue));var de=isHandleTrigger(V);le==null&&(ie.status=de?"show":"hide");var pe=oe.getExtent().slice();pe[0]>pe[1]&&pe.reverse(),(ue==null||ue>pe[1])&&(ue=pe[1]),ue3?1.4:ue>1?1.2:1.1,_e=le>0?he:1/he;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",V,{scale:_e,originX:de,originY:pe,isAvailableBehavior:null})}if(ie){var $e=Math.abs(le),Ie=(le>0?1:-1)*($e>3?.4:$e>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",V,{scrollDelta:Ie,originX:de,originY:pe,isAvailableBehavior:null})}}},r.prototype._pinchHandler=function(V){if(!isTaken(this._zr,"globalPan")){var oe=V.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,V,{scale:oe,originX:V.pinchX,originY:V.pinchY,isAvailableBehavior:null})}},r}(Eventful$1);function checkPointerAndTrigger(t,r,V,oe,ie){t.pointerChecker&&t.pointerChecker(oe,ie.originX,ie.originY)&&(stop(oe.event),trigger$1(t,r,V,oe,ie))}function trigger$1(t,r,V,oe,ie){ie.isAvailableBehavior=bind$1(isAvailableBehavior,null,V,oe),t.trigger(r,ie)}function isAvailableBehavior(t,r,V){var oe=V[t];return!t||oe&&(!isString(oe)||r.event[oe+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement(t,r,V){var oe=r.getComponentByElement(t.topTarget),ie=oe&&oe.coordinateSystem;return oe&&oe!==V&&!IRRELEVANT_EXCLUDES.hasOwnProperty(oe.mainType)&&ie&&ie.model!==V}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function t(r){var V=r.mappingMethod,oe=r.type,ie=this.option=clone$3(r);this.type=oe,this.mappingMethod=V,this._normalizeData=normalizers[V];var le=t.visualHandlers[oe];this.applyVisual=le.applyVisual,this.getColorMapper=le.getColorMapper,this._normalizedToVisual=le._normalizedToVisual[V],V==="piecewise"?(normalizeVisualRange(ie),preprocessForPiecewise(ie)):V==="category"?ie.categories?preprocessForSpecifiedCategory(ie):normalizeVisualRange(ie,!0):(assert(V!=="linear"||ie.dataExtent),normalizeVisualRange(ie))}return t.prototype.mapValueToVisual=function(r){var V=this._normalizeData(r);return this._normalizedToVisual(V,r)},t.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},t.listVisualTypes=function(){return keys(t.visualHandlers)},t.isValidType=function(r){return t.visualHandlers.hasOwnProperty(r)},t.eachVisual=function(r,V,oe){isObject$3(r)?each$c(r,V,oe):V.call(oe,r)},t.mapVisual=function(r,V,oe){var ie,le=isArray$1(r)?[]:isObject$3(r)?{}:(ie=!0,null);return t.eachVisual(r,function(ue,de){var pe=V.call(oe,ue,de);ie?le=pe:le[de]=pe}),le},t.retrieveVisuals=function(r){var V={},oe;return r&&each$9(t.visualHandlers,function(ie,le){r.hasOwnProperty(le)&&(V[le]=r[le],oe=!0)}),oe?V:null},t.prepareVisualTypes=function(r){if(isArray$1(r))r=r.slice();else if(isObject(r)){var V=[];each$9(r,function(oe,ie){V.push(ie)}),r=V}else return[];return r.sort(function(oe,ie){return ie==="color"&&oe!=="color"&&oe.indexOf("color")===0?1:-1}),r},t.dependsOn=function(r,V){return V==="color"?!!(r&&r.indexOf(V)===0):r===V},t.findPieceIndex=function(r,V,oe){for(var ie,le=1/0,ue=0,de=V.length;ue=0;le--)oe[le]==null&&(delete V[r[le]],r.pop())}function normalizeVisualRange(t,r){var V=t.visual,oe=[];isObject$3(V)?each$9(V,function(le){oe.push(le)}):V!=null&&oe.push(V);var ie={color:1,symbol:1};!r&&oe.length===1&&!ie.hasOwnProperty(t.type)&&(oe[1]=oe[0]),setVisualToOption(t,oe)}function makePartialColorVisualHandler(t){return{applyVisual:function(r,V,oe){var ie=this.mapValueToVisual(r);oe("color",t(V("color"),ie))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray(t){var r=this.option.visual;return r[Math.round(linearMap$2(t,[0,1],[0,r.length-1],!0))]||{}}function makeApplyVisual(t){return function(r,V,oe){oe(t,this.mapValueToVisual(r))}}function doMapCategory(t){var r=this.option.visual;return r[this.option.loop&&t!==CATEGORY_DEFAULT_VISUAL_INDEX?t%r.length:t]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual(t){return{linear:function(r){return linearMap$2(r,t,this.option.visual,!0)},category:doMapCategory,piecewise:function(r,V){var oe=getSpecifiedVisual.call(this,V);return oe==null&&(oe=linearMap$2(r,t,this.option.visual,!0)),oe},fixed:doMapFixed}}function getSpecifiedVisual(t){var r=this.option,V=r.pieceList;if(r.hasSpecialVisual){var oe=VisualMapping.findPieceIndex(t,V),ie=V[oe];if(ie&&ie.visual)return ie.visual[this.type]}}function setVisualToOption(t,r){return t.visual=r,t.type==="color"&&(t.parsedVisual=map$2(r,function(V){var oe=parse$1(V);return oe||[0,0,0,1]})),r}var normalizers={linear:function(t){return linearMap$2(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var r=this.option.pieceList,V=VisualMapping.findPieceIndex(t,r,!0);if(V!=null)return linearMap$2(V,[0,r.length-1],[0,1],!0)},category:function(t){var r=this.option.categories?this.option.categoryMap[t]:t;return r??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan(t,r,V){return t?r<=V:rle&&(r[1-oe]=r[oe]+$e.sign*le),r}function getSpanSign(t,r){var V=t[r]-t[1-r];return{span:Math.abs(V),sign:V>0?-1:V<0?1:r?-1:1}}function restrict(t,r){return Math.min(r[1]!=null?r[1]:1/0,Math.max(r[0]!=null?r[0]:-1/0,t))}var BRUSH_PANEL_GLOBAL=!0,mathMin$1=Math.min,mathMax$1=Math.max,mathPow=Math.pow,COVER_Z=1e4,UNSELECT_THRESHOLD=6,MIN_RESIZE_LINE_WIDTH=6,MUTEX_RESOURCE_KEY="globalPan",DIRECTION_MAP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CURSOR_MAP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DEFAULT_BRUSH_OPT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},baseUID=0,BrushController=function(t){__extends(r,t);function r(V){var oe=t.call(this)||this;return oe._track=[],oe._covers=[],oe._handlers={},oe._zr=V,oe.group=new Group$3,oe._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(ie,le){this._handlers[le]=bind$1(ie,this)},oe),oe}return r.prototype.enableBrush=function(V){return this._brushType&&this._doDisableBrush(),V.brushType&&this._doEnableBrush(V),this},r.prototype._doEnableBrush=function(V){var oe=this._zr;this._enableGlobalPan||take(oe,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(ie,le){oe.on(le,ie)}),this._brushType=V.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),V,!0)},r.prototype._doDisableBrush=function(){var V=this._zr;release(V,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(oe,ie){V.off(ie,oe)}),this._brushType=this._brushOption=null},r.prototype.setPanels=function(V){if(V&&V.length){var oe=this._panels={};each$c(V,function(ie){oe[ie.panelId]=clone$3(ie)})}else this._panels=null;return this},r.prototype.mount=function(V){V=V||{},this._enableGlobalPan=V.enableGlobalPan;var oe=this.group;return this._zr.add(oe),oe.attr({x:V.x||0,y:V.y||0,rotation:V.rotation||0,scaleX:V.scaleX||1,scaleY:V.scaleY||1}),this._transform=oe.getLocalTransform(),this},r.prototype.updateCovers=function(V){V=map$2(V,function(Ie){return merge(clone$3(DEFAULT_BRUSH_OPT),Ie,!0)});var oe="\0-brush-index-",ie=this._covers,le=this._covers=[],ue=this,de=this._creatingCover;return new DataDiffer$1(ie,V,he,pe).add(_e).update(_e).remove($e).execute(),this;function pe(Ie,Ve){return(Ie.id!=null?Ie.id:oe+Ve)+"-"+Ie.brushType}function he(Ie,Ve){return pe(Ie.__brushOption,Ve)}function _e(Ie,Ve){var Fe=V[Ie];if(Ve!=null&&ie[Ve]===de)le[Ie]=ie[Ve];else{var Ue=le[Ie]=Ve!=null?(ie[Ve].__brushOption=Fe,ie[Ve]):endCreating(ue,createCover(ue,Fe));updateCoverAfterCreation(ue,Ue)}}function $e(Ie){ie[Ie]!==de&&ue.group.remove(ie[Ie])}},r.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},r.prototype.dispose=function(){this.unmount(),this.off()},r}(Eventful$1);function createCover(t,r){var V=coverRenderers[r.brushType].createCover(t,r);return V.__brushOption=r,updateZ(V,r),t.group.add(V),V}function endCreating(t,r){var V=getCoverRenderer(r);return V.endCreating&&(V.endCreating(t,r),updateZ(r,r.__brushOption)),r}function updateCoverShape(t,r){var V=r.__brushOption;getCoverRenderer(r).updateCoverShape(t,r,V.range,V)}function updateZ(t,r){var V=r.z;V==null&&(V=COVER_Z),t.traverse(function(oe){oe.z=V,oe.z2=V})}function updateCoverAfterCreation(t,r){getCoverRenderer(r).updateCommon(t,r),updateCoverShape(t,r)}function getCoverRenderer(t){return coverRenderers[t.__brushOption.brushType]}function getPanelByPoint(t,r,V){var oe=t._panels;if(!oe)return BRUSH_PANEL_GLOBAL;var ie,le=t._transform;return each$c(oe,function(ue){ue.isTargetByCursor(r,V,le)&&(ie=ue)}),ie}function getPanelByCover(t,r){var V=t._panels;if(!V)return BRUSH_PANEL_GLOBAL;var oe=r.__brushOption.panelId;return oe!=null?V[oe]:BRUSH_PANEL_GLOBAL}function clearCovers(t){var r=t._covers,V=r.length;return each$c(r,function(oe){t.group.remove(oe)},t),r.length=0,!!V}function trigger(t,r){var V=map$2(t._covers,function(oe){var ie=oe.__brushOption,le=clone$3(ie.range);return{brushType:ie.brushType,panelId:ie.panelId,range:le}});t.trigger("brush",{areas:V,isEnd:!!r.isEnd,removeOnClick:!!r.removeOnClick})}function shouldShowCover(t){var r=t._track;if(!r.length)return!1;var V=r[r.length-1],oe=r[0],ie=V[0]-oe[0],le=V[1]-oe[1],ue=mathPow(ie*ie+le*le,.5);return ue>UNSELECT_THRESHOLD}function getTrackEnds(t){var r=t.length-1;return r<0&&(r=0),[t[0],t[r]]}function createBaseRectCover(t,r,V,oe){var ie=new Group$3;return ie.add(new Rect$2({name:"main",style:makeStyle(V),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,t,r,ie,["n","s","w","e"]),ondragend:curry$1(trigger,r,{isEnd:!0})})),each$c(oe,function(le){ie.add(new Rect$2({name:le.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,t,r,ie,le),ondragend:curry$1(trigger,r,{isEnd:!0})}))}),ie}function updateBaseRect(t,r,V,oe){var ie=oe.brushStyle.lineWidth||0,le=mathMax$1(ie,MIN_RESIZE_LINE_WIDTH),ue=V[0][0],de=V[1][0],pe=ue-ie/2,he=de-ie/2,_e=V[0][1],$e=V[1][1],Ie=_e-le+ie/2,Ve=$e-le+ie/2,Fe=_e-ue,Ue=$e-de,qe=Fe+ie,Et=Ue+ie;updateRectShape(t,r,"main",ue,de,Fe,Ue),oe.transformable&&(updateRectShape(t,r,"w",pe,he,le,Et),updateRectShape(t,r,"e",Ie,he,le,Et),updateRectShape(t,r,"n",pe,he,qe,le),updateRectShape(t,r,"s",pe,Ve,qe,le),updateRectShape(t,r,"nw",pe,he,le,le),updateRectShape(t,r,"ne",Ie,he,le,le),updateRectShape(t,r,"sw",pe,Ve,le,le),updateRectShape(t,r,"se",Ie,Ve,le,le))}function updateCommon(t,r){var V=r.__brushOption,oe=V.transformable,ie=r.childAt(0);ie.useStyle(makeStyle(V)),ie.attr({silent:!oe,cursor:oe?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(le){var ue=r.childOfName(le.join("")),de=le.length===1?getGlobalDirection1(t,le[0]):getGlobalDirection2(t,le);ue&&ue.attr({silent:!oe,invisible:!oe,cursor:oe?CURSOR_MAP[de]+"-resize":null})})}function updateRectShape(t,r,V,oe,ie,le,ue){var de=r.childOfName(V);de&&de.setShape(pointsToRect(clipByPanel(t,r,[[oe,ie],[oe+le,ie+ue]])))}function makeStyle(t){return defaults({strokeNoScale:!0},t.brushStyle)}function formatRectRange(t,r,V,oe){var ie=[mathMin$1(t,V),mathMin$1(r,oe)],le=[mathMax$1(t,V),mathMax$1(r,oe)];return[[ie[0],le[0]],[ie[1],le[1]]]}function getTransform(t){return getTransform$1(t.group)}function getGlobalDirection1(t,r){var V={w:"left",e:"right",n:"top",s:"bottom"},oe={left:"w",right:"e",top:"n",bottom:"s"},ie=transformDirection(V[r],getTransform(t));return oe[ie]}function getGlobalDirection2(t,r){var V=[getGlobalDirection1(t,r[0]),getGlobalDirection1(t,r[1])];return(V[0]==="e"||V[0]==="w")&&V.reverse(),V.join("")}function driftRect(t,r,V,oe,ie,le){var ue=V.__brushOption,de=t.toRectRange(ue.range),pe=toLocalDelta(r,ie,le);each$c(oe,function(he){var _e=DIRECTION_MAP[he];de[_e[0]][_e[1]]+=pe[_e[0]]}),ue.range=t.fromRectRange(formatRectRange(de[0][0],de[1][0],de[0][1],de[1][1])),updateCoverAfterCreation(r,V),trigger(r,{isEnd:!1})}function driftPolygon(t,r,V,oe){var ie=r.__brushOption.range,le=toLocalDelta(t,V,oe);each$c(ie,function(ue){ue[0]+=le[0],ue[1]+=le[1]}),updateCoverAfterCreation(t,r),trigger(t,{isEnd:!1})}function toLocalDelta(t,r,V){var oe=t.group,ie=oe.transformCoordToLocal(r,V),le=oe.transformCoordToLocal(0,0);return[ie[0]-le[0],ie[1]-le[1]]}function clipByPanel(t,r,V){var oe=getPanelByCover(t,r);return oe&&oe!==BRUSH_PANEL_GLOBAL?oe.clipPath(V,t._transform):clone$3(V)}function pointsToRect(t){var r=mathMin$1(t[0][0],t[1][0]),V=mathMin$1(t[0][1],t[1][1]),oe=mathMax$1(t[0][0],t[1][0]),ie=mathMax$1(t[0][1],t[1][1]);return{x:r,y:V,width:oe-r,height:ie-V}}function resetCursor(t,r,V){if(!(!t._brushType||isOutsideZrArea(t,r.offsetX,r.offsetY))){var oe=t._zr,ie=t._covers,le=getPanelByPoint(t,r,V);if(!t._dragging)for(var ue=0;ueoe.getWidth()||V<0||V>oe.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function(t,r){function V(oe){return oe}return createBaseRectCover({toRectRange:V,fromRectRange:V},t,r,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var r=getTrackEnds(t);return formatRectRange(r[1][0],r[1][1],r[0][0],r[0][1])},updateCoverShape:function(t,r,V,oe){updateBaseRect(t,r,V,oe)},updateCommon,contain:mainShapeContain},polygon:{createCover:function(t,r){var V=new Group$3;return V.add(new Polyline$1({name:"main",style:makeStyle(r),silent:!0})),V},getCreatingRange:function(t){return t},endCreating:function(t,r){r.remove(r.childAt(0)),r.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,t,r),ondragend:curry$1(trigger,t,{isEnd:!0})}))},updateCoverShape:function(t,r,V,oe){r.childAt(0).setShape({points:clipByPanel(t,r,V)})},updateCommon,contain:mainShapeContain}};function getLineRenderer(t){return{createCover:function(r,V){return createBaseRectCover({toRectRange:function(oe){var ie=[oe,[0,100]];return t&&ie.reverse(),ie},fromRectRange:function(oe){return oe[t]}},r,V,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(r){var V=getTrackEnds(r),oe=mathMin$1(V[0][t],V[1][t]),ie=mathMax$1(V[0][t],V[1][t]);return[oe,ie]},updateCoverShape:function(r,V,oe,ie){var le,ue=getPanelByCover(r,V);if(ue!==BRUSH_PANEL_GLOBAL&&ue.getLinearBrushOtherExtent)le=ue.getLinearBrushOtherExtent(t);else{var de=r._zr;le=[0,[de.getWidth(),de.getHeight()][1-t]]}var pe=[oe,le];t&&pe.reverse(),updateBaseRect(r,V,pe,ie)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath(t){return t=normalizeRect(t),function(r){return clipPointsByRect(r,t)}}function makeLinearBrushOtherExtent(t,r){return t=normalizeRect(t),function(V){var oe=r??V,ie=oe?t.width:t.height,le=oe?t.x:t.y;return[le,le+(ie||0)]}}function makeRectIsTargetByCursor(t,r,V){var oe=normalizeRect(t);return function(ie,le){return oe.contain(le[0],le[1])&&!onIrrelevantElement(ie,r,V)}}function normalizeRect(t){return BoundingRect$1.create(t)}function isEC4CompatibleStyle(t,r,V,oe){return t&&(t.legacy||t.legacy!==!1&&!V&&!oe&&r!=="tspan"&&(r==="text"||hasOwn(t,"text")))}function convertFromEC4CompatibleStyle(t,r,V){var oe=t,ie,le,ue;if(r==="text")ue=oe;else{ue={},hasOwn(oe,"text")&&(ue.text=oe.text),hasOwn(oe,"rich")&&(ue.rich=oe.rich),hasOwn(oe,"textFill")&&(ue.fill=oe.textFill),hasOwn(oe,"textStroke")&&(ue.stroke=oe.textStroke),hasOwn(oe,"fontFamily")&&(ue.fontFamily=oe.fontFamily),hasOwn(oe,"fontSize")&&(ue.fontSize=oe.fontSize),hasOwn(oe,"fontStyle")&&(ue.fontStyle=oe.fontStyle),hasOwn(oe,"fontWeight")&&(ue.fontWeight=oe.fontWeight),le={type:"text",style:ue,silent:!0},ie={};var de=hasOwn(oe,"textPosition");V?ie.position=de?oe.textPosition:"inside":de&&(ie.position=oe.textPosition),hasOwn(oe,"textPosition")&&(ie.position=oe.textPosition),hasOwn(oe,"textOffset")&&(ie.offset=oe.textOffset),hasOwn(oe,"textRotation")&&(ie.rotation=oe.textRotation),hasOwn(oe,"textDistance")&&(ie.distance=oe.textDistance)}return convertEC4CompatibleRichItem(ue,t),each$c(ue.rich,function(pe){convertEC4CompatibleRichItem(pe,pe)}),{textConfig:ie,textContent:le}}function convertEC4CompatibleRichItem(t,r){r&&(r.font=r.textFont||r.font,hasOwn(r,"textStrokeWidth")&&(t.lineWidth=r.textStrokeWidth),hasOwn(r,"textAlign")&&(t.align=r.textAlign),hasOwn(r,"textVerticalAlign")&&(t.verticalAlign=r.textVerticalAlign),hasOwn(r,"textLineHeight")&&(t.lineHeight=r.textLineHeight),hasOwn(r,"textWidth")&&(t.width=r.textWidth),hasOwn(r,"textHeight")&&(t.height=r.textHeight),hasOwn(r,"textBackgroundColor")&&(t.backgroundColor=r.textBackgroundColor),hasOwn(r,"textPadding")&&(t.padding=r.textPadding),hasOwn(r,"textBorderColor")&&(t.borderColor=r.textBorderColor),hasOwn(r,"textBorderWidth")&&(t.borderWidth=r.textBorderWidth),hasOwn(r,"textBorderRadius")&&(t.borderRadius=r.textBorderRadius),hasOwn(r,"textBoxShadowColor")&&(t.shadowColor=r.textBoxShadowColor),hasOwn(r,"textBoxShadowBlur")&&(t.shadowBlur=r.textBoxShadowBlur),hasOwn(r,"textBoxShadowOffsetX")&&(t.shadowOffsetX=r.textBoxShadowOffsetX),hasOwn(r,"textBoxShadowOffsetY")&&(t.shadowOffsetY=r.textBoxShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function(t,r){return t[r]=1,t},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig(t,r,V,oe,ie){var le=t+"Animation",ue=getAnimationConfig(t,oe,ie)||{},de=transitionInnerStore(r).userDuring;return ue.duration>0&&(ue.during=de?bind$1(duringCall,{el:r,userDuring:de}):null,ue.setToFinal=!0,ue.scope=t),extend(ue,V[le]),ue}function applyUpdateTransition(t,r,V,oe){oe=oe||{};var ie=oe.dataIndex,le=oe.isInit,ue=oe.clearStyle,de=V.isAnimationEnabled(),pe=transitionInnerStore(t),he=r.style;pe.userDuring=r.during;var _e={},$e={};if(prepareTransformAllPropsFinal(t,r,$e),prepareShapeOrExtraAllPropsFinal("shape",r,$e),prepareShapeOrExtraAllPropsFinal("extra",r,$e),!le&&de&&(prepareTransformTransitionFrom(t,r,_e),prepareShapeOrExtraTransitionFrom("shape",t,r,_e),prepareShapeOrExtraTransitionFrom("extra",t,r,_e),prepareStyleTransitionFrom(t,r,he,_e)),$e.style=he,applyPropsDirectly(t,$e,ue),applyMiscProps(t,r),de)if(le){var Ie={};each$c(ELEMENT_ANIMATABLE_PROPS,function(Fe){var Ue=Fe?r[Fe]:r;Ue&&Ue.enterFrom&&(Fe&&(Ie[Fe]=Ie[Fe]||{}),extend(Fe?Ie[Fe]:Ie,Ue.enterFrom))});var Ve=getElementAnimationConfig("enter",t,r,V,ie);Ve.duration>0&&t.animateFrom(Ie,Ve)}else applyPropsTransition(t,r,ie||0,V,_e);updateLeaveTo(t,r),he?t.dirty():t.markRedraw()}function updateLeaveTo(t,r){for(var V=transitionInnerStore(t).leaveToProps,oe=0;oe0&&t.animateFrom(ie,le)}}function applyMiscProps(t,r){hasOwn(r,"silent")&&(t.silent=r.silent),hasOwn(r,"ignore")&&(t.ignore=r.ignore),t instanceof Displayable$1&&hasOwn(r,"invisible")&&(t.invisible=r.invisible),t instanceof Path$1&&hasOwn(r,"autoBatch")&&(t.autoBatch=r.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function(t,r){return tmpDuringScope.el[t]=r,this},getTransform:function(t){return tmpDuringScope.el[t]},setShape:function(t,r){var V=tmpDuringScope.el,oe=V.shape||(V.shape={});return oe[t]=r,V.dirtyShape&&V.dirtyShape(),this},getShape:function(t){var r=tmpDuringScope.el.shape;if(r)return r[t]},setStyle:function(t,r){var V=tmpDuringScope.el,oe=V.style;return oe&&(oe[t]=r,V.dirtyStyle&&V.dirtyStyle()),this},getStyle:function(t){var r=tmpDuringScope.el.style;if(r)return r[t]},setExtra:function(t,r){var V=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return V[t]=r,this},getExtra:function(t){var r=tmpDuringScope.el.extra;if(r)return r[t]}};function duringCall(){var t=this,r=t.el;if(r){var V=transitionInnerStore(r).userDuring,oe=t.userDuring;if(V!==oe){t.el=t.userDuring=null;return}tmpDuringScope.el=r,oe(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom(t,r,V,oe){var ie=V[t];if(ie){var le=r[t],ue;if(le){var de=V.transition,pe=ie.transition;if(pe)if(!ue&&(ue=oe[t]={}),isTransitionAll(pe))extend(ue,le);else for(var he=normalizeToArray(pe),_e=0;_e=0){!ue&&(ue=oe[t]={});for(var Ve=keys(le),_e=0;_e=0)){var Ie=t.getAnimationStyleProps(),Ve=Ie?Ie.style:null;if(Ve){!le&&(le=oe.style={});for(var Fe=keys(V),he=0;hede)return!0;if(ue){var pe=getAxisInfo(r).seriesDataCount,he=ie.getExtent();return Math.abs(he[0]-he[1])/pe>de}return!1}return oe===!0},t.prototype.makeElOption=function(r,V,oe,ie,le){},t.prototype.createPointerEl=function(r,V,oe,ie){var le=V.pointer;if(le){var ue=inner$5(r).pointerEl=new graphic$1[le.type](clone(V.pointer));r.add(ue)}},t.prototype.createLabelEl=function(r,V,oe,ie){if(V.label){var le=inner$5(r).labelEl=new ZRText$1(clone(V.label));r.add(le),updateLabelShowHide(le,ie)}},t.prototype.updatePointerEl=function(r,V,oe){var ie=inner$5(r).pointerEl;ie&&V.pointer&&(ie.setStyle(V.pointer.style),oe(ie,{shape:V.pointer.shape}))},t.prototype.updateLabelEl=function(r,V,oe,ie){var le=inner$5(r).labelEl;le&&(le.setStyle(V.label.style),oe(le,{x:V.label.x,y:V.label.y}),updateLabelShowHide(le,ie))},t.prototype._renderHandle=function(r){if(!(this._dragging||!this.updateHandleTransform)){var V=this._axisPointerModel,oe=this._api.getZr(),ie=this._handle,le=V.getModel("handle"),ue=V.get("status");if(!le.get("show")||!ue||ue==="hide"){ie&&oe.remove(ie),this._handle=null;return}var de;this._handle||(de=!0,ie=this._handle=createIcon(le.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(he){stop(he.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),oe.add(ie)),updateMandatoryProps(ie,V,!1),ie.setStyle(le.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var pe=le.get("size");isArray$1(pe)||(pe=[pe,pe]),ie.scaleX=pe[0]/2,ie.scaleY=pe[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",le.get("throttle")||0,"fixRate"),this._moveHandleToValue(r,de)}},t.prototype._moveHandleToValue=function(r,V){updateProps(this._axisPointerModel,!V&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(r,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(r,V){var oe=this._handle;if(oe){this._dragging=!0;var ie=this.updateHandleTransform(getHandleTransProps(oe),[r,V],this._axisModel,this._axisPointerModel);this._payloadInfo=ie,oe.stopAnimation(),oe.attr(getHandleTransProps(ie)),inner$5(oe).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var r=this._handle;if(r){var V=this._payloadInfo,oe=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:V.cursorPoint[0],y:V.cursorPoint[1],tooltipOption:V.tooltipOption,axesInfo:[{axisDim:oe.axis.dim,axisIndex:oe.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var r=this._handle;if(r){var V=this._axisPointerModel.get("value");this._moveHandleToValue(V),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(r){this._lastValue=null,this._lastStatus=null;var V=r.getZr(),oe=this._group,ie=this._handle;V&&oe&&(this._lastGraphicKey=null,oe&&V.remove(oe),ie&&V.remove(ie),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(r,V,oe){return oe=oe||0,{x:r[oe],y:r[1-oe],width:V[oe],height:V[1-oe]}},t}();function updateProps(t,r,V,oe){propsEqual(inner$5(V).lastProp,oe)||(inner$5(V).lastProp=oe,r?updateProps$1(V,oe,t):(V.stopAnimation(),V.attr(oe)))}function propsEqual(t,r){if(isObject$3(t)&&isObject$3(r)){var V=!0;return each$c(r,function(oe,ie){V=V&&propsEqual(t[ie],oe)}),!!V}else return t===r}function updateLabelShowHide(t,r){t[r.get(["label","show"])?"show":"hide"]()}function getHandleTransProps(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function updateMandatoryProps(t,r,V){var oe=r.get("z"),ie=r.get("zlevel");t&&t.traverse(function(le){le.type!=="group"&&(oe!=null&&(le.z=oe),ie!=null&&(le.zlevel=ie),le.silent=V)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(t){var r=t.get("type"),V=t.getModel(r+"Style"),oe;return r==="line"?(oe=V.getLineStyle(),oe.fill=null):r==="shadow"&&(oe=V.getAreaStyle(),oe.stroke=null),oe}function buildLabelElOption(t,r,V,oe,ie){var le=V.get("value"),ue=getValueLabel(le,r.axis,r.ecModel,V.get("seriesDataIndices"),{precision:V.get(["label","precision"]),formatter:V.get(["label","formatter"])}),de=V.getModel("label"),pe=normalizeCssArray(de.get("padding")||0),he=de.getFont(),_e=getBoundingRect(ue,he),$e=ie.position,Ie=_e.width+pe[1]+pe[3],Ve=_e.height+pe[0]+pe[2],Fe=ie.align;Fe==="right"&&($e[0]-=Ie),Fe==="center"&&($e[0]-=Ie/2);var Ue=ie.verticalAlign;Ue==="bottom"&&($e[1]-=Ve),Ue==="middle"&&($e[1]-=Ve/2),confineInContainer($e,Ie,Ve,oe);var qe=de.get("backgroundColor");(!qe||qe==="auto")&&(qe=r.get(["axisLine","lineStyle","color"])),t.label={x:$e[0],y:$e[1],style:createTextStyle$1(de,{text:ue,font:he,fill:de.getTextColor(),padding:pe,backgroundColor:qe}),z2:10}}function confineInContainer(t,r,V,oe){var ie=oe.getWidth(),le=oe.getHeight();t[0]=Math.min(t[0]+r,ie)-r,t[1]=Math.min(t[1]+V,le)-V,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function getValueLabel(t,r,V,oe,ie){t=r.scale.parse(t);var le=r.scale.getLabel({value:t},{precision:ie.precision}),ue=ie.formatter;if(ue){var de={value:getAxisRawValue(r,{value:t}),axisDimension:r.dim,axisIndex:r.index,seriesData:[]};each$c(oe,function(pe){var he=V.getSeriesByIndex(pe.seriesIndex),_e=pe.dataIndexInside,$e=he&&he.getDataParams(_e);$e&&de.seriesData.push($e)}),isString(ue)?le=ue.replace("{value}",le):isFunction(ue)&&(le=ue(de))}return le}function getTransformedPosition(t,r,V){var oe=create();return rotate(oe,oe,V.rotation),translate(oe,oe,V.position),applyTransform([t.dataToCoord(r),(V.labelOffset||0)+(V.labelDirection||1)*(V.labelMargin||0)],oe)}function buildCartesianSingleLabelElOption(t,r,V,oe,ie,le){var ue=AxisBuilder$1.innerTextLayout(V.rotation,0,V.labelDirection);V.labelMargin=ie.get(["label","margin"]),buildLabelElOption(r,oe,ie,le,{position:getTransformedPosition(oe.axis,t,V),align:ue.textAlign,verticalAlign:ue.textVerticalAlign})}function makeLineShape(t,r,V){return V=V||0,{x1:t[V],y1:t[1-V],x2:r[V],y2:r[1-V]}}function makeRectShape(t,r,V){return V=V||0,{x:t[V],y:t[1-V],width:r[V],height:r[1-V]}}var CartesianAxisPointer=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.makeElOption=function(V,oe,ie,le,ue){var de=ie.axis,pe=de.grid,he=le.get("type"),_e=getCartesian(pe,de).getOtherAxis(de).getGlobalExtent(),$e=de.toGlobalCoord(de.dataToCoord(oe,!0));if(he&&he!=="none"){var Ie=buildElStyle(le),Ve=pointerShapeBuilder[he](de,$e,_e);Ve.style=Ie,V.graphicKey=Ve.type,V.pointer=Ve}var Fe=layout$1(pe.model,ie);buildCartesianSingleLabelElOption(oe,V,Fe,ie,le,ue)},r.prototype.getHandleTransform=function(V,oe,ie){var le=layout$1(oe.axis.grid.model,oe,{labelInside:!1});le.labelMargin=ie.get(["handle","margin"]);var ue=getTransformedPosition(oe.axis,V,le);return{x:ue[0],y:ue[1],rotation:le.rotation+(le.labelDirection<0?Math.PI:0)}},r.prototype.updateHandleTransform=function(V,oe,ie,le){var ue=ie.axis,de=ue.grid,pe=ue.getGlobalExtent(!0),he=getCartesian(de,ue).getOtherAxis(ue).getGlobalExtent(),_e=ue.dim==="x"?0:1,$e=[V.x,V.y];$e[_e]+=oe[_e],$e[_e]=Math.min(pe[1],$e[_e]),$e[_e]=Math.max(pe[0],$e[_e]);var Ie=(he[1]+he[0])/2,Ve=[Ie,Ie];Ve[_e]=$e[_e];var Fe=[{verticalAlign:"middle"},{align:"center"}];return{x:$e[0],y:$e[1],rotation:V.rotation,cursorPoint:Ve,tooltipOption:Fe[_e]}},r}(BaseAxisPointer$1);function getCartesian(t,r){var V={};return V[r.dim+"AxisIndex"]=r.index,t.getCartesian(V)}var pointerShapeBuilder={line:function(t,r,V){var oe=makeLineShape([r,V[0]],[r,V[1]],getAxisDimIndex(t));return{type:"Line",subPixelOptimize:!0,shape:oe}},shadow:function(t,r,V){var oe=Math.max(1,t.getBandWidth()),ie=V[1]-V[0];return{type:"Rect",shape:makeRectShape([r-oe/2,V[0]],[oe,ie],getAxisDimIndex(t))}}};function getAxisDimIndex(t){return t.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.type="axisPointer",r.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},r}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register(t,r,V){if(!env$1.node){var oe=r.getZr();inner$4(oe).records||(inner$4(oe).records={}),initGlobalListeners(oe,r);var ie=inner$4(oe).records[t]||(inner$4(oe).records[t]={});ie.handler=V}}function initGlobalListeners(t,r){if(inner$4(t).initialized)return;inner$4(t).initialized=!0,V("click",curry$1(doEnter,"click")),V("mousemove",curry$1(doEnter,"mousemove")),V("globalout",onLeave);function V(oe,ie){t.on(oe,function(le){var ue=makeDispatchAction$1(r);each$8(inner$4(t).records,function(de){de&&ie(de,le,ue.dispatchAction)}),dispatchTooltipFinally(ue.pendings,r)})}}function dispatchTooltipFinally(t,r){var V=t.showTip.length,oe=t.hideTip.length,ie;V?ie=t.showTip[V-1]:oe&&(ie=t.hideTip[oe-1]),ie&&(ie.dispatchAction=null,r.dispatchAction(ie))}function onLeave(t,r,V){t.handler("leave",null,V)}function doEnter(t,r,V,oe){r.handler(t,V,oe)}function makeDispatchAction$1(t){var r={showTip:[],hideTip:[]},V=function(oe){var ie=r[oe.type];ie?ie.push(oe):(oe.dispatchAction=V,t.dispatchAction(oe))};return{dispatchAction:V,pendings:r}}function unregister(t,r){if(!env$1.node){var V=r.getZr(),oe=(inner$4(V).records||{})[t];oe&&(inner$4(V).records[t]=null)}}var AxisPointerView=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.prototype.render=function(V,oe,ie){var le=oe.getComponent("tooltip"),ue=V.get("triggerOn")||le&&le.get("triggerOn")||"mousemove|click";register("axisPointer",ie,function(de,pe,he){ue!=="none"&&(de==="leave"||ue.indexOf(de)>=0)&&he({type:"updateAxisPointer",currTrigger:de,x:pe&&pe.offsetX,y:pe&&pe.offsetY})})},r.prototype.remove=function(V,oe){unregister("axisPointer",oe)},r.prototype.dispose=function(V,oe){unregister("axisPointer",oe)},r.type="axisPointer",r}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries(t,r){var V=[],oe=t.seriesIndex,ie;if(oe==null||!(ie=r.getSeriesByIndex(oe)))return{point:[]};var le=ie.getData(),ue=queryDataIndex(le,t);if(ue==null||ue<0||isArray$1(ue))return{point:[]};var de=le.getItemGraphicEl(ue),pe=ie.coordinateSystem;if(ie.getTooltipPosition)V=ie.getTooltipPosition(ue)||[];else if(pe&&pe.dataToPoint)if(t.isStacked){var he=pe.getBaseAxis(),_e=pe.getOtherAxis(he),$e=_e.dim,Ie=he.dim,Ve=$e==="x"||$e==="radius"?1:0,Fe=le.mapDimension(Ie),Ue=[];Ue[Ve]=le.get(Fe,ue),Ue[1-Ve]=le.get(le.getCalculationInfo("stackResultDimension"),ue),V=pe.dataToPoint(Ue)||[]}else V=pe.dataToPoint(le.getValues(map$2(pe.dimensions,function(Et){return le.mapDimension(Et)}),ue))||[];else if(de){var qe=de.getBoundingRect().clone();qe.applyTransform(de.transform),V=[qe.x+qe.width/2,qe.y+qe.height/2]}return{point:V,el:de}}var inner$3=makeInner();function axisTrigger(t,r,V){var oe=t.currTrigger,ie=[t.x,t.y],le=t,ue=t.dispatchAction||bind$1(V.dispatchAction,V),de=r.getComponent("axisPointer").coordSysAxesInfo;if(de){illegalPoint(ie)&&(ie=findPointFromSeries({seriesIndex:le.seriesIndex,dataIndex:le.dataIndex},r).point);var pe=illegalPoint(ie),he=le.axesInfo,_e=de.axesInfo,$e=oe==="leave"||illegalPoint(ie),Ie={},Ve={},Fe={list:[],map:{}},Ue={showPointer:curry$1(showPointer,Ve),showTooltip:curry$1(showTooltip,Fe)};each$c(de.coordSysMap,function(Et,At){var Lt=pe||Et.containPoint(ie);each$c(de.coordSysAxesInfo[At],function(hn,_n){var vn=hn.axis,bn=findInputAxisInfo(he,hn);if(!$e&&Lt&&(!he||bn)){var Cn=bn&&bn.value;Cn==null&&!pe&&(Cn=vn.pointToData(ie)),Cn!=null&&processOnAxis(hn,Cn,Ue,!1,Ie)}})});var qe={};return each$c(_e,function(Et,At){var Lt=Et.linkGroup;Lt&&!Ve[At]&&each$c(Lt.axesInfo,function(hn,_n){var vn=Ve[_n];if(hn!==Et&&vn){var bn=vn.value;Lt.mapper&&(bn=Et.axis.scale.parse(Lt.mapper(bn,makeMapperParam(hn),makeMapperParam(Et)))),qe[Et.key]=bn}})}),each$c(qe,function(Et,At){processOnAxis(_e[At],Et,Ue,!0,Ie)}),updateModelActually(Ve,_e,Ie),dispatchTooltipActually(Fe,ie,t,ue),dispatchHighDownActually(_e,ue,V),Ie}}function processOnAxis(t,r,V,oe,ie){var le=t.axis;if(!(le.scale.isBlank()||!le.containData(r))){if(!t.involveSeries){V.showPointer(t,r);return}var ue=buildPayloadsBySeries(r,t),de=ue.payloadBatch,pe=ue.snapToValue;de[0]&&ie.seriesIndex==null&&extend(ie,de[0]),!oe&&t.snap&&le.containData(pe)&&pe!=null&&(r=pe),V.showPointer(t,r,de),V.showTooltip(t,ue,pe)}}function buildPayloadsBySeries(t,r){var V=r.axis,oe=V.dim,ie=t,le=[],ue=Number.MAX_VALUE,de=-1;return each$c(r.seriesModels,function(pe,he){var _e=pe.getData().mapDimensionsAll(oe),$e,Ie;if(pe.getAxisTooltipData){var Ve=pe.getAxisTooltipData(_e,t,V);Ie=Ve.dataIndices,$e=Ve.nestestValue}else{if(Ie=pe.getData().indicesOfNearest(_e[0],t,V.type==="category"?.5:null),!Ie.length)return;$e=pe.getData().get(_e[0],Ie[0])}if(!($e==null||!isFinite($e))){var Fe=t-$e,Ue=Math.abs(Fe);Ue<=ue&&((Ue=0&&de<0)&&(ue=Ue,de=Fe,ie=$e,le.length=0),each$c(Ie,function(qe){le.push({seriesIndex:pe.seriesIndex,dataIndexInside:qe,dataIndex:pe.getData().getRawIndex(qe)})}))}}),{payloadBatch:le,snapToValue:ie}}function showPointer(t,r,V,oe){t[r.key]={value:V,payloadBatch:oe}}function showTooltip(t,r,V,oe){var ie=V.payloadBatch,le=r.axis,ue=le.model,de=r.axisPointerModel;if(!(!r.triggerTooltip||!ie.length)){var pe=r.coordSys.model,he=makeKey(pe),_e=t.map[he];_e||(_e=t.map[he]={coordSysId:pe.id,coordSysIndex:pe.componentIndex,coordSysType:pe.type,coordSysMainType:pe.mainType,dataByAxis:[]},t.list.push(_e)),_e.dataByAxis.push({axisDim:le.dim,axisIndex:ue.componentIndex,axisType:ue.type,axisId:ue.id,value:oe,valueLabelOpt:{precision:de.get(["label","precision"]),formatter:de.get(["label","formatter"])},seriesDataIndices:ie.slice()})}}function updateModelActually(t,r,V){var oe=V.axesInfo=[];each$c(r,function(ie,le){var ue=ie.axisPointerModel.option,de=t[le];de?(!ie.useHandle&&(ue.status="show"),ue.value=de.value,ue.seriesDataIndices=(de.payloadBatch||[]).slice()):!ie.useHandle&&(ue.status="hide"),ue.status==="show"&&oe.push({axisDim:ie.axis.dim,axisIndex:ie.axis.model.componentIndex,value:ue.value})})}function dispatchTooltipActually(t,r,V,oe){if(illegalPoint(r)||!t.list.length){oe({type:"hideTip"});return}var ie=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};oe({type:"showTip",escapeConnect:!0,x:r[0],y:r[1],tooltipOption:V.tooltipOption,position:V.position,dataIndexInside:ie.dataIndexInside,dataIndex:ie.dataIndex,seriesIndex:ie.seriesIndex,dataByCoordSys:t.list})}function dispatchHighDownActually(t,r,V){var oe=V.getZr(),ie="axisPointerLastHighlights",le=inner$3(oe)[ie]||{},ue=inner$3(oe)[ie]={};each$c(t,function(he,_e){var $e=he.axisPointerModel.option;$e.status==="show"&&he.triggerEmphasis&&each$c($e.seriesDataIndices,function(Ie){var Ve=Ie.seriesIndex+" | "+Ie.dataIndex;ue[Ve]=Ie})});var de=[],pe=[];each$c(le,function(he,_e){!ue[_e]&&pe.push(he)}),each$c(ue,function(he,_e){!le[_e]&&de.push(he)}),pe.length&&V.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:pe}),de.length&&V.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:de})}function findInputAxisInfo(t,r){for(var V=0;V<(t||[]).length;V++){var oe=t[V];if(r.axis.dim===oe.axisDim&&r.axis.model.componentIndex===oe.axisIndex)return oe}}function makeMapperParam(t){var r=t.axis.model,V={},oe=V.axisDim=t.axis.dim;return V.axisIndex=V[oe+"AxisIndex"]=r.componentIndex,V.axisName=V[oe+"AxisName"]=r.name,V.axisId=V[oe+"AxisId"]=r.id,V}function illegalPoint(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function install$f(t){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),t.registerComponentModel(AxisPointerModel$1),t.registerComponentView(AxisPointerView$1),t.registerPreprocessor(function(r){if(r){(!r.axisPointer||r.axisPointer.length===0)&&(r.axisPointer={});var V=r.axisPointer.link;V&&!isArray$1(V)&&(r.axisPointer.link=[V])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(r,V){r.getComponent("axisPointer").coordSysAxesInfo=collect(r,V)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e(t){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption(t,r){var V=t.existing;if(r.id=t.keyInfo.id,!r.type&&V&&(r.type=V.type),r.parentId==null){var oe=r.parentOption;oe?r.parentId=oe.id:V&&(r.parentId=V.parentId)}r.parentOption=null}function isSetLoc(t,r){var V;return each$c(r,function(oe){t[oe]!=null&&t[oe]!=="auto"&&(V=!0)}),V}function mergeNewElOptionToExist(t,r,V){var oe=extend({},V),ie=t[r],le=V.$action||"merge";le==="merge"?ie?(merge(ie,oe,!0),mergeLayoutParam(ie,oe,{ignoreSize:!0}),copyLayoutParams(V,ie),copyTransitionInfo(V,ie),copyTransitionInfo(V,ie,"shape"),copyTransitionInfo(V,ie,"style"),copyTransitionInfo(V,ie,"extra"),V.clipPath=ie.clipPath):t[r]=oe:le==="replace"?t[r]=oe:le==="remove"&&ie&&(t[r]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo(t,r,V){if(V&&(!t[V]&&r[V]&&(t[V]={}),t=t[V],r=r[V]),!(!t||!r))for(var oe=V?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,ie=0;ie=0;_e--){var $e=ie[_e],Ie=convertOptionIdName($e.id,null),Ve=Ie!=null?ue.get(Ie):null;if(Ve){var Fe=Ve.parent,Et=inner$2(Fe),At=Fe===le?{width:de,height:pe}:{width:Et.width,height:Et.height},Lt={},hn=positionElement(Ve,$e,At,null,{hv:$e.hv,boundingMode:$e.bounding},Lt);if(!inner$2(Ve).isNew&&hn){for(var _n=$e.transition,vn={},bn=0;bn=0)?vn[Cn]=Sn:Ve[Cn]=Sn}updateProps$1(Ve,vn,V,0)}else Ve.attr(Lt)}}},r.prototype._clear=function(){var V=this,oe=this._elMap;oe.each(function(ie){removeEl(ie,inner$2(ie).option,oe,V._lastGraphicModel)}),this._elMap=createHashMap()},r.prototype.dispose=function(){this._clear()},r.type="graphic",r}(ComponentView$1);function newEl(t){var r=hasOwn(nonShapeGraphicElements,t)?nonShapeGraphicElements[t]:getShapeClass(t),V=new r({});return inner$2(V).type=t,V}function createEl(t,r,V,oe){var ie=newEl(V);return r.add(ie),oe.set(t,ie),inner$2(ie).id=t,inner$2(ie).isNew=!0,ie}function removeEl(t,r,V,oe){var ie=t&&t.parent;ie&&(t.type==="group"&&t.traverse(function(le){removeEl(le,r,V,oe)}),applyLeaveTransition(t,r,oe),V.removeKey(inner$2(t).id))}function updateCommonAttrs(t,r,V,oe){t.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",oe||0],["z",V||0],["z2",0]],function(ie){var le=ie[0];hasOwn(r,le)?t[le]=retrieve2(r[le],ie[1]):t[le]==null&&(t[le]=ie[1])}),each$c(keys(r),function(ie){if(ie.indexOf("on")===0){var le=r[ie];t[ie]=isFunction(le)?le:null}}),hasOwn(r,"draggable")&&(t.draggable=r.draggable),r.name!=null&&(t.name=r.name),r.id!=null&&(t.id=r.id)}function getCleanedElOption(t){return t=extend({},t),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(r){delete t[r]}),t}function setEventData(t,r,V){var oe=getECData(t).eventData;!t.silent&&!t.ignore&&!oe&&(oe=getECData(t).eventData={componentType:"graphic",componentIndex:r.componentIndex,name:t.name}),oe&&(oe.info=V.info)}function install$d(t){t.registerComponentModel(GraphicComponentModel),t.registerComponentView(GraphicComponentView),t.registerPreprocessor(function(r){var V=r.graphic;isArray$1(V)?!V[0]||!V[0].elements?r.graphic=[{elements:V}]:r.graphic=[r.graphic[0]]:V&&!V.elements&&(r.graphic=[{elements:[V]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported(t){var r=t.get("coordinateSystem");return indexOf(SERIES_COORDS,r)>=0}function getAxisMainType(t){return t+"Axis"}function findEffectedDataZooms(t,r){var V=createHashMap(),oe=[],ie=createHashMap();t.eachComponent({mainType:"dataZoom",query:r},function(_e){ie.get(_e.uid)||de(_e)});var le;do le=!1,t.eachComponent("dataZoom",ue);while(le);function ue(_e){!ie.get(_e.uid)&&pe(_e)&&(de(_e),le=!0)}function de(_e){ie.set(_e.uid,!0),oe.push(_e),he(_e)}function pe(_e){var $e=!1;return _e.eachTargetAxis(function(Ie,Ve){var Fe=V.get(Ie);Fe&&Fe[Ve]&&($e=!0)}),$e}function he(_e){_e.eachTargetAxis(function($e,Ie){(V.get($e)||V.set($e,[]))[Ie]=!0})}return oe}function collectReferCoordSysModelInfo(t){var r=t.ecModel,V={infoList:[],infoMap:createHashMap()};return t.eachTargetAxis(function(oe,ie){var le=r.getComponent(getAxisMainType(oe),ie);if(le){var ue=le.getCoordSysModel();if(ue){var de=ue.uid,pe=V.infoMap.get(de);pe||(pe={model:ue,axisModels:[]},V.infoList.push(pe),V.infoMap.set(de,pe)),pe.axisModels.push(le)}}}),V}var DataZoomAxisInfo=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(r){this.indexMap[r]||(this.indexList.push(r),this.indexMap[r]=!0)},t}(),DataZoomModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V._autoThrottle=!0,V._noTarget=!0,V._rangePropMode=["percent","percent"],V}return r.prototype.init=function(V,oe,ie){var le=retrieveRawOption(V);this.settledOption=le,this.mergeDefaultAndTheme(V,ie),this._doInit(le)},r.prototype.mergeOption=function(V){var oe=retrieveRawOption(V);merge(this.option,V,!0),merge(this.settledOption,oe,!0),this._doInit(oe)},r.prototype._doInit=function(V){var oe=this.option;this._setDefaultThrottle(V),this._updateRangeUse(V);var ie=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(le,ue){this._rangePropMode[ue]==="value"&&(oe[le[0]]=ie[le[0]]=null)},this),this._resetTarget()},r.prototype._resetTarget=function(){var V=this.get("orient",!0),oe=this._targetAxisInfoMap=createHashMap(),ie=this._fillSpecifiedTargetAxis(oe);ie?this._orient=V||this._makeAutoOrientByTargetAxis():(this._orient=V||"horizontal",this._fillAutoTargetAxisByOrient(oe,this._orient)),this._noTarget=!0,oe.each(function(le){le.indexList.length&&(this._noTarget=!1)},this)},r.prototype._fillSpecifiedTargetAxis=function(V){var oe=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(ie){var le=this.getReferringComponents(getAxisMainType(ie),MULTIPLE_REFERRING);if(le.specified){oe=!0;var ue=new DataZoomAxisInfo;each$c(le.models,function(de){ue.add(de.componentIndex)}),V.set(ie,ue)}},this),oe},r.prototype._fillAutoTargetAxisByOrient=function(V,oe){var ie=this.ecModel,le=!0;if(le){var ue=oe==="vertical"?"y":"x",de=ie.findComponents({mainType:ue+"Axis"});pe(de,ue)}if(le){var de=ie.findComponents({mainType:"singleAxis",filter:function(_e){return _e.get("orient",!0)===oe}});pe(de,"single")}function pe(he,_e){var $e=he[0];if($e){var Ie=new DataZoomAxisInfo;if(Ie.add($e.componentIndex),V.set(_e,Ie),le=!1,_e==="x"||_e==="y"){var Ve=$e.getReferringComponents("grid",SINGLE_REFERRING).models[0];Ve&&each$c(he,function(Fe){$e.componentIndex!==Fe.componentIndex&&Ve===Fe.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&Ie.add(Fe.componentIndex)})}}}le&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(he){if(le){var _e=ie.findComponents({mainType:getAxisMainType(he),filter:function(Ie){return Ie.get("type",!0)==="category"}});if(_e[0]){var $e=new DataZoomAxisInfo;$e.add(_e[0].componentIndex),V.set(he,$e),le=!1}}},this)},r.prototype._makeAutoOrientByTargetAxis=function(){var V;return this.eachTargetAxis(function(oe){!V&&(V=oe)},this),V==="y"?"vertical":"horizontal"},r.prototype._setDefaultThrottle=function(V){if(V.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var oe=this.ecModel.option;this.option.throttle=oe.animation&&oe.animationDurationUpdate>0?100:20}},r.prototype._updateRangeUse=function(V){var oe=this._rangePropMode,ie=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(le,ue){var de=V[le[0]]!=null,pe=V[le[1]]!=null;de&&!pe?oe[ue]="percent":!de&&pe?oe[ue]="value":ie?oe[ue]=ie[ue]:de&&(oe[ue]="percent")})},r.prototype.noTarget=function(){return this._noTarget},r.prototype.getFirstTargetAxisModel=function(){var V;return this.eachTargetAxis(function(oe,ie){V==null&&(V=this.ecModel.getComponent(getAxisMainType(oe),ie))},this),V},r.prototype.eachTargetAxis=function(V,oe){this._targetAxisInfoMap.each(function(ie,le){each$c(ie.indexList,function(ue){V.call(oe,le,ue)})})},r.prototype.getAxisProxy=function(V,oe){var ie=this.getAxisModel(V,oe);if(ie)return ie.__dzAxisProxy},r.prototype.getAxisModel=function(V,oe){var ie=this._targetAxisInfoMap.get(V);if(ie&&ie.indexMap[oe])return this.ecModel.getComponent(getAxisMainType(V),oe)},r.prototype.setRawRange=function(V){var oe=this.option,ie=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(le){(V[le[0]]!=null||V[le[1]]!=null)&&(oe[le[0]]=ie[le[0]]=V[le[0]],oe[le[1]]=ie[le[1]]=V[le[1]])},this),this._updateRangeUse(V)},r.prototype.setCalculatedRange=function(V){var oe=this.option;each$c(["start","startValue","end","endValue"],function(ie){oe[ie]=V[ie]})},r.prototype.getPercentRange=function(){var V=this.findRepresentativeAxisProxy();if(V)return V.getDataPercentWindow()},r.prototype.getValueRange=function(V,oe){if(V==null&&oe==null){var ie=this.findRepresentativeAxisProxy();if(ie)return ie.getDataValueWindow()}else return this.getAxisProxy(V,oe).getDataValueWindow()},r.prototype.findRepresentativeAxisProxy=function(V){if(V)return V.__dzAxisProxy;for(var oe,ie=this._targetAxisInfoMap.keys(),le=0;leue[1];if(Lt&&!hn&&!_n)return!0;Lt&&(qe=!0),hn&&(Fe=!0),_n&&(Ue=!0)}return qe&&Fe&&Ue})}else each$7(_e,function(Ve){if(le==="empty")pe.setData(he=he.map(Ve,function(Ue){return de(Ue)?Ue:NaN}));else{var Fe={};Fe[Ve]=ue,he.selectRange(Fe)}});each$7(_e,function(Ve){he.setApproximateExtent(ue,Ve)})}});function de(pe){return pe>=ue[0]&&pe<=ue[1]}},t.prototype._updateMinMaxSpan=function(){var r=this._minMaxSpan={},V=this._dataZoomModel,oe=this._dataExtent;each$7(["min","max"],function(ie){var le=V.get(ie+"Span"),ue=V.get(ie+"ValueSpan");ue!=null&&(ue=this.getAxisModel().axis.scale.parse(ue)),ue!=null?le=linearMap$2(oe[0]+ue,oe,[0,100],!0):le!=null&&(ue=linearMap$2(le,[0,100],oe,!0)-oe[0]),r[ie+"Span"]=le,r[ie+"ValueSpan"]=ue},this)},t.prototype._setAxisModel=function(){var r=this.getAxisModel(),V=this._percentWindow,oe=this._valueWindow;if(V){var ie=getPixelPrecision(oe,[0,500]);ie=Math.min(ie,20);var le=r.axis.scale.rawExtentInfo;V[0]!==0&&le.setDeterminedMinMax("min",+oe[0].toFixed(ie)),V[1]!==100&&le.setDeterminedMinMax("max",+oe[1].toFixed(ie)),le.freeze()}},t}();function calculateDataExtent(t,r,V){var oe=[1/0,-1/0];each$7(V,function(ue){unionAxisExtentFromData(oe,ue.getData(),r)});var ie=t.getAxisModel(),le=ensureScaleRawExtentInfo(ie.axis.scale,ie,oe).calculate();return[le.min,le.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function(t){function r(ie){t.eachComponent("dataZoom",function(le){le.eachTargetAxis(function(ue,de){var pe=t.getComponent(getAxisMainType(ue),de);ie(ue,de,pe,le)})})}r(function(ie,le,ue,de){ue.__dzAxisProxy=null});var V=[];r(function(ie,le,ue,de){ue.__dzAxisProxy||(ue.__dzAxisProxy=new AxisProxy$1(ie,le,de,t),V.push(ue.__dzAxisProxy))});var oe=createHashMap();return each$c(V,function(ie){each$c(ie.getTargetSeriesModels(),function(le){oe.set(le.uid,le)})}),oe},overallReset:function(t,r){t.eachComponent("dataZoom",function(V){V.eachTargetAxis(function(oe,ie){V.getAxisProxy(oe,ie).reset(V)}),V.eachTargetAxis(function(oe,ie){V.getAxisProxy(oe,ie).filterData(V,r)})}),t.eachComponent("dataZoom",function(V){var oe=V.findRepresentativeAxisProxy();if(oe){var ie=oe.getDataPercentWindow(),le=oe.getDataValueWindow();V.setCalculatedRange({start:ie[0],end:ie[1],startValue:le[0],endValue:le[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction(t){t.registerAction("dataZoom",function(r,V){var oe=findEffectedDataZooms(V,r);each$c(oe,function(ie){ie.setRawRange({start:r.start,end:r.end,startValue:r.startValue,endValue:r.endValue})})})}var installed$1=!1;function installCommon$1(t){installed$1||(installed$1=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c(t){t.registerComponentModel(SelectZoomModel),t.registerComponentView(SelectZoomView),installCommon$1(t)}var ToolboxFeature=function(){function t(){}return t}(),features={};function registerFeature(t,r){features[t]=r}function getFeature(t){return features[t]}var ToolboxModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var V=this.ecModel;each$c(this.option.feature,function(oe,ie){var le=getFeature(ie);le&&(le.getDefaultOption&&(le.defaultOption=le.getDefaultOption(V)),merge(oe,le.defaultOption))})},r.type="toolbox",r.layoutMode={type:"box",ignoreSize:!0},r.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},r}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout(t,r,V){var oe=r.getBoxLayoutParams(),ie=r.get("padding"),le={width:V.getWidth(),height:V.getHeight()},ue=getLayoutRect(oe,le,ie);box(r.get("orient"),t,r.get("itemGap"),ue.width,ue.height),positionElement(t,oe,le,ie)}function makeBackground(t,r){var V=normalizeCssArray(r.get("padding")),oe=r.getItemStyle(["color","opacity"]);return oe.fill=r.get("backgroundColor"),t=new Rect$2({shape:{x:t.x-V[3],y:t.y-V[0],width:t.width+V[1]+V[3],height:t.height+V[0]+V[2],r:r.get("borderRadius")},style:oe,silent:!0,z2:-1}),t}var ToolboxView=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function(V,oe,ie,le){var ue=this.group;if(ue.removeAll(),!V.get("show"))return;var de=+V.get("itemSize"),pe=V.get("orient")==="vertical",he=V.get("feature")||{},_e=this._features||(this._features={}),$e=[];each$c(he,function(Fe,Ue){$e.push(Ue)}),new DataDiffer$1(this._featureNames||[],$e).add(Ie).update(Ie).remove(curry$1(Ie,null)).execute(),this._featureNames=$e;function Ie(Fe,Ue){var qe=$e[Fe],Et=$e[Ue],At=he[qe],Lt=new Model$1(At,V,V.ecModel),hn;if(le&&le.newTitle!=null&&le.featureName===qe&&(At.title=le.newTitle),qe&&!Et){if(isUserFeatureName(qe))hn={onclick:Lt.option.onclick,featureName:qe};else{var _n=getFeature(qe);if(!_n)return;hn=new _n}_e[qe]=hn}else if(hn=_e[Et],!hn)return;hn.uid=getUID("toolbox-feature"),hn.model=Lt,hn.ecModel=oe,hn.api=ie;var vn=hn instanceof ToolboxFeature;if(!qe&&Et){vn&&hn.dispose&&hn.dispose(oe,ie);return}if(!Lt.get("show")||vn&&hn.unusable){vn&&hn.remove&&hn.remove(oe,ie);return}Ve(Lt,hn,qe),Lt.setIconStatus=function(bn,Cn){var Sn=this.option,wn=this.iconPaths;Sn.iconStatus=Sn.iconStatus||{},Sn.iconStatus[bn]=Cn,wn[bn]&&(Cn==="emphasis"?enterEmphasis:leaveEmphasis)(wn[bn])},hn instanceof ToolboxFeature&&hn.render&&hn.render(Lt,oe,ie,le)}function Ve(Fe,Ue,qe){var Et=Fe.getModel("iconStyle"),At=Fe.getModel(["emphasis","iconStyle"]),Lt=Ue instanceof ToolboxFeature&&Ue.getIcons?Ue.getIcons():Fe.get("icon"),hn=Fe.get("title")||{},_n,vn;isString(Lt)?(_n={},_n[qe]=Lt):_n=Lt,isString(hn)?(vn={},vn[qe]=hn):vn=hn;var bn=Fe.iconPaths={};each$c(_n,function(Cn,Sn){var wn=createIcon(Cn,{},{x:-de/2,y:-de/2,width:de,height:de});wn.setStyle(Et.getItemStyle());var En=wn.ensureState("emphasis");En.style=At.getItemStyle();var xn=new ZRText$1({style:{text:vn[Sn],align:At.get("textAlign"),borderRadius:At.get("textBorderRadius"),padding:At.get("textPadding"),fill:null},ignore:!0});wn.setTextContent(xn),setTooltipConfig({el:wn,componentModel:V,itemName:Sn,formatterParamsExtra:{title:vn[Sn]}}),wn.__title=vn[Sn],wn.on("mouseover",function(){var Pn=At.getItemStyle(),kn=pe?V.get("right")==null&&V.get("left")!=="right"?"right":"left":V.get("bottom")==null&&V.get("top")!=="bottom"?"bottom":"top";xn.setStyle({fill:At.get("textFill")||Pn.fill||Pn.stroke||"#000",backgroundColor:At.get("textBackgroundColor")}),wn.setTextConfig({position:At.get("textPosition")||kn}),xn.ignore=!V.get("showTitle"),ie.enterEmphasis(this)}).on("mouseout",function(){Fe.get(["iconStatus",Sn])!=="emphasis"&&ie.leaveEmphasis(this),xn.hide()}),(Fe.get(["iconStatus",Sn])==="emphasis"?enterEmphasis:leaveEmphasis)(wn),ue.add(wn),wn.on("click",bind$1(Ue.onclick,Ue,oe,ie,Sn)),bn[Sn]=wn})}layout(ue,V,ie),ue.add(makeBackground(ue.getBoundingRect(),V)),pe||ue.eachChild(function(Fe){var Ue=Fe.__title,qe=Fe.ensureState("emphasis"),Et=qe.textConfig||(qe.textConfig={}),At=Fe.getTextContent(),Lt=At&&At.ensureState("emphasis");if(Lt&&!isFunction(Lt)&&Ue){var hn=Lt.style||(Lt.style={}),_n=getBoundingRect(Ue,ZRText$1.makeFont(hn)),vn=Fe.x+ue.x,bn=Fe.y+ue.y+de,Cn=!1;bn+_n.height>ie.getHeight()&&(Et.position="top",Cn=!0);var Sn=Cn?-5-_n.height:de+10;vn+_n.width/2>ie.getWidth()?(Et.position=["100%",Sn],hn.align="right"):vn-_n.width/2<0&&(Et.position=[0,Sn],hn.align="left")}})},r.prototype.updateView=function(V,oe,ie,le){each$c(this._features,function(ue){ue instanceof ToolboxFeature&&ue.updateView&&ue.updateView(ue.model,oe,ie,le)})},r.prototype.remove=function(V,oe){each$c(this._features,function(ie){ie instanceof ToolboxFeature&&ie.remove&&ie.remove(V,oe)}),this.group.removeAll()},r.prototype.dispose=function(V,oe){each$c(this._features,function(ie){ie instanceof ToolboxFeature&&ie.dispose&&ie.dispose(V,oe)})},r.type="toolbox",r}(ComponentView$1);function isUserFeatureName(t){return t.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.onclick=function(V,oe){var ie=this.model,le=ie.get("name")||V.get("title.0.text")||"echarts",ue=oe.getZr().painter.getType()==="svg",de=ue?"svg":ie.get("type",!0)||"png",pe=oe.getConnectedDataURL({type:de,backgroundColor:ie.get("backgroundColor",!0)||V.get("backgroundColor")||"#fff",connectedBackgroundColor:ie.get("connectedBackgroundColor"),excludeComponents:ie.get("excludeComponents"),pixelRatio:ie.get("pixelRatio")}),he=env$1.browser;if(isFunction(MouseEvent)&&(he.newEdge||!he.ie&&!he.edge)){var _e=document.createElement("a");_e.download=le+"."+de,_e.target="_blank",_e.href=pe;var $e=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});_e.dispatchEvent($e)}else if(window.navigator.msSaveOrOpenBlob||ue){var Ie=pe.split(","),Ve=Ie[0].indexOf("base64")>-1,Fe=ue?decodeURIComponent(Ie[1]):Ie[1];Ve&&(Fe=window.atob(Fe));var Ue=le+"."+de;if(window.navigator.msSaveOrOpenBlob){for(var qe=Fe.length,Et=new Uint8Array(qe);qe--;)Et[qe]=Fe.charCodeAt(qe);var At=new Blob([Et]);window.navigator.msSaveOrOpenBlob(At,Ue)}else{var Lt=document.createElement("iframe");document.body.appendChild(Lt);var hn=Lt.contentWindow,_n=hn.document;_n.open("image/svg+xml","replace"),_n.write(Fe),_n.close(),hn.focus(),_n.execCommand("SaveAs",!0,Ue),document.body.removeChild(Lt)}}else{var vn=ie.get("lang"),bn='',Cn=window.open();Cn.document.write(bn),Cn.document.title=le}},r.getDefaultOption=function(V){var oe={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:V.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:V.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return oe},r}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getIcons=function(){var V=this.model,oe=V.get("icon"),ie={};return each$c(V.get("type"),function(le){oe[le]&&(ie[le]=oe[le])}),ie},r.getDefaultOption=function(V){var oe={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:V.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return oe},r.prototype.onclick=function(V,oe,ie){var le=this.model,ue=le.get(["seriesIndex",ie]);if(seriesOptGenreator[ie]){var de={series:[]},pe=function($e){var Ie=$e.subType,Ve=$e.id,Fe=seriesOptGenreator[ie](Ie,Ve,$e,le);Fe&&(defaults(Fe,$e.option),de.series.push(Fe));var Ue=$e.coordinateSystem;if(Ue&&Ue.type==="cartesian2d"&&(ie==="line"||ie==="bar")){var qe=Ue.getAxesByScale("ordinal")[0];if(qe){var Et=qe.dim,At=Et+"Axis",Lt=$e.getReferringComponents(At,SINGLE_REFERRING).models[0],hn=Lt.componentIndex;de[At]=de[At]||[];for(var _n=0;_n<=hn;_n++)de[At][hn]=de[At][hn]||{};de[At][hn].boundaryGap=ie==="bar"}}};each$c(radioTypes,function($e){indexOf($e,ie)>=0&&each$c($e,function(Ie){le.setIconStatus(Ie,"normal")})}),le.setIconStatus(ie,"emphasis"),V.eachComponent({mainType:"series",query:ue==null?null:{seriesIndex:ue}},pe);var he,_e=ie;ie==="stack"&&(he=merge({stack:le.option.title.tiled,tiled:le.option.title.stack},le.option.title),le.get(["iconStatus",ie])!=="emphasis"&&(_e="tiled")),oe.dispatchAction({type:"changeMagicType",currentType:_e,newOption:de,newTitle:he,featureName:"magicType"})}},r}(ToolboxFeature),seriesOptGenreator={line:function(t,r,V,oe){if(t==="bar")return merge({id:r,type:"line",data:V.get("data"),stack:V.get("stack"),markPoint:V.get("markPoint"),markLine:V.get("markLine")},oe.get(["option","line"])||{},!0)},bar:function(t,r,V,oe){if(t==="line")return merge({id:r,type:"bar",data:V.get("data"),stack:V.get("stack"),markPoint:V.get("markPoint"),markLine:V.get("markLine")},oe.get(["option","bar"])||{},!0)},stack:function(t,r,V,oe){var ie=V.get("stack")===INNER_STACK_KEYWORD;if(t==="line"||t==="bar")return oe.setIconStatus("stack",ie?"normal":"emphasis"),merge({id:r,stack:ie?"":INNER_STACK_KEYWORD},oe.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,r){r.mergeOption(t.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries(t){var r={},V=[],oe=[];return t.eachRawSeries(function(ie){var le=ie.coordinateSystem;if(le&&(le.type==="cartesian2d"||le.type==="polar")){var ue=le.getBaseAxis();if(ue.type==="category"){var de=ue.dim+"_"+ue.index;r[de]||(r[de]={categoryAxis:ue,valueAxis:le.getOtherAxis(ue),series:[]},oe.push({axisDim:ue.dim,axisIndex:ue.index})),r[de].series.push(ie)}else V.push(ie)}else V.push(ie)}),{seriesGroupByCategoryAxis:r,other:V,meta:oe}}function assembleSeriesWithCategoryAxis(t){var r=[];return each$c(t,function(V,oe){var ie=V.categoryAxis,le=V.valueAxis,ue=le.dim,de=[" "].concat(map$2(V.series,function(Ve){return Ve.name})),pe=[ie.model.getCategories()];each$c(V.series,function(Ve){var Fe=Ve.getRawData();pe.push(Ve.getRawData().mapArray(Fe.mapDimension(ue),function(Ue){return Ue}))});for(var he=[de.join(ITEM_SPLITER)],_e=0;_e=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents(t){for(var r=t.split(/\n+/g),V=trim(r.shift()).split(itemSplitRegex),oe=[],ie=map$2(V,function(pe){return{name:pe,data:[]}}),le=0;le=0;le--){var ue=V[le];if(ue[ie])break}if(le<0){var de=t.queryComponents({mainType:"dataZoom",subType:"select",id:ie})[0];if(de){var pe=de.getPercentRange();V[0][ie]={dataZoomId:ie,start:pe[0],end:pe[1]}}}}),V.push(r)}function pop(t){var r=getStoreSnapshots(t),V=r[r.length-1];r.length>1&&r.pop();var oe={};return each$6(V,function(ie,le){for(var ue=r.length-1;ue>=0;ue--)if(ie=r[ue][le],ie){oe[le]=ie;break}}),oe}function clear(t){inner$1(t).snapshots=null}function count(t){return getStoreSnapshots(t).length}function getStoreSnapshots(t){var r=inner$1(t);return r.snapshots||(r.snapshots=[{}]),r.snapshots}var RestoreOption=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.onclick=function(V,oe){clear(V),oe.dispatchAction({type:"restore",from:this.uid})},r.getDefaultOption=function(V){var oe={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:V.getLocaleModel().get(["toolbox","restore","title"])};return oe},r}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,r){r.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function t(r,V,oe){var ie=this;this._targetInfoList=[];var le=parseFinder(V,r);each$c(targetInfoBuilders,function(ue,de){(!oe||!oe.include||indexOf(oe.include,de)>=0)&&ue(le,ie._targetInfoList)})}return t.prototype.setOutputRanges=function(r,V){return this.matchOutputRanges(r,V,function(oe,ie,le){if((oe.coordRanges||(oe.coordRanges=[])).push(ie),!oe.coordRange){oe.coordRange=ie;var ue=coordConvert[oe.brushType](0,le,ie);oe.__rangeOffset={offset:diffProcessor[oe.brushType](ue.values,oe.range,[1,1]),xyMinMax:ue.xyMinMax}}}),r},t.prototype.matchOutputRanges=function(r,V,oe){each$c(r,function(ie){var le=this.findTargetInfo(ie,V);le&&le!==!0&&each$c(le.coordSyses,function(ue){var de=coordConvert[ie.brushType](1,ue,ie.range,!0);oe(ie,de.values,ue,V)})},this)},t.prototype.setInputRanges=function(r,V){each$c(r,function(oe){var ie=this.findTargetInfo(oe,V);if(oe.range=oe.range||[],ie&&ie!==!0){oe.panelId=ie.panelId;var le=coordConvert[oe.brushType](0,ie.coordSys,oe.coordRange),ue=oe.__rangeOffset;oe.range=ue?diffProcessor[oe.brushType](le.values,ue.offset,getScales(le.xyMinMax,ue.xyMinMax)):le.values}},this)},t.prototype.makePanelOpts=function(r,V){return map$2(this._targetInfoList,function(oe){var ie=oe.getPanelRect();return{panelId:oe.panelId,defaultBrushType:V?V(oe):null,clipPath:makeRectPanelClipPath(ie),isTargetByCursor:makeRectIsTargetByCursor(ie,r,oe.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(ie)}})},t.prototype.controlSeries=function(r,V,oe){var ie=this.findTargetInfo(r,oe);return ie===!0||ie&&indexOf(ie.coordSyses,V.coordinateSystem)>=0},t.prototype.findTargetInfo=function(r,V){for(var oe=this._targetInfoList,ie=parseFinder(V,r),le=0;let[1]&&t.reverse(),t}function parseFinder(t,r){return parseFinder$1(t,r,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function(t,r){var V=t.xAxisModels,oe=t.yAxisModels,ie=t.gridModels,le=createHashMap(),ue={},de={};!V&&!oe&&!ie||(each$c(V,function(pe){var he=pe.axis.grid.model;le.set(he.id,he),ue[he.id]=!0}),each$c(oe,function(pe){var he=pe.axis.grid.model;le.set(he.id,he),de[he.id]=!0}),each$c(ie,function(pe){le.set(pe.id,pe),ue[pe.id]=!0,de[pe.id]=!0}),le.each(function(pe){var he=pe.coordinateSystem,_e=[];each$c(he.getCartesians(),function($e,Ie){(indexOf(V,$e.getAxis("x").model)>=0||indexOf(oe,$e.getAxis("y").model)>=0)&&_e.push($e)}),r.push({panelId:"grid--"+pe.id,gridModel:pe,coordSysModel:pe,coordSys:_e[0],coordSyses:_e,getPanelRect:panelRectBuilders.grid,xAxisDeclared:ue[pe.id],yAxisDeclared:de[pe.id]})}))},geo:function(t,r){each$c(t.geoModels,function(V){var oe=V.coordinateSystem;r.push({panelId:"geo--"+V.id,geoModel:V,coordSysModel:V,coordSys:oe,coordSyses:[oe],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function(t,r){var V=t.xAxisModel,oe=t.yAxisModel,ie=t.gridModel;return!ie&&V&&(ie=V.axis.grid.model),!ie&&oe&&(ie=oe.axis.grid.model),ie&&ie===r.gridModel},function(t,r){var V=t.geoModel;return V&&V===r.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,r=t.getBoundingRect().clone();return r.applyTransform(getTransform$1(t)),r}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function(t,r,V,oe){var ie=t?r.pointToData([V[0][0],V[1][0]],oe):r.dataToPoint([V[0][0],V[1][0]],oe),le=t?r.pointToData([V[0][1],V[1][1]],oe):r.dataToPoint([V[0][1],V[1][1]],oe),ue=[formatMinMax([ie[0],le[0]]),formatMinMax([ie[1],le[1]])];return{values:ue,xyMinMax:ue}},polygon:function(t,r,V,oe){var ie=[[1/0,-1/0],[1/0,-1/0]],le=map$2(V,function(ue){var de=t?r.pointToData(ue,oe):r.dataToPoint(ue,oe);return ie[0][0]=Math.min(ie[0][0],de[0]),ie[1][0]=Math.min(ie[1][0],de[1]),ie[0][1]=Math.max(ie[0][1],de[0]),ie[1][1]=Math.max(ie[1][1],de[1]),de});return{values:le,xyMinMax:ie}}};function axisConvert(t,r,V,oe){var ie=V.getAxis(["x","y"][t]),le=formatMinMax(map$2([0,1],function(de){return r?ie.coordToData(ie.toLocalCoord(oe[de]),!0):ie.toGlobalCoord(ie.dataToCoord(oe[de]))})),ue=[];return ue[t]=le,ue[1-t]=[NaN,NaN],{values:le,xyMinMax:ue}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function(t,r,V){return[[t[0][0]-V[0]*r[0][0],t[0][1]-V[0]*r[0][1]],[t[1][0]-V[1]*r[1][0],t[1][1]-V[1]*r[1][1]]]},polygon:function(t,r,V){return map$2(t,function(oe,ie){return[oe[0]-V[0]*r[ie][0],oe[1]-V[1]*r[ie][1]]})}};function axisDiffProcessor(t,r,V,oe){return[r[0]-oe[t]*V[0],r[1]-oe[t]*V[1]]}function getScales(t,r){var V=getSize(t),oe=getSize(r),ie=[V[0]/oe[0],V[1]/oe[1]];return isNaN(ie[0])&&(ie[0]=1),isNaN(ie[1])&&(ie[1]=1),ie}function getSize(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function(V,oe,ie,le){this._brushController||(this._brushController=new BrushController$1(ie.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(V,oe,this,le,ie),updateBackBtnStatus(V,oe)},r.prototype.onclick=function(V,oe,ie){handlers[ie].call(this)},r.prototype.remove=function(V,oe){this._brushController&&this._brushController.unmount()},r.prototype.dispose=function(V,oe){this._brushController&&this._brushController.dispose()},r.prototype._onBrush=function(V){var oe=V.areas;if(!V.isEnd||!oe.length)return;var ie={},le=this.ecModel;this._brushController.updateCovers([]);var ue=new BrushTargetManager$1(makeAxisFinder(this.model),le,{include:["grid"]});ue.matchOutputRanges(oe,le,function(he,_e,$e){if($e.type==="cartesian2d"){var Ie=he.brushType;Ie==="rect"?(de("x",$e,_e[0]),de("y",$e,_e[1])):de({lineX:"x",lineY:"y"}[Ie],$e,_e)}}),push(le,ie),this._dispatchZoomAction(ie);function de(he,_e,$e){var Ie=_e.getAxis(he),Ve=Ie.model,Fe=pe(he,Ve,le),Ue=Fe.findRepresentativeAxisProxy(Ve).getMinMaxSpan();(Ue.minValueSpan!=null||Ue.maxValueSpan!=null)&&($e=sliderMove(0,$e.slice(),Ie.scale.getExtent(),0,Ue.minValueSpan,Ue.maxValueSpan)),Fe&&(ie[Fe.id]={dataZoomId:Fe.id,startValue:$e[0],endValue:$e[1]})}function pe(he,_e,$e){var Ie;return $e.eachComponent({mainType:"dataZoom",subType:"select"},function(Ve){var Fe=Ve.getAxisModel(he,_e.componentIndex);Fe&&(Ie=Ve)}),Ie}},r.prototype._dispatchZoomAction=function(V){var oe=[];each$5(V,function(ie,le){oe.push(clone$3(ie))}),oe.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:oe})},r.getDefaultOption=function(V){var oe={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:V.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return oe},r}(ToolboxFeature),handlers={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder(t){var r={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return r.xAxisIndex==null&&r.xAxisId==null&&(r.xAxisIndex="all"),r.yAxisIndex==null&&r.yAxisId==null&&(r.yAxisIndex="all"),r}function updateBackBtnStatus(t,r){t.setIconStatus("back",count(r)>1?"emphasis":"normal")}function updateZoomBtnStatus(t,r,V,oe,ie){var le=V._isZoomActive;oe&&oe.type==="takeGlobalCursor"&&(le=oe.key==="dataZoomSelect"?oe.dataZoomSelectActive:!1),V._isZoomActive=le,t.setIconStatus("zoom",le?"emphasis":"normal");var ue=new BrushTargetManager$1(makeAxisFinder(t),r,{include:["grid"]}),de=ue.makePanelOpts(ie,function(pe){return pe.xAxisDeclared&&!pe.yAxisDeclared?"lineX":!pe.xAxisDeclared&&pe.yAxisDeclared?"lineY":"rect"});V._brushController.setPanels(de).enableBrush(le&&de.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function(t){var r=t.getComponent("toolbox",0),V=["feature","dataZoom"];if(!r||r.get(V)==null)return;var oe=r.getModel(V),ie=[],le=makeAxisFinder(oe),ue=parseFinder$1(t,le);each$5(ue.xAxisModels,function(pe){return de(pe,"xAxis","xAxisIndex")}),each$5(ue.yAxisModels,function(pe){return de(pe,"yAxis","yAxisIndex")});function de(pe,he,_e){var $e=pe.componentIndex,Ie={type:"select",$fromToolbox:!0,filterMode:oe.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+he+$e};Ie[_e]=$e,ie.push(Ie)}return ie});const DataZoom=DataZoomFeature;function install$b(t){t.registerComponentModel(ToolboxModel$1),t.registerComponentView(ToolboxView$1),registerFeature("saveAsImage",SaveAsImage$1),registerFeature("magicType",MagicType$1),registerFeature("dataView",DataView$2),registerFeature("dataZoom",DataZoom),registerFeature("restore",Restore),use$1(install$c)}var TooltipModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.type="tooltip",r.dependencies=["axisPointer"],r.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},r}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine(t){var r=t.get("confine");return r!=null?!!r:t.get("renderMode")==="richText"}function testStyle(t){if(env$1.domSupported){for(var r=document.documentElement.style,V=0,oe=t.length;V-1?(de+="top:50%",pe+="translateY(-50%) rotate("+(he=le==="left"?-225:-45)+"deg)"):(de+="left:50%",pe+="translateX(-50%) rotate("+(he=le==="top"?225:45)+"deg)");var _e=he*Math.PI/180,$e=ue+ie,Ie=$e*Math.abs(Math.cos(_e))+$e*Math.abs(Math.sin(_e)),Ve=Math.round(((Ie-Math.SQRT2*ie)/2+Math.SQRT2*ie-(Ie-$e)/2)*100)/100;de+=";"+le+":-"+Ve+"px";var Fe=r+" solid "+ie+"px;",Ue=["position:absolute;width:"+ue+"px;height:"+ue+"px;z-index:-1;",de+";"+pe+";","border-bottom:"+Fe,"border-right:"+Fe,"background-color:"+oe+";"];return'
'}function assembleTransition(t,r){var V="cubic-bezier(0.23,1,0.32,1)",oe=" "+t/2+"s "+V,ie="opacity"+oe+",visibility"+oe;return r||(oe=" "+t+"s "+V,ie+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+oe:",left"+oe+",top"+oe),CSS_TRANSITION_VENDOR+":"+ie}function assembleTransform(t,r,V){var oe=t.toFixed(0)+"px",ie=r.toFixed(0)+"px";if(!env$1.transformSupported)return V?"top:"+ie+";left:"+oe+";":[["top",ie],["left",oe]];var le=env$1.transform3dSupported,ue="translate"+(le?"3d":"")+"("+oe+","+ie+(le?",0":"")+")";return V?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+ue+";":[["top",0],["left",0],[TRANSFORM_VENDOR,ue]]}function assembleFont(t){var r=[],V=t.get("fontSize"),oe=t.getTextColor();oe&&r.push("color:"+oe),r.push("font:"+t.getFont()),V&&r.push("line-height:"+Math.round(V*3/2)+"px");var ie=t.get("textShadowColor"),le=t.get("textShadowBlur")||0,ue=t.get("textShadowOffsetX")||0,de=t.get("textShadowOffsetY")||0;return ie&&le&&r.push("text-shadow:"+ue+"px "+de+"px "+le+"px "+ie),each$c(["decoration","align"],function(pe){var he=t.get(pe);he&&r.push("text-"+pe+":"+he)}),r.join(";")}function assembleCssText(t,r,V){var oe=[],ie=t.get("transitionDuration"),le=t.get("backgroundColor"),ue=t.get("shadowBlur"),de=t.get("shadowColor"),pe=t.get("shadowOffsetX"),he=t.get("shadowOffsetY"),_e=t.getModel("textStyle"),$e=getPaddingFromTooltipModel(t,"html"),Ie=pe+"px "+he+"px "+ue+"px "+de;return oe.push("box-shadow:"+Ie),r&&ie&&oe.push(assembleTransition(ie,V)),le&&oe.push("background-color:"+le),each$c(["width","color","radius"],function(Ve){var Fe="border-"+Ve,Ue=toCamelCase(Fe),qe=t.get(Ue);qe!=null&&oe.push(Fe+":"+qe+(Ve==="color"?"":"px"))}),oe.push(assembleFont(_e)),$e!=null&&oe.push("padding:"+normalizeCssArray($e).join("px ")+"px"),oe.join(";")+";"}function makeStyleCoord$1(t,r,V,oe,ie){var le=r&&r.painter;if(V){var ue=le&&le.getViewportRoot();ue&&transformLocalCoord(t,ue,document.body,oe,ie)}else{t[0]=oe,t[1]=ie;var de=le&&le.getViewportRootOffset();de&&(t[0]+=de.offsetLeft,t[1]+=de.offsetTop)}t[2]=t[0]/r.getWidth(),t[3]=t[1]/r.getHeight()}var TooltipHTMLContent=function(){function t(r,V,oe){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var ie=document.createElement("div");ie.domBelongToZr=!0,this.el=ie;var le=this._zr=V.getZr(),ue=this._appendToBody=oe&&oe.appendToBody;makeStyleCoord$1(this._styleCoord,le,ue,V.getWidth()/2,V.getHeight()/2),ue?document.body.appendChild(ie):r.appendChild(ie),this._container=r;var de=this;ie.onmouseenter=function(){de._enterable&&(clearTimeout(de._hideTimeout),de._show=!0),de._inContent=!0},ie.onmousemove=function(pe){if(pe=pe||window.event,!de._enterable){var he=le.handler,_e=le.painter.getViewportRoot();normalizeEvent(_e,pe,!0),he.dispatch("mousemove",pe)}},ie.onmouseleave=function(){de._inContent=!1,de._enterable&&de._show&&de.hideLater(de._hideDelay)}}return t.prototype.update=function(r){var V=this._container,oe=getComputedStyle$1(V,"position"),ie=V.style;ie.position!=="absolute"&&oe!=="absolute"&&(ie.position="relative");var le=r.get("alwaysShowContent");le&&this._moveIfResized(),this._alwaysShowContent=le,this.el.className=r.get("className")||""},t.prototype.show=function(r,V){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var oe=this.el,ie=oe.style,le=this._styleCoord;oe.innerHTML?ie.cssText=gCssText+assembleCssText(r,!this._firstShow,this._longHide)+assembleTransform(le[0],le[1],!0)+("border-color:"+convertToColorString(V)+";")+(r.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):ie.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(r,V,oe,ie,le){var ue=this.el;if(r==null){ue.innerHTML="";return}var de="";if(isString(le)&&oe.get("trigger")==="item"&&!shouldTooltipConfine(oe)&&(de=assembleArrow(oe,ie,le)),isString(r))ue.innerHTML=r+de;else if(r){ue.innerHTML="",isArray$1(r)||(r=[r]);for(var pe=0;pe=0?this._tryShow(le,ue):ie==="leave"&&this._hide(ue))},this))},r.prototype._keepShow=function(){var V=this._tooltipModel,oe=this._ecModel,ie=this._api,le=V.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&le!=="none"&&le!=="click"){var ue=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!ie.isDisposed()&&ue.manuallyShowTip(V,oe,ie,{x:ue._lastX,y:ue._lastY,dataByCoordSys:ue._lastDataByCoordSys})})}},r.prototype.manuallyShowTip=function(V,oe,ie,le){if(!(le.from===this.uid||env$1.node||!ie.getDom())){var ue=makeDispatchAction(le,ie);this._ticket="";var de=le.dataByCoordSys,pe=findComponentReference(le,oe,ie);if(pe){var he=pe.el.getBoundingRect().clone();he.applyTransform(pe.el.transform),this._tryShow({offsetX:he.x+he.width/2,offsetY:he.y+he.height/2,target:pe.el,position:le.position,positionDefault:"bottom"},ue)}else if(le.tooltip&&le.x!=null&&le.y!=null){var _e=proxyRect;_e.x=le.x,_e.y=le.y,_e.update(),getECData(_e).tooltipConfig={name:null,option:le.tooltip},this._tryShow({offsetX:le.x,offsetY:le.y,target:_e},ue)}else if(de)this._tryShow({offsetX:le.x,offsetY:le.y,position:le.position,dataByCoordSys:de,tooltipOption:le.tooltipOption},ue);else if(le.seriesIndex!=null){if(this._manuallyAxisShowTip(V,oe,ie,le))return;var $e=findPointFromSeries(le,oe),Ie=$e.point[0],Ve=$e.point[1];Ie!=null&&Ve!=null&&this._tryShow({offsetX:Ie,offsetY:Ve,target:$e.el,position:le.position,positionDefault:"bottom"},ue)}else le.x!=null&&le.y!=null&&(ie.dispatchAction({type:"updateAxisPointer",x:le.x,y:le.y}),this._tryShow({offsetX:le.x,offsetY:le.y,position:le.position,target:ie.getZr().findHover(le.x,le.y).target},ue))}},r.prototype.manuallyHideTip=function(V,oe,ie,le){var ue=this._tooltipContent;this._tooltipModel&&ue.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,le.from!==this.uid&&this._hide(makeDispatchAction(le,ie))},r.prototype._manuallyAxisShowTip=function(V,oe,ie,le){var ue=le.seriesIndex,de=le.dataIndex,pe=oe.getComponent("axisPointer").coordSysAxesInfo;if(!(ue==null||de==null||pe==null)){var he=oe.getSeriesByIndex(ue);if(he){var _e=he.getData(),$e=buildTooltipModel([_e.getItemModel(de),he,(he.coordinateSystem||{}).model],this._tooltipModel);if($e.get("trigger")==="axis")return ie.dispatchAction({type:"updateAxisPointer",seriesIndex:ue,dataIndex:de,position:le.position}),!0}}},r.prototype._tryShow=function(V,oe){var ie=V.target,le=this._tooltipModel;if(le){this._lastX=V.offsetX,this._lastY=V.offsetY;var ue=V.dataByCoordSys;if(ue&&ue.length)this._showAxisTooltip(ue,V);else if(ie){this._lastDataByCoordSys=null;var de,pe;findEventDispatcher(ie,function(he){if(getECData(he).dataIndex!=null)return de=he,!0;if(getECData(he).tooltipConfig!=null)return pe=he,!0},!0),de?this._showSeriesItemTooltip(V,de,oe):pe?this._showComponentItemTooltip(V,pe,oe):this._hide(oe)}else this._lastDataByCoordSys=null,this._hide(oe)}},r.prototype._showOrMove=function(V,oe){var ie=V.get("showDelay");oe=bind$1(oe,this),clearTimeout(this._showTimout),ie>0?this._showTimout=setTimeout(oe,ie):oe()},r.prototype._showAxisTooltip=function(V,oe){var ie=this._ecModel,le=this._tooltipModel,ue=[oe.offsetX,oe.offsetY],de=buildTooltipModel([oe.tooltipOption],le),pe=this._renderMode,he=[],_e=createTooltipMarkup("section",{blocks:[],noHeader:!0}),$e=[],Ie=new TooltipMarkupStyleCreator;each$c(V,function(At){each$c(At.dataByAxis,function(Lt){var hn=ie.getComponent(Lt.axisDim+"Axis",Lt.axisIndex),_n=Lt.value;if(!(!hn||_n==null)){var vn=getValueLabel(_n,hn.axis,ie,Lt.seriesDataIndices,Lt.valueLabelOpt),bn=createTooltipMarkup("section",{header:vn,noHeader:!trim$1(vn),sortBlocks:!0,blocks:[]});_e.blocks.push(bn),each$c(Lt.seriesDataIndices,function(Cn){var Sn=ie.getSeriesByIndex(Cn.seriesIndex),wn=Cn.dataIndexInside,En=Sn.getDataParams(wn);if(!(En.dataIndex<0)){En.axisDim=Lt.axisDim,En.axisIndex=Lt.axisIndex,En.axisType=Lt.axisType,En.axisId=Lt.axisId,En.axisValue=getAxisRawValue(hn.axis,{value:_n}),En.axisValueLabel=vn,En.marker=Ie.makeTooltipMarker("item",convertToColorString(En.color),pe);var xn=normalizeTooltipFormatResult(Sn.formatTooltip(wn,!0,null)),Pn=xn.frag;if(Pn){var kn=buildTooltipModel([Sn],le).get("valueFormatter");bn.blocks.push(kn?extend({valueFormatter:kn},Pn):Pn)}xn.text&&$e.push(xn.text),he.push(En)}})}})}),_e.blocks.reverse(),$e.reverse();var Ve=oe.position,Fe=de.get("order"),Ue=buildTooltipMarkup(_e,Ie,pe,Fe,ie.get("useUTC"),de.get("textStyle"));Ue&&$e.unshift(Ue);var qe=pe==="richText"?` `:"
",Et=$e.join(qe);this._showOrMove(de,function(){this._updateContentNotChangedOnAxis(V,he)?this._updatePosition(de,Ve,ue[0],ue[1],this._tooltipContent,he):this._showTooltipContent(de,Et,he,Math.random()+"",ue[0],ue[1],Ve,null,Ie)})},r.prototype._showSeriesItemTooltip=function(V,oe,ie){var le=this._ecModel,ue=getECData(oe),de=ue.seriesIndex,pe=le.getSeriesByIndex(de),he=ue.dataModel||pe,_e=ue.dataIndex,$e=ue.dataType,Ie=he.getData($e),Ve=this._renderMode,Fe=V.positionDefault,Ue=buildTooltipModel([Ie.getItemModel(_e),he,pe&&(pe.coordinateSystem||{}).model],this._tooltipModel,Fe?{position:Fe}:null),qe=Ue.get("trigger");if(!(qe!=null&&qe!=="item")){var Et=he.getDataParams(_e,$e),At=new TooltipMarkupStyleCreator;Et.marker=At.makeTooltipMarker("item",convertToColorString(Et.color),Ve);var Lt=normalizeTooltipFormatResult(he.formatTooltip(_e,!1,$e)),hn=Ue.get("order"),_n=Ue.get("valueFormatter"),vn=Lt.frag,bn=vn?buildTooltipMarkup(_n?extend({valueFormatter:_n},vn):vn,At,Ve,hn,le.get("useUTC"),Ue.get("textStyle")):Lt.text,Cn="item_"+he.name+"_"+_e;this._showOrMove(Ue,function(){this._showTooltipContent(Ue,bn,Et,Cn,V.offsetX,V.offsetY,V.position,V.target,At)}),ie({type:"showTip",dataIndexInside:_e,dataIndex:Ie.getRawIndex(_e),seriesIndex:de,from:this.uid})}},r.prototype._showComponentItemTooltip=function(V,oe,ie){var le=getECData(oe),ue=le.tooltipConfig,de=ue.option||{};if(isString(de)){var pe=de;de={content:pe,formatter:pe}}var he=[de],_e=this._ecModel.getComponent(le.componentMainType,le.componentIndex);_e&&he.push(_e),he.push({formatter:de.content});var $e=V.positionDefault,Ie=buildTooltipModel(he,this._tooltipModel,$e?{position:$e}:null),Ve=Ie.get("content"),Fe=Math.random()+"",Ue=new TooltipMarkupStyleCreator;this._showOrMove(Ie,function(){var qe=clone$3(Ie.get("formatterParams")||{});this._showTooltipContent(Ie,Ve,qe,Fe,V.offsetX,V.offsetY,V.position,oe,Ue)}),ie({type:"showTip",from:this.uid})},r.prototype._showTooltipContent=function(V,oe,ie,le,ue,de,pe,he,_e){if(this._ticket="",!(!V.get("showContent")||!V.get("show"))){var $e=this._tooltipContent;$e.setEnterable(V.get("enterable"));var Ie=V.get("formatter");pe=pe||V.get("position");var Ve=oe,Fe=this._getNearestPoint([ue,de],ie,V.get("trigger"),V.get("borderColor")),Ue=Fe.color;if(Ie)if(isString(Ie)){var qe=V.ecModel.get("useUTC"),Et=isArray$1(ie)?ie[0]:ie,At=Et&&Et.axisType&&Et.axisType.indexOf("time")>=0;Ve=Ie,At&&(Ve=format$1(Et.axisValue,Ve,qe)),Ve=formatTpl(Ve,ie,!0)}else if(isFunction(Ie)){var Lt=bind$1(function(hn,_n){hn===this._ticket&&($e.setContent(_n,_e,V,Ue,pe),this._updatePosition(V,pe,ue,de,$e,ie,he))},this);this._ticket=le,Ve=Ie(ie,le,Lt)}else Ve=Ie;$e.setContent(Ve,_e,V,Ue,pe),$e.show(V,Ue),this._updatePosition(V,pe,ue,de,$e,ie,he)}},r.prototype._getNearestPoint=function(V,oe,ie,le){if(ie==="axis"||isArray$1(oe))return{color:le||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(oe))return{color:le||oe.color||oe.borderColor}},r.prototype._updatePosition=function(V,oe,ie,le,ue,de,pe){var he=this._api.getWidth(),_e=this._api.getHeight();oe=oe||V.get("position");var $e=ue.getSize(),Ie=V.get("align"),Ve=V.get("verticalAlign"),Fe=pe&&pe.getBoundingRect().clone();if(pe&&Fe.applyTransform(pe.transform),isFunction(oe)&&(oe=oe([ie,le],de,ue.el,Fe,{viewSize:[he,_e],contentSize:$e.slice()})),isArray$1(oe))ie=parsePercent(oe[0],he),le=parsePercent(oe[1],_e);else if(isObject$3(oe)){var Ue=oe;Ue.width=$e[0],Ue.height=$e[1];var qe=getLayoutRect(Ue,{width:he,height:_e});ie=qe.x,le=qe.y,Ie=null,Ve=null}else if(isString(oe)&&pe){var Et=calcTooltipPosition(oe,Fe,$e,V.get("borderWidth"));ie=Et[0],le=Et[1]}else{var Et=refixTooltipPosition(ie,le,ue,he,_e,Ie?null:20,Ve?null:20);ie=Et[0],le=Et[1]}if(Ie&&(ie-=isCenterAlign(Ie)?$e[0]/2:Ie==="right"?$e[0]:0),Ve&&(le-=isCenterAlign(Ve)?$e[1]/2:Ve==="bottom"?$e[1]:0),shouldTooltipConfine(V)){var Et=confineTooltipPosition(ie,le,ue,he,_e);ie=Et[0],le=Et[1]}ue.moveTo(ie,le)},r.prototype._updateContentNotChangedOnAxis=function(V,oe){var ie=this._lastDataByCoordSys,le=this._cbParamsList,ue=!!ie&&ie.length===V.length;return ue&&each$c(ie,function(de,pe){var he=de.dataByAxis||[],_e=V[pe]||{},$e=_e.dataByAxis||[];ue=ue&&he.length===$e.length,ue&&each$c(he,function(Ie,Ve){var Fe=$e[Ve]||{},Ue=Ie.seriesDataIndices||[],qe=Fe.seriesDataIndices||[];ue=ue&&Ie.value===Fe.value&&Ie.axisType===Fe.axisType&&Ie.axisId===Fe.axisId&&Ue.length===qe.length,ue&&each$c(Ue,function(Et,At){var Lt=qe[At];ue=ue&&Et.seriesIndex===Lt.seriesIndex&&Et.dataIndex===Lt.dataIndex}),le&&each$c(Ie.seriesDataIndices,function(Et){var At=Et.seriesIndex,Lt=oe[At],hn=le[At];Lt&&hn&&hn.data!==Lt.data&&(ue=!1)})})}),this._lastDataByCoordSys=V,this._cbParamsList=oe,!!ue},r.prototype._hide=function(V){this._lastDataByCoordSys=null,V({type:"hideTip",from:this.uid})},r.prototype.dispose=function(V,oe){env$1.node||!oe.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",oe))},r.type="tooltip",r}(ComponentView$1);function buildTooltipModel(t,r,V){var oe=r.ecModel,ie;V?(ie=new Model$1(V,oe,oe),ie=new Model$1(r.option,ie,oe)):ie=r;for(var le=t.length-1;le>=0;le--){var ue=t[le];ue&&(ue instanceof Model$1&&(ue=ue.get("tooltip",!0)),isString(ue)&&(ue={formatter:ue}),ue&&(ie=new Model$1(ue,ie,oe)))}return ie}function makeDispatchAction(t,r){return t.dispatchAction||bind$1(r.dispatchAction,r)}function refixTooltipPosition(t,r,V,oe,ie,le,ue){var de=V.getSize(),pe=de[0],he=de[1];return le!=null&&(t+pe+le+2>oe?t-=pe+le:t+=le),ue!=null&&(r+he+ue>ie?r-=he+ue:r+=ue),[t,r]}function confineTooltipPosition(t,r,V,oe,ie){var le=V.getSize(),ue=le[0],de=le[1];return t=Math.min(t+ue,oe)-ue,r=Math.min(r+de,ie)-de,t=Math.max(t,0),r=Math.max(r,0),[t,r]}function calcTooltipPosition(t,r,V,oe){var ie=V[0],le=V[1],ue=Math.ceil(Math.SQRT2*oe)+8,de=0,pe=0,he=r.width,_e=r.height;switch(t){case"inside":de=r.x+he/2-ie/2,pe=r.y+_e/2-le/2;break;case"top":de=r.x+he/2-ie/2,pe=r.y-le-ue;break;case"bottom":de=r.x+he/2-ie/2,pe=r.y+_e+ue;break;case"left":de=r.x-ie-ue,pe=r.y+_e/2-le/2;break;case"right":de=r.x+he+ue,pe=r.y+_e/2-le/2}return[de,pe]}function isCenterAlign(t){return t==="center"||t==="middle"}function findComponentReference(t,r,V){var oe=preParseFinder(t).queryOptionMap,ie=oe.keys()[0];if(!(!ie||ie==="series")){var le=queryReferringComponents(r,ie,oe.get(ie),{useDefault:!1,enableAll:!1,enableNone:!1}),ue=le.models[0];if(ue){var de=V.getViewOfComponentModel(ue),pe;if(de.group.traverse(function(he){var _e=getECData(he).tooltipConfig;if(_e&&_e.name===t.name)return pe=he,!0}),pe)return{componentMainType:ie,componentIndex:ue.componentIndex,el:pe}}}}const TooltipView$1=TooltipView;function install$a(t){use$1(install$f),t.registerComponentModel(TooltipModel$1),t.registerComponentView(TooltipView$1),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys(t){if(t){for(var r in t)if(t.hasOwnProperty(r))return!0}}function createVisualMappings(t,r,V){var oe={};return each$4(r,function(le){var ue=oe[le]=ie();each$4(t[le],function(de,pe){if(VisualMapping$1.isValidType(pe)){var he={type:pe,visual:de};V&&V(he,le),ue[pe]=new VisualMapping$1(he),pe==="opacity"&&(he=clone$3(he),he.type="colorAlpha",ue.__hidden.__alphaForOpacity=new VisualMapping$1(he))}})}),oe;function ie(){var le=function(){};le.prototype.__hidden=le.prototype;var ue=new le;return ue}}function replaceVisualOption(t,r,V){var oe;each$c(V,function(ie){r.hasOwnProperty(ie)&&hasKeys(r[ie])&&(oe=!0)}),oe&&each$c(V,function(ie){r.hasOwnProperty(ie)&&hasKeys(r[ie])?t[ie]=clone$3(r[ie]):delete t[ie]})}function incrementalApplyVisual(t,r,V,oe){var ie={};return each$c(t,function(le){var ue=VisualMapping$1.prepareVisualTypes(r[le]);ie[le]=ue}),{progress:function(ue,de){var pe;oe!=null&&(pe=de.getDimensionIndex(oe));function he(_n){return getItemVisualFromData(de,$e,_n)}function _e(_n,vn){setItemVisualFromData(de,$e,_n,vn)}for(var $e,Ie=de.getStore();($e=ue.next())!=null;){var Ve=de.getRawDataItem($e);if(!(Ve&&Ve.visualMap===!1))for(var Fe=oe!=null?Ie.get(pe,$e):$e,Ue=V(Fe),qe=r[Ue],Et=ie[Ue],At=0,Lt=Et.length;At=0},r.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},r.type="legend.plain",r.dependencies=["series"],r.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},r}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V.newlineDisabled=!1,V}return r.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},r.prototype.getContentGroup=function(){return this._contentGroup},r.prototype.getSelectorGroup=function(){return this._selectorGroup},r.prototype.render=function(V,oe,ie){var le=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!V.get("show",!0)){var ue=V.get("align"),de=V.get("orient");(!ue||ue==="auto")&&(ue=V.get("left")==="right"&&de==="vertical"?"right":"left");var pe=V.get("selector",!0),he=V.get("selectorPosition",!0);pe&&(!he||he==="auto")&&(he=de==="horizontal"?"end":"start"),this.renderInner(ue,V,oe,ie,pe,de,he);var _e=V.getBoxLayoutParams(),$e={width:ie.getWidth(),height:ie.getHeight()},Ie=V.get("padding"),Ve=getLayoutRect(_e,$e,Ie),Fe=this.layoutInner(V,ue,Ve,le,pe,he),Ue=getLayoutRect(defaults({width:Fe.width,height:Fe.height},_e),$e,Ie);this.group.x=Ue.x-Fe.x,this.group.y=Ue.y-Fe.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(Fe,V))}},r.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},r.prototype.renderInner=function(V,oe,ie,le,ue,de,pe){var he=this.getContentGroup(),_e=createHashMap(),$e=oe.get("selectedMode"),Ie=[];ie.eachRawSeries(function(Ve){!Ve.get("legendHoverLink")&&Ie.push(Ve.id)}),each$3(oe.getData(),function(Ve,Fe){var Ue=Ve.get("name");if(!this.newlineDisabled&&(Ue===""||Ue===` `)){var qe=new Group$1;qe.newline=!0,he.add(qe);return}var Et=ie.getSeriesByName(Ue)[0];if(!_e.get(Ue))if(Et){var At=Et.getData(),Lt=At.getVisual("legendLineStyle")||{},hn=At.getVisual("legendIcon"),_n=At.getVisual("style"),vn=this._createItem(Et,Ue,Fe,Ve,oe,V,Lt,_n,hn,$e,le);vn.on("click",curry(dispatchSelectAction,Ue,null,le,Ie)).on("mouseover",curry(dispatchHighlightAction,Et.name,null,le,Ie)).on("mouseout",curry(dispatchDownplayAction,Et.name,null,le,Ie)),_e.set(Ue,!0)}else ie.eachRawSeries(function(bn){if(!_e.get(Ue)&&bn.legendVisualProvider){var Cn=bn.legendVisualProvider;if(!Cn.containName(Ue))return;var Sn=Cn.indexOfName(Ue),wn=Cn.getItemVisual(Sn,"style"),En=Cn.getItemVisual(Sn,"legendIcon"),xn=parse$1(wn.fill);xn&&xn[3]===0&&(xn[3]=.2,wn=extend(extend({},wn),{fill:stringify(xn,"rgba")}));var Pn=this._createItem(bn,Ue,Fe,Ve,oe,V,{},wn,En,$e,le);Pn.on("click",curry(dispatchSelectAction,null,Ue,le,Ie)).on("mouseover",curry(dispatchHighlightAction,null,Ue,le,Ie)).on("mouseout",curry(dispatchDownplayAction,null,Ue,le,Ie)),_e.set(Ue,!0)}},this)},this),ue&&this._createSelector(ue,oe,le,de,pe)},r.prototype._createSelector=function(V,oe,ie,le,ue){var de=this.getSelectorGroup();each$3(V,function(he){var _e=he.type,$e=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){ie.dispatchAction({type:_e==="all"?"legendAllSelect":"legendInverseSelect"})}});de.add($e);var Ie=oe.getModel("selectorLabel"),Ve=oe.getModel(["emphasis","selectorLabel"]);setLabelStyle($e,{normal:Ie,emphasis:Ve},{defaultText:he.title}),enableHoverEmphasis($e)})},r.prototype._createItem=function(V,oe,ie,le,ue,de,pe,he,_e,$e,Ie){var Ve=V.visualDrawType,Fe=ue.get("itemWidth"),Ue=ue.get("itemHeight"),qe=ue.isSelected(oe),Et=le.get("symbolRotate"),At=le.get("symbolKeepAspect"),Lt=le.get("icon");_e=Lt||_e||"roundRect";var hn=getLegendStyle(_e,le,pe,he,Ve,qe,Ie),_n=new Group$1,vn=le.getModel("textStyle");if(isFunction(V.getLegendIcon)&&(!Lt||Lt==="inherit"))_n.add(V.getLegendIcon({itemWidth:Fe,itemHeight:Ue,icon:_e,iconRotate:Et,itemStyle:hn.itemStyle,lineStyle:hn.lineStyle,symbolKeepAspect:At}));else{var bn=Lt==="inherit"&&V.getData().getVisual("symbol")?Et==="inherit"?V.getData().getVisual("symbolRotate"):Et:0;_n.add(getDefaultLegendIcon({itemWidth:Fe,itemHeight:Ue,icon:_e,iconRotate:bn,itemStyle:hn.itemStyle,lineStyle:hn.lineStyle,symbolKeepAspect:At}))}var Cn=de==="left"?Fe+5:-5,Sn=de,wn=ue.get("formatter"),En=oe;isString(wn)&&wn?En=wn.replace("{name}",oe??""):isFunction(wn)&&(En=wn(oe));var xn=qe?vn.getTextColor():le.get("inactiveColor");_n.add(new ZRText$1({style:createTextStyle$1(vn,{text:En,x:Cn,y:Ue/2,fill:xn,align:Sn,verticalAlign:"middle"},{inheritColor:xn})}));var Pn=new Rect$2({shape:_n.getBoundingRect(),invisible:!0}),kn=le.getModel("tooltip");return kn.get("show")&&setTooltipConfig({el:Pn,componentModel:ue,itemName:oe,itemTooltipOption:kn.option}),_n.add(Pn),_n.eachChild(function(Nn){Nn.silent=!0}),Pn.silent=!$e,this.getContentGroup().add(_n),enableHoverEmphasis(_n),_n.__legendDataIndex=ie,_n},r.prototype.layoutInner=function(V,oe,ie,le,ue,de){var pe=this.getContentGroup(),he=this.getSelectorGroup();box(V.get("orient"),pe,V.get("itemGap"),ie.width,ie.height);var _e=pe.getBoundingRect(),$e=[-_e.x,-_e.y];if(he.markRedraw(),pe.markRedraw(),ue){box("horizontal",he,V.get("selectorItemGap",!0));var Ie=he.getBoundingRect(),Ve=[-Ie.x,-Ie.y],Fe=V.get("selectorButtonGap",!0),Ue=V.getOrient().index,qe=Ue===0?"width":"height",Et=Ue===0?"height":"width",At=Ue===0?"y":"x";de==="end"?Ve[Ue]+=_e[qe]+Fe:$e[Ue]+=Ie[qe]+Fe,Ve[1-Ue]+=_e[Et]/2-Ie[Et]/2,he.x=Ve[0],he.y=Ve[1],pe.x=$e[0],pe.y=$e[1];var Lt={x:0,y:0};return Lt[qe]=_e[qe]+Fe+Ie[qe],Lt[Et]=Math.max(_e[Et],Ie[Et]),Lt[At]=Math.min(0,Ie[At]+Ve[1-Ue]),Lt}else return pe.x=$e[0],pe.y=$e[1],this.group.getBoundingRect()},r.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},r.type="legend.plain",r}(ComponentView$1);function getLegendStyle(t,r,V,oe,ie,le,ue){function de(qe,Et){qe.lineWidth==="auto"&&(qe.lineWidth=Et.lineWidth>0?2:0),each$3(qe,function(At,Lt){qe[Lt]==="inherit"&&(qe[Lt]=Et[Lt])})}var pe=r.getModel("itemStyle"),he=pe.getItemStyle(),_e=t.lastIndexOf("empty",0)===0?"fill":"stroke",$e=pe.getShallow("decal");he.decal=!$e||$e==="inherit"?oe.decal:createOrUpdatePatternFromDecal($e,ue),he.fill==="inherit"&&(he.fill=oe[ie]),he.stroke==="inherit"&&(he.stroke=oe[_e]),he.opacity==="inherit"&&(he.opacity=(ie==="fill"?oe:V).opacity),de(he,oe);var Ie=r.getModel("lineStyle"),Ve=Ie.getLineStyle();if(de(Ve,V),he.fill==="auto"&&(he.fill=oe.fill),he.stroke==="auto"&&(he.stroke=oe.fill),Ve.stroke==="auto"&&(Ve.stroke=oe.fill),!le){var Fe=r.get("inactiveBorderWidth"),Ue=he[_e];he.lineWidth=Fe==="auto"?oe.lineWidth>0&&Ue?2:0:he.lineWidth,he.fill=r.get("inactiveColor"),he.stroke=r.get("inactiveBorderColor"),Ve.stroke=Ie.get("inactiveColor"),Ve.lineWidth=Ie.get("inactiveWidth")}return{itemStyle:he,lineStyle:Ve}}function getDefaultLegendIcon(t){var r=t.icon||"roundRect",V=createSymbol(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return V.setStyle(t.itemStyle),V.rotation=(t.iconRotate||0)*Math.PI/180,V.setOrigin([t.itemWidth/2,t.itemHeight/2]),r.indexOf("empty")>-1&&(V.style.stroke=V.style.fill,V.style.fill="#fff",V.style.lineWidth=2),V}function dispatchSelectAction(t,r,V,oe){dispatchDownplayAction(t,r,V,oe),V.dispatchAction({type:"legendToggleSelect",name:t??r}),dispatchHighlightAction(t,r,V,oe)}function isUseHoverLayer(t){for(var r=t.getZr().storage.getDisplayList(),V,oe=0,ie=r.length;oeie[ue],qe=[-Ve.x,-Ve.y];oe||(qe[le]=_e[he]);var Et=[0,0],At=[-Fe.x,-Fe.y],Lt=retrieve2(V.get("pageButtonGap",!0),V.get("itemGap",!0));if(Ue){var hn=V.get("pageButtonPosition",!0);hn==="end"?At[le]+=ie[ue]-Fe[ue]:Et[le]+=Fe[ue]+Lt}At[1-le]+=Ve[de]/2-Fe[de]/2,_e.setPosition(qe),$e.setPosition(Et),Ie.setPosition(At);var _n={x:0,y:0};if(_n[ue]=Ue?ie[ue]:Ve[ue],_n[de]=Math.max(Ve[de],Fe[de]),_n[pe]=Math.min(0,Fe[pe]+At[1-le]),$e.__rectSize=ie[ue],Ue){var vn={x:0,y:0};vn[ue]=Math.max(ie[ue]-Fe[ue]-Lt,0),vn[de]=_n[de],$e.setClipPath(new Rect$2({shape:vn})),$e.__rectSize=vn[ue]}else Ie.eachChild(function(Cn){Cn.attr({invisible:!0,silent:!0})});var bn=this._getPageInfo(V);return bn.pageIndex!=null&&updateProps$1(_e,{x:bn.contentPosition[0],y:bn.contentPosition[1]},Ue?V:null),this._updatePageInfoView(V,bn),_n},r.prototype._pageGo=function(V,oe,ie){var le=this._getPageInfo(oe)[V];le!=null&&ie.dispatchAction({type:"legendScroll",scrollDataIndex:le,legendId:oe.id})},r.prototype._updatePageInfoView=function(V,oe){var ie=this._controllerGroup;each$c(["pagePrev","pageNext"],function(_e){var $e=_e+"DataIndex",Ie=oe[$e]!=null,Ve=ie.childOfName(_e);Ve&&(Ve.setStyle("fill",Ie?V.get("pageIconColor",!0):V.get("pageIconInactiveColor",!0)),Ve.cursor=Ie?"pointer":"default")});var le=ie.childOfName("pageText"),ue=V.get("pageFormatter"),de=oe.pageIndex,pe=de!=null?de+1:0,he=oe.pageCount;le&&ue&&le.setStyle("text",isString(ue)?ue.replace("{current}",pe==null?"":pe+"").replace("{total}",he==null?"":he+""):ue({current:pe,total:he}))},r.prototype._getPageInfo=function(V){var oe=V.get("scrollDataIndex",!0),ie=this.getContentGroup(),le=this._containerGroup.__rectSize,ue=V.getOrient().index,de=WH[ue],pe=XY[ue],he=this._findTargetItemIndex(oe),_e=ie.children(),$e=_e[he],Ie=_e.length,Ve=Ie?1:0,Fe={contentPosition:[ie.x,ie.y],pageCount:Ve,pageIndex:Ve-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!$e)return Fe;var Ue=hn($e);Fe.contentPosition[ue]=-Ue.s;for(var qe=he+1,Et=Ue,At=Ue,Lt=null;qe<=Ie;++qe)Lt=hn(_e[qe]),(!Lt&&At.e>Et.s+le||Lt&&!_n(Lt,Et.s))&&(At.i>Et.i?Et=At:Et=Lt,Et&&(Fe.pageNextDataIndex==null&&(Fe.pageNextDataIndex=Et.i),++Fe.pageCount)),At=Lt;for(var qe=he-1,Et=Ue,At=Ue,Lt=null;qe>=-1;--qe)Lt=hn(_e[qe]),(!Lt||!_n(At,Lt.s))&&Et.i=bn&&vn.s<=bn+le}},r.prototype._findTargetItemIndex=function(V){if(!this._showController)return 0;var oe,ie=this.getContentGroup(),le;return ie.eachChild(function(ue,de){var pe=ue.__legendDataIndex;le==null&&pe!=null&&(le=de),pe===V&&(oe=de)}),oe??le},r.type="legend.scroll",r}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(t){t.registerAction("legendScroll","legendscroll",function(r,V){var oe=r.scrollDataIndex;oe!=null&&V.eachComponent({mainType:"legend",subType:"scroll",query:r},function(ie){ie.setScrollDataIndex(oe)})})}function install$7(t){use$1(install$8),t.registerComponentModel(ScrollableLegendModel$1),t.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(t)}function install$6(t){use$1(install$8),use$1(install$7)}var InsideZoomModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.type="dataZoom.inside",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),r}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord(t,r,V){inner(t).coordSysRecordMap.each(function(oe){var ie=oe.dataZoomInfoMap.get(r.uid);ie&&(ie.getRange=V)})}function disposeCoordSysRecordIfNeeded(t,r){for(var V=inner(t).coordSysRecordMap,oe=V.keys(),ie=0;ieoe[V+r]&&(r=de),ie=ie&&ue.get("preventDefaultMouseMove",!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!ie}}}function installDataZoomRoamProcessor(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(r,V){var oe=inner(V),ie=oe.coordSysRecordMap||(oe.coordSysRecordMap=createHashMap());ie.each(function(le){le.dataZoomInfoMap=null}),r.eachComponent({mainType:"dataZoom",subType:"inside"},function(le){var ue=collectReferCoordSysModelInfo(le);each$c(ue.infoList,function(de){var pe=de.model.uid,he=ie.get(pe)||ie.set(pe,createCoordSysRecord(V,de.model)),_e=he.dataZoomInfoMap||(he.dataZoomInfoMap=createHashMap());_e.set(le.uid,{dzReferCoordSysInfo:de,model:le,getRange:null})})}),ie.each(function(le){var ue=le.controller,de,pe=le.dataZoomInfoMap;if(pe){var he=pe.keys()[0];he!=null&&(de=pe.get(he))}if(!de){disposeCoordSysRecord(ie,le);return}var _e=mergeControllerParams(pe);ue.enable(_e.controlType,_e.opt),ue.setPointerChecker(le.containsPoint),createOrUpdate(le,"dispatchAction",de.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type="dataZoom.inside",V}return r.prototype.render=function(V,oe,ie){if(t.prototype.render.apply(this,arguments),V.noTarget()){this._clear();return}this.range=V.getPercentRange(),setViewInfoToCoordSysRecord(ie,V,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},r.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},r.type="dataZoom.inside",r}(DataZoomView$1),getRangeHandlers={zoom:function(t,r,V,oe){var ie=this.range,le=ie.slice(),ue=t.axisModels[0];if(ue){var de=getDirectionInfo[r](null,[oe.originX,oe.originY],ue,V,t),pe=(de.signal>0?de.pixelStart+de.pixelLength-de.pixel:de.pixel-de.pixelStart)/de.pixelLength*(le[1]-le[0])+le[0],he=Math.max(1/oe.scale,0);le[0]=(le[0]-pe)*he+pe,le[1]=(le[1]-pe)*he+pe;var _e=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,le,[0,100],0,_e.minSpan,_e.maxSpan),this.range=le,ie[0]!==le[0]||ie[1]!==le[1])return le}},pan:makeMover(function(t,r,V,oe,ie,le){var ue=getDirectionInfo[oe]([le.oldX,le.oldY],[le.newX,le.newY],r,ie,V);return ue.signal*(t[1]-t[0])*ue.pixel/ue.pixelLength}),scrollMove:makeMover(function(t,r,V,oe,ie,le){var ue=getDirectionInfo[oe]([0,0],[le.scrollDelta,le.scrollDelta],r,ie,V);return ue.signal*(t[1]-t[0])*le.scrollDelta})};function makeMover(t){return function(r,V,oe,ie){var le=this.range,ue=le.slice(),de=r.axisModels[0];if(de){var pe=t(ue,de,r,V,oe,ie);if(sliderMove(pe,ue,[0,100],"all"),this.range=ue,le[0]!==ue[0]||le[1]!==ue[1])return ue}}}var getDirectionInfo={grid:function(t,r,V,oe,ie){var le=V.axis,ue={},de=ie.model.coordinateSystem.getRect();return t=t||[0,0],le.dim==="x"?(ue.pixel=r[0]-t[0],ue.pixelLength=de.width,ue.pixelStart=de.x,ue.signal=le.inverse?1:-1):(ue.pixel=r[1]-t[1],ue.pixelLength=de.height,ue.pixelStart=de.y,ue.signal=le.inverse?-1:1),ue},polar:function(t,r,V,oe,ie){var le=V.axis,ue={},de=ie.model.coordinateSystem,pe=de.getRadiusAxis().getExtent(),he=de.getAngleAxis().getExtent();return t=t?de.pointToCoord(t):[0,0],r=de.pointToCoord(r),V.mainType==="radiusAxis"?(ue.pixel=r[0]-t[0],ue.pixelLength=pe[1]-pe[0],ue.pixelStart=pe[0],ue.signal=le.inverse?1:-1):(ue.pixel=r[1]-t[1],ue.pixelLength=he[1]-he[0],ue.pixelStart=he[0],ue.signal=le.inverse?-1:1),ue},singleAxis:function(t,r,V,oe,ie){var le=V.axis,ue=ie.model.coordinateSystem.getRect(),de={};return t=t||[0,0],le.orient==="horizontal"?(de.pixel=r[0]-t[0],de.pixelLength=ue.width,de.pixelStart=ue.x,de.signal=le.inverse?1:-1):(de.pixel=r[1]-t[1],de.pixelLength=ue.height,de.pixelStart=ue.y,de.signal=le.inverse?-1:1),de}};const InsideZoomView$1=InsideZoomView;function install$5(t){installCommon$1(t),t.registerComponentModel(InsideZoomModel$1),t.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor(t)}var SliderZoomModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.type="dataZoom.slider",r.layoutMode="box",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),r}(DataZoomModel$1);const SliderZoomModel$1=SliderZoomModel;var Rect=Rect$2,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V._displayables={},V}return r.prototype.init=function(V,oe){this.api=oe,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},r.prototype.render=function(V,oe,ie,le){if(t.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",V.get("throttle"),"fixRate"),this._orient=V.getOrient(),V.get("show")===!1){this.group.removeAll();return}if(V.noTarget()){this._clear(),this.group.removeAll();return}(!le||le.type!=="dataZoom"||le.from!==this.uid)&&this._buildView(),this._updateView()},r.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var V=this.api.getZr();V.off("mousemove",this._onBrush),V.off("mouseup",this._onBrushEnd)},r.prototype._buildView=function(){var V=this.group;V.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var oe=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),V.add(oe),this._positionGroup()},r.prototype._resetLocation=function(){var V=this.dataZoomModel,oe=this.api,ie=V.get("brushSelect"),le=ie?DEFAULT_MOVE_HANDLE_SIZE:0,ue=this._findCoordRect(),de={width:oe.getWidth(),height:oe.getHeight()},pe=this._orient===HORIZONTAL?{right:de.width-ue.x-ue.width,top:de.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-le,width:ue.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:ue.y,width:DEFAULT_FILLER_SIZE,height:ue.height},he=getLayoutParams(V.option);each$c(["right","top","width","height"],function($e){he[$e]==="ph"&&(he[$e]=pe[$e])});var _e=getLayoutRect(he,de);this._location={x:_e.x,y:_e.y},this._size=[_e.width,_e.height],this._orient===VERTICAL&&this._size.reverse()},r.prototype._positionGroup=function(){var V=this.group,oe=this._location,ie=this._orient,le=this.dataZoomModel.getFirstTargetAxisModel(),ue=le&&le.get("inverse"),de=this._displayables.sliderGroup,pe=(this._dataShadowInfo||{}).otherAxisInverse;de.attr(ie===HORIZONTAL&&!ue?{scaleY:pe?1:-1,scaleX:1}:ie===HORIZONTAL&&ue?{scaleY:pe?1:-1,scaleX:-1}:ie===VERTICAL&&!ue?{scaleY:pe?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:pe?-1:1,scaleX:-1,rotation:Math.PI/2});var he=V.getBoundingRect([de]);V.x=oe.x-he.x,V.y=oe.y-he.y,V.markRedraw()},r.prototype._getViewExtent=function(){return[0,this._size[0]]},r.prototype._renderBackground=function(){var V=this.dataZoomModel,oe=this._size,ie=this._displayables.sliderGroup,le=V.get("brushSelect");ie.add(new Rect({silent:!0,shape:{x:0,y:0,width:oe[0],height:oe[1]},style:{fill:V.get("backgroundColor")},z2:-40}));var ue=new Rect({shape:{x:0,y:0,width:oe[0],height:oe[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),de=this.api.getZr();le?(ue.on("mousedown",this._onBrushStart,this),ue.cursor="crosshair",de.on("mousemove",this._onBrush),de.on("mouseup",this._onBrushEnd)):(de.off("mousemove",this._onBrush),de.off("mouseup",this._onBrushEnd)),ie.add(ue)},r.prototype._renderDataShadow=function(){var V=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!V)return;var oe=this._size,ie=this._shadowSize||[],le=V.series,ue=le.getRawData(),de=le.getShadowDim&&le.getShadowDim(),pe=de&&ue.getDimensionInfo(de)?le.getShadowDim():V.otherDim;if(pe==null)return;var he=this._shadowPolygonPts,_e=this._shadowPolylinePts;if(ue!==this._shadowData||pe!==this._shadowDim||oe[0]!==ie[0]||oe[1]!==ie[1]){var $e=ue.getDataExtent(pe),Ie=($e[1]-$e[0])*.3;$e=[$e[0]-Ie,$e[1]+Ie];var Ve=[0,oe[1]],Fe=[0,oe[0]],Ue=[[oe[0],0],[0,0]],qe=[],Et=Fe[1]/(ue.count()-1),At=0,Lt=Math.round(ue.count()/oe[0]),hn;ue.each([pe],function(Sn,wn){if(Lt>0&&wn%Lt){At+=Et;return}var En=Sn==null||isNaN(Sn)||Sn==="",xn=En?0:linearMap$2(Sn,$e,Ve,!0);En&&!hn&&wn?(Ue.push([Ue[Ue.length-1][0],0]),qe.push([qe[qe.length-1][0],0])):!En&&hn&&(Ue.push([At,0]),qe.push([At,0])),Ue.push([At,xn]),qe.push([At,xn]),At+=Et,hn=En}),he=this._shadowPolygonPts=Ue,_e=this._shadowPolylinePts=qe}this._shadowData=ue,this._shadowDim=pe,this._shadowSize=[oe[0],oe[1]];var _n=this.dataZoomModel;function vn(Sn){var wn=_n.getModel(Sn?"selectedDataBackground":"dataBackground"),En=new Group$3,xn=new Polygon$1({shape:{points:he},segmentIgnoreThreshold:1,style:wn.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),Pn=new Polyline$1({shape:{points:_e},segmentIgnoreThreshold:1,style:wn.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return En.add(xn),En.add(Pn),En}for(var bn=0;bn<3;bn++){var Cn=vn(bn===1);this._displayables.sliderGroup.add(Cn),this._displayables.dataShadowSegs.push(Cn)}},r.prototype._prepareDataShadowInfo=function(){var V=this.dataZoomModel,oe=V.get("showDataShadow");if(oe!==!1){var ie,le=this.ecModel;return V.eachTargetAxis(function(ue,de){var pe=V.getAxisProxy(ue,de).getTargetSeriesModels();each$c(pe,function(he){if(!ie&&!(oe!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,he.get("type"))<0)){var _e=le.getComponent(getAxisMainType(ue),de).axis,$e=getOtherDim(ue),Ie,Ve=he.coordinateSystem;$e!=null&&Ve.getOtherAxis&&(Ie=Ve.getOtherAxis(_e).inverse),$e=he.getData().mapDimension($e),ie={thisAxis:_e,series:he,thisDim:ue,otherDim:$e,otherAxisInverse:Ie}}},this)},this),ie}},r.prototype._renderHandle=function(){var V=this.group,oe=this._displayables,ie=oe.handles=[null,null],le=oe.handleLabels=[null,null],ue=this._displayables.sliderGroup,de=this._size,pe=this.dataZoomModel,he=this.api,_e=pe.get("borderRadius")||0,$e=pe.get("brushSelect"),Ie=oe.filler=new Rect({silent:$e,style:{fill:pe.get("fillerColor")},textConfig:{position:"inside"}});ue.add(Ie),ue.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:de[0],height:de[1],r:_e},style:{stroke:pe.get("dataBackgroundColor")||pe.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(Lt){var hn=pe.get("handleIcon");!symbolBuildProxies[hn]&&hn.indexOf("path://")<0&&hn.indexOf("image://")<0&&(hn="path://"+hn);var _n=createSymbol(hn,-1,0,2,2,null,!0);_n.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,Lt),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var vn=_n.getBoundingRect(),bn=pe.get("handleSize");this._handleHeight=parsePercent(bn,this._size[1]),this._handleWidth=vn.width/vn.height*this._handleHeight,_n.setStyle(pe.getModel("handleStyle").getItemStyle()),_n.style.strokeNoScale=!0,_n.rectHover=!0,_n.ensureState("emphasis").style=pe.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(_n);var Cn=pe.get("handleColor");Cn!=null&&(_n.style.fill=Cn),ue.add(ie[Lt]=_n);var Sn=pe.getModel("textStyle");V.add(le[Lt]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(Sn,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:Sn.getTextColor(),font:Sn.getFont()}),z2:10}))},this);var Ve=Ie;if($e){var Fe=parsePercent(pe.get("moveHandleSize"),de[1]),Ue=oe.moveHandle=new Rect$2({style:pe.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:de[1]-.5,height:Fe}}),qe=Fe*.8,Et=oe.moveHandleIcon=createSymbol(pe.get("moveHandleIcon"),-qe/2,-qe/2,qe,qe,"#fff",!0);Et.silent=!0,Et.y=de[1]+Fe/2-.5,Ue.ensureState("emphasis").style=pe.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var At=Math.min(de[1]/2,Math.max(Fe,10));Ve=oe.moveZone=new Rect$2({invisible:!0,shape:{y:de[1]-At,height:Fe+At}}),Ve.on("mouseover",function(){he.enterEmphasis(Ue)}).on("mouseout",function(){he.leaveEmphasis(Ue)}),ue.add(Ue),ue.add(Et),ue.add(Ve)}Ve.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},r.prototype._resetInterval=function(){var V=this._range=this.dataZoomModel.getPercentRange(),oe=this._getViewExtent();this._handleEnds=[linearMap$2(V[0],[0,100],oe,!0),linearMap$2(V[1],[0,100],oe,!0)]},r.prototype._updateInterval=function(V,oe){var ie=this.dataZoomModel,le=this._handleEnds,ue=this._getViewExtent(),de=ie.findRepresentativeAxisProxy().getMinMaxSpan(),pe=[0,100];sliderMove(oe,le,ue,ie.get("zoomLock")?"all":V,de.minSpan!=null?linearMap$2(de.minSpan,pe,ue,!0):null,de.maxSpan!=null?linearMap$2(de.maxSpan,pe,ue,!0):null);var he=this._range,_e=this._range=asc$2([linearMap$2(le[0],ue,pe,!0),linearMap$2(le[1],ue,pe,!0)]);return!he||he[0]!==_e[0]||he[1]!==_e[1]},r.prototype._updateView=function(V){var oe=this._displayables,ie=this._handleEnds,le=asc$2(ie.slice()),ue=this._size;each$c([0,1],function(Ve){var Fe=oe.handles[Ve],Ue=this._handleHeight;Fe.attr({scaleX:Ue/2,scaleY:Ue/2,x:ie[Ve]+(Ve?-1:1),y:ue[1]/2-Ue/2})},this),oe.filler.setShape({x:le[0],y:0,width:le[1]-le[0],height:ue[1]});var de={x:le[0],width:le[1]-le[0]};oe.moveHandle&&(oe.moveHandle.setShape(de),oe.moveZone.setShape(de),oe.moveZone.getBoundingRect(),oe.moveHandleIcon&&oe.moveHandleIcon.attr("x",de.x+de.width/2));for(var pe=oe.dataShadowSegs,he=[0,le[0],le[1],ue[0]],_e=0;_eoe[0]||ie[1]<0||ie[1]>oe[1])){var le=this._handleEnds,ue=(le[0]+le[1])/2,de=this._updateInterval("all",ie[0]-ue);this._updateView(),de&&this._dispatchZoomAction(!1)}},r.prototype._onBrushStart=function(V){var oe=V.offsetX,ie=V.offsetY;this._brushStart=new Point$1(oe,ie),this._brushing=!0,this._brushStartTime=+new Date},r.prototype._onBrushEnd=function(V){if(this._brushing){var oe=this._displayables.brushRect;if(this._brushing=!1,!!oe){oe.attr("ignore",!0);var ie=oe.shape,le=+new Date;if(!(le-this._brushStartTime<200&&Math.abs(ie.width)<5)){var ue=this._getViewExtent(),de=[0,100];this._range=asc$2([linearMap$2(ie.x,ue,de,!0),linearMap$2(ie.x+ie.width,ue,de,!0)]),this._handleEnds=[ie.x,ie.x+ie.width],this._updateView(),this._dispatchZoomAction(!1)}}}},r.prototype._onBrush=function(V){this._brushing&&(stop(V.event),this._updateBrushRect(V.offsetX,V.offsetY))},r.prototype._updateBrushRect=function(V,oe){var ie=this._displayables,le=this.dataZoomModel,ue=ie.brushRect;ue||(ue=ie.brushRect=new Rect({silent:!0,style:le.getModel("brushStyle").getItemStyle()}),ie.sliderGroup.add(ue)),ue.attr("ignore",!1);var de=this._brushStart,pe=this._displayables.sliderGroup,he=pe.transformCoordToLocal(V,oe),_e=pe.transformCoordToLocal(de.x,de.y),$e=this._size;he[0]=Math.max(Math.min($e[0],he[0]),0),ue.setShape({x:_e[0],y:0,width:he[0]-_e[0],height:$e[1]})},r.prototype._dispatchZoomAction=function(V){var oe=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:V?REALTIME_ANIMATION_CONFIG:null,start:oe[0],end:oe[1]})},r.prototype._findCoordRect=function(){var V,oe=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!V&&oe.length){var ie=oe[0].model.coordinateSystem;V=ie.getRect&&ie.getRect()}if(!V){var le=this.api.getWidth(),ue=this.api.getHeight();V={x:le*.2,y:ue*.2,width:le*.6,height:ue*.6}}return V},r.type="dataZoom.slider",r}(DataZoomView$1);function getOtherDim(t){var r={x:"y",y:"x",radius:"angle",angle:"radius"};return r[t]}function getCursor$1(t){return t==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4(t){t.registerComponentModel(SliderZoomModel$1),t.registerComponentView(SliderZoomView$1),installCommon$1(t)}function install$3(t){use$1(install$5),use$1(install$4)}var visualDefault={get:function(t,r,V){var oe=clone$3((defaultOption[t]||{})[r]);return V&&isArray$1(oe)?oe[oe.length-1]:oe}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const visualDefault$1=visualDefault;var mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$c,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V.stateList=["inRange","outOfRange"],V.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],V.layoutMode={type:"box",ignoreSize:!0},V.dataBound=[-1/0,1/0],V.targetVisuals={},V.controllerVisuals={},V}return r.prototype.init=function(V,oe,ie){this.mergeDefaultAndTheme(V,ie)},r.prototype.optionUpdated=function(V,oe){var ie=this.option;!oe&&replaceVisualOption(ie,V,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},r.prototype.resetVisual=function(V){var oe=this.stateList;V=bind$1(V,this),this.controllerVisuals=createVisualMappings(this.option.controller,oe,V),this.targetVisuals=createVisualMappings(this.option.target,oe,V)},r.prototype.getItemSymbol=function(){return null},r.prototype.getTargetSeriesIndices=function(){var V=this.option.seriesIndex,oe=[];return V==null||V==="all"?this.ecModel.eachSeries(function(ie,le){oe.push(le)}):oe=normalizeToArray(V),oe},r.prototype.eachTargetSeries=function(V,oe){each$c(this.getTargetSeriesIndices(),function(ie){var le=this.ecModel.getSeriesByIndex(ie);le&&V.call(oe,le)},this)},r.prototype.isTargetSeries=function(V){var oe=!1;return this.eachTargetSeries(function(ie){ie===V&&(oe=!0)}),oe},r.prototype.formatValueText=function(V,oe,ie){var le=this.option,ue=le.precision,de=this.dataBound,pe=le.formatter,he;ie=ie||["<",">"],isArray$1(V)&&(V=V.slice(),he=!0);var _e=oe?V:he?[$e(V[0]),$e(V[1])]:$e(V);if(isString(pe))return pe.replace("{value}",he?_e[0]:_e).replace("{value2}",he?_e[1]:_e);if(isFunction(pe))return he?pe(V[0],V[1]):pe(V);if(he)return V[0]===de[0]?ie[0]+" "+_e[1]:V[1]===de[1]?ie[1]+" "+_e[0]:_e[0]+" - "+_e[1];return _e;function $e(Ie){return Ie===de[0]?"min":Ie===de[1]?"max":(+Ie).toFixed(Math.min(ue,20))}},r.prototype.resetExtent=function(){var V=this.option,oe=asc([V.min,V.max]);this._dataExtent=oe},r.prototype.getDataDimensionIndex=function(V){var oe=this.option.dimension;if(oe!=null)return V.getDimensionIndex(oe);for(var ie=V.dimensions,le=ie.length-1;le>=0;le--){var ue=ie[le],de=V.getDimensionInfo(ue);if(!de.isCalculationCoord)return de.storeDimIndex}},r.prototype.getExtent=function(){return this._dataExtent.slice()},r.prototype.completeVisualOption=function(){var V=this.ecModel,oe=this.option,ie={inRange:oe.inRange,outOfRange:oe.outOfRange},le=oe.target||(oe.target={}),ue=oe.controller||(oe.controller={});merge(le,ie),merge(ue,ie);var de=this.isCategory();pe.call(this,le),pe.call(this,ue),he.call(this,le,"inRange","outOfRange"),_e.call(this,ue);function pe($e){isArray(oe.color)&&!$e.inRange&&($e.inRange={color:oe.color.slice().reverse()}),$e.inRange=$e.inRange||{color:V.get("gradientColor")}}function he($e,Ie,Ve){var Fe=$e[Ie],Ue=$e[Ve];Fe&&!Ue&&(Ue=$e[Ve]={},each$2(Fe,function(qe,Et){if(VisualMapping$1.isValidType(Et)){var At=visualDefault$1.get(Et,"inactive",de);At!=null&&(Ue[Et]=At,Et==="color"&&!Ue.hasOwnProperty("opacity")&&!Ue.hasOwnProperty("colorAlpha")&&(Ue.opacity=[0,0]))}}))}function _e($e){var Ie=($e.inRange||{}).symbol||($e.outOfRange||{}).symbol,Ve=($e.inRange||{}).symbolSize||($e.outOfRange||{}).symbolSize,Fe=this.get("inactiveColor"),Ue=this.getItemSymbol(),qe=Ue||"roundRect";each$2(this.stateList,function(Et){var At=this.itemSize,Lt=$e[Et];Lt||(Lt=$e[Et]={color:de?Fe:[Fe]}),Lt.symbol==null&&(Lt.symbol=Ie&&clone$3(Ie)||(de?qe:[qe])),Lt.symbolSize==null&&(Lt.symbolSize=Ve&&clone$3(Ve)||(de?At[0]:[At[0],At[0]])),Lt.symbol=mapVisual(Lt.symbol,function(vn){return vn==="none"?qe:vn});var hn=Lt.symbolSize;if(hn!=null){var _n=-1/0;eachVisual(hn,function(vn){vn>_n&&(_n=vn)}),Lt.symbolSize=mapVisual(hn,function(vn){return linearMap$1(vn,[0,_n],[0,At[0]],!0)})}},this)}},r.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},r.prototype.isCategory=function(){return!!this.option.categories},r.prototype.setSelected=function(V){},r.prototype.getSelected=function(){return null},r.prototype.getValueState=function(V){return null},r.prototype.getVisualMeta=function(V){return null},r.type="visualMap",r.dependencies=["series"],r.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},r}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.prototype.optionUpdated=function(V,oe){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(ie){ie.mappingMethod="linear",ie.dataExtent=this.getExtent()}),this._resetRange()},r.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var V=this.itemSize;(V[0]==null||isNaN(V[0]))&&(V[0]=DEFAULT_BAR_BOUND[0]),(V[1]==null||isNaN(V[1]))&&(V[1]=DEFAULT_BAR_BOUND[1])},r.prototype._resetRange=function(){var V=this.getExtent(),oe=this.option.range;!oe||oe.auto?(V.auto=1,this.option.range=V):isArray$1(oe)&&(oe[0]>oe[1]&&oe.reverse(),oe[0]=Math.max(oe[0],V[0]),oe[1]=Math.min(oe[1],V[1]))},r.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(V){var oe=this.option.controller[V].symbolSize;oe&&oe[0]!==oe[1]&&(oe[0]=oe[1]/3)},this)},r.prototype.setSelected=function(V){this.option.range=V.slice(),this._resetRange()},r.prototype.getSelected=function(){var V=this.getExtent(),oe=asc$2((this.get("range")||[]).slice());return oe[0]>V[1]&&(oe[0]=V[1]),oe[1]>V[1]&&(oe[1]=V[1]),oe[0]=ie[1]||V<=oe[1])?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(V){var oe=[];return this.eachTargetSeries(function(ie){var le=[],ue=ie.getData();ue.each(this.getDataDimensionIndex(ue),function(de,pe){V[0]<=de&&de<=V[1]&&le.push(pe)},this),oe.push({seriesId:ie.id,dataIndex:le})},this),oe},r.prototype.getVisualMeta=function(V){var oe=getColorStopValues(this,"outOfRange",this.getExtent()),ie=getColorStopValues(this,"inRange",this.option.range.slice()),le=[];function ue(Ve,Fe){le.push({value:Ve,color:V(Ve,Fe)})}for(var de=0,pe=0,he=ie.length,_e=oe.length;pe<_e&&(!ie.length||oe[pe]<=ie[0]);pe++)oe[pe]V[1])break;le.push({color:this.getControllerVisual(pe,"color",oe),offset:de/ie})}return le.push({color:this.getControllerVisual(V[1],"color",oe),offset:1}),le},r.prototype._createBarPoints=function(V,oe){var ie=this.visualMapModel.itemSize;return[[ie[0]-oe[0],V[0]],[ie[0],V[0]],[ie[0],V[1]],[ie[0]-oe[1],V[1]]]},r.prototype._createBarGroup=function(V){var oe=this._orient,ie=this.visualMapModel.get("inverse");return new Group$3(oe==="horizontal"&&!ie?{scaleX:V==="bottom"?1:-1,rotation:Math.PI/2}:oe==="horizontal"&&ie?{scaleX:V==="bottom"?-1:1,rotation:-Math.PI/2}:oe==="vertical"&&!ie?{scaleX:V==="left"?1:-1,scaleY:-1}:{scaleX:V==="left"?1:-1})},r.prototype._updateHandle=function(V,oe){if(this._useHandle){var ie=this._shapes,le=this.visualMapModel,ue=ie.handleThumbs,de=ie.handleLabels,pe=le.itemSize,he=le.getExtent();each$1([0,1],function(_e){var $e=ue[_e];$e.setStyle("fill",oe.handlesColor[_e]),$e.y=V[_e];var Ie=linearMap(V[_e],[0,pe[1]],he,!0),Ve=this.getControllerVisual(Ie,"symbolSize");$e.scaleX=$e.scaleY=Ve/pe[0],$e.x=pe[0]-Ve/2;var Fe=applyTransform(ie.handleLabelPoints[_e],getTransform$1($e,this.group));de[_e].setStyle({x:Fe[0],y:Fe[1],text:le.formatValueText(this._dataInterval[_e]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",ie.mainGroup):"center"})},this)}},r.prototype._showIndicator=function(V,oe,ie,le){var ue=this.visualMapModel,de=ue.getExtent(),pe=ue.itemSize,he=[0,pe[1]],_e=this._shapes,$e=_e.indicator;if($e){$e.attr("invisible",!1);var Ie={convertOpacityToAlpha:!0},Ve=this.getControllerVisual(V,"color",Ie),Fe=this.getControllerVisual(V,"symbolSize"),Ue=linearMap(V,de,he,!0),qe=pe[0]-Fe/2,Et={x:$e.x,y:$e.y};$e.y=Ue,$e.x=qe;var At=applyTransform(_e.indicatorLabelPoint,getTransform$1($e,this.group)),Lt=_e.indicatorLabel;Lt.attr("invisible",!1);var hn=this._applyTransform("left",_e.mainGroup),_n=this._orient,vn=_n==="horizontal";Lt.setStyle({text:(ie||"")+ue.formatValueText(oe),verticalAlign:vn?hn:"middle",align:vn?"center":hn});var bn={x:qe,y:Ue,style:{fill:Ve}},Cn={style:{x:At[0],y:At[1]}};if(ue.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var Sn={duration:100,easing:"cubicInOut",additive:!0};$e.x=Et.x,$e.y=Et.y,$e.animateTo(bn,Sn),Lt.animateTo(Cn,Sn)}else $e.attr(bn),Lt.attr(Cn);this._firstShowIndicator=!1;var wn=this._shapes.handleLabels;if(wn)for(var En=0;Enue[1]&&($e[1]=1/0),oe&&($e[0]===-1/0?this._showIndicator(_e,$e[1],"< ",pe):$e[1]===1/0?this._showIndicator(_e,$e[0],"> ",pe):this._showIndicator(_e,_e,"≈ ",pe));var Ie=this._hoverLinkDataIndices,Ve=[];(oe||useHoverLinkOnHandle(ie))&&(Ve=this._hoverLinkDataIndices=ie.findTargetDataIndices($e));var Fe=compressBatches(Ie,Ve);this._dispatchHighDown("downplay",makeHighDownBatch(Fe[0],ie)),this._dispatchHighDown("highlight",makeHighDownBatch(Fe[1],ie))}},r.prototype._hoverLinkFromSeriesMouseOver=function(V){var oe;if(findEventDispatcher(V.target,function(pe){var he=getECData(pe);if(he.dataIndex!=null)return oe=he,!0},!0),!!oe){var ie=this.ecModel.getSeriesByIndex(oe.seriesIndex),le=this.visualMapModel;if(le.isTargetSeries(ie)){var ue=ie.getData(oe.dataType),de=ue.getStore().get(le.getDataDimensionIndex(ue),oe.dataIndex);isNaN(de)||this._showIndicator(de,de)}}},r.prototype._hideIndicator=function(){var V=this._shapes;V.indicator&&V.indicator.attr("invisible",!0),V.indicatorLabel&&V.indicatorLabel.attr("invisible",!0);var oe=this._shapes.handleLabels;if(oe)for(var ie=0;ie=0&&(le.dimension=ue,oe.push(le))}}),t.getData().setVisual("visualMeta",oe)}}];function getColorVisual(t,r,V,oe){for(var ie=r.targetVisuals[oe],le=VisualMapping$1.prepareVisualTypes(ie),ue={color:getVisualFromData(t.getData(),"color")},de=0,pe=le.length;de0:r.splitNumber>0)||r.calculable)?"continuous":"piecewise"}),t.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(r){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,r)}),t.registerPreprocessor(visualMapPreprocessor))}function install$2(t){t.registerComponentModel(ContinuousModel$1),t.registerComponentView(ContinuousView$1),installCommon(t)}var PiecewiseModel=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V._pieceList=[],V}return r.prototype.optionUpdated=function(V,oe){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var ie=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(V,oe);var le=this.option.categories;this.resetVisual(function(ue,de){ie==="categories"?(ue.mappingMethod="category",ue.categories=clone$3(le)):(ue.dataExtent=this.getExtent(),ue.mappingMethod="piecewise",ue.pieceList=map$2(this._pieceList,function(pe){return pe=clone$3(pe),de!=="inRange"&&(pe.visual=null),pe}))})},r.prototype.completeVisualOption=function(){var V=this.option,oe={},ie=VisualMapping$1.listVisualTypes(),le=this.isCategory();each$c(V.pieces,function(de){each$c(ie,function(pe){de.hasOwnProperty(pe)&&(oe[pe]=1)})}),each$c(oe,function(de,pe){var he=!1;each$c(this.stateList,function(_e){he=he||ue(V,_e,pe)||ue(V.target,_e,pe)},this),!he&&each$c(this.stateList,function(_e){(V[_e]||(V[_e]={}))[pe]=visualDefault$1.get(pe,_e==="inRange"?"active":"inactive",le)})},this);function ue(de,pe,he){return de&&de[pe]&&de[pe].hasOwnProperty(he)}t.prototype.completeVisualOption.apply(this,arguments)},r.prototype._resetSelected=function(V,oe){var ie=this.option,le=this._pieceList,ue=(oe?ie:V).selected||{};if(ie.selected=ue,each$c(le,function(pe,he){var _e=this.getSelectedMapKey(pe);ue.hasOwnProperty(_e)||(ue[_e]=!0)},this),ie.selectedMode==="single"){var de=!1;each$c(le,function(pe,he){var _e=this.getSelectedMapKey(pe);ue[_e]&&(de?ue[_e]=!1:de=!0)},this)}},r.prototype.getItemSymbol=function(){return this.get("itemSymbol")},r.prototype.getSelectedMapKey=function(V){return this._mode==="categories"?V.value+"":V.index+""},r.prototype.getPieceList=function(){return this._pieceList},r.prototype._determineMode=function(){var V=this.option;return V.pieces&&V.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},r.prototype.setSelected=function(V){this.option.selected=clone$3(V)},r.prototype.getValueState=function(V){var oe=VisualMapping$1.findPieceIndex(V,this._pieceList);return oe!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[oe])]?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(V){var oe=[],ie=this._pieceList;return this.eachTargetSeries(function(le){var ue=[],de=le.getData();de.each(this.getDataDimensionIndex(de),function(pe,he){var _e=VisualMapping$1.findPieceIndex(pe,ie);_e===V&&ue.push(he)},this),oe.push({seriesId:le.id,dataIndex:ue})},this),oe},r.prototype.getRepresentValue=function(V){var oe;if(this.isCategory())oe=V.value;else if(V.value!=null)oe=V.value;else{var ie=V.interval||[];oe=ie[0]===-1/0&&ie[1]===1/0?0:(ie[0]+ie[1])/2}return oe},r.prototype.getVisualMeta=function(V){if(this.isCategory())return;var oe=[],ie=["",""],le=this;function ue(_e,$e){var Ie=le.getRepresentValue({interval:_e});$e||($e=le.getValueState(Ie));var Ve=V(Ie,$e);_e[0]===-1/0?ie[0]=Ve:_e[1]===1/0?ie[1]=Ve:oe.push({value:_e[0],color:Ve},{value:_e[1],color:Ve})}var de=this._pieceList.slice();if(!de.length)de.push({interval:[-1/0,1/0]});else{var pe=de[0].interval[0];pe!==-1/0&&de.unshift({interval:[-1/0,pe]}),pe=de[de.length-1].interval[1],pe!==1/0&&de.push({interval:[pe,1/0]})}var he=-1/0;return each$c(de,function(_e){var $e=_e.interval;$e&&($e[0]>he&&ue([he,$e[0]],"outOfRange"),ue($e.slice()),he=$e[1])},this),{stops:oe,outerColors:ie}},r.type="visualMap.piecewise",r.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),r}(VisualMapModel$1),resetMethods={splitNumber:function(t){var r=this.option,V=Math.min(r.precision,20),oe=this.getExtent(),ie=r.splitNumber;ie=Math.max(parseInt(ie,10),1),r.splitNumber=ie;for(var le=(oe[1]-oe[0])/ie;+le.toFixed(V)!==le&&V<5;)V++;r.precision=V,le=+le.toFixed(V),r.minOpen&&t.push({interval:[-1/0,oe[0]],close:[0,0]});for(var ue=0,de=oe[0];ue","≥"][oe[0]]];V.text=V.text||this.formatValueText(V.value!=null?V.value:V.interval,!1,ie)},this)}};function normalizeReverse(t,r){var V=t.inverse;(t.orient==="vertical"?!V:V)&&r.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function(t){__extends(r,t);function r(){var V=t!==null&&t.apply(this,arguments)||this;return V.type=r.type,V}return r.prototype.doRender=function(){var V=this.group;V.removeAll();var oe=this.visualMapModel,ie=oe.get("textGap"),le=oe.textStyleModel,ue=le.getFont(),de=le.getTextColor(),pe=this._getItemAlign(),he=oe.itemSize,_e=this._getViewData(),$e=_e.endsText,Ie=retrieve(oe.get("showLabel",!0),!$e);$e&&this._renderEndsText(V,$e[0],he,Ie,pe),each$c(_e.viewPieceList,function(Ve){var Fe=Ve.piece,Ue=new Group$3;Ue.onclick=bind$1(this._onItemClick,this,Fe),this._enableHoverLink(Ue,Ve.indexInModelPieceList);var qe=oe.getRepresentValue(Fe);if(this._createItemSymbol(Ue,qe,[0,0,he[0],he[1]]),Ie){var Et=this.visualMapModel.getValueState(qe);Ue.add(new ZRText$1({style:{x:pe==="right"?-ie:he[0]+ie,y:he[1]/2,text:Fe.text,verticalAlign:"middle",align:pe,font:ue,fill:de,opacity:Et==="outOfRange"?.5:1}}))}V.add(Ue)},this),$e&&this._renderEndsText(V,$e[1],he,Ie,pe),box(oe.get("orient"),V,oe.get("itemGap")),this.renderBackground(V),this.positionGroup(V)},r.prototype._enableHoverLink=function(V,oe){var ie=this;V.on("mouseover",function(){return le("highlight")}).on("mouseout",function(){return le("downplay")});var le=function(ue){var de=ie.visualMapModel;de.option.hoverLink&&ie.api.dispatchAction({type:ue,batch:makeHighDownBatch(de.findTargetDataIndices(oe),de)})}},r.prototype._getItemAlign=function(){var V=this.visualMapModel,oe=V.option;if(oe.orient==="vertical")return getItemAlign(V,this.api,V.itemSize);var ie=oe.align;return(!ie||ie==="auto")&&(ie="left"),ie},r.prototype._renderEndsText=function(V,oe,ie,le,ue){if(oe){var de=new Group$3,pe=this.visualMapModel.textStyleModel;de.add(new ZRText$1({style:createTextStyle$1(pe,{x:le?ue==="right"?ie[0]:0:ie[0]/2,y:ie[1]/2,verticalAlign:"middle",align:le?ue:"center",text:oe})})),V.add(de)}},r.prototype._getViewData=function(){var V=this.visualMapModel,oe=map$2(V.getPieceList(),function(de,pe){return{piece:de,indexInModelPieceList:pe}}),ie=V.get("text"),le=V.get("orient"),ue=V.get("inverse");return(le==="horizontal"?ue:!ue)?oe.reverse():ie&&(ie=ie.slice().reverse()),{viewPieceList:oe,endsText:ie}},r.prototype._createItemSymbol=function(V,oe,ie){V.add(createSymbol(this.getControllerVisual(oe,"symbol"),ie[0],ie[1],ie[2],ie[3],this.getControllerVisual(oe,"color")))},r.prototype._onItemClick=function(V){var oe=this.visualMapModel,ie=oe.option,le=ie.selectedMode;if(le){var ue=clone$3(ie.selected),de=oe.getSelectedMapKey(V);le==="single"||le===!0?(ue[de]=!0,each$c(ue,function(pe,he){ue[he]=he===de})):ue[de]=!ue[de],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:ue})}},r.type="visualMap.piecewise",r}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1(t){t.registerComponentModel(PiecewiseModel$1),t.registerComponentView(PiecewiseView),installCommon(t)}function install(t){use$1(install$2),use$1(install$1)}const{use}=echarts;use([install$h,install$i,install$j,install$k,install$e,install$9,install$6,install$d,install$b,install$a,install$3,install]);function useEcharts(t){t.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$1=Object.prototype.hasOwnProperty,_=(t,r,V)=>r in t?p(t,r,{enumerable:!0,configurable:!0,writable:!0,value:V}):t[r]=V,P=(t,r)=>{for(var V in r)p(t,V,{get:r[V],enumerable:!0})},y=(t,r,V,oe)=>{if(r&&typeof r=="object"||typeof r=="function")for(let ie of u(r))!j$1.call(t,ie)&&ie!==V&&p(t,ie,{get:()=>r[ie],enumerable:!(oe=d(r,ie))||oe.enumerable});return t},m$1=(t,r,V)=>(y(t,r,"default"),V&&y(V,r,"default")),f=(t,r,V)=>(_(t,typeof r!="symbol"?r+"":r,V),V),c={};P(c,{Vue:()=>vue_runtime_esmBundler});m$1(c,vue_runtime_esmBundler);var g=class{static install(t,r){let{nameSpace:V=this._nameSpace,memory:oe}=r;return oe&&this.clearAll(V,oe),new g(t,r)}static clearAll(t,r){Object.keys(r).forEach(V=>{let oe=t+V;Object.prototype.hasOwnProperty.call(window.localStorage,oe)&&window.localStorage.removeItem(oe)})}static get(t){return JSON.parse(window.localStorage.getItem(t))}static set(t,r){r=typeof r=="object"?JSON.stringify(r):r,window.localStorage.setItem(t,r)}static getData(t,r){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(r,t)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(r,t)))}constructor(t,r){let V=g,{version:oe=3,nameSpace:ie=V._nameSpace,memory:le}=r,ue=he=>ie+he,de=oe===3?(0,c.reactive)(le):le;Object.keys(de).length===0&&console.warn("key cannot be empty"),Object.keys(de).forEach(he=>{let _e=de[he];V.set(ue(he),_e),Reflect.defineProperty(de,he,{get:()=>V.get(ue(he)),set:$e=>V.set(ue(he),$e),configurable:!0}),oe===2&&t.util.defineReactive(de,he,de[he])});let pe=oe===3?t.config.globalProperties:t.prototype;Reflect.defineProperty(pe,"$storage",{get:()=>de})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",(t,r)=>`${t??g._nameSpace}${r}`);const injectResponsiveStorage=(t,r)=>{const V=responsiveStorageNameSpace(),oe=Object.assign({locale:n.getData("locale",V)??{locale:r.Locale??"zh"},layout:n.getData("layout",V)??{layout:r.Layout??"vertical",theme:r.Theme??"default",darkMode:r.DarkMode??!1,sidebarStatus:r.SidebarStatus??!0,epThemeColor:r.EpThemeColor??"#409EFF"},configure:n.getData("configure",V)??{grey:r.Grey??!1,weak:r.Weak??!1,hideTabs:r.HideTabs??!1,showLogo:r.ShowLogo??!0,showModel:r.ShowModel??"smart",multiTagsCache:r.MultiTagsCache??!1}},r.MultiTagsCache?{tags:n.getData("tags",V)??routerArrays}:{});t.use(n,{nameSpace:V,memory:oe})},we=Object.prototype.hasOwnProperty,W=(t,r)=>we.call(t,r),q=t=>t!==null&&typeof t=="object",Oe=((t,r)=>{if(!q(t)||q(V=t)&&V.__epPropKey)return t;var V;const{values:oe,required:ie,default:le,type:ue,validator:de}=t,pe=oe||de?_e=>{let $e=!1,Ie=[];if(oe&&(Ie=Array.from(oe),W(t,"default")&&Ie.push(le),$e||($e=Ie.includes(_e))),de&&($e||($e=de(_e))),!$e&&Ie.length>0){const Ve=[...new Set(Ie)].map(Fe=>JSON.stringify(Fe)).join(", ");warn$2(`Invalid prop: validation failed${r?` for prop "${r}"`:""}. Expected one of [${Ve}], got value ${JSON.stringify(_e)}.`)}return $e}:void 0,he={type:ue,required:!!ie,validator:pe,__epPropKey:!0};return W(t,"default")&&(he.default=le),he})({type:String,values:["","default","small","large"],required:!1});var Se={data:{type:Array,default:()=>[]},size:Oe,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const xe={key:{type:String||Number,default:"0"},columns:{type:Array,default:[]},loading:{type:Boolean,default:!1},loadingConfig:{type:Object,default:()=>{}},alignWhole:{type:String,default:"left"},headerAlign:{type:String,default:""},showOverflowTooltip:{type:Boolean,default:!1},rowHoverBgColor:{type:String,default:""},pagination:{type:Object,default:{total:0,pageSize:5,align:"right",background:!1,pageSizes:[5,10,15,20],layout:"total, sizes, prev, pager, next, jumper"}},paginationSmall:{type:Boolean,default:!1},adaptive:{type:Boolean,default:!1},adaptiveConfig:{type:Object,default:{offsetBottom:96,fixHeader:!0,timeout:60,zIndex:100}},...Se},J=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:t=>()=>createVNode(Fragment,null,[t.render(t.params)])});var ee=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Ce=Object.getOwnPropertyNames,Be=Object.prototype.hasOwnProperty,U=(t,r,V,oe)=>{if(r&&typeof r=="object"||typeof r=="function")for(let ie of Ce(r))!Be.call(t,ie)&&ie!==V&&ee(t,ie,{get:()=>r[ie],enumerable:!(oe=je(r,ie))||oe.enumerable});return t},ze=Object.prototype.toString;function G(t){return typeof t=="function"}function Ne(t){return function(r,V){return ze.call(r)===`[object ${V}]`}(t,"Boolean")}var h={};((t,r)=>{for(var V in r)ee(t,V,{get:r[V],enumerable:!0})})(h,{Vue:()=>vue_runtime_esmBundler}),U(h,vue_runtime_esmBundler,"default");var Te=()=>{let t,r=(0,h.shallowRef)(!1),V=()=>{r.value=document.documentElement.classList.contains("dark")};return function(oe){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(oe)}(()=>{t.takeRecords(),t.disconnect()}),(0,h.onBeforeMount)(()=>{V(),t=new MutationObserver(V),t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:r}};const D=defineComponent({name:"PureTable",props:xe,emits:["page-size-change","page-current-change"],setup(t,{slots:r,attrs:V,emit:oe,expose:ie}){var le;const{key:ue,columns:de,loading:pe,adaptive:he,pagination:_e,alignWhole:$e,headerAlign:Ie,loadingConfig:Ve,adaptiveConfig:Fe,rowHoverBgColor:Ue,showOverflowTooltip:qe}=toRefs(t),{isDark:Et}=Te(),At=getCurrentInstance();let Lt=unref(_e)&&unref(_e).currentPage&&unref(_e).pageSize,hn=computed(()=>{if(!unref(Ve))return;let{text:kn,spinner:Nn,svg:Dn,viewBox:Mn}=unref(Ve);return{"element-loading-text":kn,"element-loading-spinner":Nn,"element-loading-svg":Dn,"element-loading-svg-view-box":Mn}});const _n=computed(()=>{var kn,Nn;if(unref(pe))return{"element-loading-background":(kn=unref(Ve))!=null&&kn.background?(Nn=unref(Ve))==null?void 0:Nn.background:Et.value?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),vn=computed(()=>{var kn;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:unref(_e).align==="left"?"flex-start":unref(_e).align==="center"?"center":"flex-end"},(kn=unref(_e).style)!=null?kn:{})}),bn=(kn,Nn)=>{const{cellRenderer:Dn,slot:Mn,headerRenderer:Ln,headerSlot:An,hide:Vn,children:Wn,prop:Fn,...Yn}=kn;if(G(Vn)&&Vn(V))return Vn(V);if(Ne(Vn)&&Vn)return Vn;const tr={default:Kn=>{var Gn;return Dn?createVNode(J,{render:Dn,params:Object.assign(Kn,{index:Kn.$index,props:t,attrs:V})},null):Mn?(Gn=r==null?void 0:r[Mn])==null?void 0:Gn.call(r,Object.assign(Kn,{index:Kn.$index,props:t,attrs:V})):void 0}};let yr=Ln?{header:Kn=>createVNode(J,{render:Ln,params:Object.assign(Kn,{index:Kn.$index,props:t,attrs:V})},null),...tr}:r!=null&&r[An]?{header:Kn=>{var Gn;return(Gn=r==null?void 0:r[An])==null?void 0:Gn.call(r,Object.assign(Kn,{index:Kn.$index,props:t,attrs:V}))},...tr}:tr;return(Wn==null?void 0:Wn.length)>0&&(yr=Wn.map(bn)),createVNode(ElTableColumn,mergeProps({key:Nn},Yn,{prop:G(Fn)&&Fn(Nn)?Fn(Nn):Fn,align:kn!=null&&kn.align?kn.align:unref($e),headerAlign:kn!=null&&kn.headerAlign?kn.headerAlign:unref(Ie),showOverflowTooltip:kn!=null&&kn.showOverflowTooltip?kn.showOverflowTooltip:unref(qe)}),typeof(Jn=yr)=="function"||Object.prototype.toString.call(Jn)==="[object Object]"&&!isVNode$1(Jn)?yr:{default:()=>[yr]});var Jn},Cn=()=>{var kn;return(kn=At==null?void 0:At.proxy)==null?void 0:kn.$refs[`TableRef${unref(ue)}`]},Sn=()=>Cn().$refs,wn=async()=>{var kn;await nextTick();const Nn=Sn().tableWrapper,Dn=(kn=unref(Fe).offsetBottom)!=null?kn:96;Nn.style.height=window.innerHeight-Nn.getBoundingClientRect().top-Dn+"px"},En=((kn,Nn=200,Dn=!1)=>{let Mn,Ln,An=Nn;return function(){Mn&&clearTimeout(Mn),Dn?(Mn||kn.call(Ln,...arguments),Mn=setTimeout(()=>Mn=null,An)):Mn=setTimeout(()=>kn.call(Ln,...arguments),An)}})(wn,(le=unref(Fe).timeout)!=null?le:60),xn=async(kn=100)=>{await nextTick();const Nn=Sn().tableHeaderRef.$el.style;Nn.position="sticky",Nn.top=0,Nn.zIndex=kn};onMounted(()=>{nextTick(()=>{var kn;if(unref(Ue)&&Sn().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",unref(Ue),"important"),unref(he)){if(wn(),window.addEventListener("resize",En),Reflect.has(unref(Fe),"fixHeader")&&!unref(Fe).fixHeader)return;xn((kn=unref(Fe).zIndex)!=null?kn:100)}})}),onBeforeUnmount(()=>{unref(he)&&window.removeEventListener("resize",En)}),ie({getTableRef:Cn,getTableDoms:Sn,setAdaptive:wn,setHeaderSticky:xn});let Pn=()=>{var kn,Nn;return createVNode(Fragment,null,[createVNode(ElTable,mergeProps(t,V,{ref:`TableRef${unref(ue)}`}),{default:()=>unref(de).map(bn),append:()=>r.append&&r.append(),empty:()=>r.empty&&r.empty()}),Lt?createVNode(ElPagination,mergeProps(V,{class:"pure-pagination",style:unref(vn)},unref(_e),{small:t!=null&&t.paginationSmall?t==null?void 0:t.paginationSmall:!!unref(_e).small&&unref(_e).small,layout:(kn=unref(_e).layout)!=null?kn:"total, sizes, prev, pager, next, jumper",pageSizes:(Nn=unref(_e).pageSizes)!=null?Nn:[5,10,15,20],onSizeChange:Dn=>(Mn=>{unref(_e).pageSize=Mn,oe("page-size-change",Mn)})(Dn),onCurrentChange:Dn=>(Mn=>{unref(_e).currentPage=Mn,oe("page-current-change",Mn)})(Dn)}),null):null])};return()=>withDirectives(createVNode("div",mergeProps({class:"pure-table",style:"width:100%"},unref(_n),unref(hn)),[Pn()]),[[resolveDirective("loading"),unref(pe)]])}}),Pe=Object.assign(D,{install:function(t){t.component(D.name,D)}}),L={data:{type:Array,default:[]},columns:{type:Array,default:[]},loading:{type:Object,default:()=>({load:!1,text:"Loading...",svg:"",spinner:"",svgViewBox:"",background:""})},align:{type:String,default:"left"},labelAlign:{type:String,default:""},...ElDescriptions.props},j=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:t=>()=>createVNode(Fragment,null,[t.render(t.params)])}),m=defineComponent({name:"PureDescriptions",props:L,setup(t,{slots:r,attrs:V}){const{data:oe,columns:ie,align:le,labelAlign:ue,loading:de}=toRefs(t),pe={title:()=>(r==null?void 0:r.title)&&r.title({props:t,attrs:V})},he={extra:()=>(r==null?void 0:r.extra)&&r.extra({props:t,attrs:V})},_e=r!=null&&r.title&&!(r!=null&&r.extra)?pe:r!=null&&r.extra&&!(r!=null&&r.title)?he:r!=null&&r.title&&(r!=null&&r.extra)?Object.assign(pe,he):null;return()=>{var $e;return withDirectives(createVNode(ElDescriptions,mergeProps(t,V,{"element-loading-text":($e=unref(de).text)!=null?$e:"Loading...","element-loading-svg":unref(de).svg,"element-loading-spinner":unref(de).spinner,"element-loading-svg-view-box":unref(de).svgViewBox,"element-loading-background":unref(de).background}),{default:()=>[unref(ie).map((Ie,Ve)=>{let Fe=unref(oe).map(Lt=>Lt[Ie==null?void 0:Ie.prop]);const Ue={default:()=>{var Lt;return Ie!=null&&Ie.cellRenderer?createVNode(j,{render:Ie.cellRenderer,params:{props:t,attrs:V,index:Ve,value:Fe[0]}},null):Ie!=null&&Ie.slot?(Lt=r==null?void 0:r[Ie.slot])==null?void 0:Lt.call(r,{props:t,attrs:V,index:Ve,value:Fe[0]}):createVNode(Fragment,null,Ie!=null&&Ie.value?[unref(Ie.value)]:[Fe])}},qe=Ie!=null&&Ie.labelRenderer?{label:()=>createVNode(j,{render:Ie.labelRenderer,params:{props:t,attrs:V,index:Ve,value:Fe[0]}},null),...Ue}:Ue;return Et=Ie==null?void 0:Ie.hide,typeof Et=="function"&&(Ie!=null&&Ie.hide(V))?Ie==null?void 0:Ie.hide(V):createVNode(ElDescriptionsItem,mergeProps(Ie,{key:Ve,align:Ie.align?Ie.align:unref(le),labelAlign:Ie.labelAlign?Ie.labelAlign:unref(ue)}),typeof(At=qe)=="function"||Object.prototype.toString.call(At)==="[object Object]"&&!isVNode$1(At)?qe:{default:()=>[qe]});var Et,At})],..._e}),[[resolveDirective("loading"),unref(de).load]])}}}),I=Object.assign(m,{install:function(t){t.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";window._iconfont_svg_string_2208059='',function(t){var V=(V=document.getElementsByTagName("script"))[V.length-1],r=V.getAttribute("data-injectcss"),V=V.getAttribute("data-disable-injectsvg");if(!V){var oe,ie,le,ue,de,pe=function($e,Ie){Ie.parentNode.insertBefore($e,Ie)};if(r&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch($e){console&&console.log($e)}}oe=function(){var $e,Ie=document.createElement("div");Ie.innerHTML=t._iconfont_svg_string_2208059,(Ie=Ie.getElementsByTagName("svg")[0])&&(Ie.setAttribute("aria-hidden","true"),Ie.style.position="absolute",Ie.style.width=0,Ie.style.height=0,Ie.style.overflow="hidden",Ie=Ie,($e=document.body).firstChild?pe(Ie,$e.firstChild):$e.appendChild(Ie))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(oe,0):(ie=function(){document.removeEventListener("DOMContentLoaded",ie,!1),oe()},document.addEventListener("DOMContentLoaded",ie,!1)):document.attachEvent&&(le=oe,ue=t.document,de=!1,_e(),ue.onreadystatechange=function(){ue.readyState=="complete"&&(ue.onreadystatechange=null,he())})}function he(){de||(de=!0,le())}function _e(){try{ue.documentElement.doScroll("left")}catch{return void setTimeout(_e,50)}he()}}(window);const iconfont="",auth$1={mounted(t,r){var oe;const{value:V}=r;if(V)!hasAuth(V)&&((oe=t.parentNode)==null||oe.removeChild(t));else throw new Error(`[Directive: auth]: need auths! Like v-auth="['btn.add','btn.edit']"`)}},message=(t,r)=>{if(r){const{icon:V,type:oe="info",dangerouslyUseHTMLString:ie=!1,customClass:le="antd",duration:ue=2e3,showClose:de=!1,center:pe=!1,offset:he=20,appendTo:_e=document.body,grouping:$e=!1,onClose:Ie}=r;return ElMessage({message:t,type:oe,icon:V,dangerouslyUseHTMLString:ie,duration:ue,showClose:de,center:pe,offset:he,appendTo:_e,grouping:$e,customClass:le==="antd"?"pure-message":"",onClose:()=>q$1(Ie)?Ie():null})}else return ElMessage({message:t,customClass:"pure-message"})},closeAllMessage=()=>ElMessage.closeAll(),copy={mounted(t,r){const{value:V}=r;if(V){t.copyValue=V;const oe=r.arg??"dblclick";useEventListener(t,oe,()=>{se(t.copyValue)?message("复制成功",{type:"success"}):message("复制失败",{type:"error"})})}else throw new Error('[Directive: copy]: need value! Like v-copy="modelValue"')},updated(t,r){t.copyValue=r.value}},longpress={mounted(t,r){var oe;const V=r.value;if(V&&q$1(V)){let ie=null,le=null,ue=500,de=null;const pe=((oe=r==null?void 0:r.arg)==null?void 0:oe.includes(":"))??!1;pe?(ue=Number(Vt(r.arg,":")),de=Number(Zt(r.arg,":"))):r.arg&&(ue=Number(r.arg));const he=()=>{ie&&(clearTimeout(ie),ie=null),le&&(clearInterval(le),le=null)},_e=Ie=>{Ie.preventDefault(),le===null&&(le=setInterval(()=>V(),de))};useEventListener(t,"pointerdown",Ie=>{he(),Ie.preventDefault(),ie===null&&(ie=setTimeout(pe?()=>{V(),_e(Ie)}:()=>V(),ue))}),useEventListener(t,"pointerup",he),useEventListener(t,"pointerleave",he)}else throw new Error('[Directive: longpress]: need callback and callback must be a function! Like v-longpress="callback"')}},optimize={mounted(t,r){const{value:V}=r,oe=r.arg??"debounce",ie=["debounce","throttle"].find(le=>le===oe);if(ie)if(V&&V.event&&q$1(V.fn)){let le=V==null?void 0:V.params;if(le)if($(le)||k(le))le=k(le)?Array.of(le):le;else throw new Error("[Directive: optimize]: `params` must be an array or object");useEventListener(t,V.event,ie==="debounce"?vt(le?()=>V.fn(...le):V.fn,(V==null?void 0:V.timeout)??200,(V==null?void 0:V.immediate)??!1):Rn(le?()=>V.fn(...le):V.fn,(V==null?void 0:V.timeout)??1e3))}else throw new Error("[Directive: optimize]: `event` and `fn` are required, and `fn` must be a function");else throw new Error("[Directive: optimize]: only `debounce` and `throttle` are supported")}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,copy,longpress,optimize},Symbol.toStringTag,{value:"Module"})),defaultIconDimensions$1=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations$1=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps$1=Object.freeze({...defaultIconDimensions$1,...defaultIconTransformations$1});Object.freeze({...defaultIconProps$1,body:"",hidden:!1});({...defaultIconDimensions$1});const defaultIconSizeCustomisations$1=Object.freeze({width:null,height:null}),defaultIconCustomisations$1=Object.freeze({...defaultIconSizeCustomisations$1,...defaultIconTransformations$1});function mergeCustomisations$1(t,r){const V={...t};for(const oe in r){const ie=r[oe],le=typeof ie;oe in defaultIconSizeCustomisations$1?(ie===null||ie&&(le==="string"||le==="number"))&&(V[oe]=ie):le===typeof V[oe]&&(V[oe]=oe==="rotate"?ie%4:ie)}return V}const separator$1=/[\s,]+/;function flipFromString$1(t,r){r.split(separator$1).forEach(V=>{switch(V.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function rotateFromString$1(t,r=0){const V=t.replace(/^-?[0-9.]*/,"");function oe(ie){for(;ie<0;)ie+=4;return ie%4}if(V===""){const ie=parseInt(t);return isNaN(ie)?0:oe(ie)}else if(V!==t){let ie=0;switch(V){case"%":ie=25;break;case"deg":ie=90}if(ie){let le=parseFloat(t.slice(0,t.length-V.length));return isNaN(le)?0:(le=le/ie,le%1===0?oe(le):0)}}return r}const unitsSplit$1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest$1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize$1(t,r,V){if(r===1)return t;if(V=V||100,typeof t=="number")return Math.ceil(t*r*V)/V;if(typeof t!="string")return t;const oe=t.split(unitsSplit$1);if(oe===null||!oe.length)return t;const ie=[];let le=oe.shift(),ue=unitsTest$1.test(le);for(;;){if(ue){const de=parseFloat(le);isNaN(de)?ie.push(le):ie.push(Math.ceil(de*r*V)/V)}else ie.push(le);if(le=oe.shift(),le===void 0)return ie.join("");ue=!ue}}const isUnsetKeyword$1=t=>t==="unset"||t==="undefined"||t==="none";function iconToSVG$1(t,r){const V={...defaultIconProps$1,...t},oe={...defaultIconCustomisations$1,...r},ie={left:V.left,top:V.top,width:V.width,height:V.height};let le=V.body;[V,oe].forEach(Fe=>{const Ue=[],qe=Fe.hFlip,Et=Fe.vFlip;let At=Fe.rotate;qe?Et?At+=2:(Ue.push("translate("+(ie.width+ie.left).toString()+" "+(0-ie.top).toString()+")"),Ue.push("scale(-1 1)"),ie.top=ie.left=0):Et&&(Ue.push("translate("+(0-ie.left).toString()+" "+(ie.height+ie.top).toString()+")"),Ue.push("scale(1 -1)"),ie.top=ie.left=0);let Lt;switch(At<0&&(At-=Math.floor(At/4)*4),At=At%4,At){case 1:Lt=ie.height/2+ie.top,Ue.unshift("rotate(90 "+Lt.toString()+" "+Lt.toString()+")");break;case 2:Ue.unshift("rotate(180 "+(ie.width/2+ie.left).toString()+" "+(ie.height/2+ie.top).toString()+")");break;case 3:Lt=ie.width/2+ie.left,Ue.unshift("rotate(-90 "+Lt.toString()+" "+Lt.toString()+")");break}At%2===1&&(ie.left!==ie.top&&(Lt=ie.left,ie.left=ie.top,ie.top=Lt),ie.width!==ie.height&&(Lt=ie.width,ie.width=ie.height,ie.height=Lt)),Ue.length&&(le=''+le+"")});const ue=oe.width,de=oe.height,pe=ie.width,he=ie.height;let _e,$e;ue===null?($e=de===null?"1em":de==="auto"?he:de,_e=calculateSize$1($e,pe/he)):(_e=ue==="auto"?pe:ue,$e=de===null?calculateSize$1(_e,he/pe):de==="auto"?he:de);const Ie={},Ve=(Fe,Ue)=>{isUnsetKeyword$1(Ue)||(Ie[Fe]=Ue.toString())};return Ve("width",_e),Ve("height",$e),Ie.viewBox=ie.left.toString()+" "+ie.top.toString()+" "+pe.toString()+" "+he.toString(),{attributes:Ie,body:le}}const regex$1=/\sid="(\S+)"/g,randomPrefix$1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter$1=0;function replaceIDs$1(t,r=randomPrefix$1){const V=[];let oe;for(;oe=regex$1.exec(t);)V.push(oe[1]);if(!V.length)return t;const ie="suffix"+(Math.random()*16777216|Date.now()).toString(16);return V.forEach(le=>{const ue=typeof r=="function"?r(le):r+(counter$1++).toString(),de=le.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+de+')([")]|\\.[a-z])',"g"),"$1"+ue+ie+"$3")}),t=t.replace(new RegExp(ie,"g"),""),t}function iconToHTML$1(t,r){let V=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const oe in r)V+=" "+oe+'="'+r[oe]+'"';return'"+t+""}function encodeSVGforURL$1(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData$1(t){return"data:image/svg+xml,"+encodeSVGforURL$1(t)}function svgToURL$1(t){return'url("'+svgToData$1(t)+'")'}const defaultExtendedIconCustomisations$1={...defaultIconCustomisations$1,inline:!1},svgDefaults$1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps$1={display:"inline-block"},monotoneProps$1={backgroundColor:"currentColor"},coloredProps$1={backgroundColor:"transparent"},propsToAdd$1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo$1={webkitMask:monotoneProps$1,mask:monotoneProps$1,background:coloredProps$1};for(const t in propsToAddTo$1){const r=propsToAddTo$1[t];for(const V in propsToAdd$1)r[t+V]=propsToAdd$1[V]}const customisationAliases$1={};["horizontal","vertical"].forEach(t=>{const r=t.slice(0,1)+"Flip";customisationAliases$1[t+"-flip"]=r,customisationAliases$1[t.slice(0,1)+"-flip"]=r,customisationAliases$1[t+"Flip"]=r});function fixSize$1(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const render$1=(t,r)=>{const V=mergeCustomisations$1(defaultExtendedIconCustomisations$1,r),oe={...svgDefaults$1},ie=r.mode||"svg",le={},ue=r.style,de=typeof ue=="object"&&!(ue instanceof Array)?ue:{};for(let Ue in r){const qe=r[Ue];if(qe!==void 0)switch(Ue){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":V[Ue]=qe===!0||qe==="true"||qe===1;break;case"flip":typeof qe=="string"&&flipFromString$1(V,qe);break;case"color":le.color=qe;break;case"rotate":typeof qe=="string"?V[Ue]=rotateFromString$1(qe):typeof qe=="number"&&(V[Ue]=qe);break;case"ariaHidden":case"aria-hidden":qe!==!0&&qe!=="true"&&delete oe["aria-hidden"];break;default:{const Et=customisationAliases$1[Ue];Et?(qe===!0||qe==="true"||qe===1)&&(V[Et]=!0):defaultExtendedIconCustomisations$1[Ue]===void 0&&(oe[Ue]=qe)}}}const pe=iconToSVG$1(t,V),he=pe.attributes;if(V.inline&&(le.verticalAlign="-0.125em"),ie==="svg"){oe.style={...le,...de},Object.assign(oe,he);let Ue=0,qe=r.id;return typeof qe=="string"&&(qe=qe.replace(/-/g,"_")),oe.innerHTML=replaceIDs$1(pe.body,qe?()=>qe+"ID"+Ue++:"iconifyVue"),h$2("svg",oe)}const{body:_e,width:$e,height:Ie}=t,Ve=ie==="mask"||(ie==="bg"?!1:_e.indexOf("currentColor")!==-1),Fe=iconToHTML$1(_e,{...he,width:$e+"",height:Ie+""});return oe.style={...le,"--svg":svgToURL$1(Fe),width:fixSize$1(he.width),height:fixSize$1(he.height),...commonProps$1,...Ve?monotoneProps$1:coloredProps$1,...de},h$2("span",oe)},storage$1=Object.create(null);function addIcon$1(t,r){storage$1[t]=r}const Icon$1=defineComponent({inheritAttrs:!1,render(){const t=this.$attrs,r=t.icon,V=typeof r=="string"?storage$1[r]:typeof r=="object"?r:null;return V===null||typeof V!="object"||typeof V.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...V},t)}}),iconifyIconOffline=defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:Icon$1},props:{icon:{default:null}},render(){typeof this.icon=="object"&&addIcon$1(this.icon,this.icon);const t=this.$attrs;return h$2(Icon$1,{icon:this.icon,style:t!=null&&t.style?Object.assign(t.style,{outline:"none"}):{outline:"none"},...t},{default:()=>[]})}}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(t,r,V,oe="")=>{const ie=t.split(":");if(t.slice(0,1)==="@"){if(ie.length<2||ie.length>3)return null;oe=ie.shift().slice(1)}if(ie.length>3||!ie.length)return null;if(ie.length>1){const de=ie.pop(),pe=ie.pop(),he={provider:ie.length>0?ie[0]:oe,prefix:pe,name:de};return r&&!validateIconName(he)?null:he}const le=ie[0],ue=le.split("-");if(ue.length>1){const de={provider:oe,prefix:ue.shift(),name:ue.join("-")};return r&&!validateIconName(de)?null:de}if(V&&oe===""){const de={provider:oe,prefix:"",name:le};return r&&!validateIconName(de,V)?null:de}return null},validateIconName=(t,r)=>t?!!((t.provider===""||t.provider.match(matchIconName))&&(r&&t.prefix===""||t.prefix.match(matchIconName))&&t.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(t,r){const V={};!t.hFlip!=!r.hFlip&&(V.hFlip=!0),!t.vFlip!=!r.vFlip&&(V.vFlip=!0);const oe=((t.rotate||0)+(r.rotate||0))%4;return oe&&(V.rotate=oe),V}function mergeIconData(t,r){const V=mergeIconTransformations(t,r);for(const oe in defaultExtendedIconProps)oe in defaultIconTransformations?oe in t&&!(oe in V)&&(V[oe]=defaultIconTransformations[oe]):oe in r?V[oe]=r[oe]:oe in t&&(V[oe]=t[oe]);return V}function getIconsTree(t,r){const V=t.icons,oe=t.aliases||Object.create(null),ie=Object.create(null);function le(ue){if(V[ue])return ie[ue]=[];if(!(ue in ie)){ie[ue]=null;const de=oe[ue]&&oe[ue].parent,pe=de&&le(de);pe&&(ie[ue]=[de].concat(pe))}return ie[ue]}return(r||Object.keys(V).concat(Object.keys(oe))).forEach(le),ie}function internalGetIconData(t,r,V){const oe=t.icons,ie=t.aliases||Object.create(null);let le={};function ue(de){le=mergeIconData(oe[de]||ie[de],le)}return ue(r),V.forEach(ue),mergeIconData(t,le)}function parseIconSet(t,r){const V=[];if(typeof t!="object"||typeof t.icons!="object")return V;t.not_found instanceof Array&&t.not_found.forEach(ie=>{r(ie,null),V.push(ie)});const oe=getIconsTree(t);for(const ie in oe){const le=oe[ie];le&&(r(ie,internalGetIconData(t,ie,le)),V.push(ie))}return V}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(t,r){for(const V in r)if(V in t&&typeof t[V]!=typeof r[V])return!1;return!0}function quicklyValidateIconSet(t){if(typeof t!="object"||t===null)return null;const r=t;if(typeof r.prefix!="string"||!t.icons||typeof t.icons!="object"||!checkOptionalProps(t,optionalPropertyDefaults))return null;const V=r.icons;for(const ie in V){const le=V[ie];if(!ie.match(matchIconName)||typeof le.body!="string"||!checkOptionalProps(le,defaultExtendedIconProps))return null}const oe=r.aliases||Object.create(null);for(const ie in oe){const le=oe[ie],ue=le.parent;if(!ie.match(matchIconName)||typeof ue!="string"||!V[ue]&&!oe[ue]||!checkOptionalProps(le,defaultExtendedIconProps))return null}return r}const dataStorage=Object.create(null);function newStorage(t,r){return{provider:t,prefix:r,icons:Object.create(null),missing:new Set}}function getStorage(t,r){const V=dataStorage[t]||(dataStorage[t]=Object.create(null));return V[r]||(V[r]=newStorage(t,r))}function addIconSet(t,r){return quicklyValidateIconSet(r)?parseIconSet(r,(V,oe)=>{oe?t.icons[V]=oe:t.missing.add(V)}):[]}function addIconToStorage(t,r,V){try{if(typeof V.body=="string")return t.icons[r]={...V},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(t){return typeof t=="boolean"&&(simpleNames=t),simpleNames}function getIconData(t){const r=typeof t=="string"?stringToIcon(t,!0,simpleNames):t;if(r){const V=getStorage(r.provider,r.prefix),oe=r.name;return V.icons[oe]||(V.missing.has(oe)?null:void 0)}}function addIcon(t,r){const V=stringToIcon(t,!0,simpleNames);if(!V)return!1;const oe=getStorage(V.provider,V.prefix);return addIconToStorage(oe,V.name,r)}function addCollection(t,r){if(typeof t!="object")return!1;if(typeof r!="string"&&(r=t.provider||""),simpleNames&&!r&&!t.prefix){let ie=!1;return quicklyValidateIconSet(t)&&(t.prefix="",parseIconSet(t,(le,ue)=>{ue&&addIcon(le,ue)&&(ie=!0)})),ie}const V=t.prefix;if(!validateIconName({provider:r,prefix:V,name:"a"}))return!1;const oe=getStorage(r,V);return!!addIconSet(oe,t)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(t,r,V){if(r===1)return t;if(V=V||100,typeof t=="number")return Math.ceil(t*r*V)/V;if(typeof t!="string")return t;const oe=t.split(unitsSplit);if(oe===null||!oe.length)return t;const ie=[];let le=oe.shift(),ue=unitsTest.test(le);for(;;){if(ue){const de=parseFloat(le);isNaN(de)?ie.push(le):ie.push(Math.ceil(de*r*V)/V)}else ie.push(le);if(le=oe.shift(),le===void 0)return ie.join("");ue=!ue}}const isUnsetKeyword=t=>t==="unset"||t==="undefined"||t==="none";function iconToSVG(t,r){const V={...defaultIconProps,...t},oe={...defaultIconCustomisations,...r},ie={left:V.left,top:V.top,width:V.width,height:V.height};let le=V.body;[V,oe].forEach(Fe=>{const Ue=[],qe=Fe.hFlip,Et=Fe.vFlip;let At=Fe.rotate;qe?Et?At+=2:(Ue.push("translate("+(ie.width+ie.left).toString()+" "+(0-ie.top).toString()+")"),Ue.push("scale(-1 1)"),ie.top=ie.left=0):Et&&(Ue.push("translate("+(0-ie.left).toString()+" "+(ie.height+ie.top).toString()+")"),Ue.push("scale(1 -1)"),ie.top=ie.left=0);let Lt;switch(At<0&&(At-=Math.floor(At/4)*4),At=At%4,At){case 1:Lt=ie.height/2+ie.top,Ue.unshift("rotate(90 "+Lt.toString()+" "+Lt.toString()+")");break;case 2:Ue.unshift("rotate(180 "+(ie.width/2+ie.left).toString()+" "+(ie.height/2+ie.top).toString()+")");break;case 3:Lt=ie.width/2+ie.left,Ue.unshift("rotate(-90 "+Lt.toString()+" "+Lt.toString()+")");break}At%2===1&&(ie.left!==ie.top&&(Lt=ie.left,ie.left=ie.top,ie.top=Lt),ie.width!==ie.height&&(Lt=ie.width,ie.width=ie.height,ie.height=Lt)),Ue.length&&(le=''+le+"")});const ue=oe.width,de=oe.height,pe=ie.width,he=ie.height;let _e,$e;ue===null?($e=de===null?"1em":de==="auto"?he:de,_e=calculateSize($e,pe/he)):(_e=ue==="auto"?pe:ue,$e=de===null?calculateSize(_e,he/pe):de==="auto"?he:de);const Ie={},Ve=(Fe,Ue)=>{isUnsetKeyword(Ue)||(Ie[Fe]=Ue.toString())};return Ve("width",_e),Ve("height",$e),Ie.viewBox=ie.left.toString()+" "+ie.top.toString()+" "+pe.toString()+" "+he.toString(),{attributes:Ie,body:le}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(t,r=randomPrefix){const V=[];let oe;for(;oe=regex.exec(t);)V.push(oe[1]);if(!V.length)return t;const ie="suffix"+(Math.random()*16777216|Date.now()).toString(16);return V.forEach(le=>{const ue=typeof r=="function"?r(le):r+(counter++).toString(),de=le.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+de+')([")]|\\.[a-z])',"g"),"$1"+ue+ie+"$3")}),t=t.replace(new RegExp(ie,"g"),""),t}const storage=Object.create(null);function setAPIModule(t,r){storage[t]=r}function getAPIModule(t){return storage[t]||storage[""]}function createAPIConfig(t){let r;if(typeof t.resources=="string")r=[t.resources];else if(r=t.resources,!(r instanceof Array)||!r.length)return null;return{resources:r,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(t,r){const V=createAPIConfig(r);return V===null?!1:(configStorage[t]=V,!0)}function getAPIConfig(t){return configStorage[t]}const detectFetch=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let fetchModule=detectFetch();function calculateMaxLength(t,r){const V=getAPIConfig(t);if(!V)return 0;let oe;if(!V.maxURL)oe=0;else{let ie=0;V.resources.forEach(ue=>{ie=Math.max(ie,ue.length)});const le=r+".json?icons=";oe=V.maxURL-ie-V.path.length-le.length}return oe}function shouldAbort(t){return t===404}const prepare=(t,r,V)=>{const oe=[],ie=calculateMaxLength(t,r),le="icons";let ue={type:le,provider:t,prefix:r,icons:[]},de=0;return V.forEach((pe,he)=>{de+=pe.length+1,de>=ie&&he>0&&(oe.push(ue),ue={type:le,provider:t,prefix:r,icons:[]},de=pe.length),ue.icons.push(pe)}),oe.push(ue),oe};function getPath(t){if(typeof t=="string"){const r=getAPIConfig(t);if(r)return r.path}return"/"}const send=(t,r,V)=>{if(!fetchModule){V("abort",424);return}let oe=getPath(r.provider);switch(r.type){case"icons":{const le=r.prefix,de=r.icons.join(","),pe=new URLSearchParams({icons:de});oe+=le+".json?"+pe.toString();break}case"custom":{const le=r.uri;oe+=le.slice(0,1)==="/"?le.slice(1):le;break}default:V("abort",400);return}let ie=503;fetchModule(t+oe).then(le=>{const ue=le.status;if(ue!==200){setTimeout(()=>{V(shouldAbort(ue)?"abort":"next",ue)});return}return ie=501,le.json()}).then(le=>{if(typeof le!="object"||le===null){setTimeout(()=>{le===404?V("abort",le):V("next",ie)});return}setTimeout(()=>{V("success",le)})}).catch(()=>{V("next",ie)})},fetchAPIModule={prepare,send};function sortIcons(t){const r={loaded:[],missing:[],pending:[]},V=Object.create(null);t.sort((ie,le)=>ie.provider!==le.provider?ie.provider.localeCompare(le.provider):ie.prefix!==le.prefix?ie.prefix.localeCompare(le.prefix):ie.name.localeCompare(le.name));let oe={provider:"",prefix:"",name:""};return t.forEach(ie=>{if(oe.name===ie.name&&oe.prefix===ie.prefix&&oe.provider===ie.provider)return;oe=ie;const le=ie.provider,ue=ie.prefix,de=ie.name,pe=V[le]||(V[le]=Object.create(null)),he=pe[ue]||(pe[ue]=getStorage(le,ue));let _e;de in he.icons?_e=r.loaded:ue===""||he.missing.has(de)?_e=r.missing:_e=r.pending;const $e={provider:le,prefix:ue,name:de};_e.push($e)}),r}function removeCallback(t,r){t.forEach(V=>{const oe=V.loaderCallbacks;oe&&(V.loaderCallbacks=oe.filter(ie=>ie.id!==r))})}function updateCallbacks(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const r=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!r.length)return;let V=!1;const oe=t.provider,ie=t.prefix;r.forEach(le=>{const ue=le.icons,de=ue.pending.length;ue.pending=ue.pending.filter(pe=>{if(pe.prefix!==ie)return!0;const he=pe.name;if(t.icons[he])ue.loaded.push({provider:oe,prefix:ie,name:he});else if(t.missing.has(he))ue.missing.push({provider:oe,prefix:ie,name:he});else return V=!0,!0;return!1}),ue.pending.length!==de&&(V||removeCallback([t],le.id),le.callback(ue.loaded.slice(0),ue.missing.slice(0),ue.pending.slice(0),le.abort))})}))}let idCounter=0;function storeCallback(t,r,V){const oe=idCounter++,ie=removeCallback.bind(null,V,oe);if(!r.pending.length)return ie;const le={id:oe,icons:r,callback:t,abort:ie};return V.forEach(ue=>{(ue.loaderCallbacks||(ue.loaderCallbacks=[])).push(le)}),ie}function listToIcons(t,r=!0,V=!1){const oe=[];return t.forEach(ie=>{const le=typeof ie=="string"?stringToIcon(ie,r,V):ie;le&&oe.push(le)}),oe}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(t,r,V,oe){const ie=t.resources.length,le=t.random?Math.floor(Math.random()*ie):t.index;let ue;if(t.random){let vn=t.resources.slice(0);for(ue=[];vn.length>1;){const bn=Math.floor(Math.random()*vn.length);ue.push(vn[bn]),vn=vn.slice(0,bn).concat(vn.slice(bn+1))}ue=ue.concat(vn)}else ue=t.resources.slice(le).concat(t.resources.slice(0,le));const de=Date.now();let pe="pending",he=0,_e,$e=null,Ie=[],Ve=[];typeof oe=="function"&&Ve.push(oe);function Fe(){$e&&(clearTimeout($e),$e=null)}function Ue(){pe==="pending"&&(pe="aborted"),Fe(),Ie.forEach(vn=>{vn.status==="pending"&&(vn.status="aborted")}),Ie=[]}function qe(vn,bn){bn&&(Ve=[]),typeof vn=="function"&&Ve.push(vn)}function Et(){return{startTime:de,payload:r,status:pe,queriesSent:he,queriesPending:Ie.length,subscribe:qe,abort:Ue}}function At(){pe="failed",Ve.forEach(vn=>{vn(void 0,_e)})}function Lt(){Ie.forEach(vn=>{vn.status==="pending"&&(vn.status="aborted")}),Ie=[]}function hn(vn,bn,Cn){const Sn=bn!=="success";switch(Ie=Ie.filter(wn=>wn!==vn),pe){case"pending":break;case"failed":if(Sn||!t.dataAfterTimeout)return;break;default:return}if(bn==="abort"){_e=Cn,At();return}if(Sn){_e=Cn,Ie.length||(ue.length?_n():At());return}if(Fe(),Lt(),!t.random){const wn=t.resources.indexOf(vn.resource);wn!==-1&&wn!==t.index&&(t.index=wn)}pe="completed",Ve.forEach(wn=>{wn(Cn)})}function _n(){if(pe!=="pending")return;Fe();const vn=ue.shift();if(vn===void 0){if(Ie.length){$e=setTimeout(()=>{Fe(),pe==="pending"&&(Lt(),At())},t.timeout);return}At();return}const bn={status:"pending",resource:vn,callback:(Cn,Sn)=>{hn(bn,Cn,Sn)}};Ie.push(bn),he++,$e=setTimeout(_n,t.rotate),V(vn,r,bn.callback)}return setTimeout(_n),Et}function initRedundancy(t){const r={...defaultConfig,...t};let V=[];function oe(){V=V.filter(de=>de().status==="pending")}function ie(de,pe,he){const _e=sendQuery(r,de,pe,($e,Ie)=>{oe(),he&&he($e,Ie)});return V.push(_e),_e}function le(de){return V.find(pe=>de(pe))||null}return{query:ie,find:le,setIndex:de=>{r.index=de},getIndex:()=>r.index,cleanup:oe}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(t){if(!redundancyCache[t]){const r=getAPIConfig(t);if(!r)return;const V=initRedundancy(r),oe={config:r,redundancy:V};redundancyCache[t]=oe}return redundancyCache[t]}function sendAPIQuery(t,r,V){let oe,ie;if(typeof t=="string"){const le=getAPIModule(t);if(!le)return V(void 0,424),emptyCallback$1;ie=le.send;const ue=getRedundancyCache(t);ue&&(oe=ue.redundancy)}else{const le=createAPIConfig(t);if(le){oe=initRedundancy(le);const ue=t.resources?t.resources[0]:"",de=getAPIModule(ue);de&&(ie=de.send)}}return!oe||!ie?(V(void 0,424),emptyCallback$1):oe.query(r,ie,V)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(t,r){try{return t.getItem(r)}catch{}}function setStoredItem(t,r,V){try{return t.setItem(r,V),!0}catch{}}function removeStoredItem(t,r){try{t.removeItem(r)}catch{}}function setBrowserStorageItemsCount(t,r){return setStoredItem(t,browserCacheCountKey,r.toString())}function getBrowserStorageItemsCount(t){return parseInt(getStoredItem(t,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(t){browserStorageStatus=t}let _window=typeof window>"u"?{}:window;function getBrowserStorage(t){const r=t+"Storage";try{if(_window&&_window[r]&&typeof _window[r].length=="number")return _window[r]}catch{}browserStorageConfig[t]=!1}function iterateBrowserStorage(t,r){const V=getBrowserStorage(t);if(!V)return;const oe=getStoredItem(V,browserCacheVersionKey);if(oe!==browserCacheVersion){if(oe){const de=getBrowserStorageItemsCount(V);for(let pe=0;pe{const pe=browserCachePrefix+de.toString(),he=getStoredItem(V,pe);if(typeof he=="string"){try{const _e=JSON.parse(he);if(typeof _e=="object"&&typeof _e.cached=="number"&&_e.cached>ie&&typeof _e.provider=="string"&&typeof _e.data=="object"&&typeof _e.data.prefix=="string"&&r(_e,de))return!0}catch{}removeStoredItem(V,pe)}};let ue=getBrowserStorageItemsCount(V);for(let de=ue-1;de>=0;de--)le(de)||(de===ue-1?(ue--,setBrowserStorageItemsCount(V,ue)):browserStorageEmptyItems[t].add(de))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const t in browserStorageConfig)iterateBrowserStorage(t,r=>{const V=r.data,oe=r.provider,ie=V.prefix,le=getStorage(oe,ie);if(!addIconSet(le,V).length)return!1;const ue=V.lastModified||-1;return le.lastModifiedCached=le.lastModifiedCached?Math.min(le.lastModifiedCached,ue):ue,!0})}}function updateLastModified(t,r){const V=t.lastModifiedCached;if(V&&V>=r)return V===r;if(t.lastModifiedCached=r,V)for(const oe in browserStorageConfig)iterateBrowserStorage(oe,ie=>{const le=ie.data;return ie.provider!==t.provider||le.prefix!==t.prefix||le.lastModified===r});return!0}function storeInBrowserStorage(t,r){browserStorageStatus||initBrowserStorage();function V(oe){let ie;if(!browserStorageConfig[oe]||!(ie=getBrowserStorage(oe)))return;const le=browserStorageEmptyItems[oe];let ue;if(le.size)le.delete(ue=Array.from(le).shift());else if(ue=getBrowserStorageItemsCount(ie),!setBrowserStorageItemsCount(ie,ue+1))return;const de={cached:Math.floor(Date.now()/browserStorageHour),provider:t.provider,data:r};return setStoredItem(ie,browserCachePrefix+ue.toString(),JSON.stringify(de))}r.lastModified&&!updateLastModified(t,r.lastModified)||Object.keys(r.icons).length&&(r.not_found&&(r=Object.assign({},r),delete r.not_found),V("local")||V("session"))}function emptyCallback(){}function loadedNewIcons(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,updateCallbacks(t)}))}function loadNewIcons(t,r){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(r).sort():t.iconsToLoad=r,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:V,prefix:oe}=t,ie=t.iconsToLoad;delete t.iconsToLoad;let le;if(!ie||!(le=getAPIModule(V)))return;le.prepare(V,oe,ie).forEach(de=>{sendAPIQuery(V,de,pe=>{if(typeof pe!="object")de.icons.forEach(he=>{t.missing.add(he)});else try{const he=addIconSet(t,pe);if(!he.length)return;const _e=t.pendingIcons;_e&&he.forEach($e=>{_e.delete($e)}),storeInBrowserStorage(t,pe)}catch(he){console.error(he)}loadedNewIcons(t)})})}))}const loadIcons=(t,r)=>{const V=listToIcons(t,!0,allowSimpleNames()),oe=sortIcons(V);if(!oe.pending.length){let pe=!0;return r&&setTimeout(()=>{pe&&r(oe.loaded,oe.missing,oe.pending,emptyCallback)}),()=>{pe=!1}}const ie=Object.create(null),le=[];let ue,de;return oe.pending.forEach(pe=>{const{provider:he,prefix:_e}=pe;if(_e===de&&he===ue)return;ue=he,de=_e,le.push(getStorage(he,_e));const $e=ie[he]||(ie[he]=Object.create(null));$e[_e]||($e[_e]=[])}),oe.pending.forEach(pe=>{const{provider:he,prefix:_e,name:$e}=pe,Ie=getStorage(he,_e),Ve=Ie.pendingIcons||(Ie.pendingIcons=new Set);Ve.has($e)||(Ve.add($e),ie[he][_e].push($e))}),le.forEach(pe=>{const{provider:he,prefix:_e}=pe;ie[he][_e].length&&loadNewIcons(pe,ie[he][_e])}),r?storeCallback(r,oe,le):emptyCallback};function mergeCustomisations(t,r){const V={...t};for(const oe in r){const ie=r[oe],le=typeof ie;oe in defaultIconSizeCustomisations?(ie===null||ie&&(le==="string"||le==="number"))&&(V[oe]=ie):le===typeof V[oe]&&(V[oe]=oe==="rotate"?ie%4:ie)}return V}const separator=/[\s,]+/;function flipFromString(t,r){r.split(separator).forEach(V=>{switch(V.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function rotateFromString(t,r=0){const V=t.replace(/^-?[0-9.]*/,"");function oe(ie){for(;ie<0;)ie+=4;return ie%4}if(V===""){const ie=parseInt(t);return isNaN(ie)?0:oe(ie)}else if(V!==t){let ie=0;switch(V){case"%":ie=25;break;case"deg":ie=90}if(ie){let le=parseFloat(t.slice(0,t.length-V.length));return isNaN(le)?0:(le=le/ie,le%1===0?oe(le):0)}}return r}function iconToHTML(t,r){let V=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const oe in r)V+=" "+oe+'="'+r[oe]+'"';return'"+t+""}function encodeSVGforURL(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(t){return"data:image/svg+xml,"+encodeSVGforURL(t)}function svgToURL(t){return'url("'+svgToData(t)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const t in propsToAddTo){const r=propsToAddTo[t];for(const V in propsToAdd)r[t+V]=propsToAdd[V]}const customisationAliases={};["horizontal","vertical"].forEach(t=>{const r=t.slice(0,1)+"Flip";customisationAliases[t+"-flip"]=r,customisationAliases[t.slice(0,1)+"-flip"]=r,customisationAliases[t+"Flip"]=r});function fixSize(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const render=(t,r)=>{const V=mergeCustomisations(defaultExtendedIconCustomisations,r),oe={...svgDefaults},ie=r.mode||"svg",le={},ue=r.style,de=typeof ue=="object"&&!(ue instanceof Array)?ue:{};for(let Ue in r){const qe=r[Ue];if(qe!==void 0)switch(Ue){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":V[Ue]=qe===!0||qe==="true"||qe===1;break;case"flip":typeof qe=="string"&&flipFromString(V,qe);break;case"color":le.color=qe;break;case"rotate":typeof qe=="string"?V[Ue]=rotateFromString(qe):typeof qe=="number"&&(V[Ue]=qe);break;case"ariaHidden":case"aria-hidden":qe!==!0&&qe!=="true"&&delete oe["aria-hidden"];break;default:{const Et=customisationAliases[Ue];Et?(qe===!0||qe==="true"||qe===1)&&(V[Et]=!0):defaultExtendedIconCustomisations[Ue]===void 0&&(oe[Ue]=qe)}}}const pe=iconToSVG(t,V),he=pe.attributes;if(V.inline&&(le.verticalAlign="-0.125em"),ie==="svg"){oe.style={...le,...de},Object.assign(oe,he);let Ue=0,qe=r.id;return typeof qe=="string"&&(qe=qe.replace(/-/g,"_")),oe.innerHTML=replaceIDs(pe.body,qe?()=>qe+"ID"+Ue++:"iconifyVue"),h$2("svg",oe)}const{body:_e,width:$e,height:Ie}=t,Ve=ie==="mask"||(ie==="bg"?!1:_e.indexOf("currentColor")!==-1),Fe=iconToHTML(_e,{...he,width:$e+"",height:Ie+""});return oe.style={...le,"--svg":svgToURL(Fe),width:fixSize(he.width),height:fixSize(he.height),...commonProps,...Ve?monotoneProps:coloredProps,...de},h$2("span",oe)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const t=window;if(t.IconifyPreload!==void 0){const r=t.IconifyPreload,V="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(oe=>{try{(typeof oe!="object"||oe===null||oe instanceof Array||typeof oe.icons!="object"||typeof oe.prefix!="string"||!addCollection(oe))&&console.error(V)}catch{console.error(V)}})}if(t.IconifyProviders!==void 0){const r=t.IconifyProviders;if(typeof r=="object"&&r!==null)for(let V in r){const oe="IconifyProviders["+V+"] is invalid.";try{const ie=r[V];if(typeof ie!="object"||!ie||ie.resources===void 0)continue;addAPIProvider(V,ie)||console.error(oe)}catch{console.error(oe)}}}}const emptyIcon={...defaultIconProps,body:""},Icon=defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,r){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let V;if(typeof t!="string"||(V=stringToIcon(t,!1,!0))===null)return this.abortLoading(),null;const oe=getIconData(V);if(!oe)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",oe!==null&&(this._loadingIcon={name:t,abort:loadIcons([V],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,r&&r(t));const ie=["iconify"];return V.prefix!==""&&ie.push("iconify--"+V.prefix),V.provider!==""&&ie.push("iconify--"+V.provider),{data:oe,classes:ie}}},render(){this.counter;const t=this.$attrs,r=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!r)return render(emptyIcon,t);let V=t;return r.classes&&(V={...t,class:(typeof t.class=="string"?t.class+" ":"")+r.classes.join(" ")}),render({...defaultIconProps,...r.data},V)}}),iconifyIconOnline=defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:Icon},props:{icon:{type:String,default:""}},render(){const t=this.$attrs;return h$2(Icon,{icon:`${this.icon}`,style:t!=null&&t.style?Object.assign(t.style,{outline:"none"}):{outline:"none"},...t},{default:()=>[]})}}),fontIcon=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const t=this.$attrs;return Object.keys(t).includes("uni")||(t==null?void 0:t.iconType)==="uni"?h$2("i",{class:"iconfont",...t},this.icon):Object.keys(t).includes("svg")||(t==null?void 0:t.iconType)==="svg"?h$2("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[h$2("use",{"xlink:href":`#${this.icon}`})]}):h$2("i",{class:`iconfont ${this.icon}`,...t})}}),IconifyIconOffline=iconifyIconOffline,IconifyIconOnline=iconifyIconOnline,FontIcon=fontIcon,auth=defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup(t,{slots:r}){return()=>{var V;return r&&hasAuth(t.value)?createVNode(Fragment,null,[(V=r.default)==null?void 0:V.call(r)]):null}}}),Auth=auth,systemRouter={path:"/system",meta:{icon:"setting",title:"menus.hssysManagement",rank:system$1},children:[{path:"/system/user/index",name:"User",meta:{icon:"flUser",title:"menus.hsUser",roles:["admin"]}},{path:"/system/role/index",name:"Role",meta:{icon:"role",title:"menus.hsRole",roles:["admin"]}},{path:"/system/dept/index",name:"Dept",meta:{icon:"dept",title:"menus.hsDept",roles:["admin"]}}]},permissionRouter={path:"/permission",meta:{title:"menus.permission",icon:"lollipop",rank:permission},children:[{path:"/permission/page/index",name:"PermissionPage",meta:{title:"menus.permissionPage",roles:["admin","common"]}},{path:"/permission/button/index",name:"PermissionButton",meta:{title:"menus.permissionButton",roles:["admin","common"],auths:["btn_add","btn_edit","btn_delete"]}}]},frameRouter={path:"/iframe",meta:{icon:"monitor",title:"menus.hsExternalPage",rank:frame$1},children:[{path:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",roles:["admin","common"]}},{path:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",roles:["admin","common"]}},{path:"/iframe/ep",name:"FrameEp",meta:{title:"menus.hsEpDocument",frameSrc:"https://element-plus.org/zh-CN/",roles:["admin","common"]}},{path:"/iframe/vue3",name:"FrameVue",meta:{title:"menus.hsVueDocument",frameSrc:"https://cn.vuejs.org/",roles:["admin","common"]}},{path:"/iframe/vite",name:"FrameVite",meta:{title:"menus.hsViteDocument",frameSrc:"https://cn.vitejs.dev/",roles:["admin","common"]}},{path:"/iframe/pinia",name:"FramePinia",meta:{title:"menus.hsPiniaDocument",frameSrc:"https://pinia.vuejs.org/zh/index.html",roles:["admin","common"]}},{path:"/iframe/vue-router",name:"FrameRouter",meta:{title:"menus.hsRouterDocument",frameSrc:"https://router.vuejs.org/zh/",roles:["admin","common"]}},{path:"/iframe/tailwindcss",name:"FrameTailwindcss",meta:{title:"menus.hsTailwindcssDocument",frameSrc:"https://tailwindcss.com/docs/installation",roles:["admin","common"]}}]},tabsRouter={path:"/tabs",meta:{icon:"IF-pure-iconfont-tabs",title:"menus.hstabs",rank:tabs},children:[{path:"/tabs/index",name:"Tabs",meta:{title:"menus.hstabs",roles:["admin","common"]}},{path:"/tabs/query-detail",name:"TabQueryDetail",meta:{showLink:!1,activePath:"/tabs/index",roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,activePath:"/tabs/index",roles:["admin","common"]}}]},asyncRoutes=[{url:"/getAsyncRoutes",method:"get",response:()=>({success:!0,data:[systemRouter,permissionRouter,frameRouter,tabsRouter]})}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:asyncRoutes},Symbol.toStringTag,{value:"Module"})),list=[{url:"/getCardList",method:"post",response:()=>({success:!0,data:{list:[{index:1,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:2,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:3,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:4,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:5,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:6,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:7,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:8,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:9,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:10,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:11,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:12,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:13,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:14,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:15,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:16,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:17,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:18,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:19,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:20,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:21,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:22,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:23,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:24,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:25,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:26,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:27,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:28,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:29,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:30,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:31,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:32,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:33,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:34,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:35,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:36,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:37,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠,性能卓越、易于维护的企业级云数据库服务。"},{index:38,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:39,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:40,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:41,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:42,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:43,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:44,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:45,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:46,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"},{index:47,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品,是腾讯云安全团队结合云原生的优势,自主研发的SaaS化防火墙产品,无需客无需客无需客无需客无需客无需客无需客"},{index:48,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"}]}})},{url:"/releases",method:"get",response:()=>({success:!0,data:{list:[{created_at:"2023-06-26T03:14:25Z",published_at:"2023-06-26T03:17:23Z",body:"# 4.5.0 (2023-06-26)\r\n\r\n### ✔️ refactor\r\n\r\n- 重构图片裁剪 `ReCropper` 组件,添加更多实用功能\r\n\r\n### 🎫 Feat\r\n\r\n- 菜单搜索功能支持拼音搜索,比如搜图片裁剪,输入 `tp` 或 `tupian` 等对应拼音即可\r\n- 添加长按指令及使用示例,该长按指令支持自定义时长的持续回调\r\n- 添加敏感词过滤功能示例\r\n- 添加汉语拼音功能示例\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复 `V4.4.0` 版本,页面开启 `keepAlive` 缓存后第一次加载并未缓存页面的问题\r\n- 修复 `RePureTableBar` 组件初始化时列设置勾选项未根据 `hide` 属性正确初始化\r\n\r\n### 🍏 Perf\r\n\r\n- 将 `VITE_PUBLIC_PATH` 默认改为 `./` 兼容更多路径场景,\r\n- 兼容 `VITE_PUBLIC_PATH` 为 `url` 的 `OSS` 场景,需将 `@pureadmin/theme` 升级至最新版"},{created_at:"2023-06-14T02:52:19Z",published_at:"2023-06-14T02:54:41Z",body:"# 4.4.0 (2023-06-14)\r\n\r\n### 🎫 Feat\r\n\r\n- 路由 `meta` 添加 `activePath` 属性,可将某个菜单激活(主要用于通过 `query` 或 `params` 传参的路由,当它们通过配置 `showLink: false` 后不在菜单中显示,就不会有任何菜单高亮,而通过设置 `activePath` 指定激活菜单即可获得高亮,`activePath` 为指定激活菜单的 `path` [查看详情](https://github.com/pure-admin/vue-pure-admin/commit/58cafbc73ffa27253446ee93077e1e382519ce8a#commitcomment-117834411))\r\n- `pure-admin-table` 高级用法添加自适应内容区高度示例\r\n- 添加防抖、节流和文本复制指令并规范自定义指令用法错误时的提示以及添加使用示例\r\n- `notice` 消息提示组件空数据时添加 `el-empty` 组件\r\n- 函数式弹窗示例代码添加子组件 `prop` 为 `primitive` 类型的示例\r\n- 添加 `vscode-docker` 插件\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复国际化切换到英文模式刷新会回到中文模式\r\n- 修复搜索菜单功能的弹框遮罩未覆盖左侧菜单的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 页面切换性能优化,不考虑网络的情况下,页面切换逻辑的速度差不多比之前快 `3-4` 倍 [查看优化详情](https://github.com/pure-admin/vue-pure-admin/pull/600#issuecomment-1586094078)\r\n- 优化标签页操作-路由传参模式用法\r\n- 系统管理中表格均改为自适应内容区高度,需将 `@pureadmin/table` 升级到最新版\r\n- 使用 `vueuse` 的 `useResizeObserver` 函数替换 `v-resize` 自定义指令,从测试后的表现来看性能会更好\r\n- 对未解绑的公共事件,在页面销毁时解绑"},{created_at:"2023-06-04T04:11:51Z",published_at:"2023-06-04T04:13:24Z",body:"# 4.3.0 (2023-06-04)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `docker` 支持\r\n- 添加项目版本实时更新检测功能\r\n- 完善系统管理-角色管理页面\r\n- 瀑布流组件添加无限滚动\r\n- 函数式弹框添加 `updateDialog` 更改弹框自身属性值方法\r\n- `wangeditor` 富文本添加多个富文本和自定义图片上传示例\r\n- `pure-table` 表格高级用法添加保留已选中的 `CheckBox` 选项示例\r\n- `RePureTableBar` 组件添加 `title` 插槽\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复获取验证码倒计时会有 `1s` 延时禁用的问题\r\n- 修复图标选择器未正确初始化预览问题\r\n- 修复动态路由重定向造成标签页出现重复内容\r\n- 修复强制刷新页面 `getTopMenu()` 函数获取不到 `path` 报错的问题\r\n- 修复左侧菜单折叠后突然拉升造成左侧菜单整体不显示的问题\r\n- 修复 `RePureTableBar` 关闭列设置后在 `windows` 出现滚动条的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化标签页操作-路由传参模式用法\r\n- 优化菜单搜索功能和样式\r\n- 更新 `vscode` 代码片段\r\n- 优化 `dataThemeChange` 主题设置的初始化调用时机"},{created_at:"2023-05-15T07:03:57Z",published_at:"2023-05-15T07:04:54Z",body:"# 4.2.0 (2023-05-15)\r\n\r\n### 🎫 Feat\r\n\r\n- 新增分段控制器组件并适配暗黑模式\r\n- 静态路由支持配置数组格式\r\n- 函数式弹框组件添加全屏、退出全屏操作按钮\r\n- 新增组件-瀑布流 `demo`\r\n- 添加 `Exclusive` 类型互斥语法糖\r\n\r\n### 🍏 Perf\r\n\r\n- 规范 `template` 模版中路由写法,不再使用 `$route` 和 `$router`,此写法 `vue-tsc` 编译不通过"},{created_at:"2023-05-11T17:45:43Z",published_at:"2023-05-11T17:47:10Z",body:"# 4.1.0 (2023-05-12)\r\n\r\n### 🎫 Feat\r\n\r\n- 函数式弹框组件添加结合 `Form` 的 `demo` 示例\r\n- 封装 `element-plus` 的 `el-col` 组件\r\n- 函数式弹框组件添加 `beforeCancel` 和 `beforeSure` 回调,可暂停弹框的关闭\r\n- 完善 `系统管理-部门管理` 页面\r\n- 优化 `PureTableBar` 组件,列展示添加拖拽功能\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复开启 `keepAlive` 后点击标签页的重新加载,页面缓存还存在的问题\r\n- 修复混合模式菜单下刷新页签后左侧菜单会闪烁一下的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化首页布局\r\n- 依赖更新到 `vue3.3+` 以及删除 `unplugin-vue-define-options` 插件"},{created_at:"2023-05-09T08:11:28Z",published_at:"2023-05-09T08:14:55Z",body:'# 4.0.0 (2023-05-09)\r\n\r\n[查看 4.0.0 版本优化细节](https://github.com/pure-admin/vue-pure-admin/issues/428#issuecomment-1422191158)\r\n\r\n### ✔️ refactor\r\n\r\n- 采用 `css` 伪类 `before` 写法重构菜单的激活背景,类似于 [ant.design-menu](https://ant.design/components/menu-cn#components-menu-demo-inline-collapsed)\r\n\r\n### 🎫 Feat\r\n\r\n- 优化菜单名称右侧的额外图标,使其支持更多图标渲染模式\r\n- 可配置首页菜单显示与隐藏\r\n- 将本地响应式存储的命名空间提升到全局配置中\r\n- 新增函数式弹框组件以及 `demo` 示例,使用更便捷\r\n- `PureTableBar` 组件添加列展示功能\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复当菜单折叠或展开时首页 `echarts` 图表未自适应容器\r\n- 修复当只有一个子菜单时,搜索功能搜索不到该子菜单问题\r\n- 修复全局配置 `Theme` 为 `light` 清空缓存重新登录主题配置不生效的问题\r\n- 修复菜单搜索功能弹框打开后搜索框未自动聚集的问题\r\n- 修复按 `ESC` 退出全屏后,工具栏按钮文案展示问题\r\n- 修复移动端通知栏 `tooltip` 点击穿透问题\r\n- 修复当左侧菜单收起后,切换到 `horizontal` 导航模式时文字不展示的问题\r\n- 修复导航 `tab` 关闭其他标签页无法重置状态问题\r\n- 修复 `getHistoryMode` 函数中环境变量未初始化带来的页面热更新报错\r\n- 修复导航 `tab` 过多导致关闭左侧标签页无法正常显示\r\n- 修复点击内容区全屏报错问题\r\n- 修复混合导航下打开 `showLink:false` 页面并刷新后,左侧导航栏一直处于加载状态的问题\r\n- 修复混合模式导航下调用 `initRouter` 函数导致左侧导航内存溢出问题\r\n- 修复关闭左侧、右侧、其他、全部标签页操作时缓存页面并没有销毁问题\r\n- 修复路由通过 `query` 或 `params` 传参,开启缓存后关闭标签页缓存失效问题\r\n- 修复 `params` 路由传参模式下,面包屑无法找到父级路径问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化 `RePureTableBar` 组件的 `buttons` 具名插槽\r\n- 优化导航样式以及菜单折叠动画\r\n- 优化菜单名称右侧的额外图标,使其支持更多图标渲染模式\r\n- 优化 `logo` 图和文字布局以及统一配置\r\n- 路由信息 `showLink` 设置成 `false` 后,当前路由信息不添加到标签页\r\n- 导出 `addPathMatch` 函数\r\n- `pinia` 中所有 `getters` 改为官方推荐写法,`this` 改成 `state` 可自动推导类型\r\n- 适配最新版 `pure-table` 的 `api`\r\n- 忽略 `sourcemap-codec` 和 `stable` 依赖包的 `deprecation` 警告\r\n- 从 `tsconfig.json` 文件中移除 `"incremental": true`\r\n- 更新 `stylelint` 以及相关配置至最新,强化样式校验\r\n- 面包屑去首页化,根据选择的菜单对应显示,首页不在固定到面包屑里,并优化面包屑页面的路由监听'},{created_at:"2022-12-26T06:31:04Z",published_at:"2022-12-26T06:32:38Z",body:"# 3.9.7 (2022-12-26)\r\n\r\n### 🍏 Perf\r\n\r\n- 使用 `path.posix.resolve` 替代 `path.resolve` 避免 `windows` 环境下使用 `electron` 出现盘符问题\r\n- 默认关闭 `CachingAsyncRoutes` 动态路由缓存本地,使其在开发环境下调试更方便,不用每次修改动态路由都要先清空本地缓存的动态路由,更推荐在生产环境开启"},{created_at:"2022-12-19T04:14:18Z",published_at:"2022-12-19T04:15:41Z",body:`# 3.9.6 (2022-12-19)\r \r ### 🎫 Chores\r \r - 升级 \`vite4\` 版本\r \r ### 🐞 Bug fixes\r \r - 修复 \`tailwind.css\` 错误的引入方式导致 \`vite\` 的 \`hmr\` 慢的问题\r \r ### 🍏 Perf\r \r - 更新 [@pureadmin/theme](https://github.com/pure-admin/pure-admin-theme) 至最新版,带来更友好的类型提示\r - 优化 [PureTableBar](https://github.com/xiaoxian521/vue-pure-admin/tree/main/src/components/RePureTableBar) 组件\r - 优化系统管理页面业务代码,带来更好的代码参考`},{created_at:"2022-12-13T06:19:31Z",published_at:"2022-12-13T06:20:30Z",body:`# 3.9.5 (2022-12-13)\r \r ### ✔️ refactor\r \r - 完全移除了 \`lodash\` 和其相关库\r [点击此处查看为什么移除?如何自行集成?](https://yiming_chang.gitee.io/pure-admin-doc/pages/FAQ/#%E5%B9%B3%E5%8F%B0%E5%9C%A8-v3-9-5-%E7%89%88%E6%9C%AC%E5%AE%8C%E5%85%A8%E7%A7%BB%E9%99%A4%E4%BA%86-lodash-%E5%92%8C%E5%85%B6%E7%9B%B8%E5%85%B3%E5%BA%93-%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E9%99%A4-%E5%A6%82%E4%BD%95%E8%87%AA%E8%A1%8C%E9%9B%86%E6%88%90)\r \r ### 🎫 Feat\r \r - 添加 \`@pureadmin/table\` 表格动态列示例\r \r ### 🐞 Bug fixes\r \r - 修复动态路由 \`rank\` 问题\r - 修复暗黑主题样式问题\r \r ### 🍏 Perf\r \r - 优化路由 \`rank\` ,当 \`rank\` 不存在时,根据顺序自动创建,首页路由永远在第一位`},{created_at:"2022-12-05T05:59:54Z",published_at:"2022-12-05T06:04:01Z",body:`# 3.9.4 (2022-12-05)\r \r ### ✔️ refactor\r \r - 完全移除了 \`vxe-table\`,移除后,完整版整体打包大小减少 \`1.82MB\`,首启动时长基本和精简版持平 🐮\r [点击此处查看为什么移除?如何自行集成?](https://yiming_chang.gitee.io/pure-admin-doc/pages/FAQ/#%E5%B9%B3%E5%8F%B0%E5%9C%A8-v3-9-4-%E7%89%88%E6%9C%AC%E5%AE%8C%E5%85%A8%E7%A7%BB%E9%99%A4%E4%BA%86-vxe-table-%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E9%99%A4-%E5%A6%82%E4%BD%95%E8%87%AA%E8%A1%8C%E9%9B%86%E6%88%90)\r \r ### 🎫 Feat\r \r - 添加 \`@pureadmin/table\` 表格选择器(单选、多选)示例`},{created_at:"2022-12-04T08:45:47Z",published_at:"2022-12-04T08:46:59Z",body:`# 3.9.3 (2022-12-04)\r \r ### 🎫 Feat\r \r - 添加 \`@pureadmin/table\` 分页和加载动画示例\r \r ### 🐞 Bug fixes\r \r - 修复开启 \`CachingAsyncRoutes\` 后,存入本地存储的动态路由改变造成刷新页面空白的问题\r - 修复菜单折叠后 \`Tooltip\` 显示异常\r \r ### 🍏 Perf\r \r - 扩展本地图标使用方式,完整版首启动再次减少 \`13\` 个请求\r - 当菜单加载慢时,添加 \`loading\` 动画,优化用户体验\r - 主题初始化放在 \`onBeforeMount\` 里,避免初始化页面闪烁`},{created_at:"2022-12-03T07:02:17Z",published_at:"2022-12-03T07:03:09Z",body:"# 3.9.2 (2022-12-03)\r\n\r\n### 🍏 Perf\r\n\r\n- 全局覆盖 `element-plus` 的 `el-dialog`、`el-drawer`、`el-message-box`、`el-notification` 组件右上角关闭图标的样式,使其表现更鲜明 [具体代码修改记录](https://github.com/xiaoxian521/vue-pure-admin/commit/c80818d792276666aaea4b18413a0f08777f2ed1)\r\n- 打包输出信息兼容不同打包输出路径\r\n- 优化一些动画"},{created_at:"2022-12-02T11:32:48Z",published_at:"2022-12-02T11:33:45Z",body:"# 3.9.1 (2022-12-02)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `CachingAsyncRoutes` 是否开启动态路由缓存本地的全局配置,默认 `true`\r\n- 添加 `TooltipEffect` 全局配置,可配置平台主体所有 `el-tooltip` 的 `effect` 属性,默认 `light`,不影响业务代码\r\n- 添加目录、菜单文字超出显示 `Tooltip` 文字提示演示\r\n\r\n### 🍏 Perf\r\n\r\n- 优化 `initRouter` 方法,兼容 `sso` 场景\r\n- 面包屑动画样式优化"},{created_at:"2022-11-30T06:11:08Z",published_at:"2022-11-30T06:12:32Z",body:`# 3.9.0 (2022-11-30)\r \r ### 🐞 Bug fixes\r \r - 修复退出全屏时文字过长导致页面出现滚动条后带来的抖动问题\r - 修复一些类型错误\r \r ### 🍏 Perf\r \r - perf: 首屏加载大优化,对比 \`3.9.0\` 之前版本,首屏请求减少 \`71\` 个,首屏加载资源减少 \`4.1 MB\``},{created_at:"2022-11-27T17:25:43Z",published_at:"2022-11-27T17:27:59Z",body:"# 3.8.7 (2022-11-28)\r\n\r\n### 🍏 Perf\r\n\r\n- perf: 打包大优化,请务必升级!使用 `unplugin-vue-define-options` 替换 `unplugin-vue-macros` ,打包速度提升数倍,使用 `unplugin-vue-macros` 以性能中等偏上的 `mac` 为例完整版打包时长为 `6` 分钟 😭,使用 `unplugin-vue-define-options` 替换后,相同电脑下打包时长为 `50` 秒 ☺️"},{created_at:"2022-11-27T08:34:46Z",published_at:"2022-11-27T08:35:49Z",body:"# 3.8.6 (2022-11-27)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `message` 消息提示函数,兼容 `Element Plus` 和 `Ant Design` 两种 `Message` 样式风格,使用和打包大小成本极低并适配暗黑模式,真香 😂\r\n\r\n### 🍏 Perf\r\n\r\n- perf: 无需安装 `@vue/runtime-core` ,兼容所有 `element-plus` 组件的 `volar` 提示"},{created_at:"2022-11-26T16:03:19Z",published_at:"2022-11-26T16:04:41Z",body:"# 3.8.5 (2022-11-26)\r\n\r\n### 🍏 Perf\r\n\r\n- 大优化,移除 `@pureadmin/components` 并采用兼容写法,平台打包大小在未启用压缩前对比优化前减少 `0.4` MB , 首屏请求减少 `2.3` MB 的资源,这对于 [精简版](https://github.com/xiaoxian521/pure-admin-thin) 来说是非常大的优化,精简版已经同步代码"},{created_at:"2022-11-26T07:07:07Z",published_at:"2022-11-26T07:08:11Z",body:"# 3.8.0 (2022-11-26)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `@pureadmin/table` 多种数据格式(深层结构)示例\r\n- 添加 `@pureadmin/table` 图像预览示例\r\n- 添加 `@pureadmin/table` 行、列拖拽示例\r\n- 添加 `@pureadmin/table` 右键菜单示例\r\n- 添加 `@pureadmin/table` 导出 `Excel` 示例\r\n- 添加 `@pureadmin/table` 编辑单元格示例\r\n- 添加 `@pureadmin/table` 水印示例\r\n- 添加 `@pureadmin/table` 打印示例\r\n- 添加 `@pureadmin/table` 内嵌 `echarts` 图表示例\r\n- 添加 `svgo` 压缩平台所有 `svg` 文件,减少体积\r\n\r\n### 🍏 Perf\r\n\r\n- 静态路由平台自动导入,无需手动引入\r\n- 更完善的全局类型提示\r\n- 优化 `vite` 依赖预构建在平台里的配置,页面切换加载速度显著加快"},{created_at:"2022-11-21T17:00:04Z",published_at:"2022-11-21T17:00:42Z",body:`# 3.7.1 (2022-11-22)\r \r ### 🔥 hotfix\r \r - 修复在未开启标签页缓存时退出登录,可能存在标签页未重置的问题`},{created_at:"2022-11-21T09:14:22Z",published_at:"2022-11-21T09:15:24Z",body:"# 3.7.0 (2022-11-21)\r\n\r\n### ✔️ refactor\r\n\r\n- 使用 `intro.js` 替换 `driver.js`\r\n\r\n### 🎫 Feat\r\n\r\n- 添加前端单点登录,测试地址 https://yiming_chang.gitee.io/vue-pure-admin/#/pure-table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin\r\n- 为 [@pureadmin/table](https://github.com/xiaoxian521/pure-admin-table) 添加更多的示例和 `element-plus` 的 [table](https://element-plus.org/zh-CN/component/table.html) 示例保持一致\r\n- 丰富水印功能页面(支持自定义各种颜色、阴影、文字、额外属性、设置不可删除水印以及给指定元素设置水印)\r\n- 优化菜单,添加 `MenuArrowIconNoTransition` 全局配置,在 `public/serverConfig.json` 中配置即可,对于出现左侧菜单模式,菜单展开卡顿的可设置 `MenuArrowIconNoTransition: true` 即可解决\r\n- 更换表单设计器组件演示\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复页内菜单带参互相跳转,标签没有选中高亮\r\n\r\n### 🍏 Perf\r\n\r\n- 删除已废弃的 `$baseUrl`\r\n- 兼容引入某个库导致 `global is not defined` 报错,将 `src/utils/globalPolyfills.ts` 文件引入 `src/main.ts` 即可解决\r\n- 删除 `@vitejs/plugin-legacy`,`vue3` 无法通过任何工具使其支持 `ie`"},{created_at:"2022-11-10T04:17:05Z",published_at:"2022-11-10T04:18:18Z",body:`# 3.6.4 (2022-11-10)\r \r ### 🎫 Feat\r \r - 菜单图标 \`icon\` 支持使用在线图标\r \r ### 🐞 Bug fixes\r \r - 修复 \`vxe-button\` 鼠标覆盖后字体颜色问题以及一些别的样式问题\r \r ### 🍏 Perf\r \r - 优化路由守卫,如果已经登录并存在登录信息后不能跳转到路由白名单,而是继续保持在当前页面\r - 将 \`baseURL\` 和全局环境代理删除,可直接在 \`vite.config.ts\` 编写,即方便又支持多个代理地址`},{created_at:"2022-11-01T08:18:12Z",published_at:"2022-11-01T08:19:22Z",body:"# 3.6.3 (2022-11-01)\r\n\r\n### 🎫 Feat\r\n\r\n- 静态资源分类打包\r\n- 添加弹幕组件 `demo`\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复 `tailwindcss` 最新版新增的 `collapse` 属性与平台 `class` 类名冲突\r\n- 修复当 `token` 过期后,如果页面有多个请求会重复刷新 `token`"},{created_at:"2022-10-27T04:58:44Z",published_at:"2022-10-27T04:59:32Z",body:"# 3.6.2 (2022-10-27)\r\n\r\n### ✔️ refactor\r\n\r\n- 使用`@/`别名替换`/@/`别名"},{created_at:"2022-10-26T18:42:33Z",published_at:"2022-10-26T18:43:31Z",body:"# 3.6.1 (2022-10-27)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加打包是否启动`cdn`替换本地库配置,默认`false`不启动\r\n- 添加打包构建可选`gzip`与`brotli`压缩模式\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复`title`过长显示样式问题\r\n- 修复路由中父级`name`不应和子级`name`重复,会造成重定向跳转`404`问题\r\n\r\n### 🍏 Perf\r\n\r\n- 升级`axios`至最新版"},{created_at:"2022-10-25T05:07:18Z",published_at:"2022-10-25T05:08:18Z",body:"# 3.6.0 (2022-10-25)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加文件下载`demo`\r\n- 添加打字机组件`demo`\r\n- 添加`json`编辑器`demo`\r\n\r\n### ✔️ refactor\r\n\r\n- 重构权限模块,采用目前最常用的`RBAC`(Role-Based Access List): 基于角色的权限控制( 用户 -> 角色 -> 权限 ),并更新页面权限和按钮权限`demo`示例,按钮权限支持三种操作模式(组件方式判断权限、函数方式判断权限、指令方式判断权限)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复清空缓存并返回登录页时未清空主题\r\n- 修复`horizontal`模式下`menu`在生产环境显示问题\r\n- 修复`mix`混合模式导航在生产环境左侧菜单一定机率不显示的问题\r\n- `token`过期后调用刷新`token`接口会无限循环的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 从`tailwind.css`中移除不常用的`@apply`\r\n- 使用`/** */`替换`//`注释,对编辑器的智能提示更友好\r\n- 优化登录回车事件\r\n- 简化了一些函数,剔除了无用函数,优化了页面加载速度"},{created_at:"2022-09-10T13:44:17Z",published_at:"2022-09-10T13:46:11Z",body:"# 3.5.0 (2022-9-10)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `cssnano` ,打包时压缩 `css` 体积\r\n- 添加 `element-plus` 无缝滚动 `Table` 页面 demo\r\n- 开启 `vscode` 括号对指南\r\n\r\n### ✔️ refactor\r\n\r\n- 使用 `tailwindcss` 替换 `unocss`,新增 `tailwindcss` [使用文档](http://yiming_chang.gitee.io/pure-admin-doc/pages/39156f/)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- `token` 过期,刷新死循环\r\n\r\n### 🍏 Perf\r\n\r\n- 重置路由时,清空缓存页面"},{created_at:"2022-08-23T02:31:44Z",published_at:"2022-08-23T02:32:49Z",body:"# 3.4.6 (2022-8-23)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- `process` is not defined in path\r\n- 修复动态路由`children`为空数组时报错\r\n- 修复`iframe`加载失败"},{created_at:"2022-08-22T12:21:53Z",published_at:"2022-08-22T12:23:21Z",body:`# 3.4.5 (2022-8-22)\r \r ### 🐞 Bug fixes\r \r - 修复本地响应式存储对象设置问题`},{created_at:"2022-08-22T09:21:18Z",published_at:"2022-08-22T09:22:26Z",body:"# 3.4.0 (2022-8-22)\r\n\r\n### 🍏 Perf\r\n\r\n- 优化路由\r\n- 优化移动端兼容性\r\n- 优化路由传参(`query`、`params` 方式刷新页面不需要再开启标签页缓存也能保留参数在`url`和`标签页`上)"},{created_at:"2022-08-19T07:29:06Z",published_at:"2022-08-19T07:31:08Z",body:`# 3.3.5 (2022-8-19)\r \r ### 🎫 Feat\r \r - 将 \`element-plus\` 的 \`Table\` 二次封装到[@pureadmin/table](https://github.com/xiaoxian521/pure-admin-table),提供灵活的配置项并集成到平台里\r - 将 \`element-plus\` 的 \`Descriptions\` 二次封装到[@pureadmin/descriptions](https://github.com/xiaoxian521/pure-admin-descriptions),提供灵活的配置项并集成到平台里\r - 将平台的大部分工具以及 hooks 都集中到[@pureadmin/utils](https://pure-admin-utils-docs.vercel.app/),并删除集中到这个库里的代码,减少平台体积\r - 添加[unplugin-vue-define-options](https://www.npmjs.com/package/unplugin-vue-define-options)插件,页面可直接写 \`defineOptions({name: 自定义名称})\`\r - 添加项目文件、语言分析工具 [cloc](https://www.npmjs.com/package/cloc)\r - 添加登陆页国际化\r - 添加完整路由配置表类型声明\r - 添加虚拟列表页面 demo\r - 添加 \`PDF\` 预览页面 demo\r - 添加导出 \`excel\` 页面 demo\r - 添加无 \`Layout\` 的空白页面 demo\r \r ### ✔️ refactor\r \r - 重构主题色,适配 \`element-plus\` 暗黑模式(同时也解决了 \`3.3.0\` 及更低版本中同样的元素 \`css\` 被多次覆盖,导致样式不好调试的问题)\r - 重构路由重置功能\r \r ### 🍏 Perf\r \r - 兼容项目存放目录以中文命名,但我们真心不推荐中文命名,因为可能某个库没有对中文路径做转义处理,导致项目奔溃\r - 优化接口类型\r \r ### 🐞 Bug fixes\r \r - 修复路由 \`showlink\` 为 \`false\` 的异步路由,刷新后不显示\r - 修复当没有 \`icon\` 时,垂直导航菜单折叠后文字被隐藏`},{created_at:"2022-05-11T07:51:38Z",published_at:"2022-05-11T07:52:31Z",body:`# 3.3.0 (2022-5-11)\r \r ### 🎫 Feat\r \r - 添加用户管理页面 demo\r - 添加角色管理页面 demo\r - 添加部门管理页面 demo\r - 添加卡片列表页面 demo\r - 集成表单设计器\r - 新增\`PPT\`demo\r - 在功能菜单中新增防抖截流 demo\r - 升级\`wangeditorV5\`(并支持国际化和自定义主题)\r - 集成\`tauri\`版本\r - 新增条形码功能\r - 新增二维码功能\r - 使用\`element-plus\`中的\`Cascader\`级联选择器编写中国省市区三级、二级联动 demo\r - 集成\`Swiper\`插件\r - 路由支持传\`component\`,代表组件路径\r - 添加预发布打包模式\r - 添加关闭某个标签的[hooks](https://github.com/xiaoxian521/vue-pure-admin/commit/5e8723a031923e79f507e5a17151d3bd88a51523)\r \r ### ✔️ refactor\r \r - 重构登陆页,更偏向实际业务场景\r - 使用\`unocss\`替换\`windicss\`,\`unocss\`开发环境下性能更好,没有内存泄露,而且\`api\`使用上兼容\`windicss\`\r \r ### 🍏 Perf\r \r - 优化平台的\`split-pane\`组件样式\r - 优化国际化,路由不再传\`i18n\`字段,平台自动读取根目录\`locales\`文件夹下文件进行国际化匹配\r - 优化图标选择器\r - 优化\`layout\`显示用户信息[commit](https://github.com/xiaoxian521/vue-pure-admin/commit/56f9dc85e7fbe0637605c43577c794de9f8968aa)\r \r ### 🐞 Bug fixes\r \r - 修复路由初始化问题(Cannot access 'constantRoutes' before initialization)`},{created_at:"2022-03-21T16:25:55Z",published_at:"2022-03-21T16:27:00Z",body:`# 3.2.0 (2022-3-22)\r \r ### 🎫 Feat\r \r - 图标选择组件\r - 菜单搜索功能\r - 添加结果页面\r - 扩展\`element-plus\`时间线组件\r - 扩展\`element-plus\`树组件,支持连接线\r - 添加树形选择器,支持单选和多选\r \r ### 🍏 Perf\r \r - 优化错误页面 UI\r - 优化国际化功能\r - 优化路由\`rank\`排序,兼容路由\`meta\`中\`rank\`字段值为\`null\`的情况\r \r ### 🐞 Bug fixes\r \r - 修复菜单展开折叠在部分电脑出现卡顿的情况`},{created_at:"2022-03-03T14:57:11Z",published_at:"2022-03-03T14:57:55Z",body:`# 3.1.0 (2022-3-3)\r \r ### 🎫 Feat\r \r - iframe 支持动态加载\r - 水印示例\r - 打印示例(图片、表格、echarts)\r - 添加运行、打包信息, 使用\`lodash-unified\`替换\`lodash-es\`,\`lodash-unified\`支持\`ESM\`同时兼容\`CJS\`\r \r ### 🐞 Bug fixes\r \r - 修复在一个菜单页面内单独跳转到另一个菜单页面,路由页面跳转了但是标签页不显示的情况\r - 修复后台返回动态三级及以上的路由,出现菜单与页面不对应的情况`},{created_at:"2022-02-14T15:19:32Z",published_at:"2022-02-14T15:20:32Z",body:`# 3.0 (2022-2-14)\r \r ### 🎫 Feat\r \r - 添加混合导航\r \r ### 🐞 Bug fixes\r \r - 修复标签页 bug`},{created_at:"2022-02-05T09:36:21Z",published_at:"2022-02-05T09:38:09Z",body:`# 2.9.0(2022-2-5)\r \r ### 🎫 Feat\r \r - 添加打包大小分析,命令\`pnpm report\`\r \r ### 🍏 Perf\r \r - 采用\`iconify\`按需引入图标,优化图标大小,减少网络请求\r - 优化路由,路由可不传\`showLink: true\`,默认显示`},{created_at:"2022-01-21T08:46:48Z",published_at:"2022-01-21T08:49:38Z",body:`# 2.8.5(2022-1-21)\r \r ### 🎫 Feat\r \r - 添加 \`WindiCSS\` 支持\r - 添加线上环境删 console 插件\`vite-plugin-remove-console\`\r \r ### ✔️ refactor\r \r - 使用\`@iconify-icons/ep\`替换\`@element-plus/icons-vue\``},{created_at:"2022-01-04T11:52:05Z",published_at:"2022-01-04T11:53:17Z",body:`# 2.8.0(2022-1-4)\r \r ### 🎫 Feat\r \r - 添加暗黑主题\r - 添加 element-plus 自定义主题\r - 添加引导页\r \r ### 🍏 Perf\r \r - 优化国际化,兼容 vscode 插件 i18n Ally 智能提醒\r - 优化后端返回路由结构\r - 优化本地存储,内置四个键\`responsive-configure\`、\`responsive-locale\`、\`responsive-layout\`、\`responsive-tags\`,分别为基本配置、国际化配置、布局配置、标签页持久化配置`},{created_at:"2021-12-18T05:56:21Z",published_at:"2021-12-18T05:57:55Z",body:`# 2.7.0(2021-12-18)\r \r ### 🎫 Feat\r \r - 新增标签页复用\r - 新增消息提醒模版\r - 新增前端菜单树结构例子\r - 重构路由,优化权限模块,带来更方便的体验\r - 重构 env 环境和 http 请求,带来更方便的体验\r - 目前平台的标签页强制关联了本地存储,下一步标签页默认放到内存中并支持可配置持久化标签页\r - 导航菜单图标支持 fontawesome、iconfont、remixicon、element-plus/icons、自定义 svg\r - 更新 font-awesome 到 5.0 版本,因为 5.0 以下的版本官方不再维护,但平台依旧会兼容 font-awesome4 版本\r \r ### 🍏 Perf\r \r - 优化标签页,带来更好的交互体验\r - 路由 title 支持直接写中文,可脱离国际化\r - 路由历史模式从 env 读取并支持 base 参数\r - 打包后的文件提供传统浏览器兼容性支持,配置 VITE_LEGACY 为 true`},{created_at:"2021-11-10T05:30:48Z",published_at:"2021-11-10T05:33:37Z",body:`# 2.6.0(2021-11-10)\r \r ### 🎫 Feat\r \r - 重构导航主题色,支持多种配色\r - 重构登录页,插画风格\r \r ### 🍏 Perf\r \r - 优化导航样式\r - 剔除导航强依赖 vxe-table\r - 同步更新 element-plus,使用 SVG Icon 替换 Font Icon`},{created_at:"2021-10-14T09:50:03Z",published_at:"2021-10-14T09:52:01Z",body:`# 2.1.0(2021-10-14)\r \r ### 🎫 Feat\r \r - 路由动画(每个路由都可添加不同动画)\r - 额外图标(比如这个是新加的页面,路由菜单右上角显示个新图标)\r - 抽离默认配置选项\r - 完善类型文件\r \r ### 🐞 Bug fixes\r \r - 修复 element-plus 国际化使用问题\r - 修复路由问题\r - 修复导航适配问题`},{created_at:"2021-09-28T18:32:30Z",published_at:"2021-09-28T18:35:41Z",body:`# 2.0.1(2021-9-29)\r \r ### 🎫 Feat\r \r - 添加 horizontal 水平模式导航`},{created_at:"2021-04-13T10:53:29Z",published_at:"2021-04-13T10:57:50Z",body:`# 2.0.0(2021-4-13)\r \r ### 🎫 Chores\r \r - 发布 2.0.0 版本`}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:t})=>t.username==="admin"?{success:!0,data:{username:"admin",roles:["admin"],accessToken:"eyJhbGciOiJIUzUxMiJ9.admin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.adminRefresh",expires:"2023/10/30 00:00:00"}}:{success:!0,data:{username:"common",roles:["common"],accessToken:"eyJhbGciOiJIUzUxMiJ9.common",refreshToken:"eyJhbGciOiJIUzUxMiJ9.commonRefresh",expires:"2023/10/30 00:00:00"}}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:login},Symbol.toStringTag,{value:"Module"})),mapList=()=>{const t=[];for(let r=0;r<200;r++)t.push({plateNumber:"豫A@natural(11111, 99999)@character('upper')",driver:"@cname()","orientation|1-360":100,"lng|113-114.1-10":1,"lat|34-35.1-10":1});return t},map=[{url:"/getMapInfo",method:"get",response:()=>({success:!0,data:mapList()})}],__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:map},Symbol.toStringTag,{value:"Module"})),refreshToken=[{url:"/refreshToken",method:"post",response:({body:t})=>t.refreshToken?{success:!0,data:{accessToken:"eyJhbGciOiJIUzUxMiJ9.newAdmin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",expires:"2023/10/30 23:59:59"}}:{success:!1,data:{}}}],__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:refreshToken},Symbol.toStringTag,{value:"Module"})),system=[{url:"/user",method:"post",response:({body:t})=>{let r=[{username:"admin",nickname:"admin",avatar:"https://avatars.githubusercontent.com/u/44761321",phone:"15888886789",email:"@email",sex:0,id:1,status:1,dept:{id:103,name:"研发部门"},remark:"管理员",createTime:1605456e6},{username:"common",nickname:"common",avatar:"https://avatars.githubusercontent.com/u/52823142",phone:"18288882345",email:"@email",sex:1,id:2,status:1,dept:{id:105,name:"测试部门"},remark:"普通用户",createTime:1605456e6}];return r=r.filter(V=>V.username.includes(t==null?void 0:t.username)),r=r.filter(V=>String(V.status).includes(String(t==null?void 0:t.status))),t.phone&&(r=r.filter(V=>V.phone===t.phone)),t.deptId&&(r=r.filter(V=>V.dept.id===t.deptId)),{success:!0,data:{list:r,total:r.length,pageSize:10,currentPage:1}}}},{url:"/list-all-role",method:"get",response:()=>({success:!0,data:[{id:1,name:"超级管理员"},{id:2,name:"普通角色"}]})},{url:"/list-role-ids",method:"post",response:({body:t})=>{if(t.userId){if(t.userId==1)return{success:!0,data:[1]};if(t.userId==2)return{success:!0,data:[2]}}else return{success:!1,data:[]}}},{url:"/role",method:"post",response:({body:t})=>{let r=[{createTime:1605456e6,updateTime:1684512e6,id:1,name:"超级管理员",code:"admin",status:1,remark:"超级管理员拥有最高权限"},{createTime:1605456e6,updateTime:1684512e6,id:2,name:"普通角色",code:"common",status:1,remark:"普通角色拥有部分权限"}];return r=r.filter(V=>V.name.includes(t==null?void 0:t.name)),r=r.filter(V=>String(V.status).includes(String(t==null?void 0:t.status))),t.code&&(r=r.filter(V=>V.code===t.code)),{success:!0,data:{list:r,total:r.length,pageSize:10,currentPage:1}}}},{url:"/dept",method:"post",response:()=>({success:!0,data:[{name:"杭州总公司",parentId:0,id:100,sort:0,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:1,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"郑州分公司",parentId:100,id:101,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"研发部门",parentId:101,id:103,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:102,id:108,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"深圳分公司",parentId:100,id:102,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:101,id:104,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:102,id:109,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"测试部门",parentId:101,id:105,sort:3,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:101,id:106,sort:4,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"运维部门",parentId:101,id:107,sort:5,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"}]})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mock={exports:{}};(function(module,exports){(function(r,V){module.exports=V()})(commonjsGlobal,function(){return function(t){var r={};function V(oe){if(r[oe])return r[oe].exports;var ie=r[oe]={exports:{},id:oe,loaded:!1};return t[oe].call(ie.exports,ie,ie.exports,V),ie.loaded=!0,ie.exports}return V.m=t,V.c=r,V.p="",V(0)}([function(t,r,V){var oe=V(1),ie=V(3),le=V(5),ue=V(20),de=V(23),pe=V(25),he;typeof window<"u"&&(he=V(27));/*! Mock - 模拟请求 & 模拟数据 https://github.com/nuysoft/Mock 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com */var _e={Handler:oe,Random:le,Util:ie,XHR:he,RE:ue,toJSONSchema:de,valid:pe,heredoc:ie.heredoc,setup:function($e){return he.setup($e)},_mocked:{}};_e.version="1.0.1-beta3",he&&(he.Mock=_e),_e.mock=function($e,Ie,Ve){return arguments.length===1?oe.gen($e):(arguments.length===2&&(Ve=Ie,Ie=void 0),he&&(window.XMLHttpRequest=he),_e._mocked[$e+(Ie||"")]={rurl:$e,rtype:Ie,template:Ve},_e)},t.exports=_e},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(t,r,V){r=r==null?"":r+"",V=V||{},V={path:V.path||[Constant.GUID],templatePath:V.templatePath||[Constant.GUID++],currentContext:V.currentContext,templateCurrentContext:V.templateCurrentContext||t,root:V.root||V.currentContext,templateRoot:V.templateRoot||V.templateCurrentContext||t};var oe=Parser.parse(r),ie=Util.type(t),le;return Handler[ie]?(le=Handler[ie]({type:ie,template:t,name:r,parsedName:r&&r.replace(Constant.RE_KEY,"$1"),rule:oe,context:V}),V.root||(V.root=le),le):t},Handler.extend({array:function(t){var r=[],V,oe;if(t.template.length===0)return r;if(t.rule.parameters)if(t.rule.min===1&&t.rule.max===void 0)t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Random.pick(Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})),t.context.path.pop(),t.context.templatePath.pop();else if(t.rule.parameters[2])t.template.__order_index=t.template.__order_index||0,t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})[t.template.__order_index%t.template.length],t.template.__order_index+=+t.rule.parameters[2],t.context.path.pop(),t.context.templatePath.pop();else for(V=0;V1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i1&&(ie=r.context.path.slice(0),ie.pop(),ie=this.normalizePath(ie.concat(oe)));try{t=oe[oe.length-1];for(var le=r.context.root,ue=r.context.templateRoot,de=1;de1/(V+oe)*V?!ie:ie):Math.random()>=.5},bool:function(V,oe,ie){return this.boolean(V,oe,ie)},natural:function(V,oe){return V=typeof V<"u"?parseInt(V,10):0,oe=typeof oe<"u"?parseInt(oe,10):9007199254740992,Math.round(Math.random()*(oe-V))+V},integer:function(V,oe){return V=typeof V<"u"?parseInt(V,10):-9007199254740992,oe=typeof oe<"u"?parseInt(oe,10):9007199254740992,Math.round(Math.random()*(oe-V))+V},int:function(V,oe){return this.integer(V,oe)},float:function(V,oe,ie,le){ie=ie===void 0?0:ie,ie=Math.max(Math.min(ie,17),0),le=le===void 0?17:le,le=Math.max(Math.min(le,17),0);for(var ue=this.integer(V,oe)+".",de=0,pe=this.natural(ie,le);de1&&he--,6*he<1?$e=de+(pe-de)*6*he:2*he<1?$e=pe:3*he<2?$e=de+(pe-de)*(2/3-he)*6:$e=de,_e[Ie]=$e*255;return _e},hsl2hsv:function(oe){var ie=oe[0],le=oe[1]/100,ue=oe[2]/100,de,pe;return ue*=2,le*=ue<=1?ue:2-ue,pe=(ue+le)/2,de=2*le/(ue+le),[ie,de*100,pe*100]},hsv2rgb:function(oe){var ie=oe[0]/60,le=oe[1]/100,ue=oe[2]/100,de=Math.floor(ie)%6,pe=ie-Math.floor(ie),he=255*ue*(1-le),_e=255*ue*(1-le*pe),$e=255*ue*(1-le*(1-pe));switch(ue=255*ue,de){case 0:return[ue,$e,he];case 1:return[_e,ue,he];case 2:return[he,ue,$e];case 3:return[he,_e,ue];case 4:return[$e,he,ue];case 5:return[ue,he,_e]}},hsv2hsl:function(oe){var ie=oe[0],le=oe[1]/100,ue=oe[2]/100,de,pe;return pe=(2-le)*ue,de=le*ue,de/=pe<=1?pe:2-pe,pe/=2,[ie,de*100,pe*100]},rgb2hex:function(V,oe,ie){return"#"+((256+V<<8|oe)<<8|ie).toString(16).slice(1)},hex2rgb:function(V){return V="0x"+V.slice(1).replace(V.length>4?V:/./g,"$&$&")|0,[V>>16,V>>8&255,V&255]}}},function(t,r){t.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function(t,r,V){var oe=V(6),ie=V(14);function le(ue,de,pe,he){return pe===void 0?oe.natural(ue,de):he===void 0?pe:oe.natural(parseInt(pe,10),parseInt(he,10))}t.exports={paragraph:function(ue,de){for(var pe=le(3,7,ue,de),he=[],_e=0;_e1&&(le=[].slice.call(arguments,0));var ue=ie.options,de=ue.context.templatePath.join("."),pe=ie.cache[de]=ie.cache[de]||{index:0,array:le};return pe.array[pe.index++%pe.array.length]}}},function(t,r){t.exports={first:function(){var V=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(V)},last:function(){var V=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(V)},name:function(V){return this.first()+" "+(V?this.first()+" ":"")+this.last()},cfirst:function(){var V="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(V)},clast:function(){var V="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(V)},cname:function(){return this.cfirst()+this.clast()}}},function(t,r){t.exports={url:function(V,oe){return(V||this.protocol())+"://"+(oe||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(V){return this.word()+"."+(V||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(V){return this.character("lower")+"."+this.word()+"@"+(V||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(t,r,V){var oe=V(18),ie=["东北","华北","华东","华中","华南","西南","西北"];t.exports={region:function(){return this.pick(ie)},province:function(){return this.pick(oe).name},city:function(le){var ue=this.pick(oe),de=this.pick(ue.children);return le?[ue.name,de.name].join(" "):de.name},county:function(le){var ue=this.pick(oe),de=this.pick(ue.children),pe=this.pick(de.children)||{name:"-"};return le?[ue.name,de.name,pe.name].join(" "):pe.name},zip:function(le){for(var ue="",de=0;de<(le||6);de++)ue+=this.natural(0,9);return ue}}},function(t,r){var V={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function oe(le){for(var ue={},de=0,pe;deao;ao++)lo=bn.charAt(ao),lo===` `?(Mr.seenCR||Mr.line++,Mr.column=1,Mr.seenCR=!1):lo==="\r"||lo==="\u2028"||lo==="\u2029"?(Mr.line++,Mr.column=1,Mr.seenCR=!0):(Mr.column++,Mr.seenCR=!1)}return so!==In&&(so>In&&(so=0,Co={line:1,column:1,seenCR:!1}),jn(Co,so,In),so=In),Co}function En(In){ho>Xn||(Xn>ho&&(ho=Xn,vo=[]),vo.push(In))}function xn(In){var jn=0;for(In.sort();jnXn?(Mr=bn.charAt(Xn),Xn++):(Mr=null,Vr===0&&En(qo)),Mr!==null?(jr=In,jn=Oi(Mr),jn===null&&(Xn=In),In=jn):(Xn=In,In=Nr)):(Xn=In,In=Nr),In}function Ur(){var In,jn,Mr;return In=Xn,bn.charCodeAt(Xn)===92?(jn=Zo,Xn++):(jn=null,Vr===0&&En(Xo)),jn!==null?(Ii.test(bn.charAt(Xn))?(Mr=bn.charAt(Xn),Xn++):(Mr=null,Vr===0&&En(Mi)),Mr!==null?(jr=In,jn=Ni(Mr),jn===null&&(Xn=In),In=jn):(Xn=In,In=Nr)):(Xn=In,In=Nr),In}function Kr(){var In,jn,Mr,Fr;if(In=Xn,bn.substr(Xn,2)===co?(jn=co,Xn+=2):(jn=null,Vr===0&&En(Jo)),jn!==null){if(Mr=[],Qo.test(bn.charAt(Xn))?(Fr=bn.charAt(Xn),Xn++):(Fr=null,Vr===0&&En(ea)),Fr!==null)for(;Fr!==null;)Mr.push(Fr),Qo.test(bn.charAt(Xn))?(Fr=bn.charAt(Xn),Xn++):(Fr=null,Vr===0&&En(ea));else Mr=Nr;Mr!==null?(jr=In,jn=Ri(Mr),jn===null&&(Xn=In),In=jn):(Xn=In,In=Nr)}else Xn=In,In=Nr;return In}function qr(){var In,jn,Mr,Fr;if(In=Xn,bn.substr(Xn,2)===ta?(jn=ta,Xn+=2):(jn=null,Vr===0&&En(Di)),jn!==null){if(Mr=[],fo.test(bn.charAt(Xn))?(Fr=bn.charAt(Xn),Xn++):(Fr=null,Vr===0&&En(po)),Fr!==null)for(;Fr!==null;)Mr.push(Fr),fo.test(bn.charAt(Xn))?(Fr=bn.charAt(Xn),Xn++):(Fr=null,Vr===0&&En(po));else Mr=Nr;Mr!==null?(jr=In,jn=Li(Mr),jn===null&&(Xn=In),In=jn):(Xn=In,In=Nr)}else Xn=In,In=Nr;return In}function no(){var In,jn,Mr,Fr;if(In=Xn,bn.substr(Xn,2)===na?(jn=na,Xn+=2):(jn=null,Vr===0&&En(Bi)),jn!==null){if(Mr=[],fo.test(bn.charAt(Xn))?(Fr=bn.charAt(Xn),Xn++):(Fr=null,Vr===0&&En(po)),Fr!==null)for(;Fr!==null;)Mr.push(Fr),fo.test(bn.charAt(Xn))?(Fr=bn.charAt(Xn),Xn++):(Fr=null,Vr===0&&En(po));else Mr=Nr;Mr!==null?(jr=In,jn=Vi(Mr),jn===null&&(Xn=In),In=jn):(Xn=In,In=Nr)}else Xn=In,In=Nr;return In}function Xr(){var In,jn;return In=Xn,bn.substr(Xn,2)===co?(jn=co,Xn+=2):(jn=null,Vr===0&&En(Jo)),jn!==null&&(jr=In,jn=Fi()),jn===null&&(Xn=In),In=jn,In}function _r(){var In,jn,Mr;return In=Xn,bn.charCodeAt(Xn)===92?(jn=Zo,Xn++):(jn=null,Vr===0&&En(Xo)),jn!==null?(bn.length>Xn?(Mr=bn.charAt(Xn),Xn++):(Mr=null,Vr===0&&En(qo)),Mr!==null?(jr=In,jn=bo(Mr),jn===null&&(Xn=In),In=jn):(Xn=In,In=Nr)):(Xn=In,In=Nr),In}var Pr,sr=arguments.length>1?arguments[1]:{},Ir={regexp:Pn},Hr=Pn,Nr=null,Gr="",Zr="|",Qr='"|"',eo=function(In,jn){return jn?new oe(In,jn[1]):In},oo=function(In,jn,Mr){return new ie([In].concat(jn).concat([Mr]))},Eo="^",wo='"^"',oa=function(){return new V("start")},aa="$",ia='"$"',sa=function(){return new V("end")},la=function(In,jn){return new de(In,jn)},ua="Quantifier",da=function(In,jn){return jn&&(In.greedy=!1),In},yo="{",_o='"{"',fa=",",pa='","',To="}",$o='"}"',ha=function(In,jn){return new pe(In,jn)},xo=",}",ma='",}"',va=function(In){return new pe(In,1/0)},ga=function(In){return new pe(In,In)},ya="+",ba='"+"',Ca=function(){return new pe(1,1/0)},Sa="*",Ea='"*"',wa=function(){return new pe(0,1/0)},Po="?",ko='"?"',Ta=function(){return new pe(0,1)},Ao=/^[0-9]/,Oo="[0-9]",$a=function(In){return+In.join("")},xa="(",Pa='"("',ka=")",Aa='")"',Oa=function(In){return In},Ia=function(In){return new ue(In)},Io="?:",Ma='"?:"',Na=function(In){return new le("non-capture-group",In)},Mo="?=",Ra='"?="',Da=function(In){return new le("positive-lookahead",In)},No="?!",La='"?!"',Ba=function(In){return new le("negative-lookahead",In)},Va="CharacterSet",Fa="[",za='"["',Ha="]",Ua='"]"',ja=function(In,jn){return new he(!!In,jn)},Wa="CharacterRange",Ga="-",Ka='"-"',Ya=function(In,jn){return new _e(In,jn)},qa="Character",Za=/^[^\\\]]/,Xa="[^\\\\\\]]",bo=function(In){return new $e(In)},Ja=".",Qa='"."',ei=function(){return new V("any-character")},ti="Literal",ni=/^[^|\\\/.[()?+*$\^]/,ri="[^|\\\\\\/.[()?+*$\\^]",uo="\\b",Ro='"\\\\b"',oi=function(){return new V("backspace")},ai=function(){return new V("word-boundary")},Do="\\B",ii='"\\\\B"',si=function(){return new V("non-word-boundary")},Lo="\\d",li='"\\\\d"',ui=function(){return new V("digit")},Bo="\\D",ci='"\\\\D"',di=function(){return new V("non-digit")},Vo="\\f",fi='"\\\\f"',pi=function(){return new V("form-feed")},Fo="\\n",hi='"\\\\n"',mi=function(){return new V("line-feed")},zo="\\r",vi='"\\\\r"',gi=function(){return new V("carriage-return")},Ho="\\s",yi='"\\\\s"',_i=function(){return new V("white-space")},Uo="\\S",bi='"\\\\S"',Ci=function(){return new V("non-white-space")},jo="\\t",Si='"\\\\t"',Ei=function(){return new V("tab")},Wo="\\v",wi='"\\\\v"',Ti=function(){return new V("vertical-tab")},Go="\\w",$i='"\\\\w"',xi=function(){return new V("word")},Ko="\\W",Pi='"\\\\W"',ki=function(){return new V("non-word")},Yo="\\c",Ai='"\\\\c"',qo="any character",Oi=function(In){return new qe(In)},Zo="\\",Xo='"\\\\"',Ii=/^[1-9]/,Mi="[1-9]",Ni=function(In){return new Ue(In)},co="\\0",Jo='"\\\\0"',Qo=/^[0-7]/,ea="[0-7]",Ri=function(In){return new Fe(In.join(""))},ta="\\x",Di='"\\\\x"',fo=/^[0-9a-fA-F]/,po="[0-9a-fA-F]",Li=function(In){return new Ve(In.join(""))},na="\\u",Bi='"\\\\u"',Vi=function(In){return new Ie(In.join(""))},Fi=function(){return new V("null-character")},Xn=0,jr=0,so=0,Co={line:1,column:1,seenCR:!1},ho=0,vo=[],Vr=0;if("startRule"in sr){if(!(sr.startRule in Ir))throw new Error(`Can't start parsing from rule "`+sr.startRule+'".');Hr=Ir[sr.startRule]}if(V.offset=Sn,V.text=Cn,Pr=Hr(),Pr!==null&&Xn===bn.length)return Pr;throw xn(vo),jr=Math.max(Xn,ho),new _n(vo,jrIe)return!0;var Ue={path:_e,type:he,actual:$e,expected:Ie,action:"is greater than",message:Fe};return Ue.message=pe.message(Ue),Ve.push(Ue),!1},lessThan:function(he,_e,$e,Ie,Ve,Fe){if($e=Ie)return!0;var Ue={path:_e,type:he,actual:$e,expected:Ie,action:"is greater than or equal to",message:Fe};return Ue.message=pe.message(Ue),Ve.push(Ue),!1},lessThanOrEqualTo:function(he,_e,$e,Ie,Ve,Fe){if($e<=Ie)return!0;var Ue={path:_e,type:he,actual:$e,expected:Ie,action:"is less than or equal to",message:Fe};return Ue.message=pe.message(Ue),Ve.push(Ue),!1}};ue.Diff=de,ue.Assert=pe,t.exports=ue},function(t,r,V){t.exports=V(28)},function(t,r,V){var oe=V(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(Fe,Ue,qe,Et){var At=document.createEvent("CustomEvent");return At.initCustomEvent(Fe,Ue,qe,Et),At}}var ie={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},le="readystatechange loadstart progress abort error load timeout loadend".split(" "),ue="timeout withCredentials".split(" "),de="readyState responseURL status statusText responseType response responseText responseXML".split(" "),pe={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function he(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}he._settings={timeout:"10-100"},he.setup=function(Ve){return oe.extend(he._settings,Ve),he._settings},oe.extend(he,ie),oe.extend(he.prototype,ie),he.prototype.mock=!0,he.prototype.match=!1,oe.extend(he.prototype,{open:function(Ve,Fe,Ue,qe,Et){var At=this;oe.extend(this.custom,{method:Ve,url:Fe,async:typeof Ue=="boolean"?Ue:!0,username:qe,password:Et,options:{url:Fe,type:Ve}}),this.custom.timeout=function(Cn){if(typeof Cn=="number")return Cn;if(typeof Cn=="string"&&!~Cn.indexOf("-"))return parseInt(Cn,10);if(typeof Cn=="string"&&~Cn.indexOf("-")){var Sn=Cn.split("-"),wn=parseInt(Sn[0],10),En=parseInt(Sn[1],10);return Math.round(Math.random()*(En-wn))+wn}}(he._settings.timeout);var Lt=$e(this.custom.options);function hn(Cn){for(var Sn=0;Sn=48&&ue<=57||ue>=65&&ue<=90||ue>=97&&ue<=122||ue===95){ie+=t[le++];continue}break}if(!ie)throw new TypeError("Missing parameter name at ".concat(V));r.push({type:"NAME",index:V,value:ie}),V=le;continue}if(oe==="("){var de=1,pe="",le=V+1;if(t[le]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(le));for(;le)?(?!\?)/g,oe=0,ie=V.exec(t.source);ie;)r.push({name:ie[1]||oe++,prefix:"",suffix:"",modifier:"",pattern:""}),ie=V.exec(t.source);return t}function arrayToRegexp(t,r,V){var oe=t.map(function(ie){return pathToRegexp(ie,r,V).source});return new RegExp("(?:".concat(oe.join("|"),")"),flags(V))}function stringToRegexp(t,r,V){return tokensToRegexp(parse(t,V),r,V)}function tokensToRegexp(t,r,V){V===void 0&&(V={});for(var oe=V.strict,ie=oe===void 0?!1:oe,le=V.start,ue=le===void 0?!0:le,de=V.end,pe=de===void 0?!0:de,he=V.encode,_e=he===void 0?function(wn){return wn}:he,$e=V.delimiter,Ie=$e===void 0?"/#?":$e,Ve=V.endsWith,Fe=Ve===void 0?"":Ve,Ue="[".concat(escapeString(Fe),"]|$"),qe="[".concat(escapeString(Ie),"]"),Et=ue?"^":"",At=0,Lt=t;At-1:Cn===void 0;ie||(Et+="(?:".concat(qe,"(?=").concat(Ue,"))?")),Sn||(Et+="(?=".concat(qe,"|").concat(Ue,")"))}return new RegExp(Et,flags(V))}function pathToRegexp(t,r,V){return t instanceof RegExp?regexpToRegexp(t,r):Array.isArray(t)?arrayToRegexp(t,r,V):stringToRegexp(t,r,V)}const Mock=mockJs;function createProdMockServer(t){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const r={};for(let V in this.custom.requestHeaders)r[V.toString().toLowerCase()]=this.custom.requestHeaders[V];this.custom.options=Object.assign({},this.custom.options,{headers:r})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let r=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&r&&(this.custom.xhr.responseType=r)};for(const{url:r,method:V,response:oe,timeout:ie}of t)__setupMock__(ie),Mock.mock(pathToRegexp(r,void 0,{end:!1}),V||"get",__XHR2ExpressReqWrapper__(oe))}function __param2Obj__(t){const r=t.split("?")[1];return r?JSON.parse('{"'+decodeURIComponent(r).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(t){return function(r){let V=null;if(typeof t=="function"){const{body:oe,type:ie,url:le,headers:ue}=r;let de=oe;try{de=JSON.parse(oe)}catch{}V=t({method:ie,body:de,query:__param2Obj__(le),headers:ue})}else V=t;return Mock.mock(V)}}function __setupMock__(t=0){t&&Mock.setup({timeout:t})}const modules=Object.assign({"../mock/asyncRoutes.ts":__vite_glob_0_0,"../mock/list.ts":__vite_glob_0_1,"../mock/login.ts":__vite_glob_0_2,"../mock/map.ts":__vite_glob_0_3,"../mock/refreshToken.ts":__vite_glob_0_4,"../mock/system.ts":__vite_glob_0_5}),mockModules=[];Object.keys(modules).forEach(t=>{mockModules.push(...modules[t].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=createApp(App);Object.keys(directives).forEach(t=>{app.directive(t,directives[t])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getServerConfig(app).then(async t=>{setupStore(app),app.use(router),await router.isReady(),injectResponsiveStorage(app,t),app.use(MotionPlugin).use(useI18n).use(installer).use(Pe).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{onBeforeUpdate as $,axios$1 as A,Bn as B,_t as C,toRef as D,en as E,Fragment as F,computed as G,Hn as H,watch as I,normalizeStyle$1 as J,markRaw as K,tn as L,usePermissionStoreHook as M,extractPathList as N,On as O,transformI18n as P,deleteChildren as Q,h$2 as R,q$1 as S,vt as T,Rn as U,getDefaultExportFromCjs as V,resolveDynamicComponent as W,zn as X,onUpdated as Y,provide as Z,_export_sfc as _,ro as a,templateRef as a$,normalizeProps as a0,guardReactiveProps as a1,useI18n$1 as a2,commonjsGlobal as a3,ElInfiniteScroll as a4,useRouter as a5,addDialog as a6,updateDialog as a7,closeDialog as a8,closeAllDialog as a9,useIntervalFn as aA,D$1 as aB,defineStore as aC,nr as aD,responsiveStorageNameSpace as aE,getConfig as aF,store as aG,FontIcon as aH,IconifyIconOffline as aI,IconifyIconOnline as aJ,A as aK,withScopeId as aL,shallowReactive as aM,toHandlers as aN,getAugmentedNamespace as aO,vue_runtime_esmBundler as aP,useVModel as aQ,Tn as aR,createStaticVNode as aS,useResizeObserver as aT,$ as aU,longpress as aV,ElUpload as aW,B as aX,Qe as aY,Ze as aZ,Ge as a_,hot as aa,closeAllMessage as ab,Yr as ac,getCurrentInstance as ad,toRefs as ae,onUnmounted as af,renderSlot as ag,useCssVars as ah,getCurrentScope as ai,onScopeDispose as aj,inject as ak,reactive as al,ElLoading as am,withModifiers as an,mergeProps as ao,$n as ap,http as aq,onBeforeMount as ar,TransitionGroup as as,normalizeClass as at,shallowRef as au,isRef as av,isReactive as aw,isVNode$1 as ax,createApp as ay,to as az,onBeforeUnmount as b,baseForOwn as b$,tryOnMounted as b0,tryOnUnmounted as b1,useDebounceFn as b2,Teleport as b3,withKeys as b4,watchEffect as b5,toRaw as b6,ElCol as b7,isSymbol$1 as b8,baseToString as b9,isPlainObject$3 as bA,baseRest as bB,toKey as bC,baseAssignValue as bD,toString$2 as bE,toNumber as bF,isIterateeCall as bG,baseClone as bH,arrayPush as bI,baseFlatten as bJ,arrayMap as bK,baseIteratee as bL,baseEach$1 as bM,baseAssign as bN,eq as bO,baseMerge as bP,baseUnary as bQ,SetCache as bR,arrayIncludesWith as bS,cacheHas as bT,isArrayLikeObject as bU,createBaseFor as bV,createBaseEach as bW,getTag$1 as bX,mapToArray as bY,arrayFilter as bZ,baseFindIndex as b_,toInteger as ba,WeakMap$4 as bb,identity$1 as bc,baseCreate$1 as bd,isObject$8 as be,root$1 as bf,noop$5 as bg,copyArray as bh,isObjectLike as bi,isArray$b as bj,shortOut as bk,arrayEach as bl,arrayIncludes as bm,setToString$1 as bn,isIndex as bo,apply$1 as bp,createAssigner as bq,isPrototype as br,isArrayLike$1 as bs,copyObject as bt,keys$1 as bu,assignValue as bv,keysIn as bw,get$1 as bx,flatRest as by,baseGetTag as bz,resolveComponent as c,useRoute as c$,findLastIndex as c0,map$3 as c1,baseFor$1 as c2,isFunction$3 as c3,hasPath as c4,toFinite as c5,baseIndexOf as c6,constant as c7,baseGet as c8,castPath as c9,trimmedEndIndex as cA,baseUniq as cB,flatten as cC,flattenDeep as cD,fromPairs as cE,union$1 as cF,flatMap as cG,now$1 as cH,debounce as cI,memoize as cJ,throttle$1 as cK,castArray$1 as cL,clone$4 as cM,cloneDeep as cN,isEqual$1 as cO,isLength as cP,isMap$2 as cQ,isNil as cR,isSet$2 as cS,isUndefined$2 as cT,toPlainObject as cU,hasIn as cV,merge$4 as cW,pick$1 as cX,set$2 as cY,property as cZ,stubArray as c_,nodeUtil$1 as ca,isBuffer$3 as cb,isTypedArray$3 as cc,isArguments$1 as cd,baseKeys as ce,baseIsEqual as cf,baseIsMatch as cg,getMatchData as ch,coreJsData$1 as ci,stubFalse as cj,baseIsNative as ck,baseIsNaN as cl,baseMatches as cm,baseMatchesProperty as cn,Symbol$3 as co,setToArray as cp,getAllKeysIn as cq,basePickBy as cr,baseMap as cs,arraySome as ct,baseProperty as cu,baseSet as cv,baseTimes as cw,stringToPath$2 as cx,getPrototype$1 as cy,baseTrim as cz,defineComponent as d,addIcon$1 as d0,onKeyStroke as d1,N as d2,getParentPaths as d3,findRouteByPath as d4,useMultiTagsStoreHook as d5,Xt as d6,$t as d7,data$1 as d8,useEventListener as d9,toHandlerKey as dA,render$4 as dB,Be$1 as dC,initRouter as dD,getAuths as dE,hasAuth as dF,He as dG,handleTree as dH,Sr as dI,lr as dJ,ElForm as dK,ElFormItem as dL,ElInput as dM,ElProgress as dN,appendFieldByUniqueId as dO,getNodeByUniqueId as dP,Nt as dQ,Le as da,z as db,getTopMenu as dc,useFullscreen as dd,Transition as de,handleAliveRoute as df,data as dg,routerArrays as dh,Ct as di,KeepAlive as dj,onClickOutside as dk,removeToken as dl,rr as dm,resetRouter as dn,useMultiTagsStore as dp,storeToRefs as dq,useUserStoreHook as dr,router as ds,remainingPaths as dt,cloneVNode as du,useWindowSize as dv,dayjs as dw,rn as dx,LinearGradient$1 as dy,ElMessageBox as dz,resolveDirective as e,createBlock as f,openBlock as g,createBaseVNode as h,createTextVNode as i,createVNode as j,createCommentVNode as k,withDirectives as l,popScopeId as m,createElementBlock as n,onMounted as o,pushScopeId as p,message as q,ref as r,mo as s,toDisplayString$1 as t,unref as u,vShow as v,withCtx as w,nextTick as x,renderList as y,zt as z};